RTEMS 4.11
Annotated Report
Fri Jul 29 16:31:51 2011

0200ade4 <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 ) {                                              
 200ade4:	c2 02 00 00 	ld  [ %o0 ], %g1                               
)                                                                     
{                                                                     
  IMFS_jnode_t    *node = loc->node_access;                           
  IMFS_fs_info_t  *fs_info;                                           
                                                                      
  fs_info = loc->mt_entry->fs_info;                                   
 200ade8:	c4 02 20 10 	ld  [ %o0 + 0x10 ], %g2                        
  switch( node->type ) {                                              
 200adec:	c2 00 60 4c 	ld  [ %g1 + 0x4c ], %g1                        
 200adf0:	80 a0 60 07 	cmp  %g1, 7                                    
 200adf4:	18 80 00 0a 	bgu  200ae1c <IMFS_Set_handlers+0x38>          <== NEVER TAKEN
 200adf8:	c4 00 a0 34 	ld  [ %g2 + 0x34 ], %g2                        
 200adfc:	83 28 60 02 	sll  %g1, 2, %g1                               
 200ae00:	07 00 80 2b 	sethi  %hi(0x200ac00), %g3                     
 200ae04:	86 10 e1 68 	or  %g3, 0x168, %g3	! 200ad68 <IMFS_create_root_node+0x40>
 200ae08:	c2 00 c0 01 	ld  [ %g3 + %g1 ], %g1                         
 200ae0c:	81 c0 40 00 	jmp  %g1                                       
 200ae10:	01 00 00 00 	nop                                            
    case IMFS_DIRECTORY:                                              
      loc->handlers = fs_info->directory_handlers;                    
 200ae14:	c2 00 a0 0c 	ld  [ %g2 + 0xc ], %g1                         
 200ae18:	c2 22 20 08 	st  %g1, [ %o0 + 8 ]                           
      loc->handlers = fs_info->fifo_handlers;                         
      break;                                                          
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
 200ae1c:	81 c3 e0 08 	retl                                           
 200ae20:	90 10 20 00 	clr  %o0                                       
      break;                                                          
    case IMFS_LINEAR_FILE:                                            
      loc->handlers = fs_info->memfile_handlers;                      
      break;                                                          
    case IMFS_MEMORY_FILE:                                            
      loc->handlers = fs_info->memfile_handlers;                      
 200ae24:	c2 00 a0 08 	ld  [ %g2 + 8 ], %g1                           
 200ae28:	c2 22 20 08 	st  %g1, [ %o0 + 8 ]                           
      loc->handlers = fs_info->fifo_handlers;                         
      break;                                                          
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
 200ae2c:	81 c3 e0 08 	retl                                           
 200ae30:	90 10 20 00 	clr  %o0                                       
    case IMFS_DEVICE:                                                 
      loc->handlers = &IMFS_device_handlers;                          
      break;                                                          
    case IMFS_SYM_LINK:                                               
    case IMFS_HARD_LINK:                                              
      loc->handlers = &IMFS_link_handlers;                            
 200ae34:	03 00 80 6e 	sethi  %hi(0x201b800), %g1                     
 200ae38:	82 10 63 64 	or  %g1, 0x364, %g1	! 201bb64 <IMFS_link_handlers>
 200ae3c:	c2 22 20 08 	st  %g1, [ %o0 + 8 ]                           
      loc->handlers = fs_info->fifo_handlers;                         
      break;                                                          
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
 200ae40:	81 c3 e0 08 	retl                                           
 200ae44:	90 10 20 00 	clr  %o0                                       
      break;                                                          
    case IMFS_MEMORY_FILE:                                            
      loc->handlers = fs_info->memfile_handlers;                      
      break;                                                          
    case IMFS_FIFO:                                                   
      loc->handlers = fs_info->fifo_handlers;                         
 200ae48:	c2 00 a0 10 	ld  [ %g2 + 0x10 ], %g1                        
 200ae4c:	c2 22 20 08 	st  %g1, [ %o0 + 8 ]                           
      break;                                                          
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
 200ae50:	81 c3 e0 08 	retl                                           
 200ae54:	90 10 20 00 	clr  %o0                                       
  switch( node->type ) {                                              
    case IMFS_DIRECTORY:                                              
      loc->handlers = fs_info->directory_handlers;                    
      break;                                                          
    case IMFS_DEVICE:                                                 
      loc->handlers = &IMFS_device_handlers;                          
 200ae58:	03 00 80 6e 	sethi  %hi(0x201b800), %g1                     
 200ae5c:	82 10 62 f4 	or  %g1, 0x2f4, %g1	! 201baf4 <IMFS_device_handlers>
 200ae60:	c2 22 20 08 	st  %g1, [ %o0 + 8 ]                           
      loc->handlers = fs_info->fifo_handlers;                         
      break;                                                          
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
 200ae64:	81 c3 e0 08 	retl                                           
 200ae68:	90 10 20 00 	clr  %o0                                       
                                                                      

0200abf4 <IMFS_create_node>: IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) {
 200abf4:	9d e3 bf a0 	save  %sp, -96, %sp                            
 200abf8:	82 10 00 18 	mov  %i0, %g1                                  
  IMFS_fs_info_t      *fs_info;                                       
                                                                      
  /*                                                                  
   *  MUST have a parent node to call this routine.                   
   */                                                                 
  if ( parent_loc == NULL )                                           
 200abfc:	80 a0 60 00 	cmp  %g1, 0                                    
 200ac00:	02 80 00 2b 	be  200acac <IMFS_create_node+0xb8>            <== NEVER TAKEN
 200ac04:	b0 10 20 00 	clr  %i0                                       
    return NULL;                                                      
                                                                      
  parent = parent_loc->node_access;                                   
  fs_info = parent_loc->mt_entry->fs_info;                            
 200ac08:	c4 00 60 10 	ld  [ %g1 + 0x10 ], %g2                        
   *  MUST have a parent node to call this routine.                   
   */                                                                 
  if ( parent_loc == NULL )                                           
    return NULL;                                                      
                                                                      
  parent = parent_loc->node_access;                                   
 200ac0c:	e0 00 40 00 	ld  [ %g1 ], %l0                               
  fs_info = parent_loc->mt_entry->fs_info;                            
                                                                      
  /*                                                                  
   *  Reject creation of FIFOs if support is disabled.                
   */                                                                 
  if ( type == IMFS_FIFO &&                                           
 200ac10:	80 a6 60 07 	cmp  %i1, 7                                    
 200ac14:	02 80 00 28 	be  200acb4 <IMFS_create_node+0xc0>            
 200ac18:	fa 00 a0 34 	ld  [ %g2 + 0x34 ], %i5                        
    return NULL;                                                      
                                                                      
  /*                                                                  
   *  Allocate filesystem node and fill in basic information          
   */                                                                 
  node  = IMFS_allocate_node( type, name, mode & ~rtems_filesystem_umask );
 200ac1c:	03 00 80 73 	sethi  %hi(0x201cc00), %g1                     
 200ac20:	c2 00 62 74 	ld  [ %g1 + 0x274 ], %g1	! 201ce74 <rtems_current_user_env>
 200ac24:	90 10 00 19 	mov  %i1, %o0                                  
 200ac28:	d4 00 60 2c 	ld  [ %g1 + 0x2c ], %o2                        
 200ac2c:	92 10 00 1a 	mov  %i2, %o1                                  
 200ac30:	7f ff ff d6 	call  200ab88 <IMFS_allocate_node>             
 200ac34:	94 2e c0 0a 	andn  %i3, %o2, %o2                            
  if ( !node )                                                        
 200ac38:	b0 92 20 00 	orcc  %o0, 0, %i0                              
 200ac3c:	02 80 00 1c 	be  200acac <IMFS_create_node+0xb8>            
 200ac40:	80 a6 60 01 	cmp  %i1, 1                                    
    return NULL;                                                      
                                                                      
  /*                                                                  
   *  Set the type specific information                               
   */                                                                 
  if ( type == IMFS_DIRECTORY ) {                                     
 200ac44:	02 80 00 24 	be  200acd4 <IMFS_create_node+0xe0>            
 200ac48:	80 a6 60 03 	cmp  %i1, 3                                    
    rtems_chain_initialize_empty(&node->info.directory.Entries);      
  } else if ( type == IMFS_HARD_LINK ) {                              
 200ac4c:	02 80 00 0e 	be  200ac84 <IMFS_create_node+0x90>            
 200ac50:	80 a6 60 04 	cmp  %i1, 4                                    
    node->info.hard_link.link_node = info->hard_link.link_node;       
  } else if ( type == IMFS_SYM_LINK ) {                               
 200ac54:	02 80 00 0c 	be  200ac84 <IMFS_create_node+0x90>            
 200ac58:	80 a6 60 02 	cmp  %i1, 2                                    
    node->info.sym_link.name = info->sym_link.name;                   
  } else if ( type == IMFS_DEVICE ) {                                 
 200ac5c:	02 80 00 28 	be  200acfc <IMFS_create_node+0x108>           
 200ac60:	80 a6 60 06 	cmp  %i1, 6                                    
    node->info.device.major = info->device.major;                     
    node->info.device.minor = info->device.minor;                     
  } else if ( type == IMFS_LINEAR_FILE ) {                            
 200ac64:	02 80 00 22 	be  200acec <IMFS_create_node+0xf8>            
 200ac68:	80 a6 60 05 	cmp  %i1, 5                                    
    node->info.linearfile.size      = 0;                              
    node->info.linearfile.direct    = 0;                              
  } else if ( type == IMFS_MEMORY_FILE ) {                            
 200ac6c:	02 80 00 29 	be  200ad10 <IMFS_create_node+0x11c>           
 200ac70:	80 a6 60 07 	cmp  %i1, 7                                    
      node->info.file.size            = 0;                            
      node->info.file.indirect        = 0;                            
      node->info.file.doubly_indirect = 0;                            
      node->info.file.triply_indirect = 0;                            
  } else if ( type == IMFS_FIFO ) {                                   
 200ac74:	22 80 00 06 	be,a   200ac8c <IMFS_create_node+0x98>         <== ALWAYS TAKEN
 200ac78:	c0 26 20 50 	clr  [ %i0 + 0x50 ]                            
                                                                      
  /*                                                                  
   *  This node MUST have a parent, so put it in that directory list. 
   */                                                                 
  node->Parent = parent;                                              
  node->st_ino = ++fs_info->ino_count;                                
 200ac7c:	10 80 00 05 	b  200ac90 <IMFS_create_node+0x9c>             <== NOT EXECUTED
 200ac80:	c2 07 60 04 	ld  [ %i5 + 4 ], %g1                           <== NOT EXECUTED
  if ( type == IMFS_DIRECTORY ) {                                     
    rtems_chain_initialize_empty(&node->info.directory.Entries);      
  } else if ( type == IMFS_HARD_LINK ) {                              
    node->info.hard_link.link_node = info->hard_link.link_node;       
  } else if ( type == IMFS_SYM_LINK ) {                               
    node->info.sym_link.name = info->sym_link.name;                   
 200ac84:	c2 07 00 00 	ld  [ %i4 ], %g1                               
 200ac88:	c2 26 20 50 	st  %g1, [ %i0 + 0x50 ]                        
                                                                      
  /*                                                                  
   *  This node MUST have a parent, so put it in that directory list. 
   */                                                                 
  node->Parent = parent;                                              
  node->st_ino = ++fs_info->ino_count;                                
 200ac8c:	c2 07 60 04 	ld  [ %i5 + 4 ], %g1                           
  }                                                                   
                                                                      
  /*                                                                  
   *  This node MUST have a parent, so put it in that directory list. 
   */                                                                 
  node->Parent = parent;                                              
 200ac90:	e0 26 20 08 	st  %l0, [ %i0 + 8 ]                           
  node->st_ino = ++fs_info->ino_count;                                
 200ac94:	82 00 60 01 	inc  %g1                                       
 200ac98:	c2 27 60 04 	st  %g1, [ %i5 + 4 ]                           
 200ac9c:	c2 26 20 38 	st  %g1, [ %i0 + 0x38 ]                        
 200aca0:	90 04 20 50 	add  %l0, 0x50, %o0                            
 200aca4:	7f ff f1 d6 	call  20073fc <_Chain_Append>                  
 200aca8:	92 10 00 18 	mov  %i0, %o1                                  
                                                                      
  rtems_chain_append( &parent->info.directory.Entries, &node->Node ); 
                                                                      
  return node;                                                        
}                                                                     
 200acac:	81 c7 e0 08 	ret                                            
 200acb0:	81 e8 00 00 	restore                                        
  fs_info = parent_loc->mt_entry->fs_info;                            
                                                                      
  /*                                                                  
   *  Reject creation of FIFOs if support is disabled.                
   */                                                                 
  if ( type == IMFS_FIFO &&                                           
 200acb4:	c4 07 60 10 	ld  [ %i5 + 0x10 ], %g2                        
 200acb8:	03 00 80 6e 	sethi  %hi(0x201b800), %g1                     
 200acbc:	82 10 62 6c 	or  %g1, 0x26c, %g1	! 201ba6c <rtems_filesystem_handlers_default>
 200acc0:	80 a0 80 01 	cmp  %g2, %g1                                  
 200acc4:	12 bf ff d7 	bne  200ac20 <IMFS_create_node+0x2c>           
 200acc8:	03 00 80 73 	sethi  %hi(0x201cc00), %g1                     
  node->st_ino = ++fs_info->ino_count;                                
                                                                      
  rtems_chain_append( &parent->info.directory.Entries, &node->Node ); 
                                                                      
  return node;                                                        
}                                                                     
 200accc:	81 c7 e0 08 	ret                                            
 200acd0:	81 e8 00 00 	restore                                        
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
 200acd4:	82 06 20 50 	add  %i0, 0x50, %g1                            
 200acd8:	84 06 20 54 	add  %i0, 0x54, %g2                            
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
 200acdc:	c0 26 20 54 	clr  [ %i0 + 0x54 ]                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 200ace0:	c4 26 20 50 	st  %g2, [ %i0 + 0x50 ]                        
  head->previous = NULL;                                              
  tail->previous = head;                                              
 200ace4:	10 bf ff ea 	b  200ac8c <IMFS_create_node+0x98>             
 200ace8:	c2 26 20 58 	st  %g1, [ %i0 + 0x58 ]                        
    node->info.sym_link.name = info->sym_link.name;                   
  } else if ( type == IMFS_DEVICE ) {                                 
    node->info.device.major = info->device.major;                     
    node->info.device.minor = info->device.minor;                     
  } else if ( type == IMFS_LINEAR_FILE ) {                            
    node->info.linearfile.size      = 0;                              
 200acec:	c0 26 20 50 	clr  [ %i0 + 0x50 ]                            
 200acf0:	c0 26 20 54 	clr  [ %i0 + 0x54 ]                            
    node->info.linearfile.direct    = 0;                              
 200acf4:	10 bf ff e6 	b  200ac8c <IMFS_create_node+0x98>             
 200acf8:	c0 26 20 58 	clr  [ %i0 + 0x58 ]                            
  } else if ( type == IMFS_HARD_LINK ) {                              
    node->info.hard_link.link_node = info->hard_link.link_node;       
  } else if ( type == IMFS_SYM_LINK ) {                               
    node->info.sym_link.name = info->sym_link.name;                   
  } else if ( type == IMFS_DEVICE ) {                                 
    node->info.device.major = info->device.major;                     
 200acfc:	c4 07 00 00 	ld  [ %i4 ], %g2                               
    node->info.device.minor = info->device.minor;                     
 200ad00:	c2 07 20 04 	ld  [ %i4 + 4 ], %g1                           
  } else if ( type == IMFS_HARD_LINK ) {                              
    node->info.hard_link.link_node = info->hard_link.link_node;       
  } else if ( type == IMFS_SYM_LINK ) {                               
    node->info.sym_link.name = info->sym_link.name;                   
  } else if ( type == IMFS_DEVICE ) {                                 
    node->info.device.major = info->device.major;                     
 200ad04:	c4 26 20 50 	st  %g2, [ %i0 + 0x50 ]                        
    node->info.device.minor = info->device.minor;                     
 200ad08:	10 bf ff e1 	b  200ac8c <IMFS_create_node+0x98>             
 200ad0c:	c2 26 20 54 	st  %g1, [ %i0 + 0x54 ]                        
  } else if ( type == IMFS_LINEAR_FILE ) {                            
    node->info.linearfile.size      = 0;                              
    node->info.linearfile.direct    = 0;                              
  } else if ( type == IMFS_MEMORY_FILE ) {                            
      node->info.file.size            = 0;                            
 200ad10:	c0 26 20 50 	clr  [ %i0 + 0x50 ]                            
 200ad14:	c0 26 20 54 	clr  [ %i0 + 0x54 ]                            
      node->info.file.indirect        = 0;                            
 200ad18:	c0 26 20 58 	clr  [ %i0 + 0x58 ]                            
      node->info.file.doubly_indirect = 0;                            
 200ad1c:	c0 26 20 5c 	clr  [ %i0 + 0x5c ]                            
      node->info.file.triply_indirect = 0;                            
 200ad20:	10 bf ff db 	b  200ac8c <IMFS_create_node+0x98>             
 200ad24:	c0 26 20 60 	clr  [ %i0 + 0x60 ]                            
                                                                      

02005160 <IMFS_dump_directory>: */ void IMFS_dump_directory( IMFS_jnode_t *the_directory, int level ) {
 2005160:	9d e3 bf a0 	save  %sp, -96, %sp                            
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
 2005164:	fa 06 20 50 	ld  [ %i0 + 0x50 ], %i5                        
RTEMS_INLINE_ROUTINE bool _Chain_Is_tail(                             
  Chain_Control *the_chain,                                           
  const Chain_Node    *the_node                                       
)                                                                     
{                                                                     
  return (the_node == _Chain_Tail(the_chain));                        
 2005168:	b8 06 20 54 	add  %i0, 0x54, %i4                            
  IMFS_assert( level >= 0 );                                          
  IMFS_assert( the_directory->type == IMFS_DIRECTORY );               
                                                                      
  the_chain = &the_directory->info.directory.Entries;                 
                                                                      
  for ( the_node = rtems_chain_first( the_chain );                    
 200516c:	80 a7 40 1c 	cmp  %i5, %i4                                  
 2005170:	02 80 00 1e 	be  20051e8 <IMFS_dump_directory+0x88>         
 2005174:	31 00 80 8b 	sethi  %hi(0x2022c00), %i0                     
 2005178:	21 00 80 92 	sethi  %hi(0x2024800), %l0                     
        the_node = the_node->next ) {                                 
                                                                      
    the_jnode = (IMFS_jnode_t *) the_node;                            
                                                                      
    for ( i=0 ; i<=level ; i++ )                                      
      fprintf(stdout, "...." );                                       
 200517c:	b0 16 20 48 	or  %i0, 0x48, %i0                             
    IMFS_print_jnode( the_jnode );                                    
    if ( the_jnode->type == IMFS_DIRECTORY )                          
      IMFS_dump_directory( the_jnode, level + 1 );                    
 2005180:	a2 06 60 01 	add  %i1, 1, %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++ )                                      
 2005184:	80 a6 60 00 	cmp  %i1, 0                                    
 2005188:	06 80 00 0e 	bl  20051c0 <IMFS_dump_directory+0x60>         <== NEVER TAKEN
 200518c:	01 00 00 00 	nop                                            
 2005190:	b6 10 20 00 	clr  %i3	! 0 <PROM_START>                      
 2005194:	b4 14 23 b8 	or  %l0, 0x3b8, %i2                            
      fprintf(stdout, "...." );                                       
 2005198:	c2 06 80 00 	ld  [ %i2 ], %g1                               
 200519c:	90 10 00 18 	mov  %i0, %o0                                  
 20051a0:	d6 00 60 08 	ld  [ %g1 + 8 ], %o3                           
 20051a4:	92 10 20 01 	mov  1, %o1                                    
 20051a8:	40 00 3f e6 	call  2015140 <fwrite>                         
 20051ac:	94 10 20 04 	mov  4, %o2                                    
        !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++ )                                      
 20051b0:	b6 06 e0 01 	inc  %i3                                       
 20051b4:	80 a6 40 1b 	cmp  %i1, %i3                                  
 20051b8:	36 bf ff f9 	bge,a   200519c <IMFS_dump_directory+0x3c>     
 20051bc:	c2 06 80 00 	ld  [ %i2 ], %g1                               
      fprintf(stdout, "...." );                                       
    IMFS_print_jnode( the_jnode );                                    
 20051c0:	7f ff ff a2 	call  2005048 <IMFS_print_jnode>               
 20051c4:	90 10 00 1d 	mov  %i5, %o0                                  
    if ( the_jnode->type == IMFS_DIRECTORY )                          
 20051c8:	c2 07 60 4c 	ld  [ %i5 + 0x4c ], %g1                        
 20051cc:	80 a0 60 01 	cmp  %g1, 1                                    
 20051d0:	22 80 00 08 	be,a   20051f0 <IMFS_dump_directory+0x90>      
 20051d4:	90 10 00 1d 	mov  %i5, %o0                                  
                                                                      
  the_chain = &the_directory->info.directory.Entries;                 
                                                                      
  for ( the_node = rtems_chain_first( the_chain );                    
        !rtems_chain_is_tail( the_chain, the_node );                  
        the_node = the_node->next ) {                                 
 20051d8:	fa 07 40 00 	ld  [ %i5 ], %i5                               
  IMFS_assert( level >= 0 );                                          
  IMFS_assert( the_directory->type == IMFS_DIRECTORY );               
                                                                      
  the_chain = &the_directory->info.directory.Entries;                 
                                                                      
  for ( the_node = rtems_chain_first( the_chain );                    
 20051dc:	80 a7 40 1c 	cmp  %i5, %i4                                  
 20051e0:	12 bf ff ea 	bne  2005188 <IMFS_dump_directory+0x28>        
 20051e4:	80 a6 60 00 	cmp  %i1, 0                                    
 20051e8:	81 c7 e0 08 	ret                                            
 20051ec:	81 e8 00 00 	restore                                        
                                                                      
    for ( i=0 ; i<=level ; i++ )                                      
      fprintf(stdout, "...." );                                       
    IMFS_print_jnode( the_jnode );                                    
    if ( the_jnode->type == IMFS_DIRECTORY )                          
      IMFS_dump_directory( the_jnode, level + 1 );                    
 20051f0:	7f ff ff dc 	call  2005160 <IMFS_dump_directory>            
 20051f4:	92 10 00 11 	mov  %l1, %o1                                  
                                                                      
  the_chain = &the_directory->info.directory.Entries;                 
                                                                      
  for ( the_node = rtems_chain_first( the_chain );                    
        !rtems_chain_is_tail( the_chain, the_node );                  
        the_node = the_node->next ) {                                 
 20051f8:	10 bf ff f9 	b  20051dc <IMFS_dump_directory+0x7c>          
 20051fc:	fa 07 40 00 	ld  [ %i5 ], %i5                               
                                                                      

0200af6c <IMFS_eval_path>: const char *pathname, /* IN */ size_t pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) {
 200af6c:	9d e3 bf 70 	save  %sp, -144, %sp                           
  int               i = 0;                                            
 200af70:	c0 27 bf f8 	clr  [ %fp + -8 ]                              
  const char                        *pathname,     /* IN     */       
  size_t                             pathnamelen,  /* IN     */       
  int                                flags,        /* IN     */       
  rtems_filesystem_location_info_t  *pathloc       /* IN/OUT */       
                   )                                                  
{                                                                     
 200af74:	f2 27 a0 48 	st  %i1, [ %fp + 0x48 ]                        
 200af78:	92 10 00 19 	mov  %i1, %o1                                  
  IMFS_token_types  type = IMFS_CURRENT_DIR;                          
  char              token[ IMFS_NAME_MAX + 1 ];                       
  IMFS_jnode_t     *node;                                             
  int               result;                                           
                                                                      
  if ( !rtems_libio_is_valid_perms( flags ) ) {                       
 200af7c:	80 8e bf f8 	btst  -8, %i2                                  
 200af80:	12 80 00 c1 	bne  200b284 <IMFS_eval_path+0x318>            <== NEVER TAKEN
 200af84:	ba 10 00 18 	mov  %i0, %i5                                  
  /*                                                                  
   *  This was filled in by the caller and is valid in the            
   *  mount table.                                                    
   */                                                                 
                                                                      
  node = pathloc->node_access;                                        
 200af88:	f8 06 c0 00 	ld  [ %i3 ], %i4                               
 200af8c:	90 10 20 00 	clr  %o0                                       
      case IMFS_UP_DIR:                                               
        /*                                                            
         *  Am I at the root of all filesystems? (chroot'ed?)         
         */                                                           
                                                                      
        if ( pathloc->node_access == rtems_filesystem_root.node_access )
 200af90:	21 00 80 73 	sethi  %hi(0x201cc00), %l0                     
   *  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 );  
 200af94:	90 07 40 08 	add  %i5, %o0, %o0                             
 200af98:	94 07 bf d0 	add  %fp, -48, %o2                             
 200af9c:	40 00 02 93 	call  200b9e8 <IMFS_get_token>                 
 200afa0:	96 07 bf fc 	add  %fp, -4, %o3                              
    pathnamelen -= len;                                               
 200afa4:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 200afa8:	d2 07 a0 48 	ld  [ %fp + 0x48 ], %o1                        
    i += len;                                                         
 200afac:	c4 07 bf f8 	ld  [ %fp + -8 ], %g2                          
   *  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 );  
 200afb0:	b2 10 00 08 	mov  %o0, %i1                                  
    pathnamelen -= len;                                               
    i += len;                                                         
                                                                      
    if ( !pathloc->node_access )                                      
 200afb4:	d0 06 c0 00 	ld  [ %i3 ], %o0                               
   */                                                                 
                                                                      
  while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
                                                                      
    type = IMFS_get_token( &pathname[i], pathnamelen, token, &len );  
    pathnamelen -= len;                                               
 200afb8:	92 22 40 01 	sub  %o1, %g1, %o1                             
    i += len;                                                         
 200afbc:	82 00 80 01 	add  %g2, %g1, %g1                             
   */                                                                 
                                                                      
  while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
                                                                      
    type = IMFS_get_token( &pathname[i], pathnamelen, token, &len );  
    pathnamelen -= len;                                               
 200afc0:	d2 27 a0 48 	st  %o1, [ %fp + 0x48 ]                        
    i += len;                                                         
                                                                      
    if ( !pathloc->node_access )                                      
 200afc4:	80 a2 20 00 	cmp  %o0, 0                                    
 200afc8:	02 80 00 99 	be  200b22c <IMFS_eval_path+0x2c0>             <== NEVER TAKEN
 200afcc:	c2 27 bf f8 	st  %g1, [ %fp + -8 ]                          
      rtems_set_errno_and_return_minus_one( ENOENT );                 
                                                                      
    /*                                                                
     * I cannot move out of this directory without execute permission.
     */                                                               
    if ( type != IMFS_NO_MORE_PATH )                                  
 200afd0:	80 a6 60 00 	cmp  %i1, 0                                    
 200afd4:	32 80 00 15 	bne,a   200b028 <IMFS_eval_path+0xbc>          
 200afd8:	c2 07 20 4c 	ld  [ %i4 + 0x4c ], %g1                        
   *  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 ) {                               
 200afdc:	c2 02 20 4c 	ld  [ %o0 + 0x4c ], %g1                        
 200afe0:	80 a0 60 01 	cmp  %g1, 1                                    
 200afe4:	22 80 00 98 	be,a   200b244 <IMFS_eval_path+0x2d8>          
 200afe8:	c6 02 20 5c 	ld  [ %o0 + 0x5c ], %g3                        
                                          flags, pathloc );           
    } else {                                                          
      result = IMFS_Set_handlers( pathloc );                          
    }                                                                 
  } else {                                                            
    result = IMFS_Set_handlers( pathloc );                            
 200afec:	7f ff ff 7e 	call  200ade4 <IMFS_Set_handlers>              
 200aff0:	90 10 00 1b 	mov  %i3, %o0                                  
                                                                      
  /*                                                                  
   * Verify we have the correct permissions for this node.            
   */                                                                 
                                                                      
  if ( !IMFS_evaluate_permission( pathloc, flags ) )                  
 200aff4:	92 10 00 1a 	mov  %i2, %o1                                  
                                          flags, pathloc );           
    } else {                                                          
      result = IMFS_Set_handlers( pathloc );                          
    }                                                                 
  } else {                                                            
    result = IMFS_Set_handlers( pathloc );                            
 200aff8:	b0 10 00 08 	mov  %o0, %i0                                  
                                                                      
  /*                                                                  
   * Verify we have the correct permissions for this node.            
   */                                                                 
                                                                      
  if ( !IMFS_evaluate_permission( pathloc, flags ) )                  
 200affc:	7f ff ff 9c 	call  200ae6c <IMFS_evaluate_permission>       
 200b000:	90 10 00 1b 	mov  %i3, %o0                                  
 200b004:	80 a2 20 00 	cmp  %o0, 0                                    
 200b008:	12 80 00 c6 	bne  200b320 <IMFS_eval_path+0x3b4>            
 200b00c:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( EACCES );                   
 200b010:	40 00 12 64 	call  200f9a0 <__errno>                        
 200b014:	b0 10 3f ff 	mov  -1, %i0	! ffffffff <RAM_END+0xfdbfffff>   
 200b018:	82 10 20 0d 	mov  0xd, %g1                                  
 200b01c:	c2 22 00 00 	st  %g1, [ %o0 ]                               
                                                                      
  return result;                                                      
}                                                                     
 200b020:	81 c7 e0 08 	ret                                            
 200b024:	81 e8 00 00 	restore                                        
                                                                      
    /*                                                                
     * I cannot move out of this directory without execute permission.
     */                                                               
    if ( type != IMFS_NO_MORE_PATH )                                  
      if ( node->type == IMFS_DIRECTORY )                             
 200b028:	80 a0 60 01 	cmp  %g1, 1                                    
 200b02c:	22 80 00 53 	be,a   200b178 <IMFS_eval_path+0x20c>          
 200b030:	90 10 00 1b 	mov  %i3, %o0                                  
        if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
          rtems_set_errno_and_return_minus_one( EACCES );             
                                                                      
    node = pathloc->node_access;                                      
                                                                      
    switch( type ) {                                                  
 200b034:	80 a6 60 03 	cmp  %i1, 3                                    
 200b038:	02 80 00 0b 	be  200b064 <IMFS_eval_path+0xf8>              
 200b03c:	80 a6 60 04 	cmp  %i1, 4                                    
 200b040:	02 80 00 30 	be  200b100 <IMFS_eval_path+0x194>             
 200b044:	80 a6 60 02 	cmp  %i1, 2                                    
 200b048:	02 80 00 1c 	be  200b0b8 <IMFS_eval_path+0x14c>             
 200b04c:	80 a6 60 04 	cmp  %i1, 4                                    
                                                                      
  /*                                                                  
   *  Evaluate all tokens until we are done or an error occurs.       
   */                                                                 
                                                                      
  while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
 200b050:	02 bf ff e3 	be  200afdc <IMFS_eval_path+0x70>              <== NEVER TAKEN
 200b054:	d2 07 a0 48 	ld  [ %fp + 0x48 ], %o1                        
 200b058:	b8 10 00 08 	mov  %o0, %i4                                  
 200b05c:	10 bf ff ce 	b  200af94 <IMFS_eval_path+0x28>               
 200b060:	d0 07 bf f8 	ld  [ %fp + -8 ], %o0                          
                                                                      
      case IMFS_NAME:                                                 
        /*                                                            
         *  If we are at a link follow it.                            
         */                                                           
        if ( node->type == IMFS_HARD_LINK ) {                         
 200b064:	c2 02 20 4c 	ld  [ %o0 + 0x4c ], %g1                        
 200b068:	80 a0 60 03 	cmp  %g1, 3                                    
 200b06c:	02 80 00 4d 	be  200b1a0 <IMFS_eval_path+0x234>             
 200b070:	80 a0 60 04 	cmp  %g1, 4                                    
           * It would be a design error if we evaluated the link and  
           * was broken.                                              
           */                                                         
          IMFS_assert( node );                                        
                                                                      
        } else if ( node->type == IMFS_SYM_LINK ) {                   
 200b074:	22 80 00 66 	be,a   200b20c <IMFS_eval_path+0x2a0>          
 200b078:	90 10 00 1b 	mov  %i3, %o0                                  
        }                                                             
                                                                      
        /*                                                            
         *  Only a directory can be decended into.                    
         */                                                           
        if ( node->type != IMFS_DIRECTORY )                           
 200b07c:	80 a0 60 01 	cmp  %g1, 1                                    
 200b080:	12 80 00 87 	bne  200b29c <IMFS_eval_path+0x330>            
 200b084:	01 00 00 00 	nop                                            
          rtems_set_errno_and_return_minus_one( ENOTDIR );            
                                                                      
        /*                                                            
         *  Find the token name in the current node.                  
         */                                                           
        node = IMFS_find_match_in_dir( node, token );                 
 200b088:	40 00 02 35 	call  200b95c <IMFS_find_match_in_dir>         
 200b08c:	92 07 bf d0 	add  %fp, -48, %o1                             
        if ( !node )                                                  
 200b090:	b8 92 20 00 	orcc  %o0, 0, %i4                              
 200b094:	02 80 00 66 	be  200b22c <IMFS_eval_path+0x2c0>             
 200b098:	01 00 00 00 	nop                                            
         *  file system and not the IMFS. For example the IMFS length is
         *  limited. If the token is a parent directory move back up otherwise
         *  set loc to the new fs root node and let them finish evaluating the
         *  path.                                                     
         */                                                           
        if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) {
 200b09c:	c2 07 20 4c 	ld  [ %i4 + 0x4c ], %g1                        
 200b0a0:	80 a0 60 01 	cmp  %g1, 1                                    
 200b0a4:	02 80 00 1d 	be  200b118 <IMFS_eval_path+0x1ac>             
 200b0a8:	d2 07 a0 48 	ld  [ %fp + 0x48 ], %o1                        
        }                                                             
                                                                      
        /*                                                            
         *  Set the node access to the point we have found.           
         */                                                           
        pathloc->node_access = node;                                  
 200b0ac:	f8 26 c0 00 	st  %i4, [ %i3 ]                               
                                                                      
  /*                                                                  
   *  Evaluate all tokens until we are done or an error occurs.       
   */                                                                 
                                                                      
  while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
 200b0b0:	10 bf ff b9 	b  200af94 <IMFS_eval_path+0x28>               
 200b0b4:	d0 07 bf f8 	ld  [ %fp + -8 ], %o0                          
      case IMFS_UP_DIR:                                               
        /*                                                            
         *  Am I at the root of all filesystems? (chroot'ed?)         
         */                                                           
                                                                      
        if ( pathloc->node_access == rtems_filesystem_root.node_access )
 200b0b8:	c2 04 22 74 	ld  [ %l0 + 0x274 ], %g1                       
 200b0bc:	c2 00 60 18 	ld  [ %g1 + 0x18 ], %g1                        
 200b0c0:	80 a0 40 08 	cmp  %g1, %o0                                  
 200b0c4:	02 80 00 34 	be  200b194 <IMFS_eval_path+0x228>             
 200b0c8:	b8 10 00 08 	mov  %o0, %i4                                  
                                                                      
  if ( !IMFS_evaluate_permission( pathloc, flags ) )                  
    rtems_set_errno_and_return_minus_one( EACCES );                   
                                                                      
  return result;                                                      
}                                                                     
 200b0cc:	c6 06 e0 10 	ld  [ %i3 + 0x10 ], %g3                        
                                                                      
        /*                                                            
         *  Am I at the root of this mounted filesystem?              
         */                                                           
                                                                      
        if ( rtems_filesystem_is_root_location( pathloc ) ) {         
 200b0d0:	c2 00 e0 1c 	ld  [ %g3 + 0x1c ], %g1                        
 200b0d4:	80 a2 00 01 	cmp  %o0, %g1                                  
 200b0d8:	22 80 00 38 	be,a   200b1b8 <IMFS_eval_path+0x24c>          
 200b0dc:	c2 00 e0 08 	ld  [ %g3 + 8 ], %g1                           
                                               pathnamelen+len,       
                                               flags,pathloc);        
          }                                                           
        } else {                                                      
                                                                      
          if ( !node->Parent )                                        
 200b0e0:	f8 02 20 08 	ld  [ %o0 + 8 ], %i4                           
 200b0e4:	80 a7 20 00 	cmp  %i4, 0                                    
 200b0e8:	02 80 00 73 	be  200b2b4 <IMFS_eval_path+0x348>             
 200b0ec:	01 00 00 00 	nop                                            
            rtems_set_errno_and_return_minus_one( ENOENT );           
                                                                      
          node = node->Parent;                                        
          pathloc->node_access = node;                                
 200b0f0:	f8 26 c0 00 	st  %i4, [ %i3 ]                               
 200b0f4:	d2 07 a0 48 	ld  [ %fp + 0x48 ], %o1                        
                                                                      
  /*                                                                  
   *  Evaluate all tokens until we are done or an error occurs.       
   */                                                                 
                                                                      
  while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
 200b0f8:	10 bf ff a7 	b  200af94 <IMFS_eval_path+0x28>               
 200b0fc:	d0 07 bf f8 	ld  [ %fp + -8 ], %o0                          
      case IMFS_NO_MORE_PATH:                                         
      case IMFS_CURRENT_DIR:                                          
        break;                                                        
                                                                      
      case IMFS_INVALID_TOKEN:                                        
        rtems_set_errno_and_return_minus_one( ENAMETOOLONG );         
 200b100:	40 00 12 28 	call  200f9a0 <__errno>                        
 200b104:	b0 10 3f ff 	mov  -1, %i0                                   
 200b108:	82 10 20 5b 	mov  0x5b, %g1                                 
 200b10c:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200b110:	81 c7 e0 08 	ret                                            
 200b114:	81 e8 00 00 	restore                                        
         *  file system and not the IMFS. For example the IMFS length is
         *  limited. If the token is a parent directory move back up otherwise
         *  set loc to the new fs root node and let them finish evaluating the
         *  path.                                                     
         */                                                           
        if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) {
 200b118:	c2 07 20 5c 	ld  [ %i4 + 0x5c ], %g1                        
 200b11c:	80 a0 60 00 	cmp  %g1, 0                                    
 200b120:	22 bf ff e4 	be,a   200b0b0 <IMFS_eval_path+0x144>          
 200b124:	f8 26 c0 00 	st  %i4, [ %i3 ]                               
          IMFS_skip_separator( pathname, &pathnamelen, &i);           
 200b128:	90 10 00 1d 	mov  %i5, %o0                                  
 200b12c:	92 07 a0 48 	add  %fp, 0x48, %o1                            
 200b130:	7f ff ff 16 	call  200ad88 <IMFS_skip_separator>            
 200b134:	94 07 bf f8 	add  %fp, -8, %o2                              
          if ((pathname[i] != '.') || (pathname[i + 1] != '.')) {     
 200b138:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
 200b13c:	c4 4f 40 01 	ldsb  [ %i5 + %g1 ], %g2                       
 200b140:	80 a0 a0 2e 	cmp  %g2, 0x2e                                 
 200b144:	12 80 00 61 	bne  200b2c8 <IMFS_eval_path+0x35c>            
 200b148:	90 07 40 01 	add  %i5, %g1, %o0                             
 200b14c:	c4 4a 20 01 	ldsb  [ %o0 + 1 ], %g2                         
 200b150:	80 a0 a0 2e 	cmp  %g2, 0x2e                                 
 200b154:	12 80 00 5d 	bne  200b2c8 <IMFS_eval_path+0x35c>            
 200b158:	d2 07 a0 48 	ld  [ %fp + 0x48 ], %o1                        
                                                pathnamelen,          
                                                flags, pathloc );     
          }                                                           
          i += 2;                                                     
          pathnamelen -= 2;                                           
          node = node->Parent;                                        
 200b15c:	f8 07 20 08 	ld  [ %i4 + 8 ], %i4                           
            *pathloc = node->info.directory.mt_fs->mt_fs_root;        
            return (*pathloc->ops->evalpath_h)( &pathname[i],         
                                                pathnamelen,          
                                                flags, pathloc );     
          }                                                           
          i += 2;                                                     
 200b160:	82 00 60 02 	add  %g1, 2, %g1                               
          pathnamelen -= 2;                                           
 200b164:	92 02 7f fe 	add  %o1, -2, %o1                              
            *pathloc = node->info.directory.mt_fs->mt_fs_root;        
            return (*pathloc->ops->evalpath_h)( &pathname[i],         
                                                pathnamelen,          
                                                flags, pathloc );     
          }                                                           
          i += 2;                                                     
 200b168:	c2 27 bf f8 	st  %g1, [ %fp + -8 ]                          
          pathnamelen -= 2;                                           
 200b16c:	d2 27 a0 48 	st  %o1, [ %fp + 0x48 ]                        
        }                                                             
                                                                      
        /*                                                            
         *  Set the node access to the point we have found.           
         */                                                           
        pathloc->node_access = node;                                  
 200b170:	10 bf ff d0 	b  200b0b0 <IMFS_eval_path+0x144>              
 200b174:	f8 26 c0 00 	st  %i4, [ %i3 ]                               
    /*                                                                
     * I cannot move out of this directory without execute permission.
     */                                                               
    if ( type != IMFS_NO_MORE_PATH )                                  
      if ( node->type == IMFS_DIRECTORY )                             
        if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
 200b178:	7f ff ff 3d 	call  200ae6c <IMFS_evaluate_permission>       
 200b17c:	92 10 20 01 	mov  1, %o1                                    
 200b180:	80 a2 20 00 	cmp  %o0, 0                                    
 200b184:	02 80 00 63 	be  200b310 <IMFS_eval_path+0x3a4>             
 200b188:	01 00 00 00 	nop                                            
 200b18c:	10 bf ff aa 	b  200b034 <IMFS_eval_path+0xc8>               
 200b190:	d0 06 c0 00 	ld  [ %i3 ], %o0                               
 200b194:	d2 07 a0 48 	ld  [ %fp + 0x48 ], %o1                        
                                                                      
  /*                                                                  
   *  Evaluate all tokens until we are done or an error occurs.       
   */                                                                 
                                                                      
  while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
 200b198:	10 bf ff 7f 	b  200af94 <IMFS_eval_path+0x28>               
 200b19c:	d0 07 bf f8 	ld  [ %fp + -8 ], %o0                          
      case IMFS_NAME:                                                 
        /*                                                            
         *  If we are at a link follow it.                            
         */                                                           
        if ( node->type == IMFS_HARD_LINK ) {                         
          IMFS_evaluate_hard_link( pathloc, 0 );                      
 200b1a0:	90 10 00 1b 	mov  %i3, %o0                                  
 200b1a4:	7f ff ff 5d 	call  200af18 <IMFS_evaluate_hard_link>        
 200b1a8:	92 10 20 00 	clr  %o1                                       
          node = pathloc->node_access;                                
 200b1ac:	d0 06 c0 00 	ld  [ %i3 ], %o0                               
 200b1b0:	10 bf ff b3 	b  200b07c <IMFS_eval_path+0x110>              
 200b1b4:	c2 02 20 4c 	ld  [ %o0 + 0x4c ], %g1                        
                                                                      
          if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
            break;       /* Throw out the .. in this case */          
          } else {                                                    
            *pathloc = pathloc->mt_entry->mt_point_node;              
            return (*pathloc->ops->evalpath_h)(&(pathname[i-len]),    
 200b1b8:	c4 07 bf fc 	ld  [ %fp + -4 ], %g2                          
           */                                                         
                                                                      
          if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
            break;       /* Throw out the .. in this case */          
          } else {                                                    
            *pathloc = pathloc->mt_entry->mt_point_node;              
 200b1bc:	c2 26 c0 00 	st  %g1, [ %i3 ]                               
 200b1c0:	c2 00 e0 0c 	ld  [ %g3 + 0xc ], %g1                         
            return (*pathloc->ops->evalpath_h)(&(pathname[i-len]),    
 200b1c4:	d0 07 bf f8 	ld  [ %fp + -8 ], %o0                          
           */                                                         
                                                                      
          if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
            break;       /* Throw out the .. in this case */          
          } else {                                                    
            *pathloc = pathloc->mt_entry->mt_point_node;              
 200b1c8:	c2 26 e0 04 	st  %g1, [ %i3 + 4 ]                           
 200b1cc:	c2 00 e0 10 	ld  [ %g3 + 0x10 ], %g1                        
            return (*pathloc->ops->evalpath_h)(&(pathname[i-len]),    
 200b1d0:	90 22 00 02 	sub  %o0, %g2, %o0                             
           */                                                         
                                                                      
          if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
            break;       /* Throw out the .. in this case */          
          } else {                                                    
            *pathloc = pathloc->mt_entry->mt_point_node;              
 200b1d4:	c2 26 e0 08 	st  %g1, [ %i3 + 8 ]                           
 200b1d8:	c2 00 e0 14 	ld  [ %g3 + 0x14 ], %g1                        
 200b1dc:	c2 26 e0 0c 	st  %g1, [ %i3 + 0xc ]                         
            return (*pathloc->ops->evalpath_h)(&(pathname[i-len]),    
 200b1e0:	c2 00 40 00 	ld  [ %g1 ], %g1                               
           */                                                         
                                                                      
          if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
            break;       /* Throw out the .. in this case */          
          } else {                                                    
            *pathloc = pathloc->mt_entry->mt_point_node;              
 200b1e4:	c6 00 e0 18 	ld  [ %g3 + 0x18 ], %g3                        
   */                                                                 
                                                                      
  if ( node->type == IMFS_DIRECTORY ) {                               
    if ( node->info.directory.mt_fs != NULL ) {                       
      *pathloc = node->info.directory.mt_fs->mt_fs_root;              
      return (*pathloc->ops->evalpath_h)( &pathname[i-len],           
 200b1e8:	d2 07 a0 48 	ld  [ %fp + 0x48 ], %o1                        
 200b1ec:	90 07 40 08 	add  %i5, %o0, %o0                             
   *  NOTE: The behavior of stat() on a mount point appears to be questionable.
   */                                                                 
                                                                      
  if ( node->type == IMFS_DIRECTORY ) {                               
    if ( node->info.directory.mt_fs != NULL ) {                       
      *pathloc = node->info.directory.mt_fs->mt_fs_root;              
 200b1f0:	c6 26 e0 10 	st  %g3, [ %i3 + 0x10 ]                        
      return (*pathloc->ops->evalpath_h)( &pathname[i-len],           
 200b1f4:	92 00 80 09 	add  %g2, %o1, %o1                             
 200b1f8:	94 10 00 1a 	mov  %i2, %o2                                  
 200b1fc:	9f c0 40 00 	call  %g1                                      
 200b200:	96 10 00 1b 	mov  %i3, %o3                                  
 200b204:	81 c7 e0 08 	ret                                            
 200b208:	91 e8 00 08 	restore  %g0, %o0, %o0                         
           * was broken.                                              
           */                                                         
          IMFS_assert( node );                                        
                                                                      
        } else if ( node->type == IMFS_SYM_LINK ) {                   
          result = IMFS_evaluate_sym_link( pathloc, 0 );              
 200b20c:	40 00 00 47 	call  200b328 <IMFS_evaluate_sym_link>         
 200b210:	92 10 20 00 	clr  %o1                                       
 200b214:	b0 10 00 08 	mov  %o0, %i0                                  
          /*                                                          
           *  In contrast to a hard link, it is possible to have a broken
           *  symbolic link.                                          
           */                                                         
          node = pathloc->node_access;                                
          if ( result == -1 )                                         
 200b218:	80 a6 3f ff 	cmp  %i0, -1                                   
 200b21c:	02 bf ff 81 	be  200b020 <IMFS_eval_path+0xb4>              <== NEVER TAKEN
 200b220:	d0 06 c0 00 	ld  [ %i3 ], %o0                               
 200b224:	10 bf ff 96 	b  200b07c <IMFS_eval_path+0x110>              
 200b228:	c2 02 20 4c 	ld  [ %o0 + 0x4c ], %g1                        
        /*                                                            
         *  Find the token name in the current node.                  
         */                                                           
        node = IMFS_find_match_in_dir( node, token );                 
        if ( !node )                                                  
          rtems_set_errno_and_return_minus_one( ENOENT );             
 200b22c:	40 00 11 dd 	call  200f9a0 <__errno>                        
 200b230:	b0 10 3f ff 	mov  -1, %i0                                   
 200b234:	82 10 20 02 	mov  2, %g1                                    
 200b238:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200b23c:	81 c7 e0 08 	ret                                            
 200b240:	81 e8 00 00 	restore                                        
   *                                                                  
   *  NOTE: The behavior of stat() on a mount point appears to be questionable.
   */                                                                 
                                                                      
  if ( node->type == IMFS_DIRECTORY ) {                               
    if ( node->info.directory.mt_fs != NULL ) {                       
 200b244:	80 a0 e0 00 	cmp  %g3, 0                                    
 200b248:	02 bf ff 69 	be  200afec <IMFS_eval_path+0x80>              <== ALWAYS TAKEN
 200b24c:	c4 07 bf fc 	ld  [ %fp + -4 ], %g2                          
      *pathloc = node->info.directory.mt_fs->mt_fs_root;              
 200b250:	c2 00 e0 1c 	ld  [ %g3 + 0x1c ], %g1                        <== NOT EXECUTED
 200b254:	c2 26 c0 00 	st  %g1, [ %i3 ]                               <== NOT EXECUTED
 200b258:	c2 00 e0 20 	ld  [ %g3 + 0x20 ], %g1                        <== NOT EXECUTED
      return (*pathloc->ops->evalpath_h)( &pathname[i-len],           
 200b25c:	d0 07 bf f8 	ld  [ %fp + -8 ], %o0                          <== NOT EXECUTED
   *  NOTE: The behavior of stat() on a mount point appears to be questionable.
   */                                                                 
                                                                      
  if ( node->type == IMFS_DIRECTORY ) {                               
    if ( node->info.directory.mt_fs != NULL ) {                       
      *pathloc = node->info.directory.mt_fs->mt_fs_root;              
 200b260:	c2 26 e0 04 	st  %g1, [ %i3 + 4 ]                           <== NOT EXECUTED
 200b264:	c2 00 e0 24 	ld  [ %g3 + 0x24 ], %g1                        <== NOT EXECUTED
      return (*pathloc->ops->evalpath_h)( &pathname[i-len],           
 200b268:	90 22 00 02 	sub  %o0, %g2, %o0                             <== NOT EXECUTED
   *  NOTE: The behavior of stat() on a mount point appears to be questionable.
   */                                                                 
                                                                      
  if ( node->type == IMFS_DIRECTORY ) {                               
    if ( node->info.directory.mt_fs != NULL ) {                       
      *pathloc = node->info.directory.mt_fs->mt_fs_root;              
 200b26c:	c2 26 e0 08 	st  %g1, [ %i3 + 8 ]                           <== NOT EXECUTED
 200b270:	c2 00 e0 28 	ld  [ %g3 + 0x28 ], %g1                        <== NOT EXECUTED
 200b274:	c2 26 e0 0c 	st  %g1, [ %i3 + 0xc ]                         <== NOT EXECUTED
      return (*pathloc->ops->evalpath_h)( &pathname[i-len],           
 200b278:	c2 00 40 00 	ld  [ %g1 ], %g1                               <== NOT EXECUTED
   *  NOTE: The behavior of stat() on a mount point appears to be questionable.
   */                                                                 
                                                                      
  if ( node->type == IMFS_DIRECTORY ) {                               
    if ( node->info.directory.mt_fs != NULL ) {                       
      *pathloc = node->info.directory.mt_fs->mt_fs_root;              
 200b27c:	10 bf ff db 	b  200b1e8 <IMFS_eval_path+0x27c>              <== NOT EXECUTED
 200b280:	c6 00 e0 2c 	ld  [ %g3 + 0x2c ], %g3                        <== NOT EXECUTED
  char              token[ IMFS_NAME_MAX + 1 ];                       
  IMFS_jnode_t     *node;                                             
  int               result;                                           
                                                                      
  if ( !rtems_libio_is_valid_perms( flags ) ) {                       
    rtems_set_errno_and_return_minus_one( EIO );                      
 200b284:	40 00 11 c7 	call  200f9a0 <__errno>                        <== NOT EXECUTED
 200b288:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
 200b28c:	82 10 20 05 	mov  5, %g1                                    <== NOT EXECUTED
 200b290:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
 200b294:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200b298:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      
        /*                                                            
         *  Only a directory can be decended into.                    
         */                                                           
        if ( node->type != IMFS_DIRECTORY )                           
          rtems_set_errno_and_return_minus_one( ENOTDIR );            
 200b29c:	40 00 11 c1 	call  200f9a0 <__errno>                        
 200b2a0:	b0 10 3f ff 	mov  -1, %i0                                   
 200b2a4:	82 10 20 14 	mov  0x14, %g1                                 
 200b2a8:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200b2ac:	81 c7 e0 08 	ret                                            
 200b2b0:	81 e8 00 00 	restore                                        
                                               flags,pathloc);        
          }                                                           
        } else {                                                      
                                                                      
          if ( !node->Parent )                                        
            rtems_set_errno_and_return_minus_one( ENOENT );           
 200b2b4:	40 00 11 bb 	call  200f9a0 <__errno>                        
 200b2b8:	b0 10 3f ff 	mov  -1, %i0                                   
 200b2bc:	f2 22 00 00 	st  %i1, [ %o0 ]                               
 200b2c0:	81 c7 e0 08 	ret                                            
 200b2c4:	81 e8 00 00 	restore                                        
         *  path.                                                     
         */                                                           
        if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) {
          IMFS_skip_separator( pathname, &pathnamelen, &i);           
          if ((pathname[i] != '.') || (pathname[i + 1] != '.')) {     
            *pathloc = node->info.directory.mt_fs->mt_fs_root;        
 200b2c8:	c4 07 20 5c 	ld  [ %i4 + 0x5c ], %g2                        
            return (*pathloc->ops->evalpath_h)( &pathname[i],         
 200b2cc:	d2 07 a0 48 	ld  [ %fp + 0x48 ], %o1                        
         *  path.                                                     
         */                                                           
        if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) {
          IMFS_skip_separator( pathname, &pathnamelen, &i);           
          if ((pathname[i] != '.') || (pathname[i + 1] != '.')) {     
            *pathloc = node->info.directory.mt_fs->mt_fs_root;        
 200b2d0:	c2 00 a0 1c 	ld  [ %g2 + 0x1c ], %g1                        
            return (*pathloc->ops->evalpath_h)( &pathname[i],         
 200b2d4:	94 10 00 1a 	mov  %i2, %o2                                  
         *  path.                                                     
         */                                                           
        if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) {
          IMFS_skip_separator( pathname, &pathnamelen, &i);           
          if ((pathname[i] != '.') || (pathname[i + 1] != '.')) {     
            *pathloc = node->info.directory.mt_fs->mt_fs_root;        
 200b2d8:	c2 26 c0 00 	st  %g1, [ %i3 ]                               
 200b2dc:	c2 00 a0 20 	ld  [ %g2 + 0x20 ], %g1                        
            return (*pathloc->ops->evalpath_h)( &pathname[i],         
 200b2e0:	96 10 00 1b 	mov  %i3, %o3                                  
         *  path.                                                     
         */                                                           
        if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) {
          IMFS_skip_separator( pathname, &pathnamelen, &i);           
          if ((pathname[i] != '.') || (pathname[i + 1] != '.')) {     
            *pathloc = node->info.directory.mt_fs->mt_fs_root;        
 200b2e4:	c2 26 e0 04 	st  %g1, [ %i3 + 4 ]                           
 200b2e8:	c2 00 a0 24 	ld  [ %g2 + 0x24 ], %g1                        
 200b2ec:	c2 26 e0 08 	st  %g1, [ %i3 + 8 ]                           
 200b2f0:	c2 00 a0 28 	ld  [ %g2 + 0x28 ], %g1                        
 200b2f4:	c2 26 e0 0c 	st  %g1, [ %i3 + 0xc ]                         
            return (*pathloc->ops->evalpath_h)( &pathname[i],         
 200b2f8:	c2 00 40 00 	ld  [ %g1 ], %g1                               
         *  path.                                                     
         */                                                           
        if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) {
          IMFS_skip_separator( pathname, &pathnamelen, &i);           
          if ((pathname[i] != '.') || (pathname[i + 1] != '.')) {     
            *pathloc = node->info.directory.mt_fs->mt_fs_root;        
 200b2fc:	c4 00 a0 2c 	ld  [ %g2 + 0x2c ], %g2                        
            return (*pathloc->ops->evalpath_h)( &pathname[i],         
 200b300:	9f c0 40 00 	call  %g1                                      
 200b304:	c4 26 e0 10 	st  %g2, [ %i3 + 0x10 ]                        
 200b308:	81 c7 e0 08 	ret                                            
 200b30c:	91 e8 00 08 	restore  %g0, %o0, %o0                         
     * I cannot move out of this directory without execute permission.
     */                                                               
    if ( type != IMFS_NO_MORE_PATH )                                  
      if ( node->type == IMFS_DIRECTORY )                             
        if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
          rtems_set_errno_and_return_minus_one( EACCES );             
 200b310:	40 00 11 a4 	call  200f9a0 <__errno>                        
 200b314:	b0 10 3f ff 	mov  -1, %i0                                   
 200b318:	82 10 20 0d 	mov  0xd, %g1                                  
 200b31c:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200b320:	81 c7 e0 08 	ret                                            
 200b324:	81 e8 00 00 	restore                                        
                                                                      

0200b494 <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 */ ) {
 200b494:	9d e3 bf 70 	save  %sp, -144, %sp                           
                                                                      
  /*                                                                  
   * This was filled in by the caller and is valid in the             
   * mount table.                                                     
   */                                                                 
  node = pathloc->node_access;                                        
 200b498:	fa 06 40 00 	ld  [ %i1 ], %i5                               
  const char                         *path,       /* IN     */        
  rtems_filesystem_location_info_t   *pathloc,    /* IN/OUT */        
  const char                        **name        /* OUT    */        
                           )                                          
{                                                                     
  int               i = 0;                                            
 200b49c:	c0 27 bf f4 	clr  [ %fp + -12 ]                             
  node = pathloc->node_access;                                        
                                                                      
  /*                                                                  
   * Get the path length.                                             
   */                                                                 
  pathlen = strlen( path );                                           
 200b4a0:	40 00 16 d8 	call  2011000 <strlen>                         
 200b4a4:	90 10 00 18 	mov  %i0, %o0                                  
int IMFS_evaluate_for_make(                                           
  const char                         *path,       /* IN     */        
  rtems_filesystem_location_info_t   *pathloc,    /* IN/OUT */        
  const char                        **name        /* OUT    */        
                           )                                          
{                                                                     
 200b4a8:	b8 10 00 18 	mov  %i0, %i4                                  
  node = pathloc->node_access;                                        
                                                                      
  /*                                                                  
   * Get the path length.                                             
   */                                                                 
  pathlen = strlen( path );                                           
 200b4ac:	92 10 00 08 	mov  %o0, %o1                                  
 200b4b0:	82 10 20 00 	clr  %g1                                       
 200b4b4:	d0 27 bf fc 	st  %o0, [ %fp + -4 ]                          
      case IMFS_UP_DIR:                                               
        /*                                                            
         *  Am I at the root of all filesystems? (chroot'ed?)         
         */                                                           
                                                                      
        if ( pathloc->node_access == rtems_filesystem_root.node_access )
 200b4b8:	37 00 80 73 	sethi  %hi(0x201cc00), %i3                     
   *  Evaluate all tokens until we are done or an error occurs.       
   */                                                                 
                                                                      
  while( !done ) {                                                    
                                                                      
    type = IMFS_get_token( &path[i], pathlen, token, &len );          
 200b4bc:	90 07 00 01 	add  %i4, %g1, %o0                             
 200b4c0:	94 07 bf d0 	add  %fp, -48, %o2                             
 200b4c4:	40 00 01 49 	call  200b9e8 <IMFS_get_token>                 
 200b4c8:	96 07 bf f8 	add  %fp, -8, %o3                              
    pathlen -= len;                                                   
 200b4cc:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
 200b4d0:	c4 07 bf fc 	ld  [ %fp + -4 ], %g2                          
    i +=  len;                                                        
 200b4d4:	c6 07 bf f4 	ld  [ %fp + -12 ], %g3                         
   *  Evaluate all tokens until we are done or an error occurs.       
   */                                                                 
                                                                      
  while( !done ) {                                                    
                                                                      
    type = IMFS_get_token( &path[i], pathlen, token, &len );          
 200b4d8:	a0 10 00 08 	mov  %o0, %l0                                  
    pathlen -= len;                                                   
    i +=  len;                                                        
                                                                      
    if ( !pathloc->node_access )                                      
 200b4dc:	d0 06 40 00 	ld  [ %i1 ], %o0                               
   */                                                                 
                                                                      
  while( !done ) {                                                    
                                                                      
    type = IMFS_get_token( &path[i], pathlen, token, &len );          
    pathlen -= len;                                                   
 200b4e0:	84 20 80 01 	sub  %g2, %g1, %g2                             
    i +=  len;                                                        
 200b4e4:	82 00 c0 01 	add  %g3, %g1, %g1                             
   */                                                                 
                                                                      
  while( !done ) {                                                    
                                                                      
    type = IMFS_get_token( &path[i], pathlen, token, &len );          
    pathlen -= len;                                                   
 200b4e8:	c4 27 bf fc 	st  %g2, [ %fp + -4 ]                          
    i +=  len;                                                        
                                                                      
    if ( !pathloc->node_access )                                      
 200b4ec:	80 a2 20 00 	cmp  %o0, 0                                    
 200b4f0:	02 80 00 a1 	be  200b774 <IMFS_evaluate_for_make+0x2e0>     <== NEVER TAKEN
 200b4f4:	c2 27 bf f4 	st  %g1, [ %fp + -12 ]                         
                                                                      
    /*                                                                
     * I cannot move out of this directory without execute permission.
     */                                                               
                                                                      
    if ( type != IMFS_NO_MORE_PATH )                                  
 200b4f8:	80 a4 20 00 	cmp  %l0, 0                                    
 200b4fc:	32 80 00 08 	bne,a   200b51c <IMFS_evaluate_for_make+0x88>  
 200b500:	c2 07 60 4c 	ld  [ %i5 + 0x4c ], %g1                        
          pathloc->node_access = node;                                
        }                                                             
        break;                                                        
                                                                      
      case IMFS_NO_MORE_PATH:                                         
        rtems_set_errno_and_return_minus_one( EEXIST );               
 200b504:	40 00 11 27 	call  200f9a0 <__errno>                        
 200b508:	b0 10 3f ff 	mov  -1, %i0                                   
 200b50c:	82 10 20 11 	mov  0x11, %g1                                 
 200b510:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200b514:	81 c7 e0 08 	ret                                            
 200b518:	81 e8 00 00 	restore                                        
    /*                                                                
     * I cannot move out of this directory without execute permission.
     */                                                               
                                                                      
    if ( type != IMFS_NO_MORE_PATH )                                  
      if ( node->type == IMFS_DIRECTORY )                             
 200b51c:	80 a0 60 01 	cmp  %g1, 1                                    
 200b520:	22 80 00 5e 	be,a   200b698 <IMFS_evaluate_for_make+0x204>  
 200b524:	90 10 00 19 	mov  %i1, %o0                                  
        if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
          rtems_set_errno_and_return_minus_one( EACCES );             
                                                                      
    node = pathloc->node_access;                                      
                                                                      
    switch( type ) {                                                  
 200b528:	80 a4 20 02 	cmp  %l0, 2                                    
 200b52c:	02 80 00 1a 	be  200b594 <IMFS_evaluate_for_make+0x100>     
 200b530:	c2 06 e2 74 	ld  [ %i3 + 0x274 ], %g1                       
 200b534:	08 80 00 0a 	bleu  200b55c <IMFS_evaluate_for_make+0xc8>    
 200b538:	80 a4 20 00 	cmp  %l0, 0                                    
 200b53c:	80 a4 20 03 	cmp  %l0, 3                                    
 200b540:	02 80 00 26 	be  200b5d8 <IMFS_evaluate_for_make+0x144>     
 200b544:	80 a4 20 04 	cmp  %l0, 4                                    
 200b548:	02 80 00 0d 	be  200b57c <IMFS_evaluate_for_make+0xe8>      <== ALWAYS TAKEN
 200b54c:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         
 200b550:	d2 07 bf fc 	ld  [ %fp + -4 ], %o1                          
 200b554:	10 bf ff da 	b  200b4bc <IMFS_evaluate_for_make+0x28>       
 200b558:	ba 10 00 08 	mov  %o0, %i5                                  
 200b55c:	12 bf ff fd 	bne  200b550 <IMFS_evaluate_for_make+0xbc>     <== ALWAYS TAKEN
 200b560:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         
          pathloc->node_access = node;                                
        }                                                             
        break;                                                        
                                                                      
      case IMFS_NO_MORE_PATH:                                         
        rtems_set_errno_and_return_minus_one( EEXIST );               
 200b564:	40 00 11 0f 	call  200f9a0 <__errno>                        <== NOT EXECUTED
 200b568:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
 200b56c:	82 10 20 11 	mov  0x11, %g1                                 <== NOT EXECUTED
 200b570:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
 200b574:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200b578:	81 e8 00 00 	restore                                        <== NOT EXECUTED
        break;                                                        
                                                                      
      case IMFS_INVALID_TOKEN:                                        
        rtems_set_errno_and_return_minus_one( ENAMETOOLONG );         
 200b57c:	40 00 11 09 	call  200f9a0 <__errno>                        
 200b580:	b0 10 3f ff 	mov  -1, %i0                                   
 200b584:	82 10 20 5b 	mov  0x5b, %g1                                 
 200b588:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200b58c:	81 c7 e0 08 	ret                                            
 200b590:	81 e8 00 00 	restore                                        
      case IMFS_UP_DIR:                                               
        /*                                                            
         *  Am I at the root of all filesystems? (chroot'ed?)         
         */                                                           
                                                                      
        if ( pathloc->node_access == rtems_filesystem_root.node_access )
 200b594:	fa 00 60 18 	ld  [ %g1 + 0x18 ], %i5                        
 200b598:	80 a7 40 08 	cmp  %i5, %o0                                  
 200b59c:	02 80 00 7c 	be  200b78c <IMFS_evaluate_for_make+0x2f8>     
 200b5a0:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         
                                                                      
  if ( !IMFS_evaluate_permission( pathloc, flags ) )                  
    rtems_set_errno_and_return_minus_one( EACCES );                   
                                                                      
  return result;                                                      
}                                                                     
 200b5a4:	c4 06 60 10 	ld  [ %i1 + 0x10 ], %g2                        
                                                                      
        /*                                                            
         * Am I at the root of this mounted filesystem?               
         */                                                           
                                                                      
        if ( rtems_filesystem_is_root_location( pathloc ) ) {         
 200b5a8:	c2 00 a0 1c 	ld  [ %g2 + 0x1c ], %g1                        
 200b5ac:	80 a2 00 01 	cmp  %o0, %g1                                  
 200b5b0:	22 80 00 79 	be,a   200b794 <IMFS_evaluate_for_make+0x300>  
 200b5b4:	c2 00 a0 08 	ld  [ %g2 + 8 ], %g1                           
            *pathloc = pathloc->mt_entry->mt_point_node;              
            return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
          }                                                           
        } else {                                                      
                                                                      
          if ( !node->Parent )                                        
 200b5b8:	fa 02 20 08 	ld  [ %o0 + 8 ], %i5                           
 200b5bc:	80 a7 60 00 	cmp  %i5, 0                                    
 200b5c0:	02 80 00 8e 	be  200b7f8 <IMFS_evaluate_for_make+0x364>     
 200b5c4:	01 00 00 00 	nop                                            
            rtems_set_errno_and_return_minus_one( ENOENT );           
                                                                      
          node = node->Parent;                                        
        }                                                             
                                                                      
        pathloc->node_access = node;                                  
 200b5c8:	fa 26 40 00 	st  %i5, [ %i1 ]                               
 200b5cc:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         
        break;                                                        
 200b5d0:	10 bf ff bb 	b  200b4bc <IMFS_evaluate_for_make+0x28>       
 200b5d4:	d2 07 bf fc 	ld  [ %fp + -4 ], %o1                          
                                                                      
      case IMFS_NAME:                                                 
                                                                      
        if ( node->type == IMFS_HARD_LINK ) {                         
 200b5d8:	c2 02 20 4c 	ld  [ %o0 + 0x4c ], %g1                        
 200b5dc:	80 a0 60 03 	cmp  %g1, 3                                    
 200b5e0:	02 80 00 35 	be  200b6b4 <IMFS_evaluate_for_make+0x220>     
 200b5e4:	80 a0 60 04 	cmp  %g1, 4                                    
                                                                      
          result = IMFS_evaluate_link( pathloc, 0 );                  
          if ( result == -1 )                                         
            return -1;                                                
                                                                      
        } else if ( node->type == IMFS_SYM_LINK ) {                   
 200b5e8:	22 80 00 34 	be,a   200b6b8 <IMFS_evaluate_for_make+0x224>  
 200b5ec:	90 10 00 19 	mov  %i1, %o0                                  
          if ( result == -1 )                                         
            return -1;                                                
        }                                                             
                                                                      
        node = pathloc->node_access;                                  
        if ( !node )                                                  
 200b5f0:	80 a2 20 00 	cmp  %o0, 0                                    
 200b5f4:	02 80 00 7b 	be  200b7e0 <IMFS_evaluate_for_make+0x34c>     <== NEVER TAKEN
 200b5f8:	01 00 00 00 	nop                                            
                                                                      
        /*                                                            
         * Only a directory can be decended into.                     
         */                                                           
                                                                      
        if ( node->type != IMFS_DIRECTORY )                           
 200b5fc:	c2 02 20 4c 	ld  [ %o0 + 0x4c ], %g1                        
 200b600:	80 a0 60 01 	cmp  %g1, 1                                    
 200b604:	12 80 00 77 	bne  200b7e0 <IMFS_evaluate_for_make+0x34c>    
 200b608:	01 00 00 00 	nop                                            
                                                                      
        /*                                                            
         * Find the token name in the present location.               
         */                                                           
                                                                      
        node = IMFS_find_match_in_dir( node, token );                 
 200b60c:	40 00 00 d4 	call  200b95c <IMFS_find_match_in_dir>         
 200b610:	92 07 bf d0 	add  %fp, -48, %o1                             
        /*                                                            
         * If there is no node we have found the name of the node we  
         * wish to create.                                            
         */                                                           
                                                                      
        if ( ! node )                                                 
 200b614:	ba 92 20 00 	orcc  %o0, 0, %i5                              
 200b618:	02 80 00 42 	be  200b720 <IMFS_evaluate_for_make+0x28c>     
 200b61c:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         
          done = true;                                                
        else {                                                        
        if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) {
 200b620:	c2 07 60 4c 	ld  [ %i5 + 0x4c ], %g1                        
 200b624:	80 a0 60 01 	cmp  %g1, 1                                    
 200b628:	22 80 00 06 	be,a   200b640 <IMFS_evaluate_for_make+0x1ac>  
 200b62c:	c2 07 60 5c 	ld  [ %i5 + 0x5c ], %g1                        
 200b630:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         
 200b634:	d2 07 bf fc 	ld  [ %fp + -4 ], %o1                          
            }                                                         
            i += 2;                                                   
            pathlen -= 2;                                             
            node = node->Parent;                                      
          }                                                           
          pathloc->node_access = node;                                
 200b638:	10 bf ff a1 	b  200b4bc <IMFS_evaluate_for_make+0x28>       
 200b63c:	fa 26 40 00 	st  %i5, [ %i1 ]                               
         */                                                           
                                                                      
        if ( ! node )                                                 
          done = true;                                                
        else {                                                        
        if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) {
 200b640:	80 a0 60 00 	cmp  %g1, 0                                    
 200b644:	02 bf ff fb 	be  200b630 <IMFS_evaluate_for_make+0x19c>     
 200b648:	90 10 00 1c 	mov  %i4, %o0                                  
            IMFS_skip_separator( path, &pathlen, &i);                 
 200b64c:	92 07 bf fc 	add  %fp, -4, %o1                              
 200b650:	7f ff fd ce 	call  200ad88 <IMFS_skip_separator>            
 200b654:	94 07 bf f4 	add  %fp, -12, %o2                             
            if ((path[i] != '.') || (path[i + 1] != '.')) {           
 200b658:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         
 200b65c:	c4 4f 00 01 	ldsb  [ %i4 + %g1 ], %g2                       
 200b660:	80 a0 a0 2e 	cmp  %g2, 0x2e                                 
 200b664:	12 80 00 70 	bne  200b824 <IMFS_evaluate_for_make+0x390>    
 200b668:	90 07 00 01 	add  %i4, %g1, %o0                             
 200b66c:	c4 4a 20 01 	ldsb  [ %o0 + 1 ], %g2                         
 200b670:	80 a0 a0 2e 	cmp  %g2, 0x2e                                 
 200b674:	12 80 00 6c 	bne  200b824 <IMFS_evaluate_for_make+0x390>    <== NEVER TAKEN
 200b678:	d2 07 bf fc 	ld  [ %fp + -4 ], %o1                          
                                                     pathloc,         
                                                     name );          
            }                                                         
            i += 2;                                                   
            pathlen -= 2;                                             
            node = node->Parent;                                      
 200b67c:	fa 07 60 08 	ld  [ %i5 + 8 ], %i5                           
              *pathloc = node->info.directory.mt_fs->mt_fs_root;      
              return (*pathloc->ops->evalformake_h)( &path[i],        
                                                     pathloc,         
                                                     name );          
            }                                                         
            i += 2;                                                   
 200b680:	82 00 60 02 	add  %g1, 2, %g1                               
            pathlen -= 2;                                             
 200b684:	92 02 7f fe 	add  %o1, -2, %o1                              
              *pathloc = node->info.directory.mt_fs->mt_fs_root;      
              return (*pathloc->ops->evalformake_h)( &path[i],        
                                                     pathloc,         
                                                     name );          
            }                                                         
            i += 2;                                                   
 200b688:	c2 27 bf f4 	st  %g1, [ %fp + -12 ]                         
            pathlen -= 2;                                             
 200b68c:	d2 27 bf fc 	st  %o1, [ %fp + -4 ]                          
            node = node->Parent;                                      
          }                                                           
          pathloc->node_access = node;                                
 200b690:	10 bf ff 8b 	b  200b4bc <IMFS_evaluate_for_make+0x28>       
 200b694:	fa 26 40 00 	st  %i5, [ %i1 ]                               
     * I cannot move out of this directory without execute permission.
     */                                                               
                                                                      
    if ( type != IMFS_NO_MORE_PATH )                                  
      if ( node->type == IMFS_DIRECTORY )                             
        if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
 200b698:	7f ff fd f5 	call  200ae6c <IMFS_evaluate_permission>       
 200b69c:	92 10 20 01 	mov  1, %o1                                    
 200b6a0:	80 a2 20 00 	cmp  %o0, 0                                    
 200b6a4:	02 80 00 5a 	be  200b80c <IMFS_evaluate_for_make+0x378>     
 200b6a8:	01 00 00 00 	nop                                            
 200b6ac:	10 bf ff 9f 	b  200b528 <IMFS_evaluate_for_make+0x94>       
 200b6b0:	d0 06 40 00 	ld  [ %i1 ], %o0                               
          if ( result == -1 )                                         
            return -1;                                                
                                                                      
        } else if ( node->type == IMFS_SYM_LINK ) {                   
                                                                      
          result = IMFS_evaluate_link( pathloc, 0 );                  
 200b6b4:	90 10 00 19 	mov  %i1, %o0                                  
 200b6b8:	7f ff ff 40 	call  200b3b8 <IMFS_evaluate_link>             
 200b6bc:	92 10 20 00 	clr  %o1                                       
                                                                      
          if ( result == -1 )                                         
 200b6c0:	80 a2 3f ff 	cmp  %o0, -1                                   
 200b6c4:	02 bf ff 94 	be  200b514 <IMFS_evaluate_for_make+0x80>      <== NEVER TAKEN
 200b6c8:	b0 10 00 08 	mov  %o0, %i0                                  
 200b6cc:	10 bf ff c9 	b  200b5f0 <IMFS_evaluate_for_make+0x15c>      
 200b6d0:	d0 06 40 00 	ld  [ %i1 ], %o0                               
                                                                      
  /*                                                                  
   * Verify we can execute and write to this directory.               
   */                                                                 
                                                                      
  result = IMFS_Set_handlers( pathloc );                              
 200b6d4:	7f ff fd c4 	call  200ade4 <IMFS_Set_handlers>              
 200b6d8:	90 10 00 19 	mov  %i1, %o0                                  
                                                                      
  /*                                                                  
   * The returned node must be a directory                            
   */                                                                 
  node = pathloc->node_access;                                        
  if ( node->type != IMFS_DIRECTORY )                                 
 200b6dc:	c2 06 40 00 	ld  [ %i1 ], %g1                               
 200b6e0:	c2 00 60 4c 	ld  [ %g1 + 0x4c ], %g1                        
 200b6e4:	80 a0 60 01 	cmp  %g1, 1                                    
 200b6e8:	12 80 00 3e 	bne  200b7e0 <IMFS_evaluate_for_make+0x34c>    <== NEVER TAKEN
 200b6ec:	b0 10 00 08 	mov  %o0, %i0                                  
                                                                      
  /*                                                                  
   * We must have Write and execute permission on the returned node.  
   */                                                                 
                                                                      
  if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) )   
 200b6f0:	90 10 00 19 	mov  %i1, %o0                                  
 200b6f4:	7f ff fd de 	call  200ae6c <IMFS_evaluate_permission>       
 200b6f8:	92 10 20 03 	mov  3, %o1                                    
 200b6fc:	80 a2 20 00 	cmp  %o0, 0                                    
 200b700:	12 80 00 47 	bne  200b81c <IMFS_evaluate_for_make+0x388>    
 200b704:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( EACCES );                   
 200b708:	40 00 10 a6 	call  200f9a0 <__errno>                        
 200b70c:	b0 10 3f ff 	mov  -1, %i0	! ffffffff <RAM_END+0xfdbfffff>   
 200b710:	82 10 20 0d 	mov  0xd, %g1                                  
 200b714:	c2 22 00 00 	st  %g1, [ %o0 ]                               
                                                                      
  return result;                                                      
}                                                                     
 200b718:	81 c7 e0 08 	ret                                            
 200b71c:	81 e8 00 00 	restore                                        
      case IMFS_CURRENT_DIR:                                          
        break;                                                        
    }                                                                 
  }                                                                   
                                                                      
  *name = &path[ i - len ];                                           
 200b720:	c4 07 bf f8 	ld  [ %fp + -8 ], %g2                          
 200b724:	84 20 40 02 	sub  %g1, %g2, %g2                             
 200b728:	84 07 00 02 	add  %i4, %g2, %g2                             
 200b72c:	c4 26 80 00 	st  %g2, [ %i2 ]                               
  /*                                                                  
   * 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++) {                                      
 200b730:	d0 0f 00 01 	ldub  [ %i4 + %g1 ], %o0                       
 200b734:	91 2a 20 18 	sll  %o0, 0x18, %o0                            
 200b738:	80 a2 20 00 	cmp  %o0, 0                                    
 200b73c:	12 80 00 09 	bne  200b760 <IMFS_evaluate_for_make+0x2cc>    
 200b740:	01 00 00 00 	nop                                            
 200b744:	30 bf ff e4 	b,a   200b6d4 <IMFS_evaluate_for_make+0x240>   
 200b748:	82 00 60 01 	inc  %g1                                       
 200b74c:	d0 0f 00 01 	ldub  [ %i4 + %g1 ], %o0                       
 200b750:	91 2a 20 18 	sll  %o0, 0x18, %o0                            
 200b754:	80 a2 20 00 	cmp  %o0, 0                                    
 200b758:	02 bf ff df 	be  200b6d4 <IMFS_evaluate_for_make+0x240>     
 200b75c:	c2 27 bf f4 	st  %g1, [ %fp + -12 ]                         
    if ( !IMFS_is_separator( path[ i ] ) )                            
 200b760:	7f ff e1 e9 	call  2003f04 <rtems_filesystem_is_separator>  
 200b764:	91 3a 20 18 	sra  %o0, 0x18, %o0                            
 200b768:	80 a2 20 00 	cmp  %o0, 0                                    
 200b76c:	12 bf ff f7 	bne  200b748 <IMFS_evaluate_for_make+0x2b4>    
 200b770:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         
      rtems_set_errno_and_return_minus_one( ENOENT );                 
 200b774:	40 00 10 8b 	call  200f9a0 <__errno>                        
 200b778:	b0 10 3f ff 	mov  -1, %i0                                   
 200b77c:	82 10 20 02 	mov  2, %g1                                    
 200b780:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200b784:	81 c7 e0 08 	ret                                            
 200b788:	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 ) )   
    rtems_set_errno_and_return_minus_one( EACCES );                   
 200b78c:	10 bf ff 4c 	b  200b4bc <IMFS_evaluate_for_make+0x28>       
 200b790:	d2 07 bf fc 	ld  [ %fp + -4 ], %o1                          
          if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
            break;                                                    
                                                                      
          } else {                                                    
            *pathloc = pathloc->mt_entry->mt_point_node;              
            return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
 200b794:	c6 07 bf f8 	ld  [ %fp + -8 ], %g3                          
                                                                      
          if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
            break;                                                    
                                                                      
          } else {                                                    
            *pathloc = pathloc->mt_entry->mt_point_node;              
 200b798:	c2 26 40 00 	st  %g1, [ %i1 ]                               
 200b79c:	c2 00 a0 0c 	ld  [ %g2 + 0xc ], %g1                         
            return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
 200b7a0:	d0 07 bf f4 	ld  [ %fp + -12 ], %o0                         
                                                                      
          if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
            break;                                                    
                                                                      
          } else {                                                    
            *pathloc = pathloc->mt_entry->mt_point_node;              
 200b7a4:	c2 26 60 04 	st  %g1, [ %i1 + 4 ]                           
 200b7a8:	c2 00 a0 10 	ld  [ %g2 + 0x10 ], %g1                        
            return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
 200b7ac:	90 22 00 03 	sub  %o0, %g3, %o0                             
                                                                      
          if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
            break;                                                    
                                                                      
          } else {                                                    
            *pathloc = pathloc->mt_entry->mt_point_node;              
 200b7b0:	c2 26 60 08 	st  %g1, [ %i1 + 8 ]                           
 200b7b4:	c2 00 a0 14 	ld  [ %g2 + 0x14 ], %g1                        
            return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
 200b7b8:	90 07 00 08 	add  %i4, %o0, %o0                             
                                                                      
          if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
            break;                                                    
                                                                      
          } else {                                                    
            *pathloc = pathloc->mt_entry->mt_point_node;              
 200b7bc:	c2 26 60 0c 	st  %g1, [ %i1 + 0xc ]                         
            return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
 200b7c0:	c2 00 60 04 	ld  [ %g1 + 4 ], %g1                           
                                                                      
          if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
            break;                                                    
                                                                      
          } else {                                                    
            *pathloc = pathloc->mt_entry->mt_point_node;              
 200b7c4:	c4 00 a0 18 	ld  [ %g2 + 0x18 ], %g2                        
            return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
 200b7c8:	92 10 00 19 	mov  %i1, %o1                                  
                                                                      
          if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
            break;                                                    
                                                                      
          } else {                                                    
            *pathloc = pathloc->mt_entry->mt_point_node;              
 200b7cc:	c4 26 60 10 	st  %g2, [ %i1 + 0x10 ]                        
            return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
 200b7d0:	9f c0 40 00 	call  %g1                                      
 200b7d4:	94 10 00 1a 	mov  %i2, %o2                                  
 200b7d8:	81 c7 e0 08 	ret                                            
 200b7dc:	91 e8 00 08 	restore  %g0, %o0, %o0                         
  /*                                                                  
   * The returned node must be a directory                            
   */                                                                 
  node = pathloc->node_access;                                        
  if ( node->type != IMFS_DIRECTORY )                                 
    rtems_set_errno_and_return_minus_one( ENOTDIR );                  
 200b7e0:	40 00 10 70 	call  200f9a0 <__errno>                        
 200b7e4:	b0 10 3f ff 	mov  -1, %i0                                   
 200b7e8:	82 10 20 14 	mov  0x14, %g1                                 
 200b7ec:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200b7f0:	81 c7 e0 08 	ret                                            
 200b7f4:	81 e8 00 00 	restore                                        
            return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
          }                                                           
        } else {                                                      
                                                                      
          if ( !node->Parent )                                        
            rtems_set_errno_and_return_minus_one( ENOENT );           
 200b7f8:	40 00 10 6a 	call  200f9a0 <__errno>                        
 200b7fc:	b0 10 3f ff 	mov  -1, %i0                                   
 200b800:	e0 22 00 00 	st  %l0, [ %o0 ]                               
 200b804:	81 c7 e0 08 	ret                                            
 200b808:	81 e8 00 00 	restore                                        
     */                                                               
                                                                      
    if ( type != IMFS_NO_MORE_PATH )                                  
      if ( node->type == IMFS_DIRECTORY )                             
        if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
          rtems_set_errno_and_return_minus_one( EACCES );             
 200b80c:	40 00 10 65 	call  200f9a0 <__errno>                        
 200b810:	b0 10 3f ff 	mov  -1, %i0                                   
 200b814:	82 10 20 0d 	mov  0xd, %g1                                  
 200b818:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200b81c:	81 c7 e0 08 	ret                                            
 200b820:	81 e8 00 00 	restore                                        
          done = true;                                                
        else {                                                        
        if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) {
            IMFS_skip_separator( path, &pathlen, &i);                 
            if ((path[i] != '.') || (path[i + 1] != '.')) {           
              *pathloc = node->info.directory.mt_fs->mt_fs_root;      
 200b824:	c4 07 60 5c 	ld  [ %i5 + 0x5c ], %g2                        
              return (*pathloc->ops->evalformake_h)( &path[i],        
 200b828:	92 10 00 19 	mov  %i1, %o1                                  
          done = true;                                                
        else {                                                        
        if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) {
            IMFS_skip_separator( path, &pathlen, &i);                 
            if ((path[i] != '.') || (path[i + 1] != '.')) {           
              *pathloc = node->info.directory.mt_fs->mt_fs_root;      
 200b82c:	c2 00 a0 1c 	ld  [ %g2 + 0x1c ], %g1                        
              return (*pathloc->ops->evalformake_h)( &path[i],        
 200b830:	94 10 00 1a 	mov  %i2, %o2                                  
          done = true;                                                
        else {                                                        
        if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) {
            IMFS_skip_separator( path, &pathlen, &i);                 
            if ((path[i] != '.') || (path[i + 1] != '.')) {           
              *pathloc = node->info.directory.mt_fs->mt_fs_root;      
 200b834:	c2 26 40 00 	st  %g1, [ %i1 ]                               
 200b838:	c2 00 a0 20 	ld  [ %g2 + 0x20 ], %g1                        
 200b83c:	c2 26 60 04 	st  %g1, [ %i1 + 4 ]                           
 200b840:	c2 00 a0 24 	ld  [ %g2 + 0x24 ], %g1                        
 200b844:	c2 26 60 08 	st  %g1, [ %i1 + 8 ]                           
 200b848:	c2 00 a0 28 	ld  [ %g2 + 0x28 ], %g1                        
 200b84c:	c2 26 60 0c 	st  %g1, [ %i1 + 0xc ]                         
              return (*pathloc->ops->evalformake_h)( &path[i],        
 200b850:	c2 00 60 04 	ld  [ %g1 + 4 ], %g1                           
          done = true;                                                
        else {                                                        
        if (( node->type == IMFS_DIRECTORY ) && ( node->info.directory.mt_fs != NULL )) {
            IMFS_skip_separator( path, &pathlen, &i);                 
            if ((path[i] != '.') || (path[i + 1] != '.')) {           
              *pathloc = node->info.directory.mt_fs->mt_fs_root;      
 200b854:	c4 00 a0 2c 	ld  [ %g2 + 0x2c ], %g2                        
              return (*pathloc->ops->evalformake_h)( &path[i],        
 200b858:	9f c0 40 00 	call  %g1                                      
 200b85c:	c4 26 60 10 	st  %g2, [ %i1 + 0x10 ]                        
 200b860:	81 c7 e0 08 	ret                                            
 200b864:	91 e8 00 08 	restore  %g0, %o0, %o0                         
                                                                      

0200b3b8 <IMFS_evaluate_link>: */ int IMFS_evaluate_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) {
 200b3b8:	9d e3 bf a0 	save  %sp, -96, %sp                            
     */                                                               
                                                                      
    rtems_filesystem_link_counts ++;                                  
    if ( rtems_filesystem_link_counts > MAXSYMLINK ) {                
      rtems_filesystem_link_counts = 0;                               
      rtems_set_errno_and_return_minus_one( ELOOP );                  
 200b3bc:	3b 00 80 73 	sethi  %hi(0x201cc00), %i5                     
 */                                                                   
int IMFS_evaluate_link(                                               
  rtems_filesystem_location_info_t  *node,   /* IN/OUT */             
  int                                flags   /* IN     */             
)                                                                     
{                                                                     
 200b3c0:	b8 10 00 18 	mov  %i0, %i4                                  
     */                                                               
                                                                      
    rtems_filesystem_link_counts ++;                                  
    if ( rtems_filesystem_link_counts > MAXSYMLINK ) {                
      rtems_filesystem_link_counts = 0;                               
      rtems_set_errno_and_return_minus_one( ELOOP );                  
 200b3c4:	10 80 00 07 	b  200b3e0 <IMFS_evaluate_link+0x28>           
 200b3c8:	c2 07 62 74 	ld  [ %i5 + 0x274 ], %g1                       
     */                                                               
                                                                      
    if ( jnode->type == IMFS_HARD_LINK )                              
      result = IMFS_evaluate_hard_link( node, flags );                
                                                                      
    else if (jnode->type == IMFS_SYM_LINK )                           
 200b3cc:	02 80 00 21 	be  200b450 <IMFS_evaluate_link+0x98>          
 200b3d0:	84 00 bf fd 	add  %g2, -3, %g2                              
      result = IMFS_evaluate_sym_link( node, flags );                 
                                                                      
  } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK  ) || 
 200b3d4:	80 a0 a0 01 	cmp  %g2, 1                                    
 200b3d8:	38 80 00 1c 	bgu,a   200b448 <IMFS_evaluate_link+0x90>      <== ALWAYS TAKEN
 200b3dc:	c0 30 60 30 	clrh  [ %g1 + 0x30 ]                           
                                                                      
    /*                                                                
     * Increment and check the link counter.                          
     */                                                               
                                                                      
    rtems_filesystem_link_counts ++;                                  
 200b3e0:	c4 10 60 30 	lduh  [ %g1 + 0x30 ], %g2                      
{                                                                     
  IMFS_jnode_t                     *jnode;                            
  int                               result = 0;                       
                                                                      
  do {                                                                
    jnode  = node->node_access;                                       
 200b3e4:	f6 07 00 00 	ld  [ %i4 ], %i3                               
                                                                      
    /*                                                                
     * Increment and check the link counter.                          
     */                                                               
                                                                      
    rtems_filesystem_link_counts ++;                                  
 200b3e8:	84 00 a0 01 	inc  %g2                                       
 200b3ec:	c4 30 60 30 	sth  %g2, [ %g1 + 0x30 ]                       
    if ( rtems_filesystem_link_counts > MAXSYMLINK ) {                
 200b3f0:	85 28 a0 10 	sll  %g2, 0x10, %g2                            
 200b3f4:	85 30 a0 10 	srl  %g2, 0x10, %g2                            
 200b3f8:	80 a0 a0 05 	cmp  %g2, 5                                    
 200b3fc:	18 80 00 20 	bgu  200b47c <IMFS_evaluate_link+0xc4>         
 200b400:	01 00 00 00 	nop                                            
                                                                      
    /*                                                                
     *  Follow the Link node.                                         
     */                                                               
                                                                      
    if ( jnode->type == IMFS_HARD_LINK )                              
 200b404:	c4 06 e0 4c 	ld  [ %i3 + 0x4c ], %g2                        
 200b408:	80 a0 a0 03 	cmp  %g2, 3                                    
 200b40c:	12 bf ff f0 	bne  200b3cc <IMFS_evaluate_link+0x14>         
 200b410:	80 a0 a0 04 	cmp  %g2, 4                                    
      result = IMFS_evaluate_hard_link( node, flags );                
 200b414:	90 10 00 1c 	mov  %i4, %o0                                  
 200b418:	7f ff fe c0 	call  200af18 <IMFS_evaluate_hard_link>        
 200b41c:	92 10 00 19 	mov  %i1, %o1                                  
 200b420:	b0 10 00 08 	mov  %o0, %i0                                  
                                                                      
    else if (jnode->type == IMFS_SYM_LINK )                           
      result = IMFS_evaluate_sym_link( node, flags );                 
                                                                      
  } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK  ) || 
                                 ( jnode->type == IMFS_HARD_LINK ) ) );
 200b424:	80 a6 20 00 	cmp  %i0, 0                                    
 200b428:	12 80 00 12 	bne  200b470 <IMFS_evaluate_link+0xb8>         
 200b42c:	c2 07 62 74 	ld  [ %i5 + 0x274 ], %g1                       
 200b430:	c4 06 e0 4c 	ld  [ %i3 + 0x4c ], %g2                        
      result = IMFS_evaluate_hard_link( node, flags );                
                                                                      
    else if (jnode->type == IMFS_SYM_LINK )                           
      result = IMFS_evaluate_sym_link( node, flags );                 
                                                                      
  } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK  ) || 
 200b434:	84 00 bf fd 	add  %g2, -3, %g2                              
 200b438:	80 a0 a0 01 	cmp  %g2, 1                                    
 200b43c:	08 bf ff e9 	bleu  200b3e0 <IMFS_evaluate_link+0x28>        <== ALWAYS TAKEN
 200b440:	c2 07 62 74 	ld  [ %i5 + 0x274 ], %g1                       
                                                                      
  /*                                                                  
   * Clear link counter.                                              
   */                                                                 
                                                                      
  rtems_filesystem_link_counts = 0;                                   
 200b444:	c0 30 60 30 	clrh  [ %g1 + 0x30 ]                           <== NOT EXECUTED
                                                                      
  return result;                                                      
}                                                                     
 200b448:	81 c7 e0 08 	ret                                            
 200b44c:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      
    if ( jnode->type == IMFS_HARD_LINK )                              
      result = IMFS_evaluate_hard_link( node, flags );                
                                                                      
    else if (jnode->type == IMFS_SYM_LINK )                           
      result = IMFS_evaluate_sym_link( node, flags );                 
 200b450:	90 10 00 1c 	mov  %i4, %o0                                  
 200b454:	7f ff ff b5 	call  200b328 <IMFS_evaluate_sym_link>         
 200b458:	92 10 00 19 	mov  %i1, %o1                                  
 200b45c:	b0 10 00 08 	mov  %o0, %i0                                  
                                                                      
  } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK  ) || 
                                 ( jnode->type == IMFS_HARD_LINK ) ) );
 200b460:	80 a6 20 00 	cmp  %i0, 0                                    
 200b464:	22 bf ff f4 	be,a   200b434 <IMFS_evaluate_link+0x7c>       
 200b468:	c4 06 e0 4c 	ld  [ %i3 + 0x4c ], %g2                        
 200b46c:	c2 07 62 74 	ld  [ %i5 + 0x274 ], %g1                       
                                                                      
  /*                                                                  
   * Clear link counter.                                              
   */                                                                 
                                                                      
  rtems_filesystem_link_counts = 0;                                   
 200b470:	c0 30 60 30 	clrh  [ %g1 + 0x30 ]                           
                                                                      
  return result;                                                      
}                                                                     
 200b474:	81 c7 e0 08 	ret                                            
 200b478:	81 e8 00 00 	restore                                        
     */                                                               
                                                                      
    rtems_filesystem_link_counts ++;                                  
    if ( rtems_filesystem_link_counts > MAXSYMLINK ) {                
      rtems_filesystem_link_counts = 0;                               
      rtems_set_errno_and_return_minus_one( ELOOP );                  
 200b47c:	40 00 11 49 	call  200f9a0 <__errno>                        
 200b480:	c0 30 60 30 	clrh  [ %g1 + 0x30 ]                           
 200b484:	82 10 20 5c 	mov  0x5c, %g1                                 
 200b488:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200b48c:	81 c7 e0 08 	ret                                            
 200b490:	91 e8 3f ff 	restore  %g0, -1, %o0                          
                                                                      

0200ae6c <IMFS_evaluate_permission>: */ int IMFS_evaluate_permission( rtems_filesystem_location_info_t *node, int flags ) {
 200ae6c:	9d e3 bf a0 	save  %sp, -96, %sp                            
  uid_t         st_uid;                                               
  gid_t         st_gid;                                               
  IMFS_jnode_t *jnode;                                                
  int           flags_to_test;                                        
                                                                      
  if ( !rtems_libio_is_valid_perms( flags ) )                         
 200ae70:	80 8e 7f f8 	btst  -8, %i1                                  
 200ae74:	12 80 00 23 	bne  200af00 <IMFS_evaluate_permission+0x94>   <== NEVER TAKEN
 200ae78:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( EPERM );                    
                                                                      
  jnode = node->node_access;                                          
                                                                      
#if defined(RTEMS_POSIX_API)                                          
  st_uid = geteuid();                                                 
 200ae7c:	40 00 04 21 	call  200bf00 <geteuid>                        
 200ae80:	fa 06 00 00 	ld  [ %i0 ], %i5                               
  st_gid = getegid();                                                 
 200ae84:	40 00 04 1b 	call  200bef0 <getegid>                        
 200ae88:	b8 10 00 08 	mov  %o0, %i4                                  
   * Check if I am owner or a group member or someone else.           
   */                                                                 
                                                                      
  flags_to_test = flags;                                              
                                                                      
  if ( st_uid == jnode->st_uid )                                      
 200ae8c:	c2 17 60 3c 	lduh  [ %i5 + 0x3c ], %g1                      
 200ae90:	b9 2f 20 10 	sll  %i4, 0x10, %i4                            
 200ae94:	b9 37 20 10 	srl  %i4, 0x10, %i4                            
 200ae98:	80 a0 40 1c 	cmp  %g1, %i4                                  
 200ae9c:	02 80 00 0c 	be  200aecc <IMFS_evaluate_permission+0x60>    
 200aea0:	91 2a 20 10 	sll  %o0, 0x10, %o0                            
    flags_to_test <<= 6;                                              
  else if ( st_gid == jnode->st_gid )                                 
 200aea4:	c2 17 60 3e 	lduh  [ %i5 + 0x3e ], %g1                      
 200aea8:	91 32 20 10 	srl  %o0, 0x10, %o0                            
 200aeac:	80 a0 40 08 	cmp  %g1, %o0                                  
 200aeb0:	02 80 00 0e 	be  200aee8 <IMFS_evaluate_permission+0x7c>    <== ALWAYS TAKEN
 200aeb4:	c2 07 60 30 	ld  [ %i5 + 0x30 ], %g1                        
  /*                                                                  
   * If all of the flags are set we have permission                   
   * to do this.                                                      
   */                                                                 
  if ( ( flags_to_test & jnode->st_mode) == flags_to_test )           
    return 1;                                                         
 200aeb8:	b2 2e 40 01 	andn  %i1, %g1, %i1                            <== NOT EXECUTED
 200aebc:	80 a0 00 19 	cmp  %g0, %i1                                  <== NOT EXECUTED
 200aec0:	b0 60 3f ff 	subx  %g0, -1, %i0                             <== NOT EXECUTED
                                                                      
  return 0;                                                           
}                                                                     
 200aec4:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200aec8:	81 e8 00 00 	restore                                        <== 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 )           
 200aecc:	c2 07 60 30 	ld  [ %i5 + 0x30 ], %g1                        
   */                                                                 
                                                                      
  flags_to_test = flags;                                              
                                                                      
  if ( st_uid == jnode->st_uid )                                      
    flags_to_test <<= 6;                                              
 200aed0:	b3 2e 60 06 	sll  %i1, 6, %i1                               
  /*                                                                  
   * If all of the flags are set we have permission                   
   * to do this.                                                      
   */                                                                 
  if ( ( flags_to_test & jnode->st_mode) == flags_to_test )           
    return 1;                                                         
 200aed4:	b2 2e 40 01 	andn  %i1, %g1, %i1                            
 200aed8:	80 a0 00 19 	cmp  %g0, %i1                                  
 200aedc:	b0 60 3f ff 	subx  %g0, -1, %i0                             
                                                                      
  return 0;                                                           
}                                                                     
 200aee0:	81 c7 e0 08 	ret                                            
 200aee4:	81 e8 00 00 	restore                                        
  flags_to_test = flags;                                              
                                                                      
  if ( st_uid == jnode->st_uid )                                      
    flags_to_test <<= 6;                                              
  else if ( st_gid == jnode->st_gid )                                 
    flags_to_test <<= 3;                                              
 200aee8:	b3 2e 60 03 	sll  %i1, 3, %i1                               
  /*                                                                  
   * If all of the flags are set we have permission                   
   * to do this.                                                      
   */                                                                 
  if ( ( flags_to_test & jnode->st_mode) == flags_to_test )           
    return 1;                                                         
 200aeec:	b2 2e 40 01 	andn  %i1, %g1, %i1                            
 200aef0:	80 a0 00 19 	cmp  %g0, %i1                                  
 200aef4:	b0 60 3f ff 	subx  %g0, -1, %i0                             
                                                                      
  return 0;                                                           
}                                                                     
 200aef8:	81 c7 e0 08 	ret                                            
 200aefc:	81 e8 00 00 	restore                                        
  gid_t         st_gid;                                               
  IMFS_jnode_t *jnode;                                                
  int           flags_to_test;                                        
                                                                      
  if ( !rtems_libio_is_valid_perms( flags ) )                         
    rtems_set_errno_and_return_minus_one( EPERM );                    
 200af00:	40 00 12 a8 	call  200f9a0 <__errno>                        <== NOT EXECUTED
 200af04:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
 200af08:	82 10 20 01 	mov  1, %g1                                    <== NOT EXECUTED
 200af0c:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
 200af10:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200af14:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

02003874 <IMFS_fifo_lseek>: rtems_off64_t IMFS_fifo_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) {
 2003874:	9d e3 bf a0 	save  %sp, -96, %sp                            
  off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop);       
 2003878:	c2 06 20 1c 	ld  [ %i0 + 0x1c ], %g1                        
 200387c:	92 10 00 19 	mov  %i1, %o1                                  
 2003880:	d0 00 60 50 	ld  [ %g1 + 0x50 ], %o0                        
 2003884:	98 10 00 18 	mov  %i0, %o4                                  
 2003888:	94 10 00 1a 	mov  %i2, %o2                                  
 200388c:	40 00 2a 83 	call  200e298 <pipe_lseek>                     
 2003890:	96 10 00 1b 	mov  %i3, %o3                                  
 2003894:	b1 3a 20 1f 	sra  %o0, 0x1f, %i0                            
  IMFS_FIFO_RETURN(err);                                              
 2003898:	80 a6 20 00 	cmp  %i0, 0                                    
 200389c:	06 80 00 04 	bl  20038ac <IMFS_fifo_lseek+0x38>             <== ALWAYS TAKEN
 20038a0:	b2 10 00 08 	mov  %o0, %i1                                  
}                                                                     
 20038a4:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 20038a8:	81 e8 00 00 	restore                                        <== NOT EXECUTED
  rtems_off64_t  offset,                                              
  int            whence                                               
)                                                                     
{                                                                     
  off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop);       
  IMFS_FIFO_RETURN(err);                                              
 20038ac:	40 00 37 de 	call  2011824 <__errno>                        
 20038b0:	31 3f ff ff 	sethi  %hi(0xfffffc00), %i0                    
 20038b4:	82 20 00 19 	neg  %i1, %g1                                  
 20038b8:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 20038bc:	b0 16 23 ff 	or  %i0, 0x3ff, %i0                            
}                                                                     
 20038c0:	81 c7 e0 08 	ret                                            
 20038c4:	93 e8 00 18 	restore  %g0, %i0, %o1                         
                                                                      

020038c8 <IMFS_fifo_write>: ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) {
 20038c8:	9d e3 bf 98 	save  %sp, -104, %sp                           
  IMFS_jnode_t *jnode = iop->pathinfo.node_access;                    
 20038cc:	fa 06 20 1c 	ld  [ %i0 + 0x1c ], %i5                        
ssize_t IMFS_fifo_write(                                              
  rtems_libio_t *iop,                                                 
  const void    *buffer,                                              
  size_t         count                                                
)                                                                     
{                                                                     
 20038d0:	96 10 00 18 	mov  %i0, %o3                                  
  IMFS_jnode_t *jnode = iop->pathinfo.node_access;                    
                                                                      
  int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop);        
 20038d4:	d0 07 60 50 	ld  [ %i5 + 0x50 ], %o0                        
 20038d8:	92 10 00 19 	mov  %i1, %o1                                  
 20038dc:	40 00 29 d1 	call  200e020 <pipe_write>                     
 20038e0:	94 10 00 1a 	mov  %i2, %o2                                  
  if (err > 0) {                                                      
 20038e4:	b0 92 20 00 	orcc  %o0, 0, %i0                              
 20038e8:	04 80 00 09 	ble  200390c <IMFS_fifo_write+0x44>            
 20038ec:	90 07 bf f8 	add  %fp, -8, %o0                              
    IMFS_mtime_ctime_update(jnode);                                   
 20038f0:	40 00 04 73 	call  2004abc <gettimeofday>                   
 20038f4:	92 10 20 00 	clr  %o1                                       
 20038f8:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
 20038fc:	c2 27 60 44 	st  %g1, [ %i5 + 0x44 ]                        
 2003900:	c2 27 60 48 	st  %g1, [ %i5 + 0x48 ]                        
 2003904:	81 c7 e0 08 	ret                                            
 2003908:	81 e8 00 00 	restore                                        
  }                                                                   
                                                                      
  IMFS_FIFO_RETURN(err);                                              
 200390c:	80 a6 20 00 	cmp  %i0, 0                                    
 2003910:	12 80 00 04 	bne  2003920 <IMFS_fifo_write+0x58>            <== ALWAYS TAKEN
 2003914:	01 00 00 00 	nop                                            
}                                                                     
 2003918:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200391c:	81 e8 00 00 	restore                                        <== NOT EXECUTED
  int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop);        
  if (err > 0) {                                                      
    IMFS_mtime_ctime_update(jnode);                                   
  }                                                                   
                                                                      
  IMFS_FIFO_RETURN(err);                                              
 2003920:	40 00 37 c1 	call  2011824 <__errno>                        
 2003924:	01 00 00 00 	nop                                            
 2003928:	82 20 00 18 	neg  %i0, %g1                                  
 200392c:	c2 22 00 00 	st  %g1, [ %o0 ]                               
}                                                                     
 2003930:	81 c7 e0 08 	ret                                            
 2003934:	91 e8 3f ff 	restore  %g0, -1, %o0                          
                                                                      

0200b95c <IMFS_find_match_in_dir>: IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) {
 200b95c:	9d e3 bf a0 	save  %sp, -96, %sp                            
                                                                      
  /*                                                                  
   *  Check for "." and ".."                                          
   */                                                                 
                                                                      
  if ( !strcmp( name, dotname ) )                                     
 200b960:	13 00 80 6e 	sethi  %hi(0x201b800), %o1                     
 200b964:	90 10 00 19 	mov  %i1, %o0                                  
 200b968:	40 00 13 b5 	call  201083c <strcmp>                         
 200b96c:	92 12 62 d8 	or  %o1, 0x2d8, %o1                            
 200b970:	80 a2 20 00 	cmp  %o0, 0                                    
 200b974:	02 80 00 19 	be  200b9d8 <IMFS_find_match_in_dir+0x7c>      <== NEVER TAKEN
 200b978:	90 10 00 19 	mov  %i1, %o0                                  
    return directory;                                                 
                                                                      
  if ( !strcmp( name, dotdotname ) )                                  
 200b97c:	13 00 80 6e 	sethi  %hi(0x201b800), %o1                     
 200b980:	40 00 13 af 	call  201083c <strcmp>                         
 200b984:	92 12 62 e0 	or  %o1, 0x2e0, %o1	! 201bae0 <dotdotname>     
 200b988:	80 a2 20 00 	cmp  %o0, 0                                    
 200b98c:	02 80 00 12 	be  200b9d4 <IMFS_find_match_in_dir+0x78>      <== NEVER TAKEN
 200b990:	b8 06 20 54 	add  %i0, 0x54, %i4                            
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
 200b994:	fa 06 20 50 	ld  [ %i0 + 0x50 ], %i5                        
    return directory->Parent;                                         
                                                                      
  the_chain = &directory->info.directory.Entries;                     
                                                                      
  for ( the_node = rtems_chain_first( the_chain );                    
 200b998:	80 a7 40 1c 	cmp  %i5, %i4                                  
 200b99c:	12 80 00 06 	bne  200b9b4 <IMFS_find_match_in_dir+0x58>     
 200b9a0:	b0 10 20 00 	clr  %i0                                       
 200b9a4:	30 80 00 0d 	b,a   200b9d8 <IMFS_find_match_in_dir+0x7c>    
 200b9a8:	80 a7 40 1c 	cmp  %i5, %i4                                  
 200b9ac:	02 80 00 0d 	be  200b9e0 <IMFS_find_match_in_dir+0x84>      
 200b9b0:	01 00 00 00 	nop                                            
        !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 ) )                           
 200b9b4:	92 07 60 0c 	add  %i5, 0xc, %o1                             
 200b9b8:	40 00 13 a1 	call  201083c <strcmp>                         
 200b9bc:	90 10 00 19 	mov  %i1, %o0                                  
 200b9c0:	80 a2 20 00 	cmp  %o0, 0                                    
 200b9c4:	32 bf ff f9 	bne,a   200b9a8 <IMFS_find_match_in_dir+0x4c>  
 200b9c8:	fa 07 40 00 	ld  [ %i5 ], %i5                               
      return the_jnode;                                               
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
 200b9cc:	81 c7 e0 08 	ret                                            
 200b9d0:	91 e8 00 1d 	restore  %g0, %i5, %o0                         
                                                                      
  if ( !strcmp( name, dotname ) )                                     
    return directory;                                                 
                                                                      
  if ( !strcmp( name, dotdotname ) )                                  
    return directory->Parent;                                         
 200b9d4:	f0 06 20 08 	ld  [ %i0 + 8 ], %i0                           <== NOT EXECUTED
 200b9d8:	81 c7 e0 08 	ret                                            
 200b9dc:	81 e8 00 00 	restore                                        
                                                                      
    if ( !strcmp( name, the_jnode->name ) )                           
      return the_jnode;                                               
  }                                                                   
                                                                      
  return 0;                                                           
 200b9e0:	81 c7 e0 08 	ret                                            
 200b9e4:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      

0200b868 <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 ) {
 200b868:	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;     
 200b86c:	f8 06 20 1c 	ld  [ %i0 + 0x1c ], %i4                        
   loc = temp_mt_entry->mt_fs_root;                                   
 200b870:	c8 06 20 20 	ld  [ %i0 + 0x20 ], %g4                        
 200b874:	c6 06 20 24 	ld  [ %i0 + 0x24 ], %g3                        
 200b878:	c4 06 20 28 	ld  [ %i0 + 0x28 ], %g2                        
 200b87c:	c2 06 20 2c 	ld  [ %i0 + 0x2c ], %g1                        
 200b880:	f8 27 bf ec 	st  %i4, [ %fp + -20 ]                         
 200b884:	c8 27 bf f0 	st  %g4, [ %fp + -16 ]                         
 200b888:	c6 27 bf f4 	st  %g3, [ %fp + -12 ]                         
 200b88c:	c4 27 bf f8 	st  %g2, [ %fp + -8 ]                          
 200b890:	c2 27 bf fc 	st  %g1, [ %fp + -4 ]                          
                                                                      
   /*                                                                 
    *  Set this to null to indicate that it is being unmounted.       
    */                                                                
                                                                      
   temp_mt_entry->mt_fs_root.node_access = NULL;                      
 200b894:	c0 26 20 1c 	clr  [ %i0 + 0x1c ]                            
                                                                      
   do {                                                               
     next = jnode->Parent;                                            
 200b898:	fa 07 20 08 	ld  [ %i4 + 8 ], %i5                           
     loc.node_access = (void *)jnode;                                 
 200b89c:	f8 27 bf ec 	st  %i4, [ %fp + -20 ]                         
     IMFS_Set_handlers( &loc );                                       
 200b8a0:	7f ff fd 51 	call  200ade4 <IMFS_Set_handlers>              
 200b8a4:	90 07 bf ec 	add  %fp, -20, %o0                             
                                                                      
     if ( jnode->type != IMFS_DIRECTORY ) {                           
 200b8a8:	c2 07 20 4c 	ld  [ %i4 + 0x4c ], %g1                        
 200b8ac:	80 a0 60 01 	cmp  %g1, 1                                    
 200b8b0:	32 80 00 1d 	bne,a   200b924 <IMFS_fsunmount+0xbc>          <== NEVER TAKEN
 200b8b4:	90 10 20 00 	clr  %o0                                       <== NOT EXECUTED
        result = IMFS_unlink( NULL, &loc );                           
        if (result != 0)                                              
          return -1;                                                  
        jnode = next;                                                 
     } else if ( jnode_has_no_children( jnode ) ) {                   
 200b8b8:	c4 07 20 50 	ld  [ %i4 + 0x50 ], %g2                        
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
 200b8bc:	82 07 20 54 	add  %i4, 0x54, %g1                            
 200b8c0:	80 a0 80 01 	cmp  %g2, %g1                                  
 200b8c4:	02 80 00 17 	be  200b920 <IMFS_fsunmount+0xb8>              
 200b8c8:	80 a7 20 00 	cmp  %i4, 0                                    
        result = IMFS_unlink( NULL, &loc );                           
        if (result != 0)                                              
          return -1;                                                  
        jnode = next;                                                 
     }                                                                
     if ( jnode != NULL ) {                                           
 200b8cc:	02 80 00 1e 	be  200b944 <IMFS_fsunmount+0xdc>              <== NEVER TAKEN
 200b8d0:	01 00 00 00 	nop                                            
       if ( jnode->type == IMFS_DIRECTORY ) {                         
 200b8d4:	c2 07 20 4c 	ld  [ %i4 + 0x4c ], %g1                        
 200b8d8:	80 a0 60 01 	cmp  %g1, 1                                    
 200b8dc:	32 bf ff f0 	bne,a   200b89c <IMFS_fsunmount+0x34>          <== NEVER TAKEN
 200b8e0:	fa 07 20 08 	ld  [ %i4 + 8 ], %i5                           <== NOT EXECUTED
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(        
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_head( the_chain )->next;                    
 200b8e4:	c2 07 20 50 	ld  [ %i4 + 0x50 ], %g1                        
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
 200b8e8:	84 07 20 54 	add  %i4, 0x54, %g2                            
         if ( jnode_has_children( jnode ) )                           
 200b8ec:	80 a0 40 02 	cmp  %g1, %g2                                  
 200b8f0:	02 bf ff ea 	be  200b898 <IMFS_fsunmount+0x30>              
 200b8f4:	80 a0 60 00 	cmp  %g1, 0                                    
           jnode = jnode_get_first_child( jnode );                    
       }                                                              
     }                                                                
   } while (jnode != NULL);                                           
 200b8f8:	02 80 00 17 	be  200b954 <IMFS_fsunmount+0xec>              <== NEVER TAKEN
 200b8fc:	b8 10 00 01 	mov  %g1, %i4                                  
   temp_mt_entry->mt_fs_root.node_access = NULL;                      
                                                                      
   do {                                                               
     next = jnode->Parent;                                            
     loc.node_access = (void *)jnode;                                 
     IMFS_Set_handlers( &loc );                                       
 200b900:	90 07 bf ec 	add  %fp, -20, %o0                             
    */                                                                
                                                                      
   temp_mt_entry->mt_fs_root.node_access = NULL;                      
                                                                      
   do {                                                               
     next = jnode->Parent;                                            
 200b904:	fa 07 20 08 	ld  [ %i4 + 8 ], %i5                           
     loc.node_access = (void *)jnode;                                 
     IMFS_Set_handlers( &loc );                                       
 200b908:	7f ff fd 37 	call  200ade4 <IMFS_Set_handlers>              
 200b90c:	f8 27 bf ec 	st  %i4, [ %fp + -20 ]                         
                                                                      
     if ( jnode->type != IMFS_DIRECTORY ) {                           
 200b910:	c2 07 20 4c 	ld  [ %i4 + 0x4c ], %g1                        
 200b914:	80 a0 60 01 	cmp  %g1, 1                                    
 200b918:	22 bf ff e9 	be,a   200b8bc <IMFS_fsunmount+0x54>           
 200b91c:	c4 07 20 50 	ld  [ %i4 + 0x50 ], %g2                        
        result = IMFS_unlink( NULL, &loc );                           
        if (result != 0)                                              
          return -1;                                                  
        jnode = next;                                                 
     } else if ( jnode_has_no_children( jnode ) ) {                   
        result = IMFS_unlink( NULL, &loc );                           
 200b920:	90 10 20 00 	clr  %o0                                       
 200b924:	7f ff db 8f 	call  2002760 <IMFS_unlink>                    
 200b928:	92 07 bf ec 	add  %fp, -20, %o1                             
        if (result != 0)                                              
 200b92c:	80 a2 20 00 	cmp  %o0, 0                                    
 200b930:	12 80 00 07 	bne  200b94c <IMFS_fsunmount+0xe4>             <== NEVER TAKEN
 200b934:	b8 10 00 1d 	mov  %i5, %i4                                  
          return -1;                                                  
        jnode = next;                                                 
     }                                                                
     if ( jnode != NULL ) {                                           
 200b938:	80 a7 20 00 	cmp  %i4, 0                                    
 200b93c:	32 bf ff e7 	bne,a   200b8d8 <IMFS_fsunmount+0x70>          
 200b940:	c2 07 20 4c 	ld  [ %i4 + 0x4c ], %g1                        
       }                                                              
     }                                                                
   } while (jnode != NULL);                                           
                                                                      
   return 0;                                                          
}                                                                     
 200b944:	81 c7 e0 08 	ret                                            
 200b948:	91 e8 20 00 	restore  %g0, 0, %o0                           
          return -1;                                                  
        jnode = next;                                                 
     } else if ( jnode_has_no_children( jnode ) ) {                   
        result = IMFS_unlink( NULL, &loc );                           
        if (result != 0)                                              
          return -1;                                                  
 200b94c:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200b950:	91 e8 3f ff 	restore  %g0, -1, %o0                          <== NOT EXECUTED
           jnode = jnode_get_first_child( jnode );                    
       }                                                              
     }                                                                
   } while (jnode != NULL);                                           
                                                                      
   return 0;                                                          
 200b954:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200b958:	91 e8 20 00 	restore  %g0, 0, %o0                           <== NOT EXECUTED
                                                                      

0200b9e8 <IMFS_get_token>: const char *path, int pathlen, char *token, int *token_len ) {
 200b9e8:	9d e3 bf a0 	save  %sp, -96, %sp                            
  register int i = 0;                                                 
 200b9ec:	ba 10 20 00 	clr  %i5                                       
                                                                      
  /*                                                                  
   *  Copy a name into token.  (Remember NULL is a token.)            
   */                                                                 
  c = path[i];                                                        
  while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) {
 200b9f0:	10 80 00 08 	b  200ba10 <IMFS_get_token+0x28>               
 200b9f4:	f8 0e 00 00 	ldub  [ %i0 ], %i4                             
 200b9f8:	16 80 00 0c 	bge  200ba28 <IMFS_get_token+0x40>             <== NEVER TAKEN
 200b9fc:	80 a7 60 20 	cmp  %i5, 0x20                                 
                                                                      
     token[i] = c;                                                    
 200ba00:	f8 2e 80 1d 	stb  %i4, [ %i2 + %i5 ]                        
                                                                      
     if ( i == IMFS_NAME_MAX )                                        
 200ba04:	02 80 00 25 	be  200ba98 <IMFS_get_token+0xb0>              
 200ba08:	ba 07 60 01 	inc  %i5                                       
       return IMFS_INVALID_TOKEN;                                     
                                                                      
     if ( !IMFS_is_valid_name_char(c) )                               
       type = IMFS_INVALID_TOKEN;                                     
                                                                      
     c = path [++i];                                                  
 200ba0c:	f8 0e 00 1d 	ldub  [ %i0 + %i5 ], %i4                       
                                                                      
  /*                                                                  
   *  Copy a name into token.  (Remember NULL is a token.)            
   */                                                                 
  c = path[i];                                                        
  while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) {
 200ba10:	a1 2f 20 18 	sll  %i4, 0x18, %l0                            
 200ba14:	7f ff e1 3c 	call  2003f04 <rtems_filesystem_is_separator>  
 200ba18:	91 3c 20 18 	sra  %l0, 0x18, %o0                            
 200ba1c:	80 a2 20 00 	cmp  %o0, 0                                    
 200ba20:	02 bf ff f6 	be  200b9f8 <IMFS_get_token+0x10>              
 200ba24:	80 a7 40 19 	cmp  %i5, %i1                                  
                                                                      
  /*                                                                  
   *  Copy a seperator into token.                                    
   */                                                                 
                                                                      
  if ( i == 0 ) {                                                     
 200ba28:	80 a7 60 00 	cmp  %i5, 0                                    
 200ba2c:	12 80 00 0c 	bne  200ba5c <IMFS_get_token+0x74>             
 200ba30:	82 06 80 1d 	add  %i2, %i5, %g1                             
    token[i] = c;                                                     
                                                                      
    if ( (token[i] != '\0') && pathlen ) {                            
 200ba34:	80 a4 20 00 	cmp  %l0, 0                                    
 200ba38:	02 80 00 1a 	be  200baa0 <IMFS_get_token+0xb8>              
 200ba3c:	f8 2e 80 00 	stb  %i4, [ %i2 ]                              
 200ba40:	80 a6 60 00 	cmp  %i1, 0                                    
 200ba44:	22 80 00 18 	be,a   200baa4 <IMFS_get_token+0xbc>           
 200ba48:	fa 26 c0 00 	st  %i5, [ %i3 ]                               
      i++;                                                            
 200ba4c:	ba 10 20 01 	mov  1, %i5                                    
                                                                      
  /*                                                                  
   *  Set token_len to the number of characters copied.               
   */                                                                 
                                                                      
  *token_len = i;                                                     
 200ba50:	fa 26 c0 00 	st  %i5, [ %i3 ]                               
  if ( i == 0 ) {                                                     
    token[i] = c;                                                     
                                                                      
    if ( (token[i] != '\0') && pathlen ) {                            
      i++;                                                            
      type = IMFS_CURRENT_DIR;                                        
 200ba54:	81 c7 e0 08 	ret                                            
 200ba58:	91 e8 20 01 	restore  %g0, 1, %o0                           
    } else {                                                          
      type = IMFS_NO_MORE_PATH;                                       
    }                                                                 
  } else if (token[ i-1 ] != '\0') {                                  
 200ba5c:	c2 48 7f ff 	ldsb  [ %g1 + -1 ], %g1                        
 200ba60:	80 a0 60 00 	cmp  %g1, 0                                    
 200ba64:	32 80 00 02 	bne,a   200ba6c <IMFS_get_token+0x84>          <== ALWAYS TAKEN
 200ba68:	c0 2e 80 1d 	clrb  [ %i2 + %i5 ]                            
                                                                      
  /*                                                                  
   *  Set token_len to the number of characters copied.               
   */                                                                 
                                                                      
  *token_len = i;                                                     
 200ba6c:	fa 26 c0 00 	st  %i5, [ %i3 ]                               
   *  If we copied something that was not a seperator see if          
   *  it was a special name.                                          
   */                                                                 
                                                                      
  if ( type == IMFS_NAME ) {                                          
    if ( strcmp( token, "..") == 0 )                                  
 200ba70:	90 10 00 1a 	mov  %i2, %o0                                  
 200ba74:	13 00 80 6e 	sethi  %hi(0x201b800), %o1                     
      type = IMFS_UP_DIR;                                             
 200ba78:	b0 10 20 02 	mov  2, %i0                                    
   *  If we copied something that was not a seperator see if          
   *  it was a special name.                                          
   */                                                                 
                                                                      
  if ( type == IMFS_NAME ) {                                          
    if ( strcmp( token, "..") == 0 )                                  
 200ba7c:	40 00 13 70 	call  201083c <strcmp>                         
 200ba80:	92 12 62 f0 	or  %o1, 0x2f0, %o1                            
 200ba84:	80 a2 20 00 	cmp  %o0, 0                                    
 200ba88:	12 80 00 09 	bne  200baac <IMFS_get_token+0xc4>             
 200ba8c:	90 10 00 1a 	mov  %i2, %o0                                  
    else if ( strcmp( token, "." ) == 0 )                             
      type = IMFS_CURRENT_DIR;                                        
  }                                                                   
                                                                      
  return type;                                                        
}                                                                     
 200ba90:	81 c7 e0 08 	ret                                            
 200ba94:	81 e8 00 00 	restore                                        
 200ba98:	81 c7 e0 08 	ret                                            
 200ba9c:	91 e8 20 04 	restore  %g0, 4, %o0                           
                                                                      
  /*                                                                  
   *  Set token_len to the number of characters copied.               
   */                                                                 
                                                                      
  *token_len = i;                                                     
 200baa0:	fa 26 c0 00 	st  %i5, [ %i3 ]                               
                                                                      
    if ( (token[i] != '\0') && pathlen ) {                            
      i++;                                                            
      type = IMFS_CURRENT_DIR;                                        
    } else {                                                          
      type = IMFS_NO_MORE_PATH;                                       
 200baa4:	81 c7 e0 08 	ret                                            
 200baa8:	91 e8 20 00 	restore  %g0, 0, %o0                           
   */                                                                 
                                                                      
  if ( type == IMFS_NAME ) {                                          
    if ( strcmp( token, "..") == 0 )                                  
      type = IMFS_UP_DIR;                                             
    else if ( strcmp( token, "." ) == 0 )                             
 200baac:	13 00 80 6e 	sethi  %hi(0x201b800), %o1                     
 200bab0:	40 00 13 63 	call  201083c <strcmp>                         
 200bab4:	92 12 62 e8 	or  %o1, 0x2e8, %o1	! 201bae8 <dotdotname+0x8> 
 200bab8:	80 a0 00 08 	cmp  %g0, %o0                                  
 200babc:	b0 40 3f ff 	addx  %g0, -1, %i0                             
 200bac0:	b0 0e 3f fe 	and  %i0, -2, %i0                              
 200bac4:	81 c7 e0 08 	ret                                            
 200bac8:	91 ee 20 03 	restore  %i0, 3, %o0                           
                                                                      

0200234c <IMFS_initialize_support>: const rtems_filesystem_operations_table *op_table, const rtems_filesystem_file_handlers_r *memfile_handlers, const rtems_filesystem_file_handlers_r *directory_handlers, const rtems_filesystem_file_handlers_r *fifo_handlers ) {
 200234c:	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,       
 2002350:	03 00 80 73 	sethi  %hi(0x201cc00), %g1                     
 2002354:	c2 00 61 8c 	ld  [ %g1 + 0x18c ], %g1	! 201cd8c <imfs_rq_memfile_bytes_per_block>
                                                                      
  /*                                                                  
   * check, whether requested bytes per block is valid                
   */                                                                 
  for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) {
    if (bit_mask == requested_bytes_per_block) {                      
 2002358:	80 a0 60 10 	cmp  %g1, 0x10                                 
 200235c:	02 80 00 0d 	be  2002390 <IMFS_initialize_support+0x44>     
 2002360:	86 10 20 05 	mov  5, %g3                                    
      is_valid = true;                                                
      break;                                                          
    }                                                                 
    if(bit_mask > requested_bytes_per_block)                          
 2002364:	80 a0 60 0f 	cmp  %g1, 0xf                                  
 2002368:	04 80 00 09 	ble  200238c <IMFS_initialize_support+0x40>    
 200236c:	84 10 20 20 	mov  0x20, %g2                                 
                                                                      
  /*                                                                  
   * check, whether requested bytes per block is valid                
   */                                                                 
  for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) {
    if (bit_mask == requested_bytes_per_block) {                      
 2002370:	80 a0 40 02 	cmp  %g1, %g2                                  
 2002374:	22 80 00 08 	be,a   2002394 <IMFS_initialize_support+0x48>  
 2002378:	05 00 80 75 	sethi  %hi(0x201d400), %g2                     
      is_valid = true;                                                
      break;                                                          
    }                                                                 
    if(bit_mask > requested_bytes_per_block)                          
 200237c:	06 80 00 04 	bl  200238c <IMFS_initialize_support+0x40>     <== NEVER TAKEN
 2002380:	86 80 ff ff 	addcc  %g3, -1, %g3                            
  int bit_mask;                                                       
                                                                      
  /*                                                                  
   * check, whether requested bytes per block is valid                
   */                                                                 
  for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) {
 2002384:	12 bf ff fb 	bne  2002370 <IMFS_initialize_support+0x24>    <== ALWAYS TAKEN
 2002388:	85 28 a0 01 	sll  %g2, 1, %g2                               
    if(bit_mask > requested_bytes_per_block)                          
      break;                                                          
  }                                                                   
  *dest_bytes_per_block = ((is_valid)                                 
			   ? requested_bytes_per_block                                     
			   : default_bytes_per_block);                                     
 200238c:	82 10 20 80 	mov  0x80, %g1                                 
      break;                                                          
    }                                                                 
    if(bit_mask > requested_bytes_per_block)                          
      break;                                                          
  }                                                                   
  *dest_bytes_per_block = ((is_valid)                                 
 2002390:	05 00 80 75 	sethi  %hi(0x201d400), %g2                     
  /*                                                                  
   *  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();
 2002394:	40 00 22 65 	call  200ad28 <IMFS_create_root_node>          
 2002398:	c2 20 a1 78 	st  %g1, [ %g2 + 0x178 ]	! 201d578 <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;
 200239c:	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();
 20023a0:	d0 26 20 1c 	st  %o0, [ %i0 + 0x1c ]                        
 20023a4:	ba 10 00 08 	mov  %o0, %i5                                  
  temp_mt_entry->mt_fs_root.handlers         = directory_handlers;    
 20023a8:	f6 26 20 24 	st  %i3, [ %i0 + 0x24 ]                        
  temp_mt_entry->mt_fs_root.ops              = op_table;              
 20023ac:	f2 26 20 28 	st  %i1, [ %i0 + 0x28 ]                        
  temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS;
 20023b0:	90 06 20 38 	add  %i0, 0x38, %o0                            
 20023b4:	13 00 80 6e 	sethi  %hi(0x201b800), %o1                     
 20023b8:	40 00 37 d6 	call  2010310 <memcpy>                         
 20023bc:	92 12 62 a4 	or  %o1, 0x2a4, %o1	! 201baa4 <IMFS_LIMITS_AND_OPTIONS>
                                                                      
  /*                                                                  
   * Create custom file system data.                                  
   */                                                                 
  fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) );                    
 20023c0:	90 10 20 01 	mov  1, %o0                                    
 20023c4:	40 00 01 c6 	call  2002adc <calloc>                         
 20023c8:	92 10 20 14 	mov  0x14, %o1                                 
  if ( !fs_info ) {                                                   
 20023cc:	80 a2 20 00 	cmp  %o0, 0                                    
 20023d0:	02 80 00 0f 	be  200240c <IMFS_initialize_support+0xc0>     
 20023d4:	03 00 80 75 	sethi  %hi(0x201d400), %g1                     
                                                                      
  /*                                                                  
   * Set st_ino for the root to 1.                                    
   */                                                                 
                                                                      
  fs_info->instance              = imfs_instance++;                   
 20023d8:	c6 00 61 7c 	ld  [ %g1 + 0x17c ], %g3	! 201d57c <imfs_instance.6094>
  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;                                   
 20023dc:	d0 26 20 34 	st  %o0, [ %i0 + 0x34 ]                        
  /*                                                                  
   * Set st_ino for the root to 1.                                    
   */                                                                 
                                                                      
  fs_info->instance              = imfs_instance++;                   
  fs_info->ino_count             = 1;                                 
 20023e0:	84 10 20 01 	mov  1, %g2                                    
                                                                      
  /*                                                                  
   * Set st_ino for the root to 1.                                    
   */                                                                 
                                                                      
  fs_info->instance              = imfs_instance++;                   
 20023e4:	c6 22 00 00 	st  %g3, [ %o0 ]                               
  fs_info->ino_count             = 1;                                 
 20023e8:	c4 22 20 04 	st  %g2, [ %o0 + 4 ]                           
  fs_info->memfile_handlers      = memfile_handlers;                  
 20023ec:	f4 22 20 08 	st  %i2, [ %o0 + 8 ]                           
  fs_info->directory_handlers    = directory_handlers;                
 20023f0:	f6 22 20 0c 	st  %i3, [ %o0 + 0xc ]                         
  fs_info->fifo_handlers         = fifo_handlers;                     
 20023f4:	f8 22 20 10 	st  %i4, [ %o0 + 0x10 ]                        
                                                                      
  /*                                                                  
   * Set st_ino for the root to 1.                                    
   */                                                                 
                                                                      
  fs_info->instance              = imfs_instance++;                   
 20023f8:	86 00 e0 01 	inc  %g3                                       
  fs_info->memfile_handlers      = memfile_handlers;                  
  fs_info->directory_handlers    = directory_handlers;                
  fs_info->fifo_handlers         = fifo_handlers;                     
                                                                      
  jnode = temp_mt_entry->mt_fs_root.node_access;                      
  jnode->st_ino = fs_info->ino_count;                                 
 20023fc:	c4 27 60 38 	st  %g2, [ %i5 + 0x38 ]                        
                                                                      
  /*                                                                  
   * Set st_ino for the root to 1.                                    
   */                                                                 
                                                                      
  fs_info->instance              = imfs_instance++;                   
 2002400:	c6 20 61 7c 	st  %g3, [ %g1 + 0x17c ]                       
                                                                      
  jnode = temp_mt_entry->mt_fs_root.node_access;                      
  jnode->st_ino = fs_info->ino_count;                                 
                                                                      
  return 0;                                                           
}                                                                     
 2002404:	81 c7 e0 08 	ret                                            
 2002408:	91 e8 20 00 	restore  %g0, 0, %o0                           
  /*                                                                  
   * Create custom file system data.                                  
   */                                                                 
  fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) );                    
  if ( !fs_info ) {                                                   
    free(temp_mt_entry->mt_fs_root.node_access);                      
 200240c:	40 00 02 c1 	call  2002f10 <free>                           
 2002410:	90 10 00 1d 	mov  %i5, %o0                                  
    rtems_set_errno_and_return_minus_one(ENOMEM);                     
 2002414:	40 00 35 63 	call  200f9a0 <__errno>                        
 2002418:	b0 10 3f ff 	mov  -1, %i0                                   
 200241c:	82 10 20 0c 	mov  0xc, %g1                                  
 2002420:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2002424:	81 c7 e0 08 	ret                                            
 2002428:	81 e8 00 00 	restore                                        
                                                                      

0200e3ac <IMFS_memfile_extend>: */ MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) {
 200e3ac:	9d e3 bf a0 	save  %sp, -96, %sp                            
    IMFS_assert( the_jnode->type == IMFS_MEMORY_FILE );               
                                                                      
  /*                                                                  
   *  Verify new file size is supported                               
   */                                                                 
  if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )                      
 200e3b0:	03 00 80 75 	sethi  %hi(0x201d400), %g1                     
 200e3b4:	fa 00 61 78 	ld  [ %g1 + 0x178 ], %i5	! 201d578 <imfs_memfile_bytes_per_block>
 200e3b8:	b9 37 60 02 	srl  %i5, 2, %i4                               
 200e3bc:	92 10 00 1c 	mov  %i4, %o1                                  
 200e3c0:	40 00 28 b8 	call  20186a0 <.umul>                          
 200e3c4:	90 07 20 01 	add  %i4, 1, %o0                               
 200e3c8:	92 10 00 1c 	mov  %i4, %o1                                  
 200e3cc:	40 00 28 b5 	call  20186a0 <.umul>                          
 200e3d0:	90 02 20 01 	inc  %o0                                       
 200e3d4:	92 10 00 1d 	mov  %i5, %o1                                  
 200e3d8:	40 00 28 b2 	call  20186a0 <.umul>                          
 200e3dc:	90 02 3f ff 	add  %o0, -1, %o0                              
 200e3e0:	82 10 20 00 	clr  %g1                                       
 200e3e4:	80 a0 40 19 	cmp  %g1, %i1                                  
 200e3e8:	04 80 00 38 	ble  200e4c8 <IMFS_memfile_extend+0x11c>       <== ALWAYS TAKEN
 200e3ec:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  /*                                                                  
   *  Verify new file size is actually larger than current size       
   */                                                                 
  if ( new_length <= the_jnode->info.file.size )                      
 200e3f0:	f6 06 20 50 	ld  [ %i0 + 0x50 ], %i3                        <== NOT EXECUTED
 200e3f4:	80 a6 40 1b 	cmp  %i1, %i3                                  
 200e3f8:	04 80 00 2a 	ble  200e4a0 <IMFS_memfile_extend+0xf4>        <== ALWAYS TAKEN
 200e3fc:	e0 06 20 54 	ld  [ %i0 + 0x54 ], %l0                        
    return 0;                                                         
                                                                      
  /*                                                                  
   *  Calculate the number of range of blocks to allocate             
   */                                                                 
  new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK;             
 200e400:	a3 3f 60 1f 	sra  %i5, 0x1f, %l1                            <== NOT EXECUTED
 200e404:	96 10 00 1d 	mov  %i5, %o3                                  
 200e408:	94 10 00 11 	mov  %l1, %o2                                  
 200e40c:	90 10 00 19 	mov  %i1, %o0                                  
 200e410:	40 00 2a 36 	call  2018ce8 <__divdi3>                       
 200e414:	92 10 00 1a 	mov  %i2, %o1                                  
  old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK;
 200e418:	90 10 00 1b 	mov  %i3, %o0                                  
    return 0;                                                         
                                                                      
  /*                                                                  
   *  Calculate the number of range of blocks to allocate             
   */                                                                 
  new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK;             
 200e41c:	b8 10 00 09 	mov  %o1, %i4                                  
  old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK;
 200e420:	94 10 00 11 	mov  %l1, %o2                                  
 200e424:	92 10 00 10 	mov  %l0, %o1                                  
 200e428:	40 00 2a 30 	call  2018ce8 <__divdi3>                       
 200e42c:	96 10 00 1d 	mov  %i5, %o3                                  
                                                                      
  /*                                                                  
   *  Now allocate each of those blocks.                              
   */                                                                 
  for ( block=old_blocks ; block<=new_blocks ; block++ ) {            
 200e430:	80 a7 00 09 	cmp  %i4, %o1                                  
 200e434:	0a 80 00 21 	bcs  200e4b8 <IMFS_memfile_extend+0x10c>       <== NEVER TAKEN
 200e438:	b6 10 00 09 	mov  %o1, %i3                                  
 200e43c:	10 80 00 05 	b  200e450 <IMFS_memfile_extend+0xa4>          
 200e440:	ba 10 00 09 	mov  %o1, %i5                                  
 200e444:	80 a7 00 1d 	cmp  %i4, %i5                                  
 200e448:	2a 80 00 1d 	bcs,a   200e4bc <IMFS_memfile_extend+0x110>    
 200e44c:	f2 26 20 50 	st  %i1, [ %i0 + 0x50 ]                        
    if ( IMFS_memfile_addblock( the_jnode, block ) ) {                
 200e450:	92 10 00 1d 	mov  %i5, %o1                                  
 200e454:	7f ff ff 39 	call  200e138 <IMFS_memfile_addblock>          
 200e458:	90 10 00 18 	mov  %i0, %o0                                  
 200e45c:	80 a2 20 00 	cmp  %o0, 0                                    
 200e460:	22 bf ff f9 	be,a   200e444 <IMFS_memfile_extend+0x98>      
 200e464:	ba 07 60 01 	inc  %i5                                       
       for ( ; block>=old_blocks ; block-- ) {                        
 200e468:	10 80 00 06 	b  200e480 <IMFS_memfile_extend+0xd4>          
 200e46c:	80 a6 c0 1d 	cmp  %i3, %i5                                  
         IMFS_memfile_remove_block( the_jnode, block );               
 200e470:	90 10 00 18 	mov  %i0, %o0                                  
 200e474:	7f ff ff c2 	call  200e37c <IMFS_memfile_remove_block>      
 200e478:	ba 07 7f ff 	add  %i5, -1, %i5                              
  /*                                                                  
   *  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-- ) {                        
 200e47c:	80 a6 c0 1d 	cmp  %i3, %i5                                  
 200e480:	08 bf ff fc 	bleu  200e470 <IMFS_memfile_extend+0xc4>       
 200e484:	92 10 00 1d 	mov  %i5, %o1                                  
         IMFS_memfile_remove_block( the_jnode, block );               
       }                                                              
       rtems_set_errno_and_return_minus_one( ENOSPC );                
 200e488:	40 00 05 46 	call  200f9a0 <__errno>                        
 200e48c:	b0 10 3f ff 	mov  -1, %i0                                   
 200e490:	82 10 20 1c 	mov  0x1c, %g1                                 
 200e494:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200e498:	81 c7 e0 08 	ret                                            
 200e49c:	81 e8 00 00 	restore                                        
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  /*                                                                  
   *  Verify new file size is actually larger than current size       
   */                                                                 
  if ( new_length <= the_jnode->info.file.size )                      
 200e4a0:	12 80 00 04 	bne  200e4b0 <IMFS_memfile_extend+0x104>       <== NEVER TAKEN
 200e4a4:	80 a6 80 10 	cmp  %i2, %l0                                  
 200e4a8:	18 bf ff d7 	bgu  200e404 <IMFS_memfile_extend+0x58>        
 200e4ac:	a3 3f 60 1f 	sra  %i5, 0x1f, %l1                            
  /*                                                                  
   *  Set the new length of the file.                                 
   */                                                                 
  the_jnode->info.file.size = new_length;                             
  return 0;                                                           
}                                                                     
 200e4b0:	81 c7 e0 08 	ret                                            
 200e4b4:	91 e8 20 00 	restore  %g0, 0, %o0                           
  }                                                                   
                                                                      
  /*                                                                  
   *  Set the new length of the file.                                 
   */                                                                 
  the_jnode->info.file.size = new_length;                             
 200e4b8:	f2 26 20 50 	st  %i1, [ %i0 + 0x50 ]                        <== NOT EXECUTED
 200e4bc:	f4 26 20 54 	st  %i2, [ %i0 + 0x54 ]                        
  return 0;                                                           
 200e4c0:	81 c7 e0 08 	ret                                            
 200e4c4:	91 e8 20 00 	restore  %g0, 0, %o0                           
    IMFS_assert( the_jnode->type == IMFS_MEMORY_FILE );               
                                                                      
  /*                                                                  
   *  Verify new file size is supported                               
   */                                                                 
  if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )                      
 200e4c8:	12 80 00 04 	bne  200e4d8 <IMFS_memfile_extend+0x12c>       <== NEVER TAKEN
 200e4cc:	80 a2 00 1a 	cmp  %o0, %i2                                  
 200e4d0:	38 bf ff c9 	bgu,a   200e3f4 <IMFS_memfile_extend+0x48>     
 200e4d4:	f6 06 20 50 	ld  [ %i0 + 0x50 ], %i3                        
    rtems_set_errno_and_return_minus_one( EINVAL );                   
 200e4d8:	40 00 05 32 	call  200f9a0 <__errno>                        
 200e4dc:	b0 10 3f ff 	mov  -1, %i0                                   
 200e4e0:	82 10 20 16 	mov  0x16, %g1                                 
 200e4e4:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200e4e8:	81 c7 e0 08 	ret                                            
 200e4ec:	81 e8 00 00 	restore                                        
                                                                      

0200dc5c <IMFS_memfile_get_block_pointer>: #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) {
 200dc5c:	9d e3 bf a0 	save  %sp, -96, %sp                            
  my_block = block;                                                   
                                                                      
  /*                                                                  
   *  Is the block number in the simple indirect portion?             
   */                                                                 
  if ( my_block <= LAST_INDIRECT ) {                                  
 200dc60:	03 00 80 75 	sethi  %hi(0x201d400), %g1                     
 200dc64:	fa 00 61 78 	ld  [ %g1 + 0x178 ], %i5	! 201d578 <imfs_memfile_bytes_per_block>
 200dc68:	bb 37 60 02 	srl  %i5, 2, %i5                               
 200dc6c:	82 07 7f ff 	add  %i5, -1, %g1                              
 200dc70:	80 a6 40 01 	cmp  %i1, %g1                                  
 200dc74:	18 80 00 0b 	bgu  200dca0 <IMFS_memfile_get_block_pointer+0x44>
 200dc78:	b8 10 00 18 	mov  %i0, %i4                                  
    p = info->indirect;                                               
                                                                      
    if ( malloc_it ) {                                                
 200dc7c:	80 a6 a0 00 	cmp  %i2, 0                                    
 200dc80:	12 80 00 50 	bne  200ddc0 <IMFS_memfile_get_block_pointer+0x164>
 200dc84:	d0 06 20 58 	ld  [ %i0 + 0x58 ], %o0                        
        info->indirect = p;                                           
      }                                                               
      return &info->indirect[ my_block ];                             
    }                                                                 
                                                                      
    if ( !p )                                                         
 200dc88:	80 a2 20 00 	cmp  %o0, 0                                    
 200dc8c:	02 80 00 64 	be  200de1c <IMFS_memfile_get_block_pointer+0x1c0><== NEVER TAKEN
 200dc90:	b0 10 20 00 	clr  %i0                                       
      return 0;                                                       
                                                                      
    return &info->indirect[ my_block ];                               
 200dc94:	b3 2e 60 02 	sll  %i1, 2, %i1                               
 200dc98:	81 c7 e0 08 	ret                                            
 200dc9c:	91 ea 00 19 	restore  %o0, %i1, %o0                         
                                                                      
  /*                                                                  
   *  Is the block number in the doubly indirect portion?             
   */                                                                 
                                                                      
  if ( my_block <= LAST_DOUBLY_INDIRECT ) {                           
 200dca0:	90 07 60 01 	add  %i5, 1, %o0                               
 200dca4:	40 00 2a 7f 	call  20186a0 <.umul>                          
 200dca8:	92 10 00 1d 	mov  %i5, %o1                                  
 200dcac:	82 02 3f ff 	add  %o0, -1, %g1                              
 200dcb0:	80 a6 40 01 	cmp  %i1, %g1                                  
 200dcb4:	08 80 00 2c 	bleu  200dd64 <IMFS_memfile_get_block_pointer+0x108>
 200dcb8:	b6 10 00 08 	mov  %o0, %i3                                  
  }                                                                   
                                                                      
  /*                                                                  
   *  Is the block number in the triply indirect portion?             
   */                                                                 
  if ( my_block <= LAST_TRIPLY_INDIRECT ) {                           
 200dcbc:	90 02 20 01 	inc  %o0                                       
 200dcc0:	40 00 2a 78 	call  20186a0 <.umul>                          
 200dcc4:	92 10 00 1d 	mov  %i5, %o1                                  
 200dcc8:	90 02 3f ff 	add  %o0, -1, %o0                              
 200dccc:	80 a6 40 08 	cmp  %i1, %o0                                  
 200dcd0:	18 80 00 53 	bgu  200de1c <IMFS_memfile_get_block_pointer+0x1c0><== NEVER TAKEN
 200dcd4:	b0 10 20 00 	clr  %i0                                       
    my_block -= FIRST_TRIPLY_INDIRECT;                                
 200dcd8:	b2 26 40 1b 	sub  %i1, %i3, %i1                             
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
 200dcdc:	92 10 00 1d 	mov  %i5, %o1                                  
 200dce0:	40 00 2b 56 	call  2018a38 <.urem>                          
 200dce4:	90 10 00 19 	mov  %i1, %o0                                  
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
 200dce8:	92 10 00 1d 	mov  %i5, %o1                                  
   *  Is the block number in the triply indirect portion?             
   */                                                                 
  if ( my_block <= LAST_TRIPLY_INDIRECT ) {                           
    my_block -= FIRST_TRIPLY_INDIRECT;                                
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
 200dcec:	a0 10 00 08 	mov  %o0, %l0                                  
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
 200dcf0:	40 00 2a a6 	call  2018788 <.udiv>                          
 200dcf4:	90 10 00 19 	mov  %i1, %o0                                  
    triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS;                       
 200dcf8:	92 10 00 1d 	mov  %i5, %o1                                  
 200dcfc:	40 00 2a a3 	call  2018788 <.udiv>                          
 200dd00:	b6 10 00 08 	mov  %o0, %i3                                  
    doubly %= IMFS_MEMFILE_BLOCK_SLOTS;                               
 200dd04:	92 10 00 1d 	mov  %i5, %o1                                  
  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;                       
 200dd08:	b2 10 00 08 	mov  %o0, %i1                                  
    doubly %= IMFS_MEMFILE_BLOCK_SLOTS;                               
 200dd0c:	40 00 2b 4b 	call  2018a38 <.urem>                          
 200dd10:	90 10 00 1b 	mov  %i3, %o0                                  
                                                                      
    p = info->triply_indirect;                                        
 200dd14:	c2 07 20 60 	ld  [ %i4 + 0x60 ], %g1                        
                                                                      
    if ( malloc_it ) {                                                
 200dd18:	80 a6 a0 00 	cmp  %i2, 0                                    
 200dd1c:	02 80 00 33 	be  200dde8 <IMFS_memfile_get_block_pointer+0x18c>
 200dd20:	ba 10 00 08 	mov  %o0, %i5                                  
      if ( !p ) {                                                     
 200dd24:	80 a0 60 00 	cmp  %g1, 0                                    
 200dd28:	02 80 00 66 	be  200dec0 <IMFS_memfile_get_block_pointer+0x264>
 200dd2c:	01 00 00 00 	nop                                            
        if ( !p )                                                     
           return 0;                                                  
        info->triply_indirect = p;                                    
      }                                                               
                                                                      
      p1 = (block_p *) p[ triply ];                                   
 200dd30:	b3 2e 60 02 	sll  %i1, 2, %i1                               
 200dd34:	c4 00 40 19 	ld  [ %g1 + %i1 ], %g2                         
      if ( !p1 ) {                                                    
 200dd38:	80 a0 a0 00 	cmp  %g2, 0                                    
 200dd3c:	02 80 00 5a 	be  200dea4 <IMFS_memfile_get_block_pointer+0x248>
 200dd40:	b2 00 40 19 	add  %g1, %i1, %i1                             
        if ( !p1 )                                                    
           return 0;                                                  
        p[ triply ] = (block_p) p1;                                   
      }                                                               
                                                                      
      p2 = (block_p *)p1[ doubly ];                                   
 200dd44:	bb 2f 60 02 	sll  %i5, 2, %i5                               
 200dd48:	d0 00 80 1d 	ld  [ %g2 + %i5 ], %o0                         
      if ( !p2 ) {                                                    
 200dd4c:	80 a2 20 00 	cmp  %o0, 0                                    
 200dd50:	02 80 00 47 	be  200de6c <IMFS_memfile_get_block_pointer+0x210>
 200dd54:	ba 00 80 1d 	add  %g2, %i5, %i5                             
        p2 = memfile_alloc_block();                                   
        if ( !p2 )                                                    
           return 0;                                                  
        p1[ doubly ] = (block_p) p2;                                  
      }                                                               
      return (block_p *)&p2[ singly ];                                
 200dd58:	b1 2c 20 02 	sll  %l0, 2, %i0                               
 200dd5c:	81 c7 e0 08 	ret                                            
 200dd60:	91 ea 00 18 	restore  %o0, %i0, %o0                         
  /*                                                                  
   *  Is the block number in the doubly indirect portion?             
   */                                                                 
                                                                      
  if ( my_block <= LAST_DOUBLY_INDIRECT ) {                           
    my_block -= FIRST_DOUBLY_INDIRECT;                                
 200dd64:	b2 26 40 1d 	sub  %i1, %i5, %i1                             
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
 200dd68:	92 10 00 1d 	mov  %i5, %o1                                  
 200dd6c:	40 00 2b 33 	call  2018a38 <.urem>                          
 200dd70:	90 10 00 19 	mov  %i1, %o0                                  
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
 200dd74:	92 10 00 1d 	mov  %i5, %o1                                  
   */                                                                 
                                                                      
  if ( my_block <= LAST_DOUBLY_INDIRECT ) {                           
    my_block -= FIRST_DOUBLY_INDIRECT;                                
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
 200dd78:	b6 10 00 08 	mov  %o0, %i3                                  
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
 200dd7c:	40 00 2a 83 	call  2018788 <.udiv>                          
 200dd80:	90 10 00 19 	mov  %i1, %o0                                  
                                                                      
    p = info->doubly_indirect;                                        
 200dd84:	c2 06 20 5c 	ld  [ %i0 + 0x5c ], %g1                        
    if ( malloc_it ) {                                                
 200dd88:	80 a6 a0 00 	cmp  %i2, 0                                    
 200dd8c:	02 80 00 26 	be  200de24 <IMFS_memfile_get_block_pointer+0x1c8>
 200dd90:	ba 10 00 08 	mov  %o0, %i5                                  
                                                                      
      if ( !p ) {                                                     
 200dd94:	80 a0 60 00 	cmp  %g1, 0                                    
 200dd98:	02 80 00 3c 	be  200de88 <IMFS_memfile_get_block_pointer+0x22c>
 200dd9c:	01 00 00 00 	nop                                            
        if ( !p )                                                     
           return 0;                                                  
        info->doubly_indirect = p;                                    
      }                                                               
                                                                      
      p1 = (block_p *)p[ doubly ];                                    
 200dda0:	bb 2f 60 02 	sll  %i5, 2, %i5                               
 200dda4:	d0 00 40 1d 	ld  [ %g1 + %i5 ], %o0                         
      if ( !p1 ) {                                                    
 200dda8:	80 a2 20 00 	cmp  %o0, 0                                    
 200ddac:	02 80 00 29 	be  200de50 <IMFS_memfile_get_block_pointer+0x1f4>
 200ddb0:	ba 00 40 1d 	add  %g1, %i5, %i5                             
        if ( !p1 )                                                    
           return 0;                                                  
        p[ doubly ] = (block_p) p1;                                   
      }                                                               
                                                                      
      return (block_p *)&p1[ singly ];                                
 200ddb4:	b1 2e e0 02 	sll  %i3, 2, %i0                               
 200ddb8:	81 c7 e0 08 	ret                                            
 200ddbc:	91 ea 00 18 	restore  %o0, %i0, %o0                         
  if ( my_block <= LAST_INDIRECT ) {                                  
    p = info->indirect;                                               
                                                                      
    if ( malloc_it ) {                                                
                                                                      
      if ( !p ) {                                                     
 200ddc0:	80 a2 20 00 	cmp  %o0, 0                                    
 200ddc4:	32 bf ff b5 	bne,a   200dc98 <IMFS_memfile_get_block_pointer+0x3c>
 200ddc8:	b3 2e 60 02 	sll  %i1, 2, %i1                               
        p = memfile_alloc_block();                                    
 200ddcc:	7f ff ff 97 	call  200dc28 <memfile_alloc_block>            
 200ddd0:	b0 10 20 00 	clr  %i0                                       
        if ( !p )                                                     
 200ddd4:	80 a2 20 00 	cmp  %o0, 0                                    
 200ddd8:	02 80 00 11 	be  200de1c <IMFS_memfile_get_block_pointer+0x1c0><== NEVER TAKEN
 200dddc:	01 00 00 00 	nop                                            
           return 0;                                                  
        info->indirect = p;                                           
 200dde0:	10 bf ff ad 	b  200dc94 <IMFS_memfile_get_block_pointer+0x38>
 200dde4:	d0 27 20 58 	st  %o0, [ %i4 + 0x58 ]                        
        p1[ doubly ] = (block_p) p2;                                  
      }                                                               
      return (block_p *)&p2[ singly ];                                
    }                                                                 
                                                                      
    if ( !p )                                                         
 200dde8:	80 a0 60 00 	cmp  %g1, 0                                    
 200ddec:	02 80 00 0c 	be  200de1c <IMFS_memfile_get_block_pointer+0x1c0><== NEVER TAKEN
 200ddf0:	b3 2e 60 02 	sll  %i1, 2, %i1                               
      return 0;                                                       
                                                                      
    p1 = (block_p *) p[ triply ];                                     
 200ddf4:	c2 00 40 19 	ld  [ %g1 + %i1 ], %g1                         
    if ( !p1 )                                                        
 200ddf8:	80 a0 60 00 	cmp  %g1, 0                                    
 200ddfc:	02 80 00 08 	be  200de1c <IMFS_memfile_get_block_pointer+0x1c0><== NEVER TAKEN
 200de00:	bb 2a 20 02 	sll  %o0, 2, %i5                               
      return 0;                                                       
                                                                      
    p2 = (block_p *)p1[ doubly ];                                     
 200de04:	c2 00 40 1d 	ld  [ %g1 + %i5 ], %g1                         
    if ( !p2 )                                                        
 200de08:	80 a0 60 00 	cmp  %g1, 0                                    
 200de0c:	02 80 00 04 	be  200de1c <IMFS_memfile_get_block_pointer+0x1c0><== NEVER TAKEN
 200de10:	01 00 00 00 	nop                                            
      return 0;                                                       
                                                                      
    return (block_p *)&p2[ singly ];                                  
 200de14:	b1 2c 20 02 	sll  %l0, 2, %i0                               
 200de18:	b0 00 40 18 	add  %g1, %i0, %i0                             
                                                                      
  /*                                                                  
   *  This means the requested block number is out of range.          
   */                                                                 
  return 0;                                                           
}                                                                     
 200de1c:	81 c7 e0 08 	ret                                            
 200de20:	81 e8 00 00 	restore                                        
      }                                                               
                                                                      
      return (block_p *)&p1[ singly ];                                
    }                                                                 
                                                                      
    if ( !p )                                                         
 200de24:	80 a0 60 00 	cmp  %g1, 0                                    
 200de28:	02 bf ff fd 	be  200de1c <IMFS_memfile_get_block_pointer+0x1c0><== NEVER TAKEN
 200de2c:	b0 10 20 00 	clr  %i0                                       
      return 0;                                                       
                                                                      
    p = (block_p *)p[ doubly ];                                       
 200de30:	bb 2a 20 02 	sll  %o0, 2, %i5                               
 200de34:	c2 00 40 1d 	ld  [ %g1 + %i5 ], %g1                         
    if ( !p )                                                         
 200de38:	80 a0 60 00 	cmp  %g1, 0                                    
 200de3c:	02 bf ff f8 	be  200de1c <IMFS_memfile_get_block_pointer+0x1c0><== NEVER TAKEN
 200de40:	01 00 00 00 	nop                                            
      return 0;                                                       
                                                                      
    return (block_p *)&p[ singly ];                                   
 200de44:	b1 2e e0 02 	sll  %i3, 2, %i0                               
 200de48:	81 c7 e0 08 	ret                                            
 200de4c:	91 e8 40 18 	restore  %g1, %i0, %o0                         
        info->doubly_indirect = p;                                    
      }                                                               
                                                                      
      p1 = (block_p *)p[ doubly ];                                    
      if ( !p1 ) {                                                    
        p1 = memfile_alloc_block();                                   
 200de50:	7f ff ff 76 	call  200dc28 <memfile_alloc_block>            
 200de54:	b0 10 20 00 	clr  %i0                                       
        if ( !p1 )                                                    
 200de58:	80 a2 20 00 	cmp  %o0, 0                                    
 200de5c:	02 bf ff f0 	be  200de1c <IMFS_memfile_get_block_pointer+0x1c0><== NEVER TAKEN
 200de60:	01 00 00 00 	nop                                            
           return 0;                                                  
        p[ doubly ] = (block_p) p1;                                   
 200de64:	10 bf ff d4 	b  200ddb4 <IMFS_memfile_get_block_pointer+0x158>
 200de68:	d0 27 40 00 	st  %o0, [ %i5 ]                               
        p[ triply ] = (block_p) p1;                                   
      }                                                               
                                                                      
      p2 = (block_p *)p1[ doubly ];                                   
      if ( !p2 ) {                                                    
        p2 = memfile_alloc_block();                                   
 200de6c:	7f ff ff 6f 	call  200dc28 <memfile_alloc_block>            
 200de70:	b0 10 20 00 	clr  %i0                                       
        if ( !p2 )                                                    
 200de74:	80 a2 20 00 	cmp  %o0, 0                                    
 200de78:	02 bf ff e9 	be  200de1c <IMFS_memfile_get_block_pointer+0x1c0><== NEVER TAKEN
 200de7c:	01 00 00 00 	nop                                            
           return 0;                                                  
        p1[ doubly ] = (block_p) p2;                                  
 200de80:	10 bf ff b6 	b  200dd58 <IMFS_memfile_get_block_pointer+0xfc>
 200de84:	d0 27 40 00 	st  %o0, [ %i5 ]                               
                                                                      
    p = info->doubly_indirect;                                        
    if ( malloc_it ) {                                                
                                                                      
      if ( !p ) {                                                     
        p = memfile_alloc_block();                                    
 200de88:	7f ff ff 68 	call  200dc28 <memfile_alloc_block>            
 200de8c:	b0 10 20 00 	clr  %i0                                       
        if ( !p )                                                     
 200de90:	80 a2 20 00 	cmp  %o0, 0                                    
 200de94:	02 bf ff e2 	be  200de1c <IMFS_memfile_get_block_pointer+0x1c0><== NEVER TAKEN
 200de98:	82 10 00 08 	mov  %o0, %g1                                  
           return 0;                                                  
        info->doubly_indirect = p;                                    
 200de9c:	10 bf ff c1 	b  200dda0 <IMFS_memfile_get_block_pointer+0x144>
 200dea0:	d0 27 20 5c 	st  %o0, [ %i4 + 0x5c ]                        
        info->triply_indirect = p;                                    
      }                                                               
                                                                      
      p1 = (block_p *) p[ triply ];                                   
      if ( !p1 ) {                                                    
        p1 = memfile_alloc_block();                                   
 200dea4:	7f ff ff 61 	call  200dc28 <memfile_alloc_block>            
 200dea8:	b0 10 20 00 	clr  %i0                                       
        if ( !p1 )                                                    
 200deac:	80 a2 20 00 	cmp  %o0, 0                                    
 200deb0:	02 bf ff db 	be  200de1c <IMFS_memfile_get_block_pointer+0x1c0><== NEVER TAKEN
 200deb4:	84 10 00 08 	mov  %o0, %g2                                  
           return 0;                                                  
        p[ triply ] = (block_p) p1;                                   
 200deb8:	10 bf ff a3 	b  200dd44 <IMFS_memfile_get_block_pointer+0xe8>
 200debc:	d0 26 40 00 	st  %o0, [ %i1 ]                               
                                                                      
    p = info->triply_indirect;                                        
                                                                      
    if ( malloc_it ) {                                                
      if ( !p ) {                                                     
        p = memfile_alloc_block();                                    
 200dec0:	7f ff ff 5a 	call  200dc28 <memfile_alloc_block>            
 200dec4:	01 00 00 00 	nop                                            
        if ( !p )                                                     
 200dec8:	82 92 20 00 	orcc  %o0, 0, %g1                              
 200decc:	02 bf ff d4 	be  200de1c <IMFS_memfile_get_block_pointer+0x1c0><== NEVER TAKEN
 200ded0:	01 00 00 00 	nop                                            
           return 0;                                                  
        info->triply_indirect = p;                                    
 200ded4:	10 bf ff 97 	b  200dd30 <IMFS_memfile_get_block_pointer+0xd4>
 200ded8:	c2 27 20 60 	st  %g1, [ %i4 + 0x60 ]                        
                                                                      

0200dedc <IMFS_memfile_read>: IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) {
 200dedc:	9d e3 bf 98 	save  %sp, -104, %sp                           
   *  Linear files (as created from a tar file are easier to handle   
   *  than block files).                                              
   */                                                                 
  my_length = length;                                                 
                                                                      
  if (the_jnode->type == IMFS_LINEAR_FILE) {                          
 200dee0:	c2 06 20 4c 	ld  [ %i0 + 0x4c ], %g1                        
   IMFS_jnode_t    *the_jnode,                                        
   off_t            start,                                            
   unsigned char   *destination,                                      
   unsigned int     length                                            
)                                                                     
{                                                                     
 200dee4:	ba 10 00 18 	mov  %i0, %i5                                  
 200dee8:	a0 10 00 19 	mov  %i1, %l0                                  
   *  Linear files (as created from a tar file are easier to handle   
   *  than block files).                                              
   */                                                                 
  my_length = length;                                                 
                                                                      
  if (the_jnode->type == IMFS_LINEAR_FILE) {                          
 200deec:	80 a0 60 06 	cmp  %g1, 6                                    
 200def0:	02 80 00 64 	be  200e080 <IMFS_memfile_read+0x1a4>          
 200def4:	a2 10 00 1a 	mov  %i2, %l1                                  
  /*                                                                  
   *  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 )                        
 200def8:	c4 06 20 50 	ld  [ %i0 + 0x50 ], %g2                        
                                                                      
  /*                                                                  
   *  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;                                         
 200defc:	82 10 00 1a 	mov  %i2, %g1                                  
  if ( last_byte > the_jnode->info.file.size )                        
 200df00:	86 10 20 00 	clr  %g3                                       
 200df04:	c8 06 20 54 	ld  [ %i0 + 0x54 ], %g4                        
 200df08:	80 a0 c0 02 	cmp  %g3, %g2                                  
 200df0c:	04 80 00 41 	ble  200e010 <IMFS_memfile_read+0x134>         <== ALWAYS TAKEN
 200df10:	b4 07 00 1a 	add  %i4, %i2, %i2                             
    my_length = the_jnode->info.file.size - start;                    
 200df14:	b8 21 00 01 	sub  %g4, %g1, %i4                             <== NOT EXECUTED
   */                                                                 
                                                                      
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
 200df18:	33 00 80 75 	sethi  %hi(0x201d400), %i1                     <== NOT EXECUTED
 200df1c:	f4 06 61 78 	ld  [ %i1 + 0x178 ], %i2	! 201d578 <imfs_memfile_bytes_per_block>
 200df20:	90 10 00 10 	mov  %l0, %o0                                  
 200df24:	b1 3e a0 1f 	sra  %i2, 0x1f, %i0                            
 200df28:	92 10 00 11 	mov  %l1, %o1                                  
 200df2c:	94 10 00 18 	mov  %i0, %o2                                  
 200df30:	40 00 2c 54 	call  2019080 <__moddi3>                       
 200df34:	96 10 00 1a 	mov  %i2, %o3                                  
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
 200df38:	90 10 00 10 	mov  %l0, %o0                                  
   */                                                                 
                                                                      
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
 200df3c:	a4 10 00 09 	mov  %o1, %l2                                  
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
 200df40:	94 10 00 18 	mov  %i0, %o2                                  
 200df44:	92 10 00 11 	mov  %l1, %o1                                  
 200df48:	40 00 2b 68 	call  2018ce8 <__divdi3>                       
 200df4c:	96 10 00 1a 	mov  %i2, %o3                                  
  unsigned int         last_byte;                                     
  unsigned int         copied;                                        
  unsigned int         start_offset;                                  
  unsigned char       *dest;                                          
                                                                      
  dest = destination;                                                 
 200df50:	a2 10 00 1b 	mov  %i3, %l1                                  
                                                                      
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
 200df54:	a0 10 00 09 	mov  %o1, %l0                                  
  if ( start_offset )  {                                              
 200df58:	80 a4 a0 00 	cmp  %l2, 0                                    
 200df5c:	02 80 00 14 	be  200dfac <IMFS_memfile_read+0xd0>           
 200df60:	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 );
 200df64:	90 10 00 1d 	mov  %i5, %o0                                  
 200df68:	7f ff ff 3d 	call  200dc5c <IMFS_memfile_get_block_pointer> 
 200df6c:	94 10 20 00 	clr  %o2                                       
    if ( !block_ptr )                                                 
 200df70:	80 a2 20 00 	cmp  %o0, 0                                    
 200df74:	02 80 00 25 	be  200e008 <IMFS_memfile_read+0x12c>          <== NEVER TAKEN
 200df78:	b4 26 80 12 	sub  %i2, %l2, %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;                       
  if ( start_offset )  {                                              
    to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset;            
 200df7c:	80 a7 00 1a 	cmp  %i4, %i2                                  
 200df80:	18 80 00 53 	bgu  200e0cc <IMFS_memfile_read+0x1f0>         
 200df84:	b0 10 00 1c 	mov  %i4, %i0                                  
    if ( to_copy > my_length )                                        
      to_copy = my_length;                                            
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
    if ( !block_ptr )                                                 
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ start_offset ], to_copy );           
 200df88:	d2 02 00 00 	ld  [ %o0 ], %o1                               
 200df8c:	94 10 00 18 	mov  %i0, %o2                                  
 200df90:	90 10 00 1b 	mov  %i3, %o0                                  
 200df94:	40 00 08 df 	call  2010310 <memcpy>                         
 200df98:	92 02 40 12 	add  %o1, %l2, %o1                             
    dest += to_copy;                                                  
    block++;                                                          
    my_length -= to_copy;                                             
 200df9c:	f4 06 61 78 	ld  [ %i1 + 0x178 ], %i2                       
      to_copy = my_length;                                            
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
    if ( !block_ptr )                                                 
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ start_offset ], to_copy );           
    dest += to_copy;                                                  
 200dfa0:	a2 06 c0 18 	add  %i3, %i0, %l1                             
    block++;                                                          
 200dfa4:	a0 04 20 01 	inc  %l0                                       
    my_length -= to_copy;                                             
 200dfa8:	b8 27 00 18 	sub  %i4, %i0, %i4                             
                                                                      
  /*                                                                  
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
 200dfac:	80 a7 00 1a 	cmp  %i4, %i2                                  
 200dfb0:	1a 80 00 0e 	bcc  200dfe8 <IMFS_memfile_read+0x10c>         
 200dfb4:	94 10 20 00 	clr  %o2                                       
  /*                                                                  
   *  Phase 3: possibly the first part of one block                   
   */                                                                 
  IMFS_assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK );            
                                                                      
  if ( my_length ) {                                                  
 200dfb8:	10 80 00 1e 	b  200e030 <IMFS_memfile_read+0x154>           
 200dfbc:	80 a7 20 00 	cmp  %i4, 0                                    
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
    if ( !block_ptr )                                                 
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ 0 ], to_copy );                      
 200dfc0:	d2 00 40 00 	ld  [ %g1 ], %o1                               
 200dfc4:	40 00 08 d3 	call  2010310 <memcpy>                         
 200dfc8:	b8 27 00 1a 	sub  %i4, %i2, %i4                             
                                                                      
  /*                                                                  
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
 200dfcc:	c2 06 61 78 	ld  [ %i1 + 0x178 ], %g1                       
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
    if ( !block_ptr )                                                 
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ 0 ], to_copy );                      
    dest += to_copy;                                                  
 200dfd0:	a2 04 40 1a 	add  %l1, %i2, %l1                             
    block++;                                                          
 200dfd4:	a0 04 20 01 	inc  %l0                                       
                                                                      
  /*                                                                  
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
 200dfd8:	80 a0 40 1c 	cmp  %g1, %i4                                  
 200dfdc:	18 80 00 14 	bgu  200e02c <IMFS_memfile_read+0x150>         
 200dfe0:	b0 06 00 1a 	add  %i0, %i2, %i0                             
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
 200dfe4:	94 10 20 00 	clr  %o2                                       
 200dfe8:	92 10 00 10 	mov  %l0, %o1                                  
 200dfec:	7f ff ff 1c 	call  200dc5c <IMFS_memfile_get_block_pointer> 
 200dff0:	90 10 00 1d 	mov  %i5, %o0                                  
    if ( !block_ptr )                                                 
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ 0 ], to_copy );                      
 200dff4:	94 10 00 1a 	mov  %i2, %o2                                  
  /*                                                                  
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
 200dff8:	82 10 00 08 	mov  %o0, %g1                                  
    if ( !block_ptr )                                                 
 200dffc:	80 a0 60 00 	cmp  %g1, 0                                    
 200e000:	12 bf ff f0 	bne  200dfc0 <IMFS_memfile_read+0xe4>          <== ALWAYS TAKEN
 200e004:	90 10 00 11 	mov  %l1, %o0                                  
  }                                                                   
                                                                      
  IMFS_update_atime( the_jnode );                                     
                                                                      
  return copied;                                                      
}                                                                     
 200e008:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200e00c:	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 )                        
 200e010:	12 bf ff c3 	bne  200df1c <IMFS_memfile_read+0x40>          <== NEVER TAKEN
 200e014:	33 00 80 75 	sethi  %hi(0x201d400), %i1                     
 200e018:	80 a6 80 04 	cmp  %i2, %g4                                  
 200e01c:	08 bf ff c1 	bleu  200df20 <IMFS_memfile_read+0x44>         
 200e020:	f4 06 61 78 	ld  [ %i1 + 0x178 ], %i2                       
    my_length = the_jnode->info.file.size - start;                    
 200e024:	10 bf ff be 	b  200df1c <IMFS_memfile_read+0x40>            
 200e028:	b8 21 00 01 	sub  %g4, %g1, %i4                             
  /*                                                                  
   *  Phase 3: possibly the first part of one block                   
   */                                                                 
  IMFS_assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK );            
                                                                      
  if ( my_length ) {                                                  
 200e02c:	80 a7 20 00 	cmp  %i4, 0                                    
 200e030:	02 80 00 0e 	be  200e068 <IMFS_memfile_read+0x18c>          
 200e034:	90 07 bf f8 	add  %fp, -8, %o0                              
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
 200e038:	90 10 00 1d 	mov  %i5, %o0                                  
 200e03c:	92 10 00 10 	mov  %l0, %o1                                  
 200e040:	7f ff ff 07 	call  200dc5c <IMFS_memfile_get_block_pointer> 
 200e044:	94 10 20 00 	clr  %o2                                       
    if ( !block_ptr )                                                 
 200e048:	80 a2 20 00 	cmp  %o0, 0                                    
 200e04c:	02 bf ff ef 	be  200e008 <IMFS_memfile_read+0x12c>          <== NEVER TAKEN
 200e050:	94 10 00 1c 	mov  %i4, %o2                                  
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ 0 ], my_length );                    
 200e054:	d2 02 00 00 	ld  [ %o0 ], %o1                               
 200e058:	90 10 00 11 	mov  %l1, %o0                                  
 200e05c:	40 00 08 ad 	call  2010310 <memcpy>                         
 200e060:	b0 06 00 1c 	add  %i0, %i4, %i0                             
    copied += my_length;                                              
  }                                                                   
                                                                      
  IMFS_update_atime( the_jnode );                                     
 200e064:	90 07 bf f8 	add  %fp, -8, %o0                              
 200e068:	7f ff d3 d4 	call  2002fb8 <gettimeofday>                   
 200e06c:	92 10 20 00 	clr  %o1                                       
 200e070:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
 200e074:	c2 27 60 40 	st  %g1, [ %i5 + 0x40 ]                        
                                                                      
  return copied;                                                      
}                                                                     
 200e078:	81 c7 e0 08 	ret                                            
 200e07c:	81 e8 00 00 	restore                                        
  if (the_jnode->type == IMFS_LINEAR_FILE) {                          
    unsigned char  *file_ptr;                                         
                                                                      
    file_ptr = (unsigned char *)the_jnode->info.linearfile.direct;    
                                                                      
    if (my_length > (the_jnode->info.linearfile.size - start))        
 200e080:	d8 1e 20 50 	ldd  [ %i0 + 0x50 ], %o4                       
 200e084:	82 10 20 00 	clr  %g1                                       
 200e088:	86 a3 40 1a 	subcc  %o5, %i2, %g3                           
 200e08c:	84 63 00 19 	subx  %o4, %i1, %g2                            
 200e090:	80 a0 40 02 	cmp  %g1, %g2                                  
 200e094:	04 80 00 10 	ble  200e0d4 <IMFS_memfile_read+0x1f8>         <== ALWAYS TAKEN
 200e098:	d2 06 20 58 	ld  [ %i0 + 0x58 ], %o1                        
      my_length = the_jnode->info.linearfile.size - start;            
 200e09c:	b0 23 40 11 	sub  %o5, %l1, %i0                             <== NOT EXECUTED
                                                                      
    memcpy(dest, &file_ptr[start], my_length);                        
 200e0a0:	92 02 40 11 	add  %o1, %l1, %o1                             
 200e0a4:	94 10 00 18 	mov  %i0, %o2                                  
 200e0a8:	40 00 08 9a 	call  2010310 <memcpy>                         
 200e0ac:	90 10 00 1b 	mov  %i3, %o0                                  
                                                                      
    IMFS_update_atime( the_jnode );                                   
 200e0b0:	90 07 bf f8 	add  %fp, -8, %o0                              
 200e0b4:	7f ff d3 c1 	call  2002fb8 <gettimeofday>                   
 200e0b8:	92 10 20 00 	clr  %o1                                       
 200e0bc:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
 200e0c0:	c2 27 60 40 	st  %g1, [ %i5 + 0x40 ]                        
                                                                      
    return my_length;                                                 
 200e0c4:	81 c7 e0 08 	ret                                            
 200e0c8:	81 e8 00 00 	restore                                        
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  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;            
 200e0cc:	10 bf ff af 	b  200df88 <IMFS_memfile_read+0xac>            
 200e0d0:	b0 10 00 1a 	mov  %i2, %i0                                  
  if (the_jnode->type == IMFS_LINEAR_FILE) {                          
    unsigned char  *file_ptr;                                         
                                                                      
    file_ptr = (unsigned char *)the_jnode->info.linearfile.direct;    
                                                                      
    if (my_length > (the_jnode->info.linearfile.size - start))        
 200e0d4:	12 80 00 04 	bne  200e0e4 <IMFS_memfile_read+0x208>         <== NEVER TAKEN
 200e0d8:	80 a7 00 03 	cmp  %i4, %g3                                  
 200e0dc:	38 bf ff f1 	bgu,a   200e0a0 <IMFS_memfile_read+0x1c4>      <== ALWAYS TAKEN
 200e0e0:	b0 23 40 11 	sub  %o5, %l1, %i0                             
      my_length = the_jnode->info.linearfile.size - start;            
                                                                      
    memcpy(dest, &file_ptr[start], my_length);                        
 200e0e4:	92 02 40 11 	add  %o1, %l1, %o1                             <== NOT EXECUTED
                                                                      
  /*                                                                  
   *  Linear files (as created from a tar file are easier to handle   
   *  than block files).                                              
   */                                                                 
  my_length = length;                                                 
 200e0e8:	b0 10 00 1c 	mov  %i4, %i0                                  <== NOT EXECUTED
    file_ptr = (unsigned char *)the_jnode->info.linearfile.direct;    
                                                                      
    if (my_length > (the_jnode->info.linearfile.size - start))        
      my_length = the_jnode->info.linearfile.size - start;            
                                                                      
    memcpy(dest, &file_ptr[start], my_length);                        
 200e0ec:	90 10 00 1b 	mov  %i3, %o0                                  <== NOT EXECUTED
 200e0f0:	40 00 08 88 	call  2010310 <memcpy>                         <== NOT EXECUTED
 200e0f4:	94 10 00 18 	mov  %i0, %o2                                  <== NOT EXECUTED
                                                                      
    IMFS_update_atime( the_jnode );                                   
 200e0f8:	90 07 bf f8 	add  %fp, -8, %o0                              <== NOT EXECUTED
 200e0fc:	7f ff d3 af 	call  2002fb8 <gettimeofday>                   <== NOT EXECUTED
 200e100:	92 10 20 00 	clr  %o1                                       <== NOT EXECUTED
 200e104:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          <== NOT EXECUTED
 200e108:	c2 27 60 40 	st  %g1, [ %i5 + 0x40 ]                        <== NOT EXECUTED
                                                                      
    return my_length;                                                 
 200e10c:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200e110:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

0200e204 <IMFS_memfile_remove>: * is better to stick to simple, easy to understand algorithms. */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) {
 200e204:	9d e3 bf a0 	save  %sp, -96, %sp                            
                                                                      
  /*                                                                  
   *  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;                                 
 200e208:	39 00 80 75 	sethi  %hi(0x201d400), %i4                     
   *    + doubly indirect                                             
   *    + triply indirect                                             
   */                                                                 
  info = &the_jnode->info.file;                                       
                                                                      
  if ( info->indirect ) {                                             
 200e20c:	c2 06 20 58 	ld  [ %i0 + 0x58 ], %g1                        
                                                                      
  /*                                                                  
   *  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;                                 
 200e210:	f4 07 21 78 	ld  [ %i4 + 0x178 ], %i2                       
   *    + doubly indirect                                             
   *    + triply indirect                                             
   */                                                                 
  info = &the_jnode->info.file;                                       
                                                                      
  if ( info->indirect ) {                                             
 200e214:	80 a0 60 00 	cmp  %g1, 0                                    
 200e218:	02 80 00 05 	be  200e22c <IMFS_memfile_remove+0x28>         
 200e21c:	b5 36 a0 02 	srl  %i2, 2, %i2                               
    memfile_free_blocks_in_table( &info->indirect, to_free );         
 200e220:	90 06 20 58 	add  %i0, 0x58, %o0                            
 200e224:	7f ff ff e2 	call  200e1ac <memfile_free_blocks_in_table>   
 200e228:	92 10 00 1a 	mov  %i2, %o1                                  
  }                                                                   
                                                                      
  if ( info->doubly_indirect ) {                                      
 200e22c:	c2 06 20 5c 	ld  [ %i0 + 0x5c ], %g1                        
 200e230:	80 a0 60 00 	cmp  %g1, 0                                    
 200e234:	02 80 00 1b 	be  200e2a0 <IMFS_memfile_remove+0x9c>         
 200e238:	c4 07 21 78 	ld  [ %i4 + 0x178 ], %g2                       
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
 200e23c:	85 30 a0 02 	srl  %g2, 2, %g2                               
 200e240:	80 a0 a0 00 	cmp  %g2, 0                                    
 200e244:	02 80 00 14 	be  200e294 <IMFS_memfile_remove+0x90>         <== NEVER TAKEN
 200e248:	90 10 20 00 	clr  %o0                                       
 200e24c:	37 00 80 75 	sethi  %hi(0x201d400), %i3                     
 200e250:	ba 10 20 00 	clr  %i5                                       
 200e254:	10 80 00 03 	b  200e260 <IMFS_memfile_remove+0x5c>          
 200e258:	b6 16 e1 78 	or  %i3, 0x178, %i3                            
 200e25c:	c2 06 20 5c 	ld  [ %i0 + 0x5c ], %g1                        
      if ( info->doubly_indirect[i] ) {                               
 200e260:	91 2a 20 02 	sll  %o0, 2, %o0                               
 200e264:	c4 00 40 08 	ld  [ %g1 + %o0 ], %g2                         
 200e268:	80 a0 a0 00 	cmp  %g2, 0                                    
 200e26c:	02 80 00 04 	be  200e27c <IMFS_memfile_remove+0x78>         <== NEVER TAKEN
 200e270:	90 00 40 08 	add  %g1, %o0, %o0                             
        memfile_free_blocks_in_table(                                 
 200e274:	7f ff ff ce 	call  200e1ac <memfile_free_blocks_in_table>   
 200e278:	92 10 00 1a 	mov  %i2, %o1                                  
  if ( info->indirect ) {                                             
    memfile_free_blocks_in_table( &info->indirect, to_free );         
  }                                                                   
                                                                      
  if ( info->doubly_indirect ) {                                      
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
 200e27c:	c2 06 c0 00 	ld  [ %i3 ], %g1                               
 200e280:	ba 07 60 01 	inc  %i5                                       
 200e284:	83 30 60 02 	srl  %g1, 2, %g1                               
 200e288:	80 a7 40 01 	cmp  %i5, %g1                                  
 200e28c:	0a bf ff f4 	bcs  200e25c <IMFS_memfile_remove+0x58>        
 200e290:	90 10 00 1d 	mov  %i5, %o0                                  
      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 );  
 200e294:	90 06 20 5c 	add  %i0, 0x5c, %o0                            
 200e298:	7f ff ff c5 	call  200e1ac <memfile_free_blocks_in_table>   
 200e29c:	92 10 00 1a 	mov  %i2, %o1                                  
                                                                      
  }                                                                   
                                                                      
  if ( info->triply_indirect ) {                                      
 200e2a0:	d0 06 20 60 	ld  [ %i0 + 0x60 ], %o0                        
 200e2a4:	80 a2 20 00 	cmp  %o0, 0                                    
 200e2a8:	02 80 00 33 	be  200e374 <IMFS_memfile_remove+0x170>        
 200e2ac:	c2 07 21 78 	ld  [ %i4 + 0x178 ], %g1                       
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
 200e2b0:	83 30 60 02 	srl  %g1, 2, %g1                               
 200e2b4:	80 a0 60 00 	cmp  %g1, 0                                    
 200e2b8:	22 80 00 2d 	be,a   200e36c <IMFS_memfile_remove+0x168>     <== NEVER TAKEN
 200e2bc:	90 06 20 60 	add  %i0, 0x60, %o0                            <== NOT EXECUTED
      p = (block_p *) info->triply_indirect[i];                       
 200e2c0:	f8 02 00 00 	ld  [ %o0 ], %i4                               
      if ( !p )  /* ensure we have a valid pointer */                 
 200e2c4:	80 a7 20 00 	cmp  %i4, 0                                    
 200e2c8:	22 80 00 29 	be,a   200e36c <IMFS_memfile_remove+0x168>     <== NEVER TAKEN
 200e2cc:	90 06 20 60 	add  %i0, 0x60, %o0                            <== NOT EXECUTED
 200e2d0:	37 00 80 75 	sethi  %hi(0x201d400), %i3                     
                                                                      
  }                                                                   
                                                                      
  if ( info->triply_indirect ) {                                      
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
      p = (block_p *) info->triply_indirect[i];                       
 200e2d4:	a0 10 20 00 	clr  %l0                                       
      if ( !p )  /* ensure we have a valid pointer */                 
 200e2d8:	b2 10 20 00 	clr  %i1                                       
 200e2dc:	b6 16 e1 78 	or  %i3, 0x178, %i3                            
         break;                                                       
      for ( j=0 ; j<IMFS_MEMFILE_BLOCK_SLOTS ; j++ ) {                
 200e2e0:	80 a0 60 00 	cmp  %g1, 0                                    
 200e2e4:	22 80 00 13 	be,a   200e330 <IMFS_memfile_remove+0x12c>     <== NEVER TAKEN
 200e2e8:	90 02 00 10 	add  %o0, %l0, %o0                             <== NOT EXECUTED
 200e2ec:	90 10 20 00 	clr  %o0                                       
 200e2f0:	ba 10 20 00 	clr  %i5                                       
        if ( p[j] ) {                                                 
 200e2f4:	91 2a 20 02 	sll  %o0, 2, %o0                               
 200e2f8:	c2 07 00 08 	ld  [ %i4 + %o0 ], %g1                         
 200e2fc:	80 a0 60 00 	cmp  %g1, 0                                    
 200e300:	02 80 00 04 	be  200e310 <IMFS_memfile_remove+0x10c>        <== NEVER TAKEN
 200e304:	90 07 00 08 	add  %i4, %o0, %o0                             
          memfile_free_blocks_in_table( (block_p **)&p[j], to_free);  
 200e308:	7f ff ff a9 	call  200e1ac <memfile_free_blocks_in_table>   
 200e30c:	92 10 00 1a 	mov  %i2, %o1                                  
  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++ ) {                
 200e310:	c2 06 c0 00 	ld  [ %i3 ], %g1                               
 200e314:	ba 07 60 01 	inc  %i5                                       
 200e318:	83 30 60 02 	srl  %g1, 2, %g1                               
 200e31c:	80 a7 40 01 	cmp  %i5, %g1                                  
 200e320:	0a bf ff f5 	bcs  200e2f4 <IMFS_memfile_remove+0xf0>        
 200e324:	90 10 00 1d 	mov  %i5, %o0                                  
 200e328:	d0 06 20 60 	ld  [ %i0 + 0x60 ], %o0                        
        if ( p[j] ) {                                                 
          memfile_free_blocks_in_table( (block_p **)&p[j], to_free);  
        }                                                             
      }                                                               
      memfile_free_blocks_in_table(                                   
 200e32c:	90 02 00 10 	add  %o0, %l0, %o0                             
 200e330:	7f ff ff 9f 	call  200e1ac <memfile_free_blocks_in_table>   
 200e334:	92 10 00 1a 	mov  %i2, %o1                                  
    memfile_free_blocks_in_table( &info->doubly_indirect, to_free );  
                                                                      
  }                                                                   
                                                                      
  if ( info->triply_indirect ) {                                      
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
 200e338:	c2 06 c0 00 	ld  [ %i3 ], %g1                               
 200e33c:	b2 06 60 01 	inc  %i1                                       
 200e340:	83 30 60 02 	srl  %g1, 2, %g1                               
 200e344:	80 a6 40 01 	cmp  %i1, %g1                                  
 200e348:	1a 80 00 09 	bcc  200e36c <IMFS_memfile_remove+0x168>       
 200e34c:	90 06 20 60 	add  %i0, 0x60, %o0                            
      p = (block_p *) info->triply_indirect[i];                       
 200e350:	d0 06 20 60 	ld  [ %i0 + 0x60 ], %o0                        
 *         a significant difference in the performance of this routine.
 *                                                                    
 *         Regardless until the IMFS implementation is proven, it     
 *         is better to stick to simple, easy to understand algorithms.
 */                                                                   
int IMFS_memfile_remove(                                              
 200e354:	a1 2e 60 02 	sll  %i1, 2, %l0                               
                                                                      
  }                                                                   
                                                                      
  if ( info->triply_indirect ) {                                      
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
      p = (block_p *) info->triply_indirect[i];                       
 200e358:	f8 02 00 10 	ld  [ %o0 + %l0 ], %i4                         
      if ( !p )  /* ensure we have a valid pointer */                 
 200e35c:	80 a7 20 00 	cmp  %i4, 0                                    
 200e360:	12 bf ff e1 	bne  200e2e4 <IMFS_memfile_remove+0xe0>        <== ALWAYS TAKEN
 200e364:	80 a0 60 00 	cmp  %g1, 0                                    
        }                                                             
      }                                                               
      memfile_free_blocks_in_table(                                   
        (block_p **)&info->triply_indirect[i], to_free );             
    }                                                                 
    memfile_free_blocks_in_table(                                     
 200e368:	90 06 20 60 	add  %i0, 0x60, %o0                            <== NOT EXECUTED
 200e36c:	7f ff ff 90 	call  200e1ac <memfile_free_blocks_in_table>   
 200e370:	92 10 00 1a 	mov  %i2, %o1                                  
        (block_p **)&info->triply_indirect, to_free );                
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
 200e374:	81 c7 e0 08 	ret                                            
 200e378:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      

0200e4f0 <IMFS_memfile_write>: IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) {
 200e4f0:	9d e3 bf 98 	save  %sp, -104, %sp                           
   *  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 + my_length;                                      
  if ( last_byte > the_jnode->info.file.size ) {                      
 200e4f4:	c2 06 20 50 	ld  [ %i0 + 0x50 ], %g1                        
   IMFS_jnode_t          *the_jnode,                                  
   off_t                  start,                                      
   const unsigned char   *source,                                     
   unsigned int           length                                      
)                                                                     
{                                                                     
 200e4f8:	ba 10 00 18 	mov  %i0, %i5                                  
   *  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 + my_length;                                      
  if ( last_byte > the_jnode->info.file.size ) {                      
 200e4fc:	80 a0 60 00 	cmp  %g1, 0                                    
 200e500:	06 80 00 5c 	bl  200e670 <IMFS_memfile_write+0x180>         <== NEVER TAKEN
 200e504:	94 07 00 1a 	add  %i4, %i2, %o2                             
 200e508:	80 a0 60 00 	cmp  %g1, 0                                    
 200e50c:	22 80 00 56 	be,a   200e664 <IMFS_memfile_write+0x174>      <== ALWAYS TAKEN
 200e510:	c2 06 20 54 	ld  [ %i0 + 0x54 ], %g1                        
   */                                                                 
                                                                      
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
 200e514:	23 00 80 75 	sethi  %hi(0x201d400), %l1                     <== NOT EXECUTED
 200e518:	e0 04 61 78 	ld  [ %l1 + 0x178 ], %l0	! 201d578 <imfs_memfile_bytes_per_block>
 200e51c:	92 10 00 1a 	mov  %i2, %o1                                  
 200e520:	b1 3c 20 1f 	sra  %l0, 0x1f, %i0                            
 200e524:	96 10 00 10 	mov  %l0, %o3                                  
 200e528:	94 10 00 18 	mov  %i0, %o2                                  
 200e52c:	40 00 2a d5 	call  2019080 <__moddi3>                       
 200e530:	90 10 00 19 	mov  %i1, %o0                                  
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
 200e534:	94 10 00 18 	mov  %i0, %o2                                  
   */                                                                 
                                                                      
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
 200e538:	a4 10 00 09 	mov  %o1, %l2                                  
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
 200e53c:	90 10 00 19 	mov  %i1, %o0                                  
 200e540:	92 10 00 1a 	mov  %i2, %o1                                  
 200e544:	40 00 29 e9 	call  2018ce8 <__divdi3>                       
 200e548:	96 10 00 10 	mov  %l0, %o3                                  
    status = IMFS_memfile_extend( the_jnode, last_byte );             
    if ( status )                                                     
      rtems_set_errno_and_return_minus_one( ENOSPC );                 
  }                                                                   
                                                                      
  copied = 0;                                                         
 200e54c:	b0 10 20 00 	clr  %i0                                       
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
  if ( start_offset )  {                                              
 200e550:	80 a4 a0 00 	cmp  %l2, 0                                    
 200e554:	12 80 00 1a 	bne  200e5bc <IMFS_memfile_write+0xcc>         
 200e558:	b4 10 00 09 	mov  %o1, %i2                                  
  /*                                                                  
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
                                                                      
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
 200e55c:	80 a7 00 10 	cmp  %i4, %l0                                  
 200e560:	1a 80 00 0e 	bcc  200e598 <IMFS_memfile_write+0xa8>         
 200e564:	92 10 00 1a 	mov  %i2, %o1                                  
   *  Phase 3: possibly the first part of one block                   
   */                                                                 
  IMFS_assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK );            
                                                                      
  to_copy = my_length;                                                
  if ( my_length ) {                                                  
 200e568:	10 80 00 2a 	b  200e610 <IMFS_memfile_write+0x120>          
 200e56c:	80 a7 20 00 	cmp  %i4, 0                                    
    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 );                       
 200e570:	d0 02 00 00 	ld  [ %o0 ], %o0                               
 200e574:	40 00 07 67 	call  2010310 <memcpy>                         
 200e578:	b8 27 00 10 	sub  %i4, %l0, %i4                             
  /*                                                                  
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
                                                                      
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
 200e57c:	c2 04 61 78 	ld  [ %l1 + 0x178 ], %g1                       
      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;                                                   
 200e580:	b6 06 c0 10 	add  %i3, %l0, %i3                             
    block++;                                                          
 200e584:	b4 06 a0 01 	inc  %i2                                       
  /*                                                                  
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
                                                                      
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
 200e588:	80 a0 40 1c 	cmp  %g1, %i4                                  
 200e58c:	18 80 00 20 	bgu  200e60c <IMFS_memfile_write+0x11c>        
 200e590:	b0 06 00 10 	add  %i0, %l0, %i0                             
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
 200e594:	92 10 00 1a 	mov  %i2, %o1                                  
 200e598:	94 10 20 00 	clr  %o2                                       
 200e59c:	7f ff fd b0 	call  200dc5c <IMFS_memfile_get_block_pointer> 
 200e5a0:	90 10 00 1d 	mov  %i5, %o0                                  
    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 );                       
 200e5a4:	92 10 00 1b 	mov  %i3, %o1                                  
   */                                                                 
                                                                      
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
    if ( !block_ptr )                                                 
 200e5a8:	80 a2 20 00 	cmp  %o0, 0                                    
 200e5ac:	12 bf ff f1 	bne  200e570 <IMFS_memfile_write+0x80>         <== ALWAYS TAKEN
 200e5b0:	94 10 00 10 	mov  %l0, %o2                                  
  }                                                                   
                                                                      
  IMFS_mtime_ctime_update( the_jnode );                               
                                                                      
  return copied;                                                      
}                                                                     
 200e5b4:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200e5b8:	81 e8 00 00 	restore                                        <== NOT EXECUTED
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
  if ( start_offset )  {                                              
    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 );
 200e5bc:	90 10 00 1d 	mov  %i5, %o0                                  
 200e5c0:	94 10 20 00 	clr  %o2                                       
 200e5c4:	7f ff fd a6 	call  200dc5c <IMFS_memfile_get_block_pointer> 
 200e5c8:	b0 10 20 00 	clr  %i0                                       
    if ( !block_ptr )                                                 
 200e5cc:	80 a2 20 00 	cmp  %o0, 0                                    
 200e5d0:	02 80 00 32 	be  200e698 <IMFS_memfile_write+0x1a8>         <== NEVER TAKEN
 200e5d4:	01 00 00 00 	nop                                            
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  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;            
 200e5d8:	b0 24 00 12 	sub  %l0, %l2, %i0                             
 200e5dc:	80 a6 00 1c 	cmp  %i0, %i4                                  
 200e5e0:	18 80 00 30 	bgu  200e6a0 <IMFS_memfile_write+0x1b0>        
 200e5e4:	d0 02 00 00 	ld  [ %o0 ], %o0                               
        block,                                                        
        to_copy,                                                      
        src                                                           
      );                                                              
    #endif                                                            
    memcpy( &(*block_ptr)[ start_offset ], src, to_copy );            
 200e5e8:	92 10 00 1b 	mov  %i3, %o1                                  
 200e5ec:	90 02 00 12 	add  %o0, %l2, %o0                             
 200e5f0:	94 10 00 18 	mov  %i0, %o2                                  
 200e5f4:	40 00 07 47 	call  2010310 <memcpy>                         
 200e5f8:	b6 06 c0 18 	add  %i3, %i0, %i3                             
    src += to_copy;                                                   
    block++;                                                          
 200e5fc:	b4 06 a0 01 	inc  %i2                                       
    my_length -= to_copy;                                             
 200e600:	b8 27 00 18 	sub  %i4, %i0, %i4                             
    copied += to_copy;                                                
 200e604:	10 bf ff d6 	b  200e55c <IMFS_memfile_write+0x6c>           
 200e608:	e0 04 61 78 	ld  [ %l1 + 0x178 ], %l0                       
   *  Phase 3: possibly the first part of one block                   
   */                                                                 
  IMFS_assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK );            
                                                                      
  to_copy = my_length;                                                
  if ( my_length ) {                                                  
 200e60c:	80 a7 20 00 	cmp  %i4, 0                                    
 200e610:	02 80 00 0e 	be  200e648 <IMFS_memfile_write+0x158>         
 200e614:	90 07 bf f8 	add  %fp, -8, %o0                              
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
 200e618:	90 10 00 1d 	mov  %i5, %o0                                  
 200e61c:	92 10 00 1a 	mov  %i2, %o1                                  
 200e620:	7f ff fd 8f 	call  200dc5c <IMFS_memfile_get_block_pointer> 
 200e624:	94 10 20 00 	clr  %o2                                       
    if ( !block_ptr )                                                 
 200e628:	80 a2 20 00 	cmp  %o0, 0                                    
 200e62c:	02 bf ff e2 	be  200e5b4 <IMFS_memfile_write+0xc4>          <== NEVER TAKEN
 200e630:	92 10 00 1b 	mov  %i3, %o1                                  
      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 );                     
 200e634:	d0 02 00 00 	ld  [ %o0 ], %o0                               
 200e638:	94 10 00 1c 	mov  %i4, %o2                                  
 200e63c:	40 00 07 35 	call  2010310 <memcpy>                         
 200e640:	b0 06 00 1c 	add  %i0, %i4, %i0                             
    my_length = 0;                                                    
    copied += to_copy;                                                
  }                                                                   
                                                                      
  IMFS_mtime_ctime_update( the_jnode );                               
 200e644:	90 07 bf f8 	add  %fp, -8, %o0                              
 200e648:	7f ff d2 5c 	call  2002fb8 <gettimeofday>                   
 200e64c:	92 10 20 00 	clr  %o1                                       
 200e650:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
 200e654:	c2 27 60 44 	st  %g1, [ %i5 + 0x44 ]                        
 200e658:	c2 27 60 48 	st  %g1, [ %i5 + 0x48 ]                        
                                                                      
  return copied;                                                      
}                                                                     
 200e65c:	81 c7 e0 08 	ret                                            
 200e660:	81 e8 00 00 	restore                                        
   *  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 + my_length;                                      
  if ( last_byte > the_jnode->info.file.size ) {                      
 200e664:	80 a0 40 0a 	cmp  %g1, %o2                                  
 200e668:	1a bf ff ac 	bcc  200e518 <IMFS_memfile_write+0x28>         <== NEVER TAKEN
 200e66c:	23 00 80 75 	sethi  %hi(0x201d400), %l1                     
    status = IMFS_memfile_extend( the_jnode, last_byte );             
 200e670:	90 10 00 1d 	mov  %i5, %o0                                  
 200e674:	7f ff ff 4e 	call  200e3ac <IMFS_memfile_extend>            
 200e678:	92 10 20 00 	clr  %o1                                       
    if ( status )                                                     
 200e67c:	80 a2 20 00 	cmp  %o0, 0                                    
 200e680:	02 bf ff a6 	be  200e518 <IMFS_memfile_write+0x28>          
 200e684:	23 00 80 75 	sethi  %hi(0x201d400), %l1                     
      rtems_set_errno_and_return_minus_one( ENOSPC );                 
 200e688:	40 00 04 c6 	call  200f9a0 <__errno>                        
 200e68c:	b0 10 3f ff 	mov  -1, %i0                                   
 200e690:	82 10 20 1c 	mov  0x1c, %g1                                 
 200e694:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200e698:	81 c7 e0 08 	ret                                            
 200e69c:	81 e8 00 00 	restore                                        
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  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;            
 200e6a0:	b0 10 00 1c 	mov  %i4, %i0                                  
        block,                                                        
        to_copy,                                                      
        src                                                           
      );                                                              
    #endif                                                            
    memcpy( &(*block_ptr)[ start_offset ], src, to_copy );            
 200e6a4:	92 10 00 1b 	mov  %i3, %o1                                  
 200e6a8:	90 02 00 12 	add  %o0, %l2, %o0                             
 200e6ac:	94 10 00 18 	mov  %i0, %o2                                  
 200e6b0:	40 00 07 18 	call  2010310 <memcpy>                         
 200e6b4:	b6 06 c0 18 	add  %i3, %i0, %i3                             
    src += to_copy;                                                   
    block++;                                                          
 200e6b8:	b4 06 a0 01 	inc  %i2                                       
    my_length -= to_copy;                                             
 200e6bc:	b8 27 00 18 	sub  %i4, %i0, %i4                             
    copied += to_copy;                                                
 200e6c0:	10 bf ff a7 	b  200e55c <IMFS_memfile_write+0x6c>           
 200e6c4:	e0 04 61 78 	ld  [ %l1 + 0x178 ], %l0                       
                                                                      

020024e4 <IMFS_mknod>: const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) {
 20024e4:	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 );        
 20024e8:	40 00 3a c6 	call  2011000 <strlen>                         
 20024ec:	90 10 00 18 	mov  %i0, %o0                                  
 20024f0:	96 07 bf fc 	add  %fp, -4, %o3                              
 20024f4:	92 10 00 08 	mov  %o0, %o1                                  
 20024f8:	94 07 bf b8 	add  %fp, -72, %o2                             
 20024fc:	40 00 25 3b 	call  200b9e8 <IMFS_get_token>                 
 2002500:	90 10 00 18 	mov  %i0, %o0                                  
                                                                      
  /*                                                                  
   *  Figure out what type of IMFS node this is.                      
   */                                                                 
  if ( S_ISDIR(mode) )                                                
 2002504:	03 00 00 3c 	sethi  %hi(0xf000), %g1                        
 2002508:	05 00 00 10 	sethi  %hi(0x4000), %g2                        
 200250c:	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 */         
)                                                                     
{                                                                     
 2002510:	96 10 00 19 	mov  %i1, %o3                                  
 2002514:	90 10 00 1c 	mov  %i4, %o0                                  
  IMFS_get_token( token, strlen( token ), new_name, &result );        
                                                                      
  /*                                                                  
   *  Figure out what type of IMFS node this is.                      
   */                                                                 
  if ( S_ISDIR(mode) )                                                
 2002518:	80 a0 40 02 	cmp  %g1, %g2                                  
 200251c:	02 80 00 0c 	be  200254c <IMFS_mknod+0x68>                  
 2002520:	92 10 20 01 	mov  1, %o1                                    
    type = IMFS_DIRECTORY;                                            
  else if ( S_ISREG(mode) )                                           
 2002524:	05 00 00 20 	sethi  %hi(0x8000), %g2                        
 2002528:	80 a0 40 02 	cmp  %g1, %g2                                  
 200252c:	02 80 00 08 	be  200254c <IMFS_mknod+0x68>                  
 2002530:	92 10 20 05 	mov  5, %o1                                    
    type = IMFS_MEMORY_FILE;                                          
  else if ( S_ISBLK(mode) || S_ISCHR(mode) ) {                        
 2002534:	05 00 00 08 	sethi  %hi(0x2000), %g2                        
 2002538:	80 a0 40 02 	cmp  %g1, %g2                                  
 200253c:	12 80 00 0d 	bne  2002570 <IMFS_mknod+0x8c>                 
 2002540:	05 00 00 18 	sethi  %hi(0x6000), %g2                        
    type = IMFS_DEVICE;                                               
    rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor );
 2002544:	f4 3f bf e0 	std  %i2, [ %fp + -32 ]                        
  if ( S_ISDIR(mode) )                                                
    type = IMFS_DIRECTORY;                                            
  else if ( S_ISREG(mode) )                                           
    type = IMFS_MEMORY_FILE;                                          
  else if ( S_ISBLK(mode) || S_ISCHR(mode) ) {                        
    type = IMFS_DEVICE;                                               
 2002548:	92 10 20 02 	mov  2, %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( pathloc, type, new_name, mode, &info );
 200254c:	94 07 bf b8 	add  %fp, -72, %o2                             
 2002550:	98 07 bf e0 	add  %fp, -32, %o4                             
 2002554:	40 00 21 a8 	call  200abf4 <IMFS_create_node>               
 2002558:	b0 10 20 00 	clr  %i0                                       
  if ( !new_node )                                                    
 200255c:	80 a2 20 00 	cmp  %o0, 0                                    
 2002560:	02 80 00 13 	be  20025ac <IMFS_mknod+0xc8>                  <== NEVER TAKEN
 2002564:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( ENOMEM );                   
                                                                      
  return 0;                                                           
}                                                                     
 2002568:	81 c7 e0 08 	ret                                            
 200256c:	81 e8 00 00 	restore                                        
   */                                                                 
  if ( S_ISDIR(mode) )                                                
    type = IMFS_DIRECTORY;                                            
  else if ( S_ISREG(mode) )                                           
    type = IMFS_MEMORY_FILE;                                          
  else if ( S_ISBLK(mode) || S_ISCHR(mode) ) {                        
 2002570:	80 a0 40 02 	cmp  %g1, %g2                                  
 2002574:	22 bf ff f5 	be,a   2002548 <IMFS_mknod+0x64>               
 2002578:	f4 3f bf e0 	std  %i2, [ %fp + -32 ]                        
    type = IMFS_DEVICE;                                               
    rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor );
  } else if (S_ISFIFO(mode))                                          
 200257c:	05 00 00 04 	sethi  %hi(0x1000), %g2                        
  mode_t                             mode,       /* IN */             
  dev_t                              dev,        /* IN */             
  rtems_filesystem_location_info_t  *pathloc     /* IN/OUT */         
)                                                                     
{                                                                     
  IMFS_token_types   type = 0;                                        
 2002580:	82 18 40 02 	xor  %g1, %g2, %g1                             
 2002584:	80 a0 00 01 	cmp  %g0, %g1                                  
   *        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( pathloc, type, new_name, mode, &info );
 2002588:	94 07 bf b8 	add  %fp, -72, %o2                             
  mode_t                             mode,       /* IN */             
  dev_t                              dev,        /* IN */             
  rtems_filesystem_location_info_t  *pathloc     /* IN/OUT */         
)                                                                     
{                                                                     
  IMFS_token_types   type = 0;                                        
 200258c:	92 40 3f ff 	addx  %g0, -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( pathloc, type, new_name, mode, &info );
 2002590:	98 07 bf e0 	add  %fp, -32, %o4                             
  mode_t                             mode,       /* IN */             
  dev_t                              dev,        /* IN */             
  rtems_filesystem_location_info_t  *pathloc     /* IN/OUT */         
)                                                                     
{                                                                     
  IMFS_token_types   type = 0;                                        
 2002594:	92 0a 60 07 	and  %o1, 7, %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( pathloc, type, new_name, mode, &info );
 2002598:	40 00 21 97 	call  200abf4 <IMFS_create_node>               
 200259c:	b0 10 20 00 	clr  %i0                                       
  if ( !new_node )                                                    
 20025a0:	80 a2 20 00 	cmp  %o0, 0                                    
 20025a4:	12 80 00 06 	bne  20025bc <IMFS_mknod+0xd8>                 
 20025a8:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( ENOMEM );                   
 20025ac:	40 00 34 fd 	call  200f9a0 <__errno>                        
 20025b0:	b0 10 3f ff 	mov  -1, %i0	! ffffffff <RAM_END+0xfdbfffff>   
 20025b4:	82 10 20 0c 	mov  0xc, %g1                                  
 20025b8:	c2 22 00 00 	st  %g1, [ %o0 ]                               
                                                                      
  return 0;                                                           
}                                                                     
 20025bc:	81 c7 e0 08 	ret                                            
 20025c0:	81 e8 00 00 	restore                                        
                                                                      

020025c4 <IMFS_mount>: #include <rtems/seterr.h> int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) {
 20025c4:	9d e3 bf a0 	save  %sp, -96, %sp                            
  IMFS_jnode_t  *node;                                                
                                                                      
  node = mt_entry->mt_point_node.node_access;                         
 20025c8:	c2 06 20 08 	ld  [ %i0 + 8 ], %g1                           
                                                                      
  /*                                                                  
   *  Is the node that we are mounting onto a directory node ?        
   */                                                                 
                                                                      
  if ( node->type != IMFS_DIRECTORY )                                 
 20025cc:	c4 00 60 4c 	ld  [ %g1 + 0x4c ], %g2                        
 20025d0:	80 a0 a0 01 	cmp  %g2, 1                                    
 20025d4:	12 80 00 05 	bne  20025e8 <IMFS_mount+0x24>                 <== NEVER TAKEN
 20025d8:	01 00 00 00 	nop                                            
  /*                                                                  
   *  Set mt_fs pointer to point to the mount table entry for         
   *  the mounted file system.                                        
   */                                                                 
                                                                      
  node->info.directory.mt_fs = mt_entry;                              
 20025dc:	f0 20 60 5c 	st  %i0, [ %g1 + 0x5c ]                        
  return 0;                                                           
}                                                                     
 20025e0:	81 c7 e0 08 	ret                                            
 20025e4:	91 e8 20 00 	restore  %g0, 0, %o0                           
  /*                                                                  
   *  Is the node that we are mounting onto a directory node ?        
   */                                                                 
                                                                      
  if ( node->type != IMFS_DIRECTORY )                                 
    rtems_set_errno_and_return_minus_one( ENOTDIR );                  
 20025e8:	40 00 34 ee 	call  200f9a0 <__errno>                        <== NOT EXECUTED
 20025ec:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
 20025f0:	82 10 20 14 	mov  0x14, %g1                                 <== NOT EXECUTED
 20025f4:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
 20025f8:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 20025fc:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

02005048 <IMFS_print_jnode>: * This routine prints the contents of the specified jnode. */ void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) {
 2005048:	9d e3 bf a0 	save  %sp, -96, %sp                            
  IMFS_assert( the_jnode );                                           
                                                                      
  fprintf(stdout, "%s", the_jnode->name );                            
 200504c:	3b 00 80 92 	sethi  %hi(0x2024800), %i5                     
 2005050:	c2 07 63 b8 	ld  [ %i5 + 0x3b8 ], %g1	! 2024bb8 <_impure_ptr>
 2005054:	90 06 20 0c 	add  %i0, 0xc, %o0                             
 2005058:	40 00 3d 18 	call  20144b8 <fputs>                          
 200505c:	d2 00 60 08 	ld  [ %g1 + 8 ], %o1                           
  switch( the_jnode->type ) {                                         
 2005060:	f4 06 20 4c 	ld  [ %i0 + 0x4c ], %i2                        
 2005064:	80 a6 a0 07 	cmp  %i2, 7                                    
 2005068:	08 80 00 07 	bleu  2005084 <IMFS_print_jnode+0x3c>          <== ALWAYS TAKEN
 200506c:	83 2e a0 02 	sll  %i2, 2, %g1                               
    case IMFS_FIFO:                                                   
      fprintf(stdout, " FIFO not printed\n" );                        
      return;                                                         
                                                                      
    default:                                                          
      fprintf(stdout, " bad type %d\n", the_jnode->type );            
 2005070:	c2 07 63 b8 	ld  [ %i5 + 0x3b8 ], %g1                       <== NOT EXECUTED
 2005074:	33 00 80 8b 	sethi  %hi(0x2022c00), %i1                     <== NOT EXECUTED
 2005078:	f0 00 60 08 	ld  [ %g1 + 8 ], %i0                           <== NOT EXECUTED
 200507c:	40 00 3c be 	call  2014374 <fprintf>                        <== NOT EXECUTED
 2005080:	93 ee 60 38 	restore  %i1, 0x38, %o1                        <== NOT EXECUTED
)                                                                     
{                                                                     
  IMFS_assert( the_jnode );                                           
                                                                      
  fprintf(stdout, "%s", the_jnode->name );                            
  switch( the_jnode->type ) {                                         
 2005084:	05 00 80 14 	sethi  %hi(0x2005000), %g2                     
 2005088:	84 10 a0 28 	or  %g2, 0x28, %g2	! 2005028 <console_inbyte_nonblocking+0xac>
 200508c:	c2 00 80 01 	ld  [ %g2 + %g1 ], %g1                         
 2005090:	81 c0 40 00 	jmp  %g1                                       
 2005094:	01 00 00 00 	nop                                            
    case IMFS_HARD_LINK:                                              
      fprintf(stdout, " links not printed\n" );                       
      return;                                                         
                                                                      
    case IMFS_SYM_LINK:                                               
      fprintf(stdout, " links not printed\n" );                       
 2005098:	c2 07 63 b8 	ld  [ %i5 + 0x3b8 ], %g1                       
 200509c:	31 00 80 8b 	sethi  %hi(0x2022c00), %i0                     
 20050a0:	f6 00 60 08 	ld  [ %g1 + 8 ], %i3                           
 20050a4:	b0 16 20 08 	or  %i0, 8, %i0                                
 20050a8:	b2 10 20 01 	mov  1, %i1                                    
 20050ac:	40 00 40 25 	call  2015140 <fwrite>                         
 20050b0:	95 e8 20 13 	restore  %g0, 0x13, %o2                        
      return;                                                         
                                                                      
    case IMFS_FIFO:                                                   
      fprintf(stdout, " FIFO not printed\n" );                        
 20050b4:	c2 07 63 b8 	ld  [ %i5 + 0x3b8 ], %g1                       
 20050b8:	31 00 80 8b 	sethi  %hi(0x2022c00), %i0                     
 20050bc:	f6 00 60 08 	ld  [ %g1 + 8 ], %i3                           
 20050c0:	b0 16 20 20 	or  %i0, 0x20, %i0                             
 20050c4:	b2 10 20 01 	mov  1, %i1                                    
 20050c8:	40 00 40 1e 	call  2015140 <fwrite>                         
 20050cc:	95 e8 20 12 	restore  %g0, 0x12, %o2                        
        the_jnode->info.file.indirect,                                
        the_jnode->info.file.doubly_indirect,                         
        the_jnode->info.file.triply_indirect                          
      );                                                              
#else                                                                 
      fprintf(stdout, " (file %" PRId32 ")",                          
 20050d0:	c2 07 63 b8 	ld  [ %i5 + 0x3b8 ], %g1                       
 20050d4:	d4 06 20 54 	ld  [ %i0 + 0x54 ], %o2                        
 20050d8:	d0 00 60 08 	ld  [ %g1 + 8 ], %o0                           
 20050dc:	13 00 80 8a 	sethi  %hi(0x2022800), %o1                     
 20050e0:	40 00 3c a5 	call  2014374 <fprintf>                        
 20050e4:	92 12 63 f8 	or  %o1, 0x3f8, %o1	! 2022bf8 <rtems_filesystem_table+0x15e4>
                                                                      
    default:                                                          
      fprintf(stdout, " bad type %d\n", the_jnode->type );            
      return;                                                         
  }                                                                   
  puts("");                                                           
 20050e8:	31 00 80 8a 	sethi  %hi(0x2022800), %i0                     
 20050ec:	40 00 44 17 	call  2016148 <puts>                           
 20050f0:	91 ee 23 80 	restore  %i0, 0x380, %o0                       
      fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")",           
        the_jnode->info.device.major, the_jnode->info.device.minor ); 
      break;                                                          
                                                                      
    case IMFS_LINEAR_FILE:                                            
      fprintf(stdout, " (file %" PRId32 " %p)",                       
 20050f4:	c2 07 63 b8 	ld  [ %i5 + 0x3b8 ], %g1                       
 20050f8:	d4 06 20 54 	ld  [ %i0 + 0x54 ], %o2                        
 20050fc:	d6 06 20 58 	ld  [ %i0 + 0x58 ], %o3                        
 2005100:	d0 00 60 08 	ld  [ %g1 + 8 ], %o0                           
 2005104:	13 00 80 8a 	sethi  %hi(0x2022800), %o1                     
 2005108:	40 00 3c 9b 	call  2014374 <fprintf>                        
 200510c:	92 12 63 e8 	or  %o1, 0x3e8, %o1	! 2022be8 <rtems_filesystem_table+0x15d4>
                                                                      
    default:                                                          
      fprintf(stdout, " bad type %d\n", the_jnode->type );            
      return;                                                         
  }                                                                   
  puts("");                                                           
 2005110:	31 00 80 8a 	sethi  %hi(0x2022800), %i0                     
 2005114:	40 00 44 0d 	call  2016148 <puts>                           
 2005118:	91 ee 23 80 	restore  %i0, 0x380, %o0                       
  IMFS_assert( the_jnode );                                           
                                                                      
  fprintf(stdout, "%s", the_jnode->name );                            
  switch( the_jnode->type ) {                                         
    case IMFS_DIRECTORY:                                              
      fprintf(stdout, "/" );                                          
 200511c:	c2 07 63 b8 	ld  [ %i5 + 0x3b8 ], %g1                       
 2005120:	90 10 20 2f 	mov  0x2f, %o0                                 
 2005124:	d2 00 60 08 	ld  [ %g1 + 8 ], %o1                           
 2005128:	40 00 3c af 	call  20143e4 <fputc>                          
 200512c:	31 00 80 8a 	sethi  %hi(0x2022800), %i0                     
                                                                      
    default:                                                          
      fprintf(stdout, " bad type %d\n", the_jnode->type );            
      return;                                                         
  }                                                                   
  puts("");                                                           
 2005130:	40 00 44 06 	call  2016148 <puts>                           
 2005134:	91 ee 23 80 	restore  %i0, 0x380, %o0                       
    case IMFS_DIRECTORY:                                              
      fprintf(stdout, "/" );                                          
      break;                                                          
                                                                      
    case IMFS_DEVICE:                                                 
      fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")",           
 2005138:	c2 07 63 b8 	ld  [ %i5 + 0x3b8 ], %g1                       
 200513c:	d4 06 20 50 	ld  [ %i0 + 0x50 ], %o2                        
 2005140:	d6 06 20 54 	ld  [ %i0 + 0x54 ], %o3                        
 2005144:	d0 00 60 08 	ld  [ %g1 + 8 ], %o0                           
 2005148:	13 00 80 8a 	sethi  %hi(0x2022800), %o1                     
 200514c:	40 00 3c 8a 	call  2014374 <fprintf>                        
 2005150:	92 12 63 d0 	or  %o1, 0x3d0, %o1	! 2022bd0 <rtems_filesystem_table+0x15bc>
                                                                      
    default:                                                          
      fprintf(stdout, " bad type %d\n", the_jnode->type );            
      return;                                                         
  }                                                                   
  puts("");                                                           
 2005154:	31 00 80 8a 	sethi  %hi(0x2022800), %i0                     
 2005158:	40 00 43 fc 	call  2016148 <puts>                           
 200515c:	91 ee 23 80 	restore  %i0, 0x380, %o0                       
                                                                      

0200260c <IMFS_readlink>: ) { IMFS_jnode_t *node; ssize_t i; node = loc->node_access;
 200260c:	c8 02 00 00 	ld  [ %o0 ], %g4                               
                                                                      
  IMFS_assert( node->type == IMFS_SYM_LINK );                         
                                                                      
  for( i=0; ((i<bufsize) && (node->info.sym_link.name[i] != '\0')); i++ )
 2002610:	80 a2 a0 00 	cmp  %o2, 0                                    
 2002614:	02 80 00 13 	be  2002660 <IMFS_readlink+0x54>               <== NEVER TAKEN
 2002618:	90 10 20 00 	clr  %o0                                       
 200261c:	c2 01 20 50 	ld  [ %g4 + 0x50 ], %g1                        
 2002620:	c4 48 40 00 	ldsb  [ %g1 ], %g2                             
 2002624:	80 a0 a0 00 	cmp  %g2, 0                                    
 2002628:	02 80 00 0e 	be  2002660 <IMFS_readlink+0x54>               <== NEVER TAKEN
 200262c:	c2 08 40 00 	ldub  [ %g1 ], %g1                             
 2002630:	10 80 00 07 	b  200264c <IMFS_readlink+0x40>                
 2002634:	84 10 20 00 	clr  %g2                                       
 2002638:	c2 01 20 50 	ld  [ %g4 + 0x50 ], %g1                        
 200263c:	c6 48 40 08 	ldsb  [ %g1 + %o0 ], %g3                       
 2002640:	80 a0 e0 00 	cmp  %g3, 0                                    
 2002644:	02 80 00 07 	be  2002660 <IMFS_readlink+0x54>               
 2002648:	c2 08 40 08 	ldub  [ %g1 + %o0 ], %g1                       
    buf[i] = node->info.sym_link.name[i];                             
 200264c:	c2 2a 40 02 	stb  %g1, [ %o1 + %g2 ]                        
                                                                      
  node = loc->node_access;                                            
                                                                      
  IMFS_assert( node->type == IMFS_SYM_LINK );                         
                                                                      
  for( i=0; ((i<bufsize) && (node->info.sym_link.name[i] != '\0')); i++ )
 2002650:	90 02 20 01 	inc  %o0                                       
 2002654:	80 a2 00 0a 	cmp  %o0, %o2                                  
 2002658:	12 bf ff f8 	bne  2002638 <IMFS_readlink+0x2c>              
 200265c:	84 10 00 08 	mov  %o0, %g2                                  
    buf[i] = node->info.sym_link.name[i];                             
                                                                      
  return i;                                                           
}                                                                     
 2002660:	81 c3 e0 08 	retl                                           
                                                                      

02002668 <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 */ ) {
 2002668:	9d e3 bf 98 	save  %sp, -104, %sp                           
  IMFS_jnode_t *the_jnode;                                            
  IMFS_jnode_t *new_parent;                                           
                                                                      
  the_jnode = old_loc->node_access;                                   
 200266c:	fa 06 40 00 	ld  [ %i1 ], %i5                               
                                                                      
  strncpy( the_jnode->name, new_name, IMFS_NAME_MAX );                
 2002670:	92 10 00 1b 	mov  %i3, %o1                                  
 2002674:	90 07 60 0c 	add  %i5, 0xc, %o0                             
 2002678:	40 00 3a 93 	call  20110c4 <strncpy>                        
 200267c:	94 10 20 20 	mov  0x20, %o2                                 
                                                                      
  if ( the_jnode->Parent != NULL )                                    
 2002680:	c2 07 60 08 	ld  [ %i5 + 8 ], %g1                           
 2002684:	80 a0 60 00 	cmp  %g1, 0                                    
 2002688:	22 80 00 05 	be,a   200269c <IMFS_rename+0x34>              <== NEVER TAKEN
 200268c:	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 );                                         
 2002690:	40 00 13 66 	call  2007428 <_Chain_Extract>                 
 2002694:	90 10 00 1d 	mov  %i5, %o0                                  
    rtems_chain_extract( (rtems_chain_node *) the_jnode );            
                                                                      
  new_parent = new_parent_loc->node_access;                           
 2002698:	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 );                               
 200269c:	92 10 00 1d 	mov  %i5, %o1                                  
 20026a0:	90 00 60 50 	add  %g1, 0x50, %o0                            
 20026a4:	40 00 13 56 	call  20073fc <_Chain_Append>                  
 20026a8:	c2 27 60 08 	st  %g1, [ %i5 + 8 ]                           
  rtems_chain_append( &new_parent->info.directory.Entries, &the_jnode->Node );
                                                                      
  /*                                                                  
   * Update the time.                                                 
   */                                                                 
  IMFS_update_ctime( the_jnode );                                     
 20026ac:	90 07 bf f8 	add  %fp, -8, %o0                              
 20026b0:	40 00 02 42 	call  2002fb8 <gettimeofday>                   
 20026b4:	92 10 20 00 	clr  %o1                                       
 20026b8:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
 20026bc:	c2 27 60 48 	st  %g1, [ %i5 + 0x48 ]                        
                                                                      
  return 0;                                                           
}                                                                     
 20026c0:	81 c7 e0 08 	ret                                            
 20026c4:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      

0200ad88 <IMFS_skip_separator>: static void IMFS_skip_separator ( const char *path, /* IN */ size_t *len, /* IN/OUT */ int *index /* IN/OUT */ ) {
 200ad88:	9d e3 bf a0 	save  %sp, -96, %sp                            
  while ( IMFS_is_separator( path[*index] ) && path[*index] && *len ) {
 200ad8c:	10 80 00 0f 	b  200adc8 <IMFS_skip_separator+0x40>          
 200ad90:	c2 06 80 00 	ld  [ %i2 ], %g1                               
 200ad94:	c4 4e 00 01 	ldsb  [ %i0 + %g1 ], %g2                       
 200ad98:	80 a0 a0 00 	cmp  %g2, 0                                    
 200ad9c:	02 80 00 10 	be  200addc <IMFS_skip_separator+0x54>         
 200ada0:	82 00 60 01 	inc  %g1                                       
 200ada4:	c4 06 40 00 	ld  [ %i1 ], %g2                               
 200ada8:	80 a0 a0 00 	cmp  %g2, 0                                    
 200adac:	02 80 00 0c 	be  200addc <IMFS_skip_separator+0x54>         <== NEVER TAKEN
 200adb0:	01 00 00 00 	nop                                            
    ++(*index);                                                       
 200adb4:	c2 26 80 00 	st  %g1, [ %i2 ]                               
    --(*len);                                                         
 200adb8:	c2 06 40 00 	ld  [ %i1 ], %g1                               
 200adbc:	82 00 7f ff 	add  %g1, -1, %g1                              
 200adc0:	c2 26 40 00 	st  %g1, [ %i1 ]                               
   const char *path,       /* IN     */                               
   size_t     *len,        /* IN/OUT */                               
   int        *index       /* IN/OUT */                               
)                                                                     
{                                                                     
  while ( IMFS_is_separator( path[*index] ) && path[*index] && *len ) {
 200adc4:	c2 06 80 00 	ld  [ %i2 ], %g1                               
 200adc8:	7f ff e4 4f 	call  2003f04 <rtems_filesystem_is_separator>  
 200adcc:	d0 4e 00 01 	ldsb  [ %i0 + %g1 ], %o0                       
 200add0:	80 a2 20 00 	cmp  %o0, 0                                    
 200add4:	32 bf ff f0 	bne,a   200ad94 <IMFS_skip_separator+0xc>      
 200add8:	c2 06 80 00 	ld  [ %i2 ], %g1                               
 200addc:	81 c7 e0 08 	ret                                            
 200ade0:	81 e8 00 00 	restore                                        
                                                                      

0200bbe0 <IMFS_stat>: int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) {
 200bbe0:	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;                                       
 200bbe4:	c2 06 00 00 	ld  [ %i0 ], %g1                               
                                                                      
                                                                      
  switch ( the_jnode->type ) {                                        
 200bbe8:	c4 00 60 4c 	ld  [ %g1 + 0x4c ], %g2                        
 200bbec:	80 a0 a0 07 	cmp  %g2, 7                                    
 200bbf0:	08 80 00 08 	bleu  200bc10 <IMFS_stat+0x30>                 <== ALWAYS TAKEN
 200bbf4:	85 28 a0 02 	sll  %g2, 2, %g2                               
    case IMFS_FIFO:                                                   
      buf->st_size = 0;                                               
      break;                                                          
                                                                      
    default:                                                          
      rtems_set_errno_and_return_minus_one( ENOTSUP );                
 200bbf8:	40 00 0f 6a 	call  200f9a0 <__errno>                        
 200bbfc:	b0 10 3f ff 	mov  -1, %i0                                   
 200bc00:	82 10 20 86 	mov  0x86, %g1                                 
 200bc04:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200bc08:	81 c7 e0 08 	ret                                            
 200bc0c:	81 e8 00 00 	restore                                        
  IMFS_device_t  *io;                                                 
                                                                      
  the_jnode = loc->node_access;                                       
                                                                      
                                                                      
  switch ( the_jnode->type ) {                                        
 200bc10:	07 00 80 2e 	sethi  %hi(0x200b800), %g3                     
 200bc14:	86 10 e3 c0 	or  %g3, 0x3c0, %g3	! 200bbc0 <IMFS_rmnod+0x24>
 200bc18:	c4 00 c0 02 	ld  [ %g3 + %g2 ], %g2                         
 200bc1c:	81 c0 80 00 	jmp  %g2                                       
 200bc20:	01 00 00 00 	nop                                            
    case IMFS_SYM_LINK:                                               
      buf->st_size = 0;                                               
      break;                                                          
                                                                      
    case IMFS_FIFO:                                                   
      buf->st_size = 0;                                               
 200bc24:	c0 26 60 20 	clr  [ %i1 + 0x20 ]                            
 200bc28:	c0 26 60 24 	clr  [ %i1 + 0x24 ]                            
                                                                      
  /*                                                                  
   * The device number of the IMFS is the major number and the minor is the
   * instance.                                                        
   */                                                                 
  fs_info = loc->mt_entry->fs_info;                                   
 200bc2c:	c4 06 20 10 	ld  [ %i0 + 0x10 ], %g2                        
  buf->st_dev =                                                       
    rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance );
                                                                      
  buf->st_mode  = the_jnode->st_mode;                                 
 200bc30:	d6 00 60 30 	ld  [ %g1 + 0x30 ], %o3                        
   * 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 );
 200bc34:	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;                                  
  buf->st_gid   = the_jnode->st_gid;                                  
 200bc38:	f0 10 60 3e 	lduh  [ %g1 + 0x3e ], %i0                      
  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;                                
 200bc3c:	d8 10 60 34 	lduh  [ %g1 + 0x34 ], %o4                      
   * 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 );
 200bc40:	d4 00 80 00 	ld  [ %g2 ], %o2                               
                                                                      
  buf->st_mode  = the_jnode->st_mode;                                 
  buf->st_nlink = the_jnode->st_nlink;                                
  buf->st_ino   = the_jnode->st_ino;                                  
 200bc44:	da 00 60 38 	ld  [ %g1 + 0x38 ], %o5                        
  buf->st_uid   = the_jnode->st_uid;                                  
 200bc48:	de 10 60 3c 	lduh  [ %g1 + 0x3c ], %o7                      
  buf->st_gid   = the_jnode->st_gid;                                  
                                                                      
  buf->st_atime = the_jnode->stat_atime;                              
 200bc4c:	c8 00 60 40 	ld  [ %g1 + 0x40 ], %g4                        
  buf->st_mtime = the_jnode->stat_mtime;                              
 200bc50:	c6 00 60 44 	ld  [ %g1 + 0x44 ], %g3                        
  buf->st_ctime = the_jnode->stat_ctime;                              
 200bc54:	c4 00 60 48 	ld  [ %g1 + 0x48 ], %g2                        
                                                                      
  buf->st_blksize = imfs_rq_memfile_bytes_per_block;                  
 200bc58:	03 00 80 73 	sethi  %hi(0x201cc00), %g1                     
 200bc5c:	c2 00 61 8c 	ld  [ %g1 + 0x18c ], %g1	! 201cd8c <imfs_rq_memfile_bytes_per_block>
   */                                                                 
  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;                                 
 200bc60:	d6 26 60 0c 	st  %o3, [ %i1 + 0xc ]                         
  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;                                  
 200bc64:	f0 36 60 14 	sth  %i0, [ %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 =                                                       
 200bc68:	d4 26 60 04 	st  %o2, [ %i1 + 4 ]                           
 200bc6c:	17 00 00 3f 	sethi  %hi(0xfc00), %o3                        
    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;                                
 200bc70:	d8 36 60 10 	sth  %o4, [ %i1 + 0x10 ]                       
  /*                                                                  
   * 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 =                                                       
 200bc74:	96 12 e3 fe 	or  %o3, 0x3fe, %o3                            
    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;                                  
 200bc78:	da 26 60 08 	st  %o5, [ %i1 + 8 ]                           
  /*                                                                  
   * 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 =                                                       
 200bc7c:	d6 26 40 00 	st  %o3, [ %i1 ]                               
    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;                                  
 200bc80:	de 36 60 12 	sth  %o7, [ %i1 + 0x12 ]                       
  buf->st_gid   = the_jnode->st_gid;                                  
                                                                      
  buf->st_atime = the_jnode->stat_atime;                              
 200bc84:	c8 26 60 28 	st  %g4, [ %i1 + 0x28 ]                        
  buf->st_mtime = the_jnode->stat_mtime;                              
 200bc88:	c6 26 60 30 	st  %g3, [ %i1 + 0x30 ]                        
  buf->st_ctime = the_jnode->stat_ctime;                              
 200bc8c:	c4 26 60 38 	st  %g2, [ %i1 + 0x38 ]                        
                                                                      
  buf->st_blksize = imfs_rq_memfile_bytes_per_block;                  
 200bc90:	c2 26 60 40 	st  %g1, [ %i1 + 0x40 ]                        
                                                                      
  return 0;                                                           
}                                                                     
 200bc94:	81 c7 e0 08 	ret                                            
 200bc98:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      
  switch ( the_jnode->type ) {                                        
                                                                      
    case IMFS_DEVICE:                                                 
      io           = &the_jnode->info.device;                         
      buf->st_rdev = rtems_filesystem_make_dev_t( io->major, io->minor );
 200bc9c:	c6 00 60 54 	ld  [ %g1 + 0x54 ], %g3                        
  rtems_device_minor_number _minor                                    
)                                                                     
{                                                                     
  union __rtems_dev_t temp;                                           
                                                                      
  temp.__overlay.major = _major;                                      
 200bca0:	c4 00 60 50 	ld  [ %g1 + 0x50 ], %g2                        
      break;                                                          
 200bca4:	10 bf ff e2 	b  200bc2c <IMFS_stat+0x4c>                    
 200bca8:	c4 3e 60 18 	std  %g2, [ %i1 + 0x18 ]                       
                                                                      
    case IMFS_LINEAR_FILE:                                            
    case IMFS_MEMORY_FILE:                                            
      buf->st_size = the_jnode->info.file.size;                       
 200bcac:	c4 18 60 50 	ldd  [ %g1 + 0x50 ], %g2                       
      break;                                                          
 200bcb0:	10 bf ff df 	b  200bc2c <IMFS_stat+0x4c>                    
 200bcb4:	c4 3e 60 20 	std  %g2, [ %i1 + 0x20 ]                       
                                                                      

02002760 <IMFS_unlink>: int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) {
 2002760:	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;                                            
 2002764:	fa 06 40 00 	ld  [ %i1 ], %i5                               
  /*                                                                  
   * If this is the last last pointer to the node                     
   * free the node.                                                   
   */                                                                 
                                                                      
  if ( node->type == IMFS_HARD_LINK ) {                               
 2002768:	c2 07 60 4c 	ld  [ %i5 + 0x4c ], %g1                        
 200276c:	80 a0 60 03 	cmp  %g1, 3                                    
 2002770:	02 80 00 09 	be  2002794 <IMFS_unlink+0x34>                 
 2002774:	b8 10 00 18 	mov  %i0, %i4                                  
                                                                      
  /*                                                                  
   *  Now actually free the node we were asked to free.               
   */                                                                 
                                                                      
  result = (*loc->handlers->rmnod_h)( parentloc, loc );               
 2002778:	c2 06 60 08 	ld  [ %i1 + 8 ], %g1                           
 200277c:	90 10 00 1c 	mov  %i4, %o0                                  
 2002780:	c2 00 60 34 	ld  [ %g1 + 0x34 ], %g1                        
 2002784:	9f c0 40 00 	call  %g1                                      
 2002788:	92 10 00 19 	mov  %i1, %o1                                  
                                                                      
  return result;                                                      
}                                                                     
 200278c:	81 c7 e0 08 	ret                                            
 2002790:	91 e8 00 08 	restore  %g0, %o0, %o0                         
   * free the node.                                                   
   */                                                                 
                                                                      
  if ( node->type == IMFS_HARD_LINK ) {                               
                                                                      
    if ( !node->info.hard_link.link_node )                            
 2002794:	c2 07 60 50 	ld  [ %i5 + 0x50 ], %g1                        
 2002798:	80 a0 60 00 	cmp  %g1, 0                                    
 200279c:	02 80 00 2b 	be  2002848 <IMFS_unlink+0xe8>                 <== NEVER TAKEN
 20027a0:	01 00 00 00 	nop                                            
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    the_link = *loc;                                                  
 20027a4:	c6 06 60 0c 	ld  [ %i1 + 0xc ], %g3                         
 20027a8:	f0 06 60 04 	ld  [ %i1 + 4 ], %i0                           
 20027ac:	c8 06 60 08 	ld  [ %i1 + 8 ], %g4                           
 20027b0:	c4 06 60 10 	ld  [ %i1 + 0x10 ], %g2                        
 20027b4:	c6 27 bf f0 	st  %g3, [ %fp + -16 ]                         
    the_link.node_access = node->info.hard_link.link_node;            
 20027b8:	c2 27 bf e4 	st  %g1, [ %fp + -28 ]                         
  if ( node->type == IMFS_HARD_LINK ) {                               
                                                                      
    if ( !node->info.hard_link.link_node )                            
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    the_link = *loc;                                                  
 20027bc:	f0 27 bf e8 	st  %i0, [ %fp + -24 ]                         
 20027c0:	c8 27 bf ec 	st  %g4, [ %fp + -20 ]                         
 20027c4:	c4 27 bf f4 	st  %g2, [ %fp + -12 ]                         
    the_link.node_access = node->info.hard_link.link_node;            
    IMFS_Set_handlers( &the_link );                                   
 20027c8:	40 00 21 87 	call  200ade4 <IMFS_Set_handlers>              
 20027cc:	90 07 bf e4 	add  %fp, -28, %o0                             
    /*                                                                
     *  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)               
 20027d0:	c2 07 60 50 	ld  [ %i5 + 0x50 ], %g1                        
 20027d4:	c6 10 60 34 	lduh  [ %g1 + 0x34 ], %g3                      
 20027d8:	80 a0 e0 01 	cmp  %g3, 1                                    
 20027dc:	02 80 00 10 	be  200281c <IMFS_unlink+0xbc>                 
 20027e0:	84 00 ff ff 	add  %g3, -1, %g2                              
            return -1;                                                
    }                                                                 
    else                                                              
    {                                                                 
        node->info.hard_link.link_node->st_nlink --;                  
        IMFS_update_ctime( node->info.hard_link.link_node );          
 20027e4:	90 07 bf f8 	add  %fp, -8, %o0                              
        if ( result != 0 )                                            
            return -1;                                                
    }                                                                 
    else                                                              
    {                                                                 
        node->info.hard_link.link_node->st_nlink --;                  
 20027e8:	c4 30 60 34 	sth  %g2, [ %g1 + 0x34 ]                       
        IMFS_update_ctime( node->info.hard_link.link_node );          
 20027ec:	40 00 01 f3 	call  2002fb8 <gettimeofday>                   
 20027f0:	92 10 20 00 	clr  %o1                                       
 20027f4:	c2 07 60 50 	ld  [ %i5 + 0x50 ], %g1                        
 20027f8:	c4 07 bf f8 	ld  [ %fp + -8 ], %g2                          
                                                                      
  /*                                                                  
   *  Now actually free the node we were asked to free.               
   */                                                                 
                                                                      
  result = (*loc->handlers->rmnod_h)( parentloc, loc );               
 20027fc:	90 10 00 1c 	mov  %i4, %o0                                  
            return -1;                                                
    }                                                                 
    else                                                              
    {                                                                 
        node->info.hard_link.link_node->st_nlink --;                  
        IMFS_update_ctime( node->info.hard_link.link_node );          
 2002800:	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 );               
 2002804:	c2 06 60 08 	ld  [ %i1 + 8 ], %g1                           
 2002808:	c2 00 60 34 	ld  [ %g1 + 0x34 ], %g1                        
 200280c:	9f c0 40 00 	call  %g1                                      
 2002810:	92 10 00 19 	mov  %i1, %o1                                  
                                                                      
  return result;                                                      
}                                                                     
 2002814:	81 c7 e0 08 	ret                                            
 2002818:	91 e8 00 08 	restore  %g0, %o0, %o0                         
     *  to remove the node that is a link and the node itself.        
     */                                                               
                                                                      
    if ( node->info.hard_link.link_node->st_nlink == 1)               
    {                                                                 
        result = (*the_link.handlers->rmnod_h)( parentloc, &the_link );
 200281c:	c2 07 bf ec 	ld  [ %fp + -20 ], %g1                         
 2002820:	90 10 00 1c 	mov  %i4, %o0                                  
 2002824:	c2 00 60 34 	ld  [ %g1 + 0x34 ], %g1                        
 2002828:	92 07 bf e4 	add  %fp, -28, %o1                             
 200282c:	9f c0 40 00 	call  %g1                                      
 2002830:	b0 10 3f ff 	mov  -1, %i0                                   
        if ( result != 0 )                                            
 2002834:	80 a2 20 00 	cmp  %o0, 0                                    
 2002838:	22 bf ff d1 	be,a   200277c <IMFS_unlink+0x1c>              
 200283c:	c2 06 60 08 	ld  [ %i1 + 8 ], %g1                           
 2002840:	81 c7 e0 08 	ret                                            
 2002844:	81 e8 00 00 	restore                                        
   */                                                                 
                                                                      
  if ( node->type == IMFS_HARD_LINK ) {                               
                                                                      
    if ( !node->info.hard_link.link_node )                            
      rtems_set_errno_and_return_minus_one( EINVAL );                 
 2002848:	40 00 34 56 	call  200f9a0 <__errno>                        <== NOT EXECUTED
 200284c:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
 2002850:	82 10 20 16 	mov  0x16, %g1                                 <== NOT EXECUTED
 2002854:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
 2002858:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200285c:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

02002860 <IMFS_unmount>: #include <rtems/seterr.h> int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) {
 2002860:	9d e3 bf a0 	save  %sp, -96, %sp                            
  IMFS_jnode_t  *node;                                                
                                                                      
  node = mt_entry->mt_point_node.node_access;                         
 2002864:	c2 06 20 08 	ld  [ %i0 + 8 ], %g1                           
                                                                      
  /*                                                                  
   * Is the node that we are mounting onto a directory node ?         
   */                                                                 
                                                                      
  if ( node->type != IMFS_DIRECTORY )                                 
 2002868:	c4 00 60 4c 	ld  [ %g1 + 0x4c ], %g2                        
 200286c:	80 a0 a0 01 	cmp  %g2, 1                                    
 2002870:	12 80 00 09 	bne  2002894 <IMFS_unmount+0x34>               <== NEVER TAKEN
 2002874:	01 00 00 00 	nop                                            
                                                                      
  /*                                                                  
   * Did the node indicate that there was a directory mounted here?   
   */                                                                 
                                                                      
  if ( node->info.directory.mt_fs == NULL )                           
 2002878:	c4 00 60 5c 	ld  [ %g1 + 0x5c ], %g2                        
 200287c:	80 a0 a0 00 	cmp  %g2, 0                                    
 2002880:	02 80 00 0b 	be  20028ac <IMFS_unmount+0x4c>                <== NEVER TAKEN
 2002884:	01 00 00 00 	nop                                            
  /*                                                                  
   * Set the mt_fs pointer to indicate that there is no longer        
   * a file system mounted to this point.                             
   */                                                                 
                                                                      
  node->info.directory.mt_fs = NULL;                                  
 2002888:	c0 20 60 5c 	clr  [ %g1 + 0x5c ]                            
                                                                      
  return 0;                                                           
}                                                                     
 200288c:	81 c7 e0 08 	ret                                            
 2002890:	91 e8 20 00 	restore  %g0, 0, %o0                           
  /*                                                                  
   * Is the node that we are mounting onto a directory node ?         
   */                                                                 
                                                                      
  if ( node->type != IMFS_DIRECTORY )                                 
    rtems_set_errno_and_return_minus_one( ENOTDIR );                  
 2002894:	40 00 34 43 	call  200f9a0 <__errno>                        <== NOT EXECUTED
 2002898:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
 200289c:	82 10 20 14 	mov  0x14, %g1                                 <== NOT EXECUTED
 20028a0:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
 20028a4:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 20028a8:	81 e8 00 00 	restore                                        <== NOT EXECUTED
  /*                                                                  
   * Did the node indicate that there was a directory mounted here?   
   */                                                                 
                                                                      
  if ( node->info.directory.mt_fs == NULL )                           
    rtems_set_errno_and_return_minus_one( EINVAL );  /* XXX */        
 20028ac:	40 00 34 3d 	call  200f9a0 <__errno>                        <== NOT EXECUTED
 20028b0:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
 20028b4:	82 10 20 16 	mov  0x16, %g1                                 <== NOT EXECUTED
 20028b8:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
 20028bc:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 20028c0:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

020031a4 <RTEMS_Malloc_Initialize>: void RTEMS_Malloc_Initialize( void *heap_begin, uintptr_t heap_size, size_t sbrk_amount ) {
 20031a4:	9d e3 bf a0 	save  %sp, -96, %sp                            
  /*                                                                  
   *  If configured, initialize the statistics support                
   */                                                                 
  if ( rtems_malloc_statistics_helpers != NULL ) {                    
 20031a8:	03 00 80 75 	sethi  %hi(0x201d400), %g1                     
 20031ac:	c2 00 61 64 	ld  [ %g1 + 0x164 ], %g1	! 201d564 <rtems_malloc_statistics_helpers>
 20031b0:	80 a0 60 00 	cmp  %g1, 0                                    
 20031b4:	02 80 00 05 	be  20031c8 <RTEMS_Malloc_Initialize+0x24>     
 20031b8:	01 00 00 00 	nop                                            
    (*rtems_malloc_statistics_helpers->initialize)();                 
 20031bc:	c2 00 40 00 	ld  [ %g1 ], %g1                               
 20031c0:	9f c0 40 00 	call  %g1                                      
 20031c4:	01 00 00 00 	nop                                            
  }                                                                   
                                                                      
  /*                                                                  
   *  Initialize the garbage collection list to start with nothing on it.
   */                                                                 
  malloc_deferred_frees_initialize();                                 
 20031c8:	7f ff ff dd 	call  200313c <malloc_deferred_frees_initialize>
 20031cc:	01 00 00 00 	nop                                            
                                                                      
  /*                                                                  
   *  Initialize the optional sbrk support for extending the heap     
   */                                                                 
  if ( rtems_malloc_sbrk_helpers != NULL ) {                          
 20031d0:	03 00 80 75 	sethi  %hi(0x201d400), %g1                     
 20031d4:	c2 00 61 60 	ld  [ %g1 + 0x160 ], %g1	! 201d560 <rtems_malloc_sbrk_helpers>
 20031d8:	80 a0 60 00 	cmp  %g1, 0                                    
 20031dc:	02 80 00 08 	be  20031fc <RTEMS_Malloc_Initialize+0x58>     
 20031e0:	90 10 00 18 	mov  %i0, %o0                                  
    void *new_heap_begin = (*rtems_malloc_sbrk_helpers->initialize)(  
 20031e4:	c2 00 40 00 	ld  [ %g1 ], %g1                               
      heap_begin,                                                     
      sbrk_amount                                                     
    );                                                                
                                                                      
    heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin; 
 20031e8:	b2 06 00 19 	add  %i0, %i1, %i1                             
                                                                      
  /*                                                                  
   *  Initialize the optional sbrk support for extending the heap     
   */                                                                 
  if ( rtems_malloc_sbrk_helpers != NULL ) {                          
    void *new_heap_begin = (*rtems_malloc_sbrk_helpers->initialize)(  
 20031ec:	9f c0 40 00 	call  %g1                                      
 20031f0:	92 10 00 1a 	mov  %i2, %o1                                  
      heap_begin,                                                     
      sbrk_amount                                                     
    );                                                                
                                                                      
    heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin; 
    heap_begin = new_heap_begin;                                      
 20031f4:	b0 10 00 08 	mov  %o0, %i0                                  
    void *new_heap_begin = (*rtems_malloc_sbrk_helpers->initialize)(  
      heap_begin,                                                     
      sbrk_amount                                                     
    );                                                                
                                                                      
    heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin; 
 20031f8:	b2 26 40 08 	sub  %i1, %o0, %i1                             
   *  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 (                                                                
 20031fc:	39 00 80 75 	sethi  %hi(0x201d400), %i4                     
 2003200:	c2 0f 21 68 	ldub  [ %i4 + 0x168 ], %g1	! 201d568 <rtems_unified_work_area>
 2003204:	80 a0 60 00 	cmp  %g1, 0                                    
 2003208:	12 80 00 10 	bne  2003248 <RTEMS_Malloc_Initialize+0xa4>    
 200320c:	3b 00 80 73 	sethi  %hi(0x201cc00), %i5                     
    !rtems_unified_work_area                                          
      && rtems_configuration_get_do_zero_of_workspace()               
 2003210:	03 00 80 73 	sethi  %hi(0x201cc00), %g1                     
 2003214:	c2 08 60 94 	ldub  [ %g1 + 0x94 ], %g1	! 201cc94 <Configuration+0x28>
 2003218:	80 a0 60 00 	cmp  %g1, 0                                    
 200321c:	12 80 00 13 	bne  2003268 <RTEMS_Malloc_Initialize+0xc4>    
 2003220:	90 10 00 18 	mov  %i0, %o0                                  
  void *area_begin,                                                   
  uintptr_t area_size,                                                
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return _Heap_Initialize( heap, area_begin, area_size, page_size );  
 2003224:	3b 00 80 73 	sethi  %hi(0x201cc00), %i5                     
 2003228:	d0 07 61 50 	ld  [ %i5 + 0x150 ], %o0	! 201cd50 <RTEMS_Malloc_Heap>
 200322c:	92 10 00 18 	mov  %i0, %o1                                  
 2003230:	94 10 00 19 	mov  %i1, %o2                                  
 2003234:	40 00 12 4b 	call  2007b60 <_Heap_Initialize>               
 2003238:	96 10 20 08 	mov  8, %o3                                    
      RTEMS_Malloc_Heap,                                              
      heap_begin,                                                     
      heap_size,                                                      
      CPU_HEAP_ALIGNMENT                                              
    );                                                                
    if ( status == 0 ) {                                              
 200323c:	80 a2 20 00 	cmp  %o0, 0                                    
 2003240:	02 80 00 13 	be  200328c <RTEMS_Malloc_Initialize+0xe8>     
 2003244:	01 00 00 00 	nop                                            
      rtems_fatal_error_occurred( RTEMS_NO_MEMORY );                  
    }                                                                 
  }                                                                   
                                                                      
  MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) );
 2003248:	39 00 80 76 	sethi  %hi(0x201d800), %i4                     
 200324c:	d0 07 61 50 	ld  [ %i5 + 0x150 ], %o0                       
 2003250:	40 00 15 50 	call  2008790 <_Protected_heap_Get_size>       
 2003254:	fa 07 20 20 	ld  [ %i4 + 0x20 ], %i5                        
 2003258:	ba 02 00 1d 	add  %o0, %i5, %i5                             
 200325c:	fa 27 20 20 	st  %i5, [ %i4 + 0x20 ]                        
}                                                                     
 2003260:	81 c7 e0 08 	ret                                            
 2003264:	81 e8 00 00 	restore                                        
                                                                      
  if (                                                                
    !rtems_unified_work_area                                          
      && rtems_configuration_get_do_zero_of_workspace()               
  ) {                                                                 
     memset( heap_begin, 0, heap_size );                              
 2003268:	92 10 20 00 	clr  %o1                                       
 200326c:	40 00 34 65 	call  2010400 <memset>                         
 2003270:	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 ) {                                   
 2003274:	c2 0f 21 68 	ldub  [ %i4 + 0x168 ], %g1                     
 2003278:	80 a0 60 00 	cmp  %g1, 0                                    
 200327c:	22 bf ff eb 	be,a   2003228 <RTEMS_Malloc_Initialize+0x84>  <== ALWAYS TAKEN
 2003280:	3b 00 80 73 	sethi  %hi(0x201cc00), %i5                     
    if ( status == 0 ) {                                              
      rtems_fatal_error_occurred( RTEMS_NO_MEMORY );                  
    }                                                                 
  }                                                                   
                                                                      
  MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) );
 2003284:	10 bf ff f2 	b  200324c <RTEMS_Malloc_Initialize+0xa8>      <== NOT EXECUTED
 2003288:	39 00 80 76 	sethi  %hi(0x201d800), %i4                     <== NOT EXECUTED
      heap_begin,                                                     
      heap_size,                                                      
      CPU_HEAP_ALIGNMENT                                              
    );                                                                
    if ( status == 0 ) {                                              
      rtems_fatal_error_occurred( RTEMS_NO_MEMORY );                  
 200328c:	40 00 0f 71 	call  2007050 <rtems_fatal_error_occurred>     
 2003290:	90 10 20 1a 	mov  0x1a, %o0                                 
                                                                      

020027d4 <Stack_check_Dump_threads_usage>: static rtems_printk_plugin_t print_handler; void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) {
 20027d4:	9d e3 bf 98 	save  %sp, -104, %sp                           
                                                                      
  /*                                                                  
   *  Obtain interrupt stack information                              
   */                                                                 
  #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE)                          
    if (the_thread == (Thread_Control *) -1) {                        
 20027d8:	80 a6 3f ff 	cmp  %i0, -1                                   
 20027dc:	02 80 00 5d 	be  2002950 <Stack_check_Dump_threads_usage+0x17c>
 20027e0:	b6 06 20 b8 	add  %i0, 0xb8, %i3                            
      current = 0;                                                    
    } else                                                            
  #endif                                                              
    {                                                                 
      stack  = &the_thread->Start.Initial_stack;                      
      current = (void *)_CPU_Context_Get_SP( &the_thread->Registers );
 20027e4:	e0 06 21 40 	ld  [ %i0 + 0x140 ], %l0                       
 20027e8:	f4 06 20 bc 	ld  [ %i0 + 0xbc ], %i2                        
    }                                                                 
                                                                      
  low  = Stack_check_usable_stack_start(stack);                       
  size = Stack_check_usable_stack_size(stack);                        
 20027ec:	f8 06 c0 00 	ld  [ %i3 ], %i4                               
    /*                                                                
     * start at lower memory and find first word that does not        
     * match pattern                                                  
     */                                                               
                                                                      
    base += PATTERN_SIZE_WORDS;                                       
 20027f0:	82 06 a0 20 	add  %i2, 0x20, %g1                            
      stack  = &the_thread->Start.Initial_stack;                      
      current = (void *)_CPU_Context_Get_SP( &the_thread->Registers );
    }                                                                 
                                                                      
  low  = Stack_check_usable_stack_start(stack);                       
  size = Stack_check_usable_stack_size(stack);                        
 20027f4:	b8 07 3f f0 	add  %i4, -16, %i4                             
     * start at lower memory and find first word that does not        
     * match pattern                                                  
     */                                                               
                                                                      
    base += PATTERN_SIZE_WORDS;                                       
    for (ebase = base + length; base < ebase; base++)                 
 20027f8:	86 0f 3f fc 	and  %i4, -4, %g3                              
 20027fc:	86 00 40 03 	add  %g1, %g3, %g3                             
 2002800:	80 a0 40 03 	cmp  %g1, %g3                                  
 2002804:	1a 80 00 12 	bcc  200284c <Stack_check_Dump_threads_usage+0x78><== NEVER TAKEN
 2002808:	ba 10 20 00 	clr  %i5                                       
      if (*base != U32_PATTERN)                                       
 200280c:	c8 06 a0 20 	ld  [ %i2 + 0x20 ], %g4                        
 2002810:	05 29 69 69 	sethi  %hi(0xa5a5a400), %g2                    
 2002814:	84 10 a1 a5 	or  %g2, 0x1a5, %g2	! a5a5a5a5 <RAM_END+0xa365a5a5>
 2002818:	80 a1 00 02 	cmp  %g4, %g2                                  
 200281c:	22 80 00 08 	be,a   200283c <Stack_check_Dump_threads_usage+0x68><== ALWAYS TAKEN
 2002820:	82 00 60 04 	add  %g1, 4, %g1                               
  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 )                                              
 2002824:	10 80 00 36 	b  20028fc <Stack_check_Dump_threads_usage+0x128><== NOT EXECUTED
 2002828:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
     * match pattern                                                  
     */                                                               
                                                                      
    base += PATTERN_SIZE_WORDS;                                       
    for (ebase = base + length; base < ebase; base++)                 
      if (*base != U32_PATTERN)                                       
 200282c:	80 a0 80 04 	cmp  %g2, %g4                                  
 2002830:	12 80 00 32 	bne  20028f8 <Stack_check_Dump_threads_usage+0x124>
 2002834:	ba 10 20 00 	clr  %i5                                       
     * start at lower memory and find first word that does not        
     * match pattern                                                  
     */                                                               
                                                                      
    base += PATTERN_SIZE_WORDS;                                       
    for (ebase = base + length; base < ebase; base++)                 
 2002838:	82 00 60 04 	add  %g1, 4, %g1                               
 200283c:	80 a0 c0 01 	cmp  %g3, %g1                                  
 2002840:	38 bf ff fb 	bgu,a   200282c <Stack_check_Dump_threads_usage+0x58><== ALWAYS TAKEN
 2002844:	c4 00 40 00 	ld  [ %g1 ], %g2                               
  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 );  
  else                                                                
    used = 0;                                                         
 2002848:	ba 10 20 00 	clr  %i5                                       <== NOT EXECUTED
                                                                      
                                                                      
  #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE)                          
    if ( the_thread )                                                 
 200284c:	80 a6 20 00 	cmp  %i0, 0                                    <== NOT EXECUTED
 2002850:	02 80 00 32 	be  2002918 <Stack_check_Dump_threads_usage+0x144><== NOT EXECUTED
 2002854:	33 00 80 66 	sethi  %hi(0x2019800), %i1                     <== NOT EXECUTED
  #endif                                                              
    {                                                                 
      (*print_handler)(                                               
 2002858:	e2 06 20 08 	ld  [ %i0 + 8 ], %l1                           
 200285c:	35 00 80 66 	sethi  %hi(0x2019800), %i2                     
 2002860:	33 00 80 66 	sethi  %hi(0x2019800), %i1                     
 2002864:	e4 06 a0 c4 	ld  [ %i2 + 0xc4 ], %l2                        
 2002868:	f0 06 60 c0 	ld  [ %i1 + 0xc0 ], %i0                        
 200286c:	94 07 bf f8 	add  %fp, -8, %o2                              
 2002870:	92 10 20 05 	mov  5, %o1                                    
 2002874:	40 00 19 54 	call  2008dc4 <rtems_object_get_name>          
 2002878:	90 10 00 11 	mov  %l1, %o0                                  
 200287c:	13 00 80 60 	sethi  %hi(0x2018000), %o1                     
 2002880:	96 10 00 08 	mov  %o0, %o3                                  
 2002884:	94 10 00 11 	mov  %l1, %o2                                  
 2002888:	90 10 00 12 	mov  %l2, %o0                                  
 200288c:	9f c6 00 00 	call  %i0                                      
 2002890:	92 12 62 08 	or  %o1, 0x208, %o1                            
                                                                      
  (*print_handler)(                                                   
    print_context,                                                    
    " %010p - %010p %010p  %8" PRId32 "   ",                          
    stack->area,                                                      
    stack->area + stack->size - 1,                                    
 2002894:	d4 06 e0 04 	ld  [ %i3 + 4 ], %o2                           
 2002898:	d6 06 c0 00 	ld  [ %i3 ], %o3                               
      else {                                                          
        (*print_handler)( print_context, "0x%08" PRIx32 "  INTR", ~0 );
      }                                                               
    #endif                                                            
                                                                      
  (*print_handler)(                                                   
 200289c:	c2 06 60 c0 	ld  [ %i1 + 0xc0 ], %g1                        
 20028a0:	d0 06 a0 c4 	ld  [ %i2 + 0xc4 ], %o0                        
    print_context,                                                    
    " %010p - %010p %010p  %8" PRId32 "   ",                          
    stack->area,                                                      
    stack->area + stack->size - 1,                                    
 20028a4:	96 02 ff ff 	add  %o3, -1, %o3                              
      else {                                                          
        (*print_handler)( print_context, "0x%08" PRIx32 "  INTR", ~0 );
      }                                                               
    #endif                                                            
                                                                      
  (*print_handler)(                                                   
 20028a8:	13 00 80 60 	sethi  %hi(0x2018000), %o1                     
 20028ac:	96 02 80 0b 	add  %o2, %o3, %o3                             
 20028b0:	92 12 62 28 	or  %o1, 0x228, %o1                            
 20028b4:	98 10 00 10 	mov  %l0, %o4                                  
 20028b8:	9f c0 40 00 	call  %g1                                      
 20028bc:	9a 10 00 1c 	mov  %i4, %o5                                  
    stack->area + stack->size - 1,                                    
    current,                                                          
    size                                                              
  );                                                                  
                                                                      
  if (Stack_check_Initialized == 0) {                                 
 20028c0:	03 00 80 66 	sethi  %hi(0x2019800), %g1                     
 20028c4:	c2 00 60 bc 	ld  [ %g1 + 0xbc ], %g1	! 20198bc <Stack_check_Initialized>
      else {                                                          
        (*print_handler)( print_context, "0x%08" PRIx32 "  INTR", ~0 );
      }                                                               
    #endif                                                            
                                                                      
  (*print_handler)(                                                   
 20028c8:	07 00 80 66 	sethi  %hi(0x2019800), %g3                     
 20028cc:	05 00 80 66 	sethi  %hi(0x2019800), %g2                     
    stack->area + stack->size - 1,                                    
    current,                                                          
    size                                                              
  );                                                                  
                                                                      
  if (Stack_check_Initialized == 0) {                                 
 20028d0:	80 a0 60 00 	cmp  %g1, 0                                    
    (*print_handler)( print_context, "Unavailable\n" );               
 20028d4:	d0 00 a0 c4 	ld  [ %g2 + 0xc4 ], %o0                        
    stack->area + stack->size - 1,                                    
    current,                                                          
    size                                                              
  );                                                                  
                                                                      
  if (Stack_check_Initialized == 0) {                                 
 20028d8:	02 80 00 19 	be  200293c <Stack_check_Dump_threads_usage+0x168><== NEVER TAKEN
 20028dc:	c2 00 e0 c0 	ld  [ %g3 + 0xc0 ], %g1                        
    (*print_handler)( print_context, "Unavailable\n" );               
  } else {                                                            
    (*print_handler)( print_context, "%8" PRId32 "\n", used );        
 20028e0:	94 10 00 1d 	mov  %i5, %o2                                  
 20028e4:	13 00 80 60 	sethi  %hi(0x2018000), %o1                     
 20028e8:	9f c0 40 00 	call  %g1                                      
 20028ec:	92 12 62 58 	or  %o1, 0x258, %o1	! 2018258 <rtems_filesystem_table+0x444>
 20028f0:	81 c7 e0 08 	ret                                            
 20028f4:	81 e8 00 00 	restore                                        
  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 )                                              
 20028f8:	80 a0 60 00 	cmp  %g1, 0                                    
 20028fc:	02 bf ff d4 	be  200284c <Stack_check_Dump_threads_usage+0x78><== NEVER TAKEN
 2002900:	80 a6 20 00 	cmp  %i0, 0                                    
    {                                                                 
      stack  = &the_thread->Start.Initial_stack;                      
      current = (void *)_CPU_Context_Get_SP( &the_thread->Registers );
    }                                                                 
                                                                      
  low  = Stack_check_usable_stack_start(stack);                       
 2002904:	ba 06 a0 10 	add  %i2, 0x10, %i5                            
  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 );  
 2002908:	ba 07 40 1c 	add  %i5, %i4, %i5                             
  else                                                                
    used = 0;                                                         
                                                                      
                                                                      
  #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE)                          
    if ( the_thread )                                                 
 200290c:	12 bf ff d3 	bne  2002858 <Stack_check_Dump_threads_usage+0x84>
 2002910:	ba 27 40 01 	sub  %i5, %g1, %i5                             
        rtems_object_get_name( the_thread->Object.id, sizeof(name), name )
      );                                                              
    }                                                                 
    #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE)                        
      else {                                                          
        (*print_handler)( print_context, "0x%08" PRIx32 "  INTR", ~0 );
 2002914:	33 00 80 66 	sethi  %hi(0x2019800), %i1                     
 2002918:	35 00 80 66 	sethi  %hi(0x2019800), %i2                     
 200291c:	c2 06 60 c0 	ld  [ %i1 + 0xc0 ], %g1                        
 2002920:	d0 06 a0 c4 	ld  [ %i2 + 0xc4 ], %o0                        
 2002924:	94 10 3f ff 	mov  -1, %o2                                   
 2002928:	13 00 80 60 	sethi  %hi(0x2018000), %o1                     
 200292c:	9f c0 40 00 	call  %g1                                      
 2002930:	92 12 62 18 	or  %o1, 0x218, %o1	! 2018218 <rtems_filesystem_table+0x404>
                                                                      
  (*print_handler)(                                                   
    print_context,                                                    
    " %010p - %010p %010p  %8" PRId32 "   ",                          
    stack->area,                                                      
    stack->area + stack->size - 1,                                    
 2002934:	10 bf ff d9 	b  2002898 <Stack_check_Dump_threads_usage+0xc4>
 2002938:	d4 06 e0 04 	ld  [ %i3 + 4 ], %o2                           
    current,                                                          
    size                                                              
  );                                                                  
                                                                      
  if (Stack_check_Initialized == 0) {                                 
    (*print_handler)( print_context, "Unavailable\n" );               
 200293c:	13 00 80 60 	sethi  %hi(0x2018000), %o1                     <== NOT EXECUTED
 2002940:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
 2002944:	92 12 62 48 	or  %o1, 0x248, %o1	! 2018248 <rtems_filesystem_table+0x434><== NOT EXECUTED
 2002948:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200294c:	81 e8 00 00 	restore                                        <== NOT EXECUTED
  /*                                                                  
   *  Obtain interrupt stack information                              
   */                                                                 
  #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE)                          
    if (the_thread == (Thread_Control *) -1) {                        
      if (!Stack_check_Interrupt_stack.area)                          
 2002950:	37 00 80 66 	sethi  %hi(0x2019800), %i3                     
 2002954:	b6 16 e3 64 	or  %i3, 0x364, %i3	! 2019b64 <Stack_check_Interrupt_stack>
 2002958:	f4 06 e0 04 	ld  [ %i3 + 4 ], %i2                           
        return;                                                       
      stack = &Stack_check_Interrupt_stack;                           
      the_thread = 0;                                                 
      current = 0;                                                    
 200295c:	a0 10 20 00 	clr  %l0                                       
  /*                                                                  
   *  Obtain interrupt stack information                              
   */                                                                 
  #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE)                          
    if (the_thread == (Thread_Control *) -1) {                        
      if (!Stack_check_Interrupt_stack.area)                          
 2002960:	80 a6 a0 00 	cmp  %i2, 0                                    
 2002964:	12 bf ff a2 	bne  20027ec <Stack_check_Dump_threads_usage+0x18><== ALWAYS TAKEN
 2002968:	b0 10 20 00 	clr  %i0                                       
 200296c:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 2002970:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

02002974 <Stack_check_Initialize>: /* * Stack_check_Initialize */ void Stack_check_Initialize( void ) {
 2002974:	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 )                                      
 2002978:	3b 00 80 66 	sethi  %hi(0x2019800), %i5                     
 200297c:	c2 07 60 bc 	ld  [ %i5 + 0xbc ], %g1	! 20198bc <Stack_check_Initialized>
 2002980:	80 a0 60 00 	cmp  %g1, 0                                    
 2002984:	12 80 00 20 	bne  2002a04 <Stack_check_Initialize+0x90>     
 2002988:	07 00 80 66 	sethi  %hi(0x2019800), %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 ];                                          
 200298c:	09 3f bb 7c 	sethi  %hi(0xfeedf000), %g4                    
 2002990:	82 10 e3 54 	or  %g3, 0x354, %g1                            
 2002994:	88 11 20 0d 	or  %g4, 0xd, %g4                              
 2002998:	c8 20 e3 54 	st  %g4, [ %g3 + 0x354 ]                       
 200299c:	07 02 eb 43 	sethi  %hi(0xbad0c00), %g3                     
 20029a0:	86 10 e1 06 	or  %g3, 0x106, %g3	! bad0d06 <RAM_END+0x96d0d06>
  /*                                                                  
   * 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) {      
 20029a4:	05 00 80 68 	sethi  %hi(0x201a000), %g2                     
 20029a8:	d0 00 a2 d8 	ld  [ %g2 + 0x2d8 ], %o0	! 201a2d8 <_Per_CPU_Information>
  /*                                                                  
   * Dope the pattern and fill areas                                  
   */                                                                 
  p = Stack_check_Pattern.pattern;                                    
  for ( i = 0; i < PATTERN_SIZE_WORDS; i++ ) {                        
      p[i] = pattern[ i%4 ];                                          
 20029ac:	c6 20 60 04 	st  %g3, [ %g1 + 4 ]                           
 20029b0:	07 37 ab 7c 	sethi  %hi(0xdeadf000), %g3                    
 20029b4:	86 10 e0 0d 	or  %g3, 0xd, %g3	! deadf00d <RAM_END+0xdc6df00d>
 20029b8:	c6 20 60 08 	st  %g3, [ %g1 + 8 ]                           
 20029bc:	07 18 03 43 	sethi  %hi(0x600d0c00), %g3                    
 20029c0:	86 10 e1 06 	or  %g3, 0x106, %g3	! 600d0d06 <RAM_END+0x5dcd0d06>
 20029c4:	c6 20 60 0c 	st  %g3, [ %g1 + 0xc ]                         
  /*                                                                  
   * 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) {      
 20029c8:	80 a2 20 00 	cmp  %o0, 0                                    
 20029cc:	02 80 00 0c 	be  20029fc <Stack_check_Initialize+0x88>      <== NEVER TAKEN
 20029d0:	84 10 a2 d8 	or  %g2, 0x2d8, %g2                            
 20029d4:	d4 00 a0 04 	ld  [ %g2 + 4 ], %o2                           
 20029d8:	80 a2 a0 00 	cmp  %o2, 0                                    
 20029dc:	02 80 00 08 	be  20029fc <Stack_check_Initialize+0x88>      <== NEVER TAKEN
 20029e0:	03 00 80 66 	sethi  %hi(0x2019800), %g1                     
      Stack_check_Interrupt_stack.area = _CPU_Interrupt_stack_low;    
 20029e4:	84 10 63 64 	or  %g1, 0x364, %g2	! 2019b64 <Stack_check_Interrupt_stack>
      Stack_check_Interrupt_stack.size = (char *) _CPU_Interrupt_stack_high -
 20029e8:	94 22 80 08 	sub  %o2, %o0, %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;    
 20029ec:	d0 20 a0 04 	st  %o0, [ %g2 + 4 ]                           
      Stack_check_Interrupt_stack.size = (char *) _CPU_Interrupt_stack_high -
 20029f0:	d4 20 63 64 	st  %o2, [ %g1 + 0x364 ]                       
                                  (char *) _CPU_Interrupt_stack_low;  
      Stack_check_Dope_stack(&Stack_check_Interrupt_stack);           
 20029f4:	40 00 40 4c 	call  2012b24 <memset>                         
 20029f8:	92 10 20 a5 	mov  0xa5, %o1                                 
   }                                                                  
  #endif                                                              
                                                                      
  Stack_check_Initialized = 1;                                        
 20029fc:	82 10 20 01 	mov  1, %g1                                    
 2002a00:	c2 27 60 bc 	st  %g1, [ %i5 + 0xbc ]                        
 2002a04:	81 c7 e0 08 	ret                                            
 2002a08:	81 e8 00 00 	restore                                        
                                                                      

02002a7c <Stack_check_report_blown_task>: Thread_Control *running, bool pattern_ok ) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE; void Stack_check_report_blown_task(Thread_Control *running, bool pattern_ok) {
 2002a7c:	9d e3 bf 80 	save  %sp, -128, %sp                           
  Stack_Control *stack = &running->Start.Initial_stack;               
  void          *pattern_area = Stack_check_Get_pattern(stack);       
  char           name[32];                                            
                                                                      
  printk("BLOWN STACK!!!\n");                                         
 2002a80:	11 00 80 60 	sethi  %hi(0x2018000), %o0                     
) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;                                 
                                                                      
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(stack);       
 2002a84:	fa 06 20 bc 	ld  [ %i0 + 0xbc ], %i5                        
  char           name[32];                                            
                                                                      
  printk("BLOWN STACK!!!\n");                                         
 2002a88:	40 00 07 94 	call  20048d8 <printk>                         
 2002a8c:	90 12 22 60 	or  %o0, 0x260, %o0                            
  printk("task control block: 0x%08" PRIxPTR "\n", running);          
 2002a90:	92 10 00 18 	mov  %i0, %o1                                  
 2002a94:	11 00 80 60 	sethi  %hi(0x2018000), %o0                     
 2002a98:	40 00 07 90 	call  20048d8 <printk>                         
 2002a9c:	90 12 22 70 	or  %o0, 0x270, %o0	! 2018270 <rtems_filesystem_table+0x45c>
  printk("task ID: 0x%08lx\n", (unsigned long) running->Object.id);   
 2002aa0:	d2 06 20 08 	ld  [ %i0 + 8 ], %o1                           
 2002aa4:	11 00 80 60 	sethi  %hi(0x2018000), %o0                     
 2002aa8:	40 00 07 8c 	call  20048d8 <printk>                         
 2002aac:	90 12 22 90 	or  %o0, 0x290, %o0	! 2018290 <rtems_filesystem_table+0x47c>
  printk(                                                             
 2002ab0:	d2 06 20 0c 	ld  [ %i0 + 0xc ], %o1                         
 2002ab4:	11 00 80 60 	sethi  %hi(0x2018000), %o0                     
 2002ab8:	40 00 07 88 	call  20048d8 <printk>                         
 2002abc:	90 12 22 a8 	or  %o0, 0x2a8, %o0	! 20182a8 <rtems_filesystem_table+0x494>
    "task name: 0x%08" PRIx32 "\n",                                   
    running->Object.name.name_u32                                     
  );                                                                  
  printk(                                                             
 2002ac0:	d0 06 20 08 	ld  [ %i0 + 8 ], %o0                           
 2002ac4:	94 07 bf e0 	add  %fp, -32, %o2                             
 2002ac8:	40 00 18 bf 	call  2008dc4 <rtems_object_get_name>          
 2002acc:	92 10 20 20 	mov  0x20, %o1                                 
 2002ad0:	92 10 00 08 	mov  %o0, %o1                                  
 2002ad4:	11 00 80 60 	sethi  %hi(0x2018000), %o0                     
 2002ad8:	40 00 07 80 	call  20048d8 <printk>                         
 2002adc:	90 12 22 c0 	or  %o0, 0x2c0, %o0	! 20182c0 <rtems_filesystem_table+0x4ac>
  );                                                                  
  printk(                                                             
    "task stack area (%lu Bytes): 0x%08" PRIxPTR " .. 0x%08" PRIxPTR "\n",
    (unsigned long) stack->size,                                      
    stack->area,                                                      
    ((char *) stack->area + stack->size)                              
 2002ae0:	d4 06 20 bc 	ld  [ %i0 + 0xbc ], %o2                        
 2002ae4:	d2 06 20 b8 	ld  [ %i0 + 0xb8 ], %o1                        
  );                                                                  
  printk(                                                             
    "task name string: %s\n",                                         
    rtems_object_get_name(running->Object.id, sizeof(name), name)     
  );                                                                  
  printk(                                                             
 2002ae8:	11 00 80 60 	sethi  %hi(0x2018000), %o0                     
 2002aec:	96 02 80 09 	add  %o2, %o1, %o3                             
 2002af0:	40 00 07 7a 	call  20048d8 <printk>                         
 2002af4:	90 12 22 d8 	or  %o0, 0x2d8, %o0                            
    "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) {                                                  
 2002af8:	80 a6 60 00 	cmp  %i1, 0                                    
 2002afc:	02 80 00 04 	be  2002b0c <Stack_check_report_blown_task+0x90><== ALWAYS TAKEN
 2002b00:	92 10 20 10 	mov  0x10, %o1                                 
          rtems_configuration_get_user_multiprocessing_table()->node  
      );                                                              
    }                                                                 
  #endif                                                              
                                                                      
  rtems_fatal_error_occurred(0x81);                                   
 2002b04:	40 00 1a d1 	call  2009648 <rtems_fatal_error_occurred>     
 2002b08:	90 10 20 81 	mov  0x81, %o0                                 
    (unsigned long) stack->size,                                      
    stack->area,                                                      
    ((char *) stack->area + stack->size)                              
  );                                                                  
  if (!pattern_ok) {                                                  
    printk(                                                           
 2002b0c:	11 00 80 60 	sethi  %hi(0x2018000), %o0                     
 2002b10:	94 07 60 08 	add  %i5, 8, %o2                               
 2002b14:	90 12 23 10 	or  %o0, 0x310, %o0                            
 2002b18:	40 00 07 70 	call  20048d8 <printk>                         
 2002b1c:	96 07 60 18 	add  %i5, 0x18, %o3                            
 2002b20:	30 bf ff f9 	b,a   2002b04 <Stack_check_report_blown_task+0x88>
                                                                      

0200728c <_API_extensions_Run_postdriver>: /* * _API_extensions_Run_postdriver */ void _API_extensions_Run_postdriver( void ) {
 200728c:	9d e3 bf a0 	save  %sp, -96, %sp                            
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
 2007290:	39 00 80 76 	sethi  %hi(0x201d800), %i4                     
 2007294:	fa 07 23 c4 	ld  [ %i4 + 0x3c4 ], %i5	! 201dbc4 <_API_extensions_List>
 2007298:	b8 17 23 c4 	or  %i4, 0x3c4, %i4                            
  Chain_Node             *the_node;                                   
  API_extensions_Control *the_extension;                              
                                                                      
  for ( the_node = _Chain_First( &_API_extensions_List );             
 200729c:	b8 07 20 04 	add  %i4, 4, %i4                               
 20072a0:	80 a7 40 1c 	cmp  %i5, %i4                                  
 20072a4:	02 80 00 09 	be  20072c8 <_API_extensions_Run_postdriver+0x3c><== NEVER TAKEN
 20072a8:	01 00 00 00 	nop                                            
     *  Currently all APIs configure this hook so it is always non-NULL.
     */                                                               
#if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API)              
    if ( the_extension->postdriver_hook )                             
#endif                                                                
      (*the_extension->postdriver_hook)();                            
 20072ac:	c2 07 60 08 	ld  [ %i5 + 8 ], %g1                           
 20072b0:	9f c0 40 00 	call  %g1                                      
 20072b4:	01 00 00 00 	nop                                            
  Chain_Node             *the_node;                                   
  API_extensions_Control *the_extension;                              
                                                                      
  for ( the_node = _Chain_First( &_API_extensions_List );             
        !_Chain_Is_tail( &_API_extensions_List, the_node ) ;          
        the_node = the_node->next ) {                                 
 20072b8:	fa 07 40 00 	ld  [ %i5 ], %i5                               
void _API_extensions_Run_postdriver( void )                           
{                                                                     
  Chain_Node             *the_node;                                   
  API_extensions_Control *the_extension;                              
                                                                      
  for ( the_node = _Chain_First( &_API_extensions_List );             
 20072bc:	80 a7 40 1c 	cmp  %i5, %i4                                  
 20072c0:	32 bf ff fc 	bne,a   20072b0 <_API_extensions_Run_postdriver+0x24>
 20072c4:	c2 07 60 08 	ld  [ %i5 + 8 ], %g1                           
 20072c8:	81 c7 e0 08 	ret                                            
 20072cc:	81 e8 00 00 	restore                                        
                                                                      

020072d0 <_API_extensions_Run_postswitch>: /* * _API_extensions_Run_postswitch */ void _API_extensions_Run_postswitch( void ) {
 20072d0:	9d e3 bf a0 	save  %sp, -96, %sp                            
 20072d4:	39 00 80 76 	sethi  %hi(0x201d800), %i4                     
 20072d8:	fa 07 23 c4 	ld  [ %i4 + 0x3c4 ], %i5	! 201dbc4 <_API_extensions_List>
 20072dc:	b8 17 23 c4 	or  %i4, 0x3c4, %i4                            
  Chain_Node             *the_node;                                   
  API_extensions_Control *the_extension;                              
                                                                      
  for ( the_node = _Chain_First( &_API_extensions_List );             
 20072e0:	b8 07 20 04 	add  %i4, 4, %i4                               
 20072e4:	80 a7 40 1c 	cmp  %i5, %i4                                  
 20072e8:	02 80 00 0a 	be  2007310 <_API_extensions_Run_postswitch+0x40><== NEVER TAKEN
 20072ec:	37 00 80 77 	sethi  %hi(0x201dc00), %i3                     
 20072f0:	b6 16 e3 08 	or  %i3, 0x308, %i3	! 201df08 <_Per_CPU_Information>
        !_Chain_Is_tail( &_API_extensions_List, the_node ) ;          
        the_node = the_node->next ) {                                 
                                                                      
    the_extension = (API_extensions_Control *) the_node;              
                                                                      
    (*the_extension->postswitch_hook)( _Thread_Executing );           
 20072f4:	c2 07 60 0c 	ld  [ %i5 + 0xc ], %g1                         
 20072f8:	9f c0 40 00 	call  %g1                                      
 20072fc:	d0 06 e0 0c 	ld  [ %i3 + 0xc ], %o0                         
  Chain_Node             *the_node;                                   
  API_extensions_Control *the_extension;                              
                                                                      
  for ( the_node = _Chain_First( &_API_extensions_List );             
        !_Chain_Is_tail( &_API_extensions_List, the_node ) ;          
        the_node = the_node->next ) {                                 
 2007300:	fa 07 40 00 	ld  [ %i5 ], %i5                               
void _API_extensions_Run_postswitch( void )                           
{                                                                     
  Chain_Node             *the_node;                                   
  API_extensions_Control *the_extension;                              
                                                                      
  for ( the_node = _Chain_First( &_API_extensions_List );             
 2007304:	80 a7 40 1c 	cmp  %i5, %i4                                  
 2007308:	32 bf ff fc 	bne,a   20072f8 <_API_extensions_Run_postswitch+0x28>
 200730c:	c2 07 60 0c 	ld  [ %i5 + 0xc ], %g1                         
 2007310:	81 c7 e0 08 	ret                                            
 2007314:	81 e8 00 00 	restore                                        
                                                                      

02009534 <_CORE_RWLock_Release>: */ CORE_RWLock_Status _CORE_RWLock_Release( CORE_RWLock_Control *the_rwlock ) {
 2009534:	9d e3 bf a0 	save  %sp, -96, %sp                            
  ISR_Level       level;                                              
  Thread_Control *executing = _Thread_Executing;                      
 2009538:	03 00 80 6b 	sethi  %hi(0x201ac00), %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 );                                              
 200953c:	7f ff e8 0f 	call  2003578 <sparc_disable_interrupts>       
 2009540:	fa 00 63 64 	ld  [ %g1 + 0x364 ], %i5	! 201af64 <_Per_CPU_Information+0xc>
 2009544:	84 10 00 08 	mov  %o0, %g2                                  
    if ( the_rwlock->current_state == CORE_RWLOCK_UNLOCKED){          
 2009548:	c2 06 20 44 	ld  [ %i0 + 0x44 ], %g1                        
 200954c:	80 a0 60 00 	cmp  %g1, 0                                    
 2009550:	02 80 00 2b 	be  20095fc <_CORE_RWLock_Release+0xc8>        
 2009554:	80 a0 60 01 	cmp  %g1, 1                                    
      _ISR_Enable( level );                                           
      executing->Wait.return_code = CORE_RWLOCK_UNAVAILABLE;          
      return CORE_RWLOCK_SUCCESSFUL;                                  
    }                                                                 
    if ( the_rwlock->current_state == CORE_RWLOCK_LOCKED_FOR_READING ) {
 2009558:	22 80 00 22 	be,a   20095e0 <_CORE_RWLock_Release+0xac>     
 200955c:	c2 06 20 48 	ld  [ %i0 + 0x48 ], %g1                        
          return CORE_RWLOCK_SUCCESSFUL;                              
        }                                                             
    }                                                                 
                                                                      
    /* CORE_RWLOCK_LOCKED_FOR_WRITING or READING with readers */      
    executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL;             
 2009560:	c0 27 60 34 	clr  [ %i5 + 0x34 ]                            
                                                                      
    /*                                                                
     * Implicitly transition to "unlocked" and find another thread interested
     * in obtaining this rwlock.                                      
     */                                                               
    the_rwlock->current_state = CORE_RWLOCK_UNLOCKED;                 
 2009564:	c0 26 20 44 	clr  [ %i0 + 0x44 ]                            
  _ISR_Enable( level );                                               
 2009568:	7f ff e8 08 	call  2003588 <sparc_enable_interrupts>        
 200956c:	90 10 00 02 	mov  %g2, %o0                                  
                                                                      
  next = _Thread_queue_Dequeue( &the_rwlock->Wait_queue );            
 2009570:	40 00 07 f4 	call  200b540 <_Thread_queue_Dequeue>          
 2009574:	90 10 00 18 	mov  %i0, %o0                                  
                                                                      
  if ( next ) {                                                       
 2009578:	80 a2 20 00 	cmp  %o0, 0                                    
 200957c:	22 80 00 24 	be,a   200960c <_CORE_RWLock_Release+0xd8>     
 2009580:	b0 10 20 00 	clr  %i0                                       
    if ( next->Wait.option == CORE_RWLOCK_THREAD_WAITING_FOR_WRITE ) {
 2009584:	c2 02 20 30 	ld  [ %o0 + 0x30 ], %g1                        
 2009588:	80 a0 60 01 	cmp  %g1, 1                                    
 200958c:	02 80 00 22 	be  2009614 <_CORE_RWLock_Release+0xe0>        
 2009590:	84 10 20 01 	mov  1, %g2                                    
    }                                                                 
                                                                      
    /*                                                                
     * Must be CORE_RWLOCK_THREAD_WAITING_FOR_READING                 
     */                                                               
    the_rwlock->number_of_readers += 1;                               
 2009594:	c2 06 20 48 	ld  [ %i0 + 0x48 ], %g1                        
 2009598:	82 00 60 01 	inc  %g1                                       
    the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_READING;       
 200959c:	c4 26 20 44 	st  %g2, [ %i0 + 0x44 ]                        
    }                                                                 
                                                                      
    /*                                                                
     * Must be CORE_RWLOCK_THREAD_WAITING_FOR_READING                 
     */                                                               
    the_rwlock->number_of_readers += 1;                               
 20095a0:	10 80 00 09 	b  20095c4 <_CORE_RWLock_Release+0x90>         
 20095a4:	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 );          
      if ( !next ||                                                   
 20095a8:	80 a0 60 01 	cmp  %g1, 1                                    
 20095ac:	02 80 00 0b 	be  20095d8 <_CORE_RWLock_Release+0xa4>        <== NEVER TAKEN
 20095b0:	90 10 00 18 	mov  %i0, %o0                                  
           next->Wait.option == CORE_RWLOCK_THREAD_WAITING_FOR_WRITE )
        return CORE_RWLOCK_SUCCESSFUL;                                
      the_rwlock->number_of_readers += 1;                             
 20095b4:	c2 06 20 48 	ld  [ %i0 + 0x48 ], %g1                        
 20095b8:	82 00 60 01 	inc  %g1                                       
      _Thread_queue_Extract( &the_rwlock->Wait_queue, next );         
 20095bc:	40 00 08 f1 	call  200b980 <_Thread_queue_Extract>          
 20095c0:	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 );          
 20095c4:	40 00 09 40 	call  200bac4 <_Thread_queue_First>            
 20095c8:	90 10 00 18 	mov  %i0, %o0                                  
      if ( !next ||                                                   
 20095cc:	92 92 20 00 	orcc  %o0, 0, %o1                              
 20095d0:	32 bf ff f6 	bne,a   20095a8 <_CORE_RWLock_Release+0x74>    
 20095d4:	c2 02 60 30 	ld  [ %o1 + 0x30 ], %g1                        
  }                                                                   
                                                                      
  /* indentation is to match _ISR_Disable at top */                   
                                                                      
  return CORE_RWLOCK_SUCCESSFUL;                                      
}                                                                     
 20095d8:	81 c7 e0 08 	ret                                            
 20095dc:	91 e8 20 00 	restore  %g0, 0, %o0                           
      _ISR_Enable( level );                                           
      executing->Wait.return_code = CORE_RWLOCK_UNAVAILABLE;          
      return CORE_RWLOCK_SUCCESSFUL;                                  
    }                                                                 
    if ( the_rwlock->current_state == CORE_RWLOCK_LOCKED_FOR_READING ) {
	the_rwlock->number_of_readers -= 1;                                  
 20095e0:	82 00 7f ff 	add  %g1, -1, %g1                              
	if ( the_rwlock->number_of_readers != 0 ) {                          
 20095e4:	80 a0 60 00 	cmp  %g1, 0                                    
 20095e8:	02 bf ff de 	be  2009560 <_CORE_RWLock_Release+0x2c>        
 20095ec:	c2 26 20 48 	st  %g1, [ %i0 + 0x48 ]                        
          /* must be unlocked again */                                
	  _ISR_Enable( level );                                              
 20095f0:	7f ff e7 e6 	call  2003588 <sparc_enable_interrupts>        
 20095f4:	b0 10 20 00 	clr  %i0                                       
          return CORE_RWLOCK_SUCCESSFUL;                              
 20095f8:	30 80 00 05 	b,a   200960c <_CORE_RWLock_Release+0xd8>      
   *  If any thread is waiting, then we wait.                         
   */                                                                 
                                                                      
  _ISR_Disable( level );                                              
    if ( the_rwlock->current_state == CORE_RWLOCK_UNLOCKED){          
      _ISR_Enable( level );                                           
 20095fc:	7f ff e7 e3 	call  2003588 <sparc_enable_interrupts>        
 2009600:	b0 10 20 00 	clr  %i0                                       
      executing->Wait.return_code = CORE_RWLOCK_UNAVAILABLE;          
 2009604:	82 10 20 02 	mov  2, %g1                                    
 2009608:	c2 27 60 34 	st  %g1, [ %i5 + 0x34 ]                        
  }                                                                   
                                                                      
  /* indentation is to match _ISR_Disable at top */                   
                                                                      
  return CORE_RWLOCK_SUCCESSFUL;                                      
}                                                                     
 200960c:	81 c7 e0 08 	ret                                            
 2009610:	81 e8 00 00 	restore                                        
                                                                      
  next = _Thread_queue_Dequeue( &the_rwlock->Wait_queue );            
                                                                      
  if ( next ) {                                                       
    if ( next->Wait.option == CORE_RWLOCK_THREAD_WAITING_FOR_WRITE ) {
      the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_WRITING;     
 2009614:	82 10 20 02 	mov  2, %g1                                    
 2009618:	c2 26 20 44 	st  %g1, [ %i0 + 0x44 ]                        
  }                                                                   
                                                                      
  /* indentation is to match _ISR_Disable at top */                   
                                                                      
  return CORE_RWLOCK_SUCCESSFUL;                                      
}                                                                     
 200961c:	81 c7 e0 08 	ret                                            
 2009620:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      

02009624 <_CORE_RWLock_Timeout>: void _CORE_RWLock_Timeout( Objects_Id id, void *ignored ) {
 2009624:	9d e3 bf 98 	save  %sp, -104, %sp                           
  Thread_Control       *the_thread;                                   
  Objects_Locations     location;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 2009628:	90 10 00 18 	mov  %i0, %o0                                  
 200962c:	40 00 06 ee 	call  200b1e4 <_Thread_Get>                    
 2009630:	92 07 bf fc 	add  %fp, -4, %o1                              
  switch ( location ) {                                               
 2009634:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 2009638:	80 a0 60 00 	cmp  %g1, 0                                    
 200963c:	12 80 00 09 	bne  2009660 <_CORE_RWLock_Timeout+0x3c>       <== NEVER TAKEN
 2009640:	01 00 00 00 	nop                                            
#if defined(RTEMS_MULTIPROCESSING)                                    
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
      break;                                                          
    case OBJECTS_LOCAL:                                               
      _Thread_queue_Process_timeout( the_thread );                    
 2009644:	40 00 09 62 	call  200bbcc <_Thread_queue_Process_timeout>  
 2009648:	01 00 00 00 	nop                                            
   *                                                                  
   * This routine decrements the thread dispatch level.               
   */                                                                 
  RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_decrement_disable_level(void)
  {                                                                   
    _Thread_Dispatch_disable_level--;                                 
 200964c:	03 00 80 6a 	sethi  %hi(0x201a800), %g1                     
 2009650:	c4 00 62 20 	ld  [ %g1 + 0x220 ], %g2	! 201aa20 <_Thread_Dispatch_disable_level>
 2009654:	84 00 bf ff 	add  %g2, -1, %g2                              
 2009658:	c4 20 62 20 	st  %g2, [ %g1 + 0x220 ]                       
    return _Thread_Dispatch_disable_level;                            
 200965c:	c2 00 62 20 	ld  [ %g1 + 0x220 ], %g1                       
 2009660:	81 c7 e0 08 	ret                                            
 2009664:	81 e8 00 00 	restore                                        
                                                                      

02010b1c <_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 ) {
 2010b1c:	9d e3 bf a0 	save  %sp, -96, %sp                            
  size_t message_buffering_required = 0;                              
  size_t allocated_message_size;                                      
                                                                      
  the_message_queue->maximum_pending_messages   = maximum_pending_messages;
  the_message_queue->number_of_pending_messages = 0;                  
 2010b20:	c0 26 20 48 	clr  [ %i0 + 0x48 ]                            
)                                                                     
{                                                                     
  size_t message_buffering_required = 0;                              
  size_t allocated_message_size;                                      
                                                                      
  the_message_queue->maximum_pending_messages   = maximum_pending_messages;
 2010b24:	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;
 2010b28:	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;                 
 2010b2c:	c0 26 20 60 	clr  [ %i0 + 0x60 ]                            
    the_message_queue->notify_argument = the_argument;                
 2010b30:	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)) {              
 2010b34:	80 8e e0 03 	btst  3, %i3                                   
 2010b38:	02 80 00 0a 	be  2010b60 <_CORE_message_queue_Initialize+0x44>
 2010b3c:	b8 10 00 1b 	mov  %i3, %i4                                  
    allocated_message_size += sizeof(uint32_t);                       
 2010b40:	b8 06 e0 04 	add  %i3, 4, %i4                               
    allocated_message_size &= ~(sizeof(uint32_t) - 1);                
 2010b44:	b8 0f 3f fc 	and  %i4, -4, %i4                              
  }                                                                   
                                                                      
  if (allocated_message_size < maximum_message_size)                  
 2010b48:	80 a6 c0 1c 	cmp  %i3, %i4                                  
 2010b4c:	08 80 00 05 	bleu  2010b60 <_CORE_message_queue_Initialize+0x44><== ALWAYS TAKEN
 2010b50:	ba 10 20 00 	clr  %i5                                       
    STATES_WAITING_FOR_MESSAGE,                                       
    CORE_MESSAGE_QUEUE_STATUS_TIMEOUT                                 
  );                                                                  
                                                                      
  return true;                                                        
}                                                                     
 2010b54:	b0 0f 60 01 	and  %i5, 1, %i0                               
 2010b58:	81 c7 e0 08 	ret                                            
 2010b5c:	81 e8 00 00 	restore                                        
                                                                      
  /*                                                                  
   *  Calculate how much total memory is required for message buffering and
   *  check for overflow on the multiplication.                       
   */                                                                 
  if ( !size_t_mult32_with_overflow(                                  
 2010b60:	b8 07 20 14 	add  %i4, 0x14, %i4                            
  size_t  a,                                                          
  size_t  b,                                                          
  size_t *c                                                           
)                                                                     
{                                                                     
  long long x = (long long)a*b;                                       
 2010b64:	90 10 20 00 	clr  %o0                                       
 2010b68:	92 10 00 1a 	mov  %i2, %o1                                  
 2010b6c:	94 10 20 00 	clr  %o2                                       
 2010b70:	96 10 00 1c 	mov  %i4, %o3                                  
 2010b74:	40 00 45 29 	call  2022018 <__muldi3>                       
 2010b78:	ba 10 20 00 	clr  %i5                                       
                                                                      
  if ( x > SIZE_MAX )                                                 
 2010b7c:	80 a2 20 00 	cmp  %o0, 0                                    
 2010b80:	34 bf ff f6 	bg,a   2010b58 <_CORE_message_queue_Initialize+0x3c>
 2010b84:	b0 0f 60 01 	and  %i5, 1, %i0                               
                                                                      
  /*                                                                  
   *  Attempt to allocate the message memory                          
   */                                                                 
  the_message_queue->message_buffers = (CORE_message_queue_Buffer *)  
     _Workspace_Allocate( message_buffering_required );               
 2010b88:	40 00 0d 2a 	call  2014030 <_Workspace_Allocate>            
 2010b8c:	90 10 00 09 	mov  %o1, %o0                                  
    return false;                                                     
                                                                      
  /*                                                                  
   *  Attempt to allocate the message memory                          
   */                                                                 
  the_message_queue->message_buffers = (CORE_message_queue_Buffer *)  
 2010b90:	d0 26 20 5c 	st  %o0, [ %i0 + 0x5c ]                        
     _Workspace_Allocate( message_buffering_required );               
                                                                      
  if (the_message_queue->message_buffers == 0)                        
 2010b94:	80 a2 20 00 	cmp  %o0, 0                                    
 2010b98:	02 bf ff ef 	be  2010b54 <_CORE_message_queue_Initialize+0x38>
 2010b9c:	92 10 00 08 	mov  %o0, %o1                                  
                                                                      
  /*                                                                  
   *  Initialize the pool of inactive messages, pending messages,     
   *  and set of waiting threads.                                     
   */                                                                 
  _Chain_Initialize (                                                 
 2010ba0:	90 06 20 68 	add  %i0, 0x68, %o0                            
 2010ba4:	94 10 00 1a 	mov  %i2, %o2                                  
 2010ba8:	40 00 17 e8 	call  2016b48 <_Chain_Initialize>              
 2010bac:	96 10 00 1c 	mov  %i4, %o3                                  
    allocated_message_size + sizeof( CORE_message_queue_Buffer_control )
  );                                                                  
                                                                      
  _Chain_Initialize_empty( &the_message_queue->Pending_messages );    
                                                                      
  _Thread_queue_Initialize(                                           
 2010bb0:	c4 06 40 00 	ld  [ %i1 ], %g2                               
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
 2010bb4:	82 06 20 50 	add  %i0, 0x50, %g1                            
 2010bb8:	84 18 a0 01 	xor  %g2, 1, %g2                               
 2010bbc:	80 a0 00 02 	cmp  %g0, %g2                                  
 2010bc0:	84 06 20 54 	add  %i0, 0x54, %g2                            
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
  tail->previous = head;                                              
 2010bc4:	c2 26 20 58 	st  %g1, [ %i0 + 0x58 ]                        
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 2010bc8:	c4 26 20 50 	st  %g2, [ %i0 + 0x50 ]                        
 2010bcc:	90 10 00 18 	mov  %i0, %o0                                  
  head->previous = NULL;                                              
 2010bd0:	c0 26 20 54 	clr  [ %i0 + 0x54 ]                            
 2010bd4:	92 60 3f ff 	subx  %g0, -1, %o1                             
 2010bd8:	94 10 20 80 	mov  0x80, %o2                                 
 2010bdc:	96 10 20 06 	mov  6, %o3                                    
 2010be0:	40 00 0a 81 	call  20135e4 <_Thread_queue_Initialize>       
 2010be4:	ba 10 20 01 	mov  1, %i5                                    
    STATES_WAITING_FOR_MESSAGE,                                       
    CORE_MESSAGE_QUEUE_STATUS_TIMEOUT                                 
  );                                                                  
                                                                      
  return true;                                                        
}                                                                     
 2010be8:	b0 0f 60 01 	and  %i5, 1, %i0                               
 2010bec:	81 c7 e0 08 	ret                                            
 2010bf0:	81 e8 00 00 	restore                                        
                                                                      

0200781c <_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 ) {
 200781c:	9d e3 bf a0 	save  %sp, -96, %sp                            
 2007820:	ba 10 00 18 	mov  %i0, %i5                                  
  Thread_Control *the_thread;                                         
  ISR_Level       level;                                              
  CORE_semaphore_Status status;                                       
                                                                      
  status = CORE_SEMAPHORE_STATUS_SUCCESSFUL;                          
 2007824:	b0 10 20 00 	clr  %i0                                       
                                                                      
  if ( (the_thread = _Thread_queue_Dequeue(&the_semaphore->Wait_queue)) ) {
 2007828:	40 00 07 c5 	call  200973c <_Thread_queue_Dequeue>          
 200782c:	90 10 00 1d 	mov  %i5, %o0                                  
 2007830:	80 a2 20 00 	cmp  %o0, 0                                    
 2007834:	02 80 00 04 	be  2007844 <_CORE_semaphore_Surrender+0x28>   
 2007838:	01 00 00 00 	nop                                            
        status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;               
    _ISR_Enable( level );                                             
  }                                                                   
                                                                      
  return status;                                                      
}                                                                     
 200783c:	81 c7 e0 08 	ret                                            
 2007840:	81 e8 00 00 	restore                                        
    if ( !_Objects_Is_local_id( the_thread->Object.id ) )             
      (*api_semaphore_mp_support) ( the_thread, id );                 
#endif                                                                
                                                                      
  } else {                                                            
    _ISR_Disable( level );                                            
 2007844:	7f ff ea 68 	call  20021e4 <sparc_disable_interrupts>       
 2007848:	01 00 00 00 	nop                                            
      if ( the_semaphore->count < the_semaphore->Attributes.maximum_count )
 200784c:	c2 07 60 48 	ld  [ %i5 + 0x48 ], %g1                        
 2007850:	c4 07 60 40 	ld  [ %i5 + 0x40 ], %g2                        
 2007854:	80 a0 40 02 	cmp  %g1, %g2                                  
 2007858:	1a 80 00 05 	bcc  200786c <_CORE_semaphore_Surrender+0x50>  <== NEVER TAKEN
 200785c:	b0 10 20 04 	mov  4, %i0                                    
        the_semaphore->count += 1;                                    
 2007860:	82 00 60 01 	inc  %g1                                       
{                                                                     
  Thread_Control *the_thread;                                         
  ISR_Level       level;                                              
  CORE_semaphore_Status status;                                       
                                                                      
  status = CORE_SEMAPHORE_STATUS_SUCCESSFUL;                          
 2007864:	b0 10 20 00 	clr  %i0                                       
#endif                                                                
                                                                      
  } else {                                                            
    _ISR_Disable( level );                                            
      if ( the_semaphore->count < the_semaphore->Attributes.maximum_count )
        the_semaphore->count += 1;                                    
 2007868:	c2 27 60 48 	st  %g1, [ %i5 + 0x48 ]                        
      else                                                            
        status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;               
    _ISR_Enable( level );                                             
 200786c:	7f ff ea 62 	call  20021f4 <sparc_enable_interrupts>        
 2007870:	01 00 00 00 	nop                                            
  }                                                                   
                                                                      
  return status;                                                      
}                                                                     
 2007874:	81 c7 e0 08 	ret                                            
 2007878:	81 e8 00 00 	restore                                        
                                                                      

0200d1f4 <_Chain_Initialize>: Chain_Control *the_chain, void *starting_address, size_t number_nodes, size_t node_size ) {
 200d1f4:	9d e3 bf a0 	save  %sp, -96, %sp                            
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *current = head;                                         
  Chain_Node *next = starting_address;                                
                                                                      
  head->previous = NULL;                                              
 200d1f8:	c0 26 20 04 	clr  [ %i0 + 4 ]                               
  size_t         node_size                                            
)                                                                     
{                                                                     
  size_t count = number_nodes;                                        
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
 200d1fc:	ba 06 20 04 	add  %i0, 4, %i5                               
  Chain_Node *current = head;                                         
  Chain_Node *next = starting_address;                                
                                                                      
  head->previous = NULL;                                              
                                                                      
  while ( count-- ) {                                                 
 200d200:	80 a6 a0 00 	cmp  %i2, 0                                    
 200d204:	02 80 00 12 	be  200d24c <_Chain_Initialize+0x58>           <== NEVER TAKEN
 200d208:	90 10 00 18 	mov  %i0, %o0                                  
 200d20c:	b4 06 bf ff 	add  %i2, -1, %i2                              
{                                                                     
  size_t count = number_nodes;                                        
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *current = head;                                         
  Chain_Node *next = starting_address;                                
 200d210:	82 10 00 19 	mov  %i1, %g1                                  
                                                                      
  head->previous = NULL;                                              
                                                                      
  while ( count-- ) {                                                 
 200d214:	92 10 00 1a 	mov  %i2, %o1                                  
)                                                                     
{                                                                     
  size_t count = number_nodes;                                        
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *current = head;                                         
 200d218:	10 80 00 05 	b  200d22c <_Chain_Initialize+0x38>            
 200d21c:	84 10 00 18 	mov  %i0, %g2                                  
  Chain_Node *next = starting_address;                                
                                                                      
  head->previous = NULL;                                              
                                                                      
  while ( count-- ) {                                                 
 200d220:	84 10 00 01 	mov  %g1, %g2                                  
 200d224:	b4 06 bf ff 	add  %i2, -1, %i2                              
    current->next  = next;                                            
    next->previous = current;                                         
    current        = next;                                            
    next           = (Chain_Node *)                                   
 200d228:	82 10 00 03 	mov  %g3, %g1                                  
  Chain_Node *next = starting_address;                                
                                                                      
  head->previous = NULL;                                              
                                                                      
  while ( count-- ) {                                                 
    current->next  = next;                                            
 200d22c:	c2 20 80 00 	st  %g1, [ %g2 ]                               
    next->previous = current;                                         
 200d230:	c4 20 60 04 	st  %g2, [ %g1 + 4 ]                           
  Chain_Node *current = head;                                         
  Chain_Node *next = starting_address;                                
                                                                      
  head->previous = NULL;                                              
                                                                      
  while ( count-- ) {                                                 
 200d234:	80 a6 a0 00 	cmp  %i2, 0                                    
 200d238:	12 bf ff fa 	bne  200d220 <_Chain_Initialize+0x2c>          
 200d23c:	86 00 40 1b 	add  %g1, %i3, %g3                             
 *    node_size        - size of node in bytes                        
 *                                                                    
 *  Output parameters:  NONE                                          
 */                                                                   
                                                                      
void _Chain_Initialize(                                               
 200d240:	40 00 2d 18 	call  20186a0 <.umul>                          
 200d244:	90 10 00 1b 	mov  %i3, %o0                                  
  Chain_Node *current = head;                                         
  Chain_Node *next = starting_address;                                
                                                                      
  head->previous = NULL;                                              
                                                                      
  while ( count-- ) {                                                 
 200d248:	90 06 40 08 	add  %i1, %o0, %o0                             
    current        = next;                                            
    next           = (Chain_Node *)                                   
                        _Addresses_Add_offset( (void *) next, node_size );
  }                                                                   
                                                                      
  current->next = tail;                                               
 200d24c:	fa 22 00 00 	st  %i5, [ %o0 ]                               
  tail->previous = current;                                           
 200d250:	d0 26 20 08 	st  %o0, [ %i0 + 8 ]                           
}                                                                     
 200d254:	81 c7 e0 08 	ret                                            
 200d258:	81 e8 00 00 	restore                                        
                                                                      

020064a0 <_Event_Surrender>: */ void _Event_Surrender( Thread_Control *the_thread ) {
 20064a0:	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 ];               
 20064a4:	fa 06 21 58 	ld  [ %i0 + 0x158 ], %i5                       
                                                                      
  option_set = (rtems_option) the_thread->Wait.option;                
                                                                      
  _ISR_Disable( level );                                              
 20064a8:	7f ff ef 4f 	call  20021e4 <sparc_disable_interrupts>       
 20064ac:	f8 06 20 30 	ld  [ %i0 + 0x30 ], %i4                        
  pending_events  = api->pending_events;                              
 20064b0:	c4 07 40 00 	ld  [ %i5 ], %g2                               
  event_condition = (rtems_event_set) the_thread->Wait.count;         
 20064b4:	c2 06 20 24 	ld  [ %i0 + 0x24 ], %g1                        
  seized_events = _Event_sets_Get( pending_events, event_condition ); 
                                                                      
  /*                                                                  
   *  No events were seized in this operation                         
   */                                                                 
  if ( _Event_sets_Is_empty( seized_events ) ) {                      
 20064b8:	86 88 40 02 	andcc  %g1, %g2, %g3                           
 20064bc:	02 80 00 39 	be  20065a0 <_Event_Surrender+0x100>           
 20064c0:	09 00 80 77 	sethi  %hi(0x201dc00), %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() &&                                       
 20064c4:	88 11 23 08 	or  %g4, 0x308, %g4	! 201df08 <_Per_CPU_Information>
 20064c8:	f2 01 20 08 	ld  [ %g4 + 8 ], %i1                           
 20064cc:	80 a6 60 00 	cmp  %i1, 0                                    
 20064d0:	32 80 00 1c 	bne,a   2006540 <_Event_Surrender+0xa0>        
 20064d4:	c8 01 20 0c 	ld  [ %g4 + 0xc ], %g4                         
 */                                                                   
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_event (              
  States_Control the_states                                           
)                                                                     
{                                                                     
   return (the_states & STATES_WAITING_FOR_EVENT);                    
 20064d8:	c8 06 20 10 	ld  [ %i0 + 0x10 ], %g4                        
  }                                                                   
                                                                      
  /*                                                                  
   *  Otherwise, this is a normal send to another thread              
   */                                                                 
  if ( _States_Is_waiting_for_event( the_thread->current_state ) ) {  
 20064dc:	80 89 21 00 	btst  0x100, %g4                               
 20064e0:	02 80 00 30 	be  20065a0 <_Event_Surrender+0x100>           
 20064e4:	80 a0 40 03 	cmp  %g1, %g3                                  
    if ( seized_events == event_condition || _Options_Is_any( option_set ) ) {
 20064e8:	02 80 00 04 	be  20064f8 <_Event_Surrender+0x58>            
 20064ec:	80 8f 20 02 	btst  2, %i4                                   
 20064f0:	02 80 00 2c 	be  20065a0 <_Event_Surrender+0x100>           <== NEVER TAKEN
 20064f4:	01 00 00 00 	nop                                            
      api->pending_events = _Event_sets_Clear( pending_events, seized_events );
      the_thread->Wait.count = 0;                                     
      *(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
 20064f8:	c2 06 20 28 	ld  [ %i0 + 0x28 ], %g1                        
RTEMS_INLINE_ROUTINE rtems_event_set _Event_sets_Clear(               
 rtems_event_set the_event_set,                                       
 rtems_event_set the_mask                                             
)                                                                     
{                                                                     
   return ( the_event_set & ~(the_mask) );                            
 20064fc:	84 28 80 03 	andn  %g2, %g3, %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 );
 2006500:	c4 27 40 00 	st  %g2, [ %i5 ]                               
      the_thread->Wait.count = 0;                                     
 2006504:	c0 26 20 24 	clr  [ %i0 + 0x24 ]                            
      *(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
 2006508:	c6 20 40 00 	st  %g3, [ %g1 ]                               
                                                                      
      _ISR_Flash( level );                                            
 200650c:	7f ff ef 3a 	call  20021f4 <sparc_enable_interrupts>        
 2006510:	01 00 00 00 	nop                                            
 2006514:	7f ff ef 34 	call  20021e4 <sparc_disable_interrupts>       
 2006518:	01 00 00 00 	nop                                            
                                                                      
      if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {             
 200651c:	c2 06 20 50 	ld  [ %i0 + 0x50 ], %g1                        
 2006520:	80 a0 60 02 	cmp  %g1, 2                                    
 2006524:	02 80 00 21 	be  20065a8 <_Event_Surrender+0x108>           
 2006528:	82 10 20 03 	mov  3, %g1                                    
        _ISR_Enable( level );                                         
 200652c:	7f ff ef 32 	call  20021f4 <sparc_enable_interrupts>        
 2006530:	33 04 00 ff 	sethi  %hi(0x1003fc00), %i1                    
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unblock (                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
  _Thread_Clear_state( the_thread, STATES_BLOCKED );                  
 2006534:	b2 16 63 f8 	or  %i1, 0x3f8, %i1	! 1003fff8 <RAM_END+0xdc3fff8>
 2006538:	40 00 0a ab 	call  2008fe4 <_Thread_Clear_state>            
 200653c:	81 e8 00 00 	restore                                        
                                                                      
  /*                                                                  
   *  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() &&                                       
 2006540:	80 a6 00 04 	cmp  %i0, %g4                                  
 2006544:	32 bf ff e6 	bne,a   20064dc <_Event_Surrender+0x3c>        
 2006548:	c8 06 20 10 	ld  [ %i0 + 0x10 ], %g4                        
       _Thread_Is_executing( the_thread ) &&                          
       ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||   
 200654c:	09 00 80 78 	sethi  %hi(0x201e000), %g4                     
 2006550:	f2 01 23 00 	ld  [ %g4 + 0x300 ], %i1	! 201e300 <_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() &&                                       
       _Thread_Is_executing( the_thread ) &&                          
 2006554:	80 a6 60 02 	cmp  %i1, 2                                    
 2006558:	02 80 00 07 	be  2006574 <_Event_Surrender+0xd4>            <== NEVER TAKEN
 200655c:	80 a0 40 03 	cmp  %g1, %g3                                  
       ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||   
        (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
 2006560:	f2 01 23 00 	ld  [ %g4 + 0x300 ], %i1                       
   *  If we are in an ISR and sending to the current thread, then     
   *  we have a critical section issue to deal with.                  
   */                                                                 
  if ( _ISR_Is_in_progress() &&                                       
       _Thread_Is_executing( the_thread ) &&                          
       ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||   
 2006564:	80 a6 60 01 	cmp  %i1, 1                                    
 2006568:	32 bf ff dd 	bne,a   20064dc <_Event_Surrender+0x3c>        
 200656c:	c8 06 20 10 	ld  [ %i0 + 0x10 ], %g4                        
        (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
    if ( seized_events == event_condition || _Options_Is_any(option_set) ) {
 2006570:	80 a0 40 03 	cmp  %g1, %g3                                  
 2006574:	02 80 00 04 	be  2006584 <_Event_Surrender+0xe4>            
 2006578:	80 8f 20 02 	btst  2, %i4                                   
 200657c:	02 80 00 09 	be  20065a0 <_Event_Surrender+0x100>           <== NEVER TAKEN
 2006580:	01 00 00 00 	nop                                            
      api->pending_events = _Event_sets_Clear( pending_events,seized_events );
      the_thread->Wait.count = 0;                                     
      *(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
 2006584:	c2 06 20 28 	ld  [ %i0 + 0x28 ], %g1                        
 2006588:	84 28 80 03 	andn  %g2, %g3, %g2                            
  if ( _ISR_Is_in_progress() &&                                       
       _Thread_Is_executing( the_thread ) &&                          
       ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||   
        (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
    if ( seized_events == event_condition || _Options_Is_any(option_set) ) {
      api->pending_events = _Event_sets_Clear( pending_events,seized_events );
 200658c:	c4 27 40 00 	st  %g2, [ %i5 ]                               
      the_thread->Wait.count = 0;                                     
 2006590:	c0 26 20 24 	clr  [ %i0 + 0x24 ]                            
      *(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
 2006594:	c6 20 40 00 	st  %g3, [ %g1 ]                               
      _Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED;        
 2006598:	82 10 20 03 	mov  3, %g1                                    
 200659c:	c2 21 23 00 	st  %g1, [ %g4 + 0x300 ]                       
        _Thread_Unblock( the_thread );                                
      }                                                               
      return;                                                         
    }                                                                 
  }                                                                   
  _ISR_Enable( level );                                               
 20065a0:	7f ff ef 15 	call  20021f4 <sparc_enable_interrupts>        
 20065a4:	91 e8 00 08 	restore  %g0, %o0, %o0                         
RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate(                       
  Watchdog_Control *the_watchdog                                      
)                                                                     
{                                                                     
                                                                      
  the_watchdog->state = WATCHDOG_REMOVE_IT;                           
 20065a8:	c2 26 20 50 	st  %g1, [ %i0 + 0x50 ]                        
      if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {             
        _ISR_Enable( level );                                         
        _Thread_Unblock( the_thread );                                
      } else {                                                        
        _Watchdog_Deactivate( &the_thread->Timer );                   
        _ISR_Enable( level );                                         
 20065ac:	7f ff ef 12 	call  20021f4 <sparc_enable_interrupts>        
 20065b0:	33 04 00 ff 	sethi  %hi(0x1003fc00), %i1                    
        (void) _Watchdog_Remove( &the_thread->Timer );                
 20065b4:	40 00 0f 9f 	call  200a430 <_Watchdog_Remove>               
 20065b8:	90 06 20 48 	add  %i0, 0x48, %o0                            
 20065bc:	b2 16 63 f8 	or  %i1, 0x3f8, %i1                            
 20065c0:	40 00 0a 89 	call  2008fe4 <_Thread_Clear_state>            
 20065c4:	81 e8 00 00 	restore                                        
                                                                      

020065c8 <_Event_Timeout>: void _Event_Timeout( Objects_Id id, void *ignored ) {
 20065c8:	9d e3 bf 98 	save  %sp, -104, %sp                           
  Thread_Control    *the_thread;                                      
  Objects_Locations  location;                                        
  ISR_Level          level;                                           
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 20065cc:	90 10 00 18 	mov  %i0, %o0                                  
 20065d0:	40 00 0b 84 	call  20093e0 <_Thread_Get>                    
 20065d4:	92 07 bf fc 	add  %fp, -4, %o1                              
  switch ( location ) {                                               
 20065d8:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 20065dc:	80 a0 60 00 	cmp  %g1, 0                                    
 20065e0:	12 80 00 16 	bne  2006638 <_Event_Timeout+0x70>             <== NEVER TAKEN
 20065e4:	ba 10 00 08 	mov  %o0, %i5                                  
       *                                                              
       *  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 );                                          
 20065e8:	7f ff ee ff 	call  20021e4 <sparc_disable_interrupts>       
 20065ec:	01 00 00 00 	nop                                            
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing (                      
  const Thread_Control *the_thread                                    
)                                                                     
{                                                                     
  return ( the_thread == _Thread_Executing );                         
 20065f0:	03 00 80 77 	sethi  %hi(0x201dc00), %g1                     
            return;                                                   
          }                                                           
        #endif                                                        
                                                                      
        the_thread->Wait.count = 0;                                   
        if ( _Thread_Is_executing( the_thread ) ) {                   
 20065f4:	c2 00 63 14 	ld  [ %g1 + 0x314 ], %g1	! 201df14 <_Per_CPU_Information+0xc>
 20065f8:	80 a7 40 01 	cmp  %i5, %g1                                  
 20065fc:	02 80 00 11 	be  2006640 <_Event_Timeout+0x78>              
 2006600:	c0 27 60 24 	clr  [ %i5 + 0x24 ]                            
          if ( _Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
            _Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;    
        }                                                             
                                                                      
        the_thread->Wait.return_code = RTEMS_TIMEOUT;                 
 2006604:	82 10 20 06 	mov  6, %g1                                    
 2006608:	c2 27 60 34 	st  %g1, [ %i5 + 0x34 ]                        
      _ISR_Enable( level );                                           
 200660c:	7f ff ee fa 	call  20021f4 <sparc_enable_interrupts>        
 2006610:	01 00 00 00 	nop                                            
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unblock (                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
  _Thread_Clear_state( the_thread, STATES_BLOCKED );                  
 2006614:	90 10 00 1d 	mov  %i5, %o0                                  
 2006618:	13 04 00 ff 	sethi  %hi(0x1003fc00), %o1                    
 200661c:	40 00 0a 72 	call  2008fe4 <_Thread_Clear_state>            
 2006620:	92 12 63 f8 	or  %o1, 0x3f8, %o1	! 1003fff8 <RAM_END+0xdc3fff8>
   *                                                                  
   * This routine decrements the thread dispatch level.               
   */                                                                 
  RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_decrement_disable_level(void)
  {                                                                   
    _Thread_Dispatch_disable_level--;                                 
 2006624:	03 00 80 76 	sethi  %hi(0x201d800), %g1                     
 2006628:	c4 00 61 d0 	ld  [ %g1 + 0x1d0 ], %g2	! 201d9d0 <_Thread_Dispatch_disable_level>
 200662c:	84 00 bf ff 	add  %g2, -1, %g2                              
 2006630:	c4 20 61 d0 	st  %g2, [ %g1 + 0x1d0 ]                       
    return _Thread_Dispatch_disable_level;                            
 2006634:	c2 00 61 d0 	ld  [ %g1 + 0x1d0 ], %g1                       
 2006638:	81 c7 e0 08 	ret                                            
 200663c:	81 e8 00 00 	restore                                        
          }                                                           
        #endif                                                        
                                                                      
        the_thread->Wait.count = 0;                                   
        if ( _Thread_Is_executing( the_thread ) ) {                   
          if ( _Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
 2006640:	03 00 80 78 	sethi  %hi(0x201e000), %g1                     
 2006644:	c4 00 63 00 	ld  [ %g1 + 0x300 ], %g2	! 201e300 <_Event_Sync_state>
 2006648:	80 a0 a0 01 	cmp  %g2, 1                                    
 200664c:	32 bf ff ef 	bne,a   2006608 <_Event_Timeout+0x40>          
 2006650:	82 10 20 06 	mov  6, %g1                                    
            _Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;    
 2006654:	84 10 20 02 	mov  2, %g2                                    
 2006658:	c4 20 63 00 	st  %g2, [ %g1 + 0x300 ]                       
        }                                                             
                                                                      
        the_thread->Wait.return_code = RTEMS_TIMEOUT;                 
 200665c:	10 bf ff eb 	b  2006608 <_Event_Timeout+0x40>               
 2006660:	82 10 20 06 	mov  6, %g1                                    
                                                                      

0200d42c <_Heap_Allocate_aligned_with_boundary>: Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) {
 200d42c:	9d e3 bf 98 	save  %sp, -104, %sp                           
 200d430:	ba 10 00 18 	mov  %i0, %i5                                  
  Heap_Statistics *const stats = &heap->stats;                        
  uintptr_t const block_size_floor = alloc_size + HEAP_BLOCK_HEADER_SIZE
 200d434:	a0 06 60 04 	add  %i1, 4, %l0                               
    - HEAP_ALLOC_BONUS;                                               
  uintptr_t const page_size = heap->page_size;                        
 200d438:	ec 06 20 10 	ld  [ %i0 + 0x10 ], %l6                        
  Heap_Block *block = NULL;                                           
  uintptr_t alloc_begin = 0;                                          
  uint32_t search_count = 0;                                          
  bool search_again = false;                                          
                                                                      
  if ( block_size_floor < alloc_size ) {                              
 200d43c:	80 a6 40 10 	cmp  %i1, %l0                                  
 200d440:	18 80 00 23 	bgu  200d4cc <_Heap_Allocate_aligned_with_boundary+0xa0>
 200d444:	b0 10 20 00 	clr  %i0                                       
    /* Integer overflow occured */                                    
    return NULL;                                                      
  }                                                                   
                                                                      
  if ( boundary != 0 ) {                                              
 200d448:	80 a6 e0 00 	cmp  %i3, 0                                    
 200d44c:	12 80 00 7d 	bne  200d640 <_Heap_Allocate_aligned_with_boundary+0x214>
 200d450:	80 a6 40 1b 	cmp  %i1, %i3                                  
  return &heap->free_list;                                            
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{                                                                     
  return _Heap_Free_list_head(heap)->next;                            
 200d454:	e2 07 60 08 	ld  [ %i5 + 8 ], %l1                           
                                                                      
  do {                                                                
    Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );  
                                                                      
    block = _Heap_Free_list_first( heap );                            
    while ( block != free_list_tail ) {                               
 200d458:	80 a7 40 11 	cmp  %i5, %l1                                  
 200d45c:	02 80 00 18 	be  200d4bc <_Heap_Allocate_aligned_with_boundary+0x90>
 200d460:	b8 10 20 00 	clr  %i4                                       
  uintptr_t const block_begin = (uintptr_t) block;                    
  uintptr_t const block_size = _Heap_Block_size( block );             
  uintptr_t const block_end = block_begin + block_size;               
                                                                      
  uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block );
  uintptr_t const alloc_begin_ceiling = block_end - min_block_size    
 200d464:	82 05 a0 07 	add  %l6, 7, %g1                               
    + HEAP_BLOCK_HEADER_SIZE + page_size - 1;                         
                                                                      
  uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS;                 
 200d468:	ae 10 20 04 	mov  4, %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;               
                                                                      
  uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block );
  uintptr_t const alloc_begin_ceiling = block_end - min_block_size    
 200d46c:	c2 27 bf fc 	st  %g1, [ %fp + -4 ]                          
    + HEAP_BLOCK_HEADER_SIZE + page_size - 1;                         
                                                                      
  uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS;                 
 200d470:	10 80 00 0b 	b  200d49c <_Heap_Allocate_aligned_with_boundary+0x70>
 200d474:	ae 25 c0 19 	sub  %l7, %i1, %l7                             
       * 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 ) {                
        if ( alignment == 0 ) {                                       
 200d478:	12 80 00 17 	bne  200d4d4 <_Heap_Allocate_aligned_with_boundary+0xa8>
 200d47c:	b0 04 60 08 	add  %l1, 8, %i0                               
      }                                                               
                                                                      
      /* Statistics */                                                
      ++search_count;                                                 
                                                                      
      if ( alloc_begin != 0 ) {                                       
 200d480:	80 a6 20 00 	cmp  %i0, 0                                    
 200d484:	12 80 00 5b 	bne  200d5f0 <_Heap_Allocate_aligned_with_boundary+0x1c4>
 200d488:	b8 07 20 01 	inc  %i4                                       
        break;                                                        
      }                                                               
                                                                      
      block = block->next;                                            
 200d48c:	e2 04 60 08 	ld  [ %l1 + 8 ], %l1                           
                                                                      
  do {                                                                
    Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );  
                                                                      
    block = _Heap_Free_list_first( heap );                            
    while ( block != free_list_tail ) {                               
 200d490:	80 a7 40 11 	cmp  %i5, %l1                                  
 200d494:	22 80 00 0b 	be,a   200d4c0 <_Heap_Allocate_aligned_with_boundary+0x94>
 200d498:	c2 07 60 44 	ld  [ %i5 + 0x44 ], %g1                        
      /*                                                              
       * 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 ) {                
 200d49c:	e4 04 60 04 	ld  [ %l1 + 4 ], %l2                           
 200d4a0:	80 a4 00 12 	cmp  %l0, %l2                                  
 200d4a4:	0a bf ff f5 	bcs  200d478 <_Heap_Allocate_aligned_with_boundary+0x4c>
 200d4a8:	80 a6 a0 00 	cmp  %i2, 0                                    
                                                                      
      if ( alloc_begin != 0 ) {                                       
        break;                                                        
      }                                                               
                                                                      
      block = block->next;                                            
 200d4ac:	e2 04 60 08 	ld  [ %l1 + 8 ], %l1                           
                                                                      
  do {                                                                
    Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );  
                                                                      
    block = _Heap_Free_list_first( heap );                            
    while ( block != free_list_tail ) {                               
 200d4b0:	80 a7 40 11 	cmp  %i5, %l1                                  
 200d4b4:	12 bf ff fa 	bne  200d49c <_Heap_Allocate_aligned_with_boundary+0x70>
 200d4b8:	b8 07 20 01 	inc  %i4                                       
      boundary                                                        
    );                                                                
  }                                                                   
                                                                      
  /* Statistics */                                                    
  if ( stats->max_search < search_count ) {                           
 200d4bc:	c2 07 60 44 	ld  [ %i5 + 0x44 ], %g1                        
 200d4c0:	80 a0 40 1c 	cmp  %g1, %i4                                  
 200d4c4:	0a 80 00 5a 	bcs  200d62c <_Heap_Allocate_aligned_with_boundary+0x200>
 200d4c8:	b0 10 20 00 	clr  %i0                                       
    stats->max_search = search_count;                                 
  }                                                                   
                                                                      
  return (void *) alloc_begin;                                        
}                                                                     
 200d4cc:	81 c7 e0 08 	ret                                            
 200d4d0:	81 e8 00 00 	restore                                        
  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;                         
 200d4d4:	c4 07 bf fc 	ld  [ %fp + -4 ], %g2                          
  if ( stats->max_search < search_count ) {                           
    stats->max_search = search_count;                                 
  }                                                                   
                                                                      
  return (void *) alloc_begin;                                        
}                                                                     
 200d4d8:	ea 07 60 14 	ld  [ %i5 + 0x14 ], %l5                        
    - 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;                
 200d4dc:	a4 0c bf fe 	and  %l2, -2, %l2                              
  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;                         
 200d4e0:	82 20 80 15 	sub  %g2, %l5, %g1                             
  uintptr_t const page_size = heap->page_size;                        
  uintptr_t const min_block_size = heap->min_block_size;              
                                                                      
  uintptr_t const block_begin = (uintptr_t) block;                    
  uintptr_t const block_size = _Heap_Block_size( block );             
  uintptr_t const block_end = block_begin + block_size;               
 200d4e4:	a4 04 40 12 	add  %l1, %l2, %l2                             
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
 200d4e8:	92 10 00 1a 	mov  %i2, %o1                                  
  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_ALLOC_BONUS;                 
  uintptr_t alloc_begin = alloc_end - alloc_size;                     
 200d4ec:	b0 05 c0 12 	add  %l7, %l2, %i0                             
  uintptr_t const block_begin = (uintptr_t) block;                    
  uintptr_t const block_size = _Heap_Block_size( block );             
  uintptr_t const block_end = block_begin + block_size;               
                                                                      
  uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block );
  uintptr_t const alloc_begin_ceiling = block_end - min_block_size    
 200d4f0:	a4 00 40 12 	add  %g1, %l2, %l2                             
 200d4f4:	40 00 2d 51 	call  2018a38 <.urem>                          
 200d4f8:	90 10 00 18 	mov  %i0, %o0                                  
 200d4fc:	b0 26 00 08 	sub  %i0, %o0, %i0                             
  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 ) {                          
 200d500:	80 a4 80 18 	cmp  %l2, %i0                                  
 200d504:	1a 80 00 06 	bcc  200d51c <_Heap_Allocate_aligned_with_boundary+0xf0>
 200d508:	a8 04 60 08 	add  %l1, 8, %l4                               
 200d50c:	90 10 00 12 	mov  %l2, %o0                                  
 200d510:	40 00 2d 4a 	call  2018a38 <.urem>                          
 200d514:	92 10 00 1a 	mov  %i2, %o1                                  
 200d518:	b0 24 80 08 	sub  %l2, %o0, %i0                             
  }                                                                   
                                                                      
  alloc_end = alloc_begin + alloc_size;                               
                                                                      
  /* Ensure boundary constaint */                                     
  if ( boundary != 0 ) {                                              
 200d51c:	80 a6 e0 00 	cmp  %i3, 0                                    
 200d520:	02 80 00 24 	be  200d5b0 <_Heap_Allocate_aligned_with_boundary+0x184>
 200d524:	80 a5 00 18 	cmp  %l4, %i0                                  
  /* 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;                               
 200d528:	a4 06 00 19 	add  %i0, %i1, %l2                             
 200d52c:	92 10 00 1b 	mov  %i3, %o1                                  
 200d530:	40 00 2d 42 	call  2018a38 <.urem>                          
 200d534:	90 10 00 12 	mov  %l2, %o0                                  
 200d538:	90 24 80 08 	sub  %l2, %o0, %o0                             
  /* 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 ) {
 200d53c:	80 a6 00 08 	cmp  %i0, %o0                                  
 200d540:	1a 80 00 1b 	bcc  200d5ac <_Heap_Allocate_aligned_with_boundary+0x180>
 200d544:	80 a2 00 12 	cmp  %o0, %l2                                  
 200d548:	1a 80 00 1a 	bcc  200d5b0 <_Heap_Allocate_aligned_with_boundary+0x184>
 200d54c:	80 a5 00 18 	cmp  %l4, %i0                                  
                                                                      
  alloc_end = alloc_begin + alloc_size;                               
                                                                      
  /* Ensure boundary constaint */                                     
  if ( boundary != 0 ) {                                              
    uintptr_t const boundary_floor = alloc_begin_floor + alloc_size;  
 200d550:	a6 05 00 19 	add  %l4, %i1, %l3                             
    uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary );
                                                                      
    while ( alloc_begin < boundary_line && boundary_line < alloc_end ) {
      if ( boundary_line < boundary_floor ) {                         
 200d554:	80 a4 c0 08 	cmp  %l3, %o0                                  
 200d558:	08 80 00 08 	bleu  200d578 <_Heap_Allocate_aligned_with_boundary+0x14c>
 200d55c:	b0 10 20 00 	clr  %i0                                       
      }                                                               
                                                                      
      /* Statistics */                                                
      ++search_count;                                                 
                                                                      
      if ( alloc_begin != 0 ) {                                       
 200d560:	10 bf ff c9 	b  200d484 <_Heap_Allocate_aligned_with_boundary+0x58>
 200d564:	80 a6 20 00 	cmp  %i0, 0                                    
  /* 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 ) {
 200d568:	1a 80 00 11 	bcc  200d5ac <_Heap_Allocate_aligned_with_boundary+0x180>
 200d56c:	80 a4 c0 08 	cmp  %l3, %o0                                  
      if ( boundary_line < boundary_floor ) {                         
 200d570:	18 bf ff c4 	bgu  200d480 <_Heap_Allocate_aligned_with_boundary+0x54><== NEVER TAKEN
 200d574:	b0 10 20 00 	clr  %i0                                       
        return 0;                                                     
      }                                                               
      alloc_begin = boundary_line - alloc_size;                       
 200d578:	b0 22 00 19 	sub  %o0, %i1, %i0                             
 200d57c:	92 10 00 1a 	mov  %i2, %o1                                  
 200d580:	40 00 2d 2e 	call  2018a38 <.urem>                          
 200d584:	90 10 00 18 	mov  %i0, %o0                                  
 200d588:	92 10 00 1b 	mov  %i3, %o1                                  
 200d58c:	b0 26 00 08 	sub  %i0, %o0, %i0                             
      alloc_begin = _Heap_Align_down( alloc_begin, alignment );       
      alloc_end = alloc_begin + alloc_size;                           
 200d590:	a4 06 00 19 	add  %i0, %i1, %l2                             
 200d594:	40 00 2d 29 	call  2018a38 <.urem>                          
 200d598:	90 10 00 12 	mov  %l2, %o0                                  
 200d59c:	90 24 80 08 	sub  %l2, %o0, %o0                             
  /* 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 ) {
 200d5a0:	80 a2 00 12 	cmp  %o0, %l2                                  
 200d5a4:	0a bf ff f1 	bcs  200d568 <_Heap_Allocate_aligned_with_boundary+0x13c>
 200d5a8:	80 a6 00 08 	cmp  %i0, %o0                                  
      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 ) {                           
 200d5ac:	80 a5 00 18 	cmp  %l4, %i0                                  
 200d5b0:	18 80 00 22 	bgu  200d638 <_Heap_Allocate_aligned_with_boundary+0x20c>
 200d5b4:	82 10 3f f8 	mov  -8, %g1                                   
 200d5b8:	90 10 00 18 	mov  %i0, %o0                                  
 200d5bc:	a4 20 40 11 	sub  %g1, %l1, %l2                             
 200d5c0:	92 10 00 16 	mov  %l6, %o1                                  
 200d5c4:	40 00 2d 1d 	call  2018a38 <.urem>                          
 200d5c8:	a4 04 80 18 	add  %l2, %i0, %l2                             
    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;      
                                                                      
    if ( free_size >= min_block_size || free_size == 0 ) {            
 200d5cc:	90 a4 80 08 	subcc  %l2, %o0, %o0                           
 200d5d0:	02 bf ff ad 	be  200d484 <_Heap_Allocate_aligned_with_boundary+0x58>
 200d5d4:	80 a6 20 00 	cmp  %i0, 0                                    
 200d5d8:	80 a2 00 15 	cmp  %o0, %l5                                  
      return alloc_begin;                                             
    }                                                                 
  }                                                                   
                                                                      
  return 0;                                                           
 200d5dc:	82 40 3f ff 	addx  %g0, -1, %g1                             
 200d5e0:	b0 0e 00 01 	and  %i0, %g1, %i0                             
      }                                                               
                                                                      
      /* Statistics */                                                
      ++search_count;                                                 
                                                                      
      if ( alloc_begin != 0 ) {                                       
 200d5e4:	80 a6 20 00 	cmp  %i0, 0                                    
 200d5e8:	02 bf ff a9 	be  200d48c <_Heap_Allocate_aligned_with_boundary+0x60>
 200d5ec:	b8 07 20 01 	inc  %i4                                       
    search_again = _Heap_Protection_free_delayed_blocks( heap, alloc_begin );
  } while ( search_again );                                           
                                                                      
  if ( alloc_begin != 0 ) {                                           
    /* Statistics */                                                  
    ++stats->allocs;                                                  
 200d5f0:	c4 07 60 48 	ld  [ %i5 + 0x48 ], %g2                        
    stats->searches += search_count;                                  
 200d5f4:	c2 07 60 4c 	ld  [ %i5 + 0x4c ], %g1                        
    search_again = _Heap_Protection_free_delayed_blocks( heap, alloc_begin );
  } while ( search_again );                                           
                                                                      
  if ( alloc_begin != 0 ) {                                           
    /* Statistics */                                                  
    ++stats->allocs;                                                  
 200d5f8:	84 00 a0 01 	inc  %g2                                       
    stats->searches += search_count;                                  
 200d5fc:	82 00 40 1c 	add  %g1, %i4, %g1                             
    search_again = _Heap_Protection_free_delayed_blocks( heap, alloc_begin );
  } while ( search_again );                                           
                                                                      
  if ( alloc_begin != 0 ) {                                           
    /* Statistics */                                                  
    ++stats->allocs;                                                  
 200d600:	c4 27 60 48 	st  %g2, [ %i5 + 0x48 ]                        
    stats->searches += search_count;                                  
 200d604:	c2 27 60 4c 	st  %g1, [ %i5 + 0x4c ]                        
                                                                      
    block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size );
 200d608:	90 10 00 1d 	mov  %i5, %o0                                  
 200d60c:	92 10 00 11 	mov  %l1, %o1                                  
 200d610:	94 10 00 18 	mov  %i0, %o2                                  
 200d614:	7f ff e9 a7 	call  2007cb0 <_Heap_Block_allocate>           
 200d618:	96 10 00 19 	mov  %i1, %o3                                  
      boundary                                                        
    );                                                                
  }                                                                   
                                                                      
  /* Statistics */                                                    
  if ( stats->max_search < search_count ) {                           
 200d61c:	c2 07 60 44 	ld  [ %i5 + 0x44 ], %g1                        
 200d620:	80 a0 40 1c 	cmp  %g1, %i4                                  
 200d624:	1a 80 00 03 	bcc  200d630 <_Heap_Allocate_aligned_with_boundary+0x204>
 200d628:	01 00 00 00 	nop                                            
    stats->max_search = search_count;                                 
 200d62c:	f8 27 60 44 	st  %i4, [ %i5 + 0x44 ]                        
  }                                                                   
                                                                      
  return (void *) alloc_begin;                                        
}                                                                     
 200d630:	81 c7 e0 08 	ret                                            
 200d634:	81 e8 00 00 	restore                                        
    if ( free_size >= min_block_size || free_size == 0 ) {            
      return alloc_begin;                                             
    }                                                                 
  }                                                                   
                                                                      
  return 0;                                                           
 200d638:	10 bf ff 92 	b  200d480 <_Heap_Allocate_aligned_with_boundary+0x54>
 200d63c:	b0 10 20 00 	clr  %i0                                       
    /* Integer overflow occured */                                    
    return NULL;                                                      
  }                                                                   
                                                                      
  if ( boundary != 0 ) {                                              
    if ( boundary < alloc_size ) {                                    
 200d640:	18 bf ff a3 	bgu  200d4cc <_Heap_Allocate_aligned_with_boundary+0xa0>
 200d644:	80 a6 a0 00 	cmp  %i2, 0                                    
      return NULL;                                                    
    }                                                                 
                                                                      
    if ( alignment == 0 ) {                                           
 200d648:	22 bf ff 83 	be,a   200d454 <_Heap_Allocate_aligned_with_boundary+0x28>
 200d64c:	b4 10 00 16 	mov  %l6, %i2                                  
  return &heap->free_list;                                            
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{                                                                     
  return _Heap_Free_list_head(heap)->next;                            
 200d650:	10 bf ff 82 	b  200d458 <_Heap_Allocate_aligned_with_boundary+0x2c>
 200d654:	e2 07 60 08 	ld  [ %i5 + 8 ], %l1                           
                                                                      

0200d234 <_Heap_Extend>: Heap_Control *heap, void *extend_area_begin_ptr, uintptr_t extend_area_size, uintptr_t *extended_size_ptr ) {
 200d234:	9d e3 bf 98 	save  %sp, -104, %sp                           
  Heap_Block *start_block = first_block;                              
  Heap_Block *merge_below_block = NULL;                               
  Heap_Block *merge_above_block = NULL;                               
  Heap_Block *link_below_block = NULL;                                
  Heap_Block *link_above_block = NULL;                                
  Heap_Block *extend_first_block = NULL;                              
 200d238:	c0 27 bf f8 	clr  [ %fp + -8 ]                              
  Heap_Block *extend_last_block = NULL;                               
 200d23c:	c0 27 bf fc 	clr  [ %fp + -4 ]                              
  uintptr_t const page_size = heap->page_size;                        
  uintptr_t const min_block_size = heap->min_block_size;              
  uintptr_t const extend_area_begin = (uintptr_t) extend_area_begin_ptr;
  uintptr_t const extend_area_end = extend_area_begin + extend_area_size;
 200d240:	ba 06 40 1a 	add  %i1, %i2, %i5                             
  uintptr_t extend_area_size,                                         
  uintptr_t *extended_size_ptr                                        
)                                                                     
{                                                                     
  Heap_Statistics *const stats = &heap->stats;                        
  Heap_Block *const first_block = heap->first_block;                  
 200d244:	f8 06 20 20 	ld  [ %i0 + 0x20 ], %i4                        
  Heap_Block *merge_above_block = NULL;                               
  Heap_Block *link_below_block = NULL;                                
  Heap_Block *link_above_block = NULL;                                
  Heap_Block *extend_first_block = NULL;                              
  Heap_Block *extend_last_block = NULL;                               
  uintptr_t const page_size = heap->page_size;                        
 200d248:	e0 06 20 10 	ld  [ %i0 + 0x10 ], %l0                        
  uintptr_t const min_block_size = heap->min_block_size;              
 200d24c:	d6 06 20 14 	ld  [ %i0 + 0x14 ], %o3                        
  uintptr_t const extend_area_begin = (uintptr_t) extend_area_begin_ptr;
  uintptr_t const extend_area_end = extend_area_begin + extend_area_size;
  uintptr_t const free_size = stats->free_size;                       
 200d250:	e4 06 20 30 	ld  [ %i0 + 0x30 ], %l2                        
  uintptr_t extend_first_block_size = 0;                              
  uintptr_t extended_size = 0;                                        
  bool extend_area_ok = false;                                        
                                                                      
  if ( extend_area_end < extend_area_begin ) {                        
 200d254:	80 a6 40 1d 	cmp  %i1, %i5                                  
 200d258:	08 80 00 05 	bleu  200d26c <_Heap_Extend+0x38>              
 200d25c:	a2 10 20 00 	clr  %l1                                       
                                                                      
  if ( extended_size_ptr != NULL )                                    
    *extended_size_ptr = extended_size;                               
                                                                      
  return true;                                                        
}                                                                     
 200d260:	b0 0c 60 01 	and  %l1, 1, %i0                               
 200d264:	81 c7 e0 08 	ret                                            
 200d268:	81 e8 00 00 	restore                                        
                                                                      
  if ( extend_area_end < extend_area_begin ) {                        
    return false;                                                     
  }                                                                   
                                                                      
  extend_area_ok = _Heap_Get_first_and_last_block(                    
 200d26c:	90 10 00 19 	mov  %i1, %o0                                  
 200d270:	92 10 00 1a 	mov  %i2, %o1                                  
 200d274:	94 10 00 10 	mov  %l0, %o2                                  
 200d278:	98 07 bf f8 	add  %fp, -8, %o4                              
 200d27c:	7f ff e9 54 	call  20077cc <_Heap_Get_first_and_last_block> 
 200d280:	9a 07 bf fc 	add  %fp, -4, %o5                              
    page_size,                                                        
    min_block_size,                                                   
    &extend_first_block,                                              
    &extend_last_block                                                
  );                                                                  
  if (!extend_area_ok ) {                                             
 200d284:	80 8a 20 ff 	btst  0xff, %o0                                
 200d288:	02 bf ff f6 	be  200d260 <_Heap_Extend+0x2c>                
 200d28c:	aa 10 20 00 	clr  %l5                                       
 200d290:	a2 10 00 1c 	mov  %i4, %l1                                  
 200d294:	ac 10 20 00 	clr  %l6                                       
 200d298:	a6 10 20 00 	clr  %l3                                       
 200d29c:	10 80 00 14 	b  200d2ec <_Heap_Extend+0xb8>                 
 200d2a0:	a8 10 20 00 	clr  %l4                                       
      return false;                                                   
    }                                                                 
                                                                      
    if ( extend_area_end == sub_area_begin ) {                        
      merge_below_block = start_block;                                
    } else if ( extend_area_end < sub_area_end ) {                    
 200d2a4:	2a 80 00 02 	bcs,a   200d2ac <_Heap_Extend+0x78>            
 200d2a8:	ac 10 00 11 	mov  %l1, %l6                                  
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
 200d2ac:	90 10 00 1a 	mov  %i2, %o0                                  
 200d2b0:	40 00 17 f9 	call  2013294 <.urem>                          
 200d2b4:	92 10 00 10 	mov  %l0, %o1                                  
 200d2b8:	82 06 bf f8 	add  %i2, -8, %g1                              
      link_below_block = start_block;                                 
    }                                                                 
                                                                      
    if ( sub_area_end == extend_area_begin ) {                        
 200d2bc:	80 a6 80 19 	cmp  %i2, %i1                                  
 200d2c0:	02 80 00 1c 	be  200d330 <_Heap_Extend+0xfc>                
 200d2c4:	82 20 40 08 	sub  %g1, %o0, %g1                             
      start_block->prev_size = extend_area_end;                       
                                                                      
      merge_above_block = end_block;                                  
    } else if ( sub_area_end < extend_area_begin ) {                  
 200d2c8:	80 a6 40 1a 	cmp  %i1, %i2                                  
 200d2cc:	38 80 00 02 	bgu,a   200d2d4 <_Heap_Extend+0xa0>            
 200d2d0:	aa 10 00 01 	mov  %g1, %l5                                  
    - 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;                
 200d2d4:	e2 00 60 04 	ld  [ %g1 + 4 ], %l1                           
 200d2d8:	a2 0c 7f fe 	and  %l1, -2, %l1                              
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
 200d2dc:	a2 04 40 01 	add  %l1, %g1, %l1                             
      link_above_block = end_block;                                   
    }                                                                 
                                                                      
    start_block = _Heap_Block_at( end_block, _Heap_Block_size( end_block ) );
  } while ( start_block != first_block );                             
 200d2e0:	80 a7 00 11 	cmp  %i4, %l1                                  
 200d2e4:	22 80 00 1b 	be,a   200d350 <_Heap_Extend+0x11c>            
 200d2e8:	c2 06 20 18 	ld  [ %i0 + 0x18 ], %g1                        
    return false;                                                     
  }                                                                   
                                                                      
  do {                                                                
    uintptr_t const sub_area_begin = (start_block != first_block) ?   
      (uintptr_t) start_block : heap->area_begin;                     
 200d2ec:	80 a4 40 1c 	cmp  %l1, %i4                                  
 200d2f0:	02 80 00 66 	be  200d488 <_Heap_Extend+0x254>               
 200d2f4:	82 10 00 11 	mov  %l1, %g1                                  
    uintptr_t const sub_area_end = start_block->prev_size;            
    Heap_Block *const end_block =                                     
      _Heap_Block_of_alloc_area( sub_area_end, page_size );           
                                                                      
    if (                                                              
 200d2f8:	80 a0 40 1d 	cmp  %g1, %i5                                  
 200d2fc:	0a 80 00 70 	bcs  200d4bc <_Heap_Extend+0x288>              
 200d300:	f4 04 40 00 	ld  [ %l1 ], %i2                               
      sub_area_end > extend_area_begin && extend_area_end > sub_area_begin
    ) {                                                               
      return false;                                                   
    }                                                                 
                                                                      
    if ( extend_area_end == sub_area_begin ) {                        
 200d304:	80 a0 40 1d 	cmp  %g1, %i5                                  
 200d308:	12 bf ff e7 	bne  200d2a4 <_Heap_Extend+0x70>               
 200d30c:	80 a7 40 1a 	cmp  %i5, %i2                                  
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
 200d310:	90 10 00 1a 	mov  %i2, %o0                                  
 200d314:	40 00 17 e0 	call  2013294 <.urem>                          
 200d318:	92 10 00 10 	mov  %l0, %o1                                  
 200d31c:	82 06 bf f8 	add  %i2, -8, %g1                              
 200d320:	a8 10 00 11 	mov  %l1, %l4                                  
      merge_below_block = start_block;                                
    } else if ( extend_area_end < sub_area_end ) {                    
      link_below_block = start_block;                                 
    }                                                                 
                                                                      
    if ( sub_area_end == extend_area_begin ) {                        
 200d324:	80 a6 80 19 	cmp  %i2, %i1                                  
 200d328:	12 bf ff e8 	bne  200d2c8 <_Heap_Extend+0x94>               <== ALWAYS TAKEN
 200d32c:	82 20 40 08 	sub  %g1, %o0, %g1                             
      start_block->prev_size = extend_area_end;                       
 200d330:	fa 24 40 00 	st  %i5, [ %l1 ]                               
    - 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;                
 200d334:	e2 00 60 04 	ld  [ %g1 + 4 ], %l1                           
 200d338:	a2 0c 7f fe 	and  %l1, -2, %l1                              
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
 200d33c:	a2 04 40 01 	add  %l1, %g1, %l1                             
    } else if ( sub_area_end < extend_area_begin ) {                  
      link_above_block = end_block;                                   
    }                                                                 
                                                                      
    start_block = _Heap_Block_at( end_block, _Heap_Block_size( end_block ) );
  } while ( start_block != first_block );                             
 200d340:	80 a7 00 11 	cmp  %i4, %l1                                  
 200d344:	12 bf ff ea 	bne  200d2ec <_Heap_Extend+0xb8>               <== NEVER TAKEN
 200d348:	a6 10 00 01 	mov  %g1, %l3                                  
                                                                      
  if ( extend_area_begin < heap->area_begin ) {                       
 200d34c:	c2 06 20 18 	ld  [ %i0 + 0x18 ], %g1                        
 200d350:	80 a6 40 01 	cmp  %i1, %g1                                  
 200d354:	3a 80 00 55 	bcc,a   200d4a8 <_Heap_Extend+0x274>           
 200d358:	c2 06 20 1c 	ld  [ %i0 + 0x1c ], %g1                        
    heap->area_begin = extend_area_begin;                             
 200d35c:	f2 26 20 18 	st  %i1, [ %i0 + 0x18 ]                        
  } else if ( heap->area_end < extend_area_end ) {                    
    heap->area_end = extend_area_end;                                 
  }                                                                   
                                                                      
  extend_first_block_size =                                           
    (uintptr_t) extend_last_block - (uintptr_t) extend_first_block;   
 200d360:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
 200d364:	c4 07 bf fc 	ld  [ %fp + -4 ], %g2                          
                                                                      
  extend_last_block->prev_size = extend_first_block_size;             
  extend_last_block->size_and_flag = 0;                               
  _Heap_Protection_block_initialize( heap, extend_last_block );       
                                                                      
  if ( (uintptr_t) extend_first_block < (uintptr_t) heap->first_block ) {
 200d368:	c8 06 20 20 	ld  [ %i0 + 0x20 ], %g4                        
    heap->area_begin = extend_area_begin;                             
  } else if ( heap->area_end < extend_area_end ) {                    
    heap->area_end = extend_area_end;                                 
  }                                                                   
                                                                      
  extend_first_block_size =                                           
 200d36c:	86 20 80 01 	sub  %g2, %g1, %g3                             
    (uintptr_t) extend_last_block - (uintptr_t) extend_first_block;   
                                                                      
  extend_first_block->prev_size = extend_area_end;                    
 200d370:	fa 20 40 00 	st  %i5, [ %g1 ]                               
  extend_first_block->size_and_flag =                                 
    extend_first_block_size | HEAP_PREV_BLOCK_USED;                   
 200d374:	b8 10 e0 01 	or  %g3, 1, %i4                                
                                                                      
  extend_first_block_size =                                           
    (uintptr_t) extend_last_block - (uintptr_t) extend_first_block;   
                                                                      
  extend_first_block->prev_size = extend_area_end;                    
  extend_first_block->size_and_flag =                                 
 200d378:	f8 20 60 04 	st  %i4, [ %g1 + 4 ]                           
    extend_first_block_size | HEAP_PREV_BLOCK_USED;                   
  _Heap_Protection_block_initialize( heap, extend_first_block );      
                                                                      
  extend_last_block->prev_size = extend_first_block_size;             
 200d37c:	c6 20 80 00 	st  %g3, [ %g2 ]                               
  extend_last_block->size_and_flag = 0;                               
  _Heap_Protection_block_initialize( heap, extend_last_block );       
                                                                      
  if ( (uintptr_t) extend_first_block < (uintptr_t) heap->first_block ) {
 200d380:	80 a1 00 01 	cmp  %g4, %g1                                  
 200d384:	08 80 00 43 	bleu  200d490 <_Heap_Extend+0x25c>             
 200d388:	c0 20 a0 04 	clr  [ %g2 + 4 ]                               
    heap->first_block = extend_first_block;                           
 200d38c:	c2 26 20 20 	st  %g1, [ %i0 + 0x20 ]                        
  } else if ( (uintptr_t) extend_last_block > (uintptr_t) heap->last_block ) {
    heap->last_block = extend_last_block;                             
  }                                                                   
                                                                      
  if ( merge_below_block != NULL ) {                                  
 200d390:	80 a5 20 00 	cmp  %l4, 0                                    
 200d394:	02 80 00 63 	be  200d520 <_Heap_Extend+0x2ec>               
 200d398:	b2 06 60 08 	add  %i1, 8, %i1                               
  Heap_Control *heap,                                                 
  uintptr_t extend_area_begin,                                        
  Heap_Block *first_block                                             
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
 200d39c:	f8 06 20 10 	ld  [ %i0 + 0x10 ], %i4                        
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up(                        
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  uintptr_t remainder = value % alignment;                            
 200d3a0:	92 10 00 1c 	mov  %i4, %o1                                  
 200d3a4:	40 00 17 bc 	call  2013294 <.urem>                          
 200d3a8:	90 10 00 19 	mov  %i1, %o0                                  
                                                                      
  if ( remainder != 0 ) {                                             
 200d3ac:	80 a2 20 00 	cmp  %o0, 0                                    
 200d3b0:	02 80 00 04 	be  200d3c0 <_Heap_Extend+0x18c>               
 200d3b4:	c4 05 00 00 	ld  [ %l4 ], %g2                               
    return value - remainder + alignment;                             
 200d3b8:	b2 06 40 1c 	add  %i1, %i4, %i1                             
 200d3bc:	b2 26 40 08 	sub  %i1, %o0, %i1                             
  uintptr_t const new_first_block_alloc_begin =                       
    _Heap_Align_up( extend_area_begin + HEAP_BLOCK_HEADER_SIZE, page_size );
  uintptr_t const new_first_block_begin =                             
 200d3c0:	82 06 7f f8 	add  %i1, -8, %g1                              
  uintptr_t const first_block_begin = (uintptr_t) first_block;        
  uintptr_t const new_first_block_size =                              
    first_block_begin - new_first_block_begin;                        
  Heap_Block *const new_first_block = (Heap_Block *) new_first_block_begin;
                                                                      
  new_first_block->prev_size = first_block->prev_size;                
 200d3c4:	c4 26 7f f8 	st  %g2, [ %i1 + -8 ]                          
  uintptr_t const new_first_block_alloc_begin =                       
    _Heap_Align_up( extend_area_begin + HEAP_BLOCK_HEADER_SIZE, page_size );
  uintptr_t const new_first_block_begin =                             
    new_first_block_alloc_begin - HEAP_BLOCK_HEADER_SIZE;             
  uintptr_t const first_block_begin = (uintptr_t) first_block;        
  uintptr_t const new_first_block_size =                              
 200d3c8:	84 25 00 01 	sub  %l4, %g1, %g2                             
    first_block_begin - new_first_block_begin;                        
  Heap_Block *const new_first_block = (Heap_Block *) new_first_block_begin;
                                                                      
  new_first_block->prev_size = first_block->prev_size;                
  new_first_block->size_and_flag = new_first_block_size | HEAP_PREV_BLOCK_USED;
 200d3cc:	84 10 a0 01 	or  %g2, 1, %g2                                
                                                                      
  _Heap_Free_block( heap, new_first_block );                          
 200d3d0:	90 10 00 18 	mov  %i0, %o0                                  
 200d3d4:	92 10 00 01 	mov  %g1, %o1                                  
 200d3d8:	7f ff ff 8d 	call  200d20c <_Heap_Free_block>               
 200d3dc:	c4 26 7f fc 	st  %g2, [ %i1 + -4 ]                          
      link_below_block,                                               
      extend_last_block                                               
    );                                                                
  }                                                                   
                                                                      
  if ( merge_above_block != NULL ) {                                  
 200d3e0:	80 a4 e0 00 	cmp  %l3, 0                                    
 200d3e4:	02 80 00 3b 	be  200d4d0 <_Heap_Extend+0x29c>               
 200d3e8:	ba 07 7f f8 	add  %i5, -8, %i5                              
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
 200d3ec:	d2 06 20 10 	ld  [ %i0 + 0x10 ], %o1                        
  uintptr_t extend_area_end                                           
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
  uintptr_t const last_block_begin = (uintptr_t) last_block;          
  uintptr_t const last_block_new_size = _Heap_Align_down(             
 200d3f0:	ba 27 40 13 	sub  %i5, %l3, %i5                             
 200d3f4:	40 00 17 a8 	call  2013294 <.urem>                          
 200d3f8:	90 10 00 1d 	mov  %i5, %o0                                  
  );                                                                  
  Heap_Block *const new_last_block =                                  
    _Heap_Block_at( last_block, last_block_new_size );                
                                                                      
  new_last_block->size_and_flag =                                     
    (last_block->size_and_flag - last_block_new_size)                 
 200d3fc:	c2 04 e0 04 	ld  [ %l3 + 4 ], %g1                           
 200d400:	ba 27 40 08 	sub  %i5, %o0, %i5                             
 200d404:	82 20 40 1d 	sub  %g1, %i5, %g1                             
      | HEAP_PREV_BLOCK_USED;                                         
 200d408:	82 10 60 01 	or  %g1, 1, %g1                                
    page_size                                                         
  );                                                                  
  Heap_Block *const new_last_block =                                  
    _Heap_Block_at( last_block, last_block_new_size );                
                                                                      
  new_last_block->size_and_flag =                                     
 200d40c:	84 07 40 13 	add  %i5, %l3, %g2                             
 200d410:	c2 20 a0 04 	st  %g1, [ %g2 + 4 ]                           
RTEMS_INLINE_ROUTINE void _Heap_Block_set_size(                       
  Heap_Block *block,                                                  
  uintptr_t size                                                      
)                                                                     
{                                                                     
  uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;       
 200d414:	c2 04 e0 04 	ld  [ %l3 + 4 ], %g1                           
    (last_block->size_and_flag - last_block_new_size)                 
      | HEAP_PREV_BLOCK_USED;                                         
                                                                      
  _Heap_Block_set_size( last_block, last_block_new_size );            
                                                                      
  _Heap_Free_block( heap, last_block );                               
 200d418:	90 10 00 18 	mov  %i0, %o0                                  
 200d41c:	82 08 60 01 	and  %g1, 1, %g1                               
 200d420:	92 10 00 13 	mov  %l3, %o1                                  
                                                                      
  block->size_and_flag = size | flag;                                 
 200d424:	ba 17 40 01 	or  %i5, %g1, %i5                              
 200d428:	7f ff ff 79 	call  200d20c <_Heap_Free_block>               
 200d42c:	fa 24 e0 04 	st  %i5, [ %l3 + 4 ]                           
      extend_first_block,                                             
      extend_last_block                                               
    );                                                                
  }                                                                   
                                                                      
  if ( merge_below_block == NULL && merge_above_block == NULL ) {     
 200d430:	80 a4 e0 00 	cmp  %l3, 0                                    
 200d434:	02 80 00 34 	be  200d504 <_Heap_Extend+0x2d0>               
 200d438:	80 a5 20 00 	cmp  %l4, 0                                    
                                                                      
  if ( extended_size_ptr != NULL )                                    
    *extended_size_ptr = extended_size;                               
                                                                      
  return true;                                                        
}                                                                     
 200d43c:	c2 06 20 24 	ld  [ %i0 + 0x24 ], %g1                        
 * This feature will be used to terminate the scattered heap area list.  See
 * also _Heap_Extend().                                               
 */                                                                   
RTEMS_INLINE_ROUTINE void _Heap_Set_last_block_size( Heap_Control *heap )
{                                                                     
  _Heap_Block_set_size(                                               
 200d440:	c6 06 20 20 	ld  [ %i0 + 0x20 ], %g3                        
RTEMS_INLINE_ROUTINE void _Heap_Block_set_size(                       
  Heap_Block *block,                                                  
  uintptr_t size                                                      
)                                                                     
{                                                                     
  uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;       
 200d444:	c4 00 60 04 	ld  [ %g1 + 4 ], %g2                           
 * This feature will be used to terminate the scattered heap area list.  See
 * also _Heap_Extend().                                               
 */                                                                   
RTEMS_INLINE_ROUTINE void _Heap_Set_last_block_size( Heap_Control *heap )
{                                                                     
  _Heap_Block_set_size(                                               
 200d448:	86 20 c0 01 	sub  %g3, %g1, %g3                             
RTEMS_INLINE_ROUTINE void _Heap_Block_set_size(                       
  Heap_Block *block,                                                  
  uintptr_t size                                                      
)                                                                     
{                                                                     
  uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;       
 200d44c:	84 08 a0 01 	and  %g2, 1, %g2                               
                                                                      
  block->size_and_flag = size | flag;                                 
 200d450:	84 10 80 03 	or  %g2, %g3, %g2                              
 200d454:	c4 20 60 04 	st  %g2, [ %g1 + 4 ]                           
  _Heap_Set_last_block_size( heap );                                  
                                                                      
  extended_size = stats->free_size - free_size;                       
                                                                      
  /* Statistics */                                                    
  stats->size += extended_size;                                       
 200d458:	c2 06 20 2c 	ld  [ %i0 + 0x2c ], %g1                        
    _Heap_Free_block( heap, extend_first_block );                     
  }                                                                   
                                                                      
  _Heap_Set_last_block_size( heap );                                  
                                                                      
  extended_size = stats->free_size - free_size;                       
 200d45c:	c4 06 20 30 	ld  [ %i0 + 0x30 ], %g2                        
  stats->size += extended_size;                                       
                                                                      
  if ( extended_size_ptr != NULL )                                    
    *extended_size_ptr = extended_size;                               
                                                                      
  return true;                                                        
 200d460:	a2 10 20 01 	mov  1, %l1                                    
    _Heap_Free_block( heap, extend_first_block );                     
  }                                                                   
                                                                      
  _Heap_Set_last_block_size( heap );                                  
                                                                      
  extended_size = stats->free_size - free_size;                       
 200d464:	a4 20 80 12 	sub  %g2, %l2, %l2                             
                                                                      
  /* Statistics */                                                    
  stats->size += extended_size;                                       
 200d468:	82 00 40 12 	add  %g1, %l2, %g1                             
                                                                      
  if ( extended_size_ptr != NULL )                                    
 200d46c:	80 a6 e0 00 	cmp  %i3, 0                                    
 200d470:	02 bf ff 7c 	be  200d260 <_Heap_Extend+0x2c>                <== NEVER TAKEN
 200d474:	c2 26 20 2c 	st  %g1, [ %i0 + 0x2c ]                        
    *extended_size_ptr = extended_size;                               
 200d478:	e4 26 c0 00 	st  %l2, [ %i3 ]                               
                                                                      
  return true;                                                        
}                                                                     
 200d47c:	b0 0c 60 01 	and  %l1, 1, %i0                               
 200d480:	81 c7 e0 08 	ret                                            
 200d484:	81 e8 00 00 	restore                                        
    return false;                                                     
  }                                                                   
                                                                      
  do {                                                                
    uintptr_t const sub_area_begin = (start_block != first_block) ?   
      (uintptr_t) start_block : heap->area_begin;                     
 200d488:	10 bf ff 9c 	b  200d2f8 <_Heap_Extend+0xc4>                 
 200d48c:	c2 06 20 18 	ld  [ %i0 + 0x18 ], %g1                        
  extend_last_block->size_and_flag = 0;                               
  _Heap_Protection_block_initialize( heap, extend_last_block );       
                                                                      
  if ( (uintptr_t) extend_first_block < (uintptr_t) heap->first_block ) {
    heap->first_block = extend_first_block;                           
  } else if ( (uintptr_t) extend_last_block > (uintptr_t) heap->last_block ) {
 200d490:	c2 06 20 24 	ld  [ %i0 + 0x24 ], %g1                        
 200d494:	80 a0 40 02 	cmp  %g1, %g2                                  
 200d498:	2a bf ff be 	bcs,a   200d390 <_Heap_Extend+0x15c>           
 200d49c:	c4 26 20 24 	st  %g2, [ %i0 + 0x24 ]                        
    heap->last_block = extend_last_block;                             
  }                                                                   
                                                                      
  if ( merge_below_block != NULL ) {                                  
 200d4a0:	10 bf ff bd 	b  200d394 <_Heap_Extend+0x160>                
 200d4a4:	80 a5 20 00 	cmp  %l4, 0                                    
    start_block = _Heap_Block_at( end_block, _Heap_Block_size( end_block ) );
  } while ( start_block != first_block );                             
                                                                      
  if ( extend_area_begin < heap->area_begin ) {                       
    heap->area_begin = extend_area_begin;                             
  } else if ( heap->area_end < extend_area_end ) {                    
 200d4a8:	80 a7 40 01 	cmp  %i5, %g1                                  
 200d4ac:	38 bf ff ad 	bgu,a   200d360 <_Heap_Extend+0x12c>           
 200d4b0:	fa 26 20 1c 	st  %i5, [ %i0 + 0x1c ]                        
    heap->area_end = extend_area_end;                                 
  }                                                                   
                                                                      
  extend_first_block_size =                                           
    (uintptr_t) extend_last_block - (uintptr_t) extend_first_block;   
 200d4b4:	10 bf ff ac 	b  200d364 <_Heap_Extend+0x130>                
 200d4b8:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
      (uintptr_t) start_block : heap->area_begin;                     
    uintptr_t const sub_area_end = start_block->prev_size;            
    Heap_Block *const end_block =                                     
      _Heap_Block_of_alloc_area( sub_area_end, page_size );           
                                                                      
    if (                                                              
 200d4bc:	80 a6 40 1a 	cmp  %i1, %i2                                  
 200d4c0:	1a bf ff 92 	bcc  200d308 <_Heap_Extend+0xd4>               
 200d4c4:	80 a0 40 1d 	cmp  %g1, %i5                                  
      sub_area_end > extend_area_begin && extend_area_end > sub_area_begin
    ) {                                                               
      return false;                                                   
 200d4c8:	10 bf ff 66 	b  200d260 <_Heap_Extend+0x2c>                 
 200d4cc:	a2 10 20 00 	clr  %l1                                       
    );                                                                
  }                                                                   
                                                                      
  if ( merge_above_block != NULL ) {                                  
    _Heap_Merge_above( heap, merge_above_block, extend_area_end );    
  } else if ( link_above_block != NULL ) {                            
 200d4d0:	80 a5 60 00 	cmp  %l5, 0                                    
 200d4d4:	02 bf ff d7 	be  200d430 <_Heap_Extend+0x1fc>               
 200d4d8:	c4 07 bf f8 	ld  [ %fp + -8 ], %g2                          
RTEMS_INLINE_ROUTINE void _Heap_Block_set_size(                       
  Heap_Block *block,                                                  
  uintptr_t size                                                      
)                                                                     
{                                                                     
  uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;       
 200d4dc:	c6 05 60 04 	ld  [ %l5 + 4 ], %g3                           
    _Heap_Link_above(                                                 
 200d4e0:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 200d4e4:	86 08 e0 01 	and  %g3, 1, %g3                               
)                                                                     
{                                                                     
  uintptr_t const link_begin = (uintptr_t) link;                      
  uintptr_t const first_block_begin = (uintptr_t) first_block;        
                                                                      
  _Heap_Block_set_size( link, first_block_begin - link_begin );       
 200d4e8:	84 20 80 15 	sub  %g2, %l5, %g2                             
                                                                      
  block->size_and_flag = size | flag;                                 
 200d4ec:	84 10 c0 02 	or  %g3, %g2, %g2                              
 200d4f0:	c4 25 60 04 	st  %g2, [ %l5 + 4 ]                           
                                                                      
  last_block->size_and_flag |= HEAP_PREV_BLOCK_USED;                  
 200d4f4:	c4 00 60 04 	ld  [ %g1 + 4 ], %g2                           
 200d4f8:	84 10 a0 01 	or  %g2, 1, %g2                                
 200d4fc:	10 bf ff cd 	b  200d430 <_Heap_Extend+0x1fc>                
 200d500:	c4 20 60 04 	st  %g2, [ %g1 + 4 ]                           
      extend_first_block,                                             
      extend_last_block                                               
    );                                                                
  }                                                                   
                                                                      
  if ( merge_below_block == NULL && merge_above_block == NULL ) {     
 200d504:	32 bf ff cf 	bne,a   200d440 <_Heap_Extend+0x20c>           
 200d508:	c2 06 20 24 	ld  [ %i0 + 0x24 ], %g1                        
    _Heap_Free_block( heap, extend_first_block );                     
 200d50c:	d2 07 bf f8 	ld  [ %fp + -8 ], %o1                          
 200d510:	7f ff ff 3f 	call  200d20c <_Heap_Free_block>               
 200d514:	90 10 00 18 	mov  %i0, %o0                                  
                                                                      
  if ( extended_size_ptr != NULL )                                    
    *extended_size_ptr = extended_size;                               
                                                                      
  return true;                                                        
}                                                                     
 200d518:	10 bf ff ca 	b  200d440 <_Heap_Extend+0x20c>                
 200d51c:	c2 06 20 24 	ld  [ %i0 + 0x24 ], %g1                        
    heap->last_block = extend_last_block;                             
  }                                                                   
                                                                      
  if ( merge_below_block != NULL ) {                                  
    _Heap_Merge_below( heap, extend_area_begin, merge_below_block );  
  } else if ( link_below_block != NULL ) {                            
 200d520:	80 a5 a0 00 	cmp  %l6, 0                                    
 200d524:	02 bf ff b0 	be  200d3e4 <_Heap_Extend+0x1b0>               
 200d528:	80 a4 e0 00 	cmp  %l3, 0                                    
{                                                                     
  uintptr_t const last_block_begin = (uintptr_t) last_block;          
  uintptr_t const link_begin = (uintptr_t) link;                      
                                                                      
  last_block->size_and_flag =                                         
    (link_begin - last_block_begin) | HEAP_PREV_BLOCK_USED;           
 200d52c:	ac 25 80 02 	sub  %l6, %g2, %l6                             
 200d530:	ac 15 a0 01 	or  %l6, 1, %l6                                
)                                                                     
{                                                                     
  uintptr_t const last_block_begin = (uintptr_t) last_block;          
  uintptr_t const link_begin = (uintptr_t) link;                      
                                                                      
  last_block->size_and_flag =                                         
 200d534:	10 bf ff ac 	b  200d3e4 <_Heap_Extend+0x1b0>                
 200d538:	ec 20 a0 04 	st  %l6, [ %g2 + 4 ]                           
                                                                      

0200d658 <_Heap_Free>: return do_free; } #endif bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr ) {
 200d658:	9d e3 bf a0 	save  %sp, -96, %sp                            
  /*                                                                  
   * If NULL return true so a free on NULL is considered a valid release. This
   * is a special case that could be handled by the in heap check how-ever that
   * would result in false being returned which is wrong.             
   */                                                                 
  if ( alloc_begin_ptr == NULL ) {                                    
 200d65c:	80 a6 60 00 	cmp  %i1, 0                                    
 200d660:	02 80 00 56 	be  200d7b8 <_Heap_Free+0x160>                 
 200d664:	84 10 20 01 	mov  1, %g2                                    
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
 200d668:	d2 06 20 10 	ld  [ %i0 + 0x10 ], %o1                        
 200d66c:	40 00 2c f3 	call  2018a38 <.urem>                          
 200d670:	90 10 00 19 	mov  %i1, %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           
 200d674:	c2 06 20 20 	ld  [ %i0 + 0x20 ], %g1                        
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
 200d678:	ba 06 7f f8 	add  %i1, -8, %i5                              
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
    - HEAP_BLOCK_HEADER_SIZE);                                        
 200d67c:	ba 27 40 08 	sub  %i5, %o0, %i5                             
  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;             
 200d680:	80 a7 40 01 	cmp  %i5, %g1                                  
 200d684:	0a 80 00 4d 	bcs  200d7b8 <_Heap_Free+0x160>                
 200d688:	84 10 20 00 	clr  %g2                                       
 200d68c:	c8 06 20 24 	ld  [ %i0 + 0x24 ], %g4                        
 200d690:	80 a7 40 04 	cmp  %i5, %g4                                  
 200d694:	38 80 00 4a 	bgu,a   200d7bc <_Heap_Free+0x164>             
 200d698:	b0 08 a0 01 	and  %g2, 1, %i0                               
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
 200d69c:	de 07 60 04 	ld  [ %i5 + 4 ], %o7                           
    - 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;                
 200d6a0:	b2 0b ff fe 	and  %o7, -2, %i1                              
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
 200d6a4:	86 06 40 1d 	add  %i1, %i5, %g3                             
  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;             
 200d6a8:	80 a0 40 03 	cmp  %g1, %g3                                  
 200d6ac:	38 80 00 44 	bgu,a   200d7bc <_Heap_Free+0x164>             <== NEVER TAKEN
 200d6b0:	b0 08 a0 01 	and  %g2, 1, %i0                               <== NOT EXECUTED
 200d6b4:	80 a1 00 03 	cmp  %g4, %g3                                  
 200d6b8:	2a 80 00 41 	bcs,a   200d7bc <_Heap_Free+0x164>             <== NEVER TAKEN
 200d6bc:	b0 08 a0 01 	and  %g2, 1, %i0                               <== NOT EXECUTED
 200d6c0:	da 00 e0 04 	ld  [ %g3 + 4 ], %o5                           
    return false;                                                     
  }                                                                   
                                                                      
  _Heap_Protection_block_check( heap, next_block );                   
                                                                      
  if ( !_Heap_Is_prev_used( next_block ) ) {                          
 200d6c4:	80 8b 60 01 	btst  1, %o5                                   
 200d6c8:	02 80 00 3c 	be  200d7b8 <_Heap_Free+0x160>                 <== NEVER TAKEN
 200d6cc:	98 0b 7f fe 	and  %o5, -2, %o4                              
    return true;                                                      
  }                                                                   
                                                                      
  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 ));
 200d6d0:	80 a1 00 03 	cmp  %g4, %g3                                  
 200d6d4:	02 80 00 06 	be  200d6ec <_Heap_Free+0x94>                  
 200d6d8:	9a 10 20 00 	clr  %o5                                       
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
 200d6dc:	84 00 c0 0c 	add  %g3, %o4, %g2                             
  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;                 
 200d6e0:	da 00 a0 04 	ld  [ %g2 + 4 ], %o5                           
 200d6e4:	9a 0b 60 01 	and  %o5, 1, %o5                               
                                                                      
    return do_free;                                                   
  }                                                                   
#endif                                                                
                                                                      
bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr )          
 200d6e8:	9a 1b 60 01 	xor  %o5, 1, %o5                               
                                                                      
  next_block_size = _Heap_Block_size( next_block );                   
  next_is_free = next_block != heap->last_block                       
    && !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size ));
                                                                      
  if ( !_Heap_Is_prev_used( block ) ) {                               
 200d6ec:	80 8b e0 01 	btst  1, %o7                                   
 200d6f0:	12 80 00 1c 	bne  200d760 <_Heap_Free+0x108>                
 200d6f4:	80 8b 60 ff 	btst  0xff, %o5                                
    uintptr_t const prev_size = block->prev_size;                     
 200d6f8:	d6 07 40 00 	ld  [ %i5 ], %o3                               
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
 200d6fc:	9e 27 40 0b 	sub  %i5, %o3, %o7                             
  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;             
 200d700:	80 a0 40 0f 	cmp  %g1, %o7                                  
 200d704:	18 80 00 2d 	bgu  200d7b8 <_Heap_Free+0x160>                <== NEVER TAKEN
 200d708:	84 10 20 00 	clr  %g2                                       
 200d70c:	80 a1 00 0f 	cmp  %g4, %o7                                  
 200d710:	2a 80 00 2b 	bcs,a   200d7bc <_Heap_Free+0x164>             <== NEVER TAKEN
 200d714:	b0 08 a0 01 	and  %g2, 1, %i0                               <== NOT EXECUTED
  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;                 
 200d718:	c2 03 e0 04 	ld  [ %o7 + 4 ], %g1                           
      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) ) {                        
 200d71c:	80 88 60 01 	btst  1, %g1                                   
 200d720:	02 80 00 26 	be  200d7b8 <_Heap_Free+0x160>                 <== NEVER TAKEN
 200d724:	80 8b 60 ff 	btst  0xff, %o5                                
      _HAssert( false );                                              
      return( false );                                                
    }                                                                 
                                                                      
    if ( next_is_free ) {       /* coalesce both */                   
 200d728:	02 80 00 39 	be  200d80c <_Heap_Free+0x1b4>                 
 200d72c:	96 06 40 0b 	add  %i1, %o3, %o3                             
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
 200d730:	c2 00 e0 08 	ld  [ %g3 + 8 ], %g1                           
 200d734:	c4 00 e0 0c 	ld  [ %g3 + 0xc ], %g2                         
    }                                                                 
                                                                      
    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;                                        
 200d738:	c6 06 20 38 	ld  [ %i0 + 0x38 ], %g3                        
RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) 
{                                                                     
  Heap_Block *next = block->next;                                     
  Heap_Block *prev = block->prev;                                     
                                                                      
  prev->next = next;                                                  
 200d73c:	c2 20 a0 08 	st  %g1, [ %g2 + 8 ]                           
  next->prev = prev;                                                  
 200d740:	c4 20 60 0c 	st  %g2, [ %g1 + 0xc ]                         
 200d744:	82 00 ff ff 	add  %g3, -1, %g1                              
 200d748:	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;
 200d74c:	98 02 c0 0c 	add  %o3, %o4, %o4                             
      _Heap_Free_list_remove( next_block );                           
      stats->free_blocks -= 1;                                        
      prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;        
 200d750:	82 13 20 01 	or  %o4, 1, %g1                                
      next_block = _Heap_Block_at( prev_block, size );                
      _HAssert(!_Heap_Is_prev_used( next_block));                     
      next_block->prev_size = size;                                   
 200d754:	d8 23 00 0f 	st  %o4, [ %o4 + %o7 ]                         
                                                                      
    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;        
 200d758:	10 80 00 0e 	b  200d790 <_Heap_Free+0x138>                  
 200d75c:	c2 23 e0 04 	st  %g1, [ %o7 + 4 ]                           
      uintptr_t const size = block_size + prev_size;                  
      prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;        
      next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;             
      next_block->prev_size = size;                                   
    }                                                                 
  } else if ( next_is_free ) {    /* coalesce next */                 
 200d760:	22 80 00 19 	be,a   200d7c4 <_Heap_Free+0x16c>              
 200d764:	c4 06 20 08 	ld  [ %i0 + 8 ], %g2                           
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
 200d768:	c4 00 e0 08 	ld  [ %g3 + 8 ], %g2                           
 200d76c:	c2 00 e0 0c 	ld  [ %g3 + 0xc ], %g1                         
)                                                                     
{                                                                     
  Heap_Block *next = old_block->next;                                 
  Heap_Block *prev = old_block->prev;                                 
                                                                      
  new_block->next = next;                                             
 200d770:	c4 27 60 08 	st  %g2, [ %i5 + 8 ]                           
  new_block->prev = prev;                                             
 200d774:	c2 27 60 0c 	st  %g1, [ %i5 + 0xc ]                         
      prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;        
      next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;             
      next_block->prev_size = size;                                   
    }                                                                 
  } else if ( next_is_free ) {    /* coalesce next */                 
    uintptr_t const size = block_size + next_block_size;              
 200d778:	98 03 00 19 	add  %o4, %i1, %o4                             
                                                                      
  next->prev = new_block;                                             
 200d77c:	fa 20 a0 0c 	st  %i5, [ %g2 + 0xc ]                         
  prev->next = new_block;                                             
 200d780:	fa 20 60 08 	st  %i5, [ %g1 + 8 ]                           
    _Heap_Free_list_replace( next_block, block );                     
    block->size_and_flag = size | HEAP_PREV_BLOCK_USED;               
 200d784:	84 13 20 01 	or  %o4, 1, %g2                                
    next_block  = _Heap_Block_at( block, size );                      
    next_block->prev_size = size;                                     
 200d788:	d8 23 00 1d 	st  %o4, [ %o4 + %i5 ]                         
      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;               
 200d78c:	c4 27 60 04 	st  %g2, [ %i5 + 4 ]                           
      stats->max_free_blocks = stats->free_blocks;                    
    }                                                                 
  }                                                                   
                                                                      
  /* Statistics */                                                    
  --stats->used_blocks;                                               
 200d790:	c4 06 20 40 	ld  [ %i0 + 0x40 ], %g2                        
  ++stats->frees;                                                     
 200d794:	c2 06 20 50 	ld  [ %i0 + 0x50 ], %g1                        
  stats->free_size += block_size;                                     
 200d798:	c6 06 20 30 	ld  [ %i0 + 0x30 ], %g3                        
      stats->max_free_blocks = stats->free_blocks;                    
    }                                                                 
  }                                                                   
                                                                      
  /* Statistics */                                                    
  --stats->used_blocks;                                               
 200d79c:	84 00 bf ff 	add  %g2, -1, %g2                              
  ++stats->frees;                                                     
 200d7a0:	82 00 60 01 	inc  %g1                                       
  stats->free_size += block_size;                                     
 200d7a4:	b2 00 c0 19 	add  %g3, %i1, %i1                             
      stats->max_free_blocks = stats->free_blocks;                    
    }                                                                 
  }                                                                   
                                                                      
  /* Statistics */                                                    
  --stats->used_blocks;                                               
 200d7a8:	c4 26 20 40 	st  %g2, [ %i0 + 0x40 ]                        
  ++stats->frees;                                                     
 200d7ac:	c2 26 20 50 	st  %g1, [ %i0 + 0x50 ]                        
  stats->free_size += block_size;                                     
 200d7b0:	f2 26 20 30 	st  %i1, [ %i0 + 0x30 ]                        
                                                                      
  return( true );                                                     
 200d7b4:	84 10 20 01 	mov  1, %g2                                    
}                                                                     
 200d7b8:	b0 08 a0 01 	and  %g2, 1, %i0                               
 200d7bc:	81 c7 e0 08 	ret                                            
 200d7c0:	81 e8 00 00 	restore                                        
    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;         
 200d7c4:	82 16 60 01 	or  %i1, 1, %g1                                
 200d7c8:	c2 27 60 04 	st  %g1, [ %i5 + 4 ]                           
    next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;               
 200d7cc:	c8 00 e0 04 	ld  [ %g3 + 4 ], %g4                           
)                                                                     
{                                                                     
  Heap_Block *next = block_before->next;                              
                                                                      
  new_block->next = next;                                             
  new_block->prev = block_before;                                     
 200d7d0:	f0 27 60 0c 	st  %i0, [ %i5 + 0xc ]                         
    next_block->prev_size = block_size;                               
                                                                      
    /* Statistics */                                                  
    ++stats->free_blocks;                                             
 200d7d4:	c2 06 20 38 	ld  [ %i0 + 0x38 ], %g1                        
  Heap_Block *new_block                                               
)                                                                     
{                                                                     
  Heap_Block *next = block_before->next;                              
                                                                      
  new_block->next = next;                                             
 200d7d8:	c4 27 60 08 	st  %g2, [ %i5 + 8 ]                           
  new_block->prev = block_before;                                     
  block_before->next = new_block;                                     
  next->prev = new_block;                                             
 200d7dc:	fa 20 a0 0c 	st  %i5, [ %g2 + 0xc ]                         
  } 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;               
 200d7e0:	84 09 3f fe 	and  %g4, -2, %g2                              
    next_block->prev_size = block_size;                               
 200d7e4:	f2 26 40 1d 	st  %i1, [ %i1 + %i5 ]                         
  } 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;               
 200d7e8:	c4 20 e0 04 	st  %g2, [ %g3 + 4 ]                           
    next_block->prev_size = block_size;                               
                                                                      
    /* Statistics */                                                  
    ++stats->free_blocks;                                             
    if ( stats->max_free_blocks < stats->free_blocks ) {              
 200d7ec:	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;                                             
 200d7f0:	82 00 60 01 	inc  %g1                                       
{                                                                     
  Heap_Block *next = block_before->next;                              
                                                                      
  new_block->next = next;                                             
  new_block->prev = block_before;                                     
  block_before->next = new_block;                                     
 200d7f4:	fa 26 20 08 	st  %i5, [ %i0 + 8 ]                           
    if ( stats->max_free_blocks < stats->free_blocks ) {              
 200d7f8:	80 a0 40 02 	cmp  %g1, %g2                                  
 200d7fc:	08 bf ff e5 	bleu  200d790 <_Heap_Free+0x138>               
 200d800:	c2 26 20 38 	st  %g1, [ %i0 + 0x38 ]                        
      stats->max_free_blocks = stats->free_blocks;                    
 200d804:	10 bf ff e3 	b  200d790 <_Heap_Free+0x138>                  
 200d808:	c2 26 20 3c 	st  %g1, [ %i0 + 0x3c ]                        
      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;        
 200d80c:	82 12 e0 01 	or  %o3, 1, %g1                                
 200d810:	c2 23 e0 04 	st  %g1, [ %o7 + 4 ]                           
      next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;             
 200d814:	c2 00 e0 04 	ld  [ %g3 + 4 ], %g1                           
      next_block->prev_size = size;                                   
 200d818:	d6 26 40 1d 	st  %o3, [ %i1 + %i5 ]                         
      _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;             
 200d81c:	82 08 7f fe 	and  %g1, -2, %g1                              
 200d820:	10 bf ff dc 	b  200d790 <_Heap_Free+0x138>                  
 200d824:	c2 20 e0 04 	st  %g1, [ %g3 + 4 ]                           
                                                                      

0200dd40 <_Heap_Get_information>: void _Heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) {
 200dd40:	9d e3 bf a0 	save  %sp, -96, %sp                            
  Heap_Block *the_block = the_heap->first_block;                      
 200dd44:	fa 06 20 20 	ld  [ %i0 + 0x20 ], %i5                        
  Heap_Block *const end = the_heap->last_block;                       
 200dd48:	f8 06 20 24 	ld  [ %i0 + 0x24 ], %i4                        
                                                                      
  memset(the_info, 0, sizeof(*the_info));                             
 200dd4c:	92 10 20 00 	clr  %o1                                       
 200dd50:	90 10 00 19 	mov  %i1, %o0                                  
 200dd54:	40 00 0a 63 	call  20106e0 <memset>                         
 200dd58:	94 10 20 18 	mov  0x18, %o2                                 
                                                                      
  while ( the_block != end ) {                                        
 200dd5c:	80 a7 40 1c 	cmp  %i5, %i4                                  
 200dd60:	02 80 00 17 	be  200ddbc <_Heap_Get_information+0x7c>       <== NEVER TAKEN
 200dd64:	01 00 00 00 	nop                                            
 200dd68:	c6 07 60 04 	ld  [ %i5 + 4 ], %g3                           
    - 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;                
 200dd6c:	84 08 ff fe 	and  %g3, -2, %g2                              
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
 200dd70:	ba 07 40 02 	add  %i5, %g2, %i5                             
    if ( info->largest < the_size )                                   
      info->largest = the_size;                                       
                                                                      
    the_block = next_block;                                           
  }                                                                   
}                                                                     
 200dd74:	c6 07 60 04 	ld  [ %i5 + 4 ], %g3                           
  while ( the_block != end ) {                                        
    uintptr_t const     the_size = _Heap_Block_size(the_block);       
    Heap_Block *const  next_block = _Heap_Block_at(the_block, the_size);
    Heap_Information  *info;                                          
                                                                      
    if ( _Heap_Is_prev_used(next_block) )                             
 200dd78:	80 88 e0 01 	btst  1, %g3                                   
 200dd7c:	02 80 00 03 	be  200dd88 <_Heap_Get_information+0x48>       
 200dd80:	82 10 00 19 	mov  %i1, %g1                                  
      info = &the_info->Used;                                         
 200dd84:	82 06 60 0c 	add  %i1, 0xc, %g1                             
    else                                                              
      info = &the_info->Free;                                         
                                                                      
    info->number++;                                                   
 200dd88:	de 00 40 00 	ld  [ %g1 ], %o7                               
    info->total += the_size;                                          
 200dd8c:	f0 00 60 08 	ld  [ %g1 + 8 ], %i0                           
    if ( info->largest < the_size )                                   
 200dd90:	c8 00 60 04 	ld  [ %g1 + 4 ], %g4                           
    if ( _Heap_Is_prev_used(next_block) )                             
      info = &the_info->Used;                                         
    else                                                              
      info = &the_info->Free;                                         
                                                                      
    info->number++;                                                   
 200dd94:	9e 03 e0 01 	inc  %o7                                       
    info->total += the_size;                                          
 200dd98:	b0 06 00 02 	add  %i0, %g2, %i0                             
    if ( _Heap_Is_prev_used(next_block) )                             
      info = &the_info->Used;                                         
    else                                                              
      info = &the_info->Free;                                         
                                                                      
    info->number++;                                                   
 200dd9c:	de 20 40 00 	st  %o7, [ %g1 ]                               
    info->total += the_size;                                          
    if ( info->largest < the_size )                                   
 200dda0:	80 a1 00 02 	cmp  %g4, %g2                                  
 200dda4:	1a 80 00 03 	bcc  200ddb0 <_Heap_Get_information+0x70>      
 200dda8:	f0 20 60 08 	st  %i0, [ %g1 + 8 ]                           
      info->largest = the_size;                                       
 200ddac:	c4 20 60 04 	st  %g2, [ %g1 + 4 ]                           
  Heap_Block *the_block = the_heap->first_block;                      
  Heap_Block *const end = the_heap->last_block;                       
                                                                      
  memset(the_info, 0, sizeof(*the_info));                             
                                                                      
  while ( the_block != end ) {                                        
 200ddb0:	80 a7 00 1d 	cmp  %i4, %i5                                  
 200ddb4:	12 bf ff ef 	bne  200dd70 <_Heap_Get_information+0x30>      
 200ddb8:	84 08 ff fe 	and  %g3, -2, %g2                              
 200ddbc:	81 c7 e0 08 	ret                                            
 200ddc0:	81 e8 00 00 	restore                                        
                                                                      

0201aae8 <_Heap_Size_of_alloc_area>: bool _Heap_Size_of_alloc_area( Heap_Control *heap, void *alloc_begin_ptr, uintptr_t *alloc_size ) {
 201aae8:	9d e3 bf a0 	save  %sp, -96, %sp                            
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
 201aaec:	d2 06 20 10 	ld  [ %i0 + 0x10 ], %o1                        
 201aaf0:	7f ff f7 d2 	call  2018a38 <.urem>                          
 201aaf4:	90 10 00 19 	mov  %i1, %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           
 201aaf8:	c2 06 20 20 	ld  [ %i0 + 0x20 ], %g1                        
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
 201aafc:	84 06 7f f8 	add  %i1, -8, %g2                              
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
    - HEAP_BLOCK_HEADER_SIZE);                                        
 201ab00:	84 20 80 08 	sub  %g2, %o0, %g2                             
  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;             
 201ab04:	80 a0 80 01 	cmp  %g2, %g1                                  
 201ab08:	0a 80 00 16 	bcs  201ab60 <_Heap_Size_of_alloc_area+0x78>   
 201ab0c:	86 10 20 00 	clr  %g3                                       
 201ab10:	c8 06 20 24 	ld  [ %i0 + 0x24 ], %g4                        
 201ab14:	80 a0 80 04 	cmp  %g2, %g4                                  
 201ab18:	18 80 00 13 	bgu  201ab64 <_Heap_Size_of_alloc_area+0x7c>   <== NEVER TAKEN
 201ab1c:	b0 08 e0 01 	and  %g3, 1, %i0                               
    - 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;                
 201ab20:	f0 00 a0 04 	ld  [ %g2 + 4 ], %i0                           
 201ab24:	b0 0e 3f fe 	and  %i0, -2, %i0                              
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
 201ab28:	84 06 00 02 	add  %i0, %g2, %g2                             
  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;             
 201ab2c:	80 a0 40 02 	cmp  %g1, %g2                                  
 201ab30:	18 80 00 0d 	bgu  201ab64 <_Heap_Size_of_alloc_area+0x7c>   <== NEVER TAKEN
 201ab34:	b0 08 e0 01 	and  %g3, 1, %i0                               
 201ab38:	80 a1 00 02 	cmp  %g4, %g2                                  
 201ab3c:	0a 80 00 0a 	bcs  201ab64 <_Heap_Size_of_alloc_area+0x7c>   <== NEVER TAKEN
 201ab40:	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;                 
 201ab44:	c2 00 a0 04 	ld  [ %g2 + 4 ], %g1                           
  block_size = _Heap_Block_size( block );                             
  next_block = _Heap_Block_at( block, block_size );                   
                                                                      
  if (                                                                
    !_Heap_Is_block_in_heap( heap, next_block )                       
      || !_Heap_Is_prev_used( next_block )                            
 201ab48:	80 88 60 01 	btst  1, %g1                                   
 201ab4c:	02 80 00 06 	be  201ab64 <_Heap_Size_of_alloc_area+0x7c>    <== NEVER TAKEN
 201ab50:	84 20 80 19 	sub  %g2, %i1, %g2                             
    return false;                                                     
  }                                                                   
                                                                      
  *alloc_size = (uintptr_t) next_block + HEAP_ALLOC_BONUS - alloc_begin;
                                                                      
  return true;                                                        
 201ab54:	86 10 20 01 	mov  1, %g3                                    
      || !_Heap_Is_prev_used( next_block )                            
  ) {                                                                 
    return false;                                                     
  }                                                                   
                                                                      
  *alloc_size = (uintptr_t) next_block + HEAP_ALLOC_BONUS - alloc_begin;
 201ab58:	84 00 a0 04 	add  %g2, 4, %g2                               
 201ab5c:	c4 26 80 00 	st  %g2, [ %i2 ]                               
                                                                      
  return true;                                                        
}                                                                     
 201ab60:	b0 08 e0 01 	and  %g3, 1, %i0                               
 201ab64:	81 c7 e0 08 	ret                                            
 201ab68:	81 e8 00 00 	restore                                        
                                                                      

02008744 <_Heap_Walk>: bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) {
 2008744:	9d e3 bf 80 	save  %sp, -128, %sp                           
  uintptr_t const min_block_size = heap->min_block_size;              
  Heap_Block *const first_block = heap->first_block;                  
  Heap_Block *const last_block = heap->last_block;                    
  Heap_Block *block = first_block;                                    
  Heap_Walk_printer printer = dump ?                                  
    _Heap_Walk_print : _Heap_Walk_print_nothing;                      
 2008748:	3b 00 80 21 	sethi  %hi(0x2008400), %i5                     
  Heap_Control *heap,                                                 
  int source,                                                         
  bool dump                                                           
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
 200874c:	e0 06 20 10 	ld  [ %i0 + 0x10 ], %l0                        
  uintptr_t const min_block_size = heap->min_block_size;              
 2008750:	f6 06 20 14 	ld  [ %i0 + 0x14 ], %i3                        
  Heap_Block *const first_block = heap->first_block;                  
 2008754:	f8 06 20 20 	ld  [ %i0 + 0x20 ], %i4                        
  Heap_Block *const last_block = heap->last_block;                    
 2008758:	e2 06 20 24 	ld  [ %i0 + 0x24 ], %l1                        
  Heap_Block *block = first_block;                                    
  Heap_Walk_printer printer = dump ?                                  
    _Heap_Walk_print : _Heap_Walk_print_nothing;                      
 200875c:	80 a6 a0 00 	cmp  %i2, 0                                    
 2008760:	02 80 00 04 	be  2008770 <_Heap_Walk+0x2c>                  
 2008764:	ba 17 62 d8 	or  %i5, 0x2d8, %i5                            
 2008768:	3b 00 80 21 	sethi  %hi(0x2008400), %i5                     
 200876c:	ba 17 62 e0 	or  %i5, 0x2e0, %i5	! 20086e0 <_Heap_Walk_print>
                                                                      
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
 2008770:	03 00 80 65 	sethi  %hi(0x2019400), %g1                     
 2008774:	c4 00 60 94 	ld  [ %g1 + 0x94 ], %g2	! 2019494 <_System_state_Current>
 2008778:	80 a0 a0 03 	cmp  %g2, 3                                    
 200877c:	02 80 00 05 	be  2008790 <_Heap_Walk+0x4c>                  
 2008780:	82 10 20 01 	mov  1, %g1                                    
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
 2008784:	b0 08 60 01 	and  %g1, 1, %i0                               
 2008788:	81 c7 e0 08 	ret                                            
 200878c:	81 e8 00 00 	restore                                        
  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)(                                                         
 2008790:	da 06 20 18 	ld  [ %i0 + 0x18 ], %o5                        
 2008794:	c6 06 20 1c 	ld  [ %i0 + 0x1c ], %g3                        
 2008798:	c4 06 20 08 	ld  [ %i0 + 8 ], %g2                           
 200879c:	c2 06 20 0c 	ld  [ %i0 + 0xc ], %g1                         
 20087a0:	90 10 00 19 	mov  %i1, %o0                                  
 20087a4:	c6 23 a0 5c 	st  %g3, [ %sp + 0x5c ]                        
 20087a8:	f8 23 a0 60 	st  %i4, [ %sp + 0x60 ]                        
 20087ac:	e2 23 a0 64 	st  %l1, [ %sp + 0x64 ]                        
 20087b0:	c4 23 a0 68 	st  %g2, [ %sp + 0x68 ]                        
 20087b4:	c2 23 a0 6c 	st  %g1, [ %sp + 0x6c ]                        
 20087b8:	92 10 20 00 	clr  %o1                                       
 20087bc:	96 10 00 10 	mov  %l0, %o3                                  
 20087c0:	15 00 80 5a 	sethi  %hi(0x2016800), %o2                     
 20087c4:	98 10 00 1b 	mov  %i3, %o4                                  
 20087c8:	9f c7 40 00 	call  %i5                                      
 20087cc:	94 12 a0 00 	mov  %o2, %o2                                  
    heap->area_begin, heap->area_end,                                 
    first_block, last_block,                                          
    first_free_block, last_free_block                                 
  );                                                                  
                                                                      
  if ( page_size == 0 ) {                                             
 20087d0:	80 a4 20 00 	cmp  %l0, 0                                    
 20087d4:	02 80 00 28 	be  2008874 <_Heap_Walk+0x130>                 
 20087d8:	80 8c 20 07 	btst  7, %l0                                   
    (*printer)( source, true, "page size is zero\n" );                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Addresses_Is_aligned( (void *) page_size ) ) {               
 20087dc:	12 80 00 2d 	bne  2008890 <_Heap_Walk+0x14c>                
 20087e0:	90 10 00 1b 	mov  %i3, %o0                                  
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
 20087e4:	7f ff e4 ba 	call  2001acc <.urem>                          
 20087e8:	92 10 00 10 	mov  %l0, %o1                                  
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_aligned( min_block_size, page_size ) ) {             
 20087ec:	80 a2 20 00 	cmp  %o0, 0                                    
 20087f0:	12 80 00 30 	bne  20088b0 <_Heap_Walk+0x16c>                
 20087f4:	90 07 20 08 	add  %i4, 8, %o0                               
 20087f8:	7f ff e4 b5 	call  2001acc <.urem>                          
 20087fc:	92 10 00 10 	mov  %l0, %o1                                  
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if (                                                                
 2008800:	80 a2 20 00 	cmp  %o0, 0                                    
 2008804:	32 80 00 33 	bne,a   20088d0 <_Heap_Walk+0x18c>             
 2008808:	90 10 00 19 	mov  %i1, %o0                                  
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
 200880c:	e8 07 20 04 	ld  [ %i4 + 4 ], %l4                           
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_prev_used( first_block ) ) {                         
 2008810:	80 8d 20 01 	btst  1, %l4                                   
 2008814:	22 80 00 36 	be,a   20088ec <_Heap_Walk+0x1a8>              
 2008818:	90 10 00 19 	mov  %i1, %o0                                  
    - 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;                
 200881c:	c2 04 60 04 	ld  [ %l1 + 4 ], %g1                           
 2008820:	82 08 7f fe 	and  %g1, -2, %g1                              
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
 2008824:	82 04 40 01 	add  %l1, %g1, %g1                             
  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;                 
 2008828:	c4 00 60 04 	ld  [ %g1 + 4 ], %g2                           
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( _Heap_Is_free( last_block ) ) {                                
 200882c:	80 88 a0 01 	btst  1, %g2                                   
 2008830:	02 80 00 0a 	be  2008858 <_Heap_Walk+0x114>                 
 2008834:	80 a7 00 01 	cmp  %i4, %g1                                  
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if (                                                                
 2008838:	02 80 00 33 	be  2008904 <_Heap_Walk+0x1c0>                 
 200883c:	90 10 00 19 	mov  %i1, %o0                                  
    _Heap_Block_at( last_block, _Heap_Block_size( last_block ) ) != first_block
  ) {                                                                 
    (*printer)(                                                       
 2008840:	92 10 20 01 	mov  1, %o1                                    
 2008844:	15 00 80 5a 	sethi  %hi(0x2016800), %o2                     
 2008848:	9f c7 40 00 	call  %i5                                      
 200884c:	94 12 a1 78 	or  %o2, 0x178, %o2	! 2016978 <_Status_Object_name_errors_to_status+0x1f0>
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
 2008850:	10 bf ff cd 	b  2008784 <_Heap_Walk+0x40>                   
 2008854:	82 10 20 00 	clr  %g1                                       
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( _Heap_Is_free( last_block ) ) {                                
    (*printer)(                                                       
 2008858:	90 10 00 19 	mov  %i1, %o0                                  
 200885c:	92 10 20 01 	mov  1, %o1                                    
 2008860:	15 00 80 5a 	sethi  %hi(0x2016800), %o2                     
 2008864:	9f c7 40 00 	call  %i5                                      
 2008868:	94 12 a1 60 	or  %o2, 0x160, %o2	! 2016960 <_Status_Object_name_errors_to_status+0x1d8>
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
 200886c:	10 bf ff c6 	b  2008784 <_Heap_Walk+0x40>                   
 2008870:	82 10 20 00 	clr  %g1                                       
    first_block, last_block,                                          
    first_free_block, last_free_block                                 
  );                                                                  
                                                                      
  if ( page_size == 0 ) {                                             
    (*printer)( source, true, "page size is zero\n" );                
 2008874:	90 10 00 19 	mov  %i1, %o0                                  
 2008878:	92 10 20 01 	mov  1, %o1                                    
 200887c:	15 00 80 5a 	sethi  %hi(0x2016800), %o2                     
 2008880:	9f c7 40 00 	call  %i5                                      
 2008884:	94 12 a0 98 	or  %o2, 0x98, %o2	! 2016898 <_Status_Object_name_errors_to_status+0x110>
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
 2008888:	10 bf ff bf 	b  2008784 <_Heap_Walk+0x40>                   
 200888c:	82 10 20 00 	clr  %g1                                       
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Addresses_Is_aligned( (void *) page_size ) ) {               
    (*printer)(                                                       
 2008890:	90 10 00 19 	mov  %i1, %o0                                  
 2008894:	92 10 20 01 	mov  1, %o1                                    
 2008898:	96 10 00 10 	mov  %l0, %o3                                  
 200889c:	15 00 80 5a 	sethi  %hi(0x2016800), %o2                     
 20088a0:	9f c7 40 00 	call  %i5                                      
 20088a4:	94 12 a0 b0 	or  %o2, 0xb0, %o2	! 20168b0 <_Status_Object_name_errors_to_status+0x128>
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
 20088a8:	10 bf ff b7 	b  2008784 <_Heap_Walk+0x40>                   
 20088ac:	82 10 20 00 	clr  %g1                                       
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_aligned( min_block_size, page_size ) ) {             
    (*printer)(                                                       
 20088b0:	90 10 00 19 	mov  %i1, %o0                                  
 20088b4:	92 10 20 01 	mov  1, %o1                                    
 20088b8:	96 10 00 1b 	mov  %i3, %o3                                  
 20088bc:	15 00 80 5a 	sethi  %hi(0x2016800), %o2                     
 20088c0:	9f c7 40 00 	call  %i5                                      
 20088c4:	94 12 a0 d0 	or  %o2, 0xd0, %o2	! 20168d0 <_Status_Object_name_errors_to_status+0x148>
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
 20088c8:	10 bf ff af 	b  2008784 <_Heap_Walk+0x40>                   
 20088cc:	82 10 20 00 	clr  %g1                                       
  }                                                                   
                                                                      
  if (                                                                
    !_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size )
  ) {                                                                 
    (*printer)(                                                       
 20088d0:	92 10 20 01 	mov  1, %o1                                    
 20088d4:	96 10 00 1c 	mov  %i4, %o3                                  
 20088d8:	15 00 80 5a 	sethi  %hi(0x2016800), %o2                     
 20088dc:	9f c7 40 00 	call  %i5                                      
 20088e0:	94 12 a0 f8 	or  %o2, 0xf8, %o2	! 20168f8 <_Status_Object_name_errors_to_status+0x170>
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
 20088e4:	10 bf ff a8 	b  2008784 <_Heap_Walk+0x40>                   
 20088e8:	82 10 20 00 	clr  %g1                                       
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_prev_used( first_block ) ) {                         
    (*printer)(                                                       
 20088ec:	92 10 20 01 	mov  1, %o1                                    
 20088f0:	15 00 80 5a 	sethi  %hi(0x2016800), %o2                     
 20088f4:	9f c7 40 00 	call  %i5                                      
 20088f8:	94 12 a1 30 	or  %o2, 0x130, %o2	! 2016930 <_Status_Object_name_errors_to_status+0x1a8>
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
 20088fc:	10 bf ff a2 	b  2008784 <_Heap_Walk+0x40>                   
 2008900:	82 10 20 00 	clr  %g1                                       
  return &heap->free_list;                                            
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{                                                                     
  return _Heap_Free_list_head(heap)->next;                            
 2008904:	f4 06 20 08 	ld  [ %i0 + 8 ], %i2                           
  int source,                                                         
  Heap_Walk_printer printer,                                          
  Heap_Control *heap                                                  
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
 2008908:	ea 06 20 10 	ld  [ %i0 + 0x10 ], %l5                        
  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 ) {                            
 200890c:	80 a6 00 1a 	cmp  %i0, %i2                                  
 2008910:	02 80 00 0d 	be  2008944 <_Heap_Walk+0x200>                 
 2008914:	c2 06 20 20 	ld  [ %i0 + 0x20 ], %g1                        
  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;             
 2008918:	80 a0 40 1a 	cmp  %g1, %i2                                  
 200891c:	28 80 00 bc 	bleu,a   2008c0c <_Heap_Walk+0x4c8>            <== ALWAYS TAKEN
 2008920:	e6 06 20 24 	ld  [ %i0 + 0x24 ], %l3                        
    if ( !_Heap_Is_block_in_heap( heap, free_block ) ) {              
      (*printer)(                                                     
 2008924:	90 10 00 19 	mov  %i1, %o0                                  <== NOT EXECUTED
 2008928:	92 10 20 01 	mov  1, %o1                                    
 200892c:	96 10 00 1a 	mov  %i2, %o3                                  
 2008930:	15 00 80 5a 	sethi  %hi(0x2016800), %o2                     
 2008934:	9f c7 40 00 	call  %i5                                      
 2008938:	94 12 a1 a8 	or  %o2, 0x1a8, %o2	! 20169a8 <_Status_Object_name_errors_to_status+0x220>
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
 200893c:	10 bf ff 92 	b  2008784 <_Heap_Walk+0x40>                   
 2008940:	82 10 20 00 	clr  %g1                                       
        "block 0x%08x: size %u\n",                                    
        block,                                                        
        block_size                                                    
      );                                                              
    } else {                                                          
      (*printer)(                                                     
 2008944:	2d 00 80 5a 	sethi  %hi(0x2016800), %l6                     
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
      if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
        return false;                                                 
      }                                                               
    } else if (prev_used) {                                           
      (*printer)(                                                     
 2008948:	2f 00 80 5a 	sethi  %hi(0x2016800), %l7                     
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( _Heap_Is_used( free_block ) ) {                              
 200894c:	a4 10 00 1c 	mov  %i4, %l2                                  
        "block 0x%08x: size %u\n",                                    
        block,                                                        
        block_size                                                    
      );                                                              
    } else {                                                          
      (*printer)(                                                     
 2008950:	ac 15 a3 d8 	or  %l6, 0x3d8, %l6                            
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
      if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
        return false;                                                 
      }                                                               
    } else if (prev_used) {                                           
      (*printer)(                                                     
 2008954:	ae 15 e3 c0 	or  %l7, 0x3c0, %l7                            
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
    block->next,                                                      
    block->next == last_free_block ?                                  
      " (= last free)"                                                
        : (block->next == free_list_tail ? " (= tail)" : "")          
 2008958:	2b 00 80 5a 	sethi  %hi(0x2016800), %l5                     
    - 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;                
 200895c:	a6 0d 3f fe 	and  %l4, -2, %l3                              
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
 2008960:	b4 04 c0 12 	add  %l3, %l2, %i2                             
  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;             
 2008964:	80 a0 40 1a 	cmp  %g1, %i2                                  
 2008968:	28 80 00 0b 	bleu,a   2008994 <_Heap_Walk+0x250>            <== ALWAYS TAKEN
 200896c:	c2 06 20 24 	ld  [ %i0 + 0x24 ], %g1                        
    Heap_Block *const next_block = _Heap_Block_at( block, block_size );
    uintptr_t const next_block_begin = (uintptr_t) next_block;        
    bool const is_not_last_block = block != last_block;               
                                                                      
    if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {              
      (*printer)(                                                     
 2008970:	90 10 00 19 	mov  %i1, %o0                                  <== NOT EXECUTED
 2008974:	92 10 20 01 	mov  1, %o1                                    
 2008978:	96 10 00 12 	mov  %l2, %o3                                  
 200897c:	15 00 80 5a 	sethi  %hi(0x2016800), %o2                     
 2008980:	98 10 00 1a 	mov  %i2, %o4                                  
 2008984:	9f c7 40 00 	call  %i5                                      
 2008988:	94 12 a2 50 	or  %o2, 0x250, %o2                            
        "block 0x%08x: next block 0x%08x not in heap\n",              
        block,                                                        
        next_block                                                    
      );                                                              
                                                                      
      return false;                                                   
 200898c:	10 bf ff 7e 	b  2008784 <_Heap_Walk+0x40>                   
 2008990:	82 10 20 00 	clr  %g1                                       
 2008994:	80 a0 40 1a 	cmp  %g1, %i2                                  
 2008998:	0a bf ff f7 	bcs  2008974 <_Heap_Walk+0x230>                
 200899c:	90 10 00 19 	mov  %i1, %o0                                  
    uintptr_t const block_begin = (uintptr_t) block;                  
    uintptr_t const block_size = _Heap_Block_size( block );           
    bool const prev_used = _Heap_Is_prev_used( block );               
    Heap_Block *const next_block = _Heap_Block_at( block, block_size );
    uintptr_t const next_block_begin = (uintptr_t) next_block;        
    bool const is_not_last_block = block != last_block;               
 20089a0:	82 1c 80 11 	xor  %l2, %l1, %g1                             
 20089a4:	80 a0 00 01 	cmp  %g0, %g1                                  
 20089a8:	82 40 20 00 	addx  %g0, 0, %g1                              
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
 20089ac:	90 10 00 13 	mov  %l3, %o0                                  
 20089b0:	c2 27 bf fc 	st  %g1, [ %fp + -4 ]                          
 20089b4:	7f ff e4 46 	call  2001acc <.urem>                          
 20089b8:	92 10 00 10 	mov  %l0, %o1                                  
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_aligned( block_size, page_size ) && is_not_last_block ) {
 20089bc:	80 a2 20 00 	cmp  %o0, 0                                    
 20089c0:	02 80 00 05 	be  20089d4 <_Heap_Walk+0x290>                 
 20089c4:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 20089c8:	80 88 60 ff 	btst  0xff, %g1                                
 20089cc:	12 80 00 76 	bne  2008ba4 <_Heap_Walk+0x460>                
 20089d0:	90 10 00 19 	mov  %i1, %o0                                  
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( block_size < min_block_size && is_not_last_block ) {         
 20089d4:	80 a6 c0 13 	cmp  %i3, %l3                                  
 20089d8:	08 80 00 05 	bleu  20089ec <_Heap_Walk+0x2a8>               
 20089dc:	80 a4 80 1a 	cmp  %l2, %i2                                  
 20089e0:	80 88 60 ff 	btst  0xff, %g1                                
 20089e4:	12 80 00 78 	bne  2008bc4 <_Heap_Walk+0x480>                <== ALWAYS TAKEN
 20089e8:	80 a4 80 1a 	cmp  %l2, %i2                                  
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( next_block_begin <= block_begin && is_not_last_block ) {     
 20089ec:	2a 80 00 06 	bcs,a   2008a04 <_Heap_Walk+0x2c0>             
 20089f0:	c2 06 a0 04 	ld  [ %i2 + 4 ], %g1                           
 20089f4:	80 88 60 ff 	btst  0xff, %g1                                
 20089f8:	12 80 00 7d 	bne  2008bec <_Heap_Walk+0x4a8>                
 20089fc:	90 10 00 19 	mov  %i1, %o0                                  
  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;                 
 2008a00:	c2 06 a0 04 	ld  [ %i2 + 4 ], %g1                           
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
 2008a04:	80 88 60 01 	btst  1, %g1                                   
 2008a08:	02 80 00 19 	be  2008a6c <_Heap_Walk+0x328>                 
 2008a0c:	a8 0d 20 01 	and  %l4, 1, %l4                               
      if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
        return false;                                                 
      }                                                               
    } else if (prev_used) {                                           
 2008a10:	80 a5 20 00 	cmp  %l4, 0                                    
 2008a14:	22 80 00 0e 	be,a   2008a4c <_Heap_Walk+0x308>              
 2008a18:	da 04 80 00 	ld  [ %l2 ], %o5                               
      (*printer)(                                                     
 2008a1c:	90 10 00 19 	mov  %i1, %o0                                  
 2008a20:	92 10 20 00 	clr  %o1                                       
 2008a24:	94 10 00 17 	mov  %l7, %o2                                  
 2008a28:	96 10 00 12 	mov  %l2, %o3                                  
 2008a2c:	9f c7 40 00 	call  %i5                                      
 2008a30:	98 10 00 13 	mov  %l3, %o4                                  
        block->prev_size                                              
      );                                                              
    }                                                                 
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
 2008a34:	80 a7 00 1a 	cmp  %i4, %i2                                  
 2008a38:	02 80 00 42 	be  2008b40 <_Heap_Walk+0x3fc>                 
 2008a3c:	a4 10 00 1a 	mov  %i2, %l2                                  
 2008a40:	e8 06 a0 04 	ld  [ %i2 + 4 ], %l4                           
 2008a44:	10 bf ff c6 	b  200895c <_Heap_Walk+0x218>                  
 2008a48:	c2 06 20 20 	ld  [ %i0 + 0x20 ], %g1                        
        "block 0x%08x: size %u\n",                                    
        block,                                                        
        block_size                                                    
      );                                                              
    } else {                                                          
      (*printer)(                                                     
 2008a4c:	96 10 00 12 	mov  %l2, %o3                                  
 2008a50:	90 10 00 19 	mov  %i1, %o0                                  
 2008a54:	92 10 20 00 	clr  %o1                                       
 2008a58:	94 10 00 16 	mov  %l6, %o2                                  
 2008a5c:	9f c7 40 00 	call  %i5                                      
 2008a60:	98 10 00 13 	mov  %l3, %o4                                  
        block->prev_size                                              
      );                                                              
    }                                                                 
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
 2008a64:	10 bf ff f5 	b  2008a38 <_Heap_Walk+0x2f4>                  
 2008a68:	80 a7 00 1a 	cmp  %i4, %i2                                  
    false,                                                            
    "block 0x%08x: size %u, prev 0x%08x%s, next 0x%08x%s\n",          
    block,                                                            
    block_size,                                                       
    block->prev,                                                      
    block->prev == first_free_block ?                                 
 2008a6c:	da 04 a0 0c 	ld  [ %l2 + 0xc ], %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)(                                                         
 2008a70:	c2 06 20 08 	ld  [ %i0 + 8 ], %g1                           
 2008a74:	05 00 80 59 	sethi  %hi(0x2016400), %g2                     
  return _Heap_Free_list_head(heap)->next;                            
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_last( Heap_Control *heap )
{                                                                     
  return _Heap_Free_list_tail(heap)->prev;                            
 2008a78:	c8 06 20 0c 	ld  [ %i0 + 0xc ], %g4                         
 2008a7c:	80 a0 40 0d 	cmp  %g1, %o5                                  
 2008a80:	02 80 00 05 	be  2008a94 <_Heap_Walk+0x350>                 
 2008a84:	86 10 a3 c0 	or  %g2, 0x3c0, %g3                            
    block,                                                            
    block_size,                                                       
    block->prev,                                                      
    block->prev == first_free_block ?                                 
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
 2008a88:	80 a6 00 0d 	cmp  %i0, %o5                                  
 2008a8c:	02 80 00 3c 	be  2008b7c <_Heap_Walk+0x438>                 
 2008a90:	86 15 63 88 	or  %l5, 0x388, %g3                            
    block->next,                                                      
    block->next == last_free_block ?                                  
 2008a94:	c2 04 a0 08 	ld  [ %l2 + 8 ], %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)(                                                         
 2008a98:	1f 00 80 59 	sethi  %hi(0x2016400), %o7                     
 2008a9c:	80 a1 00 01 	cmp  %g4, %g1                                  
 2008aa0:	02 80 00 05 	be  2008ab4 <_Heap_Walk+0x370>                 
 2008aa4:	84 13 e3 e0 	or  %o7, 0x3e0, %g2                            
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
    block->next,                                                      
    block->next == last_free_block ?                                  
      " (= last free)"                                                
        : (block->next == free_list_tail ? " (= tail)" : "")          
 2008aa8:	80 a6 00 01 	cmp  %i0, %g1                                  
 2008aac:	02 80 00 31 	be  2008b70 <_Heap_Walk+0x42c>                 
 2008ab0:	84 15 63 88 	or  %l5, 0x388, %g2                            
  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)(                                                         
 2008ab4:	c6 23 a0 5c 	st  %g3, [ %sp + 0x5c ]                        
 2008ab8:	c2 23 a0 60 	st  %g1, [ %sp + 0x60 ]                        
 2008abc:	c4 23 a0 64 	st  %g2, [ %sp + 0x64 ]                        
 2008ac0:	90 10 00 19 	mov  %i1, %o0                                  
 2008ac4:	92 10 20 00 	clr  %o1                                       
 2008ac8:	15 00 80 5a 	sethi  %hi(0x2016800), %o2                     
 2008acc:	96 10 00 12 	mov  %l2, %o3                                  
 2008ad0:	94 12 a3 18 	or  %o2, 0x318, %o2                            
 2008ad4:	9f c7 40 00 	call  %i5                                      
 2008ad8:	98 10 00 13 	mov  %l3, %o4                                  
    block->next == last_free_block ?                                  
      " (= last free)"                                                
        : (block->next == free_list_tail ? " (= tail)" : "")          
  );                                                                  
                                                                      
  if ( block_size != next_block->prev_size ) {                        
 2008adc:	da 06 80 00 	ld  [ %i2 ], %o5                               
 2008ae0:	80 a4 c0 0d 	cmp  %l3, %o5                                  
 2008ae4:	12 80 00 19 	bne  2008b48 <_Heap_Walk+0x404>                
 2008ae8:	80 a5 20 00 	cmp  %l4, 0                                    
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !prev_used ) {                                                 
 2008aec:	02 80 00 27 	be  2008b88 <_Heap_Walk+0x444>                 
 2008af0:	90 10 00 19 	mov  %i1, %o0                                  
  return &heap->free_list;                                            
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{                                                                     
  return _Heap_Free_list_head(heap)->next;                            
 2008af4:	c2 06 20 08 	ld  [ %i0 + 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 ) {                            
 2008af8:	80 a6 00 01 	cmp  %i0, %g1                                  
 2008afc:	02 80 00 0b 	be  2008b28 <_Heap_Walk+0x3e4>                 <== NEVER TAKEN
 2008b00:	92 10 20 01 	mov  1, %o1                                    
    if ( free_block == block ) {                                      
 2008b04:	80 a4 80 01 	cmp  %l2, %g1                                  
 2008b08:	02 bf ff cc 	be  2008a38 <_Heap_Walk+0x2f4>                 
 2008b0c:	80 a7 00 1a 	cmp  %i4, %i2                                  
      return true;                                                    
    }                                                                 
    free_block = free_block->next;                                    
 2008b10:	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 ) {                            
 2008b14:	80 a6 00 01 	cmp  %i0, %g1                                  
 2008b18:	12 bf ff fc 	bne  2008b08 <_Heap_Walk+0x3c4>                
 2008b1c:	80 a4 80 01 	cmp  %l2, %g1                                  
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Walk_is_in_free_list( heap, block ) ) {                 
    (*printer)(                                                       
 2008b20:	90 10 00 19 	mov  %i1, %o0                                  
 2008b24:	92 10 20 01 	mov  1, %o1                                    
 2008b28:	96 10 00 12 	mov  %l2, %o3                                  
 2008b2c:	15 00 80 5b 	sethi  %hi(0x2016c00), %o2                     
 2008b30:	9f c7 40 00 	call  %i5                                      
 2008b34:	94 12 a0 00 	mov  %o2, %o2	! 2016c00 <_Status_Object_name_errors_to_status+0x478>
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
      if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
        return false;                                                 
 2008b38:	10 bf ff 13 	b  2008784 <_Heap_Walk+0x40>                   
 2008b3c:	82 10 20 00 	clr  %g1                                       
    }                                                                 
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
 2008b40:	10 bf ff 11 	b  2008784 <_Heap_Walk+0x40>                   
 2008b44:	82 10 20 01 	mov  1, %g1                                    
      " (= last free)"                                                
        : (block->next == free_list_tail ? " (= tail)" : "")          
  );                                                                  
                                                                      
  if ( block_size != next_block->prev_size ) {                        
    (*printer)(                                                       
 2008b48:	f4 23 a0 5c 	st  %i2, [ %sp + 0x5c ]                        
 2008b4c:	90 10 00 19 	mov  %i1, %o0                                  
 2008b50:	92 10 20 01 	mov  1, %o1                                    
 2008b54:	96 10 00 12 	mov  %l2, %o3                                  
 2008b58:	15 00 80 5a 	sethi  %hi(0x2016800), %o2                     
 2008b5c:	98 10 00 13 	mov  %l3, %o4                                  
 2008b60:	9f c7 40 00 	call  %i5                                      
 2008b64:	94 12 a3 50 	or  %o2, 0x350, %o2                            
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
      if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
        return false;                                                 
 2008b68:	10 bf ff 07 	b  2008784 <_Heap_Walk+0x40>                   
 2008b6c:	82 10 20 00 	clr  %g1                                       
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
    block->next,                                                      
    block->next == last_free_block ?                                  
      " (= last free)"                                                
        : (block->next == free_list_tail ? " (= tail)" : "")          
 2008b70:	05 00 80 59 	sethi  %hi(0x2016400), %g2                     
 2008b74:	10 bf ff d0 	b  2008ab4 <_Heap_Walk+0x370>                  
 2008b78:	84 10 a3 f0 	or  %g2, 0x3f0, %g2	! 20167f0 <_Status_Object_name_errors_to_status+0x68>
    block,                                                            
    block_size,                                                       
    block->prev,                                                      
    block->prev == first_free_block ?                                 
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
 2008b7c:	07 00 80 59 	sethi  %hi(0x2016400), %g3                     
 2008b80:	10 bf ff c5 	b  2008a94 <_Heap_Walk+0x350>                  
 2008b84:	86 10 e3 d0 	or  %g3, 0x3d0, %g3	! 20167d0 <_Status_Object_name_errors_to_status+0x48>
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !prev_used ) {                                                 
    (*printer)(                                                       
 2008b88:	92 10 20 01 	mov  1, %o1                                    
 2008b8c:	96 10 00 12 	mov  %l2, %o3                                  
 2008b90:	15 00 80 5a 	sethi  %hi(0x2016800), %o2                     
 2008b94:	9f c7 40 00 	call  %i5                                      
 2008b98:	94 12 a3 90 	or  %o2, 0x390, %o2	! 2016b90 <_Status_Object_name_errors_to_status+0x408>
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
      if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
        return false;                                                 
 2008b9c:	10 bf fe fa 	b  2008784 <_Heap_Walk+0x40>                   
 2008ba0:	82 10 20 00 	clr  %g1                                       
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_aligned( block_size, page_size ) && is_not_last_block ) {
      (*printer)(                                                     
 2008ba4:	92 10 20 01 	mov  1, %o1                                    
 2008ba8:	96 10 00 12 	mov  %l2, %o3                                  
 2008bac:	15 00 80 5a 	sethi  %hi(0x2016800), %o2                     
 2008bb0:	98 10 00 13 	mov  %l3, %o4                                  
 2008bb4:	9f c7 40 00 	call  %i5                                      
 2008bb8:	94 12 a2 80 	or  %o2, 0x280, %o2                            
        "block 0x%08x: block size %u not page aligned\n",             
        block,                                                        
        block_size                                                    
      );                                                              
                                                                      
      return false;                                                   
 2008bbc:	10 bf fe f2 	b  2008784 <_Heap_Walk+0x40>                   
 2008bc0:	82 10 20 00 	clr  %g1                                       
    }                                                                 
                                                                      
    if ( block_size < min_block_size && is_not_last_block ) {         
      (*printer)(                                                     
 2008bc4:	90 10 00 19 	mov  %i1, %o0                                  
 2008bc8:	92 10 20 01 	mov  1, %o1                                    
 2008bcc:	96 10 00 12 	mov  %l2, %o3                                  
 2008bd0:	15 00 80 5a 	sethi  %hi(0x2016800), %o2                     
 2008bd4:	98 10 00 13 	mov  %l3, %o4                                  
 2008bd8:	94 12 a2 b0 	or  %o2, 0x2b0, %o2                            
 2008bdc:	9f c7 40 00 	call  %i5                                      
 2008be0:	9a 10 00 1b 	mov  %i3, %o5                                  
        block,                                                        
        block_size,                                                   
        min_block_size                                                
      );                                                              
                                                                      
      return false;                                                   
 2008be4:	10 bf fe e8 	b  2008784 <_Heap_Walk+0x40>                   
 2008be8:	82 10 20 00 	clr  %g1                                       
    }                                                                 
                                                                      
    if ( next_block_begin <= block_begin && is_not_last_block ) {     
      (*printer)(                                                     
 2008bec:	92 10 20 01 	mov  1, %o1                                    
 2008bf0:	96 10 00 12 	mov  %l2, %o3                                  
 2008bf4:	15 00 80 5a 	sethi  %hi(0x2016800), %o2                     
 2008bf8:	98 10 00 1a 	mov  %i2, %o4                                  
 2008bfc:	9f c7 40 00 	call  %i5                                      
 2008c00:	94 12 a2 e0 	or  %o2, 0x2e0, %o2                            
        "block 0x%08x: next block 0x%08x is not a successor\n",       
        block,                                                        
        next_block                                                    
      );                                                              
                                                                      
      return false;                                                   
 2008c04:	10 bf fe e0 	b  2008784 <_Heap_Walk+0x40>                   
 2008c08:	82 10 20 00 	clr  %g1                                       
  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;             
 2008c0c:	80 a6 80 13 	cmp  %i2, %l3                                  
 2008c10:	18 bf ff 46 	bgu  2008928 <_Heap_Walk+0x1e4>                <== NEVER TAKEN
 2008c14:	90 10 00 19 	mov  %i1, %o0                                  
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
 2008c18:	c2 27 bf fc 	st  %g1, [ %fp + -4 ]                          
 2008c1c:	90 06 a0 08 	add  %i2, 8, %o0                               
 2008c20:	7f ff e3 ab 	call  2001acc <.urem>                          
 2008c24:	92 10 00 15 	mov  %l5, %o1                                  
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if (                                                              
 2008c28:	80 a2 20 00 	cmp  %o0, 0                                    
 2008c2c:	12 80 00 36 	bne  2008d04 <_Heap_Walk+0x5c0>                <== NEVER TAKEN
 2008c30:	c2 07 bf fc 	ld  [ %fp + -4 ], %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;                
 2008c34:	c4 06 a0 04 	ld  [ %i2 + 4 ], %g2                           
 2008c38:	84 08 bf fe 	and  %g2, -2, %g2                              
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
 2008c3c:	84 06 80 02 	add  %i2, %g2, %g2                             
  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;                 
 2008c40:	c4 00 a0 04 	ld  [ %g2 + 4 ], %g2                           
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( _Heap_Is_used( free_block ) ) {                              
 2008c44:	80 88 a0 01 	btst  1, %g2                                   
 2008c48:	12 80 00 27 	bne  2008ce4 <_Heap_Walk+0x5a0>                <== NEVER TAKEN
 2008c4c:	84 10 00 18 	mov  %i0, %g2                                  
 2008c50:	10 80 00 19 	b  2008cb4 <_Heap_Walk+0x570>                  
 2008c54:	a4 10 00 1a 	mov  %i2, %l2                                  
  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 ) {                            
 2008c58:	80 a6 00 1a 	cmp  %i0, %i2                                  
 2008c5c:	02 bf ff 3a 	be  2008944 <_Heap_Walk+0x200>                 
 2008c60:	80 a6 80 01 	cmp  %i2, %g1                                  
  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;             
 2008c64:	0a bf ff 31 	bcs  2008928 <_Heap_Walk+0x1e4>                
 2008c68:	90 10 00 19 	mov  %i1, %o0                                  
 2008c6c:	80 a6 80 13 	cmp  %i2, %l3                                  
 2008c70:	18 bf ff 2f 	bgu  200892c <_Heap_Walk+0x1e8>                <== NEVER TAKEN
 2008c74:	92 10 20 01 	mov  1, %o1                                    
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
 2008c78:	c2 27 bf fc 	st  %g1, [ %fp + -4 ]                          
 2008c7c:	90 06 a0 08 	add  %i2, 8, %o0                               
 2008c80:	7f ff e3 93 	call  2001acc <.urem>                          
 2008c84:	92 10 00 15 	mov  %l5, %o1                                  
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if (                                                              
 2008c88:	80 a2 20 00 	cmp  %o0, 0                                    
 2008c8c:	12 80 00 1e 	bne  2008d04 <_Heap_Walk+0x5c0>                
 2008c90:	c2 07 bf fc 	ld  [ %fp + -4 ], %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;                
 2008c94:	c6 06 a0 04 	ld  [ %i2 + 4 ], %g3                           
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( _Heap_Is_used( free_block ) ) {                              
 2008c98:	84 10 00 12 	mov  %l2, %g2                                  
 2008c9c:	86 08 ff fe 	and  %g3, -2, %g3                              
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
 2008ca0:	86 06 80 03 	add  %i2, %g3, %g3                             
  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;                 
 2008ca4:	c6 00 e0 04 	ld  [ %g3 + 4 ], %g3                           
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( _Heap_Is_used( free_block ) ) {                              
 2008ca8:	80 88 e0 01 	btst  1, %g3                                   
 2008cac:	12 80 00 0e 	bne  2008ce4 <_Heap_Walk+0x5a0>                
 2008cb0:	a4 10 00 1a 	mov  %i2, %l2                                  
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( free_block->prev != prev_block ) {                           
 2008cb4:	d8 06 a0 0c 	ld  [ %i2 + 0xc ], %o4                         
 2008cb8:	80 a3 00 02 	cmp  %o4, %g2                                  
 2008cbc:	22 bf ff e7 	be,a   2008c58 <_Heap_Walk+0x514>              
 2008cc0:	f4 06 a0 08 	ld  [ %i2 + 8 ], %i2                           
      (*printer)(                                                     
 2008cc4:	90 10 00 19 	mov  %i1, %o0                                  
 2008cc8:	92 10 20 01 	mov  1, %o1                                    
 2008ccc:	96 10 00 1a 	mov  %i2, %o3                                  
 2008cd0:	15 00 80 5a 	sethi  %hi(0x2016800), %o2                     
 2008cd4:	9f c7 40 00 	call  %i5                                      
 2008cd8:	94 12 a2 18 	or  %o2, 0x218, %o2	! 2016a18 <_Status_Object_name_errors_to_status+0x290>
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
 2008cdc:	10 bf fe aa 	b  2008784 <_Heap_Walk+0x40>                   
 2008ce0:	82 10 20 00 	clr  %g1                                       
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( _Heap_Is_used( free_block ) ) {                              
      (*printer)(                                                     
 2008ce4:	90 10 00 19 	mov  %i1, %o0                                  
 2008ce8:	92 10 20 01 	mov  1, %o1                                    
 2008cec:	96 10 00 1a 	mov  %i2, %o3                                  
 2008cf0:	15 00 80 5a 	sethi  %hi(0x2016800), %o2                     
 2008cf4:	9f c7 40 00 	call  %i5                                      
 2008cf8:	94 12 a1 f8 	or  %o2, 0x1f8, %o2	! 20169f8 <_Status_Object_name_errors_to_status+0x270>
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
 2008cfc:	10 bf fe a2 	b  2008784 <_Heap_Walk+0x40>                   
 2008d00:	82 10 20 00 	clr  %g1                                       
    }                                                                 
                                                                      
    if (                                                              
      !_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size )
    ) {                                                               
      (*printer)(                                                     
 2008d04:	90 10 00 19 	mov  %i1, %o0                                  
 2008d08:	92 10 20 01 	mov  1, %o1                                    
 2008d0c:	96 10 00 1a 	mov  %i2, %o3                                  
 2008d10:	15 00 80 5a 	sethi  %hi(0x2016800), %o2                     
 2008d14:	9f c7 40 00 	call  %i5                                      
 2008d18:	94 12 a1 c8 	or  %o2, 0x1c8, %o2	! 20169c8 <_Status_Object_name_errors_to_status+0x240>
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
 2008d1c:	10 bf fe 9a 	b  2008784 <_Heap_Walk+0x40>                   
 2008d20:	82 10 20 00 	clr  %g1                                       
                                                                      

02007140 <_IO_Initialize_all_drivers>: * * Output Parameters: NONE */ void _IO_Initialize_all_drivers( void ) {
 2007140:	9d e3 bf a0 	save  %sp, -96, %sp                            
   rtems_device_major_number major;                                   
                                                                      
   for ( major=0 ; major < _IO_Number_of_drivers ; major ++ )         
 2007144:	39 00 80 78 	sethi  %hi(0x201e000), %i4                     
 2007148:	c2 07 23 44 	ld  [ %i4 + 0x344 ], %g1	! 201e344 <_IO_Number_of_drivers>
 200714c:	80 a0 60 00 	cmp  %g1, 0                                    
 2007150:	02 80 00 0c 	be  2007180 <_IO_Initialize_all_drivers+0x40>  <== NEVER TAKEN
 2007154:	ba 10 20 00 	clr  %i5                                       
 2007158:	b8 17 23 44 	or  %i4, 0x344, %i4                            
     (void) rtems_io_initialize( major, 0, NULL );                    
 200715c:	90 10 00 1d 	mov  %i5, %o0                                  
 2007160:	92 10 20 00 	clr  %o1                                       
 2007164:	40 00 18 0c 	call  200d194 <rtems_io_initialize>            
 2007168:	94 10 20 00 	clr  %o2                                       
                                                                      
void _IO_Initialize_all_drivers( void )                               
{                                                                     
   rtems_device_major_number major;                                   
                                                                      
   for ( major=0 ; major < _IO_Number_of_drivers ; major ++ )         
 200716c:	c2 07 00 00 	ld  [ %i4 ], %g1                               
 2007170:	ba 07 60 01 	inc  %i5                                       
 2007174:	80 a0 40 1d 	cmp  %g1, %i5                                  
 2007178:	18 bf ff fa 	bgu  2007160 <_IO_Initialize_all_drivers+0x20> 
 200717c:	90 10 00 1d 	mov  %i5, %o0                                  
 2007180:	81 c7 e0 08 	ret                                            
 2007184:	81 e8 00 00 	restore                                        
                                                                      

02007074 <_IO_Manager_initialization>: * workspace. * */ void _IO_Manager_initialization(void) {
 2007074:	9d e3 bf a0 	save  %sp, -96, %sp                            
  uint32_t                    index;                                  
  rtems_driver_address_table *driver_table;                           
  uint32_t                    drivers_in_table;                       
  uint32_t                    number_of_drivers;                      
                                                                      
  driver_table      = Configuration.Device_driver_table;              
 2007078:	03 00 80 73 	sethi  %hi(0x201cc00), %g1                     
 200707c:	82 10 60 6c 	or  %g1, 0x6c, %g1	! 201cc6c <Configuration>   
  drivers_in_table  = Configuration.number_of_device_drivers;         
 2007080:	f8 00 60 30 	ld  [ %g1 + 0x30 ], %i4                        
  number_of_drivers = Configuration.maximum_drivers;                  
 2007084:	f2 00 60 2c 	ld  [ %g1 + 0x2c ], %i1                        
                                                                      
  /*                                                                  
   *  If the user claims there are less drivers than are actually in  
   *  the table, then let's just go with the table's count.           
   */                                                                 
  if ( number_of_drivers <= drivers_in_table )                        
 2007088:	80 a7 00 19 	cmp  %i4, %i1                                  
 200708c:	0a 80 00 08 	bcs  20070ac <_IO_Manager_initialization+0x38> 
 2007090:	fa 00 60 34 	ld  [ %g1 + 0x34 ], %i5                        
   *  If the maximum number of driver is the same as the number in the
   *  table, then we do not have to copy the driver table.  They can't
   *  register any dynamically.                                       
   */                                                                 
  if ( number_of_drivers == drivers_in_table ) {                      
    _IO_Driver_address_table = driver_table;                          
 2007094:	03 00 80 78 	sethi  %hi(0x201e000), %g1                     
 2007098:	fa 20 63 48 	st  %i5, [ %g1 + 0x348 ]	! 201e348 <_IO_Driver_address_table>
    _IO_Number_of_drivers = number_of_drivers;                        
 200709c:	03 00 80 78 	sethi  %hi(0x201e000), %g1                     
 20070a0:	f8 20 63 44 	st  %i4, [ %g1 + 0x344 ]	! 201e344 <_IO_Number_of_drivers>
    return;                                                           
 20070a4:	81 c7 e0 08 	ret                                            
 20070a8:	81 e8 00 00 	restore                                        
   *  have to allocate a new driver table and copy theirs to it.      
   */                                                                 
                                                                      
  _IO_Driver_address_table = (rtems_driver_address_table *)           
      _Workspace_Allocate_or_fatal_error(                             
        sizeof( rtems_driver_address_table ) * ( number_of_drivers )  
 20070ac:	83 2e 60 03 	sll  %i1, 3, %g1                               
 20070b0:	b5 2e 60 05 	sll  %i1, 5, %i2                               
 20070b4:	b4 26 80 01 	sub  %i2, %g1, %i2                             
   *  The application requested extra slots in the driver table, so we
   *  have to allocate a new driver table and copy theirs to it.      
   */                                                                 
                                                                      
  _IO_Driver_address_table = (rtems_driver_address_table *)           
      _Workspace_Allocate_or_fatal_error(                             
 20070b8:	40 00 0d 68 	call  200a658 <_Workspace_Allocate_or_fatal_error>
 20070bc:	90 10 00 1a 	mov  %i2, %o0                                  
        sizeof( rtems_driver_address_table ) * ( number_of_drivers )  
      );                                                              
  _IO_Number_of_drivers = number_of_drivers;                          
 20070c0:	03 00 80 78 	sethi  %hi(0x201e000), %g1                     
  /*                                                                  
   *  The application requested extra slots in the driver table, so we
   *  have to allocate a new driver table and copy theirs to it.      
   */                                                                 
                                                                      
  _IO_Driver_address_table = (rtems_driver_address_table *)           
 20070c4:	37 00 80 78 	sethi  %hi(0x201e000), %i3                     
      _Workspace_Allocate_or_fatal_error(                             
        sizeof( rtems_driver_address_table ) * ( number_of_drivers )  
      );                                                              
  _IO_Number_of_drivers = number_of_drivers;                          
 20070c8:	f2 20 63 44 	st  %i1, [ %g1 + 0x344 ]                       
  /*                                                                  
   *  The application requested extra slots in the driver table, so we
   *  have to allocate a new driver table and copy theirs to it.      
   */                                                                 
                                                                      
  _IO_Driver_address_table = (rtems_driver_address_table *)           
 20070cc:	d0 26 e3 48 	st  %o0, [ %i3 + 0x348 ]                       
      _Workspace_Allocate_or_fatal_error(                             
        sizeof( rtems_driver_address_table ) * ( number_of_drivers )  
      );                                                              
  _IO_Number_of_drivers = number_of_drivers;                          
                                                                      
  memset(                                                             
 20070d0:	92 10 20 00 	clr  %o1                                       
 20070d4:	40 00 24 cb 	call  2010400 <memset>                         
 20070d8:	94 10 00 1a 	mov  %i2, %o2                                  
    _IO_Driver_address_table, 0,                                      
    sizeof( rtems_driver_address_table ) * ( number_of_drivers )      
  );                                                                  
                                                                      
  for ( index = 0 ; index < drivers_in_table ; index++ )              
 20070dc:	80 a7 20 00 	cmp  %i4, 0                                    
 20070e0:	02 bf ff f1 	be  20070a4 <_IO_Manager_initialization+0x30>  <== NEVER TAKEN
 20070e4:	f6 06 e3 48 	ld  [ %i3 + 0x348 ], %i3                       
 20070e8:	82 10 20 00 	clr  %g1                                       
 20070ec:	88 10 20 00 	clr  %g4                                       
    _IO_Driver_address_table[index] = driver_table[index];            
 20070f0:	c4 07 40 01 	ld  [ %i5 + %g1 ], %g2                         
 20070f4:	86 07 40 01 	add  %i5, %g1, %g3                             
 20070f8:	c4 26 c0 01 	st  %g2, [ %i3 + %g1 ]                         
 20070fc:	f4 00 e0 04 	ld  [ %g3 + 4 ], %i2                           
 2007100:	84 06 c0 01 	add  %i3, %g1, %g2                             
 2007104:	f4 20 a0 04 	st  %i2, [ %g2 + 4 ]                           
 2007108:	f4 00 e0 08 	ld  [ %g3 + 8 ], %i2                           
  memset(                                                             
    _IO_Driver_address_table, 0,                                      
    sizeof( rtems_driver_address_table ) * ( number_of_drivers )      
  );                                                                  
                                                                      
  for ( index = 0 ; index < drivers_in_table ; index++ )              
 200710c:	88 01 20 01 	inc  %g4                                       
    _IO_Driver_address_table[index] = driver_table[index];            
 2007110:	f4 20 a0 08 	st  %i2, [ %g2 + 8 ]                           
 2007114:	f4 00 e0 0c 	ld  [ %g3 + 0xc ], %i2                         
  memset(                                                             
    _IO_Driver_address_table, 0,                                      
    sizeof( rtems_driver_address_table ) * ( number_of_drivers )      
  );                                                                  
                                                                      
  for ( index = 0 ; index < drivers_in_table ; index++ )              
 2007118:	82 00 60 18 	add  %g1, 0x18, %g1                            
    _IO_Driver_address_table[index] = driver_table[index];            
 200711c:	f4 20 a0 0c 	st  %i2, [ %g2 + 0xc ]                         
 2007120:	f4 00 e0 10 	ld  [ %g3 + 0x10 ], %i2                        
  memset(                                                             
    _IO_Driver_address_table, 0,                                      
    sizeof( rtems_driver_address_table ) * ( number_of_drivers )      
  );                                                                  
                                                                      
  for ( index = 0 ; index < drivers_in_table ; index++ )              
 2007124:	80 a1 00 1c 	cmp  %g4, %i4                                  
    _IO_Driver_address_table[index] = driver_table[index];            
 2007128:	f4 20 a0 10 	st  %i2, [ %g2 + 0x10 ]                        
 200712c:	c6 00 e0 14 	ld  [ %g3 + 0x14 ], %g3                        
  memset(                                                             
    _IO_Driver_address_table, 0,                                      
    sizeof( rtems_driver_address_table ) * ( number_of_drivers )      
  );                                                                  
                                                                      
  for ( index = 0 ; index < drivers_in_table ; index++ )              
 2007130:	12 bf ff f0 	bne  20070f0 <_IO_Manager_initialization+0x7c> 
 2007134:	c6 20 a0 14 	st  %g3, [ %g2 + 0x14 ]                        
 2007138:	81 c7 e0 08 	ret                                            
 200713c:	81 e8 00 00 	restore                                        
                                                                      

02007ea4 <_Objects_Allocate>: */ Objects_Control *_Objects_Allocate( Objects_Information *information ) {
 2007ea4:	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 )                                       
 2007ea8:	c2 06 20 18 	ld  [ %i0 + 0x18 ], %g1                        
 */                                                                   
                                                                      
Objects_Control *_Objects_Allocate(                                   
  Objects_Information *information                                    
)                                                                     
{                                                                     
 2007eac:	ba 10 00 18 	mov  %i0, %i5                                  
   *  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 )                                       
 2007eb0:	80 a0 60 00 	cmp  %g1, 0                                    
 2007eb4:	02 80 00 19 	be  2007f18 <_Objects_Allocate+0x74>           <== NEVER TAKEN
 2007eb8:	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 );
 2007ebc:	b8 07 60 20 	add  %i5, 0x20, %i4                            
 2007ec0:	7f ff fd 63 	call  200744c <_Chain_Get>                     
 2007ec4:	90 10 00 1c 	mov  %i4, %o0                                  
                                                                      
  if ( information->auto_extend ) {                                   
 2007ec8:	c2 0f 60 12 	ldub  [ %i5 + 0x12 ], %g1                      
 2007ecc:	80 a0 60 00 	cmp  %g1, 0                                    
 2007ed0:	02 80 00 12 	be  2007f18 <_Objects_Allocate+0x74>           
 2007ed4:	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 ) {                                              
 2007ed8:	80 a2 20 00 	cmp  %o0, 0                                    
 2007edc:	02 80 00 11 	be  2007f20 <_Objects_Allocate+0x7c>           
 2007ee0:	01 00 00 00 	nop                                            
    }                                                                 
                                                                      
    if ( the_object ) {                                               
      uint32_t   block;                                               
                                                                      
      block = (uint32_t) _Objects_Get_index( the_object->id ) -       
 2007ee4:	c2 17 60 0a 	lduh  [ %i5 + 0xa ], %g1                       
 2007ee8:	d0 16 20 0a 	lduh  [ %i0 + 0xa ], %o0                       
              _Objects_Get_index( information->minimum_id );          
      block /= information->allocation_size;                          
 2007eec:	d2 17 60 14 	lduh  [ %i5 + 0x14 ], %o1                      
 2007ef0:	40 00 42 26 	call  2018788 <.udiv>                          
 2007ef4:	90 22 00 01 	sub  %o0, %g1, %o0                             
                                                                      
      information->inactive_per_block[ block ]--;                     
 2007ef8:	c2 07 60 30 	ld  [ %i5 + 0x30 ], %g1                        
 2007efc:	91 2a 20 02 	sll  %o0, 2, %o0                               
 2007f00:	c6 00 40 08 	ld  [ %g1 + %o0 ], %g3                         
      information->inactive--;                                        
 2007f04:	c4 17 60 2c 	lduh  [ %i5 + 0x2c ], %g2                      
                                                                      
      block = (uint32_t) _Objects_Get_index( the_object->id ) -       
              _Objects_Get_index( information->minimum_id );          
      block /= information->allocation_size;                          
                                                                      
      information->inactive_per_block[ block ]--;                     
 2007f08:	86 00 ff ff 	add  %g3, -1, %g3                              
 2007f0c:	c6 20 40 08 	st  %g3, [ %g1 + %o0 ]                         
      information->inactive--;                                        
 2007f10:	82 00 bf ff 	add  %g2, -1, %g1                              
 2007f14:	c2 37 60 2c 	sth  %g1, [ %i5 + 0x2c ]                       
    );                                                                
  }                                                                   
#endif                                                                
                                                                      
  return the_object;                                                  
}                                                                     
 2007f18:	81 c7 e0 08 	ret                                            
 2007f1c:	81 e8 00 00 	restore                                        
     *  If the list is empty then we are out of objects and need to   
     *  extend information base.                                      
     */                                                               
                                                                      
    if ( !the_object ) {                                              
      _Objects_Extend_information( information );                     
 2007f20:	40 00 00 10 	call  2007f60 <_Objects_Extend_information>    
 2007f24:	90 10 00 1d 	mov  %i5, %o0                                  
      the_object =  (Objects_Control *) _Chain_Get( &information->Inactive );
 2007f28:	7f ff fd 49 	call  200744c <_Chain_Get>                     
 2007f2c:	90 10 00 1c 	mov  %i4, %o0                                  
    }                                                                 
                                                                      
    if ( the_object ) {                                               
 2007f30:	b0 92 20 00 	orcc  %o0, 0, %i0                              
 2007f34:	32 bf ff ed 	bne,a   2007ee8 <_Objects_Allocate+0x44>       
 2007f38:	c2 17 60 0a 	lduh  [ %i5 + 0xa ], %g1                       
    );                                                                
  }                                                                   
#endif                                                                
                                                                      
  return the_object;                                                  
}                                                                     
 2007f3c:	81 c7 e0 08 	ret                                            
 2007f40:	81 e8 00 00 	restore                                        
                                                                      

02007f60 <_Objects_Extend_information>: */ void _Objects_Extend_information( Objects_Information *information ) {
 2007f60:	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 )                           
 2007f64:	e0 06 20 34 	ld  [ %i0 + 0x34 ], %l0                        
  /*                                                                  
   *  Search for a free block of indexes. If we do NOT need to allocate or
   *  extend the block table, then we will change do_extend.          
   */                                                                 
  do_extend     = true;                                               
  minimum_index = _Objects_Get_index( information->minimum_id );      
 2007f68:	f8 16 20 0a 	lduh  [ %i0 + 0xa ], %i4                       
  index_base    = minimum_index;                                      
  block         = 0;                                                  
                                                                      
  /* if ( information->maximum < minimum_index ) */                   
  if ( information->object_blocks == NULL )                           
 2007f6c:	80 a4 20 00 	cmp  %l0, 0                                    
 2007f70:	02 80 00 a6 	be  2008208 <_Objects_Extend_information+0x2a8>
 2007f74:	f2 16 20 10 	lduh  [ %i0 + 0x10 ], %i1                      
    block_count = 0;                                                  
  else {                                                              
    block_count = information->maximum / information->allocation_size;
 2007f78:	f4 16 20 14 	lduh  [ %i0 + 0x14 ], %i2                      
 2007f7c:	b3 2e 60 10 	sll  %i1, 0x10, %i1                            
 2007f80:	92 10 00 1a 	mov  %i2, %o1                                  
 2007f84:	40 00 42 01 	call  2018788 <.udiv>                          
 2007f88:	91 36 60 10 	srl  %i1, 0x10, %o0                            
 2007f8c:	a7 2a 20 10 	sll  %o0, 0x10, %l3                            
 2007f90:	a7 34 e0 10 	srl  %l3, 0x10, %l3                            
                                                                      
    for ( ; block < block_count; block++ ) {                          
 2007f94:	80 a4 e0 00 	cmp  %l3, 0                                    
 2007f98:	02 80 00 a3 	be  2008224 <_Objects_Extend_information+0x2c4><== NEVER TAKEN
 2007f9c:	90 10 00 1a 	mov  %i2, %o0                                  
      if ( information->object_blocks[ block ] == NULL ) {            
 2007fa0:	c2 04 00 00 	ld  [ %l0 ], %g1                               
  /*                                                                  
   *  Search for a free block of indexes. If we do NOT need to allocate or
   *  extend the block table, then we will change do_extend.          
   */                                                                 
  do_extend     = true;                                               
  minimum_index = _Objects_Get_index( information->minimum_id );      
 2007fa4:	ba 10 00 1c 	mov  %i4, %i5                                  
    block_count = 0;                                                  
  else {                                                              
    block_count = information->maximum / information->allocation_size;
                                                                      
    for ( ; block < block_count; block++ ) {                          
      if ( information->object_blocks[ block ] == NULL ) {            
 2007fa8:	80 a0 60 00 	cmp  %g1, 0                                    
 2007fac:	12 80 00 08 	bne  2007fcc <_Objects_Extend_information+0x6c><== ALWAYS TAKEN
 2007fb0:	b6 10 20 00 	clr  %i3                                       
        do_extend = false;                                            
 2007fb4:	10 80 00 a0 	b  2008234 <_Objects_Extend_information+0x2d4> <== NOT EXECUTED
 2007fb8:	b4 10 20 00 	clr  %i2                                       <== NOT EXECUTED
    block_count = 0;                                                  
  else {                                                              
    block_count = information->maximum / information->allocation_size;
                                                                      
    for ( ; block < block_count; block++ ) {                          
      if ( information->object_blocks[ block ] == NULL ) {            
 2007fbc:	c2 04 00 01 	ld  [ %l0 + %g1 ], %g1                         
 2007fc0:	80 a0 60 00 	cmp  %g1, 0                                    
 2007fc4:	22 80 00 08 	be,a   2007fe4 <_Objects_Extend_information+0x84>
 2007fc8:	b4 10 20 00 	clr  %i2                                       
  if ( information->object_blocks == NULL )                           
    block_count = 0;                                                  
  else {                                                              
    block_count = information->maximum / information->allocation_size;
                                                                      
    for ( ; block < block_count; block++ ) {                          
 2007fcc:	b6 06 e0 01 	inc  %i3                                       
      if ( information->object_blocks[ block ] == NULL ) {            
        do_extend = false;                                            
        break;                                                        
      } else                                                          
        index_base += information->allocation_size;                   
 2007fd0:	ba 07 40 1a 	add  %i5, %i2, %i5                             
  if ( information->object_blocks == NULL )                           
    block_count = 0;                                                  
  else {                                                              
    block_count = information->maximum / information->allocation_size;
                                                                      
    for ( ; block < block_count; block++ ) {                          
 2007fd4:	80 a4 c0 1b 	cmp  %l3, %i3                                  
 2007fd8:	18 bf ff f9 	bgu  2007fbc <_Objects_Extend_information+0x5c>
 2007fdc:	83 2e e0 02 	sll  %i3, 2, %g1                               
                                                                      
  /*                                                                  
   *  Search for a free block of indexes. If we do NOT need to allocate or
   *  extend the block table, then we will change do_extend.          
   */                                                                 
  do_extend     = true;                                               
 2007fe0:	b4 10 20 01 	mov  1, %i2                                    
      } else                                                          
        index_base += information->allocation_size;                   
    }                                                                 
  }                                                                   
                                                                      
  maximum = (uint32_t) information->maximum + information->allocation_size;
 2007fe4:	b3 36 60 10 	srl  %i1, 0x10, %i1                            
  /*                                                                  
   *  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 ) {                           
 2007fe8:	03 00 00 3f 	sethi  %hi(0xfc00), %g1                        
      } else                                                          
        index_base += information->allocation_size;                   
    }                                                                 
  }                                                                   
                                                                      
  maximum = (uint32_t) information->maximum + information->allocation_size;
 2007fec:	b2 06 40 08 	add  %i1, %o0, %i1                             
  /*                                                                  
   *  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 ) {                           
 2007ff0:	82 10 63 ff 	or  %g1, 0x3ff, %g1                            
 2007ff4:	80 a6 40 01 	cmp  %i1, %g1                                  
 2007ff8:	18 80 00 93 	bgu  2008244 <_Objects_Extend_information+0x2e4>
 2007ffc:	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;      
 2008000:	40 00 41 a8 	call  20186a0 <.umul>                          
 2008004:	d2 06 20 18 	ld  [ %i0 + 0x18 ], %o1                        
  if ( information->auto_extend ) {                                   
 2008008:	c2 0e 20 12 	ldub  [ %i0 + 0x12 ], %g1                      
 200800c:	80 a0 60 00 	cmp  %g1, 0                                    
 2008010:	02 80 00 6a 	be  20081b8 <_Objects_Extend_information+0x258>
 2008014:	01 00 00 00 	nop                                            
    new_object_block = _Workspace_Allocate( block_size );             
 2008018:	40 00 09 82 	call  200a620 <_Workspace_Allocate>            
 200801c:	01 00 00 00 	nop                                            
    if ( !new_object_block )                                          
 2008020:	a0 92 20 00 	orcc  %o0, 0, %l0                              
 2008024:	02 80 00 88 	be  2008244 <_Objects_Extend_information+0x2e4>
 2008028:	01 00 00 00 	nop                                            
  }                                                                   
                                                                      
  /*                                                                  
   *  Do we need to grow the tables?                                  
   */                                                                 
  if ( do_extend ) {                                                  
 200802c:	80 8e a0 ff 	btst  0xff, %i2                                
 2008030:	22 80 00 3f 	be,a   200812c <_Objects_Extend_information+0x1cc>
 2008034:	c2 06 20 34 	ld  [ %i0 + 0x34 ], %g1                        
     */                                                               
                                                                      
    /*                                                                
     *  Up the block count and maximum                                
     */                                                               
    block_count++;                                                    
 2008038:	b4 04 e0 01 	add  %l3, 1, %i2                               
                                                                      
    /*                                                                
     *  Allocate the tables and break it up.                          
     */                                                               
    block_size = block_count *                                        
           (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) +
 200803c:	91 2e a0 01 	sll  %i2, 1, %o0                               
 2008040:	90 02 00 1a 	add  %o0, %i2, %o0                             
          ((maximum + minimum_index) * sizeof(Objects_Control *));    
 2008044:	90 06 40 08 	add  %i1, %o0, %o0                             
                                                                      
    /*                                                                
     *  Allocate the tables and break it up.                          
     */                                                               
    block_size = block_count *                                        
           (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) +
 2008048:	90 02 00 1c 	add  %o0, %i4, %o0                             
          ((maximum + minimum_index) * sizeof(Objects_Control *));    
    object_blocks = (void**) _Workspace_Allocate( block_size );       
 200804c:	40 00 09 75 	call  200a620 <_Workspace_Allocate>            
 2008050:	91 2a 20 02 	sll  %o0, 2, %o0                               
                                                                      
    if ( !object_blocks ) {                                           
 2008054:	a2 92 20 00 	orcc  %o0, 0, %l1                              
 2008058:	02 80 00 79 	be  200823c <_Objects_Extend_information+0x2dc>
 200805c:	b5 2e a0 02 	sll  %i2, 2, %i2                               
     *  Take the block count down. Saves all the (block_count - 1)    
     *  in the copies.                                                
     */                                                               
    block_count--;                                                    
                                                                      
    if ( information->maximum > minimum_index ) {                     
 2008060:	c2 16 20 10 	lduh  [ %i0 + 0x10 ], %g1                      
 2008064:	80 a7 00 01 	cmp  %i4, %g1                                  
 2008068:	a4 04 40 1a 	add  %l1, %i2, %l2                             
 200806c:	0a 80 00 57 	bcs  20081c8 <_Objects_Extend_information+0x268>
 2008070:	b4 04 80 1a 	add  %l2, %i2, %i2                             
    } else {                                                          
                                                                      
      /*                                                              
       *  Deal with the special case of the 0 to minimum_index        
       */                                                             
      for ( index = 0; index < minimum_index; index++ ) {             
 2008074:	80 a7 20 00 	cmp  %i4, 0                                    
 2008078:	02 80 00 07 	be  2008094 <_Objects_Extend_information+0x134><== NEVER TAKEN
 200807c:	82 10 20 00 	clr  %g1                                       
 *    information     - object information table                      
 *                                                                    
 *  Output parameters:  NONE                                          
 */                                                                   
                                                                      
void _Objects_Extend_information(                                     
 2008080:	85 28 60 02 	sll  %g1, 2, %g2                               
    } else {                                                          
                                                                      
      /*                                                              
       *  Deal with the special case of the 0 to minimum_index        
       */                                                             
      for ( index = 0; index < minimum_index; index++ ) {             
 2008084:	82 00 60 01 	inc  %g1                                       
 2008088:	80 a7 00 01 	cmp  %i4, %g1                                  
 200808c:	18 bf ff fd 	bgu  2008080 <_Objects_Extend_information+0x120><== NEVER TAKEN
 2008090:	c0 20 80 1a 	clr  [ %g2 + %i2 ]                             
 2008094:	a7 2c e0 02 	sll  %l3, 2, %l3                               
     */                                                               
    object_blocks[block_count] = NULL;                                
    inactive_per_block[block_count] = 0;                              
                                                                      
    for ( index=index_base ;                                          
          index < ( information->allocation_size + index_base );      
 2008098:	c6 16 20 14 	lduh  [ %i0 + 0x14 ], %g3                      
    }                                                                 
                                                                      
    /*                                                                
     *  Initialise the new entries in the table.                      
     */                                                               
    object_blocks[block_count] = NULL;                                
 200809c:	c0 24 40 13 	clr  [ %l1 + %l3 ]                             
    inactive_per_block[block_count] = 0;                              
                                                                      
    for ( index=index_base ;                                          
          index < ( information->allocation_size + index_base );      
 20080a0:	86 07 40 03 	add  %i5, %g3, %g3                             
     *  Initialise the new entries in the table.                      
     */                                                               
    object_blocks[block_count] = NULL;                                
    inactive_per_block[block_count] = 0;                              
                                                                      
    for ( index=index_base ;                                          
 20080a4:	80 a7 40 03 	cmp  %i5, %g3                                  
 20080a8:	1a 80 00 0a 	bcc  20080d0 <_Objects_Extend_information+0x170><== NEVER TAKEN
 20080ac:	c0 24 80 13 	clr  [ %l2 + %l3 ]                             
 *    information     - object information table                      
 *                                                                    
 *  Output parameters:  NONE                                          
 */                                                                   
                                                                      
void _Objects_Extend_information(                                     
 20080b0:	83 2f 60 02 	sll  %i5, 2, %g1                               
 20080b4:	84 10 00 1d 	mov  %i5, %g2                                  
     *  Initialise the new entries in the table.                      
     */                                                               
    object_blocks[block_count] = NULL;                                
    inactive_per_block[block_count] = 0;                              
                                                                      
    for ( index=index_base ;                                          
 20080b8:	82 06 80 01 	add  %i2, %g1, %g1                             
          index < ( information->allocation_size + index_base );      
          index++ ) {                                                 
      local_table[ index ] = NULL;                                    
 20080bc:	c0 20 40 00 	clr  [ %g1 ]                                   
    object_blocks[block_count] = NULL;                                
    inactive_per_block[block_count] = 0;                              
                                                                      
    for ( index=index_base ;                                          
          index < ( information->allocation_size + index_base );      
          index++ ) {                                                 
 20080c0:	84 00 a0 01 	inc  %g2                                       
     *  Initialise the new entries in the table.                      
     */                                                               
    object_blocks[block_count] = NULL;                                
    inactive_per_block[block_count] = 0;                              
                                                                      
    for ( index=index_base ;                                          
 20080c4:	80 a0 c0 02 	cmp  %g3, %g2                                  
 20080c8:	18 bf ff fd 	bgu  20080bc <_Objects_Extend_information+0x15c>
 20080cc:	82 00 60 04 	add  %g1, 4, %g1                               
          index < ( information->allocation_size + index_base );      
          index++ ) {                                                 
      local_table[ index ] = NULL;                                    
    }                                                                 
                                                                      
    _ISR_Disable( level );                                            
 20080d0:	7f ff e8 45 	call  20021e4 <sparc_disable_interrupts>       
 20080d4:	01 00 00 00 	nop                                            
  uint32_t         the_class,                                         
  uint32_t         node,                                              
  uint32_t         index                                              
)                                                                     
{                                                                     
  return (( (Objects_Id) the_api )   << OBJECTS_API_START_BIT)   |    
 20080d8:	c6 06 00 00 	ld  [ %i0 ], %g3                               
                                                                      
    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(                      
 20080dc:	c4 16 20 04 	lduh  [ %i0 + 4 ], %g2                         
      local_table[ index ] = NULL;                                    
    }                                                                 
                                                                      
    _ISR_Disable( level );                                            
                                                                      
    old_tables = information->object_blocks;                          
 20080e0:	f8 06 20 34 	ld  [ %i0 + 0x34 ], %i4                        
                                                                      
    information->object_blocks = object_blocks;                       
    information->inactive_per_block = inactive_per_block;             
    information->local_table = local_table;                           
    information->maximum = (Objects_Maximum) maximum;                 
 20080e4:	f2 36 20 10 	sth  %i1, [ %i0 + 0x10 ]                       
 20080e8:	87 28 e0 18 	sll  %g3, 0x18, %g3                            
         (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |    
 20080ec:	85 28 a0 1b 	sll  %g2, 0x1b, %g2                            
                                                                      
    _ISR_Disable( level );                                            
                                                                      
    old_tables = information->object_blocks;                          
                                                                      
    information->object_blocks = object_blocks;                       
 20080f0:	e2 26 20 34 	st  %l1, [ %i0 + 0x34 ]                        
    information->inactive_per_block = inactive_per_block;             
 20080f4:	e4 26 20 30 	st  %l2, [ %i0 + 0x30 ]                        
    information->local_table = local_table;                           
 20080f8:	f4 26 20 1c 	st  %i2, [ %i0 + 0x1c ]                        
    information->maximum = (Objects_Maximum) maximum;                 
    information->maximum_id = _Objects_Build_id(                      
 20080fc:	b3 2e 60 10 	sll  %i1, 0x10, %i1                            
  uint32_t         the_class,                                         
  uint32_t         node,                                              
  uint32_t         index                                              
)                                                                     
{                                                                     
  return (( (Objects_Id) the_api )   << OBJECTS_API_START_BIT)   |    
 2008100:	03 00 00 40 	sethi  %hi(0x10000), %g1                       
 2008104:	b3 36 60 10 	srl  %i1, 0x10, %i1                            
 2008108:	82 10 c0 01 	or  %g3, %g1, %g1                              
         (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |    
 200810c:	82 10 40 02 	or  %g1, %g2, %g1                              
  uint32_t         the_class,                                         
  uint32_t         node,                                              
  uint32_t         index                                              
)                                                                     
{                                                                     
  return (( (Objects_Id) the_api )   << OBJECTS_API_START_BIT)   |    
 2008110:	82 10 40 19 	or  %g1, %i1, %g1                              
 2008114:	c2 26 20 0c 	st  %g1, [ %i0 + 0xc ]                         
        information->the_class,                                       
        _Objects_Local_node,                                          
        information->maximum                                          
      );                                                              
                                                                      
    _ISR_Enable( level );                                             
 2008118:	7f ff e8 37 	call  20021f4 <sparc_enable_interrupts>        
 200811c:	01 00 00 00 	nop                                            
                                                                      
    _Workspace_Free( old_tables );                                    
 2008120:	40 00 09 48 	call  200a640 <_Workspace_Free>                
 2008124:	90 10 00 1c 	mov  %i4, %o0                                  
  }                                                                   
                                                                      
  /*                                                                  
   *  Assign the new object block to the object block table.          
   */                                                                 
  information->object_blocks[ block ] = new_object_block;             
 2008128:	c2 06 20 34 	ld  [ %i0 + 0x34 ], %g1                        
 200812c:	b7 2e e0 02 	sll  %i3, 2, %i3                               
 2008130:	e0 20 40 1b 	st  %l0, [ %g1 + %i3 ]                         
                                                                      
  /*                                                                  
   *  Initialize objects .. add to a local chain first.               
   */                                                                 
  _Chain_Initialize(                                                  
 2008134:	c2 06 20 34 	ld  [ %i0 + 0x34 ], %g1                        
 2008138:	d4 16 20 14 	lduh  [ %i0 + 0x14 ], %o2                      
 200813c:	d2 00 40 1b 	ld  [ %g1 + %i3 ], %o1                         
 2008140:	d6 06 20 18 	ld  [ %i0 + 0x18 ], %o3                        
 2008144:	90 07 bf f4 	add  %fp, -12, %o0                             
 2008148:	40 00 14 2b 	call  200d1f4 <_Chain_Initialize>              
 200814c:	39 00 00 40 	sethi  %hi(0x10000), %i4                       
  /*                                                                  
   *  Move from the local chain, initialise, then append to the inactive chain
   */                                                                 
  index = index_base;                                                 
                                                                      
  while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) {
 2008150:	10 80 00 0d 	b  2008184 <_Objects_Extend_information+0x224> 
 2008154:	b4 06 20 20 	add  %i0, 0x20, %i2                            
                                                                      
    the_object->id = _Objects_Build_id(                               
 2008158:	c6 16 20 04 	lduh  [ %i0 + 4 ], %g3                         
 200815c:	85 28 a0 18 	sll  %g2, 0x18, %g2                            
         (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |    
 2008160:	87 28 e0 1b 	sll  %g3, 0x1b, %g3                            
  uint32_t         the_class,                                         
  uint32_t         node,                                              
  uint32_t         index                                              
)                                                                     
{                                                                     
  return (( (Objects_Id) the_api )   << OBJECTS_API_START_BIT)   |    
 2008164:	84 10 80 1c 	or  %g2, %i4, %g2                              
         (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |    
 2008168:	84 10 80 03 	or  %g2, %g3, %g2                              
  uint32_t         the_class,                                         
  uint32_t         node,                                              
  uint32_t         index                                              
)                                                                     
{                                                                     
  return (( (Objects_Id) the_api )   << OBJECTS_API_START_BIT)   |    
 200816c:	84 10 80 1d 	or  %g2, %i5, %g2                              
        information->the_class,                                       
        _Objects_Local_node,                                          
        index                                                         
      );                                                              
                                                                      
    _Chain_Append( &information->Inactive, &the_object->Node );       
 2008170:	90 10 00 1a 	mov  %i2, %o0                                  
 2008174:	92 10 00 01 	mov  %g1, %o1                                  
                                                                      
    index++;                                                          
 2008178:	ba 07 60 01 	inc  %i5                                       
        information->the_class,                                       
        _Objects_Local_node,                                          
        index                                                         
      );                                                              
                                                                      
    _Chain_Append( &information->Inactive, &the_object->Node );       
 200817c:	7f ff fc a0 	call  20073fc <_Chain_Append>                  
 2008180:	c4 20 60 08 	st  %g2, [ %g1 + 8 ]                           
  /*                                                                  
   *  Move from the local chain, initialise, then append to the inactive chain
   */                                                                 
  index = index_base;                                                 
                                                                      
  while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) {
 2008184:	7f ff fc b2 	call  200744c <_Chain_Get>                     
 2008188:	90 07 bf f4 	add  %fp, -12, %o0                             
 200818c:	82 92 20 00 	orcc  %o0, 0, %g1                              
 2008190:	32 bf ff f2 	bne,a   2008158 <_Objects_Extend_information+0x1f8>
 2008194:	c4 06 00 00 	ld  [ %i0 ], %g2                               
    _Chain_Append( &information->Inactive, &the_object->Node );       
                                                                      
    index++;                                                          
  }                                                                   
                                                                      
  information->inactive_per_block[ block ] = information->allocation_size;
 2008198:	c8 16 20 14 	lduh  [ %i0 + 0x14 ], %g4                      
 200819c:	c6 06 20 30 	ld  [ %i0 + 0x30 ], %g3                        
  information->inactive =                                             
    (Objects_Maximum)(information->inactive + information->allocation_size);
 20081a0:	c4 16 20 2c 	lduh  [ %i0 + 0x2c ], %g2                      
    _Chain_Append( &information->Inactive, &the_object->Node );       
                                                                      
    index++;                                                          
  }                                                                   
                                                                      
  information->inactive_per_block[ block ] = information->allocation_size;
 20081a4:	c8 20 c0 1b 	st  %g4, [ %g3 + %i3 ]                         
  information->inactive =                                             
    (Objects_Maximum)(information->inactive + information->allocation_size);
 20081a8:	82 00 80 04 	add  %g2, %g4, %g1                             
                                                                      
    index++;                                                          
  }                                                                   
                                                                      
  information->inactive_per_block[ block ] = information->allocation_size;
  information->inactive =                                             
 20081ac:	c2 36 20 2c 	sth  %g1, [ %i0 + 0x2c ]                       
 20081b0:	81 c7 e0 08 	ret                                            
 20081b4:	81 e8 00 00 	restore                                        
  if ( information->auto_extend ) {                                   
    new_object_block = _Workspace_Allocate( block_size );             
    if ( !new_object_block )                                          
      return;                                                         
  } else {                                                            
    new_object_block = _Workspace_Allocate_or_fatal_error( block_size );
 20081b8:	40 00 09 28 	call  200a658 <_Workspace_Allocate_or_fatal_error>
 20081bc:	01 00 00 00 	nop                                            
 20081c0:	10 bf ff 9b 	b  200802c <_Objects_Extend_information+0xcc>  
 20081c4:	a0 10 00 08 	mov  %o0, %l0                                  
      /*                                                              
       *  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,                                          
 20081c8:	d2 06 20 34 	ld  [ %i0 + 0x34 ], %o1                        
              information->object_blocks,                             
              block_count * sizeof(void*) );                          
 20081cc:	a7 2c e0 02 	sll  %l3, 2, %l3                               
      /*                                                              
       *  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,                                          
 20081d0:	40 00 20 50 	call  2010310 <memcpy>                         
 20081d4:	94 10 00 13 	mov  %l3, %o2                                  
              information->object_blocks,                             
              block_count * sizeof(void*) );                          
      memcpy( inactive_per_block,                                     
 20081d8:	d2 06 20 30 	ld  [ %i0 + 0x30 ], %o1                        
 20081dc:	94 10 00 13 	mov  %l3, %o2                                  
 20081e0:	40 00 20 4c 	call  2010310 <memcpy>                         
 20081e4:	90 10 00 12 	mov  %l2, %o0                                  
              information->inactive_per_block,                        
              block_count * sizeof(uint32_t) );                       
      memcpy( local_table,                                            
              information->local_table,                               
              (information->maximum + minimum_index) * sizeof(Objects_Control *) );
 20081e8:	c2 16 20 10 	lduh  [ %i0 + 0x10 ], %g1                      
              information->object_blocks,                             
              block_count * sizeof(void*) );                          
      memcpy( inactive_per_block,                                     
              information->inactive_per_block,                        
              block_count * sizeof(uint32_t) );                       
      memcpy( local_table,                                            
 20081ec:	d2 06 20 1c 	ld  [ %i0 + 0x1c ], %o1                        
              information->local_table,                               
              (information->maximum + minimum_index) * sizeof(Objects_Control *) );
 20081f0:	b8 07 00 01 	add  %i4, %g1, %i4                             
              information->object_blocks,                             
              block_count * sizeof(void*) );                          
      memcpy( inactive_per_block,                                     
              information->inactive_per_block,                        
              block_count * sizeof(uint32_t) );                       
      memcpy( local_table,                                            
 20081f4:	90 10 00 1a 	mov  %i2, %o0                                  
 20081f8:	40 00 20 46 	call  2010310 <memcpy>                         
 20081fc:	95 2f 20 02 	sll  %i4, 2, %o2                               
     */                                                               
    object_blocks[block_count] = NULL;                                
    inactive_per_block[block_count] = 0;                              
                                                                      
    for ( index=index_base ;                                          
          index < ( information->allocation_size + index_base );      
 2008200:	10 bf ff a7 	b  200809c <_Objects_Extend_information+0x13c> 
 2008204:	c6 16 20 14 	lduh  [ %i0 + 0x14 ], %g3                      
  minimum_index = _Objects_Get_index( information->minimum_id );      
  index_base    = minimum_index;                                      
  block         = 0;                                                  
                                                                      
  /* if ( information->maximum < minimum_index ) */                   
  if ( information->object_blocks == NULL )                           
 2008208:	d0 16 20 14 	lduh  [ %i0 + 0x14 ], %o0                      
  /*                                                                  
   *  Search for a free block of indexes. If we do NOT need to allocate or
   *  extend the block table, then we will change do_extend.          
   */                                                                 
  do_extend     = true;                                               
  minimum_index = _Objects_Get_index( information->minimum_id );      
 200820c:	ba 10 00 1c 	mov  %i4, %i5                                  
                                                                      
  /*                                                                  
   *  Search for a free block of indexes. If we do NOT need to allocate or
   *  extend the block table, then we will change do_extend.          
   */                                                                 
  do_extend     = true;                                               
 2008210:	b4 10 20 01 	mov  1, %i2                                    
  minimum_index = _Objects_Get_index( information->minimum_id );      
  index_base    = minimum_index;                                      
  block         = 0;                                                  
 2008214:	b6 10 20 00 	clr  %i3                                       
                                                                      
  /* if ( information->maximum < minimum_index ) */                   
  if ( information->object_blocks == NULL )                           
    block_count = 0;                                                  
 2008218:	a6 10 20 00 	clr  %l3                                       
 200821c:	10 bf ff 72 	b  2007fe4 <_Objects_Extend_information+0x84>  
 2008220:	b3 2e 60 10 	sll  %i1, 0x10, %i1                            
  /*                                                                  
   *  Search for a free block of indexes. If we do NOT need to allocate or
   *  extend the block table, then we will change do_extend.          
   */                                                                 
  do_extend     = true;                                               
  minimum_index = _Objects_Get_index( information->minimum_id );      
 2008224:	ba 10 00 1c 	mov  %i4, %i5                                  <== NOT EXECUTED
                                                                      
  /*                                                                  
   *  Search for a free block of indexes. If we do NOT need to allocate or
   *  extend the block table, then we will change do_extend.          
   */                                                                 
  do_extend     = true;                                               
 2008228:	b4 10 20 01 	mov  1, %i2                                    <== NOT EXECUTED
  minimum_index = _Objects_Get_index( information->minimum_id );      
  index_base    = minimum_index;                                      
  block         = 0;                                                  
 200822c:	10 bf ff 6e 	b  2007fe4 <_Objects_Extend_information+0x84>  <== NOT EXECUTED
 2008230:	b6 10 20 00 	clr  %i3                                       <== NOT EXECUTED
 2008234:	10 bf ff 6c 	b  2007fe4 <_Objects_Extend_information+0x84>  <== NOT EXECUTED
 2008238:	b6 10 20 00 	clr  %i3                                       <== NOT EXECUTED
           (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) +
          ((maximum + minimum_index) * sizeof(Objects_Control *));    
    object_blocks = (void**) _Workspace_Allocate( block_size );       
                                                                      
    if ( !object_blocks ) {                                           
      _Workspace_Free( new_object_block );                            
 200823c:	40 00 09 01 	call  200a640 <_Workspace_Free>                
 2008240:	90 10 00 10 	mov  %l0, %o0                                  
      return;                                                         
 2008244:	81 c7 e0 08 	ret                                            
 2008248:	81 e8 00 00 	restore                                        
                                                                      

020082f0 <_Objects_Get_information>: Objects_Information *_Objects_Get_information( Objects_APIs the_api, uint16_t the_class ) {
 20082f0:	9d e3 bf a0 	save  %sp, -96, %sp                            
  Objects_Information *info;                                          
  int the_class_api_maximum;                                          
                                                                      
  if ( !the_class )                                                   
 20082f4:	80 a6 60 00 	cmp  %i1, 0                                    
 20082f8:	02 80 00 17 	be  2008354 <_Objects_Get_information+0x64>    
 20082fc:	ba 10 20 00 	clr  %i5                                       
                                                                      
  /*                                                                  
   *  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 );      
 2008300:	40 00 15 4a 	call  200d828 <_Objects_API_maximum_class>     
 2008304:	90 10 00 18 	mov  %i0, %o0                                  
  if ( the_class_api_maximum == 0 )                                   
 2008308:	80 a2 20 00 	cmp  %o0, 0                                    
 200830c:	02 80 00 12 	be  2008354 <_Objects_Get_information+0x64>    
 2008310:	80 a2 00 19 	cmp  %o0, %i1                                  
    return NULL;                                                      
                                                                      
  if ( the_class > (uint32_t) the_class_api_maximum )                 
 2008314:	0a 80 00 10 	bcs  2008354 <_Objects_Get_information+0x64>   
 2008318:	03 00 80 76 	sethi  %hi(0x201d800), %g1                     
    return NULL;                                                      
                                                                      
  if ( !_Objects_Information_table[ the_api ] )                       
 200831c:	b1 2e 20 02 	sll  %i0, 2, %i0                               
 2008320:	82 10 61 38 	or  %g1, 0x138, %g1                            
 2008324:	c2 00 40 18 	ld  [ %g1 + %i0 ], %g1                         
 2008328:	80 a0 60 00 	cmp  %g1, 0                                    
 200832c:	02 80 00 0a 	be  2008354 <_Objects_Get_information+0x64>    <== NEVER TAKEN
 2008330:	b3 2e 60 02 	sll  %i1, 2, %i1                               
    return NULL;                                                      
                                                                      
  info = _Objects_Information_table[ the_api ][ the_class ];          
 2008334:	fa 00 40 19 	ld  [ %g1 + %i1 ], %i5                         
  if ( !info )                                                        
 2008338:	80 a7 60 00 	cmp  %i5, 0                                    
 200833c:	02 80 00 06 	be  2008354 <_Objects_Get_information+0x64>    <== NEVER TAKEN
 2008340:	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 )                                         
 2008344:	c2 17 60 10 	lduh  [ %i5 + 0x10 ], %g1                      
      return NULL;                                                    
 2008348:	80 a0 00 01 	cmp  %g0, %g1                                  
 200834c:	82 60 20 00 	subx  %g0, 0, %g1                              
 2008350:	ba 0f 40 01 	and  %i5, %g1, %i5                             
  #endif                                                              
                                                                      
  return info;                                                        
}                                                                     
 2008354:	81 c7 e0 08 	ret                                            
 2008358:	91 e8 00 1d 	restore  %g0, %i5, %o0                         
                                                                      

02009b34 <_Objects_Get_name_as_string>: char *_Objects_Get_name_as_string( Objects_Id id, size_t length, char *name ) {
 2009b34:	9d e3 bf 90 	save  %sp, -112, %sp                           
  char                   lname[5];                                    
  Objects_Control       *the_object;                                  
  Objects_Locations      location;                                    
  Objects_Id             tmpId;                                       
                                                                      
  if ( length == 0 )                                                  
 2009b38:	80 a6 60 00 	cmp  %i1, 0                                    
 2009b3c:	02 80 00 41 	be  2009c40 <_Objects_Get_name_as_string+0x10c>
 2009b40:	80 a6 a0 00 	cmp  %i2, 0                                    
    return NULL;                                                      
                                                                      
  if ( name == NULL )                                                 
 2009b44:	02 80 00 3a 	be  2009c2c <_Objects_Get_name_as_string+0xf8> 
 2009b48:	80 a6 20 00 	cmp  %i0, 0                                    
    return NULL;                                                      
                                                                      
  tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
 2009b4c:	02 80 00 3a 	be  2009c34 <_Objects_Get_name_as_string+0x100>
 2009b50:	03 00 80 82 	sethi  %hi(0x2020800), %g1                     
                                                                      
  information = _Objects_Get_information_id( tmpId );                 
 2009b54:	7f ff ff ba 	call  2009a3c <_Objects_Get_information_id>    
 2009b58:	90 10 00 18 	mov  %i0, %o0                                  
  if ( !information )                                                 
 2009b5c:	ba 92 20 00 	orcc  %o0, 0, %i5                              
 2009b60:	02 80 00 38 	be  2009c40 <_Objects_Get_name_as_string+0x10c>
 2009b64:	92 10 00 18 	mov  %i0, %o1                                  
    return NULL;                                                      
                                                                      
  the_object = _Objects_Get( information, tmpId, &location );         
 2009b68:	40 00 00 3f 	call  2009c64 <_Objects_Get>                   
 2009b6c:	94 07 bf fc 	add  %fp, -4, %o2                              
  switch ( location ) {                                               
 2009b70:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 2009b74:	80 a0 60 00 	cmp  %g1, 0                                    
 2009b78:	32 80 00 33 	bne,a   2009c44 <_Objects_Get_name_as_string+0x110>
 2009b7c:	b4 10 20 00 	clr  %i2                                       
      return NULL;                                                    
                                                                      
    case OBJECTS_LOCAL:                                               
                                                                      
      #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)             
        if ( information->is_string ) {                               
 2009b80:	c2 0f 60 38 	ldub  [ %i5 + 0x38 ], %g1                      
 2009b84:	80 a0 60 00 	cmp  %g1, 0                                    
 2009b88:	32 80 00 31 	bne,a   2009c4c <_Objects_Get_name_as_string+0x118>
 2009b8c:	c4 02 20 0c 	ld  [ %o0 + 0xc ], %g2                         
          s = the_object->name.name_p;                                
        } else                                                        
      #endif                                                          
      {                                                               
        uint32_t  u32_name = (uint32_t) the_object->name.name_u32;    
 2009b90:	c2 02 20 0c 	ld  [ %o0 + 0xc ], %g1                         
                                                                      
        lname[ 0 ] = (u32_name >> 24) & 0xff;                         
        lname[ 1 ] = (u32_name >> 16) & 0xff;                         
        lname[ 2 ] = (u32_name >>  8) & 0xff;                         
        lname[ 3 ] = (u32_name >>  0) & 0xff;                         
        lname[ 4 ] = '\0';                                            
 2009b94:	c0 2f bf f4 	clrb  [ %fp + -12 ]                            
      {                                                               
        uint32_t  u32_name = (uint32_t) the_object->name.name_u32;    
                                                                      
        lname[ 0 ] = (u32_name >> 24) & 0xff;                         
        lname[ 1 ] = (u32_name >> 16) & 0xff;                         
        lname[ 2 ] = (u32_name >>  8) & 0xff;                         
 2009b98:	85 30 60 08 	srl  %g1, 8, %g2                               
        } else                                                        
      #endif                                                          
      {                                                               
        uint32_t  u32_name = (uint32_t) the_object->name.name_u32;    
                                                                      
        lname[ 0 ] = (u32_name >> 24) & 0xff;                         
 2009b9c:	89 30 60 18 	srl  %g1, 0x18, %g4                            
        lname[ 1 ] = (u32_name >> 16) & 0xff;                         
 2009ba0:	87 30 60 10 	srl  %g1, 0x10, %g3                            
        lname[ 2 ] = (u32_name >>  8) & 0xff;                         
 2009ba4:	c4 2f bf f2 	stb  %g2, [ %fp + -14 ]                        
        } else                                                        
      #endif                                                          
      {                                                               
        uint32_t  u32_name = (uint32_t) the_object->name.name_u32;    
                                                                      
        lname[ 0 ] = (u32_name >> 24) & 0xff;                         
 2009ba8:	c8 2f bf f0 	stb  %g4, [ %fp + -16 ]                        
        lname[ 1 ] = (u32_name >> 16) & 0xff;                         
 2009bac:	c6 2f bf f1 	stb  %g3, [ %fp + -15 ]                        
        lname[ 2 ] = (u32_name >>  8) & 0xff;                         
        lname[ 3 ] = (u32_name >>  0) & 0xff;                         
 2009bb0:	c2 2f bf f3 	stb  %g1, [ %fp + -13 ]                        
        lname[ 4 ] = '\0';                                            
        s = lname;                                                    
 2009bb4:	84 07 bf f0 	add  %fp, -16, %g2                             
      }                                                               
                                                                      
      d = name;                                                       
      if ( s ) {                                                      
        for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {            
 2009bb8:	b2 86 7f ff 	addcc  %i1, -1, %i1                            
 2009bbc:	02 80 00 1a 	be  2009c24 <_Objects_Get_name_as_string+0xf0> <== NEVER TAKEN
 2009bc0:	82 10 00 1a 	mov  %i2, %g1                                  
 2009bc4:	c8 48 80 00 	ldsb  [ %g2 ], %g4                             
 2009bc8:	80 a1 20 00 	cmp  %g4, 0                                    
 2009bcc:	02 80 00 16 	be  2009c24 <_Objects_Get_name_as_string+0xf0> 
 2009bd0:	c6 08 80 00 	ldub  [ %g2 ], %g3                             
 2009bd4:	31 00 80 7d 	sethi  %hi(0x201f400), %i0                     
 *  This method objects the name of an object and returns its name    
 *  in the form of a C string.  It attempts to be careful about       
 *  overflowing the user's string and about returning unprintable characters.
 */                                                                   
                                                                      
char *_Objects_Get_name_as_string(                                    
 2009bd8:	b2 06 80 19 	add  %i2, %i1, %i1                             
 2009bdc:	10 80 00 05 	b  2009bf0 <_Objects_Get_name_as_string+0xbc>  
 2009be0:	b0 16 23 54 	or  %i0, 0x354, %i0                            
        s = lname;                                                    
      }                                                               
                                                                      
      d = name;                                                       
      if ( s ) {                                                      
        for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {            
 2009be4:	80 a1 20 00 	cmp  %g4, 0                                    
 2009be8:	02 80 00 0f 	be  2009c24 <_Objects_Get_name_as_string+0xf0> 
 2009bec:	c6 08 80 00 	ldub  [ %g2 ], %g3                             
          *d = (isprint((unsigned char)*s)) ? *s : '*';               
 2009bf0:	fa 06 00 00 	ld  [ %i0 ], %i5                               
 2009bf4:	88 08 e0 ff 	and  %g3, 0xff, %g4                            
 2009bf8:	88 07 40 04 	add  %i5, %g4, %g4                             
 2009bfc:	c8 49 20 01 	ldsb  [ %g4 + 1 ], %g4                         
 2009c00:	80 89 20 97 	btst  0x97, %g4                                
 2009c04:	12 80 00 03 	bne  2009c10 <_Objects_Get_name_as_string+0xdc>
 2009c08:	84 00 a0 01 	inc  %g2                                       
 2009c0c:	86 10 20 2a 	mov  0x2a, %g3                                 
 2009c10:	c6 28 40 00 	stb  %g3, [ %g1 ]                              
        s = lname;                                                    
      }                                                               
                                                                      
      d = name;                                                       
      if ( s ) {                                                      
        for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {            
 2009c14:	82 00 60 01 	inc  %g1                                       
 2009c18:	80 a0 40 19 	cmp  %g1, %i1                                  
 2009c1c:	32 bf ff f2 	bne,a   2009be4 <_Objects_Get_name_as_string+0xb0>
 2009c20:	c8 48 80 00 	ldsb  [ %g2 ], %g4                             
          *d = (isprint((unsigned char)*s)) ? *s : '*';               
        }                                                             
      }                                                               
      *d = '\0';                                                      
                                                                      
      _Thread_Enable_dispatch();                                      
 2009c24:	40 00 03 db 	call  200ab90 <_Thread_Enable_dispatch>        
 2009c28:	c0 28 40 00 	clrb  [ %g1 ]                                  
      return name;                                                    
  }                                                                   
  return NULL;                  /* unreachable path */                
}                                                                     
 2009c2c:	81 c7 e0 08 	ret                                            
 2009c30:	91 e8 00 1a 	restore  %g0, %i2, %o0                         
    return NULL;                                                      
                                                                      
  if ( name == NULL )                                                 
    return NULL;                                                      
                                                                      
  tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
 2009c34:	c2 00 62 44 	ld  [ %g1 + 0x244 ], %g1                       
 2009c38:	10 bf ff c7 	b  2009b54 <_Objects_Get_name_as_string+0x20>  
 2009c3c:	f0 00 60 08 	ld  [ %g1 + 8 ], %i0                           
#if defined(RTEMS_MULTIPROCESSING)                                    
    case OBJECTS_REMOTE:                                              
      /* not supported */                                             
#endif                                                                
    case OBJECTS_ERROR:                                               
      return NULL;                                                    
 2009c40:	b4 10 20 00 	clr  %i2                                       
                                                                      
      _Thread_Enable_dispatch();                                      
      return name;                                                    
  }                                                                   
  return NULL;                  /* unreachable path */                
}                                                                     
 2009c44:	81 c7 e0 08 	ret                                            
 2009c48:	91 e8 00 1a 	restore  %g0, %i2, %o0                         
        lname[ 4 ] = '\0';                                            
        s = lname;                                                    
      }                                                               
                                                                      
      d = name;                                                       
      if ( s ) {                                                      
 2009c4c:	80 a0 a0 00 	cmp  %g2, 0                                    
 2009c50:	12 bf ff da 	bne  2009bb8 <_Objects_Get_name_as_string+0x84>
 2009c54:	82 10 00 1a 	mov  %i2, %g1                                  
          *d = (isprint((unsigned char)*s)) ? *s : '*';               
        }                                                             
      }                                                               
      *d = '\0';                                                      
                                                                      
      _Thread_Enable_dispatch();                                      
 2009c58:	40 00 03 ce 	call  200ab90 <_Thread_Enable_dispatch>        
 2009c5c:	c0 28 40 00 	clrb  [ %g1 ]                                  
 2009c60:	30 bf ff f3 	b,a   2009c2c <_Objects_Get_name_as_string+0xf8>
                                                                      

02007fe4 <_Objects_Get_next>: Objects_Information *information, Objects_Id id, Objects_Locations *location_p, Objects_Id *next_id_p ) {
 2007fe4:	9d e3 bf a0 	save  %sp, -96, %sp                            
    Objects_Control *object;                                          
    Objects_Id       next_id;                                         
                                                                      
    if ( !information )                                               
      return NULL;                                                    
 2007fe8:	90 10 20 00 	clr  %o0                                       
)                                                                     
{                                                                     
    Objects_Control *object;                                          
    Objects_Id       next_id;                                         
                                                                      
    if ( !information )                                               
 2007fec:	80 a6 20 00 	cmp  %i0, 0                                    
 2007ff0:	02 80 00 19 	be  2008054 <_Objects_Get_next+0x70>           
 2007ff4:	ba 10 00 18 	mov  %i0, %i5                                  
      return NULL;                                                    
                                                                      
    if ( !location_p )                                                
 2007ff8:	80 a6 a0 00 	cmp  %i2, 0                                    
 2007ffc:	02 80 00 16 	be  2008054 <_Objects_Get_next+0x70>           
 2008000:	80 a6 e0 00 	cmp  %i3, 0                                    
      return NULL;                                                    
                                                                      
    if ( !next_id_p )                                                 
 2008004:	02 80 00 14 	be  2008054 <_Objects_Get_next+0x70>           
 2008008:	83 2e 60 10 	sll  %i1, 0x10, %g1                            
      return NULL;                                                    
                                                                      
    if (_Objects_Get_index(id) == OBJECTS_ID_INITIAL_INDEX)           
 200800c:	80 a0 60 00 	cmp  %g1, 0                                    
 2008010:	22 80 00 13 	be,a   200805c <_Objects_Get_next+0x78>        
 2008014:	f2 06 20 08 	ld  [ %i0 + 8 ], %i1                           
    else                                                              
        next_id = id;                                                 
                                                                      
    do {                                                              
        /* walked off end of list? */                                 
        if (_Objects_Get_index(next_id) > information->maximum)       
 2008018:	c4 17 60 10 	lduh  [ %i5 + 0x10 ], %g2                      
 200801c:	83 2e 60 10 	sll  %i1, 0x10, %g1                            
            *location_p = OBJECTS_ERROR;                              
            goto final;                                               
        }                                                             
                                                                      
        /* try to grab one */                                         
        object = _Objects_Get(information, next_id, location_p);      
 2008020:	92 10 00 19 	mov  %i1, %o1                                  
    else                                                              
        next_id = id;                                                 
                                                                      
    do {                                                              
        /* walked off end of list? */                                 
        if (_Objects_Get_index(next_id) > information->maximum)       
 2008024:	83 30 60 10 	srl  %g1, 0x10, %g1                            
            *location_p = OBJECTS_ERROR;                              
            goto final;                                               
        }                                                             
                                                                      
        /* try to grab one */                                         
        object = _Objects_Get(information, next_id, location_p);      
 2008028:	90 10 00 1d 	mov  %i5, %o0                                  
    else                                                              
        next_id = id;                                                 
                                                                      
    do {                                                              
        /* walked off end of list? */                                 
        if (_Objects_Get_index(next_id) > information->maximum)       
 200802c:	80 a0 80 01 	cmp  %g2, %g1                                  
 2008030:	0a 80 00 13 	bcs  200807c <_Objects_Get_next+0x98>          
 2008034:	94 10 00 1a 	mov  %i2, %o2                                  
            *location_p = OBJECTS_ERROR;                              
            goto final;                                               
        }                                                             
                                                                      
        /* try to grab one */                                         
        object = _Objects_Get(information, next_id, location_p);      
 2008038:	40 00 00 18 	call  2008098 <_Objects_Get>                   
 200803c:	b2 06 60 01 	inc  %i1                                       
                                                                      
        next_id++;                                                    
                                                                      
    } while (*location_p != OBJECTS_LOCAL);                           
 2008040:	c2 06 80 00 	ld  [ %i2 ], %g1                               
 2008044:	80 a0 60 00 	cmp  %g1, 0                                    
 2008048:	32 bf ff f5 	bne,a   200801c <_Objects_Get_next+0x38>       
 200804c:	c4 17 60 10 	lduh  [ %i5 + 0x10 ], %g2                      
                                                                      
    *next_id_p = next_id;                                             
 2008050:	f2 26 c0 00 	st  %i1, [ %i3 ]                               
    return object;                                                    
                                                                      
final:                                                                
    *next_id_p = OBJECTS_ID_FINAL;                                    
    return 0;                                                         
}                                                                     
 2008054:	81 c7 e0 08 	ret                                            
 2008058:	91 e8 00 08 	restore  %g0, %o0, %o0                         
    else                                                              
        next_id = id;                                                 
                                                                      
    do {                                                              
        /* walked off end of list? */                                 
        if (_Objects_Get_index(next_id) > information->maximum)       
 200805c:	c4 17 60 10 	lduh  [ %i5 + 0x10 ], %g2                      
 2008060:	83 2e 60 10 	sll  %i1, 0x10, %g1                            
            *location_p = OBJECTS_ERROR;                              
            goto final;                                               
        }                                                             
                                                                      
        /* try to grab one */                                         
        object = _Objects_Get(information, next_id, location_p);      
 2008064:	92 10 00 19 	mov  %i1, %o1                                  
    else                                                              
        next_id = id;                                                 
                                                                      
    do {                                                              
        /* walked off end of list? */                                 
        if (_Objects_Get_index(next_id) > information->maximum)       
 2008068:	83 30 60 10 	srl  %g1, 0x10, %g1                            
            *location_p = OBJECTS_ERROR;                              
            goto final;                                               
        }                                                             
                                                                      
        /* try to grab one */                                         
        object = _Objects_Get(information, next_id, location_p);      
 200806c:	90 10 00 1d 	mov  %i5, %o0                                  
    else                                                              
        next_id = id;                                                 
                                                                      
    do {                                                              
        /* walked off end of list? */                                 
        if (_Objects_Get_index(next_id) > information->maximum)       
 2008070:	80 a0 80 01 	cmp  %g2, %g1                                  
 2008074:	1a bf ff f1 	bcc  2008038 <_Objects_Get_next+0x54>          <== ALWAYS TAKEN
 2008078:	94 10 00 1a 	mov  %i2, %o2                                  
        {                                                             
            *location_p = OBJECTS_ERROR;                              
 200807c:	82 10 20 01 	mov  1, %g1                                    
 2008080:	c2 26 80 00 	st  %g1, [ %i2 ]                               
    *next_id_p = next_id;                                             
    return object;                                                    
                                                                      
final:                                                                
    *next_id_p = OBJECTS_ID_FINAL;                                    
    return 0;                                                         
 2008084:	90 10 20 00 	clr  %o0                                       
                                                                      
    *next_id_p = next_id;                                             
    return object;                                                    
                                                                      
final:                                                                
    *next_id_p = OBJECTS_ID_FINAL;                                    
 2008088:	82 10 3f ff 	mov  -1, %g1                                   
 200808c:	c2 26 c0 00 	st  %g1, [ %i3 ]                               
    return 0;                                                         
}                                                                     
 2008090:	81 c7 e0 08 	ret                                            
 2008094:	91 e8 00 08 	restore  %g0, %o0, %o0                         
                                                                      

02008d98 <_Objects_Id_to_name>: */ Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( Objects_Id id, Objects_Name *name ) {
 2008d98:	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;
 2008d9c:	80 a6 20 00 	cmp  %i0, 0                                    
 2008da0:	12 80 00 06 	bne  2008db8 <_Objects_Id_to_name+0x20>        
 2008da4:	83 36 20 18 	srl  %i0, 0x18, %g1                            
 2008da8:	03 00 80 7c 	sethi  %hi(0x201f000), %g1                     
 2008dac:	c2 00 62 84 	ld  [ %g1 + 0x284 ], %g1	! 201f284 <_Per_CPU_Information+0xc>
 2008db0:	f0 00 60 08 	ld  [ %g1 + 8 ], %i0                           
 2008db4:	83 36 20 18 	srl  %i0, 0x18, %g1                            
 2008db8:	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 )                      
 2008dbc:	84 00 7f ff 	add  %g1, -1, %g2                              
 2008dc0:	80 a0 a0 02 	cmp  %g2, 2                                    
 2008dc4:	18 80 00 12 	bgu  2008e0c <_Objects_Id_to_name+0x74>        
 2008dc8:	ba 10 20 03 	mov  3, %i5                                    
                                                                      
  the_api = _Objects_Get_API( tmpId );                                
  if ( !_Objects_Is_api_valid( the_api ) )                            
    return OBJECTS_INVALID_ID;                                        
                                                                      
  if ( !_Objects_Information_table[ the_api ] )                       
 2008dcc:	83 28 60 02 	sll  %g1, 2, %g1                               
 2008dd0:	05 00 80 7b 	sethi  %hi(0x201ec00), %g2                     
 2008dd4:	84 10 a0 a8 	or  %g2, 0xa8, %g2	! 201eca8 <_Objects_Information_table>
 2008dd8:	c2 00 80 01 	ld  [ %g2 + %g1 ], %g1                         
 2008ddc:	80 a0 60 00 	cmp  %g1, 0                                    
 2008de0:	02 80 00 0b 	be  2008e0c <_Objects_Id_to_name+0x74>         
 2008de4:	85 36 20 1b 	srl  %i0, 0x1b, %g2                            
    return OBJECTS_INVALID_ID;                                        
                                                                      
  the_class = _Objects_Get_class( tmpId );                            
                                                                      
  information = _Objects_Information_table[ the_api ][ the_class ];   
 2008de8:	85 28 a0 02 	sll  %g2, 2, %g2                               
 2008dec:	d0 00 40 02 	ld  [ %g1 + %g2 ], %o0                         
  if ( !information )                                                 
 2008df0:	80 a2 20 00 	cmp  %o0, 0                                    
 2008df4:	02 80 00 06 	be  2008e0c <_Objects_Id_to_name+0x74>         <== NEVER TAKEN
 2008df8:	01 00 00 00 	nop                                            
    return OBJECTS_INVALID_ID;                                        
                                                                      
  #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)                 
    if ( information->is_string )                                     
 2008dfc:	c2 0a 20 38 	ldub  [ %o0 + 0x38 ], %g1                      
 2008e00:	80 a0 60 00 	cmp  %g1, 0                                    
 2008e04:	02 80 00 04 	be  2008e14 <_Objects_Id_to_name+0x7c>         <== ALWAYS TAKEN
 2008e08:	92 10 00 18 	mov  %i0, %o1                                  
    return OBJECTS_INVALID_ID;                                        
                                                                      
  *name = the_object->name;                                           
  _Thread_Enable_dispatch();                                          
  return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;                        
}                                                                     
 2008e0c:	81 c7 e0 08 	ret                                            
 2008e10:	91 e8 00 1d 	restore  %g0, %i5, %o0                         
  #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)                 
    if ( information->is_string )                                     
      return OBJECTS_INVALID_ID;                                      
  #endif                                                              
                                                                      
  the_object = _Objects_Get( information, tmpId, &ignored_location ); 
 2008e14:	7f ff ff c3 	call  2008d20 <_Objects_Get>                   
 2008e18:	94 07 bf fc 	add  %fp, -4, %o2                              
  if ( !the_object )                                                  
 2008e1c:	80 a2 20 00 	cmp  %o0, 0                                    
 2008e20:	02 bf ff fb 	be  2008e0c <_Objects_Id_to_name+0x74>         
 2008e24:	01 00 00 00 	nop                                            
    return OBJECTS_INVALID_ID;                                        
                                                                      
  *name = the_object->name;                                           
 2008e28:	c2 02 20 0c 	ld  [ %o0 + 0xc ], %g1                         
  _Thread_Enable_dispatch();                                          
  return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;                        
 2008e2c:	ba 10 20 00 	clr  %i5                                       
  the_object = _Objects_Get( information, tmpId, &ignored_location ); 
  if ( !the_object )                                                  
    return OBJECTS_INVALID_ID;                                        
                                                                      
  *name = the_object->name;                                           
  _Thread_Enable_dispatch();                                          
 2008e30:	40 00 03 b0 	call  2009cf0 <_Thread_Enable_dispatch>        
 2008e34:	c2 26 40 00 	st  %g1, [ %i1 ]                               
  return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;                        
 2008e38:	30 bf ff f5 	b,a   2008e0c <_Objects_Id_to_name+0x74>       
                                                                      

0200862c <_Objects_Shrink_information>: */ void _Objects_Shrink_information( Objects_Information *information ) {
 200862c:	9d e3 bf a0 	save  %sp, -96, %sp                            
                                                                      
  /*                                                                  
   * Search the list to find block or chunk with all objects inactive.
   */                                                                 
                                                                      
  index_base = _Objects_Get_index( information->minimum_id );         
 2008630:	fa 16 20 0a 	lduh  [ %i0 + 0xa ], %i5                       
  block_count = (information->maximum - index_base) /                 
 2008634:	f8 16 20 14 	lduh  [ %i0 + 0x14 ], %i4                      
 2008638:	d0 16 20 10 	lduh  [ %i0 + 0x10 ], %o0                      
 200863c:	92 10 00 1c 	mov  %i4, %o1                                  
 2008640:	40 00 40 52 	call  2018788 <.udiv>                          
 2008644:	90 22 00 1d 	sub  %o0, %i5, %o0                             
                 information->allocation_size;                        
                                                                      
  for ( block = 0; block < block_count; block++ ) {                   
 2008648:	80 a2 20 00 	cmp  %o0, 0                                    
 200864c:	02 80 00 34 	be  200871c <_Objects_Shrink_information+0xf0> <== NEVER TAKEN
 2008650:	01 00 00 00 	nop                                            
    if ( information->inactive_per_block[ block ] ==                  
 2008654:	c8 06 20 30 	ld  [ %i0 + 0x30 ], %g4                        
 2008658:	c2 01 00 00 	ld  [ %g4 ], %g1                               
 200865c:	80 a7 00 01 	cmp  %i4, %g1                                  
 2008660:	02 80 00 0f 	be  200869c <_Objects_Shrink_information+0x70> <== NEVER TAKEN
 2008664:	82 10 20 00 	clr  %g1                                       
 2008668:	10 80 00 07 	b  2008684 <_Objects_Shrink_information+0x58>  
 200866c:	b6 10 20 04 	mov  4, %i3                                    
 *    the_block       - the block to remove                           
 *                                                                    
 *  Output parameters:  NONE                                          
 */                                                                   
                                                                      
void _Objects_Shrink_information(                                     
 2008670:	86 06 e0 04 	add  %i3, 4, %g3                               
  index_base = _Objects_Get_index( information->minimum_id );         
  block_count = (information->maximum - index_base) /                 
                 information->allocation_size;                        
                                                                      
  for ( block = 0; block < block_count; block++ ) {                   
    if ( information->inactive_per_block[ block ] ==                  
 2008674:	80 a7 00 02 	cmp  %i4, %g2                                  
 2008678:	02 80 00 0a 	be  20086a0 <_Objects_Shrink_information+0x74> 
 200867c:	ba 07 40 1c 	add  %i5, %i4, %i5                             
 2008680:	b6 10 00 03 	mov  %g3, %i3                                  
                                                                      
  index_base = _Objects_Get_index( information->minimum_id );         
  block_count = (information->maximum - index_base) /                 
                 information->allocation_size;                        
                                                                      
  for ( block = 0; block < block_count; block++ ) {                   
 2008684:	82 00 60 01 	inc  %g1                                       
 2008688:	80 a0 40 08 	cmp  %g1, %o0                                  
 200868c:	32 bf ff f9 	bne,a   2008670 <_Objects_Shrink_information+0x44>
 2008690:	c4 01 00 1b 	ld  [ %g4 + %i3 ], %g2                         
 2008694:	81 c7 e0 08 	ret                                            
 2008698:	81 e8 00 00 	restore                                        
    if ( information->inactive_per_block[ block ] ==                  
 200869c:	b6 10 20 00 	clr  %i3                                       <== NOT EXECUTED
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
 20086a0:	10 80 00 06 	b  20086b8 <_Objects_Shrink_information+0x8c>  
 20086a4:	d0 06 20 20 	ld  [ %i0 + 0x20 ], %o0                        
         if ((index >= index_base) &&                                 
             (index < (index_base + information->allocation_size))) { 
           _Chain_Extract( &extract_me->Node );                       
         }                                                            
       }                                                              
       while ( the_object );                                          
 20086a8:	80 a7 20 00 	cmp  %i4, 0                                    
 20086ac:	22 80 00 12 	be,a   20086f4 <_Objects_Shrink_information+0xc8>
 20086b0:	c2 06 20 34 	ld  [ %i0 + 0x34 ], %g1                        
         index = _Objects_Get_index( the_object->id );                
         /*                                                           
          *  Get the next node before the node is extracted           
          */                                                          
         extract_me = the_object;                                     
         the_object = (Objects_Control *) the_object->Node.next;      
 20086b4:	90 10 00 1c 	mov  %i4, %o0                                  
       *  Assume the Inactive chain is never empty at this point      
       */                                                             
      the_object = (Objects_Control *) _Chain_First( &information->Inactive );
                                                                      
      do {                                                            
         index = _Objects_Get_index( the_object->id );                
 20086b8:	c2 12 20 0a 	lduh  [ %o0 + 0xa ], %g1                       
         /*                                                           
          *  Get the next node before the node is extracted           
          */                                                          
         extract_me = the_object;                                     
         the_object = (Objects_Control *) the_object->Node.next;      
         if ((index >= index_base) &&                                 
 20086bc:	80 a0 40 1d 	cmp  %g1, %i5                                  
 20086c0:	0a bf ff fa 	bcs  20086a8 <_Objects_Shrink_information+0x7c>
 20086c4:	f8 02 00 00 	ld  [ %o0 ], %i4                               
             (index < (index_base + information->allocation_size))) { 
 20086c8:	c4 16 20 14 	lduh  [ %i0 + 0x14 ], %g2                      
 20086cc:	84 07 40 02 	add  %i5, %g2, %g2                             
         /*                                                           
          *  Get the next node before the node is extracted           
          */                                                          
         extract_me = the_object;                                     
         the_object = (Objects_Control *) the_object->Node.next;      
         if ((index >= index_base) &&                                 
 20086d0:	80 a0 40 02 	cmp  %g1, %g2                                  
 20086d4:	1a bf ff f6 	bcc  20086ac <_Objects_Shrink_information+0x80>
 20086d8:	80 a7 20 00 	cmp  %i4, 0                                    
             (index < (index_base + information->allocation_size))) { 
           _Chain_Extract( &extract_me->Node );                       
 20086dc:	7f ff fb 53 	call  2007428 <_Chain_Extract>                 
 20086e0:	01 00 00 00 	nop                                            
         }                                                            
       }                                                              
       while ( the_object );                                          
 20086e4:	80 a7 20 00 	cmp  %i4, 0                                    
 20086e8:	12 bf ff f4 	bne  20086b8 <_Objects_Shrink_information+0x8c><== ALWAYS TAKEN
 20086ec:	90 10 00 1c 	mov  %i4, %o0                                  
      /*                                                              
       *  Free the memory and reset the structures in the object' information
       */                                                             
                                                                      
      _Workspace_Free( information->object_blocks[ block ] );         
 20086f0:	c2 06 20 34 	ld  [ %i0 + 0x34 ], %g1                        <== NOT EXECUTED
 20086f4:	40 00 07 d3 	call  200a640 <_Workspace_Free>                
 20086f8:	d0 00 40 1b 	ld  [ %g1 + %i3 ], %o0                         
      information->object_blocks[ block ] = NULL;                     
 20086fc:	c2 06 20 34 	ld  [ %i0 + 0x34 ], %g1                        
      information->inactive_per_block[ block ] = 0;                   
                                                                      
      information->inactive -= information->allocation_size;          
 2008700:	c4 16 20 2c 	lduh  [ %i0 + 0x2c ], %g2                      
      /*                                                              
       *  Free the memory and reset the structures in the object' information
       */                                                             
                                                                      
      _Workspace_Free( information->object_blocks[ block ] );         
      information->object_blocks[ block ] = NULL;                     
 2008704:	c0 20 40 1b 	clr  [ %g1 + %i3 ]                             
      information->inactive_per_block[ block ] = 0;                   
 2008708:	c6 06 20 30 	ld  [ %i0 + 0x30 ], %g3                        
                                                                      
      information->inactive -= information->allocation_size;          
 200870c:	c2 16 20 14 	lduh  [ %i0 + 0x14 ], %g1                      
       *  Free the memory and reset the structures in the object' information
       */                                                             
                                                                      
      _Workspace_Free( information->object_blocks[ block ] );         
      information->object_blocks[ block ] = NULL;                     
      information->inactive_per_block[ block ] = 0;                   
 2008710:	c0 20 c0 1b 	clr  [ %g3 + %i3 ]                             
                                                                      
      information->inactive -= information->allocation_size;          
 2008714:	82 20 80 01 	sub  %g2, %g1, %g1                             
 2008718:	c2 36 20 2c 	sth  %g1, [ %i0 + 0x2c ]                       
                                                                      
      return;                                                         
 200871c:	81 c7 e0 08 	ret                                            
 2008720:	81 e8 00 00 	restore                                        
                                                                      

0200b618 <_POSIX_Message_queue_Receive_support>: size_t msg_len, unsigned int *msg_prio, bool wait, Watchdog_Interval timeout ) {
 200b618:	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(             
 200b61c:	11 00 80 9f 	sethi  %hi(0x2027c00), %o0                     
 200b620:	92 10 00 18 	mov  %i0, %o1                                  
 200b624:	90 12 22 1c 	or  %o0, 0x21c, %o0                            
 200b628:	40 00 0d 19 	call  200ea8c <_Objects_Get>                   
 200b62c:	94 07 bf f8 	add  %fp, -8, %o2                              
  Objects_Locations                location;                          
  size_t                           length_out;                        
  bool                             do_wait;                           
                                                                      
  the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location );        
  switch ( location ) {                                               
 200b630:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
 200b634:	80 a0 60 00 	cmp  %g1, 0                                    
 200b638:	22 80 00 08 	be,a   200b658 <_POSIX_Message_queue_Receive_support+0x40>
 200b63c:	c2 02 20 14 	ld  [ %o0 + 0x14 ], %g1                        
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  rtems_set_errno_and_return_minus_one( EBADF );                      
 200b640:	40 00 2c f8 	call  2016a20 <__errno>                        
 200b644:	b0 10 3f ff 	mov  -1, %i0                                   
 200b648:	82 10 20 09 	mov  9, %g1                                    
 200b64c:	c2 22 00 00 	st  %g1, [ %o0 ]                               
}                                                                     
 200b650:	81 c7 e0 08 	ret                                            
 200b654:	81 e8 00 00 	restore                                        
                                                                      
  the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location );        
  switch ( location ) {                                               
                                                                      
    case OBJECTS_LOCAL:                                               
      if ( (the_mq_fd->oflag & O_ACCMODE) == O_WRONLY ) {             
 200b658:	84 08 60 03 	and  %g1, 3, %g2                               
 200b65c:	80 a0 a0 01 	cmp  %g2, 1                                    
 200b660:	02 80 00 37 	be  200b73c <_POSIX_Message_queue_Receive_support+0x124>
 200b664:	01 00 00 00 	nop                                            
        _Thread_Enable_dispatch();                                    
        rtems_set_errno_and_return_minus_one( EBADF );                
      }                                                               
                                                                      
      the_mq = the_mq_fd->Queue;                                      
 200b668:	d0 02 20 10 	ld  [ %o0 + 0x10 ], %o0                        
                                                                      
      if ( msg_len < the_mq->Message_queue.maximum_message_size ) {   
 200b66c:	c4 02 20 68 	ld  [ %o0 + 0x68 ], %g2                        
 200b670:	80 a0 80 1a 	cmp  %g2, %i2                                  
 200b674:	18 80 00 21 	bgu  200b6f8 <_POSIX_Message_queue_Receive_support+0xe0>
 200b678:	84 10 3f ff 	mov  -1, %g2                                   
      /*                                                              
       *  Now if something goes wrong, we return a "length" of -1     
       *  to indicate an error.                                       
       */                                                             
                                                                      
      length_out = -1;                                                
 200b67c:	c4 27 bf fc 	st  %g2, [ %fp + -4 ]                          
                                                                      
      /*                                                              
       *  A timed receive with a bad time will do a poll regardless.  
       */                                                             
      if ( wait )                                                     
 200b680:	80 a7 20 00 	cmp  %i4, 0                                    
 200b684:	12 80 00 18 	bne  200b6e4 <_POSIX_Message_queue_Receive_support+0xcc><== ALWAYS TAKEN
 200b688:	98 10 20 00 	clr  %o4                                       
        do_wait = wait;                                               
                                                                      
      /*                                                              
       *  Now perform the actual message receive                      
       */                                                             
      _CORE_message_queue_Seize(                                      
 200b68c:	9a 10 00 1d 	mov  %i5, %o5                                  
 200b690:	90 02 20 1c 	add  %o0, 0x1c, %o0                            
 200b694:	92 10 00 18 	mov  %i0, %o1                                  
 200b698:	94 10 00 19 	mov  %i1, %o2                                  
 200b69c:	96 07 bf fc 	add  %fp, -4, %o3                              
 200b6a0:	40 00 08 96 	call  200d8f8 <_CORE_message_queue_Seize>      
 200b6a4:	98 0b 20 01 	and  %o4, 1, %o4                               
        &length_out,                                                  
        do_wait,                                                      
        timeout                                                       
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
 200b6a8:	40 00 10 e3 	call  200fa34 <_Thread_Enable_dispatch>        
 200b6ac:	3b 00 80 9f 	sethi  %hi(0x2027c00), %i5                     
      *msg_prio =                                                     
        _POSIX_Message_queue_Priority_from_core(_Thread_Executing->Wait.count);
 200b6b0:	ba 17 62 88 	or  %i5, 0x288, %i5	! 2027e88 <_Per_CPU_Information>
 200b6b4:	c2 07 60 0c 	ld  [ %i5 + 0xc ], %g1                         
RTEMS_INLINE_ROUTINE unsigned int _POSIX_Message_queue_Priority_from_core(
  CORE_message_queue_Submit_types priority                            
)                                                                     
{                                                                     
  /* absolute value without a library dependency */                   
  return ((priority >= 0) ? priority : -priority);                    
 200b6b8:	c4 00 60 24 	ld  [ %g1 + 0x24 ], %g2                        
                                                                      
      if ( !_Thread_Executing->Wait.return_code )                     
 200b6bc:	c6 00 60 34 	ld  [ %g1 + 0x34 ], %g3                        
 200b6c0:	83 38 a0 1f 	sra  %g2, 0x1f, %g1                            
 200b6c4:	84 18 40 02 	xor  %g1, %g2, %g2                             
 200b6c8:	82 20 80 01 	sub  %g2, %g1, %g1                             
 200b6cc:	80 a0 e0 00 	cmp  %g3, 0                                    
 200b6d0:	12 80 00 12 	bne  200b718 <_POSIX_Message_queue_Receive_support+0x100>
 200b6d4:	c2 26 c0 00 	st  %g1, [ %i3 ]                               
        return length_out;                                            
 200b6d8:	f0 07 bf fc 	ld  [ %fp + -4 ], %i0                          
 200b6dc:	81 c7 e0 08 	ret                                            
 200b6e0:	81 e8 00 00 	restore                                        
                                                                      
      /*                                                              
       *  A timed receive with a bad time will do a poll regardless.  
       */                                                             
      if ( wait )                                                     
        do_wait = (the_mq_fd->oflag & O_NONBLOCK) ? false : true;     
 200b6e4:	05 00 00 10 	sethi  %hi(0x4000), %g2                        
 200b6e8:	82 08 40 02 	and  %g1, %g2, %g1                             
 200b6ec:	80 a0 00 01 	cmp  %g0, %g1                                  
 200b6f0:	10 bf ff e7 	b  200b68c <_POSIX_Message_queue_Receive_support+0x74>
 200b6f4:	98 60 3f ff 	subx  %g0, -1, %o4                             
      }                                                               
                                                                      
      the_mq = the_mq_fd->Queue;                                      
                                                                      
      if ( msg_len < the_mq->Message_queue.maximum_message_size ) {   
        _Thread_Enable_dispatch();                                    
 200b6f8:	40 00 10 cf 	call  200fa34 <_Thread_Enable_dispatch>        
 200b6fc:	b0 10 3f ff 	mov  -1, %i0                                   
        rtems_set_errno_and_return_minus_one( EMSGSIZE );             
 200b700:	40 00 2c c8 	call  2016a20 <__errno>                        
 200b704:	01 00 00 00 	nop                                            
 200b708:	82 10 20 7a 	mov  0x7a, %g1	! 7a <PROM_START+0x7a>          
 200b70c:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200b710:	81 c7 e0 08 	ret                                            
 200b714:	81 e8 00 00 	restore                                        
        _POSIX_Message_queue_Priority_from_core(_Thread_Executing->Wait.count);
                                                                      
      if ( !_Thread_Executing->Wait.return_code )                     
        return length_out;                                            
                                                                      
      rtems_set_errno_and_return_minus_one(                           
 200b718:	40 00 2c c2 	call  2016a20 <__errno>                        
 200b71c:	b0 10 3f ff 	mov  -1, %i0                                   
 200b720:	c2 07 60 0c 	ld  [ %i5 + 0xc ], %g1                         
 200b724:	b6 10 00 08 	mov  %o0, %i3                                  
 200b728:	40 00 00 a3 	call  200b9b4 <_POSIX_Message_queue_Translate_core_message_queue_return_code>
 200b72c:	d0 00 60 34 	ld  [ %g1 + 0x34 ], %o0                        
 200b730:	d0 26 c0 00 	st  %o0, [ %i3 ]                               
 200b734:	81 c7 e0 08 	ret                                            
 200b738:	81 e8 00 00 	restore                                        
  the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location );        
  switch ( location ) {                                               
                                                                      
    case OBJECTS_LOCAL:                                               
      if ( (the_mq_fd->oflag & O_ACCMODE) == O_WRONLY ) {             
        _Thread_Enable_dispatch();                                    
 200b73c:	40 00 10 be 	call  200fa34 <_Thread_Enable_dispatch>        
 200b740:	b0 10 3f ff 	mov  -1, %i0                                   
        rtems_set_errno_and_return_minus_one( EBADF );                
 200b744:	40 00 2c b7 	call  2016a20 <__errno>                        
 200b748:	01 00 00 00 	nop                                            
 200b74c:	82 10 20 09 	mov  9, %g1	! 9 <PROM_START+0x9>               
 200b750:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200b754:	81 c7 e0 08 	ret                                            
 200b758:	81 e8 00 00 	restore                                        
                                                                      

0200c238 <_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 ];
 200c238:	c2 02 21 5c 	ld  [ %o0 + 0x15c ], %g1                       
                                                                      
  if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE &&
 200c23c:	c4 00 60 d8 	ld  [ %g1 + 0xd8 ], %g2                        
 200c240:	80 a0 a0 00 	cmp  %g2, 0                                    
 200c244:	12 80 00 06 	bne  200c25c <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch+0x24><== NEVER TAKEN
 200c248:	01 00 00 00 	nop                                            
 200c24c:	c4 00 60 dc 	ld  [ %g1 + 0xdc ], %g2                        
 200c250:	80 a0 a0 01 	cmp  %g2, 1                                    
 200c254:	22 80 00 05 	be,a   200c268 <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch+0x30>
 200c258:	c2 00 60 e0 	ld  [ %g1 + 0xe0 ], %g1                        
       thread_support->cancelability_type == PTHREAD_CANCEL_ASYNCHRONOUS &&
       thread_support->cancelation_requested ) {                      
    _Thread_Unnest_dispatch();                                        
    _POSIX_Thread_Exit( the_thread, PTHREAD_CANCELED );               
  } else                                                              
    _Thread_Enable_dispatch();                                        
 200c25c:	82 13 c0 00 	mov  %o7, %g1                                  
 200c260:	7f ff f3 d1 	call  20091a4 <_Thread_Enable_dispatch>        
 200c264:	9e 10 40 00 	mov  %g1, %o7                                  
  POSIX_API_Control *thread_support;                                  
                                                                      
  thread_support = the_thread->API_Extensions[ THREAD_API_POSIX ];    
                                                                      
  if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE &&
       thread_support->cancelability_type == PTHREAD_CANCEL_ASYNCHRONOUS &&
 200c268:	80 a0 60 00 	cmp  %g1, 0                                    
 200c26c:	02 bf ff fc 	be  200c25c <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch+0x24>
 200c270:	01 00 00 00 	nop                                            
   *                                                                  
   * This routine decrements the thread dispatch level.               
   */                                                                 
  RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_decrement_disable_level(void)
  {                                                                   
    _Thread_Dispatch_disable_level--;                                 
 200c274:	03 00 80 60 	sethi  %hi(0x2018000), %g1                     
 200c278:	c4 00 60 90 	ld  [ %g1 + 0x90 ], %g2	! 2018090 <_Thread_Dispatch_disable_level>
       thread_support->cancelation_requested ) {                      
    _Thread_Unnest_dispatch();                                        
    _POSIX_Thread_Exit( the_thread, PTHREAD_CANCELED );               
 200c27c:	92 10 3f ff 	mov  -1, %o1                                   
 200c280:	84 00 bf ff 	add  %g2, -1, %g2                              
 200c284:	c4 20 60 90 	st  %g2, [ %g1 + 0x90 ]                        
    return _Thread_Dispatch_disable_level;                            
 200c288:	c2 00 60 90 	ld  [ %g1 + 0x90 ], %g1                        
 200c28c:	82 13 c0 00 	mov  %o7, %g1                                  
 200c290:	40 00 01 d7 	call  200c9ec <_POSIX_Thread_Exit>             
 200c294:	9e 10 40 00 	mov  %g1, %o7                                  
                                                                      

0200d698 <_POSIX_Thread_Translate_sched_param>: int policy, struct sched_param *param, Thread_CPU_budget_algorithms *budget_algorithm, Thread_CPU_budget_algorithm_callout *budget_callout ) {
 200d698:	9d e3 bf a0 	save  %sp, -96, %sp                            
  if ( !_POSIX_Priority_Is_valid( param->sched_priority ) )           
 200d69c:	d0 06 40 00 	ld  [ %i1 ], %o0                               
 200d6a0:	7f ff ff f1 	call  200d664 <_POSIX_Priority_Is_valid>       
 200d6a4:	ba 10 00 18 	mov  %i0, %i5                                  
 200d6a8:	80 8a 20 ff 	btst  0xff, %o0                                
 200d6ac:	02 80 00 34 	be  200d77c <_POSIX_Thread_Translate_sched_param+0xe4><== NEVER TAKEN
 200d6b0:	b0 10 20 16 	mov  0x16, %i0                                 
    return EINVAL;                                                    
                                                                      
  *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE;               
 200d6b4:	c0 26 80 00 	clr  [ %i2 ]                                   
  *budget_callout = NULL;                                             
 200d6b8:	c0 26 c0 00 	clr  [ %i3 ]                                   
                                                                      
  if ( policy == SCHED_OTHER ) {                                      
 200d6bc:	80 a7 60 00 	cmp  %i5, 0                                    
 200d6c0:	02 80 00 2d 	be  200d774 <_POSIX_Thread_Translate_sched_param+0xdc>
 200d6c4:	b0 10 20 00 	clr  %i0                                       
    *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;  
    return 0;                                                         
  }                                                                   
                                                                      
  if ( policy == SCHED_FIFO ) {                                       
 200d6c8:	80 a7 60 01 	cmp  %i5, 1                                    
 200d6cc:	02 80 00 2c 	be  200d77c <_POSIX_Thread_Translate_sched_param+0xe4>
 200d6d0:	80 a7 60 02 	cmp  %i5, 2                                    
    *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE;             
    return 0;                                                         
  }                                                                   
                                                                      
  if ( policy == SCHED_RR ) {                                         
 200d6d4:	02 80 00 2c 	be  200d784 <_POSIX_Thread_Translate_sched_param+0xec>
 200d6d8:	80 a7 60 04 	cmp  %i5, 4                                    
    *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE;
    return 0;                                                         
  }                                                                   
                                                                      
  if ( policy == SCHED_SPORADIC ) {                                   
 200d6dc:	12 80 00 28 	bne  200d77c <_POSIX_Thread_Translate_sched_param+0xe4>
 200d6e0:	b0 10 20 16 	mov  0x16, %i0                                 
    if ( (param->sched_ss_repl_period.tv_sec == 0) &&                 
 200d6e4:	c2 06 60 08 	ld  [ %i1 + 8 ], %g1                           
 200d6e8:	80 a0 60 00 	cmp  %g1, 0                                    
 200d6ec:	32 80 00 07 	bne,a   200d708 <_POSIX_Thread_Translate_sched_param+0x70>
 200d6f0:	c2 06 60 10 	ld  [ %i1 + 0x10 ], %g1                        
 200d6f4:	c2 06 60 0c 	ld  [ %i1 + 0xc ], %g1                         
 200d6f8:	80 a0 60 00 	cmp  %g1, 0                                    
 200d6fc:	02 80 00 23 	be  200d788 <_POSIX_Thread_Translate_sched_param+0xf0>
 200d700:	01 00 00 00 	nop                                            
         (param->sched_ss_repl_period.tv_nsec == 0) )                 
      return EINVAL;                                                  
                                                                      
    if ( (param->sched_ss_init_budget.tv_sec == 0) &&                 
 200d704:	c2 06 60 10 	ld  [ %i1 + 0x10 ], %g1                        
 200d708:	80 a0 60 00 	cmp  %g1, 0                                    
 200d70c:	12 80 00 06 	bne  200d724 <_POSIX_Thread_Translate_sched_param+0x8c>
 200d710:	01 00 00 00 	nop                                            
 200d714:	c2 06 60 14 	ld  [ %i1 + 0x14 ], %g1                        
 200d718:	80 a0 60 00 	cmp  %g1, 0                                    
 200d71c:	02 80 00 18 	be  200d77c <_POSIX_Thread_Translate_sched_param+0xe4>
 200d720:	b0 10 20 16 	mov  0x16, %i0                                 
         (param->sched_ss_init_budget.tv_nsec == 0) )                 
      return EINVAL;                                                  
                                                                      
    if ( _Timespec_To_ticks( ¶m->sched_ss_repl_period ) <         
 200d724:	7f ff f5 2c 	call  200abd4 <_Timespec_To_ticks>             
 200d728:	90 06 60 08 	add  %i1, 8, %o0                               
	 _Timespec_To_ticks( ¶m->sched_ss_init_budget ) )                
      return EINVAL;                                                  
 200d72c:	b0 10 20 16 	mov  0x16, %i0                                 
                                                                      
    if ( (param->sched_ss_init_budget.tv_sec == 0) &&                 
         (param->sched_ss_init_budget.tv_nsec == 0) )                 
      return EINVAL;                                                  
                                                                      
    if ( _Timespec_To_ticks( ¶m->sched_ss_repl_period ) <         
 200d730:	ba 10 00 08 	mov  %o0, %i5                                  
	 _Timespec_To_ticks( ¶m->sched_ss_init_budget ) )                
 200d734:	7f ff f5 28 	call  200abd4 <_Timespec_To_ticks>             
 200d738:	90 06 60 10 	add  %i1, 0x10, %o0                            
                                                                      
    if ( (param->sched_ss_init_budget.tv_sec == 0) &&                 
         (param->sched_ss_init_budget.tv_nsec == 0) )                 
      return EINVAL;                                                  
                                                                      
    if ( _Timespec_To_ticks( ¶m->sched_ss_repl_period ) <         
 200d73c:	80 a7 40 08 	cmp  %i5, %o0                                  
 200d740:	0a 80 00 12 	bcs  200d788 <_POSIX_Thread_Translate_sched_param+0xf0>
 200d744:	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 ) )  
 200d748:	7f ff ff c7 	call  200d664 <_POSIX_Priority_Is_valid>       
 200d74c:	d0 06 60 04 	ld  [ %i1 + 4 ], %o0                           
 200d750:	80 8a 20 ff 	btst  0xff, %o0                                
 200d754:	02 80 00 0a 	be  200d77c <_POSIX_Thread_Translate_sched_param+0xe4>
 200d758:	82 10 20 03 	mov  3, %g1                                    
      return EINVAL;                                                  
                                                                      
    *budget_algorithm  = THREAD_CPU_BUDGET_ALGORITHM_CALLOUT;         
 200d75c:	c2 26 80 00 	st  %g1, [ %i2 ]                               
    *budget_callout = _POSIX_Threads_Sporadic_budget_callout;         
 200d760:	03 00 80 1a 	sethi  %hi(0x2006800), %g1                     
 200d764:	82 10 63 c0 	or  %g1, 0x3c0, %g1	! 2006bc0 <_POSIX_Threads_Sporadic_budget_callout>
 200d768:	c2 26 c0 00 	st  %g1, [ %i3 ]                               
    return 0;                                                         
  }                                                                   
                                                                      
  return EINVAL;                                                      
}                                                                     
 200d76c:	81 c7 e0 08 	ret                                            
 200d770:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      
  *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE;               
  *budget_callout = NULL;                                             
                                                                      
  if ( policy == SCHED_OTHER ) {                                      
    *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;  
 200d774:	82 10 20 01 	mov  1, %g1                                    
 200d778:	c2 26 80 00 	st  %g1, [ %i2 ]                               
    return 0;                                                         
 200d77c:	81 c7 e0 08 	ret                                            
 200d780:	81 e8 00 00 	restore                                        
    *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE;             
    return 0;                                                         
  }                                                                   
                                                                      
  if ( policy == SCHED_RR ) {                                         
    *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE;
 200d784:	fa 26 80 00 	st  %i5, [ %i2 ]                               
    return 0;                                                         
 200d788:	81 c7 e0 08 	ret                                            
 200d78c:	81 e8 00 00 	restore                                        
                                                                      

020068c0 <_POSIX_Threads_Initialize_user_threads_body>: * * Output parameters: NONE */ void _POSIX_Threads_Initialize_user_threads_body(void) {
 20068c0:	9d e3 bf 58 	save  %sp, -168, %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;
 20068c4:	03 00 80 75 	sethi  %hi(0x201d400), %g1                     
 20068c8:	82 10 62 e4 	or  %g1, 0x2e4, %g1	! 201d6e4 <Configuration_POSIX_API>
  maximum      = Configuration_POSIX_API.number_of_initialization_threads;
 20068cc:	f6 00 60 30 	ld  [ %g1 + 0x30 ], %i3                        
                                                                      
  if ( !user_threads || maximum == 0 )                                
 20068d0:	80 a6 e0 00 	cmp  %i3, 0                                    
 20068d4:	02 80 00 18 	be  2006934 <_POSIX_Threads_Initialize_user_threads_body+0x74><== NEVER TAKEN
 20068d8:	fa 00 60 34 	ld  [ %g1 + 0x34 ], %i5                        
 20068dc:	80 a7 60 00 	cmp  %i5, 0                                    
 20068e0:	02 80 00 15 	be  2006934 <_POSIX_Threads_Initialize_user_threads_body+0x74><== NEVER TAKEN
 20068e4:	b8 10 20 00 	clr  %i4                                       
                                                                      
  for ( index=0 ; index < maximum ; index++ ) {                       
    /*                                                                
     * There is no way for these calls to fail in this situation.     
     */                                                               
    (void) pthread_attr_init( &attr );                                
 20068e8:	40 00 1b aa 	call  200d790 <pthread_attr_init>              
 20068ec:	90 07 bf bc 	add  %fp, -68, %o0                             
    (void) pthread_attr_setinheritsched( &attr, PTHREAD_EXPLICIT_SCHED );
 20068f0:	92 10 20 02 	mov  2, %o1                                    
 20068f4:	40 00 1b b3 	call  200d7c0 <pthread_attr_setinheritsched>   
 20068f8:	90 07 bf bc 	add  %fp, -68, %o0                             
    (void) pthread_attr_setstacksize(&attr, user_threads[ index ].stack_size);
 20068fc:	d2 07 60 04 	ld  [ %i5 + 4 ], %o1                           
 2006900:	40 00 1b c0 	call  200d800 <pthread_attr_setstacksize>      
 2006904:	90 07 bf bc 	add  %fp, -68, %o0                             
                                                                      
    status = pthread_create(                                          
 2006908:	d4 07 40 00 	ld  [ %i5 ], %o2                               
 200690c:	90 07 bf fc 	add  %fp, -4, %o0                              
 2006910:	92 07 bf bc 	add  %fp, -68, %o1                             
 2006914:	7f ff ff 28 	call  20065b4 <pthread_create>                 
 2006918:	96 10 20 00 	clr  %o3                                       
      &thread_id,                                                     
      &attr,                                                          
      user_threads[ index ].thread_entry,                             
      NULL                                                            
    );                                                                
    if ( status )                                                     
 200691c:	94 92 20 00 	orcc  %o0, 0, %o2                              
 2006920:	12 80 00 07 	bne  200693c <_POSIX_Threads_Initialize_user_threads_body+0x7c>
 2006924:	b8 07 20 01 	inc  %i4                                       
   *                                                                  
   *  Setting the attributes explicitly is critical, since we don't want
   *  to inherit the idle tasks attributes.                           
   */                                                                 
                                                                      
  for ( index=0 ; index < maximum ; index++ ) {                       
 2006928:	80 a6 c0 1c 	cmp  %i3, %i4                                  
 200692c:	18 bf ff ef 	bgu  20068e8 <_POSIX_Threads_Initialize_user_threads_body+0x28><== NEVER TAKEN
 2006930:	ba 07 60 08 	add  %i5, 8, %i5                               
 2006934:	81 c7 e0 08 	ret                                            
 2006938:	81 e8 00 00 	restore                                        
      &attr,                                                          
      user_threads[ index ].thread_entry,                             
      NULL                                                            
    );                                                                
    if ( status )                                                     
      _Internal_error_Occurred( INTERNAL_ERROR_POSIX_API, true, status );
 200693c:	90 10 20 02 	mov  2, %o0                                    
 2006940:	40 00 08 50 	call  2008a80 <_Internal_error_Occurred>       
 2006944:	92 10 20 01 	mov  1, %o1                                    
                                                                      

0200cb10 <_POSIX_Threads_Sporadic_budget_TSR>: */ void _POSIX_Threads_Sporadic_budget_TSR( Objects_Id id __attribute__((unused)), void *argument ) {
 200cb10:	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 ];               
 200cb14:	fa 06 61 5c 	ld  [ %i1 + 0x15c ], %i5                       
                                                                      
  /* ticks is guaranteed to be at least one */                        
  ticks = _Timespec_To_ticks( &api->schedparam.sched_ss_init_budget );
 200cb18:	40 00 04 09 	call  200db3c <_Timespec_To_ticks>             
 200cb1c:	90 07 60 98 	add  %i5, 0x98, %o0                            
                                                                      
RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Priority_To_core(        
  int priority                                                        
)                                                                     
{                                                                     
  return (Priority_Control) (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1);
 200cb20:	c4 07 60 88 	ld  [ %i5 + 0x88 ], %g2                        
 200cb24:	03 00 80 73 	sethi  %hi(0x201cc00), %g1                     
 200cb28:	d2 08 60 ac 	ldub  [ %g1 + 0xac ], %o1	! 201ccac <rtems_maximum_priority>
   */                                                                 
  #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 ) {                            
 200cb2c:	c2 06 60 1c 	ld  [ %i1 + 0x1c ], %g1                        
 200cb30:	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;                                
 200cb34:	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 ) {                            
 200cb38:	80 a0 60 00 	cmp  %g1, 0                                    
 200cb3c:	12 80 00 06 	bne  200cb54 <_POSIX_Threads_Sporadic_budget_TSR+0x44><== NEVER TAKEN
 200cb40:	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 ) {              
 200cb44:	c2 06 60 14 	ld  [ %i1 + 0x14 ], %g1                        
 200cb48:	80 a0 40 09 	cmp  %g1, %o1                                  
 200cb4c:	38 80 00 09 	bgu,a   200cb70 <_POSIX_Threads_Sporadic_budget_TSR+0x60>
 200cb50:	90 10 00 19 	mov  %i1, %o0                                  
      #endif                                                          
    }                                                                 
  }                                                                   
                                                                      
  /* ticks is guaranteed to be at least one */                        
  ticks = _Timespec_To_ticks( &api->schedparam.sched_ss_repl_period );
 200cb54:	40 00 03 fa 	call  200db3c <_Timespec_To_ticks>             
 200cb58:	90 07 60 90 	add  %i5, 0x90, %o0                            
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 200cb5c:	31 00 80 76 	sethi  %hi(0x201d800), %i0                     
 200cb60:	b2 07 60 a8 	add  %i5, 0xa8, %i1                            
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
 200cb64:	d0 27 60 b4 	st  %o0, [ %i5 + 0xb4 ]                        
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 200cb68:	7f ff f5 d0 	call  200a2a8 <_Watchdog_Insert>               
 200cb6c:	91 ee 22 8c 	restore  %i0, 0x28c, %o0                       
  if ( the_thread->resource_count == 0 ) {                            
    /*                                                                
     *  If this would make them less important, then do not change it.
     */                                                               
    if ( the_thread->current_priority > new_priority ) {              
      _Thread_Change_priority( the_thread, new_priority, true );      
 200cb70:	7f ff f0 d2 	call  2008eb8 <_Thread_Change_priority>        
 200cb74:	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 );
 200cb78:	40 00 03 f1 	call  200db3c <_Timespec_To_ticks>             
 200cb7c:	90 07 60 90 	add  %i5, 0x90, %o0                            
 200cb80:	31 00 80 76 	sethi  %hi(0x201d800), %i0                     
 200cb84:	b2 07 60 a8 	add  %i5, 0xa8, %i1                            
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
 200cb88:	d0 27 60 b4 	st  %o0, [ %i5 + 0xb4 ]                        
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 200cb8c:	7f ff f5 c7 	call  200a2a8 <_Watchdog_Insert>               
 200cb90:	91 ee 22 8c 	restore  %i0, 0x28c, %o0                       
                                                                      

0200cb94 <_POSIX_Threads_Sporadic_budget_callout>: ) { POSIX_API_Control *api; uint32_t new_priority; api = the_thread->API_Extensions[ THREAD_API_POSIX ];
 200cb94:	c4 02 21 5c 	ld  [ %o0 + 0x15c ], %g2                       
 200cb98:	c6 00 a0 8c 	ld  [ %g2 + 0x8c ], %g3                        
 200cb9c:	05 00 80 73 	sethi  %hi(0x201cc00), %g2                     
 200cba0:	d2 08 a0 ac 	ldub  [ %g2 + 0xac ], %o1	! 201ccac <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 ) {                            
 200cba4:	c4 02 20 1c 	ld  [ %o0 + 0x1c ], %g2                        
 200cba8:	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 */
 200cbac:	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;                           
 200cbb0:	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 ) {                            
 200cbb4:	80 a0 a0 00 	cmp  %g2, 0                                    
 200cbb8:	12 80 00 06 	bne  200cbd0 <_POSIX_Threads_Sporadic_budget_callout+0x3c><== NEVER TAKEN
 200cbbc:	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 ) {              
 200cbc0:	c2 02 20 14 	ld  [ %o0 + 0x14 ], %g1                        
 200cbc4:	80 a0 40 09 	cmp  %g1, %o1                                  
 200cbc8:	0a 80 00 04 	bcs  200cbd8 <_POSIX_Threads_Sporadic_budget_callout+0x44><== ALWAYS TAKEN
 200cbcc:	94 10 20 01 	mov  1, %o2                                    
 200cbd0:	81 c3 e0 08 	retl                                           <== NOT EXECUTED
 200cbd4:	01 00 00 00 	nop                                            <== NOT EXECUTED
      _Thread_Change_priority( the_thread, new_priority, true );      
 200cbd8:	82 13 c0 00 	mov  %o7, %g1                                  
 200cbdc:	7f ff f0 b7 	call  2008eb8 <_Thread_Change_priority>        
 200cbe0:	9e 10 40 00 	mov  %g1, %o7                                  
                                                                      

0200efc4 <_POSIX_Threads_cancel_run>: #include <rtems/posix/threadsup.h> void _POSIX_Threads_cancel_run( Thread_Control *the_thread ) {
 200efc4:	9d e3 bf a0 	save  %sp, -96, %sp                            
  POSIX_Cancel_Handler_control      *handler;                         
  Chain_Control                     *handler_stack;                   
  POSIX_API_Control                 *thread_support;                  
  ISR_Level                          level;                           
                                                                      
  thread_support = the_thread->API_Extensions[ THREAD_API_POSIX ];    
 200efc8:	f8 06 21 5c 	ld  [ %i0 + 0x15c ], %i4                       
                                                                      
  handler_stack = &thread_support->Cancellation_Handlers;             
                                                                      
  thread_support->cancelability_state = PTHREAD_CANCEL_DISABLE;       
 200efcc:	84 10 20 01 	mov  1, %g2                                    
                                                                      
  while ( !_Chain_Is_empty( handler_stack ) ) {                       
 200efd0:	c2 07 20 e4 	ld  [ %i4 + 0xe4 ], %g1                        
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
 200efd4:	b6 07 20 e8 	add  %i4, 0xe8, %i3                            
 200efd8:	80 a0 40 1b 	cmp  %g1, %i3                                  
 200efdc:	02 80 00 14 	be  200f02c <_POSIX_Threads_cancel_run+0x68>   
 200efe0:	c4 27 20 d8 	st  %g2, [ %i4 + 0xd8 ]                        
    _ISR_Disable( level );                                            
 200efe4:	7f ff cc 80 	call  20021e4 <sparc_disable_interrupts>       
 200efe8:	01 00 00 00 	nop                                            
      handler = (POSIX_Cancel_Handler_control *)                      
 200efec:	fa 07 20 ec 	ld  [ %i4 + 0xec ], %i5                        
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
 200eff0:	c4 07 40 00 	ld  [ %i5 ], %g2                               
  previous       = the_node->previous;                                
 200eff4:	c2 07 60 04 	ld  [ %i5 + 4 ], %g1                           
  next->previous = previous;                                          
 200eff8:	c2 20 a0 04 	st  %g1, [ %g2 + 4 ]                           
  previous->next = next;                                              
 200effc:	c4 20 40 00 	st  %g2, [ %g1 ]                               
           _Chain_Tail( handler_stack )->previous;                    
      _Chain_Extract_unprotected( &handler->Node );                   
    _ISR_Enable( level );                                             
 200f000:	7f ff cc 7d 	call  20021f4 <sparc_enable_interrupts>        
 200f004:	01 00 00 00 	nop                                            
                                                                      
    (*handler->routine)( handler->arg );                              
 200f008:	c2 07 60 08 	ld  [ %i5 + 8 ], %g1                           
 200f00c:	9f c0 40 00 	call  %g1                                      
 200f010:	d0 07 60 0c 	ld  [ %i5 + 0xc ], %o0                         
                                                                      
    _Workspace_Free( handler );                                       
 200f014:	7f ff ed 8b 	call  200a640 <_Workspace_Free>                
 200f018:	90 10 00 1d 	mov  %i5, %o0                                  
                                                                      
  handler_stack = &thread_support->Cancellation_Handlers;             
                                                                      
  thread_support->cancelability_state = PTHREAD_CANCEL_DISABLE;       
                                                                      
  while ( !_Chain_Is_empty( handler_stack ) ) {                       
 200f01c:	c2 07 20 e4 	ld  [ %i4 + 0xe4 ], %g1                        
 200f020:	80 a0 40 1b 	cmp  %g1, %i3                                  
 200f024:	12 bf ff f0 	bne  200efe4 <_POSIX_Threads_cancel_run+0x20>  <== NEVER TAKEN
 200f028:	01 00 00 00 	nop                                            
 200f02c:	81 c7 e0 08 	ret                                            
 200f030:	81 e8 00 00 	restore                                        
                                                                      

02006694 <_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) {
 2006694:	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;                              
 2006698:	c4 06 60 68 	ld  [ %i1 + 0x68 ], %g2                        
                                                                      
  /* The timer must be reprogrammed */                                
  if ( ( ptimer->timer_data.it_interval.tv_sec  != 0 ) ||             
 200669c:	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;                              
 20066a0:	84 00 a0 01 	inc  %g2                                       
                                                                      
  /* The timer must be reprogrammed */                                
  if ( ( ptimer->timer_data.it_interval.tv_sec  != 0 ) ||             
 20066a4:	80 a0 60 00 	cmp  %g1, 0                                    
 20066a8:	12 80 00 0e 	bne  20066e0 <_POSIX_Timer_TSR+0x4c>           
 20066ac:	c4 26 60 68 	st  %g2, [ %i1 + 0x68 ]                        
 20066b0:	c2 06 60 58 	ld  [ %i1 + 0x58 ], %g1                        
 20066b4:	80 a0 60 00 	cmp  %g1, 0                                    
 20066b8:	32 80 00 0b 	bne,a   20066e4 <_POSIX_Timer_TSR+0x50>        <== ALWAYS TAKEN
 20066bc:	d2 06 60 64 	ld  [ %i1 + 0x64 ], %o1                        
                                                                      
    /* The state really did not change but just to be safe */         
    ptimer->state = POSIX_TIMER_STATE_CREATE_RUN;                     
  } else {                                                            
   /* Indicates that the timer is stopped */                          
   ptimer->state = POSIX_TIMER_STATE_CREATE_STOP;                     
 20066c0:	82 10 20 04 	mov  4, %g1                                    <== NOT EXECUTED
 20066c4:	c2 2e 60 3c 	stb  %g1, [ %i1 + 0x3c ]                       <== NOT EXECUTED
  /*                                                                  
   * The sending of the signal to the process running the handling function
   * specified for that signal is simulated                           
   */                                                                 
                                                                      
  if ( pthread_kill ( ptimer->thread_id, ptimer->inf.sigev_signo ) ) {
 20066c8:	d0 06 60 38 	ld  [ %i1 + 0x38 ], %o0                        
 20066cc:	40 00 1a 34 	call  200cf9c <pthread_kill>                   
 20066d0:	d2 06 60 44 	ld  [ %i1 + 0x44 ], %o1                        
  }                                                                   
                                                                      
  /* After the signal handler returns, the count of expirations of the
   * timer must be set to 0.                                          
   */                                                                 
  ptimer->overrun = 0;                                                
 20066d4:	c0 26 60 68 	clr  [ %i1 + 0x68 ]                            
 20066d8:	81 c7 e0 08 	ret                                            
 20066dc:	81 e8 00 00 	restore                                        
  ptimer->overrun = ptimer->overrun + 1;                              
                                                                      
  /* The timer must be reprogrammed */                                
  if ( ( ptimer->timer_data.it_interval.tv_sec  != 0 ) ||             
       ( ptimer->timer_data.it_interval.tv_nsec != 0 ) ) {            
    activated = _POSIX_Timer_Insert_helper(                           
 20066e0:	d2 06 60 64 	ld  [ %i1 + 0x64 ], %o1                        
 20066e4:	d4 06 60 08 	ld  [ %i1 + 8 ], %o2                           
 20066e8:	90 06 60 10 	add  %i1, 0x10, %o0                            
 20066ec:	98 10 00 19 	mov  %i1, %o4                                  
 20066f0:	17 00 80 19 	sethi  %hi(0x2006400), %o3                     
 20066f4:	40 00 1b 51 	call  200d438 <_POSIX_Timer_Insert_helper>     
 20066f8:	96 12 e2 94 	or  %o3, 0x294, %o3	! 2006694 <_POSIX_Timer_TSR>
      ptimer->ticks,                                                  
      ptimer->Object.id,                                              
      _POSIX_Timer_TSR,                                               
      ptimer                                                          
    );                                                                
    if ( !activated )                                                 
 20066fc:	80 8a 20 ff 	btst  0xff, %o0                                
 2006700:	02 bf ff f6 	be  20066d8 <_POSIX_Timer_TSR+0x44>            <== NEVER TAKEN
 2006704:	01 00 00 00 	nop                                            
      return;                                                         
                                                                      
    /* Store the time when the timer was started again */             
    _TOD_Get( &ptimer->time );                                        
 2006708:	40 00 05 e7 	call  2007ea4 <_TOD_Get>                       
 200670c:	90 06 60 6c 	add  %i1, 0x6c, %o0                            
                                                                      
    /* The state really did not change but just to be safe */         
    ptimer->state = POSIX_TIMER_STATE_CREATE_RUN;                     
 2006710:	82 10 20 03 	mov  3, %g1                                    
 2006714:	10 bf ff ed 	b  20066c8 <_POSIX_Timer_TSR+0x34>             
 2006718:	c2 2e 60 3c 	stb  %g1, [ %i1 + 0x3c ]                       
                                                                      

0200f0ec <_POSIX_signals_Check_signal>: bool _POSIX_signals_Check_signal( POSIX_API_Control *api, int signo, bool is_global ) {
 200f0ec:	9d e3 bf 68 	save  %sp, -152, %sp                           
  siginfo_t                   siginfo_struct;                         
  sigset_t                    saved_signals_blocked;                  
  Thread_Wait_information     stored_thread_wait_information;         
                                                                      
  if ( ! _POSIX_signals_Clear_signals( api, signo, &siginfo_struct,   
 200f0f0:	98 10 20 01 	mov  1, %o4                                    
 200f0f4:	90 10 00 18 	mov  %i0, %o0                                  
 200f0f8:	92 10 00 19 	mov  %i1, %o1                                  
 200f0fc:	94 07 bf f4 	add  %fp, -12, %o2                             
 200f100:	40 00 00 2e 	call  200f1b8 <_POSIX_signals_Clear_signals>   
 200f104:	96 10 00 1a 	mov  %i2, %o3                                  
 200f108:	80 8a 20 ff 	btst  0xff, %o0                                
 200f10c:	02 80 00 23 	be  200f198 <_POSIX_signals_Check_signal+0xac> 
 200f110:	82 10 20 00 	clr  %g1                                       
  #endif                                                              
                                                                      
  /*                                                                  
   *  Just to prevent sending a signal which is currently being ignored.
   */                                                                 
  if ( _POSIX_signals_Vectors[ signo ].sa_handler == SIG_IGN )        
 200f114:	85 2e 60 02 	sll  %i1, 2, %g2                               
 200f118:	37 00 80 77 	sethi  %hi(0x201dc00), %i3                     
 200f11c:	b9 2e 60 04 	sll  %i1, 4, %i4                               
 200f120:	b6 16 e3 60 	or  %i3, 0x360, %i3                            
 200f124:	b8 27 00 02 	sub  %i4, %g2, %i4                             
 200f128:	84 06 c0 1c 	add  %i3, %i4, %g2                             
 200f12c:	fa 00 a0 08 	ld  [ %g2 + 8 ], %i5                           
 200f130:	80 a7 60 01 	cmp  %i5, 1                                    
 200f134:	02 80 00 19 	be  200f198 <_POSIX_signals_Check_signal+0xac> <== NEVER TAKEN
 200f138:	21 00 80 77 	sethi  %hi(0x201dc00), %l0                     
    return false;                                                     
                                                                      
  /*                                                                  
   *  Block the signals requested in sa_mask                          
   */                                                                 
  saved_signals_blocked = api->signals_blocked;                       
 200f13c:	f4 06 20 d0 	ld  [ %i0 + 0xd0 ], %i2                        
  api->signals_blocked |= _POSIX_signals_Vectors[ signo ].sa_mask;    
 200f140:	c2 00 a0 04 	ld  [ %g2 + 4 ], %g1                           
  /*                                                                  
   *  We have to save the blocking information of the current wait queue
   *  because the signal handler may subsequently go on and put the thread
   *  on a wait queue, for its own purposes.                          
   */                                                                 
  memcpy( &stored_thread_wait_information, &_Thread_Executing->Wait,  
 200f144:	a0 14 23 08 	or  %l0, 0x308, %l0                            
 200f148:	d2 04 20 0c 	ld  [ %l0 + 0xc ], %o1                         
                                                                      
  /*                                                                  
   *  Block the signals requested in sa_mask                          
   */                                                                 
  saved_signals_blocked = api->signals_blocked;                       
  api->signals_blocked |= _POSIX_signals_Vectors[ signo ].sa_mask;    
 200f14c:	82 10 40 1a 	or  %g1, %i2, %g1                              
  /*                                                                  
   *  We have to save the blocking information of the current wait queue
   *  because the signal handler may subsequently go on and put the thread
   *  on a wait queue, for its own purposes.                          
   */                                                                 
  memcpy( &stored_thread_wait_information, &_Thread_Executing->Wait,  
 200f150:	90 07 bf cc 	add  %fp, -52, %o0                             
                                                                      
  /*                                                                  
   *  Block the signals requested in sa_mask                          
   */                                                                 
  saved_signals_blocked = api->signals_blocked;                       
  api->signals_blocked |= _POSIX_signals_Vectors[ signo ].sa_mask;    
 200f154:	c2 26 20 d0 	st  %g1, [ %i0 + 0xd0 ]                        
  /*                                                                  
   *  We have to save the blocking information of the current wait queue
   *  because the signal handler may subsequently go on and put the thread
   *  on a wait queue, for its own purposes.                          
   */                                                                 
  memcpy( &stored_thread_wait_information, &_Thread_Executing->Wait,  
 200f158:	92 02 60 20 	add  %o1, 0x20, %o1                            
 200f15c:	40 00 04 6d 	call  2010310 <memcpy>                         
 200f160:	94 10 20 28 	mov  0x28, %o2                                 
          sizeof( Thread_Wait_information ));                         
                                                                      
  /*                                                                  
   *  Here, the signal handler function executes                      
   */                                                                 
  switch ( _POSIX_signals_Vectors[ signo ].sa_flags ) {               
 200f164:	c2 06 c0 1c 	ld  [ %i3 + %i4 ], %g1                         
 200f168:	80 a0 60 02 	cmp  %g1, 2                                    
 200f16c:	02 80 00 0e 	be  200f1a4 <_POSIX_signals_Check_signal+0xb8> 
 200f170:	90 10 00 19 	mov  %i1, %o0                                  
        &siginfo_struct,                                              
        NULL        /* context is undefined per 1003.1b-1993, p. 66 */
      );                                                              
      break;                                                          
    default:                                                          
      (*_POSIX_signals_Vectors[ signo ].sa_handler)( signo );         
 200f174:	9f c7 40 00 	call  %i5                                      
 200f178:	01 00 00 00 	nop                                            
  }                                                                   
                                                                      
  /*                                                                  
   *  Restore the blocking information                                
   */                                                                 
  memcpy( &_Thread_Executing->Wait, &stored_thread_wait_information,  
 200f17c:	d0 04 20 0c 	ld  [ %l0 + 0xc ], %o0                         
 200f180:	92 07 bf cc 	add  %fp, -52, %o1                             
 200f184:	90 02 20 20 	add  %o0, 0x20, %o0                            
 200f188:	40 00 04 62 	call  2010310 <memcpy>                         
 200f18c:	94 10 20 28 	mov  0x28, %o2                                 
  /*                                                                  
   *  Restore the previous set of blocked signals                     
   */                                                                 
  api->signals_blocked = saved_signals_blocked;                       
                                                                      
  return true;                                                        
 200f190:	82 10 20 01 	mov  1, %g1                                    
          sizeof( Thread_Wait_information ));                         
                                                                      
  /*                                                                  
   *  Restore the previous set of blocked signals                     
   */                                                                 
  api->signals_blocked = saved_signals_blocked;                       
 200f194:	f4 26 20 d0 	st  %i2, [ %i0 + 0xd0 ]                        
                                                                      
  return true;                                                        
}                                                                     
 200f198:	b0 08 60 01 	and  %g1, 1, %i0                               
 200f19c:	81 c7 e0 08 	ret                                            
 200f1a0:	81 e8 00 00 	restore                                        
  /*                                                                  
   *  Here, the signal handler function executes                      
   */                                                                 
  switch ( _POSIX_signals_Vectors[ signo ].sa_flags ) {               
    case SA_SIGINFO:                                                  
      (*_POSIX_signals_Vectors[ signo ].sa_sigaction)(                
 200f1a4:	92 07 bf f4 	add  %fp, -12, %o1                             
 200f1a8:	9f c7 40 00 	call  %i5                                      
 200f1ac:	94 10 20 00 	clr  %o2                                       
        signo,                                                        
        &siginfo_struct,                                              
        NULL        /* context is undefined per 1003.1b-1993, p. 66 */
      );                                                              
      break;                                                          
 200f1b0:	10 bf ff f4 	b  200f180 <_POSIX_signals_Check_signal+0x94>  
 200f1b4:	d0 04 20 0c 	ld  [ %l0 + 0xc ], %o0                         
                                                                      

0200f8f4 <_POSIX_signals_Clear_process_signals>: */ void _POSIX_signals_Clear_process_signals( int signo ) {
 200f8f4:	9d e3 bf a0 	save  %sp, -96, %sp                            
  clear_signal = true;                                                
  mask         = signo_to_mask( signo );                              
                                                                      
  ISR_Level  level;                                                   
                                                                      
  _ISR_Disable( level );                                              
 200f8f8:	7f ff ca 3b 	call  20021e4 <sparc_disable_interrupts>       
 200f8fc:	01 00 00 00 	nop                                            
    if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) {   
 200f900:	85 2e 20 04 	sll  %i0, 4, %g2                               
 200f904:	83 2e 20 02 	sll  %i0, 2, %g1                               
 200f908:	82 20 80 01 	sub  %g2, %g1, %g1                             
 200f90c:	05 00 80 77 	sethi  %hi(0x201dc00), %g2                     
 200f910:	84 10 a3 60 	or  %g2, 0x360, %g2	! 201df60 <_POSIX_signals_Vectors>
 200f914:	c4 00 80 01 	ld  [ %g2 + %g1 ], %g2                         
 200f918:	80 a0 a0 02 	cmp  %g2, 2                                    
 200f91c:	02 80 00 0b 	be  200f948 <_POSIX_signals_Clear_process_signals+0x54>
 200f920:	05 00 80 78 	sethi  %hi(0x201e000), %g2                     
      if ( !_Chain_Is_empty( &_POSIX_signals_Siginfo[ signo ] ) )     
       clear_signal = false;                                          
    }                                                                 
    if ( clear_signal ) {                                             
      _POSIX_signals_Pending &= ~mask;                                
 200f924:	03 00 80 78 	sethi  %hi(0x201e000), %g1                     
 200f928:	c4 00 61 54 	ld  [ %g1 + 0x154 ], %g2	! 201e154 <_POSIX_signals_Pending>
 200f92c:	86 10 20 01 	mov  1, %g3                                    
 200f930:	b0 06 3f ff 	add  %i0, -1, %i0                              
 200f934:	b1 28 c0 18 	sll  %g3, %i0, %i0                             
 200f938:	b0 28 80 18 	andn  %g2, %i0, %i0                            
 200f93c:	f0 20 61 54 	st  %i0, [ %g1 + 0x154 ]                       
    }                                                                 
  _ISR_Enable( level );                                               
 200f940:	7f ff ca 2d 	call  20021f4 <sparc_enable_interrupts>        
 200f944:	91 e8 00 08 	restore  %g0, %o0, %o0                         
                                                                      
  ISR_Level  level;                                                   
                                                                      
  _ISR_Disable( level );                                              
    if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) {   
      if ( !_Chain_Is_empty( &_POSIX_signals_Siginfo[ signo ] ) )     
 200f948:	84 10 a1 58 	or  %g2, 0x158, %g2                            
 200f94c:	c6 00 40 02 	ld  [ %g1 + %g2 ], %g3                         
 200f950:	82 00 40 02 	add  %g1, %g2, %g1                             
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
 200f954:	82 00 60 04 	add  %g1, 4, %g1                               
 200f958:	80 a0 c0 01 	cmp  %g3, %g1                                  
 200f95c:	02 bf ff f3 	be  200f928 <_POSIX_signals_Clear_process_signals+0x34><== ALWAYS TAKEN
 200f960:	03 00 80 78 	sethi  %hi(0x201e000), %g1                     
       clear_signal = false;                                          
    }                                                                 
    if ( clear_signal ) {                                             
      _POSIX_signals_Pending &= ~mask;                                
    }                                                                 
  _ISR_Enable( level );                                               
 200f964:	7f ff ca 24 	call  20021f4 <sparc_enable_interrupts>        <== NOT EXECUTED
 200f968:	91 e8 00 08 	restore  %g0, %o0, %o0                         <== NOT EXECUTED
                                                                      

020070ec <_POSIX_signals_Get_lowest>: sigset_t set ) { int signo; for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) {
 20070ec:	82 10 20 1b 	mov  0x1b, %g1                                 
 20070f0:	86 10 20 01 	mov  1, %g3                                    
#include <rtems/posix/psignal.h>                                      
#include <rtems/seterr.h>                                             
#include <rtems/posix/time.h>                                         
#include <rtems/score/isr.h>                                          
                                                                      
int _POSIX_signals_Get_lowest(                                        
 20070f4:	84 00 7f ff 	add  %g1, -1, %g2                              
 20070f8:	85 28 c0 02 	sll  %g3, %g2, %g2                             
)                                                                     
{                                                                     
  int signo;                                                          
                                                                      
  for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) {            
    if ( set & signo_to_mask( signo ) ) {                             
 20070fc:	80 88 80 08 	btst  %g2, %o0                                 
 2007100:	12 80 00 11 	bne  2007144 <_POSIX_signals_Get_lowest+0x58>  <== NEVER TAKEN
 2007104:	01 00 00 00 	nop                                            
  sigset_t   set                                                      
)                                                                     
{                                                                     
  int signo;                                                          
                                                                      
  for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) {            
 2007108:	82 00 60 01 	inc  %g1                                       
 200710c:	80 a0 60 20 	cmp  %g1, 0x20                                 
 2007110:	12 bf ff fa 	bne  20070f8 <_POSIX_signals_Get_lowest+0xc>   
 2007114:	84 00 7f ff 	add  %g1, -1, %g2                              
 2007118:	82 10 20 01 	mov  1, %g1                                    
 200711c:	10 80 00 05 	b  2007130 <_POSIX_signals_Get_lowest+0x44>    
 2007120:	86 10 20 01 	mov  1, %g3                                    
   */                                                                 
                                                                      
  #if (SIGHUP != 1)                                                   
    #error "Assumption that SIGHUP==1 violated!!"                     
  #endif                                                              
  for ( signo = SIGHUP ; signo <= __SIGLASTNOTRT ; signo++ ) {        
 2007124:	80 a0 60 1b 	cmp  %g1, 0x1b                                 
 2007128:	02 80 00 07 	be  2007144 <_POSIX_signals_Get_lowest+0x58>   <== NEVER TAKEN
 200712c:	01 00 00 00 	nop                                            
#include <rtems/posix/psignal.h>                                      
#include <rtems/seterr.h>                                             
#include <rtems/posix/time.h>                                         
#include <rtems/score/isr.h>                                          
                                                                      
int _POSIX_signals_Get_lowest(                                        
 2007130:	84 00 7f ff 	add  %g1, -1, %g2                              
 2007134:	85 28 c0 02 	sll  %g3, %g2, %g2                             
                                                                      
  #if (SIGHUP != 1)                                                   
    #error "Assumption that SIGHUP==1 violated!!"                     
  #endif                                                              
  for ( signo = SIGHUP ; signo <= __SIGLASTNOTRT ; signo++ ) {        
    if ( set & signo_to_mask( signo ) ) {                             
 2007138:	80 88 80 08 	btst  %g2, %o0                                 
 200713c:	22 bf ff fa 	be,a   2007124 <_POSIX_signals_Get_lowest+0x38>
 2007140:	82 00 60 01 	inc  %g1                                       
   *  a return 0.  This routine will NOT be called unless a signal    
   *  is pending in the set passed in.                                
   */                                                                 
found_it:                                                             
  return signo;                                                       
}                                                                     
 2007144:	81 c3 e0 08 	retl                                           
 2007148:	90 10 00 01 	mov  %g1, %o0                                  
                                                                      

0200c6cc <_POSIX_signals_Post_switch_extension>: */ void _POSIX_signals_Post_switch_extension( Thread_Control *the_thread ) {
 200c6cc:	9d e3 bf a0 	save  %sp, -96, %sp                            
  POSIX_API_Control  *api;                                            
  int                 signo;                                          
  ISR_Level           level;                                          
                                                                      
  api = the_thread->API_Extensions[ THREAD_API_POSIX ];               
 200c6d0:	f8 06 21 5c 	ld  [ %i0 + 0x15c ], %i4                       
                                                                      
  /*                                                                  
   * api may be NULL in case of a thread close in progress            
   */                                                                 
  if ( !api )                                                         
 200c6d4:	80 a7 20 00 	cmp  %i4, 0                                    
 200c6d8:	02 80 00 34 	be  200c7a8 <_POSIX_signals_Post_switch_extension+0xdc>
 200c6dc:	01 00 00 00 	nop                                            
   *                                                                  
   *  The first thing done is to check there are any signals to be    
   *  processed at all.  No point in doing this loop otherwise.       
   */                                                                 
  while (1) {                                                         
    _ISR_Disable( level );                                            
 200c6e0:	7f ff d6 c1 	call  20021e4 <sparc_disable_interrupts>       
 200c6e4:	37 00 80 78 	sethi  %hi(0x201e000), %i3                     
 200c6e8:	b0 10 00 08 	mov  %o0, %i0                                  
 200c6ec:	b6 16 e1 54 	or  %i3, 0x154, %i3                            
      if ( !(~api->signals_blocked &                                  
            (api->signals_pending | _POSIX_signals_Pending)) ) {      
 200c6f0:	c6 06 c0 00 	ld  [ %i3 ], %g3                               
 200c6f4:	c2 07 20 d4 	ld  [ %i4 + 0xd4 ], %g1                        
   *  The first thing done is to check there are any signals to be    
   *  processed at all.  No point in doing this loop otherwise.       
   */                                                                 
  while (1) {                                                         
    _ISR_Disable( level );                                            
      if ( !(~api->signals_blocked &                                  
 200c6f8:	c4 07 20 d0 	ld  [ %i4 + 0xd0 ], %g2                        
            (api->signals_pending | _POSIX_signals_Pending)) ) {      
 200c6fc:	82 10 c0 01 	or  %g3, %g1, %g1                              
   *  The first thing done is to check there are any signals to be    
   *  processed at all.  No point in doing this loop otherwise.       
   */                                                                 
  while (1) {                                                         
    _ISR_Disable( level );                                            
      if ( !(~api->signals_blocked &                                  
 200c700:	80 a8 40 02 	andncc  %g1, %g2, %g0                          
 200c704:	02 80 00 27 	be  200c7a0 <_POSIX_signals_Post_switch_extension+0xd4>
 200c708:	01 00 00 00 	nop                                            
            (api->signals_pending | _POSIX_signals_Pending)) ) {      
       _ISR_Enable( level );                                          
       break;                                                         
     }                                                                
    _ISR_Enable( level );                                             
 200c70c:	7f ff d6 ba 	call  20021f4 <sparc_enable_interrupts>        
 200c710:	ba 10 20 1b 	mov  0x1b, %i5	! 1b <PROM_START+0x1b>          
                                                                      
    for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) {          
      _POSIX_signals_Check_signal( api, signo, false );               
 200c714:	92 10 00 1d 	mov  %i5, %o1                                  
 200c718:	94 10 20 00 	clr  %o2                                       
 200c71c:	40 00 0a 74 	call  200f0ec <_POSIX_signals_Check_signal>    
 200c720:	90 10 00 1c 	mov  %i4, %o0                                  
      _POSIX_signals_Check_signal( api, signo, true );                
 200c724:	92 10 00 1d 	mov  %i5, %o1                                  
 200c728:	90 10 00 1c 	mov  %i4, %o0                                  
 200c72c:	40 00 0a 70 	call  200f0ec <_POSIX_signals_Check_signal>    
 200c730:	94 10 20 01 	mov  1, %o2                                    
       _ISR_Enable( level );                                          
       break;                                                         
     }                                                                
    _ISR_Enable( level );                                             
                                                                      
    for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) {          
 200c734:	ba 07 60 01 	inc  %i5                                       
 200c738:	80 a7 60 20 	cmp  %i5, 0x20                                 
 200c73c:	12 bf ff f7 	bne  200c718 <_POSIX_signals_Post_switch_extension+0x4c>
 200c740:	92 10 00 1d 	mov  %i5, %o1                                  
 200c744:	ba 10 20 01 	mov  1, %i5                                    
      _POSIX_signals_Check_signal( api, signo, true );                
    }                                                                 
    /* Unfortunately - nothing like __SIGFIRSTNOTRT in newlib signal .h */
                                                                      
    for ( signo = SIGHUP ; signo <= __SIGLASTNOTRT ; signo++ ) {      
      _POSIX_signals_Check_signal( api, signo, false );               
 200c748:	92 10 00 1d 	mov  %i5, %o1                                  
 200c74c:	94 10 20 00 	clr  %o2                                       
 200c750:	40 00 0a 67 	call  200f0ec <_POSIX_signals_Check_signal>    
 200c754:	90 10 00 1c 	mov  %i4, %o0                                  
      _POSIX_signals_Check_signal( api, signo, true );                
 200c758:	92 10 00 1d 	mov  %i5, %o1                                  
 200c75c:	90 10 00 1c 	mov  %i4, %o0                                  
 200c760:	40 00 0a 63 	call  200f0ec <_POSIX_signals_Check_signal>    
 200c764:	94 10 20 01 	mov  1, %o2                                    
      _POSIX_signals_Check_signal( api, signo, false );               
      _POSIX_signals_Check_signal( api, signo, true );                
    }                                                                 
    /* Unfortunately - nothing like __SIGFIRSTNOTRT in newlib signal .h */
                                                                      
    for ( signo = SIGHUP ; signo <= __SIGLASTNOTRT ; signo++ ) {      
 200c768:	ba 07 60 01 	inc  %i5                                       
 200c76c:	80 a7 60 1b 	cmp  %i5, 0x1b                                 
 200c770:	12 bf ff f7 	bne  200c74c <_POSIX_signals_Post_switch_extension+0x80>
 200c774:	92 10 00 1d 	mov  %i5, %o1                                  
   *                                                                  
   *  The first thing done is to check there are any signals to be    
   *  processed at all.  No point in doing this loop otherwise.       
   */                                                                 
  while (1) {                                                         
    _ISR_Disable( level );                                            
 200c778:	7f ff d6 9b 	call  20021e4 <sparc_disable_interrupts>       
 200c77c:	01 00 00 00 	nop                                            
 200c780:	b0 10 00 08 	mov  %o0, %i0                                  
      if ( !(~api->signals_blocked &                                  
            (api->signals_pending | _POSIX_signals_Pending)) ) {      
 200c784:	c6 06 c0 00 	ld  [ %i3 ], %g3                               
 200c788:	c2 07 20 d4 	ld  [ %i4 + 0xd4 ], %g1                        
   *  The first thing done is to check there are any signals to be    
   *  processed at all.  No point in doing this loop otherwise.       
   */                                                                 
  while (1) {                                                         
    _ISR_Disable( level );                                            
      if ( !(~api->signals_blocked &                                  
 200c78c:	c4 07 20 d0 	ld  [ %i4 + 0xd0 ], %g2                        
            (api->signals_pending | _POSIX_signals_Pending)) ) {      
 200c790:	82 10 c0 01 	or  %g3, %g1, %g1                              
   *  The first thing done is to check there are any signals to be    
   *  processed at all.  No point in doing this loop otherwise.       
   */                                                                 
  while (1) {                                                         
    _ISR_Disable( level );                                            
      if ( !(~api->signals_blocked &                                  
 200c794:	80 a8 40 02 	andncc  %g1, %g2, %g0                          
 200c798:	12 bf ff dd 	bne  200c70c <_POSIX_signals_Post_switch_extension+0x40><== NEVER TAKEN
 200c79c:	01 00 00 00 	nop                                            
            (api->signals_pending | _POSIX_signals_Pending)) ) {      
       _ISR_Enable( level );                                          
 200c7a0:	7f ff d6 95 	call  20021f4 <sparc_enable_interrupts>        
 200c7a4:	81 e8 00 00 	restore                                        
 200c7a8:	81 c7 e0 08 	ret                                            
 200c7ac:	81 e8 00 00 	restore                                        
                                                                      

0201a6f8 <_POSIX_signals_Unblock_thread>: bool _POSIX_signals_Unblock_thread( Thread_Control *the_thread, int signo, siginfo_t *info ) {
 201a6f8:	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 ) ) {
 201a6fc:	c2 06 20 10 	ld  [ %i0 + 0x10 ], %g1                        
 201a700:	05 04 00 20 	sethi  %hi(0x10008000), %g2                    
 201a704:	86 10 20 01 	mov  1, %g3                                    
 201a708:	ba 06 7f ff 	add  %i1, -1, %i5                              
 201a70c:	88 08 40 02 	and  %g1, %g2, %g4                             
{                                                                     
  POSIX_API_Control  *api;                                            
  sigset_t            mask;                                           
  siginfo_t          *the_info = NULL;                                
                                                                      
  api = the_thread->API_Extensions[ THREAD_API_POSIX ];               
 201a710:	da 06 21 5c 	ld  [ %i0 + 0x15c ], %o5                       
                                                                      
  /*                                                                  
   *  Is the thread is specifically waiting for a signal?             
   */                                                                 
                                                                      
  if ( _States_Is_interruptible_signal( the_thread->current_state ) ) {
 201a714:	80 a1 00 02 	cmp  %g4, %g2                                  
 201a718:	02 80 00 1c 	be  201a788 <_POSIX_signals_Unblock_thread+0x90>
 201a71c:	9f 28 c0 1d 	sll  %g3, %i5, %o7                             
  }                                                                   
                                                                      
  /*                                                                  
   *  Thread is not waiting due to a sigwait.                         
   */                                                                 
  if ( ~api->signals_blocked & mask ) {                               
 201a720:	c4 03 60 d0 	ld  [ %o5 + 0xd0 ], %g2                        
 201a724:	80 ab c0 02 	andncc  %o7, %g2, %g0                          
 201a728:	02 80 00 15 	be  201a77c <_POSIX_signals_Unblock_thread+0x84>
 201a72c:	ba 10 20 00 	clr  %i5                                       
 201a730:	05 04 00 00 	sethi  %hi(0x10000000), %g2                    
     *      it is not blocked, THEN                                   
     *        we need to dispatch at the end of this ISR.             
     *    + Any other combination, do nothing.                        
     */                                                               
                                                                      
    if ( _States_Is_interruptible_by_signal( the_thread->current_state ) ) {
 201a734:	80 88 40 02 	btst  %g1, %g2                                 
 201a738:	02 80 00 29 	be  201a7dc <_POSIX_signals_Unblock_thread+0xe4>
 201a73c:	80 a0 60 00 	cmp  %g1, 0                                    
      the_thread->Wait.return_code = EINTR;                           
 201a740:	84 10 20 04 	mov  4, %g2                                    
 201a744:	c4 26 20 34 	st  %g2, [ %i0 + 0x34 ]                        
 */                                                                   
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_on_thread_queue (        
  States_Control the_states                                           
)                                                                     
{                                                                     
   return (the_states & STATES_WAITING_ON_THREAD_QUEUE);              
 201a748:	05 00 00 ef 	sethi  %hi(0x3bc00), %g2                       
 201a74c:	84 10 a2 e0 	or  %g2, 0x2e0, %g2	! 3bee0 <PROM_START+0x3bee0>
      /*                                                              
       *  In pthread_cond_wait, a thread will be blocking on a thread 
       *  queue, but is also interruptible by a POSIX signal.         
       */                                                             
       if ( _States_Is_waiting_on_thread_queue(the_thread->current_state) )
 201a750:	80 88 40 02 	btst  %g1, %g2                                 
 201a754:	12 80 00 36 	bne  201a82c <_POSIX_signals_Unblock_thread+0x134>
 201a758:	80 88 60 08 	btst  8, %g1                                   
         _Thread_queue_Extract_with_proxy( the_thread );              
       else if ( _States_Is_delaying(the_thread->current_state) ) {   
 201a75c:	22 80 00 09 	be,a   201a780 <_POSIX_signals_Unblock_thread+0x88><== NEVER TAKEN
 201a760:	b0 0f 60 01 	and  %i5, 1, %i0                               <== NOT EXECUTED
          (void) _Watchdog_Remove( &the_thread->Timer );              
 201a764:	7f ff bf 33 	call  200a430 <_Watchdog_Remove>               
 201a768:	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 );                  
 201a76c:	13 04 00 ff 	sethi  %hi(0x1003fc00), %o1                    
 201a770:	90 10 00 18 	mov  %i0, %o0                                  
 201a774:	7f ff ba 1c 	call  2008fe4 <_Thread_Clear_state>            
 201a778:	92 12 63 f8 	or  %o1, 0x3f8, %o1                            
      if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
        _Thread_Dispatch_necessary = true;                            
    }                                                                 
  }                                                                   
  return false;                                                       
}                                                                     
 201a77c:	b0 0f 60 01 	and  %i5, 1, %i0                               
 201a780:	81 c7 e0 08 	ret                                            
 201a784:	81 e8 00 00 	restore                                        
   *  Is the thread is specifically waiting for a signal?             
   */                                                                 
                                                                      
  if ( _States_Is_interruptible_signal( the_thread->current_state ) ) {
                                                                      
    if ( (the_thread->Wait.option & mask) || (~api->signals_blocked & mask) ) {
 201a788:	c2 06 20 30 	ld  [ %i0 + 0x30 ], %g1                        
 201a78c:	80 8b c0 01 	btst  %o7, %g1                                 
 201a790:	22 80 00 21 	be,a   201a814 <_POSIX_signals_Unblock_thread+0x11c>
 201a794:	c2 03 60 d0 	ld  [ %o5 + 0xd0 ], %g1                        
      the_thread->Wait.return_code = EINTR;                           
 201a798:	82 10 20 04 	mov  4, %g1                                    
 201a79c:	c2 26 20 34 	st  %g1, [ %i0 + 0x34 ]                        
                                                                      
      the_info = (siginfo_t *) the_thread->Wait.return_argument;      
                                                                      
      if ( !info ) {                                                  
 201a7a0:	80 a6 a0 00 	cmp  %i2, 0                                    
 201a7a4:	02 80 00 27 	be  201a840 <_POSIX_signals_Unblock_thread+0x148>
 201a7a8:	c2 06 20 28 	ld  [ %i0 + 0x28 ], %g1                        
        the_info->si_signo = signo;                                   
        the_info->si_code = SI_USER;                                  
        the_info->si_value.sival_int = 0;                             
      } else {                                                        
        *the_info = *info;                                            
 201a7ac:	c4 06 80 00 	ld  [ %i2 ], %g2                               
 201a7b0:	c4 20 40 00 	st  %g2, [ %g1 ]                               
 201a7b4:	c4 06 a0 04 	ld  [ %i2 + 4 ], %g2                           
 201a7b8:	c4 20 60 04 	st  %g2, [ %g1 + 4 ]                           
 201a7bc:	c4 06 a0 08 	ld  [ %i2 + 8 ], %g2                           
 201a7c0:	c4 20 60 08 	st  %g2, [ %g1 + 8 ]                           
      }                                                               
                                                                      
      _Thread_queue_Extract_with_proxy( the_thread );                 
 201a7c4:	90 10 00 18 	mov  %i0, %o0                                  
 201a7c8:	7f ff bc ed 	call  2009b7c <_Thread_queue_Extract_with_proxy>
 201a7cc:	ba 10 20 01 	mov  1, %i5                                    
      if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
        _Thread_Dispatch_necessary = true;                            
    }                                                                 
  }                                                                   
  return false;                                                       
}                                                                     
 201a7d0:	b0 0f 60 01 	and  %i5, 1, %i0                               
 201a7d4:	81 c7 e0 08 	ret                                            
 201a7d8:	81 e8 00 00 	restore                                        
       else if ( _States_Is_delaying(the_thread->current_state) ) {   
          (void) _Watchdog_Remove( &the_thread->Timer );              
          _Thread_Unblock( the_thread );                              
       }                                                              
                                                                      
    } else if ( the_thread->current_state == STATES_READY ) {         
 201a7dc:	12 bf ff e8 	bne  201a77c <_POSIX_signals_Unblock_thread+0x84><== NEVER TAKEN
 201a7e0:	03 00 80 77 	sethi  %hi(0x201dc00), %g1                     
      if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
 201a7e4:	82 10 63 08 	or  %g1, 0x308, %g1	! 201df08 <_Per_CPU_Information>
 201a7e8:	c4 00 60 08 	ld  [ %g1 + 8 ], %g2                           
 201a7ec:	80 a0 a0 00 	cmp  %g2, 0                                    
 201a7f0:	22 bf ff e4 	be,a   201a780 <_POSIX_signals_Unblock_thread+0x88>
 201a7f4:	b0 0f 60 01 	and  %i5, 1, %i0                               
 201a7f8:	c4 00 60 0c 	ld  [ %g1 + 0xc ], %g2                         
 201a7fc:	80 a6 00 02 	cmp  %i0, %g2                                  
 201a800:	22 bf ff df 	be,a   201a77c <_POSIX_signals_Unblock_thread+0x84><== ALWAYS TAKEN
 201a804:	c6 28 60 18 	stb  %g3, [ %g1 + 0x18 ]                       
 201a808:	b0 0f 60 01 	and  %i5, 1, %i0                               <== NOT EXECUTED
 201a80c:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 201a810:	81 e8 00 00 	restore                                        <== NOT EXECUTED
   *  Is the thread is specifically waiting for a signal?             
   */                                                                 
                                                                      
  if ( _States_Is_interruptible_signal( the_thread->current_state ) ) {
                                                                      
    if ( (the_thread->Wait.option & mask) || (~api->signals_blocked & mask) ) {
 201a814:	80 ab c0 01 	andncc  %o7, %g1, %g0                          
 201a818:	12 bf ff e0 	bne  201a798 <_POSIX_signals_Unblock_thread+0xa0>
 201a81c:	ba 10 20 00 	clr  %i5                                       
 201a820:	b0 0f 60 01 	and  %i5, 1, %i0                               
 201a824:	81 c7 e0 08 	ret                                            
 201a828:	81 e8 00 00 	restore                                        
      /*                                                              
       *  In pthread_cond_wait, a thread will be blocking on a thread 
       *  queue, but is also interruptible by a POSIX signal.         
       */                                                             
       if ( _States_Is_waiting_on_thread_queue(the_thread->current_state) )
         _Thread_queue_Extract_with_proxy( the_thread );              
 201a82c:	7f ff bc d4 	call  2009b7c <_Thread_queue_Extract_with_proxy>
 201a830:	90 10 00 18 	mov  %i0, %o0                                  
 201a834:	b0 0f 60 01 	and  %i5, 1, %i0                               
 201a838:	81 c7 e0 08 	ret                                            
 201a83c:	81 e8 00 00 	restore                                        
                                                                      
      the_info = (siginfo_t *) the_thread->Wait.return_argument;      
                                                                      
      if ( !info ) {                                                  
        the_info->si_signo = signo;                                   
        the_info->si_code = SI_USER;                                  
 201a840:	84 10 20 01 	mov  1, %g2                                    
      the_thread->Wait.return_code = EINTR;                           
                                                                      
      the_info = (siginfo_t *) the_thread->Wait.return_argument;      
                                                                      
      if ( !info ) {                                                  
        the_info->si_signo = signo;                                   
 201a844:	f2 20 40 00 	st  %i1, [ %g1 ]                               
        the_info->si_code = SI_USER;                                  
 201a848:	c4 20 60 04 	st  %g2, [ %g1 + 4 ]                           
        the_info->si_value.sival_int = 0;                             
 201a84c:	10 bf ff de 	b  201a7c4 <_POSIX_signals_Unblock_thread+0xcc>
 201a850:	c0 20 60 08 	clr  [ %g1 + 8 ]                               
                                                                      

02009074 <_RBTree_Extract_unprotected>: */ void _RBTree_Extract_unprotected( RBTree_Control *the_rbtree, RBTree_Node *the_node ) {
 2009074:	9d e3 bf a0 	save  %sp, -96, %sp                            
  RBTree_Node *leaf, *target;                                         
  RBTree_Color victim_color;                                          
  RBTree_Direction dir;                                               
                                                                      
  if(!the_node) return;                                               
 2009078:	80 a6 60 00 	cmp  %i1, 0                                    
 200907c:	02 80 00 52 	be  20091c4 <_RBTree_Extract_unprotected+0x150>
 2009080:	01 00 00 00 	nop                                            
                                                                      
  /* check if min needs to be updated */                              
  if (the_node == the_rbtree->first[RBT_LEFT]) {                      
 2009084:	c2 06 20 08 	ld  [ %i0 + 8 ], %g1                           
 2009088:	80 a0 40 19 	cmp  %g1, %i1                                  
 200908c:	22 80 00 5f 	be,a   2009208 <_RBTree_Extract_unprotected+0x194>
 2009090:	c2 06 60 08 	ld  [ %i1 + 8 ], %g1                           
            the_rbtree->first[RBT_LEFT]))                             
        the_rbtree->first[RBT_LEFT] = NULL;                           
    }                                                                 
  }                                                                   
  /* check if max needs to be updated: note, min can equal max (1 element) */
  if (the_node == the_rbtree->first[RBT_RIGHT]) {                     
 2009094:	c2 06 20 0c 	ld  [ %i0 + 0xc ], %g1                         
 2009098:	80 a0 40 19 	cmp  %g1, %i1                                  
 200909c:	22 80 00 4c 	be,a   20091cc <_RBTree_Extract_unprotected+0x158>
 20090a0:	c2 06 60 04 	ld  [ %i1 + 4 ], %g1                           
   * either max in node->child[RBT_LEFT] or min in node->child[RBT_RIGHT],
   * and replace the_node with the target node. This maintains the binary
   * search tree property, but may violate the red-black properties.  
   */                                                                 
                                                                      
  if (the_node->child[RBT_LEFT] && the_node->child[RBT_RIGHT]) {      
 20090a4:	fa 06 60 04 	ld  [ %i1 + 4 ], %i5                           
 20090a8:	80 a7 60 00 	cmp  %i5, 0                                    
 20090ac:	22 80 00 50 	be,a   20091ec <_RBTree_Extract_unprotected+0x178>
 20090b0:	f8 06 60 08 	ld  [ %i1 + 8 ], %i4                           
 20090b4:	c2 06 60 08 	ld  [ %i1 + 8 ], %g1                           
 20090b8:	80 a0 60 00 	cmp  %g1, 0                                    
 20090bc:	32 80 00 05 	bne,a   20090d0 <_RBTree_Extract_unprotected+0x5c>
 20090c0:	c2 07 60 08 	ld  [ %i5 + 8 ], %g1                           
 20090c4:	10 80 00 56 	b  200921c <_RBTree_Extract_unprotected+0x1a8> 
 20090c8:	b8 10 00 1d 	mov  %i5, %i4                                  
    target = the_node->child[RBT_LEFT]; /* find max in node->child[RBT_LEFT] */
    while (target->child[RBT_RIGHT]) target = target->child[RBT_RIGHT];
 20090cc:	c2 07 60 08 	ld  [ %i5 + 8 ], %g1                           
 20090d0:	80 a0 60 00 	cmp  %g1, 0                                    
 20090d4:	32 bf ff fe 	bne,a   20090cc <_RBTree_Extract_unprotected+0x58>
 20090d8:	ba 10 00 01 	mov  %g1, %i5                                  
     * target's position (target is the right child of target->parent)
     * when target vacates it. if there is no child, then target->parent
     * should become NULL. This may cause the coloring to be violated.
     * For now we store the color of the node being deleted in victim_color.
     */                                                               
     leaf = target->child[RBT_LEFT];                                  
 20090dc:	f8 07 60 04 	ld  [ %i5 + 4 ], %i4                           
    if(leaf) {                                                        
 20090e0:	80 a7 20 00 	cmp  %i4, 0                                    
 20090e4:	02 80 00 5a 	be  200924c <_RBTree_Extract_unprotected+0x1d8><== ALWAYS TAKEN
 20090e8:	01 00 00 00 	nop                                            
      leaf->parent = target->parent;                                  
 20090ec:	c2 07 40 00 	ld  [ %i5 ], %g1                               <== NOT EXECUTED
 20090f0:	c2 27 00 00 	st  %g1, [ %i4 ]                               <== NOT EXECUTED
    } else {                                                          
      /* fix the tree here if the child is a null leaf. */            
      _RBTree_Extract_validate_unprotected(target);                   
    }                                                                 
    victim_color = target->color;                                     
    dir = target != target->parent->child[0];                         
 20090f4:	c4 07 40 00 	ld  [ %i5 ], %g2                               <== NOT EXECUTED
    target->parent->child[dir] = leaf;                                
                                                                      
    /* now replace the_node with target */                            
    dir = the_node != the_node->parent->child[0];                     
 20090f8:	c2 06 40 00 	ld  [ %i1 ], %g1                               
    } else {                                                          
      /* fix the tree here if the child is a null leaf. */            
      _RBTree_Extract_validate_unprotected(target);                   
    }                                                                 
    victim_color = target->color;                                     
    dir = target != target->parent->child[0];                         
 20090fc:	c8 00 a0 04 	ld  [ %g2 + 4 ], %g4                           
      leaf->parent = target->parent;                                  
    } else {                                                          
      /* fix the tree here if the child is a null leaf. */            
      _RBTree_Extract_validate_unprotected(target);                   
    }                                                                 
    victim_color = target->color;                                     
 2009100:	c6 07 60 10 	ld  [ %i5 + 0x10 ], %g3                        
    dir = target != target->parent->child[0];                         
 2009104:	88 19 00 1d 	xor  %g4, %i5, %g4                             
 2009108:	80 a0 00 04 	cmp  %g0, %g4                                  
 200910c:	88 40 20 00 	addx  %g0, 0, %g4                              
    target->parent->child[dir] = leaf;                                
 2009110:	89 29 20 02 	sll  %g4, 2, %g4                               
 2009114:	84 00 80 04 	add  %g2, %g4, %g2                             
 2009118:	f8 20 a0 04 	st  %i4, [ %g2 + 4 ]                           
                                                                      
    /* now replace the_node with target */                            
    dir = the_node != the_node->parent->child[0];                     
 200911c:	c4 00 60 04 	ld  [ %g1 + 4 ], %g2                           
 2009120:	84 18 80 19 	xor  %g2, %i1, %g2                             
 2009124:	80 a0 00 02 	cmp  %g0, %g2                                  
 2009128:	84 40 20 00 	addx  %g0, 0, %g2                              
    the_node->parent->child[dir] = target;                            
 200912c:	85 28 a0 02 	sll  %g2, 2, %g2                               
 2009130:	82 00 40 02 	add  %g1, %g2, %g1                             
 2009134:	fa 20 60 04 	st  %i5, [ %g1 + 4 ]                           
                                                                      
    /* set target's new children to the original node's children */   
    target->child[RBT_RIGHT] = the_node->child[RBT_RIGHT];            
 2009138:	c2 06 60 08 	ld  [ %i1 + 8 ], %g1                           
 200913c:	c2 27 60 08 	st  %g1, [ %i5 + 8 ]                           
    if (the_node->child[RBT_RIGHT])                                   
 2009140:	c2 06 60 08 	ld  [ %i1 + 8 ], %g1                           
 2009144:	80 a0 60 00 	cmp  %g1, 0                                    
 2009148:	32 80 00 02 	bne,a   2009150 <_RBTree_Extract_unprotected+0xdc><== ALWAYS TAKEN
 200914c:	fa 20 40 00 	st  %i5, [ %g1 ]                               
      the_node->child[RBT_RIGHT]->parent = target;                    
    target->child[RBT_LEFT] = the_node->child[RBT_LEFT];              
 2009150:	c2 06 60 04 	ld  [ %i1 + 4 ], %g1                           
 2009154:	c2 27 60 04 	st  %g1, [ %i5 + 4 ]                           
    if (the_node->child[RBT_LEFT])                                    
 2009158:	c2 06 60 04 	ld  [ %i1 + 4 ], %g1                           
 200915c:	80 a0 60 00 	cmp  %g1, 0                                    
 2009160:	32 80 00 02 	bne,a   2009168 <_RBTree_Extract_unprotected+0xf4>
 2009164:	fa 20 40 00 	st  %i5, [ %g1 ]                               
    /* finally, update the parent node and recolor. target has completely
     * replaced the_node, and target's child has moved up the tree if needed.
     * the_node is no longer part of the tree, although it has valid pointers
     * still.                                                         
     */                                                               
    target->parent = the_node->parent;                                
 2009168:	c4 06 40 00 	ld  [ %i1 ], %g2                               
    target->color = the_node->color;                                  
 200916c:	c2 06 60 10 	ld  [ %i1 + 0x10 ], %g1                        
    /* finally, update the parent node and recolor. target has completely
     * replaced the_node, and target's child has moved up the tree if needed.
     * the_node is no longer part of the tree, although it has valid pointers
     * still.                                                         
     */                                                               
    target->parent = the_node->parent;                                
 2009170:	c4 27 40 00 	st  %g2, [ %i5 ]                               
    target->color = the_node->color;                                  
 2009174:	c2 27 60 10 	st  %g1, [ %i5 + 0x10 ]                        
   *   1. Deleted a red node, its child must be black. Nothing must be done.
   *   2. Deleted a black node and the child is red. Paint child black.
   *   3. Deleted a black node and its child is black. This requires some
   *      care and rotations.                                         
   */                                                                 
  if (victim_color == RBT_BLACK) { /* eliminate case 1 */             
 2009178:	80 a0 e0 00 	cmp  %g3, 0                                    
 200917c:	32 80 00 0c 	bne,a   20091ac <_RBTree_Extract_unprotected+0x138>
 2009180:	c2 06 20 04 	ld  [ %i0 + 4 ], %g1                           
 */                                                                   
RTEMS_INLINE_ROUTINE bool _RBTree_Is_red(                             
    const RBTree_Node *the_node                                       
    )                                                                 
{                                                                     
  return (the_node && the_node->color == RBT_RED);                    
 2009184:	80 a7 20 00 	cmp  %i4, 0                                    
 2009188:	22 80 00 09 	be,a   20091ac <_RBTree_Extract_unprotected+0x138>
 200918c:	c2 06 20 04 	ld  [ %i0 + 4 ], %g1                           
 2009190:	c2 07 20 10 	ld  [ %i4 + 0x10 ], %g1                        
 2009194:	80 a0 60 01 	cmp  %g1, 1                                    
 2009198:	22 80 00 04 	be,a   20091a8 <_RBTree_Extract_unprotected+0x134><== ALWAYS TAKEN
 200919c:	c0 27 20 10 	clr  [ %i4 + 0x10 ]                            
    if (_RBTree_Is_red(leaf))                                         
      leaf->color = RBT_BLACK; /* case 2 */                           
    else if(leaf)                                                     
      _RBTree_Extract_validate_unprotected(leaf); /* case 3 */        
 20091a0:	7f ff fe e2 	call  2008d28 <_RBTree_Extract_validate_unprotected><== NOT EXECUTED
 20091a4:	90 10 00 1c 	mov  %i4, %o0                                  <== NOT EXECUTED
                                                                      
  /* Wipe the_node */                                                 
  _RBTree_Set_off_rbtree(the_node);                                   
                                                                      
  /* set root to black, if it exists */                               
  if (the_rbtree->root) the_rbtree->root->color = RBT_BLACK;          
 20091a8:	c2 06 20 04 	ld  [ %i0 + 4 ], %g1                           
 */                                                                   
RTEMS_INLINE_ROUTINE void _RBTree_Set_off_rbtree(                     
    RBTree_Node *node                                                 
    )                                                                 
{                                                                     
  node->parent = node->child[RBT_LEFT] = node->child[RBT_RIGHT] = NULL;
 20091ac:	c0 26 60 08 	clr  [ %i1 + 8 ]                               
 20091b0:	c0 26 60 04 	clr  [ %i1 + 4 ]                               
 20091b4:	80 a0 60 00 	cmp  %g1, 0                                    
 20091b8:	02 80 00 03 	be  20091c4 <_RBTree_Extract_unprotected+0x150>
 20091bc:	c0 26 40 00 	clr  [ %i1 ]                                   
 20091c0:	c0 20 60 10 	clr  [ %g1 + 0x10 ]                            
 20091c4:	81 c7 e0 08 	ret                                            
 20091c8:	81 e8 00 00 	restore                                        
        the_rbtree->first[RBT_LEFT] = NULL;                           
    }                                                                 
  }                                                                   
  /* check if max needs to be updated: note, min can equal max (1 element) */
  if (the_node == the_rbtree->first[RBT_RIGHT]) {                     
    if (the_node->child[RBT_LEFT])                                    
 20091cc:	80 a0 60 00 	cmp  %g1, 0                                    
 20091d0:	22 80 00 28 	be,a   2009270 <_RBTree_Extract_unprotected+0x1fc>
 20091d4:	c2 06 40 00 	ld  [ %i1 ], %g1                               
   * either max in node->child[RBT_LEFT] or min in node->child[RBT_RIGHT],
   * and replace the_node with the target node. This maintains the binary
   * search tree property, but may violate the red-black properties.  
   */                                                                 
                                                                      
  if (the_node->child[RBT_LEFT] && the_node->child[RBT_RIGHT]) {      
 20091d8:	fa 06 60 04 	ld  [ %i1 + 4 ], %i5                           
 20091dc:	80 a7 60 00 	cmp  %i5, 0                                    
 20091e0:	12 bf ff b5 	bne  20090b4 <_RBTree_Extract_unprotected+0x40><== ALWAYS TAKEN
 20091e4:	c2 26 20 0c 	st  %g1, [ %i0 + 0xc ]                         
     * the_node's location in the tree. This may cause the coloring to be
     * violated. We will fix it later.                                
     * For now we store the color of the node being deleted in victim_color.
     */                                                               
    leaf = the_node->child[RBT_LEFT] ?                                
              the_node->child[RBT_LEFT] : the_node->child[RBT_RIGHT]; 
 20091e8:	f8 06 60 08 	ld  [ %i1 + 8 ], %i4                           <== NOT EXECUTED
    if( leaf ) {                                                      
 20091ec:	80 a7 20 00 	cmp  %i4, 0                                    
 20091f0:	32 80 00 0c 	bne,a   2009220 <_RBTree_Extract_unprotected+0x1ac>
 20091f4:	c2 06 40 00 	ld  [ %i1 ], %g1                               
      leaf->parent = the_node->parent;                                
    } else {                                                          
      /* fix the tree here if the child is a null leaf. */            
      _RBTree_Extract_validate_unprotected(the_node);                 
 20091f8:	7f ff fe cc 	call  2008d28 <_RBTree_Extract_validate_unprotected>
 20091fc:	90 10 00 19 	mov  %i1, %o0                                  
    }                                                                 
    victim_color = the_node->color;                                   
                                                                      
    /* remove the_node from the tree */                               
    dir = the_node != the_node->parent->child[0];                     
 2009200:	10 80 00 0a 	b  2009228 <_RBTree_Extract_unprotected+0x1b4> 
 2009204:	c2 06 40 00 	ld  [ %i1 ], %g1                               
                                                                      
  if(!the_node) return;                                               
                                                                      
  /* check if min needs to be updated */                              
  if (the_node == the_rbtree->first[RBT_LEFT]) {                      
    if (the_node->child[RBT_RIGHT])                                   
 2009208:	80 a0 60 00 	cmp  %g1, 0                                    
 200920c:	22 80 00 14 	be,a   200925c <_RBTree_Extract_unprotected+0x1e8>
 2009210:	c2 06 40 00 	ld  [ %i1 ], %g1                               
      the_rbtree->first[RBT_LEFT] = the_node->child[RBT_RIGHT];       
 2009214:	10 bf ff a0 	b  2009094 <_RBTree_Extract_unprotected+0x20>  
 2009218:	c2 26 20 08 	st  %g1, [ %i0 + 8 ]                           
     * For now we store the color of the node being deleted in victim_color.
     */                                                               
    leaf = the_node->child[RBT_LEFT] ?                                
              the_node->child[RBT_LEFT] : the_node->child[RBT_RIGHT]; 
    if( leaf ) {                                                      
      leaf->parent = the_node->parent;                                
 200921c:	c2 06 40 00 	ld  [ %i1 ], %g1                               
 2009220:	c2 27 00 00 	st  %g1, [ %i4 ]                               
      _RBTree_Extract_validate_unprotected(the_node);                 
    }                                                                 
    victim_color = the_node->color;                                   
                                                                      
    /* remove the_node from the tree */                               
    dir = the_node != the_node->parent->child[0];                     
 2009224:	c2 06 40 00 	ld  [ %i1 ], %g1                               
      leaf->parent = the_node->parent;                                
    } else {                                                          
      /* fix the tree here if the child is a null leaf. */            
      _RBTree_Extract_validate_unprotected(the_node);                 
    }                                                                 
    victim_color = the_node->color;                                   
 2009228:	c6 06 60 10 	ld  [ %i1 + 0x10 ], %g3                        
                                                                      
    /* remove the_node from the tree */                               
    dir = the_node != the_node->parent->child[0];                     
 200922c:	c4 00 60 04 	ld  [ %g1 + 4 ], %g2                           
 2009230:	84 18 80 19 	xor  %g2, %i1, %g2                             
 2009234:	80 a0 00 02 	cmp  %g0, %g2                                  
 2009238:	84 40 20 00 	addx  %g0, 0, %g2                              
    the_node->parent->child[dir] = leaf;                              
 200923c:	85 28 a0 02 	sll  %g2, 2, %g2                               
 2009240:	82 00 40 02 	add  %g1, %g2, %g1                             
 2009244:	10 bf ff cd 	b  2009178 <_RBTree_Extract_unprotected+0x104> 
 2009248:	f8 20 60 04 	st  %i4, [ %g1 + 4 ]                           
     leaf = target->child[RBT_LEFT];                                  
    if(leaf) {                                                        
      leaf->parent = target->parent;                                  
    } else {                                                          
      /* fix the tree here if the child is a null leaf. */            
      _RBTree_Extract_validate_unprotected(target);                   
 200924c:	7f ff fe b7 	call  2008d28 <_RBTree_Extract_validate_unprotected>
 2009250:	90 10 00 1d 	mov  %i5, %o0                                  
    }                                                                 
    victim_color = target->color;                                     
    dir = target != target->parent->child[0];                         
 2009254:	10 bf ff a9 	b  20090f8 <_RBTree_Extract_unprotected+0x84>  
 2009258:	c4 07 40 00 	ld  [ %i5 ], %g2                               
  if (the_node == the_rbtree->first[RBT_LEFT]) {                      
    if (the_node->child[RBT_RIGHT])                                   
      the_rbtree->first[RBT_LEFT] = the_node->child[RBT_RIGHT];       
    else {                                                            
      the_rbtree->first[RBT_LEFT] = the_node->parent;                 
      if(_RBTree_Are_nodes_equal((RBTree_Node *)the_rbtree,           
 200925c:	80 a6 00 01 	cmp  %i0, %g1                                  
 2009260:	12 bf ff 8d 	bne  2009094 <_RBTree_Extract_unprotected+0x20>
 2009264:	c2 26 20 08 	st  %g1, [ %i0 + 8 ]                           
            the_rbtree->first[RBT_LEFT]))                             
        the_rbtree->first[RBT_LEFT] = NULL;                           
 2009268:	10 bf ff 8b 	b  2009094 <_RBTree_Extract_unprotected+0x20>  
 200926c:	c0 26 20 08 	clr  [ %i0 + 8 ]                               
  if (the_node == the_rbtree->first[RBT_RIGHT]) {                     
    if (the_node->child[RBT_LEFT])                                    
      the_rbtree->first[RBT_RIGHT] = the_node->child[RBT_LEFT];       
    else {                                                            
      the_rbtree->first[RBT_RIGHT] = the_node->parent;                
      if(_RBTree_Are_nodes_equal((RBTree_Node *)the_rbtree,           
 2009270:	80 a6 00 01 	cmp  %i0, %g1                                  
 2009274:	12 bf ff 8c 	bne  20090a4 <_RBTree_Extract_unprotected+0x30>
 2009278:	c2 26 20 0c 	st  %g1, [ %i0 + 0xc ]                         
            the_rbtree->first[RBT_RIGHT]))                            
        the_rbtree->first[RBT_RIGHT] = NULL;                          
 200927c:	10 bf ff 8a 	b  20090a4 <_RBTree_Extract_unprotected+0x30>  
 2009280:	c0 26 20 0c 	clr  [ %i0 + 0xc ]                             
                                                                      

02008d28 <_RBTree_Extract_validate_unprotected>: * of the extract operation. */ void _RBTree_Extract_validate_unprotected( RBTree_Node *the_node ) {
 2008d28:	9d e3 bf a0 	save  %sp, -96, %sp                            
  RBTree_Node *parent, *sibling;                                      
  RBTree_Direction dir;                                               
                                                                      
  parent = the_node->parent;                                          
 2008d2c:	c4 06 00 00 	ld  [ %i0 ], %g2                               
  if(!parent->parent) return;                                         
 2008d30:	c2 00 80 00 	ld  [ %g2 ], %g1                               
 2008d34:	80 a0 60 00 	cmp  %g1, 0                                    
 2008d38:	02 80 00 cd 	be  200906c <_RBTree_Extract_validate_unprotected+0x344>
 2008d3c:	01 00 00 00 	nop                                            
{                                                                     
  if(!the_node) return NULL;                                          
  if(!(the_node->parent)) return NULL;                                
  if(!(the_node->parent->parent)) return NULL;                        
                                                                      
  if(the_node == the_node->parent->child[RBT_LEFT])                   
 2008d40:	c2 00 a0 04 	ld  [ %g2 + 4 ], %g1                           
 2008d44:	80 a6 00 01 	cmp  %i0, %g1                                  
 2008d48:	22 80 00 02 	be,a   2008d50 <_RBTree_Extract_validate_unprotected+0x28>
 2008d4c:	c2 00 a0 08 	ld  [ %g2 + 8 ], %g1                           
                                                                      
    /* sibling is black, see if both of its children are also black. */
    if (sibling &&                                                    
        !_RBTree_Is_red(sibling->child[RBT_RIGHT]) &&                 
        !_RBTree_Is_red(sibling->child[RBT_LEFT])) {                  
        sibling->color = RBT_RED;                                     
 2008d50:	96 10 20 01 	mov  1, %o3                                    
 */                                                                   
RTEMS_INLINE_ROUTINE bool _RBTree_Is_red(                             
    const RBTree_Node *the_node                                       
    )                                                                 
{                                                                     
  return (the_node && the_node->color == RBT_RED);                    
 2008d54:	80 a6 20 00 	cmp  %i0, 0                                    
 2008d58:	22 80 00 07 	be,a   2008d74 <_RBTree_Extract_validate_unprotected+0x4c><== NEVER TAKEN
 2008d5c:	c6 00 80 00 	ld  [ %g2 ], %g3                               <== NOT EXECUTED
 2008d60:	c6 06 20 10 	ld  [ %i0 + 0x10 ], %g3                        
 2008d64:	80 a0 e0 01 	cmp  %g3, 1                                    
 2008d68:	22 80 00 5b 	be,a   2008ed4 <_RBTree_Extract_validate_unprotected+0x1ac>
 2008d6c:	c2 06 00 00 	ld  [ %i0 ], %g1                               
  if(!parent->parent) return;                                         
                                                                      
  sibling = _RBTree_Sibling(the_node);                                
                                                                      
  /* continue to correct tree as long as the_node is black and not the root */
  while (!_RBTree_Is_red(the_node) && parent->parent) {               
 2008d70:	c6 00 80 00 	ld  [ %g2 ], %g3                               
 2008d74:	80 a0 e0 00 	cmp  %g3, 0                                    
 2008d78:	02 80 00 56 	be  2008ed0 <_RBTree_Extract_validate_unprotected+0x1a8>
 2008d7c:	80 a0 60 00 	cmp  %g1, 0                                    
 2008d80:	02 bf ff f6 	be  2008d58 <_RBTree_Extract_validate_unprotected+0x30><== NEVER TAKEN
 2008d84:	80 a6 20 00 	cmp  %i0, 0                                    
 2008d88:	c8 00 60 10 	ld  [ %g1 + 0x10 ], %g4                        
 2008d8c:	80 a1 20 01 	cmp  %g4, 1                                    
 2008d90:	22 80 00 27 	be,a   2008e2c <_RBTree_Extract_validate_unprotected+0x104>
 2008d94:	de 00 a0 04 	ld  [ %g2 + 4 ], %o7                           
      sibling = parent->child[!dir];                                  
    }                                                                 
                                                                      
    /* sibling is black, see if both of its children are also black. */
    if (sibling &&                                                    
        !_RBTree_Is_red(sibling->child[RBT_RIGHT]) &&                 
 2008d98:	c6 00 60 08 	ld  [ %g1 + 8 ], %g3                           
 2008d9c:	80 a0 e0 00 	cmp  %g3, 0                                    
 2008da0:	22 80 00 07 	be,a   2008dbc <_RBTree_Extract_validate_unprotected+0x94>
 2008da4:	c6 00 60 04 	ld  [ %g1 + 4 ], %g3                           
 2008da8:	c6 00 e0 10 	ld  [ %g3 + 0x10 ], %g3                        
 2008dac:	80 a0 e0 01 	cmp  %g3, 1                                    
 2008db0:	22 80 00 57 	be,a   2008f0c <_RBTree_Extract_validate_unprotected+0x1e4>
 2008db4:	c6 00 a0 04 	ld  [ %g2 + 4 ], %g3                           
        !_RBTree_Is_red(sibling->child[RBT_LEFT])) {                  
 2008db8:	c6 00 60 04 	ld  [ %g1 + 4 ], %g3                           
 2008dbc:	80 a0 e0 00 	cmp  %g3, 0                                    
 2008dc0:	22 80 00 07 	be,a   2008ddc <_RBTree_Extract_validate_unprotected+0xb4>
 2008dc4:	d6 20 60 10 	st  %o3, [ %g1 + 0x10 ]                        
 2008dc8:	c6 00 e0 10 	ld  [ %g3 + 0x10 ], %g3                        
 2008dcc:	80 a0 e0 01 	cmp  %g3, 1                                    
 2008dd0:	22 80 00 4f 	be,a   2008f0c <_RBTree_Extract_validate_unprotected+0x1e4>
 2008dd4:	c6 00 a0 04 	ld  [ %g2 + 4 ], %g3                           
        sibling->color = RBT_RED;                                     
 2008dd8:	d6 20 60 10 	st  %o3, [ %g1 + 0x10 ]                        
 2008ddc:	c2 00 a0 10 	ld  [ %g2 + 0x10 ], %g1                        
 2008de0:	80 a0 60 01 	cmp  %g1, 1                                    
 2008de4:	22 80 00 3b 	be,a   2008ed0 <_RBTree_Extract_validate_unprotected+0x1a8>
 2008de8:	c0 20 a0 10 	clr  [ %g2 + 0x10 ]                            
        if (_RBTree_Is_red(parent)) {                                 
          parent->color = RBT_BLACK;                                  
          break;                                                      
        }                                                             
        the_node = parent; /* done if parent is red */                
        parent = the_node->parent;                                    
 2008dec:	c6 00 80 00 	ld  [ %g2 ], %g3                               
RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_Sibling(                    
    RBTree_Node *the_node                                             
    )                                                                 
{                                                                     
  if(!the_node) return NULL;                                          
  if(!(the_node->parent)) return NULL;                                
 2008df0:	80 a0 e0 00 	cmp  %g3, 0                                    
 2008df4:	02 80 00 3e 	be  2008eec <_RBTree_Extract_validate_unprotected+0x1c4><== NEVER TAKEN
 2008df8:	b0 10 00 02 	mov  %g2, %i0                                  
  if(!(the_node->parent->parent)) return NULL;                        
 2008dfc:	c2 00 c0 00 	ld  [ %g3 ], %g1                               
 2008e00:	80 a0 60 00 	cmp  %g1, 0                                    
 2008e04:	02 80 00 3d 	be  2008ef8 <_RBTree_Extract_validate_unprotected+0x1d0>
 2008e08:	82 10 20 00 	clr  %g1                                       
                                                                      
  if(the_node == the_node->parent->child[RBT_LEFT])                   
 2008e0c:	c2 00 e0 04 	ld  [ %g3 + 4 ], %g1                           
 2008e10:	80 a0 80 01 	cmp  %g2, %g1                                  
 2008e14:	02 80 00 3b 	be  2008f00 <_RBTree_Extract_validate_unprotected+0x1d8>
 2008e18:	80 a6 20 00 	cmp  %i0, 0                                    
 */                                                                   
RTEMS_INLINE_ROUTINE bool _RBTree_Is_red(                             
    const RBTree_Node *the_node                                       
    )                                                                 
{                                                                     
  return (the_node && the_node->color == RBT_RED);                    
 2008e1c:	12 bf ff d1 	bne  2008d60 <_RBTree_Extract_validate_unprotected+0x38><== ALWAYS TAKEN
 2008e20:	84 10 00 03 	mov  %g3, %g2                                  
  if(!parent->parent) return;                                         
                                                                      
  sibling = _RBTree_Sibling(the_node);                                
                                                                      
  /* continue to correct tree as long as the_node is black and not the root */
  while (!_RBTree_Is_red(the_node) && parent->parent) {               
 2008e24:	10 bf ff d4 	b  2008d74 <_RBTree_Extract_validate_unprotected+0x4c><== NOT EXECUTED
 2008e28:	c6 00 80 00 	ld  [ %g2 ], %g3                               <== NOT EXECUTED
     * then rotate parent left, making the sibling be the_node's grandparent.
     * Now the_node has a black sibling and red parent. After rotation,
     * update sibling pointer.                                        
     */                                                               
    if (_RBTree_Is_red(sibling)) {                                    
      parent->color = RBT_RED;                                        
 2008e2c:	c8 20 a0 10 	st  %g4, [ %g2 + 0x10 ]                        
      sibling->color = RBT_BLACK;                                     
      dir = the_node != parent->child[0];                             
 2008e30:	9e 1b c0 18 	xor  %o7, %i0, %o7                             
 2008e34:	80 a0 00 0f 	cmp  %g0, %o7                                  
 2008e38:	9a 40 20 00 	addx  %g0, 0, %o5                              
    RBTree_Direction dir                                              
    )                                                                 
{                                                                     
  RBTree_Node *c;                                                     
  if (the_node == NULL) return;                                       
  if (the_node->child[(1-dir)] == NULL) return;                       
 2008e3c:	88 21 00 0d 	sub  %g4, %o5, %g4                             
 2008e40:	89 29 20 02 	sll  %g4, 2, %g4                               
 2008e44:	88 00 80 04 	add  %g2, %g4, %g4                             
 2008e48:	de 01 20 04 	ld  [ %g4 + 4 ], %o7                           
 2008e4c:	80 a3 e0 00 	cmp  %o7, 0                                    
 2008e50:	02 80 00 16 	be  2008ea8 <_RBTree_Extract_validate_unprotected+0x180><== NEVER TAKEN
 2008e54:	c0 20 60 10 	clr  [ %g1 + 0x10 ]                            
                                                                      
                                                                      
  c = the_node->child[(1-dir)];                                       
  the_node->child[(1-dir)] = c->child[dir];                           
 2008e58:	83 2b 60 02 	sll  %o5, 2, %g1                               
 2008e5c:	98 03 c0 01 	add  %o7, %g1, %o4                             
 2008e60:	d4 03 20 04 	ld  [ %o4 + 4 ], %o2                           
 2008e64:	d4 21 20 04 	st  %o2, [ %g4 + 4 ]                           
                                                                      
  if (c->child[dir])                                                  
 2008e68:	c8 03 20 04 	ld  [ %o4 + 4 ], %g4                           
 2008e6c:	80 a1 20 00 	cmp  %g4, 0                                    
 2008e70:	02 80 00 04 	be  2008e80 <_RBTree_Extract_validate_unprotected+0x158><== NEVER TAKEN
 2008e74:	82 03 c0 01 	add  %o7, %g1, %g1                             
    c->child[dir]->parent = the_node;                                 
 2008e78:	c4 21 00 00 	st  %g2, [ %g4 ]                               
 2008e7c:	c6 00 80 00 	ld  [ %g2 ], %g3                               
                                                                      
  c->child[dir] = the_node;                                           
 2008e80:	c4 20 60 04 	st  %g2, [ %g1 + 4 ]                           
                                                                      
  the_node->parent->child[the_node != the_node->parent->child[0]] = c;
 2008e84:	c2 00 e0 04 	ld  [ %g3 + 4 ], %g1                           
                                                                      
  c->parent = the_node->parent;                                       
 2008e88:	c6 23 c0 00 	st  %g3, [ %o7 ]                               
  if (c->child[dir])                                                  
    c->child[dir]->parent = the_node;                                 
                                                                      
  c->child[dir] = the_node;                                           
                                                                      
  the_node->parent->child[the_node != the_node->parent->child[0]] = c;
 2008e8c:	82 18 80 01 	xor  %g2, %g1, %g1                             
                                                                      
  c->parent = the_node->parent;                                       
  the_node->parent = c;                                               
 2008e90:	de 20 80 00 	st  %o7, [ %g2 ]                               
  if (c->child[dir])                                                  
    c->child[dir]->parent = the_node;                                 
                                                                      
  c->child[dir] = the_node;                                           
                                                                      
  the_node->parent->child[the_node != the_node->parent->child[0]] = c;
 2008e94:	80 a0 00 01 	cmp  %g0, %g1                                  
 2008e98:	82 40 20 00 	addx  %g0, 0, %g1                              
 2008e9c:	83 28 60 02 	sll  %g1, 2, %g1                               
 2008ea0:	86 00 c0 01 	add  %g3, %g1, %g3                             
 2008ea4:	de 20 e0 04 	st  %o7, [ %g3 + 4 ]                           
      _RBTree_Rotate(parent, dir);                                    
      sibling = parent->child[!dir];                                  
 2008ea8:	80 a0 00 0d 	cmp  %g0, %o5                                  
 2008eac:	82 60 3f ff 	subx  %g0, -1, %g1                             
 2008eb0:	83 28 60 02 	sll  %g1, 2, %g1                               
 2008eb4:	82 00 80 01 	add  %g2, %g1, %g1                             
 2008eb8:	c2 00 60 04 	ld  [ %g1 + 4 ], %g1                           
    }                                                                 
                                                                      
    /* sibling is black, see if both of its children are also black. */
    if (sibling &&                                                    
 2008ebc:	80 a0 60 00 	cmp  %g1, 0                                    
 2008ec0:	32 bf ff b7 	bne,a   2008d9c <_RBTree_Extract_validate_unprotected+0x74><== ALWAYS TAKEN
 2008ec4:	c6 00 60 08 	ld  [ %g1 + 8 ], %g3                           
 */                                                                   
RTEMS_INLINE_ROUTINE bool _RBTree_Is_red(                             
    const RBTree_Node *the_node                                       
    )                                                                 
{                                                                     
  return (the_node && the_node->color == RBT_RED);                    
 2008ec8:	10 bf ff a4 	b  2008d58 <_RBTree_Extract_validate_unprotected+0x30><== NOT EXECUTED
 2008ecc:	80 a6 20 00 	cmp  %i0, 0                                    <== NOT EXECUTED
      sibling->child[!dir]->color = RBT_BLACK;                        
      _RBTree_Rotate(parent, dir);                                    
      break; /* done */                                               
    }                                                                 
  } /* while */                                                       
  if(!the_node->parent->parent) the_node->color = RBT_BLACK;          
 2008ed0:	c2 06 00 00 	ld  [ %i0 ], %g1                               
 2008ed4:	c2 00 40 00 	ld  [ %g1 ], %g1                               
 2008ed8:	80 a0 60 00 	cmp  %g1, 0                                    
 2008edc:	22 80 00 02 	be,a   2008ee4 <_RBTree_Extract_validate_unprotected+0x1bc>
 2008ee0:	c0 26 20 10 	clr  [ %i0 + 0x10 ]                            
 2008ee4:	81 c7 e0 08 	ret                                            
 2008ee8:	81 e8 00 00 	restore                                        
RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_Sibling(                    
    RBTree_Node *the_node                                             
    )                                                                 
{                                                                     
  if(!the_node) return NULL;                                          
  if(!(the_node->parent)) return NULL;                                
 2008eec:	82 10 20 00 	clr  %g1                                       <== NOT EXECUTED
 2008ef0:	10 bf ff 99 	b  2008d54 <_RBTree_Extract_validate_unprotected+0x2c><== NOT EXECUTED
 2008ef4:	84 10 20 00 	clr  %g2                                       <== NOT EXECUTED
  if(!(the_node->parent->parent)) return NULL;                        
 2008ef8:	10 bf ff 97 	b  2008d54 <_RBTree_Extract_validate_unprotected+0x2c>
 2008efc:	84 10 00 03 	mov  %g3, %g2                                  
                                                                      
  if(the_node == the_node->parent->child[RBT_LEFT])                   
    return the_node->parent->child[RBT_RIGHT];                        
 2008f00:	c2 00 e0 08 	ld  [ %g3 + 8 ], %g1                           
 2008f04:	10 bf ff 94 	b  2008d54 <_RBTree_Extract_validate_unprotected+0x2c>
 2008f08:	84 10 00 03 	mov  %g3, %g2                                  
       * cases, either the_node is to the left or the right of the parent.
       * In both cases, first check if one of sibling's children is black,
       * and if so rotate in the proper direction and update sibling pointer.
       * Then switch the sibling and parent colors, and rotate through parent.
       */                                                             
      dir = the_node != parent->child[0];                             
 2008f0c:	86 18 c0 18 	xor  %g3, %i0, %g3                             
 2008f10:	80 a0 00 03 	cmp  %g0, %g3                                  
 2008f14:	86 40 20 00 	addx  %g0, 0, %g3                              
      if (!_RBTree_Is_red(sibling->child[!dir])) {                    
 2008f18:	80 a0 00 03 	cmp  %g0, %g3                                  
 2008f1c:	9e 60 3f ff 	subx  %g0, -1, %o7                             
 2008f20:	9f 2b e0 02 	sll  %o7, 2, %o7                               
 2008f24:	88 00 40 0f 	add  %g1, %o7, %g4                             
 2008f28:	c8 01 20 04 	ld  [ %g4 + 4 ], %g4                           
 */                                                                   
RTEMS_INLINE_ROUTINE bool _RBTree_Is_red(                             
    const RBTree_Node *the_node                                       
    )                                                                 
{                                                                     
  return (the_node && the_node->color == RBT_RED);                    
 2008f2c:	80 a1 20 00 	cmp  %g4, 0                                    
 2008f30:	22 80 00 07 	be,a   2008f4c <_RBTree_Extract_validate_unprotected+0x224>
 2008f34:	89 28 e0 02 	sll  %g3, 2, %g4                               
 2008f38:	da 01 20 10 	ld  [ %g4 + 0x10 ], %o5                        
 2008f3c:	80 a3 60 01 	cmp  %o5, 1                                    
 2008f40:	22 80 00 28 	be,a   2008fe0 <_RBTree_Extract_validate_unprotected+0x2b8>
 2008f44:	de 00 a0 10 	ld  [ %g2 + 0x10 ], %o7                        
        sibling->color = RBT_RED;                                     
        sibling->child[dir]->color = RBT_BLACK;                       
 2008f48:	89 28 e0 02 	sll  %g3, 2, %g4                               
 2008f4c:	88 00 40 04 	add  %g1, %g4, %g4                             
        _RBTree_Rotate(sibling, !dir);                                
 2008f50:	98 18 e0 01 	xor  %g3, 1, %o4                               
       * Then switch the sibling and parent colors, and rotate through parent.
       */                                                             
      dir = the_node != parent->child[0];                             
      if (!_RBTree_Is_red(sibling->child[!dir])) {                    
        sibling->color = RBT_RED;                                     
        sibling->child[dir]->color = RBT_BLACK;                       
 2008f54:	d6 01 20 04 	ld  [ %g4 + 4 ], %o3                           
       * and if so rotate in the proper direction and update sibling pointer.
       * Then switch the sibling and parent colors, and rotate through parent.
       */                                                             
      dir = the_node != parent->child[0];                             
      if (!_RBTree_Is_red(sibling->child[!dir])) {                    
        sibling->color = RBT_RED;                                     
 2008f58:	88 10 20 01 	mov  1, %g4                                    
 2008f5c:	c8 20 60 10 	st  %g4, [ %g1 + 0x10 ]                        
    RBTree_Direction dir                                              
    )                                                                 
{                                                                     
  RBTree_Node *c;                                                     
  if (the_node == NULL) return;                                       
  if (the_node->child[(1-dir)] == NULL) return;                       
 2008f60:	88 21 00 0c 	sub  %g4, %o4, %g4                             
 2008f64:	9b 29 20 02 	sll  %g4, 2, %o5                               
 2008f68:	9a 00 40 0d 	add  %g1, %o5, %o5                             
 2008f6c:	c8 03 60 04 	ld  [ %o5 + 4 ], %g4                           
 2008f70:	80 a1 20 00 	cmp  %g4, 0                                    
 2008f74:	02 80 00 16 	be  2008fcc <_RBTree_Extract_validate_unprotected+0x2a4><== NEVER TAKEN
 2008f78:	c0 22 e0 10 	clr  [ %o3 + 0x10 ]                            
                                                                      
                                                                      
  c = the_node->child[(1-dir)];                                       
  the_node->child[(1-dir)] = c->child[dir];                           
 2008f7c:	99 2b 20 02 	sll  %o4, 2, %o4                               
 2008f80:	96 01 00 0c 	add  %g4, %o4, %o3                             
 2008f84:	d4 02 e0 04 	ld  [ %o3 + 4 ], %o2                           
 2008f88:	d4 23 60 04 	st  %o2, [ %o5 + 4 ]                           
                                                                      
  if (c->child[dir])                                                  
 2008f8c:	da 02 e0 04 	ld  [ %o3 + 4 ], %o5                           
 2008f90:	80 a3 60 00 	cmp  %o5, 0                                    
 2008f94:	32 80 00 02 	bne,a   2008f9c <_RBTree_Extract_validate_unprotected+0x274>
 2008f98:	c2 23 40 00 	st  %g1, [ %o5 ]                               
    c->child[dir]->parent = the_node;                                 
                                                                      
  c->child[dir] = the_node;                                           
                                                                      
  the_node->parent->child[the_node != the_node->parent->child[0]] = c;
 2008f9c:	da 00 40 00 	ld  [ %g1 ], %o5                               
  the_node->child[(1-dir)] = c->child[dir];                           
                                                                      
  if (c->child[dir])                                                  
    c->child[dir]->parent = the_node;                                 
                                                                      
  c->child[dir] = the_node;                                           
 2008fa0:	98 01 00 0c 	add  %g4, %o4, %o4                             
 2008fa4:	c2 23 20 04 	st  %g1, [ %o4 + 4 ]                           
                                                                      
  the_node->parent->child[the_node != the_node->parent->child[0]] = c;
 2008fa8:	d8 03 60 04 	ld  [ %o5 + 4 ], %o4                           
                                                                      
  c->parent = the_node->parent;                                       
 2008fac:	da 21 00 00 	st  %o5, [ %g4 ]                               
  if (c->child[dir])                                                  
    c->child[dir]->parent = the_node;                                 
                                                                      
  c->child[dir] = the_node;                                           
                                                                      
  the_node->parent->child[the_node != the_node->parent->child[0]] = c;
 2008fb0:	98 18 40 0c 	xor  %g1, %o4, %o4                             
                                                                      
  c->parent = the_node->parent;                                       
  the_node->parent = c;                                               
 2008fb4:	c8 20 40 00 	st  %g4, [ %g1 ]                               
  if (c->child[dir])                                                  
    c->child[dir]->parent = the_node;                                 
                                                                      
  c->child[dir] = the_node;                                           
                                                                      
  the_node->parent->child[the_node != the_node->parent->child[0]] = c;
 2008fb8:	80 a0 00 0c 	cmp  %g0, %o4                                  
 2008fbc:	82 40 20 00 	addx  %g0, 0, %g1                              
 2008fc0:	83 28 60 02 	sll  %g1, 2, %g1                               
 2008fc4:	9a 03 40 01 	add  %o5, %g1, %o5                             
 2008fc8:	c8 23 60 04 	st  %g4, [ %o5 + 4 ]                           
        sibling->child[dir]->color = RBT_BLACK;                       
        _RBTree_Rotate(sibling, !dir);                                
        sibling = parent->child[!dir];                                
 2008fcc:	82 00 80 0f 	add  %g2, %o7, %g1                             
 2008fd0:	c2 00 60 04 	ld  [ %g1 + 4 ], %g1                           
 2008fd4:	9e 00 40 0f 	add  %g1, %o7, %o7                             
 2008fd8:	c8 03 e0 04 	ld  [ %o7 + 4 ], %g4                           
      }                                                               
      sibling->color = parent->color;                                 
 2008fdc:	de 00 a0 10 	ld  [ %g2 + 0x10 ], %o7                        
 2008fe0:	de 20 60 10 	st  %o7, [ %g1 + 0x10 ]                        
      parent->color = RBT_BLACK;                                      
 2008fe4:	c0 20 a0 10 	clr  [ %g2 + 0x10 ]                            
    RBTree_Direction dir                                              
    )                                                                 
{                                                                     
  RBTree_Node *c;                                                     
  if (the_node == NULL) return;                                       
  if (the_node->child[(1-dir)] == NULL) return;                       
 2008fe8:	9e 10 20 01 	mov  1, %o7                                    
 2008fec:	9e 23 c0 03 	sub  %o7, %g3, %o7                             
 2008ff0:	9f 2b e0 02 	sll  %o7, 2, %o7                               
 2008ff4:	9e 00 80 0f 	add  %g2, %o7, %o7                             
 2008ff8:	c2 03 e0 04 	ld  [ %o7 + 4 ], %g1                           
 2008ffc:	80 a0 60 00 	cmp  %g1, 0                                    
 2009000:	02 bf ff b4 	be  2008ed0 <_RBTree_Extract_validate_unprotected+0x1a8><== NEVER TAKEN
 2009004:	c0 21 20 10 	clr  [ %g4 + 0x10 ]                            
                                                                      
                                                                      
  c = the_node->child[(1-dir)];                                       
  the_node->child[(1-dir)] = c->child[dir];                           
 2009008:	87 28 e0 02 	sll  %g3, 2, %g3                               
 200900c:	88 00 40 03 	add  %g1, %g3, %g4                             
 2009010:	da 01 20 04 	ld  [ %g4 + 4 ], %o5                           
 2009014:	da 23 e0 04 	st  %o5, [ %o7 + 4 ]                           
                                                                      
  if (c->child[dir])                                                  
 2009018:	c8 01 20 04 	ld  [ %g4 + 4 ], %g4                           
 200901c:	80 a1 20 00 	cmp  %g4, 0                                    
 2009020:	32 80 00 02 	bne,a   2009028 <_RBTree_Extract_validate_unprotected+0x300>
 2009024:	c4 21 00 00 	st  %g2, [ %g4 ]                               
    c->child[dir]->parent = the_node;                                 
                                                                      
  c->child[dir] = the_node;                                           
                                                                      
  the_node->parent->child[the_node != the_node->parent->child[0]] = c;
 2009028:	c8 00 80 00 	ld  [ %g2 ], %g4                               
  the_node->child[(1-dir)] = c->child[dir];                           
                                                                      
  if (c->child[dir])                                                  
    c->child[dir]->parent = the_node;                                 
                                                                      
  c->child[dir] = the_node;                                           
 200902c:	86 00 40 03 	add  %g1, %g3, %g3                             
 2009030:	c4 20 e0 04 	st  %g2, [ %g3 + 4 ]                           
                                                                      
  the_node->parent->child[the_node != the_node->parent->child[0]] = c;
 2009034:	c6 01 20 04 	ld  [ %g4 + 4 ], %g3                           
                                                                      
  c->parent = the_node->parent;                                       
 2009038:	c8 20 40 00 	st  %g4, [ %g1 ]                               
  the_node->parent = c;                                               
 200903c:	c2 20 80 00 	st  %g1, [ %g2 ]                               
  if (c->child[dir])                                                  
    c->child[dir]->parent = the_node;                                 
                                                                      
  c->child[dir] = the_node;                                           
                                                                      
  the_node->parent->child[the_node != the_node->parent->child[0]] = c;
 2009040:	86 18 c0 02 	xor  %g3, %g2, %g3                             
 2009044:	80 a0 00 03 	cmp  %g0, %g3                                  
 2009048:	84 40 20 00 	addx  %g0, 0, %g2                              
 200904c:	85 28 a0 02 	sll  %g2, 2, %g2                               
 2009050:	88 01 00 02 	add  %g4, %g2, %g4                             
 2009054:	c2 21 20 04 	st  %g1, [ %g4 + 4 ]                           
      sibling->child[!dir]->color = RBT_BLACK;                        
      _RBTree_Rotate(parent, dir);                                    
      break; /* done */                                               
    }                                                                 
  } /* while */                                                       
  if(!the_node->parent->parent) the_node->color = RBT_BLACK;          
 2009058:	c2 06 00 00 	ld  [ %i0 ], %g1                               
 200905c:	c2 00 40 00 	ld  [ %g1 ], %g1                               
 2009060:	80 a0 60 00 	cmp  %g1, 0                                    
 2009064:	22 bf ff a0 	be,a   2008ee4 <_RBTree_Extract_validate_unprotected+0x1bc><== NEVER TAKEN
 2009068:	c0 26 20 10 	clr  [ %i0 + 0x10 ]                            <== NOT EXECUTED
 200906c:	81 c7 e0 08 	ret                                            
 2009070:	81 e8 00 00 	restore                                        
                                                                      

020092f8 <_RBTree_Find>: RBTree_Node *_RBTree_Find( RBTree_Control *the_rbtree, unsigned int the_value ) {
 20092f8:	9d e3 bf a0 	save  %sp, -96, %sp                            
  ISR_Level          level;                                           
  RBTree_Node *return_node;                                           
                                                                      
  return_node = NULL;                                                 
  _ISR_Disable( level );                                              
 20092fc:	7f ff e6 4e 	call  2002c34 <sparc_disable_interrupts>       
 2009300:	01 00 00 00 	nop                                            
      return_node = _RBTree_Find_unprotected( the_rbtree, the_value );
  _ISR_Enable( level );                                               
  return return_node;                                                 
}                                                                     
 2009304:	f0 06 20 04 	ld  [ %i0 + 4 ], %i0                           
    RBTree_Control *the_rbtree,                                       
    unsigned int the_value                                            
    )                                                                 
{                                                                     
  RBTree_Node* iter_node = the_rbtree->root;                          
  while (iter_node) {                                                 
 2009308:	80 a6 20 00 	cmp  %i0, 0                                    
 200930c:	32 80 00 0b 	bne,a   2009338 <_RBTree_Find+0x40>            <== ALWAYS TAKEN
 2009310:	c2 06 20 0c 	ld  [ %i0 + 0xc ], %g1                         
 2009314:	30 80 00 0c 	b,a   2009344 <_RBTree_Find+0x4c>              <== NOT EXECUTED
    if (the_value == iter_node->value) return(iter_node);             
                                                                      
    RBTree_Direction dir = the_value > iter_node->value;              
 2009318:	82 40 20 00 	addx  %g0, 0, %g1                              
    iter_node = iter_node->child[dir];                                
 200931c:	83 28 60 02 	sll  %g1, 2, %g1                               
 2009320:	b0 06 00 01 	add  %i0, %g1, %i0                             
 2009324:	f0 06 20 04 	ld  [ %i0 + 4 ], %i0                           
    RBTree_Control *the_rbtree,                                       
    unsigned int the_value                                            
    )                                                                 
{                                                                     
  RBTree_Node* iter_node = the_rbtree->root;                          
  while (iter_node) {                                                 
 2009328:	80 a6 20 00 	cmp  %i0, 0                                    
 200932c:	02 80 00 06 	be  2009344 <_RBTree_Find+0x4c>                <== NEVER TAKEN
 2009330:	01 00 00 00 	nop                                            
    if (the_value == iter_node->value) return(iter_node);             
 2009334:	c2 06 20 0c 	ld  [ %i0 + 0xc ], %g1                         
 2009338:	80 a6 40 01 	cmp  %i1, %g1                                  
 200933c:	12 bf ff f7 	bne  2009318 <_RBTree_Find+0x20>               
 2009340:	80 a0 40 19 	cmp  %g1, %i1                                  
  RBTree_Node *return_node;                                           
                                                                      
  return_node = NULL;                                                 
  _ISR_Disable( level );                                              
      return_node = _RBTree_Find_unprotected( the_rbtree, the_value );
  _ISR_Enable( level );                                               
 2009344:	7f ff e6 40 	call  2002c44 <sparc_enable_interrupts>        
 2009348:	01 00 00 00 	nop                                            
  return return_node;                                                 
}                                                                     
 200934c:	81 c7 e0 08 	ret                                            
 2009350:	81 e8 00 00 	restore                                        
                                                                      

020092ac <_RBTree_Find_header>: */ RBTree_Control *_RBTree_Find_header( RBTree_Node *the_node ) {
 20092ac:	9d e3 bf a0 	save  %sp, -96, %sp                            
  ISR_Level          level;                                           
  RBTree_Control *return_header;                                      
                                                                      
  return_header = NULL;                                               
  _ISR_Disable( level );                                              
 20092b0:	7f ff e6 61 	call  2002c34 <sparc_disable_interrupts>       
 20092b4:	01 00 00 00 	nop                                            
 */                                                                   
RTEMS_INLINE_ROUTINE RBTree_Control *_RBTree_Find_header_unprotected( 
    RBTree_Node *the_node                                             
    )                                                                 
{                                                                     
  if(!the_node) return NULL;                                          
 20092b8:	80 a6 20 00 	cmp  %i0, 0                                    
 20092bc:	02 80 00 0b 	be  20092e8 <_RBTree_Find_header+0x3c>         <== NEVER TAKEN
 20092c0:	ba 10 20 00 	clr  %i5                                       
  if(!(the_node->parent)) return NULL;                                
 20092c4:	fa 06 00 00 	ld  [ %i0 ], %i5                               
 20092c8:	80 a7 60 00 	cmp  %i5, 0                                    
 20092cc:	32 80 00 04 	bne,a   20092dc <_RBTree_Find_header+0x30>     <== ALWAYS TAKEN
 20092d0:	c2 07 40 00 	ld  [ %i5 ], %g1                               
 20092d4:	30 80 00 05 	b,a   20092e8 <_RBTree_Find_header+0x3c>       <== NOT EXECUTED
 20092d8:	c2 07 40 00 	ld  [ %i5 ], %g1                               
  while(the_node->parent) the_node = the_node->parent;                
 20092dc:	80 a0 60 00 	cmp  %g1, 0                                    
 20092e0:	32 bf ff fe 	bne,a   20092d8 <_RBTree_Find_header+0x2c>     
 20092e4:	ba 10 00 01 	mov  %g1, %i5                                  
      return_header = _RBTree_Find_header_unprotected( the_node );    
  _ISR_Enable( level );                                               
 20092e8:	7f ff e6 57 	call  2002c44 <sparc_enable_interrupts>        
 20092ec:	b0 10 00 1d 	mov  %i5, %i0                                  
  return return_header;                                               
}                                                                     
 20092f0:	81 c7 e0 08 	ret                                            
 20092f4:	81 e8 00 00 	restore                                        
                                                                      

02009540 <_RBTree_Insert_unprotected>: */ RBTree_Node *_RBTree_Insert_unprotected( RBTree_Control *the_rbtree, RBTree_Node *the_node ) {
 2009540:	9d e3 bf a0 	save  %sp, -96, %sp                            
  if(!the_node) return (RBTree_Node*)-1;                              
 2009544:	80 a6 60 00 	cmp  %i1, 0                                    
 2009548:	02 80 00 14 	be  2009598 <_RBTree_Insert_unprotected+0x58>  <== NEVER TAKEN
 200954c:	82 10 3f ff 	mov  -1, %g1                                   
                                                                      
  RBTree_Node *iter_node = the_rbtree->root;                          
 2009550:	c2 06 20 04 	ld  [ %i0 + 4 ], %g1                           
                                                                      
  if (!iter_node) { /* special case: first node inserted */           
 2009554:	80 a0 60 00 	cmp  %g1, 0                                    
 2009558:	22 80 00 23 	be,a   20095e4 <_RBTree_Insert_unprotected+0xa4>
 200955c:	c0 26 60 10 	clr  [ %i1 + 0x10 ]                            
        the_node->color = RBT_RED;                                    
        iter_node->child[dir] = the_node;                             
        the_node->parent = iter_node;                                 
        /* update min/max */                                          
        if (_RBTree_Is_first(the_rbtree, iter_node, dir)) {           
          the_rbtree->first[dir] = the_node;                          
 2009560:	10 80 00 0a 	b  2009588 <_RBTree_Insert_unprotected+0x48>   
 2009564:	c6 06 60 0c 	ld  [ %i1 + 0xc ], %g3                         
    the_node->child[RBT_LEFT] = the_node->child[RBT_RIGHT] = NULL;    
  } else {                                                            
    /* typical binary search tree insert, descend tree to leaf and insert */
    while (iter_node) {                                               
      if(the_node->value == iter_node->value) return(iter_node);      
      RBTree_Direction dir = the_node->value > iter_node->value;      
 2009568:	9e 40 20 00 	addx  %g0, 0, %o7                              
      if (!iter_node->child[dir]) {                                   
 200956c:	89 2b e0 02 	sll  %o7, 2, %g4                               
 2009570:	88 00 40 04 	add  %g1, %g4, %g4                             
 2009574:	c4 01 20 04 	ld  [ %g4 + 4 ], %g2                           
 2009578:	80 a0 a0 00 	cmp  %g2, 0                                    
 200957c:	22 80 00 09 	be,a   20095a0 <_RBTree_Insert_unprotected+0x60>
 2009580:	c0 26 60 08 	clr  [ %i1 + 8 ]                               
 2009584:	82 10 00 02 	mov  %g2, %g1                                  
    the_node->parent = (RBTree_Node *) the_rbtree;                    
    the_node->child[RBT_LEFT] = the_node->child[RBT_RIGHT] = NULL;    
  } else {                                                            
    /* typical binary search tree insert, descend tree to leaf and insert */
    while (iter_node) {                                               
      if(the_node->value == iter_node->value) return(iter_node);      
 2009588:	c4 00 60 0c 	ld  [ %g1 + 0xc ], %g2                         
 200958c:	80 a0 c0 02 	cmp  %g3, %g2                                  
 2009590:	12 bf ff f6 	bne  2009568 <_RBTree_Insert_unprotected+0x28> 
 2009594:	80 a0 80 03 	cmp  %g2, %g3                                  
                                                                      
    /* verify red-black properties */                                 
    _RBTree_Validate_insert_unprotected(the_node);                    
  }                                                                   
  return (RBTree_Node*)0;                                             
}                                                                     
 2009598:	81 c7 e0 08 	ret                                            
 200959c:	91 e8 00 01 	restore  %g0, %g1, %o0                         
    /* typical binary search tree insert, descend tree to leaf and insert */
    while (iter_node) {                                               
      if(the_node->value == iter_node->value) return(iter_node);      
      RBTree_Direction dir = the_node->value > iter_node->value;      
      if (!iter_node->child[dir]) {                                   
        the_node->child[RBT_LEFT] = the_node->child[RBT_RIGHT] = NULL;
 20095a0:	c0 26 60 04 	clr  [ %i1 + 4 ]                               
RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_First(                      
    RBTree_Control *the_rbtree,                                       
    RBTree_Direction dir                                              
    )                                                                 
{                                                                     
  return the_rbtree->first[dir];                                      
 20095a4:	9e 03 e0 02 	add  %o7, 2, %o7                               
 20095a8:	9f 2b e0 02 	sll  %o7, 2, %o7                               
        the_node->color = RBT_RED;                                    
        iter_node->child[dir] = the_node;                             
        the_node->parent = iter_node;                                 
        /* update min/max */                                          
        if (_RBTree_Is_first(the_rbtree, iter_node, dir)) {           
 20095ac:	c4 06 00 0f 	ld  [ %i0 + %o7 ], %g2                         
    while (iter_node) {                                               
      if(the_node->value == iter_node->value) return(iter_node);      
      RBTree_Direction dir = the_node->value > iter_node->value;      
      if (!iter_node->child[dir]) {                                   
        the_node->child[RBT_LEFT] = the_node->child[RBT_RIGHT] = NULL;
        the_node->color = RBT_RED;                                    
 20095b0:	86 10 20 01 	mov  1, %g3                                    
        iter_node->child[dir] = the_node;                             
 20095b4:	f2 21 20 04 	st  %i1, [ %g4 + 4 ]                           
    while (iter_node) {                                               
      if(the_node->value == iter_node->value) return(iter_node);      
      RBTree_Direction dir = the_node->value > iter_node->value;      
      if (!iter_node->child[dir]) {                                   
        the_node->child[RBT_LEFT] = the_node->child[RBT_RIGHT] = NULL;
        the_node->color = RBT_RED;                                    
 20095b8:	c6 26 60 10 	st  %g3, [ %i1 + 0x10 ]                        
        iter_node->child[dir] = the_node;                             
        the_node->parent = iter_node;                                 
        /* update min/max */                                          
        if (_RBTree_Is_first(the_rbtree, iter_node, dir)) {           
 20095bc:	80 a0 40 02 	cmp  %g1, %g2                                  
 20095c0:	02 80 00 07 	be  20095dc <_RBTree_Insert_unprotected+0x9c>  
 20095c4:	c2 26 40 00 	st  %g1, [ %i1 ]                               
      }                                                               
                                                                      
    } /* while(iter_node) */                                          
                                                                      
    /* verify red-black properties */                                 
    _RBTree_Validate_insert_unprotected(the_node);                    
 20095c8:	7f ff ff 72 	call  2009390 <_RBTree_Validate_insert_unprotected>
 20095cc:	90 10 00 19 	mov  %i1, %o0                                  
  }                                                                   
  return (RBTree_Node*)0;                                             
 20095d0:	82 10 20 00 	clr  %g1                                       
}                                                                     
 20095d4:	81 c7 e0 08 	ret                                            
 20095d8:	91 e8 00 01 	restore  %g0, %g1, %o0                         
        the_node->color = RBT_RED;                                    
        iter_node->child[dir] = the_node;                             
        the_node->parent = iter_node;                                 
        /* update min/max */                                          
        if (_RBTree_Is_first(the_rbtree, iter_node, dir)) {           
          the_rbtree->first[dir] = the_node;                          
 20095dc:	10 bf ff fb 	b  20095c8 <_RBTree_Insert_unprotected+0x88>   
 20095e0:	f2 26 00 0f 	st  %i1, [ %i0 + %o7 ]                         
                                                                      
  RBTree_Node *iter_node = the_rbtree->root;                          
                                                                      
  if (!iter_node) { /* special case: first node inserted */           
    the_node->color = RBT_BLACK;                                      
    the_rbtree->root = the_node;                                      
 20095e4:	f2 26 20 04 	st  %i1, [ %i0 + 4 ]                           
    the_rbtree->first[0] = the_rbtree->first[1] = the_node;           
 20095e8:	f2 26 20 0c 	st  %i1, [ %i0 + 0xc ]                         
 20095ec:	f2 26 20 08 	st  %i1, [ %i0 + 8 ]                           
    the_node->parent = (RBTree_Node *) the_rbtree;                    
 20095f0:	f0 26 40 00 	st  %i0, [ %i1 ]                               
    the_node->child[RBT_LEFT] = the_node->child[RBT_RIGHT] = NULL;    
 20095f4:	c0 26 60 08 	clr  [ %i1 + 8 ]                               
 20095f8:	10 bf ff e8 	b  2009598 <_RBTree_Insert_unprotected+0x58>   
 20095fc:	c0 26 60 04 	clr  [ %i1 + 4 ]                               
                                                                      

02009390 <_RBTree_Validate_insert_unprotected>: * append operation. */ void _RBTree_Validate_insert_unprotected( RBTree_Node *the_node ) {
 2009390:	9d e3 bf a0 	save  %sp, -96, %sp                            
    } else { /* if uncle is black */                                  
      RBTree_Direction dir = the_node != the_node->parent->child[0];  
      RBTree_Direction pdir = the_node->parent != g->child[0];        
                                                                      
      /* ensure node is on the same branch direction as parent */     
      if (dir != pdir) {                                              
 2009394:	96 10 20 01 	mov  1, %o3                                    
  ISR_Level level;                                                    
                                                                      
  _ISR_Disable( level );                                              
    _RBTree_Insert_unprotected( tree, node );                         
  _ISR_Enable( level );                                               
}                                                                     
 2009398:	c2 06 00 00 	ld  [ %i0 ], %g1                               
 */                                                                   
RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_Parent(                     
    RBTree_Node *the_node                                             
    )                                                                 
{                                                                     
  if (!the_node->parent->parent) return NULL;                         
 200939c:	c4 00 40 00 	ld  [ %g1 ], %g2                               
 20093a0:	86 90 a0 00 	orcc  %g2, 0, %g3                              
 20093a4:	22 80 00 06 	be,a   20093bc <_RBTree_Validate_insert_unprotected+0x2c>
 20093a8:	c0 26 20 10 	clr  [ %i0 + 0x10 ]                            
 */                                                                   
RTEMS_INLINE_ROUTINE bool _RBTree_Is_red(                             
    const RBTree_Node *the_node                                       
    )                                                                 
{                                                                     
  return (the_node && the_node->color == RBT_RED);                    
 20093ac:	c8 00 60 10 	ld  [ %g1 + 0x10 ], %g4                        
 20093b0:	80 a1 20 01 	cmp  %g4, 1                                    
 20093b4:	22 80 00 04 	be,a   20093c4 <_RBTree_Validate_insert_unprotected+0x34>
 20093b8:	c8 00 80 00 	ld  [ %g2 ], %g4                               
 20093bc:	81 c7 e0 08 	ret                                            
 20093c0:	81 e8 00 00 	restore                                        
    )                                                                 
{                                                                     
  if(!the_node) return NULL;                                          
  if(!(the_node->parent)) return NULL;                                
  if(!(the_node->parent->parent)) return NULL;                        
  if(!(the_node->parent->parent->parent)) return NULL;                
 20093c4:	80 a1 20 00 	cmp  %g4, 0                                    
 20093c8:	02 80 00 0c 	be  20093f8 <_RBTree_Validate_insert_unprotected+0x68><== NEVER TAKEN
 20093cc:	de 00 a0 04 	ld  [ %g2 + 4 ], %o7                           
{                                                                     
  if(!the_node) return NULL;                                          
  if(!(the_node->parent)) return NULL;                                
  if(!(the_node->parent->parent)) return NULL;                        
                                                                      
  if(the_node == the_node->parent->child[RBT_LEFT])                   
 20093d0:	80 a0 40 0f 	cmp  %g1, %o7                                  
 20093d4:	02 80 00 59 	be  2009538 <_RBTree_Validate_insert_unprotected+0x1a8>
 20093d8:	88 10 00 0f 	mov  %o7, %g4                                  
 */                                                                   
RTEMS_INLINE_ROUTINE bool _RBTree_Is_red(                             
    const RBTree_Node *the_node                                       
    )                                                                 
{                                                                     
  return (the_node && the_node->color == RBT_RED);                    
 20093dc:	80 a1 20 00 	cmp  %g4, 0                                    
 20093e0:	22 80 00 07 	be,a   20093fc <_RBTree_Validate_insert_unprotected+0x6c>
 20093e4:	c8 00 60 04 	ld  [ %g1 + 4 ], %g4                           
 20093e8:	da 01 20 10 	ld  [ %g4 + 0x10 ], %o5                        
 20093ec:	80 a3 60 01 	cmp  %o5, 1                                    
 20093f0:	22 80 00 4c 	be,a   2009520 <_RBTree_Validate_insert_unprotected+0x190>
 20093f4:	c0 20 60 10 	clr  [ %g1 + 0x10 ]                            
      the_node->parent->color = RBT_BLACK;                            
      u->color = RBT_BLACK;                                           
      g->color = RBT_RED;                                             
      the_node = g;                                                   
    } else { /* if uncle is black */                                  
      RBTree_Direction dir = the_node != the_node->parent->child[0];  
 20093f8:	c8 00 60 04 	ld  [ %g1 + 4 ], %g4                           
      RBTree_Direction pdir = the_node->parent != g->child[0];        
 20093fc:	9e 18 40 0f 	xor  %g1, %o7, %o7                             
      the_node->parent->color = RBT_BLACK;                            
      u->color = RBT_BLACK;                                           
      g->color = RBT_RED;                                             
      the_node = g;                                                   
    } else { /* if uncle is black */                                  
      RBTree_Direction dir = the_node != the_node->parent->child[0];  
 2009400:	88 19 00 18 	xor  %g4, %i0, %g4                             
 2009404:	80 a0 00 04 	cmp  %g0, %g4                                  
 2009408:	9a 40 20 00 	addx  %g0, 0, %o5                              
      RBTree_Direction pdir = the_node->parent != g->child[0];        
 200940c:	80 a0 00 0f 	cmp  %g0, %o7                                  
 2009410:	88 40 20 00 	addx  %g0, 0, %g4                              
                                                                      
      /* ensure node is on the same branch direction as parent */     
      if (dir != pdir) {                                              
 2009414:	80 a3 40 04 	cmp  %o5, %g4                                  
 2009418:	02 80 00 46 	be  2009530 <_RBTree_Validate_insert_unprotected+0x1a0>
 200941c:	98 22 c0 0d 	sub  %o3, %o5, %o4                             
    RBTree_Direction dir                                              
    )                                                                 
{                                                                     
  RBTree_Node *c;                                                     
  if (the_node == NULL) return;                                       
  if (the_node->child[(1-dir)] == NULL) return;                       
 2009420:	98 22 c0 04 	sub  %o3, %g4, %o4                             
 2009424:	9b 2b 20 02 	sll  %o4, 2, %o5                               
 2009428:	9a 00 40 0d 	add  %g1, %o5, %o5                             
 200942c:	de 03 60 04 	ld  [ %o5 + 4 ], %o7                           
 2009430:	80 a3 e0 00 	cmp  %o7, 0                                    
 2009434:	02 80 00 16 	be  200948c <_RBTree_Validate_insert_unprotected+0xfc><== NEVER TAKEN
 2009438:	89 29 20 02 	sll  %g4, 2, %g4                               
                                                                      
                                                                      
  c = the_node->child[(1-dir)];                                       
  the_node->child[(1-dir)] = c->child[dir];                           
 200943c:	94 03 c0 04 	add  %o7, %g4, %o2                             
 2009440:	d2 02 a0 04 	ld  [ %o2 + 4 ], %o1                           
 2009444:	d2 23 60 04 	st  %o1, [ %o5 + 4 ]                           
                                                                      
  if (c->child[dir])                                                  
 2009448:	da 02 a0 04 	ld  [ %o2 + 4 ], %o5                           
 200944c:	80 a3 60 00 	cmp  %o5, 0                                    
 2009450:	22 80 00 05 	be,a   2009464 <_RBTree_Validate_insert_unprotected+0xd4>
 2009454:	9a 03 c0 04 	add  %o7, %g4, %o5                             
    c->child[dir]->parent = the_node;                                 
 2009458:	c2 23 40 00 	st  %g1, [ %o5 ]                               
 200945c:	c4 00 40 00 	ld  [ %g1 ], %g2                               
                                                                      
  c->child[dir] = the_node;                                           
 2009460:	9a 03 c0 04 	add  %o7, %g4, %o5                             
 2009464:	c2 23 60 04 	st  %g1, [ %o5 + 4 ]                           
                                                                      
  the_node->parent->child[the_node != the_node->parent->child[0]] = c;
 2009468:	da 00 a0 04 	ld  [ %g2 + 4 ], %o5                           
                                                                      
  c->parent = the_node->parent;                                       
 200946c:	c4 23 c0 00 	st  %g2, [ %o7 ]                               
  if (c->child[dir])                                                  
    c->child[dir]->parent = the_node;                                 
                                                                      
  c->child[dir] = the_node;                                           
                                                                      
  the_node->parent->child[the_node != the_node->parent->child[0]] = c;
 2009470:	9a 18 40 0d 	xor  %g1, %o5, %o5                             
                                                                      
  c->parent = the_node->parent;                                       
  the_node->parent = c;                                               
 2009474:	de 20 40 00 	st  %o7, [ %g1 ]                               
  if (c->child[dir])                                                  
    c->child[dir]->parent = the_node;                                 
                                                                      
  c->child[dir] = the_node;                                           
                                                                      
  the_node->parent->child[the_node != the_node->parent->child[0]] = c;
 2009478:	80 a0 00 0d 	cmp  %g0, %o5                                  
 200947c:	82 40 20 00 	addx  %g0, 0, %g1                              
 2009480:	83 28 60 02 	sll  %g1, 2, %g1                               
 2009484:	84 00 80 01 	add  %g2, %g1, %g2                             
 2009488:	de 20 a0 04 	st  %o7, [ %g2 + 4 ]                           
        _RBTree_Rotate(the_node->parent, pdir);                       
        the_node = the_node->child[pdir];                             
 200948c:	b0 06 00 04 	add  %i0, %g4, %i0                             
 2009490:	f0 06 20 04 	ld  [ %i0 + 4 ], %i0                           
 2009494:	c2 06 00 00 	ld  [ %i0 ], %g1                               
      }                                                               
      the_node->parent->color = RBT_BLACK;                            
 2009498:	c0 20 60 10 	clr  [ %g1 + 0x10 ]                            
    RBTree_Direction dir                                              
    )                                                                 
{                                                                     
  RBTree_Node *c;                                                     
  if (the_node == NULL) return;                                       
  if (the_node->child[(1-dir)] == NULL) return;                       
 200949c:	88 00 c0 04 	add  %g3, %g4, %g4                             
 20094a0:	c2 01 20 04 	ld  [ %g4 + 4 ], %g1                           
 20094a4:	80 a0 60 00 	cmp  %g1, 0                                    
 20094a8:	02 bf ff bc 	be  2009398 <_RBTree_Validate_insert_unprotected+0x8><== NEVER TAKEN
 20094ac:	d6 20 e0 10 	st  %o3, [ %g3 + 0x10 ]                        
                                                                      
                                                                      
  c = the_node->child[(1-dir)];                                       
  the_node->child[(1-dir)] = c->child[dir];                           
 20094b0:	99 2b 20 02 	sll  %o4, 2, %o4                               
 20094b4:	84 00 40 0c 	add  %g1, %o4, %g2                             
 20094b8:	de 00 a0 04 	ld  [ %g2 + 4 ], %o7                           
 20094bc:	de 21 20 04 	st  %o7, [ %g4 + 4 ]                           
                                                                      
  if (c->child[dir])                                                  
 20094c0:	c4 00 a0 04 	ld  [ %g2 + 4 ], %g2                           
 20094c4:	80 a0 a0 00 	cmp  %g2, 0                                    
 20094c8:	32 80 00 02 	bne,a   20094d0 <_RBTree_Validate_insert_unprotected+0x140>
 20094cc:	c6 20 80 00 	st  %g3, [ %g2 ]                               
    c->child[dir]->parent = the_node;                                 
                                                                      
  c->child[dir] = the_node;                                           
                                                                      
  the_node->parent->child[the_node != the_node->parent->child[0]] = c;
 20094d0:	c4 00 c0 00 	ld  [ %g3 ], %g2                               
  the_node->child[(1-dir)] = c->child[dir];                           
                                                                      
  if (c->child[dir])                                                  
    c->child[dir]->parent = the_node;                                 
                                                                      
  c->child[dir] = the_node;                                           
 20094d4:	98 00 40 0c 	add  %g1, %o4, %o4                             
 20094d8:	c6 23 20 04 	st  %g3, [ %o4 + 4 ]                           
                                                                      
  the_node->parent->child[the_node != the_node->parent->child[0]] = c;
 20094dc:	c8 00 a0 04 	ld  [ %g2 + 4 ], %g4                           
                                                                      
  c->parent = the_node->parent;                                       
 20094e0:	c4 20 40 00 	st  %g2, [ %g1 ]                               
  the_node->parent = c;                                               
 20094e4:	c2 20 c0 00 	st  %g1, [ %g3 ]                               
  if (c->child[dir])                                                  
    c->child[dir]->parent = the_node;                                 
                                                                      
  c->child[dir] = the_node;                                           
                                                                      
  the_node->parent->child[the_node != the_node->parent->child[0]] = c;
 20094e8:	88 19 00 03 	xor  %g4, %g3, %g4                             
 20094ec:	80 a0 00 04 	cmp  %g0, %g4                                  
 20094f0:	86 40 20 00 	addx  %g0, 0, %g3                              
 20094f4:	87 28 e0 02 	sll  %g3, 2, %g3                               
 20094f8:	84 00 80 03 	add  %g2, %g3, %g2                             
 20094fc:	c2 20 a0 04 	st  %g1, [ %g2 + 4 ]                           
  ISR_Level level;                                                    
                                                                      
  _ISR_Disable( level );                                              
    _RBTree_Insert_unprotected( tree, node );                         
  _ISR_Enable( level );                                               
}                                                                     
 2009500:	c2 06 00 00 	ld  [ %i0 ], %g1                               
 */                                                                   
RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_Parent(                     
    RBTree_Node *the_node                                             
    )                                                                 
{                                                                     
  if (!the_node->parent->parent) return NULL;                         
 2009504:	c4 00 40 00 	ld  [ %g1 ], %g2                               
 2009508:	86 90 a0 00 	orcc  %g2, 0, %g3                              
 200950c:	32 bf ff a9 	bne,a   20093b0 <_RBTree_Validate_insert_unprotected+0x20><== ALWAYS TAKEN
 2009510:	c8 00 60 10 	ld  [ %g1 + 0x10 ], %g4                        
                                                                      
      /* now rotate grandparent in the other branch direction (toward uncle) */
      _RBTree_Rotate(g, (1-pdir));                                    
    }                                                                 
  }                                                                   
  if(!the_node->parent->parent) the_node->color = RBT_BLACK;          
 2009514:	c0 26 20 10 	clr  [ %i0 + 0x10 ]                            <== NOT EXECUTED
 2009518:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200951c:	81 e8 00 00 	restore                                        <== NOT EXECUTED
    g = the_node->parent->parent;                                     
                                                                      
    /* if uncle is red, repaint uncle/parent black and grandparent red */
    if(_RBTree_Is_red(u)) {                                           
      the_node->parent->color = RBT_BLACK;                            
      u->color = RBT_BLACK;                                           
 2009520:	c0 21 20 10 	clr  [ %g4 + 0x10 ]                            
      g->color = RBT_RED;                                             
 2009524:	da 20 a0 10 	st  %o5, [ %g2 + 0x10 ]                        
 2009528:	10 bf ff 9c 	b  2009398 <_RBTree_Validate_insert_unprotected+0x8>
 200952c:	b0 10 00 02 	mov  %g2, %i0                                  
 2009530:	10 bf ff da 	b  2009498 <_RBTree_Validate_insert_unprotected+0x108>
 2009534:	89 2b 60 02 	sll  %o5, 2, %g4                               
  if(!the_node) return NULL;                                          
  if(!(the_node->parent)) return NULL;                                
  if(!(the_node->parent->parent)) return NULL;                        
                                                                      
  if(the_node == the_node->parent->child[RBT_LEFT])                   
    return the_node->parent->child[RBT_RIGHT];                        
 2009538:	10 bf ff a9 	b  20093dc <_RBTree_Validate_insert_unprotected+0x4c>
 200953c:	c8 00 a0 08 	ld  [ %g2 + 8 ], %g4                           
                                                                      

02006d18 <_RTEMS_tasks_Initialize_user_tasks_body>: * * Output parameters: NONE */ void _RTEMS_tasks_Initialize_user_tasks_body( void ) {
 2006d18:	9d e3 bf 98 	save  %sp, -104, %sp                           
  rtems_initialization_tasks_table *user_tasks;                       
                                                                      
  /*                                                                  
   *  Move information into local variables                           
   */                                                                 
  user_tasks = Configuration_RTEMS_API.User_initialization_tasks_table;
 2006d1c:	03 00 80 73 	sethi  %hi(0x201cc00), %g1                     
 2006d20:	82 10 60 b4 	or  %g1, 0xb4, %g1	! 201ccb4 <Configuration_RTEMS_API>
 2006d24:	fa 00 60 2c 	ld  [ %g1 + 0x2c ], %i5                        
  maximum    = Configuration_RTEMS_API.number_of_initialization_tasks;
                                                                      
  /*                                                                  
   *  Verify that we have a set of user tasks to iterate              
   */                                                                 
  if ( !user_tasks )                                                  
 2006d28:	80 a7 60 00 	cmp  %i5, 0                                    
 2006d2c:	02 80 00 18 	be  2006d8c <_RTEMS_tasks_Initialize_user_tasks_body+0x74>
 2006d30:	f6 00 60 28 	ld  [ %g1 + 0x28 ], %i3                        
    return;                                                           
                                                                      
  /*                                                                  
   *  Now iterate over the initialization tasks and create/start them.
   */                                                                 
  for ( index=0 ; index < maximum ; index++ ) {                       
 2006d34:	80 a6 e0 00 	cmp  %i3, 0                                    
 2006d38:	02 80 00 15 	be  2006d8c <_RTEMS_tasks_Initialize_user_tasks_body+0x74><== NEVER TAKEN
 2006d3c:	b8 10 20 00 	clr  %i4                                       
    return_value = rtems_task_create(                                 
 2006d40:	d4 07 60 04 	ld  [ %i5 + 4 ], %o2                           
 2006d44:	d0 07 40 00 	ld  [ %i5 ], %o0                               
 2006d48:	d2 07 60 08 	ld  [ %i5 + 8 ], %o1                           
 2006d4c:	d6 07 60 14 	ld  [ %i5 + 0x14 ], %o3                        
 2006d50:	d8 07 60 0c 	ld  [ %i5 + 0xc ], %o4                         
 2006d54:	7f ff ff 70 	call  2006b14 <rtems_task_create>              
 2006d58:	9a 07 bf fc 	add  %fp, -4, %o5                              
      user_tasks[ index ].stack_size,                                 
      user_tasks[ index ].mode_set,                                   
      user_tasks[ index ].attribute_set,                              
      &id                                                             
    );                                                                
    if ( !rtems_is_status_successful( return_value ) )                
 2006d5c:	94 92 20 00 	orcc  %o0, 0, %o2                              
 2006d60:	12 80 00 0d 	bne  2006d94 <_RTEMS_tasks_Initialize_user_tasks_body+0x7c>
 2006d64:	d0 07 bf fc 	ld  [ %fp + -4 ], %o0                          
      _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value );
                                                                      
    return_value = rtems_task_start(                                  
 2006d68:	d4 07 60 18 	ld  [ %i5 + 0x18 ], %o2                        
 2006d6c:	40 00 00 0e 	call  2006da4 <rtems_task_start>               
 2006d70:	d2 07 60 10 	ld  [ %i5 + 0x10 ], %o1                        
      id,                                                             
      user_tasks[ index ].entry_point,                                
      user_tasks[ index ].argument                                    
    );                                                                
    if ( !rtems_is_status_successful( return_value ) )                
 2006d74:	94 92 20 00 	orcc  %o0, 0, %o2                              
 2006d78:	12 80 00 07 	bne  2006d94 <_RTEMS_tasks_Initialize_user_tasks_body+0x7c>
 2006d7c:	b8 07 20 01 	inc  %i4                                       
    return;                                                           
                                                                      
  /*                                                                  
   *  Now iterate over the initialization tasks and create/start them.
   */                                                                 
  for ( index=0 ; index < maximum ; index++ ) {                       
 2006d80:	80 a7 00 1b 	cmp  %i4, %i3                                  
 2006d84:	12 bf ff ef 	bne  2006d40 <_RTEMS_tasks_Initialize_user_tasks_body+0x28><== NEVER TAKEN
 2006d88:	ba 07 60 1c 	add  %i5, 0x1c, %i5                            
 2006d8c:	81 c7 e0 08 	ret                                            
 2006d90:	81 e8 00 00 	restore                                        
      id,                                                             
      user_tasks[ index ].entry_point,                                
      user_tasks[ index ].argument                                    
    );                                                                
    if ( !rtems_is_status_successful( return_value ) )                
      _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value );
 2006d94:	90 10 20 01 	mov  1, %o0                                    
 2006d98:	40 00 04 16 	call  2007df0 <_Internal_error_Occurred>       
 2006d9c:	92 10 20 01 	mov  1, %o1                                    
                                                                      

0200cebc <_RTEMS_tasks_Switch_extension>: /* * Per Task Variables */ tvp = executing->task_variables;
 200cebc:	c2 02 21 64 	ld  [ %o0 + 0x164 ], %g1                       
  while (tvp) {                                                       
 200cec0:	80 a0 60 00 	cmp  %g1, 0                                    
 200cec4:	22 80 00 0c 	be,a   200cef4 <_RTEMS_tasks_Switch_extension+0x38>
 200cec8:	c2 02 61 64 	ld  [ %o1 + 0x164 ], %g1                       
    tvp->tval = *tvp->ptr;                                            
 200cecc:	c4 00 60 04 	ld  [ %g1 + 4 ], %g2                           
    *tvp->ptr = tvp->gval;                                            
 200ced0:	c6 00 60 08 	ld  [ %g1 + 8 ], %g3                           
   *  Per Task Variables                                              
   */                                                                 
                                                                      
  tvp = executing->task_variables;                                    
  while (tvp) {                                                       
    tvp->tval = *tvp->ptr;                                            
 200ced4:	c8 00 80 00 	ld  [ %g2 ], %g4                               
 200ced8:	c8 20 60 0c 	st  %g4, [ %g1 + 0xc ]                         
    *tvp->ptr = tvp->gval;                                            
 200cedc:	c6 20 80 00 	st  %g3, [ %g2 ]                               
    tvp = (rtems_task_variable_t *)tvp->next;                         
 200cee0:	c2 00 40 00 	ld  [ %g1 ], %g1                               
  /*                                                                  
   *  Per Task Variables                                              
   */                                                                 
                                                                      
  tvp = executing->task_variables;                                    
  while (tvp) {                                                       
 200cee4:	80 a0 60 00 	cmp  %g1, 0                                    
 200cee8:	32 bf ff fa 	bne,a   200ced0 <_RTEMS_tasks_Switch_extension+0x14><== NEVER TAKEN
 200ceec:	c4 00 60 04 	ld  [ %g1 + 4 ], %g2                           <== NOT EXECUTED
    tvp->tval = *tvp->ptr;                                            
    *tvp->ptr = tvp->gval;                                            
    tvp = (rtems_task_variable_t *)tvp->next;                         
  }                                                                   
                                                                      
  tvp = heir->task_variables;                                         
 200cef0:	c2 02 61 64 	ld  [ %o1 + 0x164 ], %g1                       
  while (tvp) {                                                       
 200cef4:	80 a0 60 00 	cmp  %g1, 0                                    
 200cef8:	02 80 00 0b 	be  200cf24 <_RTEMS_tasks_Switch_extension+0x68>
 200cefc:	01 00 00 00 	nop                                            
    tvp->gval = *tvp->ptr;                                            
 200cf00:	c4 00 60 04 	ld  [ %g1 + 4 ], %g2                           
    *tvp->ptr = tvp->tval;                                            
 200cf04:	c6 00 60 0c 	ld  [ %g1 + 0xc ], %g3                         
    tvp = (rtems_task_variable_t *)tvp->next;                         
  }                                                                   
                                                                      
  tvp = heir->task_variables;                                         
  while (tvp) {                                                       
    tvp->gval = *tvp->ptr;                                            
 200cf08:	c8 00 80 00 	ld  [ %g2 ], %g4                               
 200cf0c:	c8 20 60 08 	st  %g4, [ %g1 + 8 ]                           
    *tvp->ptr = tvp->tval;                                            
 200cf10:	c6 20 80 00 	st  %g3, [ %g2 ]                               
    tvp = (rtems_task_variable_t *)tvp->next;                         
 200cf14:	c2 00 40 00 	ld  [ %g1 ], %g1                               
    *tvp->ptr = tvp->gval;                                            
    tvp = (rtems_task_variable_t *)tvp->next;                         
  }                                                                   
                                                                      
  tvp = heir->task_variables;                                         
  while (tvp) {                                                       
 200cf18:	80 a0 60 00 	cmp  %g1, 0                                    
 200cf1c:	32 bf ff fa 	bne,a   200cf04 <_RTEMS_tasks_Switch_extension+0x48><== NEVER TAKEN
 200cf20:	c4 00 60 04 	ld  [ %g1 + 4 ], %g2                           <== NOT EXECUTED
 200cf24:	81 c3 e0 08 	retl                                           
                                                                      

02007a98 <_Rate_monotonic_Timeout>: void _Rate_monotonic_Timeout( Objects_Id id, void *ignored ) {
 2007a98:	9d e3 bf 98 	save  %sp, -104, %sp                           
 2007a9c:	11 00 80 7d 	sethi  %hi(0x201f400), %o0                     
 2007aa0:	92 10 00 18 	mov  %i0, %o1                                  
 2007aa4:	90 12 22 d4 	or  %o0, 0x2d4, %o0                            
 2007aa8:	40 00 08 4e 	call  2009be0 <_Objects_Get>                   
 2007aac:	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 ) {                                               
 2007ab0:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 2007ab4:	80 a0 60 00 	cmp  %g1, 0                                    
 2007ab8:	12 80 00 17 	bne  2007b14 <_Rate_monotonic_Timeout+0x7c>    <== NEVER TAKEN
 2007abc:	ba 10 00 08 	mov  %o0, %i5                                  
                                                                      
    case OBJECTS_LOCAL:                                               
      the_thread = the_period->owner;                                 
 2007ac0:	d0 02 20 40 	ld  [ %o0 + 0x40 ], %o0                        
      if ( _States_Is_waiting_for_period( the_thread->current_state ) &&
 2007ac4:	03 00 00 10 	sethi  %hi(0x4000), %g1                        
 */                                                                   
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_period (             
  States_Control the_states                                           
)                                                                     
{                                                                     
   return (the_states & STATES_WAITING_FOR_PERIOD);                   
 2007ac8:	c4 02 20 10 	ld  [ %o0 + 0x10 ], %g2                        
 2007acc:	80 88 80 01 	btst  %g2, %g1                                 
 2007ad0:	22 80 00 08 	be,a   2007af0 <_Rate_monotonic_Timeout+0x58>  
 2007ad4:	c2 07 60 38 	ld  [ %i5 + 0x38 ], %g1                        
 2007ad8:	c4 02 20 20 	ld  [ %o0 + 0x20 ], %g2                        
 2007adc:	c2 07 60 08 	ld  [ %i5 + 8 ], %g1                           
 2007ae0:	80 a0 80 01 	cmp  %g2, %g1                                  
 2007ae4:	02 80 00 1a 	be  2007b4c <_Rate_monotonic_Timeout+0xb4>     
 2007ae8:	13 04 00 ff 	sethi  %hi(0x1003fc00), %o1                    
        _Thread_Unblock( the_thread );                                
                                                                      
        _Rate_monotonic_Initiate_statistics( the_period );            
                                                                      
        _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length );
      } else if ( the_period->state == RATE_MONOTONIC_OWNER_IS_BLOCKING ) {
 2007aec:	c2 07 60 38 	ld  [ %i5 + 0x38 ], %g1                        
 2007af0:	80 a0 60 01 	cmp  %g1, 1                                    
 2007af4:	02 80 00 0a 	be  2007b1c <_Rate_monotonic_Timeout+0x84>     
 2007af8:	82 10 20 04 	mov  4, %g1                                    
                                                                      
        _Rate_monotonic_Initiate_statistics( the_period );            
                                                                      
        _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length );
      } else                                                          
        the_period->state = RATE_MONOTONIC_EXPIRED;                   
 2007afc:	c2 27 60 38 	st  %g1, [ %i5 + 0x38 ]                        
   *                                                                  
   * This routine decrements the thread dispatch level.               
   */                                                                 
  RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_decrement_disable_level(void)
  {                                                                   
    _Thread_Dispatch_disable_level--;                                 
 2007b00:	03 00 80 7e 	sethi  %hi(0x201f800), %g1                     
 2007b04:	c4 00 60 40 	ld  [ %g1 + 0x40 ], %g2	! 201f840 <_Thread_Dispatch_disable_level>
 2007b08:	84 00 bf ff 	add  %g2, -1, %g2                              
 2007b0c:	c4 20 60 40 	st  %g2, [ %g1 + 0x40 ]                        
    return _Thread_Dispatch_disable_level;                            
 2007b10:	c2 00 60 40 	ld  [ %g1 + 0x40 ], %g1                        
 2007b14:	81 c7 e0 08 	ret                                            
 2007b18:	81 e8 00 00 	restore                                        
                                                                      
        _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;    
 2007b1c:	82 10 20 03 	mov  3, %g1                                    
                                                                      
        _Rate_monotonic_Initiate_statistics( the_period );            
 2007b20:	90 10 00 1d 	mov  %i5, %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;    
 2007b24:	c2 27 60 38 	st  %g1, [ %i5 + 0x38 ]                        
                                                                      
        _Rate_monotonic_Initiate_statistics( the_period );            
 2007b28:	7f ff fe 5a 	call  2007490 <_Rate_monotonic_Initiate_statistics>
 2007b2c:	01 00 00 00 	nop                                            
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
 2007b30:	c2 07 60 3c 	ld  [ %i5 + 0x3c ], %g1                        
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 2007b34:	11 00 80 7e 	sethi  %hi(0x201f800), %o0                     
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
 2007b38:	c2 27 60 1c 	st  %g1, [ %i5 + 0x1c ]                        
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 2007b3c:	90 12 20 fc 	or  %o0, 0xfc, %o0                             
 2007b40:	40 00 10 44 	call  200bc50 <_Watchdog_Insert>               
 2007b44:	92 07 60 10 	add  %i5, 0x10, %o1                            
 2007b48:	30 bf ff ee 	b,a   2007b00 <_Rate_monotonic_Timeout+0x68>   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unblock (                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
  _Thread_Clear_state( the_thread, STATES_BLOCKED );                  
 2007b4c:	40 00 0b 2a 	call  200a7f4 <_Thread_Clear_state>            
 2007b50:	92 12 63 f8 	or  %o1, 0x3f8, %o1                            
      the_thread = the_period->owner;                                 
      if ( _States_Is_waiting_for_period( the_thread->current_state ) &&
            the_thread->Wait.id == the_period->Object.id ) {          
        _Thread_Unblock( the_thread );                                
                                                                      
        _Rate_monotonic_Initiate_statistics( the_period );            
 2007b54:	10 bf ff f5 	b  2007b28 <_Rate_monotonic_Timeout+0x90>      
 2007b58:	90 10 00 1d 	mov  %i5, %o0                                  
                                                                      

02008be0 <_Scheduler_priority_Tick>: #include <rtems/system.h> #include <rtems/score/schedulerpriority.h> void _Scheduler_priority_Tick( void ) {
 2008be0:	9d e3 bf 98 	save  %sp, -104, %sp                           
  Thread_Control *executing;                                          
                                                                      
  executing = _Thread_Executing;                                      
 2008be4:	03 00 80 77 	sethi  %hi(0x201dc00), %g1                     
 2008be8:	d0 00 63 14 	ld  [ %g1 + 0x314 ], %o0	! 201df14 <_Per_CPU_Information+0xc>
  /*                                                                  
   *  If the thread is not preemptible or is not ready, then          
   *  just return.                                                    
   */                                                                 
                                                                      
  if ( !executing->is_preemptible )                                   
 2008bec:	c2 0a 20 74 	ldub  [ %o0 + 0x74 ], %g1                      
 2008bf0:	80 a0 60 00 	cmp  %g1, 0                                    
 2008bf4:	02 80 00 26 	be  2008c8c <_Scheduler_priority_Tick+0xac>    
 2008bf8:	01 00 00 00 	nop                                            
    return;                                                           
                                                                      
  if ( !_States_Is_ready( executing->current_state ) )                
 2008bfc:	c2 02 20 10 	ld  [ %o0 + 0x10 ], %g1                        
 2008c00:	80 a0 60 00 	cmp  %g1, 0                                    
 2008c04:	12 80 00 22 	bne  2008c8c <_Scheduler_priority_Tick+0xac>   
 2008c08:	01 00 00 00 	nop                                            
                                                                      
  /*                                                                  
   *  The cpu budget algorithm determines what happens next.          
   */                                                                 
                                                                      
  switch ( executing->budget_algorithm ) {                            
 2008c0c:	c2 02 20 7c 	ld  [ %o0 + 0x7c ], %g1                        
 2008c10:	80 a0 60 01 	cmp  %g1, 1                                    
 2008c14:	0a 80 00 07 	bcs  2008c30 <_Scheduler_priority_Tick+0x50>   
 2008c18:	80 a0 60 02 	cmp  %g1, 2                                    
 2008c1c:	28 80 00 10 	bleu,a   2008c5c <_Scheduler_priority_Tick+0x7c>
 2008c20:	c2 02 20 78 	ld  [ %o0 + 0x78 ], %g1                        
 2008c24:	80 a0 60 03 	cmp  %g1, 3                                    
 2008c28:	22 80 00 04 	be,a   2008c38 <_Scheduler_priority_Tick+0x58> <== ALWAYS TAKEN
 2008c2c:	c2 02 20 78 	ld  [ %o0 + 0x78 ], %g1                        
 2008c30:	81 c7 e0 08 	ret                                            
 2008c34:	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 )                             
 2008c38:	82 00 7f ff 	add  %g1, -1, %g1                              
 2008c3c:	80 a0 60 00 	cmp  %g1, 0                                    
 2008c40:	12 bf ff fc 	bne  2008c30 <_Scheduler_priority_Tick+0x50>   
 2008c44:	c2 22 20 78 	st  %g1, [ %o0 + 0x78 ]                        
	  (*executing->budget_callout)( executing );                         
 2008c48:	c2 02 20 80 	ld  [ %o0 + 0x80 ], %g1                        
 2008c4c:	9f c0 40 00 	call  %g1                                      
 2008c50:	01 00 00 00 	nop                                            
 2008c54:	81 c7 e0 08 	ret                                            
 2008c58:	81 e8 00 00 	restore                                        
                                                                      
    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 ) {               
 2008c5c:	82 00 7f ff 	add  %g1, -1, %g1                              
 2008c60:	80 a0 60 00 	cmp  %g1, 0                                    
 2008c64:	14 bf ff f3 	bg  2008c30 <_Scheduler_priority_Tick+0x50>    
 2008c68:	c2 22 20 78 	st  %g1, [ %o0 + 0x78 ]                        
 *  always operates on the scheduler that 'owns' the currently executing
 *  thread.                                                           
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_Yield( void )                    
{                                                                     
  _Scheduler.Operations.yield();                                      
 2008c6c:	03 00 80 73 	sethi  %hi(0x201cc00), %g1                     
 2008c70:	c2 00 61 60 	ld  [ %g1 + 0x160 ], %g1	! 201cd60 <_Scheduler+0xc>
 2008c74:	9f c0 40 00 	call  %g1                                      
 2008c78:	d0 27 bf fc 	st  %o0, [ %fp + -4 ]                          
         *  executing thread's timeslice is reset.  Otherwise, the    
         *  currently executing thread is placed at the rear of the   
         *  FIFO for this priority and a new heir is selected.        
         */                                                           
        _Scheduler_Yield();                                           
        executing->cpu_time_budget = _Thread_Ticks_per_timeslice;     
 2008c7c:	03 00 80 76 	sethi  %hi(0x201d800), %g1                     
 2008c80:	d0 07 bf fc 	ld  [ %fp + -4 ], %o0                          
 2008c84:	c2 00 61 34 	ld  [ %g1 + 0x134 ], %g1                       
 2008c88:	c2 22 20 78 	st  %g1, [ %o0 + 0x78 ]                        
 2008c8c:	81 c7 e0 08 	ret                                            
 2008c90:	81 e8 00 00 	restore                                        
                                                                      

02009350 <_Scheduler_simple_Ready_queue_enqueue_first>: { Chain_Control *ready; Chain_Node *the_node; Thread_Control *current; ready = (Chain_Control *)_Scheduler.information;
 2009350:	03 00 80 77 	sethi  %hi(0x201dc00), %g1                     
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
 2009354:	c2 00 60 24 	ld  [ %g1 + 0x24 ], %g1	! 201dc24 <_Scheduler> 
   */                                                                 
  for ( the_node = _Chain_First(ready) ; ; the_node = the_node->next ) {
    current = (Thread_Control *) the_node;                            
                                                                      
    /* break when AT HEAD OF (or PAST) our priority */                
    if ( the_thread->current_priority <= current->current_priority ) {
 2009358:	c6 02 20 14 	ld  [ %o0 + 0x14 ], %g3                        
 200935c:	c2 00 40 00 	ld  [ %g1 ], %g1                               
 2009360:	c4 00 60 14 	ld  [ %g1 + 0x14 ], %g2                        
 2009364:	80 a0 80 03 	cmp  %g2, %g3                                  
 2009368:	3a 80 00 08 	bcc,a   2009388 <_Scheduler_simple_Ready_queue_enqueue_first+0x38>
 200936c:	c2 00 60 04 	ld  [ %g1 + 4 ], %g1                           
   * Do NOT need to check for end of chain because there is always    
   * at least one task on the ready chain -- the IDLE task.  It can   
   * never block, should never attempt to obtain a semaphore or mutex,
   * and thus will always be there.                                   
   */                                                                 
  for ( the_node = _Chain_First(ready) ; ; the_node = the_node->next ) {
 2009370:	c2 00 40 00 	ld  [ %g1 ], %g1                               
    current = (Thread_Control *) the_node;                            
                                                                      
    /* break when AT HEAD OF (or PAST) our priority */                
    if ( the_thread->current_priority <= current->current_priority ) {
 2009374:	c4 00 60 14 	ld  [ %g1 + 0x14 ], %g2                        
 2009378:	80 a0 80 03 	cmp  %g2, %g3                                  
 200937c:	2a bf ff fe 	bcs,a   2009374 <_Scheduler_simple_Ready_queue_enqueue_first+0x24><== NEVER TAKEN
 2009380:	c2 00 40 00 	ld  [ %g1 ], %g1                               <== NOT EXECUTED
      current = (Thread_Control *)current->Object.Node.previous;      
 2009384:	c2 00 60 04 	ld  [ %g1 + 4 ], %g1                           
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
  before_node           = after_node->next;                           
 2009388:	c4 00 40 00 	ld  [ %g1 ], %g2                               
  Chain_Node *the_node                                                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
 200938c:	c2 22 20 04 	st  %g1, [ %o0 + 4 ]                           
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
 2009390:	d0 20 40 00 	st  %o0, [ %g1 ]                               
  the_node->next        = before_node;                                
 2009394:	c4 22 00 00 	st  %g2, [ %o0 ]                               
    }                                                                 
  }                                                                   
                                                                      
  /* enqueue */                                                       
  _Chain_Insert_unprotected( (Chain_Node *)current, &the_thread->Object.Node );
}                                                                     
 2009398:	81 c3 e0 08 	retl                                           
 200939c:	d0 20 a0 04 	st  %o0, [ %g2 + 4 ]                           
                                                                      

020074dc <_TOD_Validate>: */ bool _TOD_Validate( const rtems_time_of_day *the_tod ) {
 20074dc:	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();                 
 20074e0:	03 00 80 7c 	sethi  %hi(0x201f000), %g1                     
      (the_tod->hour   >= TOD_HOURS_PER_DAY)      ||                  
      (the_tod->month  == 0)                      ||                  
      (the_tod->month  >  TOD_MONTHS_PER_YEAR)    ||                  
      (the_tod->year   <  TOD_BASE_YEAR)          ||                  
      (the_tod->day    == 0) )                                        
     return false;                                                    
 20074e4:	ba 10 20 00 	clr  %i5                                       
  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)                                  ||                  
 20074e8:	80 a6 20 00 	cmp  %i0, 0                                    
 20074ec:	02 80 00 2c 	be  200759c <_TOD_Validate+0xc0>               <== NEVER TAKEN
 20074f0:	d2 00 63 98 	ld  [ %g1 + 0x398 ], %o1                       
)                                                                     
{                                                                     
  uint32_t   days_in_month;                                           
  uint32_t   ticks_per_second;                                        
                                                                      
  ticks_per_second = TOD_MICROSECONDS_PER_SECOND /                    
 20074f4:	11 00 03 d0 	sethi  %hi(0xf4000), %o0                       
 20074f8:	40 00 4c b8 	call  201a7d8 <.udiv>                          
 20074fc:	90 12 22 40 	or  %o0, 0x240, %o0	! f4240 <PROM_START+0xf4240>
	    rtems_configuration_get_microseconds_per_tick();                 
  if ((!the_tod)                                  ||                  
 2007500:	c2 06 20 18 	ld  [ %i0 + 0x18 ], %g1                        
 2007504:	80 a2 00 01 	cmp  %o0, %g1                                  
 2007508:	28 80 00 26 	bleu,a   20075a0 <_TOD_Validate+0xc4>          
 200750c:	b0 0f 60 01 	and  %i5, 1, %i0                               
      (the_tod->ticks  >= ticks_per_second)       ||                  
 2007510:	c2 06 20 14 	ld  [ %i0 + 0x14 ], %g1                        
 2007514:	80 a0 60 3b 	cmp  %g1, 0x3b                                 
 2007518:	38 80 00 22 	bgu,a   20075a0 <_TOD_Validate+0xc4>           
 200751c:	b0 0f 60 01 	and  %i5, 1, %i0                               
      (the_tod->second >= TOD_SECONDS_PER_MINUTE) ||                  
 2007520:	c2 06 20 10 	ld  [ %i0 + 0x10 ], %g1                        
 2007524:	80 a0 60 3b 	cmp  %g1, 0x3b                                 
 2007528:	38 80 00 1e 	bgu,a   20075a0 <_TOD_Validate+0xc4>           
 200752c:	b0 0f 60 01 	and  %i5, 1, %i0                               
      (the_tod->minute >= TOD_MINUTES_PER_HOUR)   ||                  
 2007530:	c2 06 20 0c 	ld  [ %i0 + 0xc ], %g1                         
 2007534:	80 a0 60 17 	cmp  %g1, 0x17                                 
 2007538:	38 80 00 1a 	bgu,a   20075a0 <_TOD_Validate+0xc4>           
 200753c:	b0 0f 60 01 	and  %i5, 1, %i0                               
      (the_tod->hour   >= TOD_HOURS_PER_DAY)      ||                  
      (the_tod->month  == 0)                      ||                  
 2007540:	c2 06 20 04 	ld  [ %i0 + 4 ], %g1                           
	    rtems_configuration_get_microseconds_per_tick();                 
  if ((!the_tod)                                  ||                  
      (the_tod->ticks  >= ticks_per_second)       ||                  
      (the_tod->second >= TOD_SECONDS_PER_MINUTE) ||                  
      (the_tod->minute >= TOD_MINUTES_PER_HOUR)   ||                  
      (the_tod->hour   >= TOD_HOURS_PER_DAY)      ||                  
 2007544:	80 a0 60 00 	cmp  %g1, 0                                    
 2007548:	02 80 00 15 	be  200759c <_TOD_Validate+0xc0>               <== NEVER TAKEN
 200754c:	80 a0 60 0c 	cmp  %g1, 0xc                                  
      (the_tod->month  == 0)                      ||                  
 2007550:	38 80 00 14 	bgu,a   20075a0 <_TOD_Validate+0xc4>           
 2007554:	b0 0f 60 01 	and  %i5, 1, %i0                               
      (the_tod->month  >  TOD_MONTHS_PER_YEAR)    ||                  
      (the_tod->year   <  TOD_BASE_YEAR)          ||                  
 2007558:	c4 06 00 00 	ld  [ %i0 ], %g2                               
      (the_tod->ticks  >= ticks_per_second)       ||                  
      (the_tod->second >= TOD_SECONDS_PER_MINUTE) ||                  
      (the_tod->minute >= TOD_MINUTES_PER_HOUR)   ||                  
      (the_tod->hour   >= TOD_HOURS_PER_DAY)      ||                  
      (the_tod->month  == 0)                      ||                  
      (the_tod->month  >  TOD_MONTHS_PER_YEAR)    ||                  
 200755c:	80 a0 a7 c3 	cmp  %g2, 0x7c3                                
 2007560:	28 80 00 10 	bleu,a   20075a0 <_TOD_Validate+0xc4>          
 2007564:	b0 0f 60 01 	and  %i5, 1, %i0                               
      (the_tod->year   <  TOD_BASE_YEAR)          ||                  
      (the_tod->day    == 0) )                                        
 2007568:	c6 06 20 08 	ld  [ %i0 + 8 ], %g3                           
      (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)          ||                  
 200756c:	80 a0 e0 00 	cmp  %g3, 0                                    
 2007570:	02 80 00 0b 	be  200759c <_TOD_Validate+0xc0>               <== NEVER TAKEN
 2007574:	80 88 a0 03 	btst  3, %g2                                   
      (the_tod->day    == 0) )                                        
     return false;                                                    
                                                                      
  if ( (the_tod->year % 4) == 0 )                                     
 2007578:	32 80 00 0c 	bne,a   20075a8 <_TOD_Validate+0xcc>           
 200757c:	83 28 60 02 	sll  %g1, 2, %g1                               
    days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ];       
 2007580:	82 00 60 0d 	add  %g1, 0xd, %g1                             
 2007584:	05 00 80 77 	sethi  %hi(0x201dc00), %g2                     
 2007588:	83 28 60 02 	sll  %g1, 2, %g1                               
 200758c:	84 10 a2 e8 	or  %g2, 0x2e8, %g2                            
 2007590:	c2 00 80 01 	ld  [ %g2 + %g1 ], %g1                         
 *    false - if the the_tod is invalid                               
 *                                                                    
 *  NOTE: This routine only works for leap-years through 2099.        
 */                                                                   
                                                                      
bool _TOD_Validate(                                                   
 2007594:	80 a0 40 03 	cmp  %g1, %g3                                  
 2007598:	ba 60 3f ff 	subx  %g0, -1, %i5                             
                                                                      
  if ( the_tod->day > days_in_month )                                 
    return false;                                                     
                                                                      
  return true;                                                        
}                                                                     
 200759c:	b0 0f 60 01 	and  %i5, 1, %i0                               
 20075a0:	81 c7 e0 08 	ret                                            
 20075a4:	81 e8 00 00 	restore                                        
     return false;                                                    
                                                                      
  if ( (the_tod->year % 4) == 0 )                                     
    days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ];       
  else                                                                
    days_in_month = _TOD_Days_per_month[ 0 ][ the_tod->month ];       
 20075a8:	05 00 80 77 	sethi  %hi(0x201dc00), %g2                     
 20075ac:	84 10 a2 e8 	or  %g2, 0x2e8, %g2	! 201dee8 <_TOD_Days_per_month>
 20075b0:	c2 00 80 01 	ld  [ %g2 + %g1 ], %g1                         
 *    false - if the the_tod is invalid                               
 *                                                                    
 *  NOTE: This routine only works for leap-years through 2099.        
 */                                                                   
                                                                      
bool _TOD_Validate(                                                   
 20075b4:	80 a0 40 03 	cmp  %g1, %g3                                  
 20075b8:	10 bf ff f9 	b  200759c <_TOD_Validate+0xc0>                
 20075bc:	ba 60 3f ff 	subx  %g0, -1, %i5                             
                                                                      

02008eb8 <_Thread_Change_priority>: void _Thread_Change_priority( Thread_Control *the_thread, Priority_Control new_priority, bool prepend_it ) {
 2008eb8:	9d e3 bf a0 	save  %sp, -96, %sp                            
  States_Control state, original_state;                               
                                                                      
  /*                                                                  
   * Save original state                                              
   */                                                                 
  original_state = the_thread->current_state;                         
 2008ebc:	f8 06 20 10 	ld  [ %i0 + 0x10 ], %i4                        
  /*                                                                  
   * 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 );                                
 2008ec0:	40 00 03 a9 	call  2009d64 <_Thread_Set_transient>          
 2008ec4:	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 )                  
 2008ec8:	c2 06 20 14 	ld  [ %i0 + 0x14 ], %g1                        
 2008ecc:	80 a0 40 19 	cmp  %g1, %i1                                  
 2008ed0:	02 80 00 05 	be  2008ee4 <_Thread_Change_priority+0x2c>     
 2008ed4:	ba 10 00 18 	mov  %i0, %i5                                  
    _Thread_Set_priority( the_thread, new_priority );                 
 2008ed8:	90 10 00 18 	mov  %i0, %o0                                  
 2008edc:	40 00 03 88 	call  2009cfc <_Thread_Set_priority>           
 2008ee0:	92 10 00 19 	mov  %i1, %o1                                  
                                                                      
  _ISR_Disable( level );                                              
 2008ee4:	7f ff e4 c0 	call  20021e4 <sparc_disable_interrupts>       
 2008ee8:	01 00 00 00 	nop                                            
 2008eec:	b2 10 00 08 	mov  %o0, %i1                                  
                                                                      
  /*                                                                  
   *  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;                                  
 2008ef0:	f6 07 60 10 	ld  [ %i5 + 0x10 ], %i3                        
  if ( state != STATES_TRANSIENT ) {                                  
 2008ef4:	80 a6 e0 04 	cmp  %i3, 4                                    
 2008ef8:	02 80 00 18 	be  2008f58 <_Thread_Change_priority+0xa0>     
 2008efc:	80 8f 20 04 	btst  4, %i4                                   
    /* Only clear the transient state if it wasn't set already */     
    if ( ! _States_Is_transient( original_state ) )                   
 2008f00:	02 80 00 0b 	be  2008f2c <_Thread_Change_priority+0x74>     <== ALWAYS TAKEN
 2008f04:	82 0e ff fb 	and  %i3, -5, %g1                              
      the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
    _ISR_Enable( level );                                             
 2008f08:	7f ff e4 bb 	call  20021f4 <sparc_enable_interrupts>        <== NOT EXECUTED
 2008f0c:	90 10 00 19 	mov  %i1, %o0                                  <== NOT EXECUTED
 */                                                                   
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_on_thread_queue (        
  States_Control the_states                                           
)                                                                     
{                                                                     
   return (the_states & STATES_WAITING_ON_THREAD_QUEUE);              
 2008f10:	03 00 00 ef 	sethi  %hi(0x3bc00), %g1                       <== NOT EXECUTED
 2008f14:	82 10 62 e0 	or  %g1, 0x2e0, %g1	! 3bee0 <PROM_START+0x3bee0><== NOT EXECUTED
    if ( _States_Is_waiting_on_thread_queue( state ) ) {              
 2008f18:	80 8e c0 01 	btst  %i3, %g1                                 <== NOT EXECUTED
 2008f1c:	32 80 00 0d 	bne,a   2008f50 <_Thread_Change_priority+0x98> <== NOT EXECUTED
 2008f20:	f0 07 60 44 	ld  [ %i5 + 0x44 ], %i0                        <== NOT EXECUTED
 2008f24:	81 c7 e0 08 	ret                                            
 2008f28:	81 e8 00 00 	restore                                        
   */                                                                 
  state = the_thread->current_state;                                  
  if ( state != STATES_TRANSIENT ) {                                  
    /* Only clear the transient state if it wasn't set already */     
    if ( ! _States_Is_transient( original_state ) )                   
      the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
 2008f2c:	c2 27 60 10 	st  %g1, [ %i5 + 0x10 ]                        
    _ISR_Enable( level );                                             
 2008f30:	7f ff e4 b1 	call  20021f4 <sparc_enable_interrupts>        
 2008f34:	90 10 00 19 	mov  %i1, %o0                                  
 2008f38:	03 00 00 ef 	sethi  %hi(0x3bc00), %g1                       
 2008f3c:	82 10 62 e0 	or  %g1, 0x2e0, %g1	! 3bee0 <PROM_START+0x3bee0>
    if ( _States_Is_waiting_on_thread_queue( state ) ) {              
 2008f40:	80 8e c0 01 	btst  %i3, %g1                                 
 2008f44:	02 bf ff f8 	be  2008f24 <_Thread_Change_priority+0x6c>     
 2008f48:	01 00 00 00 	nop                                            
      _Thread_queue_Requeue( the_thread->Wait.queue, the_thread );    
 2008f4c:	f0 07 60 44 	ld  [ %i5 + 0x44 ], %i0                        
 2008f50:	40 00 03 3a 	call  2009c38 <_Thread_queue_Requeue>          
 2008f54:	93 e8 00 1d 	restore  %g0, %i5, %o1                         
 2008f58:	39 00 80 73 	sethi  %hi(0x201cc00), %i4                     
    }                                                                 
    return;                                                           
  }                                                                   
                                                                      
  /* Only clear the transient state if it wasn't set already */       
  if ( ! _States_Is_transient( original_state ) ) {                   
 2008f5c:	12 80 00 08 	bne  2008f7c <_Thread_Change_priority+0xc4>    <== NEVER TAKEN
 2008f60:	b8 17 21 54 	or  %i4, 0x154, %i4	! 201cd54 <_Scheduler>     
     *  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 );
                                                                      
    if ( prepend_it )                                                 
 2008f64:	80 a6 a0 00 	cmp  %i2, 0                                    
 2008f68:	02 80 00 1b 	be  2008fd4 <_Thread_Change_priority+0x11c>    
 2008f6c:	c0 27 60 10 	clr  [ %i5 + 0x10 ]                            
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_Enqueue_first(                   
  Thread_Control    *the_thread                                       
)                                                                     
{                                                                     
  _Scheduler.Operations.enqueue_first( the_thread );                  
 2008f70:	c2 07 20 28 	ld  [ %i4 + 0x28 ], %g1                        
 2008f74:	9f c0 40 00 	call  %g1                                      
 2008f78:	90 10 00 1d 	mov  %i5, %o0                                  
      _Scheduler_Enqueue_first( the_thread );                         
    else                                                              
      _Scheduler_Enqueue( the_thread );                               
  }                                                                   
                                                                      
  _ISR_Flash( level );                                                
 2008f7c:	7f ff e4 9e 	call  20021f4 <sparc_enable_interrupts>        
 2008f80:	90 10 00 19 	mov  %i1, %o0                                  
 2008f84:	7f ff e4 98 	call  20021e4 <sparc_disable_interrupts>       
 2008f88:	01 00 00 00 	nop                                            
 2008f8c:	b0 10 00 08 	mov  %o0, %i0                                  
 *  This kernel routine implements the scheduling decision logic for  
 *  the scheduler. It does NOT dispatch.                              
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_Schedule( void )                 
{                                                                     
  _Scheduler.Operations.schedule();                                   
 2008f90:	c2 07 20 08 	ld  [ %i4 + 8 ], %g1                           
 2008f94:	9f c0 40 00 	call  %g1                                      
 2008f98:	01 00 00 00 	nop                                            
 *  is also the heir thread, and false otherwise.                     
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing_also_the_heir( void )  
{                                                                     
  return ( _Thread_Executing == _Thread_Heir );                       
 2008f9c:	03 00 80 77 	sethi  %hi(0x201dc00), %g1                     
 2008fa0:	82 10 63 08 	or  %g1, 0x308, %g1	! 201df08 <_Per_CPU_Information>
 2008fa4:	c4 00 60 0c 	ld  [ %g1 + 0xc ], %g2                         
   *  We altered the set of thread priorities.  So let's figure out   
   *  who is the heir and if we need to switch to them.               
   */                                                                 
  _Scheduler_Schedule();                                              
                                                                      
  if ( !_Thread_Is_executing_also_the_heir() &&                       
 2008fa8:	c6 00 60 10 	ld  [ %g1 + 0x10 ], %g3                        
 2008fac:	80 a0 80 03 	cmp  %g2, %g3                                  
 2008fb0:	02 80 00 07 	be  2008fcc <_Thread_Change_priority+0x114>    
 2008fb4:	01 00 00 00 	nop                                            
 2008fb8:	c4 08 a0 74 	ldub  [ %g2 + 0x74 ], %g2                      
 2008fbc:	80 a0 a0 00 	cmp  %g2, 0                                    
 2008fc0:	02 80 00 03 	be  2008fcc <_Thread_Change_priority+0x114>    
 2008fc4:	84 10 20 01 	mov  1, %g2                                    
       _Thread_Executing->is_preemptible )                            
    _Thread_Dispatch_necessary = true;                                
 2008fc8:	c4 28 60 18 	stb  %g2, [ %g1 + 0x18 ]                       
  _ISR_Enable( level );                                               
 2008fcc:	7f ff e4 8a 	call  20021f4 <sparc_enable_interrupts>        
 2008fd0:	81 e8 00 00 	restore                                        
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_Enqueue(                         
  Thread_Control    *the_thread                                       
)                                                                     
{                                                                     
  _Scheduler.Operations.enqueue( the_thread );                        
 2008fd4:	c2 07 20 24 	ld  [ %i4 + 0x24 ], %g1                        
 2008fd8:	9f c0 40 00 	call  %g1                                      
 2008fdc:	90 10 00 1d 	mov  %i5, %o0                                  
 2008fe0:	30 bf ff e7 	b,a   2008f7c <_Thread_Change_priority+0xc4>   
                                                                      

020091fc <_Thread_Delay_ended>: void _Thread_Delay_ended( Objects_Id id, void *ignored __attribute__((unused)) ) {
 20091fc:	9d e3 bf 98 	save  %sp, -104, %sp                           
  Thread_Control    *the_thread;                                      
  Objects_Locations  location;                                        
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 2009200:	90 10 00 18 	mov  %i0, %o0                                  
 2009204:	40 00 00 77 	call  20093e0 <_Thread_Get>                    
 2009208:	92 07 bf fc 	add  %fp, -4, %o1                              
  switch ( location ) {                                               
 200920c:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 2009210:	80 a0 60 00 	cmp  %g1, 0                                    
 2009214:	12 80 00 09 	bne  2009238 <_Thread_Delay_ended+0x3c>        <== NEVER TAKEN
 2009218:	13 04 00 00 	sethi  %hi(0x10000000), %o1                    
#if defined(RTEMS_MULTIPROCESSING)                                    
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
      break;                                                          
    case OBJECTS_LOCAL:                                               
      _Thread_Clear_state(                                            
 200921c:	7f ff ff 72 	call  2008fe4 <_Thread_Clear_state>            
 2009220:	92 12 60 18 	or  %o1, 0x18, %o1	! 10000018 <RAM_END+0xdc00018>
   *                                                                  
   * This routine decrements the thread dispatch level.               
   */                                                                 
  RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_decrement_disable_level(void)
  {                                                                   
    _Thread_Dispatch_disable_level--;                                 
 2009224:	03 00 80 76 	sethi  %hi(0x201d800), %g1                     
 2009228:	c4 00 61 d0 	ld  [ %g1 + 0x1d0 ], %g2	! 201d9d0 <_Thread_Dispatch_disable_level>
 200922c:	84 00 bf ff 	add  %g2, -1, %g2                              
 2009230:	c4 20 61 d0 	st  %g2, [ %g1 + 0x1d0 ]                       
    return _Thread_Dispatch_disable_level;                            
 2009234:	c2 00 61 d0 	ld  [ %g1 + 0x1d0 ], %g1                       
 2009238:	81 c7 e0 08 	ret                                            
 200923c:	81 e8 00 00 	restore                                        
                                                                      

02009240 <_Thread_Dispatch>: * INTERRUPT LATENCY: * dispatch thread * no dispatch thread */ void _Thread_Dispatch( void ) {
 2009240:	9d e3 bf 90 	save  %sp, -112, %sp                           
   *                                                                  
   * This rountine increments the thread dispatch level               
   */                                                                 
  RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
  {                                                                   
    _Thread_Dispatch_disable_level++;                                 
 2009244:	21 00 80 76 	sethi  %hi(0x201d800), %l0                     
 2009248:	c2 04 21 d0 	ld  [ %l0 + 0x1d0 ], %g1	! 201d9d0 <_Thread_Dispatch_disable_level>
 200924c:	82 00 60 01 	inc  %g1                                       
 2009250:	c2 24 21 d0 	st  %g1, [ %l0 + 0x1d0 ]                       
    return _Thread_Dispatch_disable_level;                            
 2009254:	c2 04 21 d0 	ld  [ %l0 + 0x1d0 ], %g1                       
  #endif                                                              
                                                                      
  /*                                                                  
   *  Now determine if we need to perform a dispatch on the current CPU.
   */                                                                 
  executing   = _Thread_Executing;                                    
 2009258:	39 00 80 77 	sethi  %hi(0x201dc00), %i4                     
 200925c:	b8 17 23 08 	or  %i4, 0x308, %i4	! 201df08 <_Per_CPU_Information>
  _ISR_Disable( level );                                              
 2009260:	7f ff e3 e1 	call  20021e4 <sparc_disable_interrupts>       
 2009264:	fa 07 20 0c 	ld  [ %i4 + 0xc ], %i5                         
  while ( _Thread_Dispatch_necessary == true ) {                      
 2009268:	c2 0f 20 18 	ldub  [ %i4 + 0x18 ], %g1                      
 200926c:	80 a0 60 00 	cmp  %g1, 0                                    
 2009270:	02 80 00 48 	be  2009390 <_Thread_Dispatch+0x150>           
 2009274:	01 00 00 00 	nop                                            
                                                                      
    heir = _Thread_Heir;                                              
 2009278:	f6 07 20 10 	ld  [ %i4 + 0x10 ], %i3                        
    _Thread_Dispatch_necessary = false;                               
 200927c:	c0 2f 20 18 	clrb  [ %i4 + 0x18 ]                           
    /*                                                                
     *  When the heir and executing are the same, then we are being   
     *  requested to do the post switch dispatching.  This is normally
     *  done to dispatch signals.                                     
     */                                                               
    if ( heir == executing )                                          
 2009280:	80 a7 40 1b 	cmp  %i5, %i3                                  
 2009284:	02 80 00 43 	be  2009390 <_Thread_Dispatch+0x150>           
 2009288:	f6 27 20 0c 	st  %i3, [ %i4 + 0xc ]                         
 200928c:	31 00 80 76 	sethi  %hi(0x201d800), %i0                     
#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;            
 2009290:	23 00 80 76 	sethi  %hi(0x201d800), %l1                     
 2009294:	b0 16 22 58 	or  %i0, 0x258, %i0                            
                                                                      
    #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                        
      {                                                               
        Timestamp_Control uptime, ran;                                
        _TOD_Get_uptime( &uptime );                                   
        _Timestamp_Subtract(                                          
 2009298:	b2 07 20 1c 	add  %i4, 0x1c, %i1                            
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )        
RTEMS_INLINE_ROUTINE bool _Thread_Is_allocated_fp (                   
  const Thread_Control *the_thread                                    
)                                                                     
{                                                                     
  return ( the_thread == _Thread_Allocated_fp );                      
 200929c:	10 80 00 37 	b  2009378 <_Thread_Dispatch+0x138>            
 20092a0:	35 00 80 76 	sethi  %hi(0x201d800), %i2                     
    rtems_ada_self = heir->rtems_ada_self;                            
#endif                                                                
    if ( heir->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE )
      heir->cpu_time_budget = _Thread_Ticks_per_timeslice;            
                                                                      
    _ISR_Enable( level );                                             
 20092a4:	7f ff e3 d4 	call  20021f4 <sparc_enable_interrupts>        
 20092a8:	01 00 00 00 	nop                                            
                                                                      
    #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                        
      {                                                               
        Timestamp_Control uptime, ran;                                
        _TOD_Get_uptime( &uptime );                                   
 20092ac:	40 00 10 45 	call  200d3c0 <_TOD_Get_uptime>                
 20092b0:	90 07 bf f0 	add  %fp, -16, %o0                             
        _Timestamp_Subtract(                                          
 20092b4:	90 10 00 19 	mov  %i1, %o0                                  
 20092b8:	92 07 bf f0 	add  %fp, -16, %o1                             
 20092bc:	40 00 03 25 	call  2009f50 <_Timespec_Subtract>             
 20092c0:	94 07 bf f8 	add  %fp, -8, %o2                              
          &_Thread_Time_of_last_context_switch,                       
          &uptime,                                                    
          &ran                                                        
        );                                                            
        _Timestamp_Add_to( &executing->cpu_time_used, &ran );         
 20092c4:	90 07 60 84 	add  %i5, 0x84, %o0                            
 20092c8:	40 00 03 09 	call  2009eec <_Timespec_Add_to>               
 20092cc:	92 07 bf f8 	add  %fp, -8, %o1                              
        _Thread_Time_of_last_context_switch = uptime;                 
 20092d0:	c4 07 bf f0 	ld  [ %fp + -16 ], %g2                         
    #endif                                                            
                                                                      
    /*                                                                
     * Switch libc's task specific data.                              
     */                                                               
    if ( _Thread_libc_reent ) {                                       
 20092d4:	c2 06 00 00 	ld  [ %i0 ], %g1                               
          &_Thread_Time_of_last_context_switch,                       
          &uptime,                                                    
          &ran                                                        
        );                                                            
        _Timestamp_Add_to( &executing->cpu_time_used, &ran );         
        _Thread_Time_of_last_context_switch = uptime;                 
 20092d8:	c4 27 20 1c 	st  %g2, [ %i4 + 0x1c ]                        
 20092dc:	c4 07 bf f4 	ld  [ %fp + -12 ], %g2                         
    #endif                                                            
                                                                      
    /*                                                                
     * Switch libc's task specific data.                              
     */                                                               
    if ( _Thread_libc_reent ) {                                       
 20092e0:	80 a0 60 00 	cmp  %g1, 0                                    
 20092e4:	02 80 00 06 	be  20092fc <_Thread_Dispatch+0xbc>            <== NEVER TAKEN
 20092e8:	c4 27 20 20 	st  %g2, [ %i4 + 0x20 ]                        
      executing->libc_reent = *_Thread_libc_reent;                    
 20092ec:	c4 00 40 00 	ld  [ %g1 ], %g2                               
 20092f0:	c4 27 61 54 	st  %g2, [ %i5 + 0x154 ]                       
      *_Thread_libc_reent = heir->libc_reent;                         
 20092f4:	c4 06 e1 54 	ld  [ %i3 + 0x154 ], %g2                       
 20092f8:	c4 20 40 00 	st  %g2, [ %g1 ]                               
    }                                                                 
                                                                      
    _User_extensions_Thread_switch( executing, heir );                
 20092fc:	90 10 00 1d 	mov  %i5, %o0                                  
 2009300:	40 00 03 d8 	call  200a260 <_User_extensions_Thread_switch> 
 2009304:	92 10 00 1b 	mov  %i3, %o1                                  
    if ( executing->fp_context != NULL )                              
      _Context_Save_fp( &executing->fp_context );                     
#endif                                                                
#endif                                                                
                                                                      
    _Context_Switch( &executing->Registers, &heir->Registers );       
 2009308:	90 07 60 c8 	add  %i5, 0xc8, %o0                            
 200930c:	40 00 05 1c 	call  200a77c <_CPU_Context_switch>            
 2009310:	92 06 e0 c8 	add  %i3, 0xc8, %o1                            
                                                                      
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )        
#if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE )                            
    if ( (executing->fp_context != NULL) &&                           
 2009314:	c2 07 61 50 	ld  [ %i5 + 0x150 ], %g1                       
 2009318:	80 a0 60 00 	cmp  %g1, 0                                    
 200931c:	02 80 00 0c 	be  200934c <_Thread_Dispatch+0x10c>           
 2009320:	d0 06 a2 54 	ld  [ %i2 + 0x254 ], %o0                       
 2009324:	80 a7 40 08 	cmp  %i5, %o0                                  
 2009328:	02 80 00 09 	be  200934c <_Thread_Dispatch+0x10c>           
 200932c:	80 a2 20 00 	cmp  %o0, 0                                    
         !_Thread_Is_allocated_fp( executing ) ) {                    
      if ( _Thread_Allocated_fp != NULL )                             
 2009330:	02 80 00 04 	be  2009340 <_Thread_Dispatch+0x100>           
 2009334:	01 00 00 00 	nop                                            
        _Context_Save_fp( &_Thread_Allocated_fp->fp_context );        
 2009338:	40 00 04 d7 	call  200a694 <_CPU_Context_save_fp>           
 200933c:	90 02 21 50 	add  %o0, 0x150, %o0                           
      _Context_Restore_fp( &executing->fp_context );                  
 2009340:	40 00 04 f2 	call  200a708 <_CPU_Context_restore_fp>        
 2009344:	90 07 61 50 	add  %i5, 0x150, %o0                           
      _Thread_Allocated_fp = executing;                               
 2009348:	fa 26 a2 54 	st  %i5, [ %i2 + 0x254 ]                       
#endif                                                                
#endif                                                                
                                                                      
    executing = _Thread_Executing;                                    
                                                                      
    _ISR_Disable( level );                                            
 200934c:	7f ff e3 a6 	call  20021e4 <sparc_disable_interrupts>       
 2009350:	fa 07 20 0c 	ld  [ %i4 + 0xc ], %i5                         
  /*                                                                  
   *  Now determine if we need to perform a dispatch on the current CPU.
   */                                                                 
  executing   = _Thread_Executing;                                    
  _ISR_Disable( level );                                              
  while ( _Thread_Dispatch_necessary == true ) {                      
 2009354:	c2 0f 20 18 	ldub  [ %i4 + 0x18 ], %g1                      
 2009358:	80 a0 60 00 	cmp  %g1, 0                                    
 200935c:	02 80 00 0d 	be  2009390 <_Thread_Dispatch+0x150>           
 2009360:	01 00 00 00 	nop                                            
                                                                      
    heir = _Thread_Heir;                                              
 2009364:	f6 07 20 10 	ld  [ %i4 + 0x10 ], %i3                        
    _Thread_Dispatch_necessary = false;                               
 2009368:	c0 2f 20 18 	clrb  [ %i4 + 0x18 ]                           
    /*                                                                
     *  When the heir and executing are the same, then we are being   
     *  requested to do the post switch dispatching.  This is normally
     *  done to dispatch signals.                                     
     */                                                               
    if ( heir == executing )                                          
 200936c:	80 a6 c0 1d 	cmp  %i3, %i5                                  
 2009370:	02 80 00 08 	be  2009390 <_Thread_Dispatch+0x150>           <== NEVER TAKEN
 2009374:	f6 27 20 0c 	st  %i3, [ %i4 + 0xc ]                         
     */                                                               
#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 )
 2009378:	c2 06 e0 7c 	ld  [ %i3 + 0x7c ], %g1                        
 200937c:	80 a0 60 01 	cmp  %g1, 1                                    
 2009380:	12 bf ff c9 	bne  20092a4 <_Thread_Dispatch+0x64>           
 2009384:	c2 04 61 34 	ld  [ %l1 + 0x134 ], %g1                       
      heir->cpu_time_budget = _Thread_Ticks_per_timeslice;            
 2009388:	10 bf ff c7 	b  20092a4 <_Thread_Dispatch+0x64>             
 200938c:	c2 26 e0 78 	st  %g1, [ %i3 + 0x78 ]                        
   * This routine sets thread dispatch level to the                   
   * value passed in.                                                 
   */                                                                 
  RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_set_disable_level(uint32_t value)
  {                                                                   
    _Thread_Dispatch_disable_level = value;                           
 2009390:	c0 24 21 d0 	clr  [ %l0 + 0x1d0 ]                           
  }                                                                   
                                                                      
post_switch:                                                          
  _Thread_Dispatch_set_disable_level( 0 );                            
                                                                      
  _ISR_Enable( level );                                               
 2009394:	7f ff e3 98 	call  20021f4 <sparc_enable_interrupts>        
 2009398:	01 00 00 00 	nop                                            
                                                                      
  _API_extensions_Run_postswitch();                                   
 200939c:	7f ff f7 cd 	call  20072d0 <_API_extensions_Run_postswitch> 
 20093a0:	01 00 00 00 	nop                                            
}                                                                     
 20093a4:	81 c7 e0 08 	ret                                            
 20093a8:	81 e8 00 00 	restore                                        
                                                                      

0200f738 <_Thread_Handler>: * * Output parameters: NONE */ void _Thread_Handler( void ) {
 200f738:	9d e3 bf a0 	save  %sp, -96, %sp                            
  #if defined(EXECUTE_GLOBAL_CONSTRUCTORS)                            
    static char doneConstructors;                                     
    char doneCons;                                                    
  #endif                                                              
                                                                      
  executing = _Thread_Executing;                                      
 200f73c:	03 00 80 77 	sethi  %hi(0x201dc00), %g1                     
 200f740:	fa 00 63 14 	ld  [ %g1 + 0x314 ], %i5	! 201df14 <_Per_CPU_Information+0xc>
  /*                                                                  
   * 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();                          
 200f744:	3f 00 80 3d 	sethi  %hi(0x200f400), %i7                     
 200f748:	be 17 e3 38 	or  %i7, 0x338, %i7	! 200f738 <_Thread_Handler>
  /*                                                                  
   * have to put level into a register for those cpu's that use       
   * inline asm here                                                  
   */                                                                 
                                                                      
  level = executing->Start.isr_level;                                 
 200f74c:	d0 07 60 ac 	ld  [ %i5 + 0xac ], %o0                        
  _ISR_Set_level(level);                                              
 200f750:	7f ff ca a9 	call  20021f4 <sparc_enable_interrupts>        
 200f754:	91 2a 20 08 	sll  %o0, 8, %o0                               
    doneConstructors = 1;                                             
  #endif                                                              
                                                                      
  #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )      
    #if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE )                        
      if ( (executing->fp_context != NULL) &&                         
 200f758:	c4 07 61 50 	ld  [ %i5 + 0x150 ], %g2                       
                                                                      
  level = executing->Start.isr_level;                                 
  _ISR_Set_level(level);                                              
                                                                      
  #if defined(EXECUTE_GLOBAL_CONSTRUCTORS)                            
    doneCons = doneConstructors;                                      
 200f75c:	03 00 80 75 	sethi  %hi(0x201d400), %g1                     
    doneConstructors = 1;                                             
 200f760:	86 10 20 01 	mov  1, %g3                                    
                                                                      
  level = executing->Start.isr_level;                                 
  _ISR_Set_level(level);                                              
                                                                      
  #if defined(EXECUTE_GLOBAL_CONSTRUCTORS)                            
    doneCons = doneConstructors;                                      
 200f764:	f6 08 62 8c 	ldub  [ %g1 + 0x28c ], %i3                     
    doneConstructors = 1;                                             
  #endif                                                              
                                                                      
  #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )      
    #if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE )                        
      if ( (executing->fp_context != NULL) &&                         
 200f768:	80 a0 a0 00 	cmp  %g2, 0                                    
 200f76c:	02 80 00 0c 	be  200f79c <_Thread_Handler+0x64>             
 200f770:	c6 28 62 8c 	stb  %g3, [ %g1 + 0x28c ]                      
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )        
RTEMS_INLINE_ROUTINE bool _Thread_Is_allocated_fp (                   
  const Thread_Control *the_thread                                    
)                                                                     
{                                                                     
  return ( the_thread == _Thread_Allocated_fp );                      
 200f774:	39 00 80 76 	sethi  %hi(0x201d800), %i4                     
 200f778:	d0 07 22 54 	ld  [ %i4 + 0x254 ], %o0	! 201da54 <_Thread_Allocated_fp>
 200f77c:	80 a7 40 08 	cmp  %i5, %o0                                  
 200f780:	02 80 00 07 	be  200f79c <_Thread_Handler+0x64>             
 200f784:	80 a2 20 00 	cmp  %o0, 0                                    
            !_Thread_Is_allocated_fp( executing ) ) {                 
        if ( _Thread_Allocated_fp != NULL )                           
 200f788:	22 80 00 05 	be,a   200f79c <_Thread_Handler+0x64>          
 200f78c:	fa 27 22 54 	st  %i5, [ %i4 + 0x254 ]                       
          _Context_Save_fp( &_Thread_Allocated_fp->fp_context );      
 200f790:	7f ff eb c1 	call  200a694 <_CPU_Context_save_fp>           
 200f794:	90 02 21 50 	add  %o0, 0x150, %o0                           
        _Thread_Allocated_fp = executing;                             
 200f798:	fa 27 22 54 	st  %i5, [ %i4 + 0x254 ]                       
  /*                                                                  
   * 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 );                         
 200f79c:	7f ff ea 2f 	call  200a058 <_User_extensions_Thread_begin>  
 200f7a0:	90 10 00 1d 	mov  %i5, %o0                                  
                                                                      
  /*                                                                  
   *  At this point, the dispatch disable level BETTER be 1.          
   */                                                                 
  _Thread_Enable_dispatch();                                          
 200f7a4:	7f ff e7 02 	call  20093ac <_Thread_Enable_dispatch>        
 200f7a8:	b7 2e e0 18 	sll  %i3, 0x18, %i3                            
    /*                                                                
     *  _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) */ {                 
 200f7ac:	80 a6 e0 00 	cmp  %i3, 0                                    
 200f7b0:	02 80 00 0e 	be  200f7e8 <_Thread_Handler+0xb0>             
 200f7b4:	01 00 00 00 	nop                                            
      #endif                                                          
                                                                      
    }                                                                 
 #endif                                                               
                                                                      
  if ( executing->Start.prototype == THREAD_START_NUMERIC ) {         
 200f7b8:	c2 07 60 94 	ld  [ %i5 + 0x94 ], %g1                        
 200f7bc:	80 a0 60 00 	cmp  %g1, 0                                    
 200f7c0:	02 80 00 0e 	be  200f7f8 <_Thread_Handler+0xc0>             
 200f7c4:	80 a0 60 01 	cmp  %g1, 1                                    
      (*(Thread_Entry_numeric) executing->Start.entry_point)(         
        executing->Start.numeric_argument                             
      );                                                              
  }                                                                   
  #if defined(RTEMS_POSIX_API)                                        
    else if ( executing->Start.prototype == THREAD_START_POINTER ) {  
 200f7c8:	22 80 00 11 	be,a   200f80c <_Thread_Handler+0xd4>          <== ALWAYS TAKEN
 200f7cc:	c2 07 60 90 	ld  [ %i5 + 0x90 ], %g1                        
   *  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 );                       
 200f7d0:	7f ff ea 36 	call  200a0a8 <_User_extensions_Thread_exitted>
 200f7d4:	90 10 00 1d 	mov  %i5, %o0                                  
                                                                      
  _Internal_error_Occurred(                                           
 200f7d8:	90 10 20 00 	clr  %o0                                       
 200f7dc:	92 10 20 01 	mov  1, %o1                                    
 200f7e0:	7f ff e1 84 	call  2007df0 <_Internal_error_Occurred>       
 200f7e4:	94 10 20 05 	mov  5, %o2                                    
     *  _init could be a weak symbol and we SHOULD test it but it isn't
     *  in any configuration I know of and it generates a warning on every
     *  RTEMS target configuration.  --joel (12 May 2007)             
     */                                                               
    if (!doneCons) /* && (volatile void *)_init) */ {                 
      INIT_NAME ();                                                   
 200f7e8:	40 00 35 12 	call  201cc30 <_init>                          
 200f7ec:	01 00 00 00 	nop                                            
      #endif                                                          
                                                                      
    }                                                                 
 #endif                                                               
                                                                      
  if ( executing->Start.prototype == THREAD_START_NUMERIC ) {         
 200f7f0:	10 bf ff f3 	b  200f7bc <_Thread_Handler+0x84>              
 200f7f4:	c2 07 60 94 	ld  [ %i5 + 0x94 ], %g1                        
    executing->Wait.return_argument =                                 
      (*(Thread_Entry_numeric) executing->Start.entry_point)(         
 200f7f8:	c2 07 60 90 	ld  [ %i5 + 0x90 ], %g1                        
 200f7fc:	9f c0 40 00 	call  %g1                                      
 200f800:	d0 07 60 9c 	ld  [ %i5 + 0x9c ], %o0                        
                                                                      
    }                                                                 
 #endif                                                               
                                                                      
  if ( executing->Start.prototype == THREAD_START_NUMERIC ) {         
    executing->Wait.return_argument =                                 
 200f804:	10 bf ff f3 	b  200f7d0 <_Thread_Handler+0x98>              
 200f808:	d0 27 60 28 	st  %o0, [ %i5 + 0x28 ]                        
      );                                                              
  }                                                                   
  #if defined(RTEMS_POSIX_API)                                        
    else if ( executing->Start.prototype == THREAD_START_POINTER ) {  
      executing->Wait.return_argument =                               
        (*(Thread_Entry_pointer) executing->Start.entry_point)(       
 200f80c:	9f c0 40 00 	call  %g1                                      
 200f810:	d0 07 60 98 	ld  [ %i5 + 0x98 ], %o0                        
        executing->Start.numeric_argument                             
      );                                                              
  }                                                                   
  #if defined(RTEMS_POSIX_API)                                        
    else if ( executing->Start.prototype == THREAD_START_POINTER ) {  
      executing->Wait.return_argument =                               
 200f814:	10 bf ff ef 	b  200f7d0 <_Thread_Handler+0x98>              
 200f818:	d0 27 60 28 	st  %o0, [ %i5 + 0x28 ]                        
                                                                      

02009490 <_Thread_Initialize>: Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) {
 2009490:	9d e3 bf a0 	save  %sp, -96, %sp                            
 2009494:	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;                             
 2009498:	c0 26 61 58 	clr  [ %i1 + 0x158 ]                           
 200949c:	c0 26 61 5c 	clr  [ %i1 + 0x15c ]                           
                                                                      
  extensions_area = NULL;                                             
  the_thread->libc_reent = NULL;                                      
 20094a0:	c0 26 61 54 	clr  [ %i1 + 0x154 ]                           
  Thread_CPU_budget_algorithms          budget_algorithm,             
  Thread_CPU_budget_algorithm_callout   budget_callout,               
  uint32_t                              isr_level,                    
  Objects_Name                          name                          
)                                                                     
{                                                                     
 20094a4:	e0 07 a0 60 	ld  [ %fp + 0x60 ], %l0                        
 20094a8:	e4 00 40 00 	ld  [ %g1 ], %l2                               
    if ( !actual_stack_size || actual_stack_size < stack_size )       
      return false;                     /* stack allocation failed */ 
                                                                      
    stack = the_thread->Start.stack;                                  
  #else                                                               
    if ( !stack_area ) {                                              
 20094ac:	80 a6 a0 00 	cmp  %i2, 0                                    
 20094b0:	02 80 00 6b 	be  200965c <_Thread_Initialize+0x1cc>         
 20094b4:	e2 0f a0 5f 	ldub  [ %fp + 0x5f ], %l1                      
      stack = the_thread->Start.stack;                                
      the_thread->Start.core_allocated_stack = true;                  
    } else {                                                          
      stack = stack_area;                                             
      actual_stack_size = stack_size;                                 
      the_thread->Start.core_allocated_stack = false;                 
 20094b8:	c0 2e 60 b4 	clrb  [ %i1 + 0xb4 ]                           
 20094bc:	90 10 00 1b 	mov  %i3, %o0                                  
  Stack_Control *the_stack,                                           
  void          *starting_address,                                    
  size_t         size                                                 
)                                                                     
{                                                                     
  the_stack->area = starting_address;                                 
 20094c0:	f4 26 60 bc 	st  %i2, [ %i1 + 0xbc ]                        
  the_stack->size = size;                                             
 20094c4:	d0 26 60 b8 	st  %o0, [ %i1 + 0xb8 ]                        
                                                                      
  /*                                                                  
   *  Allocate the floating point area for this thread                
   */                                                                 
  #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )      
    if ( is_fp ) {                                                    
 20094c8:	80 a7 20 00 	cmp  %i4, 0                                    
 20094cc:	12 80 00 48 	bne  20095ec <_Thread_Initialize+0x15c>        
 20094d0:	b6 10 20 00 	clr  %i3                                       
  #endif                                                              
                                                                      
  /*                                                                  
   *  Allocate the extensions area for this thread                    
   */                                                                 
  if ( _Thread_Maximum_extensions ) {                                 
 20094d4:	39 00 80 76 	sethi  %hi(0x201d800), %i4                     
 20094d8:	c2 07 22 64 	ld  [ %i4 + 0x264 ], %g1	! 201da64 <_Thread_Maximum_extensions>
      fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE );               
      if ( !fp_area )                                                 
        goto failed;                                                  
      fp_area = _Context_Fp_start( fp_area, 0 );                      
    }                                                                 
    the_thread->fp_context       = fp_area;                           
 20094dc:	f6 26 61 50 	st  %i3, [ %i1 + 0x150 ]                       
    the_thread->Start.fp_context = fp_area;                           
 20094e0:	f6 26 60 c0 	st  %i3, [ %i1 + 0xc0 ]                        
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
 20094e4:	c0 26 60 50 	clr  [ %i1 + 0x50 ]                            
  the_watchdog->routine   = routine;                                  
 20094e8:	c0 26 60 64 	clr  [ %i1 + 0x64 ]                            
  the_watchdog->id        = id;                                       
 20094ec:	c0 26 60 68 	clr  [ %i1 + 0x68 ]                            
  #endif                                                              
                                                                      
  /*                                                                  
   *  Allocate the extensions area for this thread                    
   */                                                                 
  if ( _Thread_Maximum_extensions ) {                                 
 20094f0:	80 a0 60 00 	cmp  %g1, 0                                    
 20094f4:	12 80 00 46 	bne  200960c <_Thread_Initialize+0x17c>        
 20094f8:	c0 26 60 6c 	clr  [ %i1 + 0x6c ]                            
      (_Thread_Maximum_extensions + 1) * sizeof( void * )             
    );                                                                
    if ( !extensions_area )                                           
      goto failed;                                                    
  }                                                                   
  the_thread->extensions = (void **) extensions_area;                 
 20094fc:	c0 26 61 60 	clr  [ %i1 + 0x160 ]                           
   *  Zero out all the allocated memory fields                        
   */                                                                 
  for ( i=0 ; i <= THREAD_API_LAST ; i++ )                            
    the_thread->API_Extensions[i] = NULL;                             
                                                                      
  extensions_area = NULL;                                             
 2009500:	b4 10 20 00 	clr  %i2                                       
   *  General initialization                                          
   */                                                                 
                                                                      
  the_thread->Start.is_preemptible   = is_preemptible;                
  the_thread->Start.budget_algorithm = budget_algorithm;              
  the_thread->Start.budget_callout   = budget_callout;                
 2009504:	c2 07 a0 64 	ld  [ %fp + 0x64 ], %g1                        
                                                                      
  /*                                                                  
   *  General initialization                                          
   */                                                                 
                                                                      
  the_thread->Start.is_preemptible   = is_preemptible;                
 2009508:	e2 2e 60 a0 	stb  %l1, [ %i1 + 0xa0 ]                       
  the_thread->Start.budget_algorithm = budget_algorithm;              
 200950c:	e0 26 60 a4 	st  %l0, [ %i1 + 0xa4 ]                        
  the_thread->Start.budget_callout   = budget_callout;                
                                                                      
  switch ( budget_algorithm ) {                                       
 2009510:	80 a4 20 02 	cmp  %l0, 2                                    
 2009514:	12 80 00 05 	bne  2009528 <_Thread_Initialize+0x98>         
 2009518:	c2 26 60 a8 	st  %g1, [ %i1 + 0xa8 ]                        
    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;    
 200951c:	03 00 80 76 	sethi  %hi(0x201d800), %g1                     
 2009520:	c2 00 61 34 	ld  [ %g1 + 0x134 ], %g1	! 201d934 <_Thread_Ticks_per_timeslice>
 2009524:	c2 26 60 78 	st  %g1, [ %i1 + 0x78 ]                        
      case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:                       
	break;                                                               
    #endif                                                            
  }                                                                   
                                                                      
  the_thread->Start.isr_level         = isr_level;                    
 2009528:	c4 07 a0 68 	ld  [ %fp + 0x68 ], %g2                        
 */                                                                   
RTEMS_INLINE_ROUTINE void* _Scheduler_Allocate(                       
  Thread_Control    *the_thread                                       
)                                                                     
{                                                                     
  return _Scheduler.Operations.allocate( the_thread );                
 200952c:	03 00 80 73 	sethi  %hi(0x201cc00), %g1                     
 2009530:	c2 00 61 6c 	ld  [ %g1 + 0x16c ], %g1	! 201cd6c <_Scheduler+0x18>
 2009534:	c4 26 60 ac 	st  %g2, [ %i1 + 0xac ]                        
                                                                      
  the_thread->current_state           = STATES_DORMANT;               
 2009538:	84 10 20 01 	mov  1, %g2                                    
  the_thread->Wait.queue              = NULL;                         
 200953c:	c0 26 60 44 	clr  [ %i1 + 0x44 ]                            
    #endif                                                            
  }                                                                   
                                                                      
  the_thread->Start.isr_level         = isr_level;                    
                                                                      
  the_thread->current_state           = STATES_DORMANT;               
 2009540:	c4 26 60 10 	st  %g2, [ %i1 + 0x10 ]                        
  the_thread->Wait.queue              = NULL;                         
  the_thread->resource_count          = 0;                            
 2009544:	c0 26 60 1c 	clr  [ %i1 + 0x1c ]                            
  the_thread->real_priority           = priority;                     
 2009548:	fa 26 60 18 	st  %i5, [ %i1 + 0x18 ]                        
  the_thread->Start.initial_priority  = priority;                     
 200954c:	fa 26 60 b0 	st  %i5, [ %i1 + 0xb0 ]                        
 2009550:	9f c0 40 00 	call  %g1                                      
 2009554:	90 10 00 19 	mov  %i1, %o0                                  
  sched =_Scheduler_Allocate( the_thread );                           
  if ( !sched )                                                       
 2009558:	b8 92 20 00 	orcc  %o0, 0, %i4                              
 200955c:	22 80 00 13 	be,a   20095a8 <_Thread_Initialize+0x118>      
 2009560:	d0 06 61 54 	ld  [ %i1 + 0x154 ], %o0                       
    goto failed;                                                      
  _Thread_Set_priority( the_thread, priority );                       
 2009564:	90 10 00 19 	mov  %i1, %o0                                  
 2009568:	40 00 01 e5 	call  2009cfc <_Thread_Set_priority>           
 200956c:	92 10 00 1d 	mov  %i5, %o1                                  
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 2009570:	c4 06 20 1c 	ld  [ %i0 + 0x1c ], %g2                        
  Objects_Information *information,                                   
  Objects_Control     *the_object,                                    
  Objects_Name         name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
 2009574:	c2 16 60 0a 	lduh  [ %i1 + 0xa ], %g1                       
                                                                      
  /*                                                                  
   *  Initialize the CPU usage statistics                             
   */                                                                 
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    _Timestamp_Set_to_zero( &the_thread->cpu_time_used );             
 2009578:	c0 26 60 84 	clr  [ %i1 + 0x84 ]                            
 200957c:	c0 26 60 88 	clr  [ %i1 + 0x88 ]                            
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 2009580:	83 28 60 02 	sll  %g1, 2, %g1                               
 2009584:	f2 20 80 01 	st  %i1, [ %g2 + %g1 ]                         
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  the_object->name = name;                                            
 2009588:	e4 26 60 0c 	st  %l2, [ %i1 + 0xc ]                         
   *  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 );    
 200958c:	90 10 00 19 	mov  %i1, %o0                                  
 2009590:	40 00 02 ed 	call  200a144 <_User_extensions_Thread_create> 
 2009594:	b0 10 20 01 	mov  1, %i0                                    
  if ( extension_status )                                             
 2009598:	80 8a 20 ff 	btst  0xff, %o0                                
 200959c:	32 80 00 12 	bne,a   20095e4 <_Thread_Initialize+0x154>     
 20095a0:	b0 0e 20 01 	and  %i0, 1, %i0                               
    return true;                                                      
                                                                      
failed:                                                               
  _Workspace_Free( the_thread->libc_reent );                          
 20095a4:	d0 06 61 54 	ld  [ %i1 + 0x154 ], %o0                       
 20095a8:	40 00 04 26 	call  200a640 <_Workspace_Free>                
 20095ac:	b0 10 20 00 	clr  %i0                                       
                                                                      
  for ( i=0 ; i <= THREAD_API_LAST ; i++ )                            
    _Workspace_Free( the_thread->API_Extensions[i] );                 
 20095b0:	40 00 04 24 	call  200a640 <_Workspace_Free>                
 20095b4:	d0 06 61 58 	ld  [ %i1 + 0x158 ], %o0                       
 20095b8:	40 00 04 22 	call  200a640 <_Workspace_Free>                
 20095bc:	d0 06 61 5c 	ld  [ %i1 + 0x15c ], %o0                       
                                                                      
  _Workspace_Free( extensions_area );                                 
 20095c0:	40 00 04 20 	call  200a640 <_Workspace_Free>                
 20095c4:	90 10 00 1a 	mov  %i2, %o0                                  
                                                                      
  #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )      
    _Workspace_Free( fp_area );                                       
 20095c8:	40 00 04 1e 	call  200a640 <_Workspace_Free>                
 20095cc:	90 10 00 1b 	mov  %i3, %o0                                  
  #endif                                                              
                                                                      
   _Workspace_Free( sched );                                          
 20095d0:	40 00 04 1c 	call  200a640 <_Workspace_Free>                
 20095d4:	90 10 00 1c 	mov  %i4, %o0                                  
                                                                      
   _Thread_Stack_Free( the_thread );                                  
 20095d8:	40 00 02 0d 	call  2009e0c <_Thread_Stack_Free>             
 20095dc:	90 10 00 19 	mov  %i1, %o0                                  
  return false;                                                       
}                                                                     
 20095e0:	b0 0e 20 01 	and  %i0, 1, %i0                               
 20095e4:	81 c7 e0 08 	ret                                            
 20095e8:	81 e8 00 00 	restore                                        
  /*                                                                  
   *  Allocate the floating point area for this thread                
   */                                                                 
  #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )      
    if ( is_fp ) {                                                    
      fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE );               
 20095ec:	40 00 04 0d 	call  200a620 <_Workspace_Allocate>            
 20095f0:	90 10 20 88 	mov  0x88, %o0                                 
      if ( !fp_area )                                                 
 20095f4:	b6 92 20 00 	orcc  %o0, 0, %i3                              
 20095f8:	32 bf ff b8 	bne,a   20094d8 <_Thread_Initialize+0x48>      
 20095fc:	39 00 80 76 	sethi  %hi(0x201d800), %i4                     
   *  Zero out all the allocated memory fields                        
   */                                                                 
  for ( i=0 ; i <= THREAD_API_LAST ; i++ )                            
    the_thread->API_Extensions[i] = NULL;                             
                                                                      
  extensions_area = NULL;                                             
 2009600:	b4 10 20 00 	clr  %i2                                       
  size_t               actual_stack_size = 0;                         
  void                *stack = NULL;                                  
  #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )      
    void              *fp_area;                                       
  #endif                                                              
  void                *sched = NULL;                                  
 2009604:	10 bf ff e8 	b  20095a4 <_Thread_Initialize+0x114>          
 2009608:	b8 10 20 00 	clr  %i4                                       
                                                                      
  /*                                                                  
   *  Allocate the extensions area for this thread                    
   */                                                                 
  if ( _Thread_Maximum_extensions ) {                                 
    extensions_area = _Workspace_Allocate(                            
 200960c:	82 00 60 01 	inc  %g1                                       
 2009610:	40 00 04 04 	call  200a620 <_Workspace_Allocate>            
 2009614:	91 28 60 02 	sll  %g1, 2, %o0                               
      (_Thread_Maximum_extensions + 1) * sizeof( void * )             
    );                                                                
    if ( !extensions_area )                                           
 2009618:	b4 92 20 00 	orcc  %o0, 0, %i2                              
 200961c:	02 80 00 1d 	be  2009690 <_Thread_Initialize+0x200>         
 2009620:	86 10 00 1a 	mov  %i2, %g3                                  
      goto failed;                                                    
  }                                                                   
  the_thread->extensions = (void **) extensions_area;                 
 2009624:	f4 26 61 60 	st  %i2, [ %i1 + 0x160 ]                       
 2009628:	c8 07 22 64 	ld  [ %i4 + 0x264 ], %g4                       
   * 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++ )              
 200962c:	84 10 20 00 	clr  %g2                                       
      (_Thread_Maximum_extensions + 1) * sizeof( void * )             
    );                                                                
    if ( !extensions_area )                                           
      goto failed;                                                    
  }                                                                   
  the_thread->extensions = (void **) extensions_area;                 
 2009630:	10 80 00 03 	b  200963c <_Thread_Initialize+0x1ac>          
 2009634:	82 10 20 00 	clr  %g1                                       
 2009638:	c6 06 61 60 	ld  [ %i1 + 0x160 ], %g3                       
   * so they cannot rely on the thread create user extension          
   * call.                                                            
   */                                                                 
  if ( the_thread->extensions ) {                                     
    for ( i = 0; i <= _Thread_Maximum_extensions ; i++ )              
      the_thread->extensions[i] = NULL;                               
 200963c:	85 28 a0 02 	sll  %g2, 2, %g2                               
 2009640:	c0 20 c0 02 	clr  [ %g3 + %g2 ]                             
   * 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++ )              
 2009644:	82 00 60 01 	inc  %g1                                       
 2009648:	80 a0 40 04 	cmp  %g1, %g4                                  
 200964c:	08 bf ff fb 	bleu  2009638 <_Thread_Initialize+0x1a8>       
 2009650:	84 10 00 01 	mov  %g1, %g2                                  
   *  General initialization                                          
   */                                                                 
                                                                      
  the_thread->Start.is_preemptible   = is_preemptible;                
  the_thread->Start.budget_algorithm = budget_algorithm;              
  the_thread->Start.budget_callout   = budget_callout;                
 2009654:	10 bf ff ad 	b  2009508 <_Thread_Initialize+0x78>           
 2009658:	c2 07 a0 64 	ld  [ %fp + 0x64 ], %g1                        
      return false;                     /* stack allocation failed */ 
                                                                      
    stack = the_thread->Start.stack;                                  
  #else                                                               
    if ( !stack_area ) {                                              
      actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size );
 200965c:	90 10 00 19 	mov  %i1, %o0                                  
 2009660:	40 00 01 d0 	call  2009da0 <_Thread_Stack_Allocate>         
 2009664:	92 10 00 1b 	mov  %i3, %o1                                  
      if ( !actual_stack_size || actual_stack_size < stack_size )     
 2009668:	80 a2 00 1b 	cmp  %o0, %i3                                  
 200966c:	0a 80 00 07 	bcs  2009688 <_Thread_Initialize+0x1f8>        
 2009670:	80 a2 20 00 	cmp  %o0, 0                                    
 2009674:	02 80 00 05 	be  2009688 <_Thread_Initialize+0x1f8>         <== NEVER TAKEN
 2009678:	82 10 20 01 	mov  1, %g1                                    
        return false;                     /* stack allocation failed */
                                                                      
      stack = the_thread->Start.stack;                                
 200967c:	f4 06 60 c4 	ld  [ %i1 + 0xc4 ], %i2                        
      the_thread->Start.core_allocated_stack = true;                  
 2009680:	10 bf ff 90 	b  20094c0 <_Thread_Initialize+0x30>           
 2009684:	c2 2e 60 b4 	stb  %g1, [ %i1 + 0xb4 ]                       
    stack = the_thread->Start.stack;                                  
  #else                                                               
    if ( !stack_area ) {                                              
      actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size );
      if ( !actual_stack_size || actual_stack_size < stack_size )     
        return false;                     /* stack allocation failed */
 2009688:	10 bf ff d6 	b  20095e0 <_Thread_Initialize+0x150>          
 200968c:	b0 10 20 00 	clr  %i0                                       
  size_t               actual_stack_size = 0;                         
  void                *stack = NULL;                                  
  #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )      
    void              *fp_area;                                       
  #endif                                                              
  void                *sched = NULL;                                  
 2009690:	10 bf ff c5 	b  20095a4 <_Thread_Initialize+0x114>          
 2009694:	b8 10 20 00 	clr  %i4                                       
                                                                      

02009c38 <_Thread_queue_Requeue>: void _Thread_queue_Requeue( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) {
 2009c38:	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 )                                            
 2009c3c:	80 a6 20 00 	cmp  %i0, 0                                    
 2009c40:	02 80 00 13 	be  2009c8c <_Thread_queue_Requeue+0x54>       <== NEVER TAKEN
 2009c44:	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 ) {
 2009c48:	f8 06 20 34 	ld  [ %i0 + 0x34 ], %i4                        
 2009c4c:	80 a7 20 01 	cmp  %i4, 1                                    
 2009c50:	02 80 00 04 	be  2009c60 <_Thread_queue_Requeue+0x28>       <== ALWAYS TAKEN
 2009c54:	01 00 00 00 	nop                                            
 2009c58:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 2009c5c:	81 e8 00 00 	restore                                        <== NOT EXECUTED
    Thread_queue_Control *tq = the_thread_queue;                      
    ISR_Level             level;                                      
    ISR_Level             level_ignored;                              
                                                                      
    _ISR_Disable( level );                                            
 2009c60:	7f ff e1 61 	call  20021e4 <sparc_disable_interrupts>       
 2009c64:	01 00 00 00 	nop                                            
 2009c68:	ba 10 00 08 	mov  %o0, %i5                                  
 2009c6c:	c4 06 60 10 	ld  [ %i1 + 0x10 ], %g2                        
 2009c70:	03 00 00 ef 	sethi  %hi(0x3bc00), %g1                       
 2009c74:	82 10 62 e0 	or  %g1, 0x2e0, %g1	! 3bee0 <PROM_START+0x3bee0>
    if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
 2009c78:	80 88 80 01 	btst  %g2, %g1                                 
 2009c7c:	12 80 00 06 	bne  2009c94 <_Thread_queue_Requeue+0x5c>      <== ALWAYS TAKEN
 2009c80:	90 10 00 18 	mov  %i0, %o0                                  
      _Thread_queue_Enter_critical_section( tq );                     
      _Thread_queue_Extract_priority_helper( tq, the_thread, true );  
      (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored );
    }                                                                 
    _ISR_Enable( level );                                             
 2009c84:	7f ff e1 5c 	call  20021f4 <sparc_enable_interrupts>        
 2009c88:	90 10 00 1d 	mov  %i5, %o0                                  
 2009c8c:	81 c7 e0 08 	ret                                            
 2009c90:	81 e8 00 00 	restore                                        
    ISR_Level             level_ignored;                              
                                                                      
    _ISR_Disable( level );                                            
    if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
      _Thread_queue_Enter_critical_section( tq );                     
      _Thread_queue_Extract_priority_helper( tq, the_thread, true );  
 2009c94:	92 10 00 19 	mov  %i1, %o1                                  
 2009c98:	94 10 20 01 	mov  1, %o2                                    
 2009c9c:	40 00 0f 4c 	call  200d9cc <_Thread_queue_Extract_priority_helper>
 2009ca0:	f8 26 20 30 	st  %i4, [ %i0 + 0x30 ]                        
      (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored );
 2009ca4:	90 10 00 18 	mov  %i0, %o0                                  
 2009ca8:	92 10 00 19 	mov  %i1, %o1                                  
 2009cac:	7f ff ff 35 	call  2009980 <_Thread_queue_Enqueue_priority> 
 2009cb0:	94 07 bf fc 	add  %fp, -4, %o2                              
 2009cb4:	30 bf ff f4 	b,a   2009c84 <_Thread_queue_Requeue+0x4c>     
                                                                      

02009cb8 <_Thread_queue_Timeout>: void _Thread_queue_Timeout( Objects_Id id, void *ignored __attribute__((unused)) ) {
 2009cb8:	9d e3 bf 98 	save  %sp, -104, %sp                           
  Thread_Control       *the_thread;                                   
  Objects_Locations     location;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 2009cbc:	90 10 00 18 	mov  %i0, %o0                                  
 2009cc0:	7f ff fd c8 	call  20093e0 <_Thread_Get>                    
 2009cc4:	92 07 bf fc 	add  %fp, -4, %o1                              
  switch ( location ) {                                               
 2009cc8:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 2009ccc:	80 a0 60 00 	cmp  %g1, 0                                    
 2009cd0:	12 80 00 09 	bne  2009cf4 <_Thread_queue_Timeout+0x3c>      <== NEVER TAKEN
 2009cd4:	01 00 00 00 	nop                                            
#if defined(RTEMS_MULTIPROCESSING)                                    
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
      break;                                                          
    case OBJECTS_LOCAL:                                               
      _Thread_queue_Process_timeout( the_thread );                    
 2009cd8:	40 00 0f 76 	call  200dab0 <_Thread_queue_Process_timeout>  
 2009cdc:	01 00 00 00 	nop                                            
   *                                                                  
   * This routine decrements the thread dispatch level.               
   */                                                                 
  RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_decrement_disable_level(void)
  {                                                                   
    _Thread_Dispatch_disable_level--;                                 
 2009ce0:	03 00 80 76 	sethi  %hi(0x201d800), %g1                     
 2009ce4:	c4 00 61 d0 	ld  [ %g1 + 0x1d0 ], %g2	! 201d9d0 <_Thread_Dispatch_disable_level>
 2009ce8:	84 00 bf ff 	add  %g2, -1, %g2                              
 2009cec:	c4 20 61 d0 	st  %g2, [ %g1 + 0x1d0 ]                       
    return _Thread_Dispatch_disable_level;                            
 2009cf0:	c2 00 61 d0 	ld  [ %g1 + 0x1d0 ], %g1                       
 2009cf4:	81 c7 e0 08 	ret                                            
 2009cf8:	81 e8 00 00 	restore                                        
                                                                      

0201648c <_Timer_server_Body>: * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) {
 201648c:	9d e3 bf 88 	save  %sp, -120, %sp                           
 2016490:	23 00 80 ed 	sethi  %hi(0x203b400), %l1                     
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 2016494:	a6 07 bf e8 	add  %fp, -24, %l3                             
 2016498:	b2 07 bf ec 	add  %fp, -20, %i1                             
 201649c:	b6 07 bf f4 	add  %fp, -12, %i3                             
 20164a0:	a4 07 bf f8 	add  %fp, -8, %l2                              
 20164a4:	21 00 80 ed 	sethi  %hi(0x203b400), %l0                     
 20164a8:	29 00 80 ed 	sethi  %hi(0x203b400), %l4                     
 20164ac:	f2 27 bf e8 	st  %i1, [ %fp + -24 ]                         
  head->previous = NULL;                                              
 20164b0:	c0 27 bf ec 	clr  [ %fp + -20 ]                             
  tail->previous = head;                                              
 20164b4:	e6 27 bf f0 	st  %l3, [ %fp + -16 ]                         
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 20164b8:	e4 27 bf f4 	st  %l2, [ %fp + -12 ]                         
  head->previous = NULL;                                              
 20164bc:	c0 27 bf f8 	clr  [ %fp + -8 ]                              
  tail->previous = head;                                              
 20164c0:	f6 27 bf fc 	st  %i3, [ %fp + -4 ]                          
 20164c4:	a2 14 63 6c 	or  %l1, 0x36c, %l1                            
 20164c8:	b8 06 20 30 	add  %i0, 0x30, %i4                            
 20164cc:	a0 14 22 ec 	or  %l0, 0x2ec, %l0                            
 20164d0:	b4 06 20 68 	add  %i0, 0x68, %i2                            
 20164d4:	a8 15 22 60 	or  %l4, 0x260, %l4                            
 20164d8:	ae 06 20 08 	add  %i0, 8, %l7                               
 20164dc:	ac 06 20 40 	add  %i0, 0x40, %l6                            
        _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;                                              
 20164e0:	aa 10 20 01 	mov  1, %l5                                    
{                                                                     
  /*                                                                  
   *  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;                                    
 20164e4:	e6 26 20 78 	st  %l3, [ %i0 + 0x78 ]                        
static void _Timer_server_Process_interval_watchdogs(                 
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;            
 20164e8:	c2 04 40 00 	ld  [ %l1 ], %g1                               
                                                                      
  /*                                                                  
   *  We assume adequate unsigned arithmetic here.                    
   */                                                                 
  Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;      
 20164ec:	d2 06 20 3c 	ld  [ %i0 + 0x3c ], %o1                        
                                                                      
  watchdogs->last_snapshot = snapshot;                                
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
 20164f0:	94 10 00 1b 	mov  %i3, %o2                                  
 20164f4:	90 10 00 1c 	mov  %i4, %o0                                  
  /*                                                                  
   *  We assume adequate unsigned arithmetic here.                    
   */                                                                 
  Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;      
                                                                      
  watchdogs->last_snapshot = snapshot;                                
 20164f8:	c2 26 20 3c 	st  %g1, [ %i0 + 0x3c ]                        
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
 20164fc:	40 00 13 41 	call  201b200 <_Watchdog_Adjust_to_chain>      
 2016500:	92 20 40 09 	sub  %g1, %o1, %o1                             
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
  Watchdog_Interval last_snapshot = watchdogs->last_snapshot;         
 2016504:	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();
 2016508:	fa 04 00 00 	ld  [ %l0 ], %i5                               
  /*                                                                  
   *  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 ) {                                   
 201650c:	80 a7 40 0a 	cmp  %i5, %o2                                  
 2016510:	18 80 00 2e 	bgu  20165c8 <_Timer_server_Body+0x13c>        
 2016514:	92 27 40 0a 	sub  %i5, %o2, %o1                             
     *  TOD has been set forward.                                     
     */                                                               
    delta = snapshot - last_snapshot;                                 
    _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
                                                                      
  } else if ( snapshot < last_snapshot ) {                            
 2016518:	80 a7 40 0a 	cmp  %i5, %o2                                  
 201651c:	0a 80 00 2f 	bcs  20165d8 <_Timer_server_Body+0x14c>        
 2016520:	90 10 00 1a 	mov  %i2, %o0                                  
      */                                                              
     delta = last_snapshot - snapshot;                                
     _Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta ); 
  }                                                                   
                                                                      
  watchdogs->last_snapshot = snapshot;                                
 2016524:	fa 26 20 74 	st  %i5, [ %i0 + 0x74 ]                        
}                                                                     
                                                                      
static void _Timer_server_Process_insertions( Timer_server_Control *ts )
{                                                                     
  while ( true ) {                                                    
    Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain );
 2016528:	d0 06 20 78 	ld  [ %i0 + 0x78 ], %o0                        
 201652c:	40 00 03 22 	call  20171b4 <_Chain_Get>                     
 2016530:	01 00 00 00 	nop                                            
                                                                      
    if ( timer == NULL ) {                                            
 2016534:	92 92 20 00 	orcc  %o0, 0, %o1                              
 2016538:	02 80 00 10 	be  2016578 <_Timer_server_Body+0xec>          
 201653c:	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 ) {                 
 2016540:	c2 02 60 38 	ld  [ %o1 + 0x38 ], %g1                        
 2016544:	80 a0 60 01 	cmp  %g1, 1                                    
 2016548:	02 80 00 28 	be  20165e8 <_Timer_server_Body+0x15c>         
 201654c:	80 a0 60 03 	cmp  %g1, 3                                    
    _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
  } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {       
 2016550:	12 bf ff f6 	bne  2016528 <_Timer_server_Body+0x9c>         <== NEVER TAKEN
 2016554:	92 02 60 10 	add  %o1, 0x10, %o1                            
    _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );     
 2016558:	40 00 13 5b 	call  201b2c4 <_Watchdog_Insert>               
 201655c:	90 10 00 1a 	mov  %i2, %o0                                  
}                                                                     
                                                                      
static void _Timer_server_Process_insertions( Timer_server_Control *ts )
{                                                                     
  while ( true ) {                                                    
    Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain );
 2016560:	d0 06 20 78 	ld  [ %i0 + 0x78 ], %o0                        
 2016564:	40 00 03 14 	call  20171b4 <_Chain_Get>                     
 2016568:	01 00 00 00 	nop                                            
                                                                      
    if ( timer == NULL ) {                                            
 201656c:	92 92 20 00 	orcc  %o0, 0, %o1                              
 2016570:	32 bf ff f5 	bne,a   2016544 <_Timer_server_Body+0xb8>      <== NEVER TAKEN
 2016574:	c2 02 60 38 	ld  [ %o1 + 0x38 ], %g1                        <== NOT EXECUTED
     *  of zero it will be processed in the next iteration of the timer server
     *  body loop.                                                    
     */                                                               
    _Timer_server_Process_insertions( ts );                           
                                                                      
    _ISR_Disable( level );                                            
 2016578:	7f ff e2 55 	call  200eecc <sparc_disable_interrupts>       
 201657c:	01 00 00 00 	nop                                            
    if ( _Chain_Is_empty( insert_chain ) ) {                          
 2016580:	c2 07 bf e8 	ld  [ %fp + -24 ], %g1                         
 2016584:	80 a0 40 19 	cmp  %g1, %i1                                  
 2016588:	02 80 00 1c 	be  20165f8 <_Timer_server_Body+0x16c>         <== ALWAYS TAKEN
 201658c:	01 00 00 00 	nop                                            
      ts->insert_chain = NULL;                                        
      _ISR_Enable( level );                                           
                                                                      
      break;                                                          
    } else {                                                          
      _ISR_Enable( level );                                           
 2016590:	7f ff e2 53 	call  200eedc <sparc_enable_interrupts>        <== NOT EXECUTED
 2016594:	01 00 00 00 	nop                                            <== NOT EXECUTED
static void _Timer_server_Process_interval_watchdogs(                 
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;            
 2016598:	c2 04 40 00 	ld  [ %l1 ], %g1                               <== NOT EXECUTED
                                                                      
  /*                                                                  
   *  We assume adequate unsigned arithmetic here.                    
   */                                                                 
  Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;      
 201659c:	d2 06 20 3c 	ld  [ %i0 + 0x3c ], %o1                        <== NOT EXECUTED
                                                                      
  watchdogs->last_snapshot = snapshot;                                
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
 20165a0:	94 10 00 1b 	mov  %i3, %o2                                  <== NOT EXECUTED
 20165a4:	90 10 00 1c 	mov  %i4, %o0                                  <== NOT EXECUTED
  /*                                                                  
   *  We assume adequate unsigned arithmetic here.                    
   */                                                                 
  Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;      
                                                                      
  watchdogs->last_snapshot = snapshot;                                
 20165a8:	c2 26 20 3c 	st  %g1, [ %i0 + 0x3c ]                        <== NOT EXECUTED
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
 20165ac:	40 00 13 15 	call  201b200 <_Watchdog_Adjust_to_chain>      <== NOT EXECUTED
 20165b0:	92 20 40 09 	sub  %g1, %o1, %o1                             <== NOT EXECUTED
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
  Watchdog_Interval last_snapshot = watchdogs->last_snapshot;         
 20165b4:	d4 06 20 74 	ld  [ %i0 + 0x74 ], %o2                        <== NOT EXECUTED
static void _Timer_server_Process_tod_watchdogs(                      
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
 20165b8:	fa 04 00 00 	ld  [ %l0 ], %i5                               <== NOT EXECUTED
  /*                                                                  
   *  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 ) {                                   
 20165bc:	80 a7 40 0a 	cmp  %i5, %o2                                  <== NOT EXECUTED
 20165c0:	08 bf ff d7 	bleu  201651c <_Timer_server_Body+0x90>        <== NOT EXECUTED
 20165c4:	92 27 40 0a 	sub  %i5, %o2, %o1                             <== NOT EXECUTED
    /*                                                                
     *  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 );
 20165c8:	90 10 00 1a 	mov  %i2, %o0                                  
 20165cc:	40 00 13 0d 	call  201b200 <_Watchdog_Adjust_to_chain>      
 20165d0:	94 10 00 1b 	mov  %i3, %o2                                  
 20165d4:	30 bf ff d4 	b,a   2016524 <_Timer_server_Body+0x98>        
     /*                                                               
      *  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 ); 
 20165d8:	92 10 20 01 	mov  1, %o1                                    
 20165dc:	40 00 12 da 	call  201b144 <_Watchdog_Adjust>               
 20165e0:	94 22 80 1d 	sub  %o2, %i5, %o2                             
 20165e4:	30 bf ff d0 	b,a   2016524 <_Timer_server_Body+0x98>        
  Timer_server_Control *ts,                                           
  Timer_Control *timer                                                
)                                                                     
{                                                                     
  if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {                 
    _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
 20165e8:	90 10 00 1c 	mov  %i4, %o0                                  
 20165ec:	40 00 13 36 	call  201b2c4 <_Watchdog_Insert>               
 20165f0:	92 02 60 10 	add  %o1, 0x10, %o1                            
 20165f4:	30 bf ff cd 	b,a   2016528 <_Timer_server_Body+0x9c>        
     */                                                               
    _Timer_server_Process_insertions( ts );                           
                                                                      
    _ISR_Disable( level );                                            
    if ( _Chain_Is_empty( insert_chain ) ) {                          
      ts->insert_chain = NULL;                                        
 20165f8:	c0 26 20 78 	clr  [ %i0 + 0x78 ]                            
      _ISR_Enable( level );                                           
 20165fc:	7f ff e2 38 	call  200eedc <sparc_enable_interrupts>        
 2016600:	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 ) ) {                          
 2016604:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         
 2016608:	80 a0 40 12 	cmp  %g1, %l2                                  
 201660c:	12 80 00 0c 	bne  201663c <_Timer_server_Body+0x1b0>        
 2016610:	01 00 00 00 	nop                                            
 2016614:	30 80 00 13 	b,a   2016660 <_Timer_server_Body+0x1d4>       
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *old_first = head->next;                                 
  Chain_Node *new_first = old_first->next;                            
                                                                      
  head->next = new_first;                                             
  new_first->previous = head;                                         
 2016618:	f6 20 60 04 	st  %i3, [ %g1 + 4 ]                           
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *old_first = head->next;                                 
  Chain_Node *new_first = old_first->next;                            
                                                                      
  head->next = new_first;                                             
 201661c:	c2 27 bf f4 	st  %g1, [ %fp + -12 ]                         
         *  service routine may remove a watchdog from the chain.     
         */                                                           
        _ISR_Disable( level );                                        
        watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain );
        if ( watchdog != NULL ) {                                     
          watchdog->state = WATCHDOG_INACTIVE;                        
 2016620:	c0 27 60 08 	clr  [ %i5 + 8 ]                               
          _ISR_Enable( level );                                       
 2016624:	7f ff e2 2e 	call  200eedc <sparc_enable_interrupts>        
 2016628:	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 );    
 201662c:	d0 07 60 20 	ld  [ %i5 + 0x20 ], %o0                        
 2016630:	c2 07 60 1c 	ld  [ %i5 + 0x1c ], %g1                        
 2016634:	9f c0 40 00 	call  %g1                                      
 2016638:	d2 07 60 24 	ld  [ %i5 + 0x24 ], %o1                        
                                                                      
        /*                                                            
         *  It is essential that interrupts are disable here since an interrupt
         *  service routine may remove a watchdog from the chain.     
         */                                                           
        _ISR_Disable( level );                                        
 201663c:	7f ff e2 24 	call  200eecc <sparc_disable_interrupts>       
 2016640:	01 00 00 00 	nop                                            
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(        
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_head( the_chain )->next;                    
 2016644:	fa 07 bf f4 	ld  [ %fp + -12 ], %i5                         
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(              
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  if ( !_Chain_Is_empty(the_chain))                                   
 2016648:	80 a7 40 12 	cmp  %i5, %l2                                  
 201664c:	32 bf ff f3 	bne,a   2016618 <_Timer_server_Body+0x18c>     
 2016650:	c2 07 40 00 	ld  [ %i5 ], %g1                               
        watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain );
        if ( watchdog != NULL ) {                                     
          watchdog->state = WATCHDOG_INACTIVE;                        
          _ISR_Enable( level );                                       
        } else {                                                      
          _ISR_Enable( level );                                       
 2016654:	7f ff e2 22 	call  200eedc <sparc_enable_interrupts>        
 2016658:	01 00 00 00 	nop                                            
 201665c:	30 bf ff a2 	b,a   20164e4 <_Timer_server_Body+0x58>        
         *  the active flag of the timer server is true.              
         */                                                           
        (*watchdog->routine)( watchdog->id, watchdog->user_data );    
      }                                                               
    } else {                                                          
      ts->active = false;                                             
 2016660:	c0 2e 20 7c 	clrb  [ %i0 + 0x7c ]                           
   *                                                                  
   * This rountine increments the thread dispatch level               
   */                                                                 
  RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
  {                                                                   
    _Thread_Dispatch_disable_level++;                                 
 2016664:	c2 05 00 00 	ld  [ %l4 ], %g1                               
 2016668:	82 00 60 01 	inc  %g1                                       
 201666c:	c2 25 00 00 	st  %g1, [ %l4 ]                               
    return _Thread_Dispatch_disable_level;                            
 2016670:	c2 05 00 00 	ld  [ %l4 ], %g1                               
                                                                      
      /*                                                              
       *  Block until there is something to do.                       
       */                                                             
      _Thread_Disable_dispatch();                                     
        _Thread_Set_state( ts->thread, STATES_DELAYING );             
 2016674:	d0 06 00 00 	ld  [ %i0 ], %o0                               
 2016678:	40 00 11 17 	call  201aad4 <_Thread_Set_state>              
 201667c:	92 10 20 08 	mov  8, %o1                                    
        _Timer_server_Reset_interval_system_watchdog( ts );           
 2016680:	7f ff ff 5b 	call  20163ec <_Timer_server_Reset_interval_system_watchdog>
 2016684:	90 10 00 18 	mov  %i0, %o0                                  
        _Timer_server_Reset_tod_system_watchdog( ts );                
 2016688:	7f ff ff 6d 	call  201643c <_Timer_server_Reset_tod_system_watchdog>
 201668c:	90 10 00 18 	mov  %i0, %o0                                  
      _Thread_Enable_dispatch();                                      
 2016690:	40 00 0e 91 	call  201a0d4 <_Thread_Enable_dispatch>        
 2016694:	01 00 00 00 	nop                                            
                                                                      
static void _Timer_server_Stop_interval_system_watchdog(              
  Timer_server_Control *ts                                            
)                                                                     
{                                                                     
  _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );        
 2016698:	90 10 00 17 	mov  %l7, %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;                                              
 201669c:	ea 2e 20 7c 	stb  %l5, [ %i0 + 0x7c ]                       
                                                                      
static void _Timer_server_Stop_interval_system_watchdog(              
  Timer_server_Control *ts                                            
)                                                                     
{                                                                     
  _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );        
 20166a0:	40 00 13 6b 	call  201b44c <_Watchdog_Remove>               
 20166a4:	01 00 00 00 	nop                                            
                                                                      
static void _Timer_server_Stop_tod_system_watchdog(                   
  Timer_server_Control *ts                                            
)                                                                     
{                                                                     
  _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );             
 20166a8:	40 00 13 69 	call  201b44c <_Watchdog_Remove>               
 20166ac:	90 10 00 16 	mov  %l6, %o0                                  
 20166b0:	30 bf ff 8d 	b,a   20164e4 <_Timer_server_Body+0x58>        
                                                                      

020166b4 <_Timer_server_Schedule_operation_method>: static void _Timer_server_Schedule_operation_method( Timer_server_Control *ts, Timer_Control *timer ) {
 20166b4:	9d e3 bf a0 	save  %sp, -96, %sp                            
  if ( ts->insert_chain == NULL ) {                                   
 20166b8:	c2 06 20 78 	ld  [ %i0 + 0x78 ], %g1                        
 20166bc:	80 a0 60 00 	cmp  %g1, 0                                    
 20166c0:	02 80 00 05 	be  20166d4 <_Timer_server_Schedule_operation_method+0x20>
 20166c4:	ba 10 00 19 	mov  %i1, %i5                                  
     *  server is not preemptible, so we must be in interrupt context here.  No
     *  thread dispatch will happen until the timer server finishes its
     *  critical section.  We have to use the protected chain methods because
     *  we may be interrupted by a higher priority interrupt.         
     */                                                               
    _Chain_Append( ts->insert_chain, &timer->Object.Node );           
 20166c8:	f0 06 20 78 	ld  [ %i0 + 0x78 ], %i0                        
 20166cc:	40 00 02 a6 	call  2017164 <_Chain_Append>                  
 20166d0:	81 e8 00 00 	restore                                        
   *                                                                  
   * This rountine increments the thread dispatch level               
   */                                                                 
  RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
  {                                                                   
    _Thread_Dispatch_disable_level++;                                 
 20166d4:	03 00 80 ed 	sethi  %hi(0x203b400), %g1                     
 20166d8:	c4 00 62 60 	ld  [ %g1 + 0x260 ], %g2	! 203b660 <_Thread_Dispatch_disable_level>
 20166dc:	84 00 a0 01 	inc  %g2                                       
 20166e0:	c4 20 62 60 	st  %g2, [ %g1 + 0x260 ]                       
    return _Thread_Dispatch_disable_level;                            
 20166e4:	c2 00 62 60 	ld  [ %g1 + 0x260 ], %g1                       
   *  being inserted.  This could result in an integer overflow.      
   */                                                                 
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {                 
 20166e8:	c2 06 60 38 	ld  [ %i1 + 0x38 ], %g1                        
 20166ec:	80 a0 60 01 	cmp  %g1, 1                                    
 20166f0:	02 80 00 28 	be  2016790 <_Timer_server_Schedule_operation_method+0xdc>
 20166f4:	80 a0 60 03 	cmp  %g1, 3                                    
    _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
                                                                      
    if ( !ts->active ) {                                              
      _Timer_server_Reset_interval_system_watchdog( ts );             
    }                                                                 
  } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {       
 20166f8:	02 80 00 04 	be  2016708 <_Timer_server_Schedule_operation_method+0x54>
 20166fc:	01 00 00 00 	nop                                            
    if ( !ts->active ) {                                              
      _Timer_server_Reset_tod_system_watchdog( ts );                  
    }                                                                 
  }                                                                   
                                                                      
  _Thread_Enable_dispatch();                                          
 2016700:	40 00 0e 75 	call  201a0d4 <_Thread_Enable_dispatch>        
 2016704:	81 e8 00 00 	restore                                        
  } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {       
    /*                                                                
     *  We have to advance the last known seconds value of the server and update
     *  the watchdog chain accordingly.                               
     */                                                               
    _ISR_Disable( level );                                            
 2016708:	7f ff e1 f1 	call  200eecc <sparc_disable_interrupts>       
 201670c:	01 00 00 00 	nop                                            
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(        
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_head( the_chain )->next;                    
 2016710:	c4 06 20 68 	ld  [ %i0 + 0x68 ], %g2                        
    snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();        
    last_snapshot = ts->TOD_watchdogs.last_snapshot;                  
 2016714:	c6 06 20 74 	ld  [ %i0 + 0x74 ], %g3                        
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
 2016718:	88 06 20 6c 	add  %i0, 0x6c, %g4                            
    /*                                                                
     *  We have to advance the last known seconds value of the server and update
     *  the watchdog chain accordingly.                               
     */                                                               
    _ISR_Disable( level );                                            
    snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();        
 201671c:	03 00 80 ed 	sethi  %hi(0x203b400), %g1                     
    last_snapshot = ts->TOD_watchdogs.last_snapshot;                  
    if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) {             
 2016720:	80 a0 80 04 	cmp  %g2, %g4                                  
 2016724:	02 80 00 0d 	be  2016758 <_Timer_server_Schedule_operation_method+0xa4>
 2016728:	c2 00 62 ec 	ld  [ %g1 + 0x2ec ], %g1                       
      first_watchdog = _Watchdog_First( &ts->TOD_watchdogs.Chain );   
      delta_interval = first_watchdog->delta_interval;                
 201672c:	de 00 a0 10 	ld  [ %g2 + 0x10 ], %o7                        
      if ( snapshot > last_snapshot ) {                               
 2016730:	80 a0 40 03 	cmp  %g1, %g3                                  
        }                                                             
      } else {                                                        
        /*                                                            
         *  Someone put us in the past.                               
         */                                                           
        delta = last_snapshot - snapshot;                             
 2016734:	88 03 c0 03 	add  %o7, %g3, %g4                             
    snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();        
    last_snapshot = ts->TOD_watchdogs.last_snapshot;                  
    if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) {             
      first_watchdog = _Watchdog_First( &ts->TOD_watchdogs.Chain );   
      delta_interval = first_watchdog->delta_interval;                
      if ( snapshot > last_snapshot ) {                               
 2016738:	08 80 00 07 	bleu  2016754 <_Timer_server_Schedule_operation_method+0xa0>
 201673c:	88 21 00 01 	sub  %g4, %g1, %g4                             
        /*                                                            
         *  We advanced in time.                                      
         */                                                           
        delta = snapshot - last_snapshot;                             
 2016740:	86 20 40 03 	sub  %g1, %g3, %g3                             
        if (delta_interval > delta) {                                 
 2016744:	80 a3 c0 03 	cmp  %o7, %g3                                  
 2016748:	08 80 00 03 	bleu  2016754 <_Timer_server_Schedule_operation_method+0xa0><== NEVER TAKEN
 201674c:	88 10 20 00 	clr  %g4                                       
          delta_interval -= delta;                                    
 2016750:	88 23 c0 03 	sub  %o7, %g3, %g4                             
         *  Someone put us in the past.                               
         */                                                           
        delta = last_snapshot - snapshot;                             
        delta_interval += delta;                                      
      }                                                               
      first_watchdog->delta_interval = delta_interval;                
 2016754:	c8 20 a0 10 	st  %g4, [ %g2 + 0x10 ]                        
    }                                                                 
    ts->TOD_watchdogs.last_snapshot = snapshot;                       
 2016758:	c2 26 20 74 	st  %g1, [ %i0 + 0x74 ]                        
    _ISR_Enable( level );                                             
 201675c:	7f ff e1 e0 	call  200eedc <sparc_enable_interrupts>        
 2016760:	01 00 00 00 	nop                                            
                                                                      
    _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );     
 2016764:	90 06 20 68 	add  %i0, 0x68, %o0                            
 2016768:	40 00 12 d7 	call  201b2c4 <_Watchdog_Insert>               
 201676c:	92 07 60 10 	add  %i5, 0x10, %o1                            
                                                                      
    if ( !ts->active ) {                                              
 2016770:	c2 0e 20 7c 	ldub  [ %i0 + 0x7c ], %g1                      
 2016774:	80 a0 60 00 	cmp  %g1, 0                                    
 2016778:	12 bf ff e2 	bne  2016700 <_Timer_server_Schedule_operation_method+0x4c>
 201677c:	01 00 00 00 	nop                                            
      _Timer_server_Reset_tod_system_watchdog( ts );                  
 2016780:	7f ff ff 2f 	call  201643c <_Timer_server_Reset_tod_system_watchdog>
 2016784:	90 10 00 18 	mov  %i0, %o0                                  
    }                                                                 
  }                                                                   
                                                                      
  _Thread_Enable_dispatch();                                          
 2016788:	40 00 0e 53 	call  201a0d4 <_Thread_Enable_dispatch>        
 201678c:	81 e8 00 00 	restore                                        
  if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {                 
    /*                                                                
     *  We have to advance the last known ticks value of the server and update
     *  the watchdog chain accordingly.                               
     */                                                               
    _ISR_Disable( level );                                            
 2016790:	7f ff e1 cf 	call  200eecc <sparc_disable_interrupts>       
 2016794:	01 00 00 00 	nop                                            
    snapshot = _Watchdog_Ticks_since_boot;                            
 2016798:	05 00 80 ed 	sethi  %hi(0x203b400), %g2                     
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(        
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_head( the_chain )->next;                    
 201679c:	c2 06 20 30 	ld  [ %i0 + 0x30 ], %g1                        
 20167a0:	c4 00 a3 6c 	ld  [ %g2 + 0x36c ], %g2                       
    last_snapshot = ts->Interval_watchdogs.last_snapshot;             
 20167a4:	c8 06 20 3c 	ld  [ %i0 + 0x3c ], %g4                        
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
 20167a8:	86 06 20 34 	add  %i0, 0x34, %g3                            
    if ( !_Chain_Is_empty( &ts->Interval_watchdogs.Chain ) ) {        
 20167ac:	80 a0 40 03 	cmp  %g1, %g3                                  
 20167b0:	02 80 00 08 	be  20167d0 <_Timer_server_Schedule_operation_method+0x11c>
 20167b4:	88 20 80 04 	sub  %g2, %g4, %g4                             
      /*                                                              
       *  We assume adequate unsigned arithmetic here.                
       */                                                             
      delta = snapshot - last_snapshot;                               
                                                                      
      delta_interval = first_watchdog->delta_interval;                
 20167b8:	de 00 60 10 	ld  [ %g1 + 0x10 ], %o7                        
      if (delta_interval > delta) {                                   
 20167bc:	80 a1 00 0f 	cmp  %g4, %o7                                  
 20167c0:	1a 80 00 03 	bcc  20167cc <_Timer_server_Schedule_operation_method+0x118>
 20167c4:	86 10 20 00 	clr  %g3                                       
        delta_interval -= delta;                                      
 20167c8:	86 23 c0 04 	sub  %o7, %g4, %g3                             
      } else {                                                        
        delta_interval = 0;                                           
      }                                                               
      first_watchdog->delta_interval = delta_interval;                
 20167cc:	c6 20 60 10 	st  %g3, [ %g1 + 0x10 ]                        
    }                                                                 
    ts->Interval_watchdogs.last_snapshot = snapshot;                  
 20167d0:	c4 26 20 3c 	st  %g2, [ %i0 + 0x3c ]                        
    _ISR_Enable( level );                                             
 20167d4:	7f ff e1 c2 	call  200eedc <sparc_enable_interrupts>        
 20167d8:	01 00 00 00 	nop                                            
                                                                      
    _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
 20167dc:	90 06 20 30 	add  %i0, 0x30, %o0                            
 20167e0:	40 00 12 b9 	call  201b2c4 <_Watchdog_Insert>               
 20167e4:	92 07 60 10 	add  %i5, 0x10, %o1                            
                                                                      
    if ( !ts->active ) {                                              
 20167e8:	c2 0e 20 7c 	ldub  [ %i0 + 0x7c ], %g1                      
 20167ec:	80 a0 60 00 	cmp  %g1, 0                                    
 20167f0:	12 bf ff c4 	bne  2016700 <_Timer_server_Schedule_operation_method+0x4c>
 20167f4:	01 00 00 00 	nop                                            
      _Timer_server_Reset_interval_system_watchdog( ts );             
 20167f8:	7f ff fe fd 	call  20163ec <_Timer_server_Reset_interval_system_watchdog>
 20167fc:	90 10 00 18 	mov  %i0, %o0                                  
    if ( !ts->active ) {                                              
      _Timer_server_Reset_tod_system_watchdog( ts );                  
    }                                                                 
  }                                                                   
                                                                      
  _Thread_Enable_dispatch();                                          
 2016800:	40 00 0e 35 	call  201a0d4 <_Thread_Enable_dispatch>        
 2016804:	81 e8 00 00 	restore                                        
                                                                      

0200a0f4 <_User_extensions_Fatal>: void _User_extensions_Fatal ( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) {
 200a0f4:	9d e3 bf a0 	save  %sp, -96, %sp                            
 200a0f8:	39 00 80 76 	sethi  %hi(0x201d800), %i4                     
 200a0fc:	b8 17 23 b8 	or  %i4, 0x3b8, %i4	! 201dbb8 <_User_extensions_List>
 200a100:	fa 07 20 08 	ld  [ %i4 + 8 ], %i5                           
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_Last( &_User_extensions_List );             
 200a104:	80 a7 40 1c 	cmp  %i5, %i4                                  
 200a108:	02 80 00 0d 	be  200a13c <_User_extensions_Fatal+0x48>      <== NEVER TAKEN
 200a10c:	01 00 00 00 	nop                                            
        !_Chain_Is_head( &_User_extensions_List, the_node ) ;         
        the_node = the_node->previous ) {                             
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.fatal != NULL )                      
 200a110:	c2 07 60 30 	ld  [ %i5 + 0x30 ], %g1                        
 200a114:	80 a0 60 00 	cmp  %g1, 0                                    
 200a118:	02 80 00 05 	be  200a12c <_User_extensions_Fatal+0x38>      
 200a11c:	90 10 00 18 	mov  %i0, %o0                                  
      (*the_extension->Callouts.fatal)( the_source, is_internal, the_error );
 200a120:	92 10 00 19 	mov  %i1, %o1                                  
 200a124:	9f c0 40 00 	call  %g1                                      
 200a128:	94 10 00 1a 	mov  %i2, %o2                                  
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_Last( &_User_extensions_List );             
        !_Chain_Is_head( &_User_extensions_List, the_node ) ;         
        the_node = the_node->previous ) {                             
 200a12c:	fa 07 60 04 	ld  [ %i5 + 4 ], %i5                           
)                                                                     
{                                                                     
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_Last( &_User_extensions_List );             
 200a130:	80 a7 40 1c 	cmp  %i5, %i4                                  
 200a134:	32 bf ff f8 	bne,a   200a114 <_User_extensions_Fatal+0x20>  
 200a138:	c2 07 60 30 	ld  [ %i5 + 0x30 ], %g1                        
 200a13c:	81 c7 e0 08 	ret                                            
 200a140:	81 e8 00 00 	restore                                        
                                                                      

02009fa0 <_User_extensions_Handler_initialization>: #include <rtems/score/userext.h> #include <rtems/score/wkspace.h> #include <string.h> void _User_extensions_Handler_initialization(void) {
 2009fa0:	9d e3 bf a0 	save  %sp, -96, %sp                            
  User_extensions_Control *extension;                                 
  uint32_t                 i;                                         
  uint32_t                 number_of_extensions;                      
  User_extensions_Table   *initial_extensions;                        
                                                                      
  number_of_extensions = Configuration.number_of_initial_extensions;  
 2009fa4:	07 00 80 73 	sethi  %hi(0x201cc00), %g3                     
 2009fa8:	86 10 e0 6c 	or  %g3, 0x6c, %g3	! 201cc6c <Configuration>   
  initial_extensions   = Configuration.User_extension_table;          
 2009fac:	f6 00 e0 3c 	ld  [ %g3 + 0x3c ], %i3                        
 2009fb0:	3b 00 80 76 	sethi  %hi(0x201d800), %i5                     
 2009fb4:	09 00 80 76 	sethi  %hi(0x201d800), %g4                     
 2009fb8:	84 17 63 b8 	or  %i5, 0x3b8, %g2                            
 2009fbc:	82 11 21 d4 	or  %g4, 0x1d4, %g1                            
 2009fc0:	b4 00 a0 04 	add  %g2, 4, %i2                               
 2009fc4:	b8 00 60 04 	add  %g1, 4, %i4                               
 2009fc8:	f4 27 63 b8 	st  %i2, [ %i5 + 0x3b8 ]                       
  head->previous = NULL;                                              
 2009fcc:	c0 20 a0 04 	clr  [ %g2 + 4 ]                               
  tail->previous = head;                                              
 2009fd0:	c4 20 a0 08 	st  %g2, [ %g2 + 8 ]                           
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 2009fd4:	f8 21 21 d4 	st  %i4, [ %g4 + 0x1d4 ]                       
  head->previous = NULL;                                              
 2009fd8:	c0 20 60 04 	clr  [ %g1 + 4 ]                               
  tail->previous = head;                                              
 2009fdc:	c2 20 60 08 	st  %g1, [ %g1 + 8 ]                           
                                                                      
  _Chain_Initialize_empty( &_User_extensions_List );                  
  _Chain_Initialize_empty( &_User_extensions_Switches_list );         
                                                                      
  if ( initial_extensions ) {                                         
 2009fe0:	80 a6 e0 00 	cmp  %i3, 0                                    
 2009fe4:	02 80 00 1b 	be  200a050 <_User_extensions_Handler_initialization+0xb0><== NEVER TAKEN
 2009fe8:	f4 00 e0 38 	ld  [ %g3 + 0x38 ], %i2                        
    extension = (User_extensions_Control *)                           
      _Workspace_Allocate_or_fatal_error(                             
        number_of_extensions * sizeof( User_extensions_Control )      
 2009fec:	83 2e a0 02 	sll  %i2, 2, %g1                               
 2009ff0:	b9 2e a0 04 	sll  %i2, 4, %i4                               
 2009ff4:	b8 27 00 01 	sub  %i4, %g1, %i4                             
 2009ff8:	b8 07 00 1a 	add  %i4, %i2, %i4                             
 2009ffc:	b9 2f 20 02 	sll  %i4, 2, %i4                               
                                                                      
  _Chain_Initialize_empty( &_User_extensions_List );                  
  _Chain_Initialize_empty( &_User_extensions_Switches_list );         
                                                                      
  if ( initial_extensions ) {                                         
    extension = (User_extensions_Control *)                           
 200a000:	40 00 01 96 	call  200a658 <_Workspace_Allocate_or_fatal_error>
 200a004:	90 10 00 1c 	mov  %i4, %o0                                  
      _Workspace_Allocate_or_fatal_error(                             
        number_of_extensions * sizeof( User_extensions_Control )      
      );                                                              
                                                                      
    memset (                                                          
 200a008:	92 10 20 00 	clr  %o1                                       
                                                                      
  _Chain_Initialize_empty( &_User_extensions_List );                  
  _Chain_Initialize_empty( &_User_extensions_Switches_list );         
                                                                      
  if ( initial_extensions ) {                                         
    extension = (User_extensions_Control *)                           
 200a00c:	ba 10 00 08 	mov  %o0, %i5                                  
      _Workspace_Allocate_or_fatal_error(                             
        number_of_extensions * sizeof( User_extensions_Control )      
      );                                                              
                                                                      
    memset (                                                          
 200a010:	40 00 18 fc 	call  2010400 <memset>                         
 200a014:	94 10 00 1c 	mov  %i4, %o2                                  
      extension,                                                      
      0,                                                              
      number_of_extensions * sizeof( User_extensions_Control )        
    );                                                                
                                                                      
    for ( i = 0 ; i < number_of_extensions ; i++ ) {                  
 200a018:	80 a6 a0 00 	cmp  %i2, 0                                    
 200a01c:	02 80 00 0d 	be  200a050 <_User_extensions_Handler_initialization+0xb0><== NEVER TAKEN
 200a020:	b8 10 20 00 	clr  %i4                                       
RTEMS_INLINE_ROUTINE void _User_extensions_Add_set_with_table(        
  User_extensions_Control     *extension,                             
  const User_extensions_Table *extension_table                        
)                                                                     
{                                                                     
  extension->Callouts = *extension_table;                             
 200a024:	92 10 00 1b 	mov  %i3, %o1                                  
 200a028:	94 10 20 20 	mov  0x20, %o2                                 
 200a02c:	40 00 18 b9 	call  2010310 <memcpy>                         
 200a030:	90 07 60 14 	add  %i5, 0x14, %o0                            
                                                                      
  _User_extensions_Add_set( extension );                              
 200a034:	40 00 0e e0 	call  200dbb4 <_User_extensions_Add_set>       
 200a038:	90 10 00 1d 	mov  %i5, %o0                                  
 200a03c:	b8 07 20 01 	inc  %i4                                       
      _User_extensions_Add_set_with_table (extension, &initial_extensions[i]);
      extension++;                                                    
 200a040:	ba 07 60 34 	add  %i5, 0x34, %i5                            
      extension,                                                      
      0,                                                              
      number_of_extensions * sizeof( User_extensions_Control )        
    );                                                                
                                                                      
    for ( i = 0 ; i < number_of_extensions ; i++ ) {                  
 200a044:	80 a7 00 1a 	cmp  %i4, %i2                                  
 200a048:	12 bf ff f7 	bne  200a024 <_User_extensions_Handler_initialization+0x84>
 200a04c:	b6 06 e0 20 	add  %i3, 0x20, %i3                            
 200a050:	81 c7 e0 08 	ret                                            
 200a054:	81 e8 00 00 	restore                                        
                                                                      

0200a058 <_User_extensions_Thread_begin>: #include <rtems/score/userext.h> void _User_extensions_Thread_begin ( Thread_Control *executing ) {
 200a058:	9d e3 bf a0 	save  %sp, -96, %sp                            
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
 200a05c:	39 00 80 76 	sethi  %hi(0x201d800), %i4                     
 200a060:	fa 07 23 b8 	ld  [ %i4 + 0x3b8 ], %i5	! 201dbb8 <_User_extensions_List>
 200a064:	b8 17 23 b8 	or  %i4, 0x3b8, %i4                            
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_List );            
 200a068:	b8 07 20 04 	add  %i4, 4, %i4                               
 200a06c:	80 a7 40 1c 	cmp  %i5, %i4                                  
 200a070:	02 80 00 0c 	be  200a0a0 <_User_extensions_Thread_begin+0x48><== NEVER TAKEN
 200a074:	01 00 00 00 	nop                                            
        !_Chain_Is_tail( &_User_extensions_List, the_node ) ;         
        the_node = the_node->next ) {                                 
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_begin != NULL )               
 200a078:	c2 07 60 28 	ld  [ %i5 + 0x28 ], %g1                        
 200a07c:	80 a0 60 00 	cmp  %g1, 0                                    
 200a080:	02 80 00 04 	be  200a090 <_User_extensions_Thread_begin+0x38>
 200a084:	90 10 00 18 	mov  %i0, %o0                                  
      (*the_extension->Callouts.thread_begin)( executing );           
 200a088:	9f c0 40 00 	call  %g1                                      
 200a08c:	01 00 00 00 	nop                                            
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_List );            
        !_Chain_Is_tail( &_User_extensions_List, the_node ) ;         
        the_node = the_node->next ) {                                 
 200a090:	fa 07 40 00 	ld  [ %i5 ], %i5                               
)                                                                     
{                                                                     
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_List );            
 200a094:	80 a7 40 1c 	cmp  %i5, %i4                                  
 200a098:	32 bf ff f9 	bne,a   200a07c <_User_extensions_Thread_begin+0x24>
 200a09c:	c2 07 60 28 	ld  [ %i5 + 0x28 ], %g1                        
 200a0a0:	81 c7 e0 08 	ret                                            
 200a0a4:	81 e8 00 00 	restore                                        
                                                                      

0200a144 <_User_extensions_Thread_create>: #include <rtems/score/userext.h> bool _User_extensions_Thread_create ( Thread_Control *the_thread ) {
 200a144:	9d e3 bf a0 	save  %sp, -96, %sp                            
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
 200a148:	39 00 80 76 	sethi  %hi(0x201d800), %i4                     
 200a14c:	fa 07 23 b8 	ld  [ %i4 + 0x3b8 ], %i5	! 201dbb8 <_User_extensions_List>
 200a150:	b8 17 23 b8 	or  %i4, 0x3b8, %i4                            
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
  bool                     status;                                    
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_List );            
 200a154:	b8 07 20 04 	add  %i4, 4, %i4                               
 200a158:	80 a7 40 1c 	cmp  %i5, %i4                                  
 200a15c:	02 80 00 12 	be  200a1a4 <_User_extensions_Thread_create+0x60><== NEVER TAKEN
 200a160:	82 10 20 01 	mov  1, %g1                                    
        the_node = the_node->next ) {                                 
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_create != NULL ) {            
      status = (*the_extension->Callouts.thread_create)(              
 200a164:	37 00 80 77 	sethi  %hi(0x201dc00), %i3                     
        !_Chain_Is_tail( &_User_extensions_List, the_node ) ;         
        the_node = the_node->next ) {                                 
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_create != NULL ) {            
 200a168:	c2 07 60 14 	ld  [ %i5 + 0x14 ], %g1                        
 200a16c:	80 a0 60 00 	cmp  %g1, 0                                    
 200a170:	02 80 00 08 	be  200a190 <_User_extensions_Thread_create+0x4c>
 200a174:	84 16 e3 08 	or  %i3, 0x308, %g2                            
      status = (*the_extension->Callouts.thread_create)(              
 200a178:	d0 00 a0 0c 	ld  [ %g2 + 0xc ], %o0                         
 200a17c:	9f c0 40 00 	call  %g1                                      
 200a180:	92 10 00 18 	mov  %i0, %o1                                  
        _Thread_Executing,                                            
        the_thread                                                    
      );                                                              
      if ( !status )                                                  
 200a184:	80 8a 20 ff 	btst  0xff, %o0                                
 200a188:	02 80 00 0a 	be  200a1b0 <_User_extensions_Thread_create+0x6c>
 200a18c:	82 10 20 00 	clr  %g1                                       
  User_extensions_Control *the_extension;                             
  bool                     status;                                    
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_List );            
        !_Chain_Is_tail( &_User_extensions_List, the_node ) ;         
        the_node = the_node->next ) {                                 
 200a190:	fa 07 40 00 	ld  [ %i5 ], %i5                               
{                                                                     
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
  bool                     status;                                    
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_List );            
 200a194:	80 a7 40 1c 	cmp  %i5, %i4                                  
 200a198:	32 bf ff f5 	bne,a   200a16c <_User_extensions_Thread_create+0x28>
 200a19c:	c2 07 60 14 	ld  [ %i5 + 0x14 ], %g1                        
      if ( !status )                                                  
        return false;                                                 
    }                                                                 
  }                                                                   
                                                                      
  return true;                                                        
 200a1a0:	82 10 20 01 	mov  1, %g1                                    
}                                                                     
 200a1a4:	b0 08 60 01 	and  %g1, 1, %i0                               
 200a1a8:	81 c7 e0 08 	ret                                            
 200a1ac:	81 e8 00 00 	restore                                        
 200a1b0:	b0 08 60 01 	and  %g1, 1, %i0                               
 200a1b4:	81 c7 e0 08 	ret                                            
 200a1b8:	81 e8 00 00 	restore                                        
                                                                      

0200a1bc <_User_extensions_Thread_delete>: #include <rtems/score/userext.h> void _User_extensions_Thread_delete ( Thread_Control *the_thread ) {
 200a1bc:	9d e3 bf a0 	save  %sp, -96, %sp                            
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Last(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Tail( the_chain )->previous;                          
 200a1c0:	39 00 80 76 	sethi  %hi(0x201d800), %i4                     
 200a1c4:	b8 17 23 b8 	or  %i4, 0x3b8, %i4	! 201dbb8 <_User_extensions_List>
 200a1c8:	fa 07 20 08 	ld  [ %i4 + 8 ], %i5                           
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_Last( &_User_extensions_List );             
 200a1cc:	80 a7 40 1c 	cmp  %i5, %i4                                  
 200a1d0:	02 80 00 0d 	be  200a204 <_User_extensions_Thread_delete+0x48><== NEVER TAKEN
 200a1d4:	37 00 80 77 	sethi  %hi(0x201dc00), %i3                     
        !_Chain_Is_head( &_User_extensions_List, the_node ) ;         
        the_node = the_node->previous ) {                             
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_delete != NULL )              
 200a1d8:	c2 07 60 20 	ld  [ %i5 + 0x20 ], %g1                        
 200a1dc:	80 a0 60 00 	cmp  %g1, 0                                    
 200a1e0:	02 80 00 05 	be  200a1f4 <_User_extensions_Thread_delete+0x38>
 200a1e4:	84 16 e3 08 	or  %i3, 0x308, %g2                            
      (*the_extension->Callouts.thread_delete)(                       
 200a1e8:	d0 00 a0 0c 	ld  [ %g2 + 0xc ], %o0                         
 200a1ec:	9f c0 40 00 	call  %g1                                      
 200a1f0:	92 10 00 18 	mov  %i0, %o1                                  
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_Last( &_User_extensions_List );             
        !_Chain_Is_head( &_User_extensions_List, the_node ) ;         
        the_node = the_node->previous ) {                             
 200a1f4:	fa 07 60 04 	ld  [ %i5 + 4 ], %i5                           
)                                                                     
{                                                                     
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_Last( &_User_extensions_List );             
 200a1f8:	80 a7 40 1c 	cmp  %i5, %i4                                  
 200a1fc:	32 bf ff f8 	bne,a   200a1dc <_User_extensions_Thread_delete+0x20>
 200a200:	c2 07 60 20 	ld  [ %i5 + 0x20 ], %g1                        
 200a204:	81 c7 e0 08 	ret                                            
 200a208:	81 e8 00 00 	restore                                        
                                                                      

0200a0a8 <_User_extensions_Thread_exitted>: } void _User_extensions_Thread_exitted ( Thread_Control *executing ) {
 200a0a8:	9d e3 bf a0 	save  %sp, -96, %sp                            
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Last(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Tail( the_chain )->previous;                          
 200a0ac:	39 00 80 76 	sethi  %hi(0x201d800), %i4                     
 200a0b0:	b8 17 23 b8 	or  %i4, 0x3b8, %i4	! 201dbb8 <_User_extensions_List>
 200a0b4:	fa 07 20 08 	ld  [ %i4 + 8 ], %i5                           
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_Last( &_User_extensions_List );             
 200a0b8:	80 a7 40 1c 	cmp  %i5, %i4                                  
 200a0bc:	02 80 00 0c 	be  200a0ec <_User_extensions_Thread_exitted+0x44><== NEVER TAKEN
 200a0c0:	01 00 00 00 	nop                                            
        !_Chain_Is_head( &_User_extensions_List, the_node ) ;         
        the_node = the_node->previous ) {                             
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_exitted != NULL )             
 200a0c4:	c2 07 60 2c 	ld  [ %i5 + 0x2c ], %g1                        
 200a0c8:	80 a0 60 00 	cmp  %g1, 0                                    
 200a0cc:	02 80 00 04 	be  200a0dc <_User_extensions_Thread_exitted+0x34>
 200a0d0:	90 10 00 18 	mov  %i0, %o0                                  
      (*the_extension->Callouts.thread_exitted)( executing );         
 200a0d4:	9f c0 40 00 	call  %g1                                      
 200a0d8:	01 00 00 00 	nop                                            
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_Last( &_User_extensions_List );             
        !_Chain_Is_head( &_User_extensions_List, the_node ) ;         
        the_node = the_node->previous ) {                             
 200a0dc:	fa 07 60 04 	ld  [ %i5 + 4 ], %i5                           
)                                                                     
{                                                                     
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_Last( &_User_extensions_List );             
 200a0e0:	80 a7 40 1c 	cmp  %i5, %i4                                  
 200a0e4:	32 bf ff f9 	bne,a   200a0c8 <_User_extensions_Thread_exitted+0x20>
 200a0e8:	c2 07 60 2c 	ld  [ %i5 + 0x2c ], %g1                        
 200a0ec:	81 c7 e0 08 	ret                                            
 200a0f0:	81 e8 00 00 	restore                                        
                                                                      

0200aa4c <_User_extensions_Thread_restart>: #include <rtems/score/userext.h> void _User_extensions_Thread_restart ( Thread_Control *the_thread ) {
 200aa4c:	9d e3 bf a0 	save  %sp, -96, %sp                            
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
 200aa50:	39 00 80 79 	sethi  %hi(0x201e400), %i4                     
 200aa54:	fa 07 22 d8 	ld  [ %i4 + 0x2d8 ], %i5	! 201e6d8 <_User_extensions_List>
 200aa58:	b8 17 22 d8 	or  %i4, 0x2d8, %i4                            
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_List );            
 200aa5c:	b8 07 20 04 	add  %i4, 4, %i4                               
 200aa60:	80 a7 40 1c 	cmp  %i5, %i4                                  
 200aa64:	02 80 00 0d 	be  200aa98 <_User_extensions_Thread_restart+0x4c><== NEVER TAKEN
 200aa68:	37 00 80 7a 	sethi  %hi(0x201e800), %i3                     
        !_Chain_Is_tail( &_User_extensions_List, the_node ) ;         
        the_node = the_node->next ) {                                 
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_restart != NULL )             
 200aa6c:	c2 07 60 1c 	ld  [ %i5 + 0x1c ], %g1                        
 200aa70:	80 a0 60 00 	cmp  %g1, 0                                    
 200aa74:	02 80 00 05 	be  200aa88 <_User_extensions_Thread_restart+0x3c>
 200aa78:	84 16 e2 28 	or  %i3, 0x228, %g2                            
      (*the_extension->Callouts.thread_restart)(                      
 200aa7c:	d0 00 a0 0c 	ld  [ %g2 + 0xc ], %o0                         
 200aa80:	9f c0 40 00 	call  %g1                                      
 200aa84:	92 10 00 18 	mov  %i0, %o1                                  
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_List );            
        !_Chain_Is_tail( &_User_extensions_List, the_node ) ;         
        the_node = the_node->next ) {                                 
 200aa88:	fa 07 40 00 	ld  [ %i5 ], %i5                               
)                                                                     
{                                                                     
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_List );            
 200aa8c:	80 a7 40 1c 	cmp  %i5, %i4                                  
 200aa90:	32 bf ff f8 	bne,a   200aa70 <_User_extensions_Thread_restart+0x24>
 200aa94:	c2 07 60 1c 	ld  [ %i5 + 0x1c ], %g1                        
 200aa98:	81 c7 e0 08 	ret                                            
 200aa9c:	81 e8 00 00 	restore                                        
                                                                      

0200a20c <_User_extensions_Thread_start>: #include <rtems/score/userext.h> void _User_extensions_Thread_start ( Thread_Control *the_thread ) {
 200a20c:	9d e3 bf a0 	save  %sp, -96, %sp                            
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
 200a210:	39 00 80 76 	sethi  %hi(0x201d800), %i4                     
 200a214:	fa 07 23 b8 	ld  [ %i4 + 0x3b8 ], %i5	! 201dbb8 <_User_extensions_List>
 200a218:	b8 17 23 b8 	or  %i4, 0x3b8, %i4                            
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_List );            
 200a21c:	b8 07 20 04 	add  %i4, 4, %i4                               
 200a220:	80 a7 40 1c 	cmp  %i5, %i4                                  
 200a224:	02 80 00 0d 	be  200a258 <_User_extensions_Thread_start+0x4c><== NEVER TAKEN
 200a228:	37 00 80 77 	sethi  %hi(0x201dc00), %i3                     
        !_Chain_Is_tail( &_User_extensions_List, the_node ) ;         
        the_node = the_node->next ) {                                 
                                                                      
    the_extension = (User_extensions_Control *) the_node;             
                                                                      
    if ( the_extension->Callouts.thread_start != NULL )               
 200a22c:	c2 07 60 18 	ld  [ %i5 + 0x18 ], %g1                        
 200a230:	80 a0 60 00 	cmp  %g1, 0                                    
 200a234:	02 80 00 05 	be  200a248 <_User_extensions_Thread_start+0x3c>
 200a238:	84 16 e3 08 	or  %i3, 0x308, %g2                            
      (*the_extension->Callouts.thread_start)(                        
 200a23c:	d0 00 a0 0c 	ld  [ %g2 + 0xc ], %o0                         
 200a240:	9f c0 40 00 	call  %g1                                      
 200a244:	92 10 00 18 	mov  %i0, %o1                                  
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_List );            
        !_Chain_Is_tail( &_User_extensions_List, the_node ) ;         
        the_node = the_node->next ) {                                 
 200a248:	fa 07 40 00 	ld  [ %i5 ], %i5                               
)                                                                     
{                                                                     
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_List );            
 200a24c:	80 a7 40 1c 	cmp  %i5, %i4                                  
 200a250:	32 bf ff f8 	bne,a   200a230 <_User_extensions_Thread_start+0x24>
 200a254:	c2 07 60 18 	ld  [ %i5 + 0x18 ], %g1                        
 200a258:	81 c7 e0 08 	ret                                            
 200a25c:	81 e8 00 00 	restore                                        
                                                                      

0200a260 <_User_extensions_Thread_switch>: void _User_extensions_Thread_switch ( Thread_Control *executing, Thread_Control *heir ) {
 200a260:	9d e3 bf a0 	save  %sp, -96, %sp                            
 200a264:	39 00 80 76 	sethi  %hi(0x201d800), %i4                     
 200a268:	fa 07 21 d4 	ld  [ %i4 + 0x1d4 ], %i5	! 201d9d4 <_User_extensions_Switches_list>
 200a26c:	b8 17 21 d4 	or  %i4, 0x1d4, %i4                            
  Chain_Node                     *the_node;                           
  User_extensions_Switch_control *the_extension_switch;               
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_Switches_list );   
 200a270:	b8 07 20 04 	add  %i4, 4, %i4                               
 200a274:	80 a7 40 1c 	cmp  %i5, %i4                                  
 200a278:	02 80 00 0a 	be  200a2a0 <_User_extensions_Thread_switch+0x40><== NEVER TAKEN
 200a27c:	01 00 00 00 	nop                                            
        !_Chain_Is_tail( &_User_extensions_Switches_list, the_node ) ;
        the_node = the_node->next ) {                                 
                                                                      
    the_extension_switch = (User_extensions_Switch_control *) the_node;
                                                                      
    (*the_extension_switch->thread_switch)( executing, heir );        
 200a280:	c2 07 60 08 	ld  [ %i5 + 8 ], %g1                           
 200a284:	90 10 00 18 	mov  %i0, %o0                                  
 200a288:	9f c0 40 00 	call  %g1                                      
 200a28c:	92 10 00 19 	mov  %i1, %o1                                  
  Chain_Node                     *the_node;                           
  User_extensions_Switch_control *the_extension_switch;               
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_Switches_list );   
        !_Chain_Is_tail( &_User_extensions_Switches_list, the_node ) ;
        the_node = the_node->next ) {                                 
 200a290:	fa 07 40 00 	ld  [ %i5 ], %i5                               
)                                                                     
{                                                                     
  Chain_Node                     *the_node;                           
  User_extensions_Switch_control *the_extension_switch;               
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_Switches_list );   
 200a294:	80 a7 40 1c 	cmp  %i5, %i4                                  
 200a298:	32 bf ff fb 	bne,a   200a284 <_User_extensions_Thread_switch+0x24>
 200a29c:	c2 07 60 08 	ld  [ %i5 + 8 ], %g1                           
 200a2a0:	81 c7 e0 08 	ret                                            
 200a2a4:	81 e8 00 00 	restore                                        
                                                                      

0200bd30 <_Watchdog_Adjust>: void _Watchdog_Adjust( Chain_Control *header, Watchdog_Adjust_directions direction, Watchdog_Interval units ) {
 200bd30:	9d e3 bf a0 	save  %sp, -96, %sp                            
  ISR_Level level;                                                    
                                                                      
  _ISR_Disable( level );                                              
 200bd34:	7f ff dc 7f 	call  2002f30 <sparc_disable_interrupts>       
 200bd38:	ba 10 00 18 	mov  %i0, %i5                                  
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(        
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_head( the_chain )->next;                    
 200bd3c:	c2 06 00 00 	ld  [ %i0 ], %g1                               
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
 200bd40:	b6 06 20 04 	add  %i0, 4, %i3                               
   *       hence the compiler must not assume *header to remain       
   *       unmodified across that call.                               
   *                                                                  
   *       Till Straumann, 7/2003                                     
   */                                                                 
  if ( !_Chain_Is_empty( header ) ) {                                 
 200bd44:	80 a0 40 1b 	cmp  %g1, %i3                                  
 200bd48:	02 80 00 1e 	be  200bdc0 <_Watchdog_Adjust+0x90>            
 200bd4c:	80 a6 60 00 	cmp  %i1, 0                                    
    switch ( direction ) {                                            
 200bd50:	12 80 00 1e 	bne  200bdc8 <_Watchdog_Adjust+0x98>           
 200bd54:	80 a6 60 01 	cmp  %i1, 1                                    
      case WATCHDOG_BACKWARD:                                         
        _Watchdog_First( header )->delta_interval += units;           
        break;                                                        
      case WATCHDOG_FORWARD:                                          
        while ( units ) {                                             
 200bd58:	80 a6 a0 00 	cmp  %i2, 0                                    
 200bd5c:	02 80 00 19 	be  200bdc0 <_Watchdog_Adjust+0x90>            <== NEVER TAKEN
 200bd60:	01 00 00 00 	nop                                            
          if ( units < _Watchdog_First( header )->delta_interval ) {  
 200bd64:	f8 00 60 10 	ld  [ %g1 + 0x10 ], %i4                        
 200bd68:	80 a6 80 1c 	cmp  %i2, %i4                                  
 200bd6c:	1a 80 00 0a 	bcc  200bd94 <_Watchdog_Adjust+0x64>           <== ALWAYS TAKEN
 200bd70:	b2 10 20 01 	mov  1, %i1                                    
            _Watchdog_First( header )->delta_interval -= units;       
 200bd74:	10 80 00 1c 	b  200bde4 <_Watchdog_Adjust+0xb4>             <== NOT EXECUTED
 200bd78:	b8 27 00 1a 	sub  %i4, %i2, %i4                             <== NOT EXECUTED
    switch ( direction ) {                                            
      case WATCHDOG_BACKWARD:                                         
        _Watchdog_First( header )->delta_interval += units;           
        break;                                                        
      case WATCHDOG_FORWARD:                                          
        while ( units ) {                                             
 200bd7c:	02 80 00 11 	be  200bdc0 <_Watchdog_Adjust+0x90>            <== NEVER TAKEN
 200bd80:	01 00 00 00 	nop                                            
          if ( units < _Watchdog_First( header )->delta_interval ) {  
 200bd84:	f8 00 60 10 	ld  [ %g1 + 0x10 ], %i4                        
 200bd88:	80 a7 00 1a 	cmp  %i4, %i2                                  
 200bd8c:	38 80 00 16 	bgu,a   200bde4 <_Watchdog_Adjust+0xb4>        
 200bd90:	b8 27 00 1a 	sub  %i4, %i2, %i4                             
            _Watchdog_First( header )->delta_interval -= units;       
            break;                                                    
          } else {                                                    
            units -= _Watchdog_First( header )->delta_interval;       
            _Watchdog_First( header )->delta_interval = 1;            
 200bd94:	f2 20 60 10 	st  %i1, [ %g1 + 0x10 ]                        
                                                                      
            _ISR_Enable( level );                                     
 200bd98:	7f ff dc 6a 	call  2002f40 <sparc_enable_interrupts>        
 200bd9c:	01 00 00 00 	nop                                            
                                                                      
            _Watchdog_Tickle( header );                               
 200bda0:	40 00 00 ab 	call  200c04c <_Watchdog_Tickle>               
 200bda4:	90 10 00 1d 	mov  %i5, %o0                                  
                                                                      
            _ISR_Disable( level );                                    
 200bda8:	7f ff dc 62 	call  2002f30 <sparc_disable_interrupts>       
 200bdac:	01 00 00 00 	nop                                            
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(        
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_head( the_chain )->next;                    
 200bdb0:	c2 07 40 00 	ld  [ %i5 ], %g1                               
                                                                      
            if ( _Chain_Is_empty( header ) )                          
 200bdb4:	80 a6 c0 01 	cmp  %i3, %g1                                  
 200bdb8:	32 bf ff f1 	bne,a   200bd7c <_Watchdog_Adjust+0x4c>        
 200bdbc:	b4 a6 80 1c 	subcc  %i2, %i4, %i2                           
        }                                                             
        break;                                                        
    }                                                                 
  }                                                                   
                                                                      
  _ISR_Enable( level );                                               
 200bdc0:	7f ff dc 60 	call  2002f40 <sparc_enable_interrupts>        
 200bdc4:	91 e8 00 08 	restore  %g0, %o0, %o0                         
   *       unmodified across that call.                               
   *                                                                  
   *       Till Straumann, 7/2003                                     
   */                                                                 
  if ( !_Chain_Is_empty( header ) ) {                                 
    switch ( direction ) {                                            
 200bdc8:	12 bf ff fe 	bne  200bdc0 <_Watchdog_Adjust+0x90>           <== NEVER TAKEN
 200bdcc:	01 00 00 00 	nop                                            
      case WATCHDOG_BACKWARD:                                         
        _Watchdog_First( header )->delta_interval += units;           
 200bdd0:	c4 00 60 10 	ld  [ %g1 + 0x10 ], %g2                        
 200bdd4:	b4 00 80 1a 	add  %g2, %i2, %i2                             
 200bdd8:	f4 20 60 10 	st  %i2, [ %g1 + 0x10 ]                        
        }                                                             
        break;                                                        
    }                                                                 
  }                                                                   
                                                                      
  _ISR_Enable( level );                                               
 200bddc:	7f ff dc 59 	call  2002f40 <sparc_enable_interrupts>        
 200bde0:	91 e8 00 08 	restore  %g0, %o0, %o0                         
        break;                                                        
      case WATCHDOG_FORWARD:                                          
        while ( units ) {                                             
          if ( units < _Watchdog_First( header )->delta_interval ) {  
            _Watchdog_First( header )->delta_interval -= units;       
            break;                                                    
 200bde4:	10 bf ff f7 	b  200bdc0 <_Watchdog_Adjust+0x90>             
 200bde8:	f8 20 60 10 	st  %i4, [ %g1 + 0x10 ]                        
                                                                      

0200a430 <_Watchdog_Remove>: */ Watchdog_States _Watchdog_Remove( Watchdog_Control *the_watchdog ) {
 200a430:	9d e3 bf a0 	save  %sp, -96, %sp                            
  ISR_Level         level;                                            
  Watchdog_States   previous_state;                                   
  Watchdog_Control *next_watchdog;                                    
                                                                      
  _ISR_Disable( level );                                              
 200a434:	7f ff df 6c 	call  20021e4 <sparc_disable_interrupts>       
 200a438:	01 00 00 00 	nop                                            
  previous_state = the_watchdog->state;                               
 200a43c:	fa 06 20 08 	ld  [ %i0 + 8 ], %i5                           
  switch ( previous_state ) {                                         
 200a440:	80 a7 60 01 	cmp  %i5, 1                                    
 200a444:	02 80 00 2a 	be  200a4ec <_Watchdog_Remove+0xbc>            
 200a448:	03 00 80 76 	sethi  %hi(0x201d800), %g1                     
 200a44c:	1a 80 00 09 	bcc  200a470 <_Watchdog_Remove+0x40>           
 200a450:	80 a7 60 03 	cmp  %i5, 3                                    
        _Watchdog_Sync_level = _ISR_Nest_level;                       
                                                                      
      _Chain_Extract_unprotected( &the_watchdog->Node );              
      break;                                                          
  }                                                                   
  the_watchdog->stop_time = _Watchdog_Ticks_since_boot;               
 200a454:	03 00 80 76 	sethi  %hi(0x201d800), %g1                     
 200a458:	c2 00 62 dc 	ld  [ %g1 + 0x2dc ], %g1	! 201dadc <_Watchdog_Ticks_since_boot>
 200a45c:	c2 26 20 18 	st  %g1, [ %i0 + 0x18 ]                        
                                                                      
  _ISR_Enable( level );                                               
 200a460:	7f ff df 65 	call  20021f4 <sparc_enable_interrupts>        
 200a464:	b0 10 00 1d 	mov  %i5, %i0                                  
  return( previous_state );                                           
}                                                                     
 200a468:	81 c7 e0 08 	ret                                            
 200a46c:	81 e8 00 00 	restore                                        
  Watchdog_States   previous_state;                                   
  Watchdog_Control *next_watchdog;                                    
                                                                      
  _ISR_Disable( level );                                              
  previous_state = the_watchdog->state;                               
  switch ( previous_state ) {                                         
 200a470:	18 bf ff fa 	bgu  200a458 <_Watchdog_Remove+0x28>           <== NEVER TAKEN
 200a474:	03 00 80 76 	sethi  %hi(0x201d800), %g1                     
  }                                                                   
  the_watchdog->stop_time = _Watchdog_Ticks_since_boot;               
                                                                      
  _ISR_Enable( level );                                               
  return( previous_state );                                           
}                                                                     
 200a478:	c2 06 00 00 	ld  [ %i0 ], %g1                               
      break;                                                          
                                                                      
    case WATCHDOG_ACTIVE:                                             
    case WATCHDOG_REMOVE_IT:                                          
                                                                      
      the_watchdog->state = WATCHDOG_INACTIVE;                        
 200a47c:	c0 26 20 08 	clr  [ %i0 + 8 ]                               
      next_watchdog = _Watchdog_Next( the_watchdog );                 
                                                                      
      if ( _Watchdog_Next(next_watchdog) )                            
 200a480:	c4 00 40 00 	ld  [ %g1 ], %g2                               
 200a484:	80 a0 a0 00 	cmp  %g2, 0                                    
 200a488:	02 80 00 07 	be  200a4a4 <_Watchdog_Remove+0x74>            
 200a48c:	05 00 80 76 	sethi  %hi(0x201d800), %g2                     
        next_watchdog->delta_interval += the_watchdog->delta_interval;
 200a490:	c6 00 60 10 	ld  [ %g1 + 0x10 ], %g3                        
 200a494:	c4 06 20 10 	ld  [ %i0 + 0x10 ], %g2                        
 200a498:	84 00 c0 02 	add  %g3, %g2, %g2                             
 200a49c:	c4 20 60 10 	st  %g2, [ %g1 + 0x10 ]                        
                                                                      
      if ( _Watchdog_Sync_count )                                     
 200a4a0:	05 00 80 76 	sethi  %hi(0x201d800), %g2                     
 200a4a4:	c4 00 a2 d8 	ld  [ %g2 + 0x2d8 ], %g2	! 201dad8 <_Watchdog_Sync_count>
 200a4a8:	80 a0 a0 00 	cmp  %g2, 0                                    
 200a4ac:	22 80 00 07 	be,a   200a4c8 <_Watchdog_Remove+0x98>         
 200a4b0:	c4 06 20 04 	ld  [ %i0 + 4 ], %g2                           
        _Watchdog_Sync_level = _ISR_Nest_level;                       
 200a4b4:	05 00 80 77 	sethi  %hi(0x201dc00), %g2                     
 200a4b8:	c6 00 a3 10 	ld  [ %g2 + 0x310 ], %g3	! 201df10 <_Per_CPU_Information+0x8>
 200a4bc:	05 00 80 76 	sethi  %hi(0x201d800), %g2                     
 200a4c0:	c6 20 a2 78 	st  %g3, [ %g2 + 0x278 ]	! 201da78 <_Watchdog_Sync_level>
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
 200a4c4:	c4 06 20 04 	ld  [ %i0 + 4 ], %g2                           
  next->previous = previous;                                          
 200a4c8:	c4 20 60 04 	st  %g2, [ %g1 + 4 ]                           
  previous->next = next;                                              
 200a4cc:	c2 20 80 00 	st  %g1, [ %g2 ]                               
                                                                      
      _Chain_Extract_unprotected( &the_watchdog->Node );              
      break;                                                          
  }                                                                   
  the_watchdog->stop_time = _Watchdog_Ticks_since_boot;               
 200a4d0:	03 00 80 76 	sethi  %hi(0x201d800), %g1                     
 200a4d4:	c2 00 62 dc 	ld  [ %g1 + 0x2dc ], %g1	! 201dadc <_Watchdog_Ticks_since_boot>
 200a4d8:	c2 26 20 18 	st  %g1, [ %i0 + 0x18 ]                        
                                                                      
  _ISR_Enable( level );                                               
 200a4dc:	7f ff df 46 	call  20021f4 <sparc_enable_interrupts>        
 200a4e0:	b0 10 00 1d 	mov  %i5, %i0                                  
  return( previous_state );                                           
}                                                                     
 200a4e4:	81 c7 e0 08 	ret                                            
 200a4e8:	81 e8 00 00 	restore                                        
        _Watchdog_Sync_level = _ISR_Nest_level;                       
                                                                      
      _Chain_Extract_unprotected( &the_watchdog->Node );              
      break;                                                          
  }                                                                   
  the_watchdog->stop_time = _Watchdog_Ticks_since_boot;               
 200a4ec:	c2 00 62 dc 	ld  [ %g1 + 0x2dc ], %g1                       
                                                                      
      /*                                                              
       *  It is not actually on the chain so just change the state and
       *  the Insert operation we interrupted will be aborted.        
       */                                                             
      the_watchdog->state = WATCHDOG_INACTIVE;                        
 200a4f0:	c0 26 20 08 	clr  [ %i0 + 8 ]                               
        _Watchdog_Sync_level = _ISR_Nest_level;                       
                                                                      
      _Chain_Extract_unprotected( &the_watchdog->Node );              
      break;                                                          
  }                                                                   
  the_watchdog->stop_time = _Watchdog_Ticks_since_boot;               
 200a4f4:	c2 26 20 18 	st  %g1, [ %i0 + 0x18 ]                        
                                                                      
  _ISR_Enable( level );                                               
 200a4f8:	7f ff df 3f 	call  20021f4 <sparc_enable_interrupts>        
 200a4fc:	b0 10 00 1d 	mov  %i5, %i0                                  
  return( previous_state );                                           
}                                                                     
 200a500:	81 c7 e0 08 	ret                                            
 200a504:	81 e8 00 00 	restore                                        
                                                                      

0200b54c <_Watchdog_Report_chain>: void _Watchdog_Report_chain( const char *name, Chain_Control *header ) {
 200b54c:	9d e3 bf a0 	save  %sp, -96, %sp                            
  ISR_Level          level;                                           
  Chain_Node        *node;                                            
                                                                      
  _ISR_Disable( level );                                              
 200b550:	7f ff dd 59 	call  2002ab4 <sparc_disable_interrupts>       
 200b554:	01 00 00 00 	nop                                            
 200b558:	ba 10 00 08 	mov  %o0, %i5                                  
    printk( "Watchdog Chain: %s %p\n", name, header );                
 200b55c:	11 00 80 75 	sethi  %hi(0x201d400), %o0                     
 200b560:	94 10 00 19 	mov  %i1, %o2                                  
 200b564:	92 10 00 18 	mov  %i0, %o1                                  
 200b568:	7f ff e4 6d 	call  200471c <printk>                         
 200b56c:	90 12 23 b0 	or  %o0, 0x3b0, %o0                            
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(        
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_head( the_chain )->next;                    
 200b570:	f8 06 40 00 	ld  [ %i1 ], %i4                               
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
 200b574:	b2 06 60 04 	add  %i1, 4, %i1                               
    if ( !_Chain_Is_empty( header ) ) {                               
 200b578:	80 a7 00 19 	cmp  %i4, %i1                                  
 200b57c:	02 80 00 0f 	be  200b5b8 <_Watchdog_Report_chain+0x6c>      
 200b580:	11 00 80 75 	sethi  %hi(0x201d400), %o0                     
            node != _Chain_Tail(header) ;                             
            node = node->next )                                       
      {                                                               
        Watchdog_Control *watch = (Watchdog_Control *) node;          
                                                                      
        _Watchdog_Report( NULL, watch );                              
 200b584:	92 10 00 1c 	mov  %i4, %o1                                  
 200b588:	40 00 00 0f 	call  200b5c4 <_Watchdog_Report>               
 200b58c:	90 10 20 00 	clr  %o0                                       
  _ISR_Disable( level );                                              
    printk( "Watchdog Chain: %s %p\n", name, header );                
    if ( !_Chain_Is_empty( header ) ) {                               
      for ( node = _Chain_First( header ) ;                           
            node != _Chain_Tail(header) ;                             
            node = node->next )                                       
 200b590:	f8 07 00 00 	ld  [ %i4 ], %i4                               
  Chain_Node        *node;                                            
                                                                      
  _ISR_Disable( level );                                              
    printk( "Watchdog Chain: %s %p\n", name, header );                
    if ( !_Chain_Is_empty( header ) ) {                               
      for ( node = _Chain_First( header ) ;                           
 200b594:	80 a7 00 19 	cmp  %i4, %i1                                  
 200b598:	12 bf ff fc 	bne  200b588 <_Watchdog_Report_chain+0x3c>     <== NEVER TAKEN
 200b59c:	92 10 00 1c 	mov  %i4, %o1                                  
      {                                                               
        Watchdog_Control *watch = (Watchdog_Control *) node;          
                                                                      
        _Watchdog_Report( NULL, watch );                              
      }                                                               
      printk( "== end of %s \n", name );                              
 200b5a0:	11 00 80 75 	sethi  %hi(0x201d400), %o0                     
 200b5a4:	92 10 00 18 	mov  %i0, %o1                                  
 200b5a8:	7f ff e4 5d 	call  200471c <printk>                         
 200b5ac:	90 12 23 c8 	or  %o0, 0x3c8, %o0                            
    } else {                                                          
      printk( "Chain is empty\n" );                                   
    }                                                                 
  _ISR_Enable( level );                                               
 200b5b0:	7f ff dd 45 	call  2002ac4 <sparc_enable_interrupts>        
 200b5b4:	91 e8 00 1d 	restore  %g0, %i5, %o0                         
                                                                      
        _Watchdog_Report( NULL, watch );                              
      }                                                               
      printk( "== end of %s \n", name );                              
    } else {                                                          
      printk( "Chain is empty\n" );                                   
 200b5b8:	7f ff e4 59 	call  200471c <printk>                         
 200b5bc:	90 12 23 d8 	or  %o0, 0x3d8, %o0                            
 200b5c0:	30 bf ff fc 	b,a   200b5b0 <_Watchdog_Report_chain+0x64>    
                                                                      

02007730 <_rename_r>: int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) {
 2007730:	9d e3 bf 58 	save  %sp, -168, %sp                           
                                                                      
  /*                                                                  
   *  Get the parent node of the old path to be renamed. Find the parent path.
   */                                                                 
                                                                      
  old_parent_pathlen = rtems_filesystem_dirname ( old );              
 2007734:	7f ff f9 ff 	call  2005f30 <rtems_filesystem_dirname>       
 2007738:	90 10 00 19 	mov  %i1, %o0                                  
                                                                      
  if ( old_parent_pathlen == 0 )                                      
 200773c:	80 a2 20 00 	cmp  %o0, 0                                    
 2007740:	12 80 00 2b 	bne  20077ec <_rename_r+0xbc>                  
 2007744:	b8 10 00 08 	mov  %o0, %i4                                  
    rtems_filesystem_get_start_loc( old, &i, &old_parent_loc );       
 2007748:	ba 07 bf d0 	add  %fp, -48, %i5                             
 200774c:	90 10 00 19 	mov  %i1, %o0                                  
 2007750:	92 07 bf f8 	add  %fp, -8, %o1                              
 2007754:	94 10 00 1d 	mov  %i5, %o2                                  
 2007758:	40 00 01 00 	call  2007b58 <rtems_filesystem_get_start_loc> 
 200775c:	b8 10 20 00 	clr  %i4                                       
  rtems_filesystem_location_info_t    old_parent_loc;                 
  rtems_filesystem_location_info_t    new_parent_loc;                 
  int                                 i;                              
  int                                 result;                         
  const char                         *name;                           
  bool                                free_old_parentloc = false;     
 2007760:	b6 10 20 00 	clr  %i3                                       
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  old_loc = old_parent_loc;                                           
 2007764:	c2 07 bf d0 	ld  [ %fp + -48 ], %g1                         
  name = old + old_parent_pathlen;                                    
 2007768:	b2 06 40 1c 	add  %i1, %i4, %i1                             
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  old_loc = old_parent_loc;                                           
 200776c:	c2 27 bf bc 	st  %g1, [ %fp + -68 ]                         
 2007770:	c2 07 bf d4 	ld  [ %fp + -44 ], %g1                         
  name = old + old_parent_pathlen;                                    
 2007774:	f2 27 bf fc 	st  %i1, [ %fp + -4 ]                          
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  old_loc = old_parent_loc;                                           
 2007778:	c2 27 bf c0 	st  %g1, [ %fp + -64 ]                         
 200777c:	c2 07 bf d8 	ld  [ %fp + -40 ], %g1                         
  name = old + old_parent_pathlen;                                    
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
 2007780:	90 10 00 19 	mov  %i1, %o0                                  
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  old_loc = old_parent_loc;                                           
 2007784:	c2 27 bf c4 	st  %g1, [ %fp + -60 ]                         
 2007788:	c2 07 bf dc 	ld  [ %fp + -36 ], %g1                         
 200778c:	c2 27 bf c8 	st  %g1, [ %fp + -56 ]                         
 2007790:	c2 07 bf e0 	ld  [ %fp + -32 ], %g1                         
  name = old + old_parent_pathlen;                                    
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
 2007794:	40 00 3d c8 	call  2016eb4 <strlen>                         
 2007798:	c2 27 bf cc 	st  %g1, [ %fp + -52 ]                         
 200779c:	92 10 00 08 	mov  %o0, %o1                                  
 20077a0:	7f ff f9 f3 	call  2005f6c <rtems_filesystem_prefix_separators>
 20077a4:	90 10 00 19 	mov  %i1, %o0                                  
 20077a8:	b2 06 40 08 	add  %i1, %o0, %i1                             
 20077ac:	f2 27 bf fc 	st  %i1, [ %fp + -4 ]                          
                                                                      
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
 20077b0:	40 00 3d c1 	call  2016eb4 <strlen>                         
 20077b4:	90 10 00 19 	mov  %i1, %o0                                  
 20077b8:	94 10 20 00 	clr  %o2                                       
 20077bc:	92 10 00 08 	mov  %o0, %o1                                  
 20077c0:	96 07 bf bc 	add  %fp, -68, %o3                             
 20077c4:	90 10 00 19 	mov  %i1, %o0                                  
 20077c8:	7f ff f9 ae 	call  2005e80 <rtems_filesystem_evaluate_relative_path>
 20077cc:	98 10 20 00 	clr  %o4                                       
                                                    0, &old_loc, false );
  if ( result != 0 ) {                                                
 20077d0:	80 a2 20 00 	cmp  %o0, 0                                    
 20077d4:	02 80 00 17 	be  2007830 <_rename_r+0x100>                  
 20077d8:	80 8e e0 ff 	btst  0xff, %i3                                
    if ( free_old_parentloc )                                         
 20077dc:	12 80 00 11 	bne  2007820 <_rename_r+0xf0>                  <== ALWAYS TAKEN
 20077e0:	b0 10 3f ff 	mov  -1, %i0                                   
  if ( free_old_parentloc )                                           
    rtems_filesystem_freenode( &old_parent_loc );                     
  rtems_filesystem_freenode( &old_loc );                              
                                                                      
  return result;                                                      
}                                                                     
 20077e4:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 20077e8:	81 e8 00 00 	restore                                        <== NOT EXECUTED
  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, 
 20077ec:	ba 07 bf d0 	add  %fp, -48, %i5                             
 20077f0:	90 10 00 19 	mov  %i1, %o0                                  
 20077f4:	92 10 00 1c 	mov  %i4, %o1                                  
 20077f8:	94 10 20 02 	mov  2, %o2                                    
 20077fc:	96 10 00 1d 	mov  %i5, %o3                                  
 2007800:	98 10 20 00 	clr  %o4                                       
 2007804:	7f ff f9 bc 	call  2005ef4 <rtems_filesystem_evaluate_path> 
 2007808:	b0 10 3f ff 	mov  -1, %i0                                   
                                             RTEMS_LIBIO_PERMS_WRITE, 
                                             &old_parent_loc,         
                                             false );                 
    if ( result != 0 )                                                
 200780c:	80 a2 20 00 	cmp  %o0, 0                                    
 2007810:	12 bf ff f5 	bne  20077e4 <_rename_r+0xb4>                  <== NEVER TAKEN
 2007814:	b6 10 20 01 	mov  1, %i3                                    
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  old_loc = old_parent_loc;                                           
 2007818:	10 bf ff d4 	b  2007768 <_rename_r+0x38>                    
 200781c:	c2 07 bf d0 	ld  [ %fp + -48 ], %g1                         
                                                                      
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
                                                    0, &old_loc, false );
  if ( result != 0 ) {                                                
    if ( free_old_parentloc )                                         
      rtems_filesystem_freenode( &old_parent_loc );                   
 2007820:	7f ff fa 7c 	call  2006210 <rtems_filesystem_freenode>      
 2007824:	90 10 00 1d 	mov  %i5, %o0                                  
 2007828:	81 c7 e0 08 	ret                                            
 200782c:	81 e8 00 00 	restore                                        
                                                                      
  /*                                                                  
   * Get the parent of the new node we are renaming to.               
   */                                                                 
                                                                      
  rtems_filesystem_get_start_loc( new, &i, &new_parent_loc );         
 2007830:	90 10 00 1a 	mov  %i2, %o0                                  
 2007834:	92 07 bf f8 	add  %fp, -8, %o1                              
 2007838:	40 00 00 c8 	call  2007b58 <rtems_filesystem_get_start_loc> 
 200783c:	94 07 bf e4 	add  %fp, -28, %o2                             
                                                                      
  result = (*new_parent_loc.ops->evalformake_h)( &new[i], &new_parent_loc, &name );
 2007840:	c2 07 bf f0 	ld  [ %fp + -16 ], %g1                         
 2007844:	d0 07 bf f8 	ld  [ %fp + -8 ], %o0                          
 2007848:	c2 00 60 04 	ld  [ %g1 + 4 ], %g1                           
 200784c:	90 06 80 08 	add  %i2, %o0, %o0                             
 2007850:	92 07 bf e4 	add  %fp, -28, %o1                             
 2007854:	9f c0 40 00 	call  %g1                                      
 2007858:	94 07 bf fc 	add  %fp, -4, %o2                              
  if ( result != 0 ) {                                                
 200785c:	80 a2 20 00 	cmp  %o0, 0                                    
 2007860:	12 80 00 29 	bne  2007904 <_rename_r+0x1d4>                 
 2007864:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         
  /*                                                                  
   *  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 ) {         
 2007868:	c4 07 bf e0 	ld  [ %fp + -32 ], %g2                         
 200786c:	80 a0 80 01 	cmp  %g2, %g1                                  
 2007870:	12 80 00 15 	bne  20078c4 <_rename_r+0x194>                 
 2007874:	c2 07 bf f0 	ld  [ %fp + -16 ], %g1                         
      rtems_filesystem_freenode( &old_parent_loc );                   
    rtems_filesystem_freenode( &old_loc );                            
    rtems_set_errno_and_return_minus_one( EXDEV );                    
  }                                                                   
                                                                      
  result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name );
 2007878:	d6 07 bf fc 	ld  [ %fp + -4 ], %o3                          
 200787c:	c2 00 60 40 	ld  [ %g1 + 0x40 ], %g1                        
 2007880:	92 07 bf bc 	add  %fp, -68, %o1                             
 2007884:	94 07 bf e4 	add  %fp, -28, %o2                             
 2007888:	9f c0 40 00 	call  %g1                                      
 200788c:	90 10 00 1d 	mov  %i5, %o0                                  
 2007890:	b0 10 00 08 	mov  %o0, %i0                                  
                                                                      
  rtems_filesystem_freenode( &new_parent_loc );                       
 2007894:	7f ff fa 5f 	call  2006210 <rtems_filesystem_freenode>      
 2007898:	90 07 bf e4 	add  %fp, -28, %o0                             
  if ( free_old_parentloc )                                           
 200789c:	80 8e e0 ff 	btst  0xff, %i3                                
 20078a0:	12 80 00 06 	bne  20078b8 <_rename_r+0x188>                 
 20078a4:	01 00 00 00 	nop                                            
    rtems_filesystem_freenode( &old_parent_loc );                     
  rtems_filesystem_freenode( &old_loc );                              
 20078a8:	7f ff fa 5a 	call  2006210 <rtems_filesystem_freenode>      
 20078ac:	90 07 bf bc 	add  %fp, -68, %o0                             
                                                                      
  return result;                                                      
}                                                                     
 20078b0:	81 c7 e0 08 	ret                                            
 20078b4:	81 e8 00 00 	restore                                        
                                                                      
  result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name );
                                                                      
  rtems_filesystem_freenode( &new_parent_loc );                       
  if ( free_old_parentloc )                                           
    rtems_filesystem_freenode( &old_parent_loc );                     
 20078b8:	7f ff fa 56 	call  2006210 <rtems_filesystem_freenode>      
 20078bc:	90 10 00 1d 	mov  %i5, %o0                                  
 20078c0:	30 bf ff fa 	b,a   20078a8 <_rename_r+0x178>                
   *  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 ) {         
    rtems_filesystem_freenode( &new_parent_loc );                     
 20078c4:	7f ff fa 53 	call  2006210 <rtems_filesystem_freenode>      
 20078c8:	90 07 bf e4 	add  %fp, -28, %o0                             
    if ( free_old_parentloc )                                         
 20078cc:	80 8e e0 ff 	btst  0xff, %i3                                
 20078d0:	12 80 00 0a 	bne  20078f8 <_rename_r+0x1c8>                 
 20078d4:	01 00 00 00 	nop                                            
      rtems_filesystem_freenode( &old_parent_loc );                   
    rtems_filesystem_freenode( &old_loc );                            
 20078d8:	7f ff fa 4e 	call  2006210 <rtems_filesystem_freenode>      
 20078dc:	90 07 bf bc 	add  %fp, -68, %o0                             
    rtems_set_errno_and_return_minus_one( EXDEV );                    
 20078e0:	40 00 30 10 	call  2013920 <__errno>                        
 20078e4:	b0 10 3f ff 	mov  -1, %i0                                   
 20078e8:	82 10 20 12 	mov  0x12, %g1                                 
 20078ec:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 20078f0:	81 c7 e0 08 	ret                                            
 20078f4:	81 e8 00 00 	restore                                        
   */                                                                 
                                                                      
  if ( old_parent_loc.mt_entry != new_parent_loc.mt_entry ) {         
    rtems_filesystem_freenode( &new_parent_loc );                     
    if ( free_old_parentloc )                                         
      rtems_filesystem_freenode( &old_parent_loc );                   
 20078f8:	7f ff fa 46 	call  2006210 <rtems_filesystem_freenode>      
 20078fc:	90 10 00 1d 	mov  %i5, %o0                                  
 2007900:	30 bf ff f6 	b,a   20078d8 <_rename_r+0x1a8>                
                                                                      
  rtems_filesystem_get_start_loc( new, &i, &new_parent_loc );         
                                                                      
  result = (*new_parent_loc.ops->evalformake_h)( &new[i], &new_parent_loc, &name );
  if ( result != 0 ) {                                                
    rtems_filesystem_freenode( &new_parent_loc );                     
 2007904:	7f ff fa 43 	call  2006210 <rtems_filesystem_freenode>      
 2007908:	90 07 bf e4 	add  %fp, -28, %o0                             
    if ( free_old_parentloc )                                         
 200790c:	80 8e e0 ff 	btst  0xff, %i3                                
 2007910:	02 80 00 05 	be  2007924 <_rename_r+0x1f4>                  <== NEVER TAKEN
 2007914:	90 07 bf bc 	add  %fp, -68, %o0                             
      rtems_filesystem_freenode( &old_parent_loc );                   
 2007918:	7f ff fa 3e 	call  2006210 <rtems_filesystem_freenode>      
 200791c:	90 10 00 1d 	mov  %i5, %o0                                  
    rtems_filesystem_freenode( &old_loc );                            
 2007920:	90 07 bf bc 	add  %fp, -68, %o0                             
 2007924:	7f ff fa 3b 	call  2006210 <rtems_filesystem_freenode>      
 2007928:	b0 10 3f ff 	mov  -1, %i0                                   
    return -1;                                                        
 200792c:	81 c7 e0 08 	ret                                            
 2007930:	81 e8 00 00 	restore                                        
                                                                      

0200645c <adjtime>: int adjtime( struct timeval *delta, struct timeval *olddelta ) {
 200645c:	9d e3 bf 98 	save  %sp, -104, %sp                           
  long   adjustment;                                                  
                                                                      
  /*                                                                  
   * Simple validations                                               
   */                                                                 
  if ( !delta )                                                       
 2006460:	ba 96 20 00 	orcc  %i0, 0, %i5                              
 2006464:	02 80 00 54 	be  20065b4 <adjtime+0x158>                    
 2006468:	03 00 03 d0 	sethi  %hi(0xf4000), %g1                       
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( delta->tv_usec >= TOD_MICROSECONDS_PER_SECOND )                
 200646c:	c4 07 60 04 	ld  [ %i5 + 4 ], %g2                           
 2006470:	82 10 62 3f 	or  %g1, 0x23f, %g1                            
 2006474:	80 a0 80 01 	cmp  %g2, %g1                                  
 2006478:	18 80 00 4f 	bgu  20065b4 <adjtime+0x158>                   
 200647c:	80 a6 60 00 	cmp  %i1, 0                                    
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( olddelta ) {                                                   
 2006480:	22 80 00 06 	be,a   2006498 <adjtime+0x3c>                  
 2006484:	c2 07 40 00 	ld  [ %i5 ], %g1                               
    olddelta->tv_sec  = 0;                                            
    olddelta->tv_usec = 0;                                            
 2006488:	c0 26 60 04 	clr  [ %i1 + 4 ]                               
 200648c:	c4 07 60 04 	ld  [ %i5 + 4 ], %g2                           
                                                                      
  if ( delta->tv_usec >= TOD_MICROSECONDS_PER_SECOND )                
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( olddelta ) {                                                   
    olddelta->tv_sec  = 0;                                            
 2006490:	c0 26 40 00 	clr  [ %i1 ]                                   
    olddelta->tv_usec = 0;                                            
  }                                                                   
                                                                      
  /* convert delta to microseconds */                                 
  adjustment  = (delta->tv_sec * TOD_MICROSECONDS_PER_SECOND);        
 2006494:	c2 07 40 00 	ld  [ %i5 ], %g1                               
  adjustment += delta->tv_usec;                                       
                                                                      
  /* too small to account for */                                      
  if ( adjustment < rtems_configuration_get_microseconds_per_tick() ) 
 2006498:	07 00 80 62 	sethi  %hi(0x2018800), %g3                     
 200649c:	c8 00 e3 28 	ld  [ %g3 + 0x328 ], %g4	! 2018b28 <Configuration+0xc>
    olddelta->tv_sec  = 0;                                            
    olddelta->tv_usec = 0;                                            
  }                                                                   
                                                                      
  /* convert delta to microseconds */                                 
  adjustment  = (delta->tv_sec * TOD_MICROSECONDS_PER_SECOND);        
 20064a0:	9f 28 60 08 	sll  %g1, 8, %o7                               
 20064a4:	87 28 60 03 	sll  %g1, 3, %g3                               
 20064a8:	86 23 c0 03 	sub  %o7, %g3, %g3                             
 20064ac:	9f 28 e0 06 	sll  %g3, 6, %o7                               
 20064b0:	86 23 c0 03 	sub  %o7, %g3, %g3                             
 20064b4:	82 00 c0 01 	add  %g3, %g1, %g1                             
 20064b8:	83 28 60 06 	sll  %g1, 6, %g1                               
  adjustment += delta->tv_usec;                                       
 20064bc:	84 00 40 02 	add  %g1, %g2, %g2                             
                                                                      
  /* too small to account for */                                      
  if ( adjustment < rtems_configuration_get_microseconds_per_tick() ) 
 20064c0:	80 a0 80 04 	cmp  %g2, %g4                                  
 20064c4:	0a 80 00 3a 	bcs  20065ac <adjtime+0x150>                   
 20064c8:	b0 10 20 00 	clr  %i0                                       
   *                                                                  
   * This rountine increments the thread dispatch level               
   */                                                                 
  RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
  {                                                                   
    _Thread_Dispatch_disable_level++;                                 
 20064cc:	03 00 80 66 	sethi  %hi(0x2019800), %g1                     
 20064d0:	c4 00 61 80 	ld  [ %g1 + 0x180 ], %g2	! 2019980 <_Thread_Dispatch_disable_level>
 20064d4:	84 00 a0 01 	inc  %g2                                       
 20064d8:	c4 20 61 80 	st  %g2, [ %g1 + 0x180 ]                       
    return _Thread_Dispatch_disable_level;                            
 20064dc:	c2 00 61 80 	ld  [ %g1 + 0x180 ], %g1                       
   * This prevents context switches while we are adjusting the TOD    
   */                                                                 
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
    _TOD_Get( &ts );                                                  
 20064e0:	40 00 06 70 	call  2007ea0 <_TOD_Get>                       
 20064e4:	90 07 bf f8 	add  %fp, -8, %o0                              
                                                                      
    ts.tv_sec  += delta->tv_sec;                                      
    ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND;   
 20064e8:	c2 07 60 04 	ld  [ %i5 + 4 ], %g1                           
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
    _TOD_Get( &ts );                                                  
                                                                      
    ts.tv_sec  += delta->tv_sec;                                      
 20064ec:	c8 07 bf f8 	ld  [ %fp + -8 ], %g4                          
 20064f0:	c4 07 40 00 	ld  [ %i5 ], %g2                               
    ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND;   
 20064f4:	87 28 60 02 	sll  %g1, 2, %g3                               
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
    _TOD_Get( &ts );                                                  
                                                                      
    ts.tv_sec  += delta->tv_sec;                                      
 20064f8:	84 01 00 02 	add  %g4, %g2, %g2                             
    ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND;   
 20064fc:	89 28 60 07 	sll  %g1, 7, %g4                               
 2006500:	86 21 00 03 	sub  %g4, %g3, %g3                             
 2006504:	82 00 c0 01 	add  %g3, %g1, %g1                             
 2006508:	c6 07 bf fc 	ld  [ %fp + -4 ], %g3                          
 200650c:	83 28 60 03 	sll  %g1, 3, %g1                               
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
    _TOD_Get( &ts );                                                  
                                                                      
    ts.tv_sec  += delta->tv_sec;                                      
 2006510:	c4 27 bf f8 	st  %g2, [ %fp + -8 ]                          
    ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND;   
 2006514:	82 00 40 03 	add  %g1, %g3, %g1                             
                                                                      
    /* if adjustment is too much positive */                          
    while ( ts.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {              
 2006518:	07 0e e6 b2 	sethi  %hi(0x3b9ac800), %g3                    
 200651c:	86 10 e1 ff 	or  %g3, 0x1ff, %g3	! 3b9ac9ff <RAM_END+0x395ac9ff>
 2006520:	80 a0 40 03 	cmp  %g1, %g3                                  
 2006524:	08 80 00 0a 	bleu  200654c <adjtime+0xf0>                   
 2006528:	c2 27 bf fc 	st  %g1, [ %fp + -4 ]                          
      ts.tv_nsec -= TOD_NANOSECONDS_PER_SECOND;                       
 200652c:	09 31 19 4d 	sethi  %hi(0xc4653400), %g4                    
 2006530:	88 11 22 00 	or  %g4, 0x200, %g4	! c4653600 <RAM_END+0xc2253600>
 2006534:	82 00 40 04 	add  %g1, %g4, %g1                             
                                                                      
    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 ) {              
 2006538:	80 a0 40 03 	cmp  %g1, %g3                                  
 200653c:	18 bf ff fe 	bgu  2006534 <adjtime+0xd8>                    <== NEVER TAKEN
 2006540:	84 00 a0 01 	inc  %g2                                       
 2006544:	c2 27 bf fc 	st  %g1, [ %fp + -4 ]                          
 2006548:	c4 27 bf f8 	st  %g2, [ %fp + -8 ]                          
      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) ) {       
 200654c:	09 31 19 4d 	sethi  %hi(0xc4653400), %g4                    
 2006550:	88 11 22 00 	or  %g4, 0x200, %g4	! c4653600 <RAM_END+0xc2253600>
 2006554:	80 a0 40 04 	cmp  %g1, %g4                                  
 2006558:	18 80 00 0a 	bgu  2006580 <adjtime+0x124>                   <== NEVER TAKEN
 200655c:	c4 07 bf f8 	ld  [ %fp + -8 ], %g2                          
      ts.tv_nsec += TOD_NANOSECONDS_PER_SECOND;                       
 2006560:	07 0e e6 b2 	sethi  %hi(0x3b9ac800), %g3                    
 2006564:	86 10 e2 00 	or  %g3, 0x200, %g3	! 3b9aca00 <RAM_END+0x395aca00>
 2006568:	82 00 40 03 	add  %g1, %g3, %g1                             
      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) ) {       
 200656c:	80 a0 40 04 	cmp  %g1, %g4                                  
 2006570:	08 bf ff fe 	bleu  2006568 <adjtime+0x10c>                  
 2006574:	84 00 bf ff 	add  %g2, -1, %g2                              
 2006578:	c2 27 bf fc 	st  %g1, [ %fp + -4 ]                          
 200657c:	c4 27 bf f8 	st  %g2, [ %fp + -8 ]                          
      ts.tv_nsec += TOD_NANOSECONDS_PER_SECOND;                       
      ts.tv_sec--;                                                    
    }                                                                 
                                                                      
    _TOD_Set( &ts );                                                  
 2006580:	40 00 06 72 	call  2007f48 <_TOD_Set>                       
 2006584:	90 07 bf f8 	add  %fp, -8, %o0                              
                                                                      
  _Thread_Enable_dispatch();                                          
 2006588:	40 00 0d 0f 	call  20099c4 <_Thread_Enable_dispatch>        
 200658c:	b0 10 20 00 	clr  %i0                                       
                                                                      
  /* set the user's output */                                         
  if ( olddelta )                                                     
 2006590:	80 a6 60 00 	cmp  %i1, 0                                    
 2006594:	02 80 00 0c 	be  20065c4 <adjtime+0x168>                    
 2006598:	01 00 00 00 	nop                                            
    *olddelta = *delta;                                               
 200659c:	c2 07 40 00 	ld  [ %i5 ], %g1                               
 20065a0:	c2 26 40 00 	st  %g1, [ %i1 ]                               
 20065a4:	c2 07 60 04 	ld  [ %i5 + 4 ], %g1                           
 20065a8:	c2 26 60 04 	st  %g1, [ %i1 + 4 ]                           
                                                                      
  return 0;                                                           
}                                                                     
 20065ac:	81 c7 e0 08 	ret                                            
 20065b0:	81 e8 00 00 	restore                                        
   */                                                                 
  if ( !delta )                                                       
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( delta->tv_usec >= TOD_MICROSECONDS_PER_SECOND )                
    rtems_set_errno_and_return_minus_one( EINVAL );                   
 20065b4:	40 00 26 c3 	call  20100c0 <__errno>                        
 20065b8:	b0 10 3f ff 	mov  -1, %i0                                   
 20065bc:	82 10 20 16 	mov  0x16, %g1                                 
 20065c0:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 20065c4:	81 c7 e0 08 	ret                                            
 20065c8:	81 e8 00 00 	restore                                        
                                                                      

02006cc8 <aio_cancel>: * operation(s) cannot be canceled */ int aio_cancel(int fildes, struct aiocb *aiocbp) {
 2006cc8:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_aio_request_chain *r_chain;                                   
  int result;                                                         
                                                                      
  pthread_mutex_lock (&aio_request_queue.mutex);                      
 2006ccc:	3b 00 80 67 	sethi  %hi(0x2019c00), %i5                     
 2006cd0:	40 00 04 91 	call  2007f14 <pthread_mutex_lock>             
 2006cd4:	90 17 60 0c 	or  %i5, 0xc, %o0	! 2019c0c <aio_request_queue>
                                                                      
  if (fcntl (fildes, F_GETFD) < 0) {                                  
 2006cd8:	90 10 00 18 	mov  %i0, %o0                                  
 2006cdc:	40 00 1e 9c 	call  200e74c <fcntl>                          
 2006ce0:	92 10 20 01 	mov  1, %o1                                    
 2006ce4:	80 a2 20 00 	cmp  %o0, 0                                    
 2006ce8:	06 80 00 6c 	bl  2006e98 <aio_cancel+0x1d0>                 
 2006cec:	80 a6 60 00 	cmp  %i1, 0                                    
    pthread_mutex_unlock(&aio_request_queue.mutex);                   
    rtems_set_errno_and_return_minus_one (EBADF);                     
  }                                                                   
                                                                      
  /* if aiocbp is NULL remove all request for given file descriptor */
  if (aiocbp == NULL) {                                               
 2006cf0:	02 80 00 3b 	be  2006ddc <aio_cancel+0x114>                 
 2006cf4:	92 10 00 18 	mov  %i0, %o1                                  
    pthread_mutex_unlock (&aio_request_queue.mutex);                  
    return AIO_CANCELED;                                              
  } else {                                                            
    AIO_printf ("Cancel request\n");                                  
                                                                      
    if (aiocbp->aio_fildes != fildes) {                               
 2006cf8:	f8 06 40 00 	ld  [ %i1 ], %i4                               
 2006cfc:	80 a7 00 18 	cmp  %i4, %i0                                  
 2006d00:	12 80 00 2f 	bne  2006dbc <aio_cancel+0xf4>                 
 2006d04:	90 17 60 0c 	or  %i5, 0xc, %o0                              
      pthread_mutex_unlock (&aio_request_queue.mutex);                
      rtems_set_errno_and_return_minus_one (EINVAL);                  
    }                                                                 
                                                                      
    r_chain = rtems_aio_search_fd (&aio_request_queue.work_req, fildes, 0);
 2006d08:	92 10 00 1c 	mov  %i4, %o1                                  
 2006d0c:	11 00 80 67 	sethi  %hi(0x2019c00), %o0                     
 2006d10:	94 10 20 00 	clr  %o2                                       
 2006d14:	40 00 00 cc 	call  2007044 <rtems_aio_search_fd>            
 2006d18:	90 12 20 54 	or  %o0, 0x54, %o0                             
    if (r_chain == NULL) {                                            
 2006d1c:	b0 92 20 00 	orcc  %o0, 0, %i0                              
 2006d20:	22 80 00 0f 	be,a   2006d5c <aio_cancel+0x94>               
 2006d24:	ba 17 60 0c 	or  %i5, 0xc, %i5                              
        return AIO_ALLDONE;                                           
      }                                                               
    }                                                                 
      AIO_printf ("Request on [WQ]\n");                               
                                                                      
      pthread_mutex_lock (&r_chain->mutex);                           
 2006d28:	b8 06 20 1c 	add  %i0, 0x1c, %i4                            
 2006d2c:	40 00 04 7a 	call  2007f14 <pthread_mutex_lock>             
 2006d30:	90 10 00 1c 	mov  %i4, %o0                                  
      result = rtems_aio_remove_req (&r_chain->perfd, aiocbp);        
 2006d34:	92 10 00 19 	mov  %i1, %o1                                  
 2006d38:	40 00 01 e4 	call  20074c8 <rtems_aio_remove_req>           
 2006d3c:	90 06 20 08 	add  %i0, 8, %o0                               
 2006d40:	b0 10 00 08 	mov  %o0, %i0                                  
      pthread_mutex_unlock (&r_chain->mutex);                         
 2006d44:	40 00 04 94 	call  2007f94 <pthread_mutex_unlock>           
 2006d48:	90 10 00 1c 	mov  %i4, %o0                                  
      pthread_mutex_unlock (&aio_request_queue.mutex);                
 2006d4c:	40 00 04 92 	call  2007f94 <pthread_mutex_unlock>           
 2006d50:	90 17 60 0c 	or  %i5, 0xc, %o0                              
      return result;                                                  
  }                                                                   
  return AIO_ALLDONE;                                                 
}                                                                     
 2006d54:	81 c7 e0 08 	ret                                            
 2006d58:	81 e8 00 00 	restore                                        
      rtems_set_errno_and_return_minus_one (EINVAL);                  
    }                                                                 
                                                                      
    r_chain = rtems_aio_search_fd (&aio_request_queue.work_req, fildes, 0);
    if (r_chain == NULL) {                                            
      if (!rtems_chain_is_empty (&aio_request_queue.idle_req)) {      
 2006d5c:	c4 07 60 54 	ld  [ %i5 + 0x54 ], %g2                        
 2006d60:	82 07 60 58 	add  %i5, 0x58, %g1                            
 2006d64:	80 a0 80 01 	cmp  %g2, %g1                                  
 2006d68:	02 80 00 0f 	be  2006da4 <aio_cancel+0xdc>                  <== NEVER TAKEN
 2006d6c:	90 07 60 54 	add  %i5, 0x54, %o0                            
        r_chain = rtems_aio_search_fd (&aio_request_queue.idle_req, fildes, 0);
 2006d70:	92 10 00 1c 	mov  %i4, %o1                                  
 2006d74:	40 00 00 b4 	call  2007044 <rtems_aio_search_fd>            
 2006d78:	94 10 20 00 	clr  %o2                                       
        if (r_chain == NULL) {                                        
 2006d7c:	80 a2 20 00 	cmp  %o0, 0                                    
 2006d80:	02 80 00 0e 	be  2006db8 <aio_cancel+0xf0>                  
 2006d84:	92 10 00 19 	mov  %i1, %o1                                  
          rtems_set_errno_and_return_minus_one (EINVAL);              
        }                                                             
                                                                      
        AIO_printf ("Request on [IQ]\n");                             
                                                                      
        result = rtems_aio_remove_req (&r_chain->perfd, aiocbp);      
 2006d88:	40 00 01 d0 	call  20074c8 <rtems_aio_remove_req>           
 2006d8c:	90 02 20 08 	add  %o0, 8, %o0                               
 2006d90:	b0 10 00 08 	mov  %o0, %i0                                  
        pthread_mutex_unlock (&aio_request_queue.mutex);              
 2006d94:	40 00 04 80 	call  2007f94 <pthread_mutex_unlock>           
 2006d98:	90 10 00 1d 	mov  %i5, %o0                                  
        return result;                                                
 2006d9c:	81 c7 e0 08 	ret                                            
 2006da0:	81 e8 00 00 	restore                                        
      } else {                                                        
        pthread_mutex_unlock (&aio_request_queue.mutex);              
 2006da4:	90 10 00 1d 	mov  %i5, %o0                                  <== NOT EXECUTED
 2006da8:	40 00 04 7b 	call  2007f94 <pthread_mutex_unlock>           
 2006dac:	b0 10 20 02 	mov  2, %i0                                    
        return AIO_ALLDONE;                                           
 2006db0:	81 c7 e0 08 	ret                                            
 2006db4:	81 e8 00 00 	restore                                        
    r_chain = rtems_aio_search_fd (&aio_request_queue.work_req, fildes, 0);
    if (r_chain == NULL) {                                            
      if (!rtems_chain_is_empty (&aio_request_queue.idle_req)) {      
        r_chain = rtems_aio_search_fd (&aio_request_queue.idle_req, fildes, 0);
        if (r_chain == NULL) {                                        
          pthread_mutex_unlock (&aio_request_queue.mutex);            
 2006db8:	90 10 00 1d 	mov  %i5, %o0                                  
 2006dbc:	40 00 04 76 	call  2007f94 <pthread_mutex_unlock>           
 2006dc0:	b0 10 3f ff 	mov  -1, %i0                                   
          rtems_set_errno_and_return_minus_one (EINVAL);              
 2006dc4:	40 00 2c ac 	call  2012074 <__errno>                        
 2006dc8:	01 00 00 00 	nop                                            
 2006dcc:	82 10 20 16 	mov  0x16, %g1	! 16 <PROM_START+0x16>          
 2006dd0:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2006dd4:	81 c7 e0 08 	ret                                            
 2006dd8:	81 e8 00 00 	restore                                        
                                                                      
  /* if aiocbp is NULL remove all request for given file descriptor */
  if (aiocbp == NULL) {                                               
    AIO_printf ("Cancel all requests\n");                             
                                                                      
    r_chain = rtems_aio_search_fd (&aio_request_queue.work_req, fildes, 0);
 2006ddc:	11 00 80 67 	sethi  %hi(0x2019c00), %o0                     
 2006de0:	94 10 20 00 	clr  %o2                                       
 2006de4:	40 00 00 98 	call  2007044 <rtems_aio_search_fd>            
 2006de8:	90 12 20 54 	or  %o0, 0x54, %o0                             
    if (r_chain == NULL) {                                            
 2006dec:	b8 92 20 00 	orcc  %o0, 0, %i4                              
 2006df0:	02 80 00 0f 	be  2006e2c <aio_cancel+0x164>                 
 2006df4:	b2 07 20 1c 	add  %i4, 0x1c, %i1                            
      return AIO_ALLDONE;                                             
    }                                                                 
                                                                      
    AIO_printf ("Request chain on [WQ]\n");                           
                                                                      
    pthread_mutex_lock (&r_chain->mutex);                             
 2006df8:	40 00 04 47 	call  2007f14 <pthread_mutex_lock>             
 2006dfc:	90 10 00 19 	mov  %i1, %o0                                  
 */                                                                   
RTEMS_INLINE_ROUTINE void rtems_chain_extract(                        
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Extract( the_node );                                         
 2006e00:	40 00 0b 08 	call  2009a20 <_Chain_Extract>                 
 2006e04:	90 10 00 1c 	mov  %i4, %o0                                  
    rtems_chain_extract (&r_chain->next_fd);                          
    rtems_aio_remove_fd (r_chain);                                    
 2006e08:	40 00 01 9c 	call  2007478 <rtems_aio_remove_fd>            
 2006e0c:	90 10 00 1c 	mov  %i4, %o0                                  
    pthread_mutex_unlock (&r_chain->mutex);                           
 2006e10:	40 00 04 61 	call  2007f94 <pthread_mutex_unlock>           
 2006e14:	90 10 00 19 	mov  %i1, %o0                                  
    pthread_mutex_unlock (&aio_request_queue.mutex);                  
 2006e18:	90 17 60 0c 	or  %i5, 0xc, %o0                              
 2006e1c:	40 00 04 5e 	call  2007f94 <pthread_mutex_unlock>           
 2006e20:	b0 10 20 00 	clr  %i0                                       
    return AIO_CANCELED;                                              
 2006e24:	81 c7 e0 08 	ret                                            
 2006e28:	81 e8 00 00 	restore                                        
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(        
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_head( the_chain )->next;                    
 2006e2c:	ba 17 60 0c 	or  %i5, 0xc, %i5                              
                                                                      
    r_chain = rtems_aio_search_fd (&aio_request_queue.work_req, fildes, 0);
    if (r_chain == NULL) {                                            
      AIO_printf ("Request chain not on [WQ]\n");                     
                                                                      
      if (!rtems_chain_is_empty (&aio_request_queue.idle_req)) {      
 2006e30:	c4 07 60 54 	ld  [ %i5 + 0x54 ], %g2                        
 2006e34:	82 07 60 58 	add  %i5, 0x58, %g1                            
 2006e38:	80 a0 80 01 	cmp  %g2, %g1                                  
 2006e3c:	02 bf ff da 	be  2006da4 <aio_cancel+0xdc>                  <== NEVER TAKEN
 2006e40:	90 07 60 54 	add  %i5, 0x54, %o0                            
        r_chain = rtems_aio_search_fd (&aio_request_queue.idle_req, fildes, 0);
 2006e44:	92 10 00 18 	mov  %i0, %o1                                  
 2006e48:	40 00 00 7f 	call  2007044 <rtems_aio_search_fd>            
 2006e4c:	94 10 20 00 	clr  %o2                                       
        if (r_chain == NULL) {                                        
 2006e50:	b8 92 20 00 	orcc  %o0, 0, %i4                              
 2006e54:	22 bf ff d5 	be,a   2006da8 <aio_cancel+0xe0>               
 2006e58:	90 10 00 1d 	mov  %i5, %o0                                  
 2006e5c:	40 00 0a f1 	call  2009a20 <_Chain_Extract>                 
 2006e60:	b2 07 20 1c 	add  %i4, 0x1c, %i1                            
        }                                                             
                                                                      
        AIO_printf ("Request chain on [IQ]\n");                       
                                                                      
        rtems_chain_extract (&r_chain->next_fd);                      
        rtems_aio_remove_fd (r_chain);                                
 2006e64:	40 00 01 85 	call  2007478 <rtems_aio_remove_fd>            
 2006e68:	90 10 00 1c 	mov  %i4, %o0                                  
        pthread_mutex_destroy (&r_chain->mutex);                      
 2006e6c:	40 00 03 7f 	call  2007c68 <pthread_mutex_destroy>          
 2006e70:	90 10 00 19 	mov  %i1, %o0                                  
        pthread_cond_destroy (&r_chain->mutex);                       
 2006e74:	40 00 02 9e 	call  20078ec <pthread_cond_destroy>           
 2006e78:	90 10 00 19 	mov  %i1, %o0                                  
        free (r_chain);                                               
 2006e7c:	7f ff f2 0a 	call  20036a4 <free>                           
 2006e80:	90 10 00 1c 	mov  %i4, %o0                                  
                                                                      
        pthread_mutex_unlock (&aio_request_queue.mutex);              
        return AIO_CANCELED;                                          
 2006e84:	b0 10 20 00 	clr  %i0                                       
        rtems_aio_remove_fd (r_chain);                                
        pthread_mutex_destroy (&r_chain->mutex);                      
        pthread_cond_destroy (&r_chain->mutex);                       
        free (r_chain);                                               
                                                                      
        pthread_mutex_unlock (&aio_request_queue.mutex);              
 2006e88:	40 00 04 43 	call  2007f94 <pthread_mutex_unlock>           
 2006e8c:	90 10 00 1d 	mov  %i5, %o0                                  
        return AIO_CANCELED;                                          
 2006e90:	81 c7 e0 08 	ret                                            
 2006e94:	81 e8 00 00 	restore                                        
  int result;                                                         
                                                                      
  pthread_mutex_lock (&aio_request_queue.mutex);                      
                                                                      
  if (fcntl (fildes, F_GETFD) < 0) {                                  
    pthread_mutex_unlock(&aio_request_queue.mutex);                   
 2006e98:	40 00 04 3f 	call  2007f94 <pthread_mutex_unlock>           
 2006e9c:	90 17 60 0c 	or  %i5, 0xc, %o0                              
    rtems_set_errno_and_return_minus_one (EBADF);                     
 2006ea0:	40 00 2c 75 	call  2012074 <__errno>                        
 2006ea4:	b0 10 3f ff 	mov  -1, %i0                                   
 2006ea8:	82 10 20 09 	mov  9, %g1                                    
 2006eac:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2006eb0:	81 c7 e0 08 	ret                                            
 2006eb4:	81 e8 00 00 	restore                                        
                                                                      

02006ec0 <aio_fsync>: int aio_fsync( int op, struct aiocb *aiocbp ) {
 2006ec0:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_aio_request *req;                                             
  int mode;                                                           
                                                                      
  if (op != O_SYNC)                                                   
 2006ec4:	03 00 00 08 	sethi  %hi(0x2000), %g1                        
 2006ec8:	80 a6 00 01 	cmp  %i0, %g1                                  
 2006ecc:	12 80 00 14 	bne  2006f1c <aio_fsync+0x5c>                  
 2006ed0:	ba 10 20 16 	mov  0x16, %i5                                 
    rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);            
                                                                      
  mode = fcntl (aiocbp->aio_fildes, F_GETFL);                         
 2006ed4:	d0 06 40 00 	ld  [ %i1 ], %o0                               
 2006ed8:	40 00 1e 1d 	call  200e74c <fcntl>                          
 2006edc:	92 10 20 03 	mov  3, %o1                                    
  if (!(((mode & O_ACCMODE) == O_WRONLY) || ((mode & O_ACCMODE) == O_RDWR)))
 2006ee0:	90 0a 20 03 	and  %o0, 3, %o0                               
 2006ee4:	90 02 3f ff 	add  %o0, -1, %o0                              
 2006ee8:	80 a2 20 01 	cmp  %o0, 1                                    
 2006eec:	18 80 00 0c 	bgu  2006f1c <aio_fsync+0x5c>                  
 2006ef0:	ba 10 20 09 	mov  9, %i5                                    
    rtems_aio_set_errno_return_minus_one (EBADF, aiocbp);             
                                                                      
  req = malloc (sizeof (rtems_aio_request));                          
 2006ef4:	7f ff f3 76 	call  2003ccc <malloc>                         
 2006ef8:	90 10 20 18 	mov  0x18, %o0                                 
  if (req == NULL)                                                    
 2006efc:	80 a2 20 00 	cmp  %o0, 0                                    
 2006f00:	02 80 00 06 	be  2006f18 <aio_fsync+0x58>                   <== NEVER TAKEN
 2006f04:	82 10 20 03 	mov  3, %g1                                    
    rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);            
                                                                      
  req->aiocbp = aiocbp;                                               
 2006f08:	f2 22 20 14 	st  %i1, [ %o0 + 0x14 ]                        
  req->aiocbp->aio_lio_opcode = LIO_SYNC;                             
 2006f0c:	c2 26 60 30 	st  %g1, [ %i1 + 0x30 ]                        
                                                                      
  return rtems_aio_enqueue (req);                                     
 2006f10:	40 00 01 8a 	call  2007538 <rtems_aio_enqueue>              
 2006f14:	91 e8 00 08 	restore  %g0, %o0, %o0                         
  if (!(((mode & O_ACCMODE) == O_WRONLY) || ((mode & O_ACCMODE) == O_RDWR)))
    rtems_aio_set_errno_return_minus_one (EBADF, aiocbp);             
                                                                      
  req = malloc (sizeof (rtems_aio_request));                          
  if (req == NULL)                                                    
    rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);            
 2006f18:	ba 10 20 0b 	mov  0xb, %i5                                  <== NOT EXECUTED
 2006f1c:	82 10 3f ff 	mov  -1, %g1                                   
 2006f20:	fa 26 60 34 	st  %i5, [ %i1 + 0x34 ]                        
 2006f24:	c2 26 60 38 	st  %g1, [ %i1 + 0x38 ]                        
 2006f28:	40 00 2c 53 	call  2012074 <__errno>                        
 2006f2c:	b0 10 3f ff 	mov  -1, %i0                                   
 2006f30:	fa 22 00 00 	st  %i5, [ %o0 ]                               
  req->aiocbp = aiocbp;                                               
  req->aiocbp->aio_lio_opcode = LIO_SYNC;                             
                                                                      
  return rtems_aio_enqueue (req);                                     
                                                                      
}                                                                     
 2006f34:	81 c7 e0 08 	ret                                            
 2006f38:	81 e8 00 00 	restore                                        
                                                                      

0200771c <aio_read>: * 0 - otherwise */ int aio_read (struct aiocb *aiocbp) {
 200771c:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_aio_request *req;                                             
  int mode;                                                           
                                                                      
  mode = fcntl (aiocbp->aio_fildes, F_GETFL);                         
 2007720:	d0 06 00 00 	ld  [ %i0 ], %o0                               
 2007724:	40 00 1c 0a 	call  200e74c <fcntl>                          
 2007728:	92 10 20 03 	mov  3, %o1                                    
  if (!(((mode & O_ACCMODE) == O_RDONLY) || ((mode & O_ACCMODE) == O_RDWR)))
 200772c:	90 0a 20 03 	and  %o0, 3, %o0                               
 2007730:	80 a2 20 02 	cmp  %o0, 2                                    
 2007734:	12 80 00 1b 	bne  20077a0 <aio_read+0x84>                   
 2007738:	80 a2 20 00 	cmp  %o0, 0                                    
    rtems_aio_set_errno_return_minus_one (EBADF, aiocbp);             
                                                                      
  if (aiocbp->aio_reqprio < 0 || aiocbp->aio_reqprio > AIO_PRIO_DELTA_MAX)
 200773c:	c2 06 20 18 	ld  [ %i0 + 0x18 ], %g1                        
 2007740:	80 a0 60 00 	cmp  %g1, 0                                    
 2007744:	12 80 00 0f 	bne  2007780 <aio_read+0x64>                   
 2007748:	ba 10 20 16 	mov  0x16, %i5                                 
    rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);            
                                                                      
  if (aiocbp->aio_offset < 0)                                         
 200774c:	c2 06 20 08 	ld  [ %i0 + 8 ], %g1                           
 2007750:	80 a0 60 00 	cmp  %g1, 0                                    
 2007754:	06 80 00 0c 	bl  2007784 <aio_read+0x68>                    
 2007758:	82 10 3f ff 	mov  -1, %g1                                   
    rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);            
                                                                      
  req = malloc (sizeof (rtems_aio_request));                          
 200775c:	7f ff f1 5c 	call  2003ccc <malloc>                         
 2007760:	90 10 20 18 	mov  0x18, %o0                                 
  if (req == NULL)                                                    
 2007764:	80 a2 20 00 	cmp  %o0, 0                                    
 2007768:	02 80 00 12 	be  20077b0 <aio_read+0x94>                    <== NEVER TAKEN
 200776c:	82 10 20 01 	mov  1, %g1                                    
    rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);            
                                                                      
  req->aiocbp = aiocbp;                                               
 2007770:	f0 22 20 14 	st  %i0, [ %o0 + 0x14 ]                        
  req->aiocbp->aio_lio_opcode = LIO_READ;                             
 2007774:	c2 26 20 30 	st  %g1, [ %i0 + 0x30 ]                        
                                                                      
  return rtems_aio_enqueue (req);                                     
 2007778:	7f ff ff 70 	call  2007538 <rtems_aio_enqueue>              
 200777c:	91 e8 00 08 	restore  %g0, %o0, %o0                         
  if (aiocbp->aio_offset < 0)                                         
    rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);            
                                                                      
  req = malloc (sizeof (rtems_aio_request));                          
  if (req == NULL)                                                    
    rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);            
 2007780:	82 10 3f ff 	mov  -1, %g1                                   
 2007784:	fa 26 20 34 	st  %i5, [ %i0 + 0x34 ]                        
 2007788:	c2 26 20 38 	st  %g1, [ %i0 + 0x38 ]                        
 200778c:	40 00 2a 3a 	call  2012074 <__errno>                        
 2007790:	b0 10 3f ff 	mov  -1, %i0                                   
 2007794:	fa 22 00 00 	st  %i5, [ %o0 ]                               
                                                                      
  req->aiocbp = aiocbp;                                               
  req->aiocbp->aio_lio_opcode = LIO_READ;                             
                                                                      
  return rtems_aio_enqueue (req);                                     
}                                                                     
 2007798:	81 c7 e0 08 	ret                                            
 200779c:	81 e8 00 00 	restore                                        
{                                                                     
  rtems_aio_request *req;                                             
  int mode;                                                           
                                                                      
  mode = fcntl (aiocbp->aio_fildes, F_GETFL);                         
  if (!(((mode & O_ACCMODE) == O_RDONLY) || ((mode & O_ACCMODE) == O_RDWR)))
 20077a0:	02 bf ff e7 	be  200773c <aio_read+0x20>                    <== NEVER TAKEN
 20077a4:	ba 10 20 09 	mov  9, %i5                                    
  if (aiocbp->aio_offset < 0)                                         
    rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);            
                                                                      
  req = malloc (sizeof (rtems_aio_request));                          
  if (req == NULL)                                                    
    rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);            
 20077a8:	10 bf ff f7 	b  2007784 <aio_read+0x68>                     
 20077ac:	82 10 3f ff 	mov  -1, %g1                                   
 20077b0:	10 bf ff f4 	b  2007780 <aio_read+0x64>                     <== NOT EXECUTED
 20077b4:	ba 10 20 0b 	mov  0xb, %i5                                  <== NOT EXECUTED
                                                                      

020077c0 <aio_write>: * 0 - otherwise */ int aio_write (struct aiocb *aiocbp) {
 20077c0:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_aio_request *req;                                             
  int mode;                                                           
                                                                      
  mode = fcntl (aiocbp->aio_fildes, F_GETFL);                         
 20077c4:	d0 06 00 00 	ld  [ %i0 ], %o0                               
 20077c8:	40 00 1b e1 	call  200e74c <fcntl>                          
 20077cc:	92 10 20 03 	mov  3, %o1                                    
  if (!(((mode & O_ACCMODE) == O_WRONLY) || ((mode & O_ACCMODE) == O_RDWR)))
 20077d0:	90 0a 20 03 	and  %o0, 3, %o0                               
 20077d4:	90 02 3f ff 	add  %o0, -1, %o0                              
 20077d8:	80 a2 20 01 	cmp  %o0, 1                                    
 20077dc:	18 80 00 14 	bgu  200782c <aio_write+0x6c>                  
 20077e0:	ba 10 20 09 	mov  9, %i5                                    
    rtems_aio_set_errno_return_minus_one (EBADF, aiocbp);             
                                                                      
  if (aiocbp->aio_reqprio < 0 || aiocbp->aio_reqprio > AIO_PRIO_DELTA_MAX)
 20077e4:	c2 06 20 18 	ld  [ %i0 + 0x18 ], %g1                        
 20077e8:	80 a0 60 00 	cmp  %g1, 0                                    
 20077ec:	12 80 00 10 	bne  200782c <aio_write+0x6c>                  
 20077f0:	ba 10 20 16 	mov  0x16, %i5                                 
    rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);            
                                                                      
  if (aiocbp->aio_offset < 0)                                         
 20077f4:	c2 06 20 08 	ld  [ %i0 + 8 ], %g1                           
 20077f8:	80 a0 60 00 	cmp  %g1, 0                                    
 20077fc:	06 80 00 0d 	bl  2007830 <aio_write+0x70>                   
 2007800:	82 10 3f ff 	mov  -1, %g1                                   
    rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);            
                                                                      
  req = malloc (sizeof (rtems_aio_request));                          
 2007804:	7f ff f1 32 	call  2003ccc <malloc>                         
 2007808:	90 10 20 18 	mov  0x18, %o0                                 
  if (req == NULL)                                                    
 200780c:	80 a2 20 00 	cmp  %o0, 0                                    
 2007810:	02 80 00 06 	be  2007828 <aio_write+0x68>                   <== NEVER TAKEN
 2007814:	82 10 20 02 	mov  2, %g1                                    
    rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);            
                                                                      
  req->aiocbp = aiocbp;                                               
 2007818:	f0 22 20 14 	st  %i0, [ %o0 + 0x14 ]                        
  req->aiocbp->aio_lio_opcode = LIO_WRITE;                            
 200781c:	c2 26 20 30 	st  %g1, [ %i0 + 0x30 ]                        
                                                                      
  return rtems_aio_enqueue (req);                                     
 2007820:	7f ff ff 46 	call  2007538 <rtems_aio_enqueue>              
 2007824:	91 e8 00 08 	restore  %g0, %o0, %o0                         
  if (aiocbp->aio_offset < 0)                                         
    rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);            
                                                                      
  req = malloc (sizeof (rtems_aio_request));                          
  if (req == NULL)                                                    
    rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);            
 2007828:	ba 10 20 0b 	mov  0xb, %i5                                  <== NOT EXECUTED
 200782c:	82 10 3f ff 	mov  -1, %g1                                   
 2007830:	fa 26 20 34 	st  %i5, [ %i0 + 0x34 ]                        
 2007834:	c2 26 20 38 	st  %g1, [ %i0 + 0x38 ]                        
 2007838:	40 00 2a 0f 	call  2012074 <__errno>                        
 200783c:	b0 10 3f ff 	mov  -1, %i0                                   
 2007840:	fa 22 00 00 	st  %i5, [ %o0 ]                               
                                                                      
  req->aiocbp = aiocbp;                                               
  req->aiocbp->aio_lio_opcode = LIO_WRITE;                            
                                                                      
  return rtems_aio_enqueue (req);                                     
}                                                                     
 2007844:	81 c7 e0 08 	ret                                            
 2007848:	81 e8 00 00 	restore                                        
                                                                      

02002b40 <chroot>: #include <rtems/seterr.h> int chroot( const char *pathname ) {
 2002b40:	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) {             
 2002b44:	3b 00 80 59 	sethi  %hi(0x2016400), %i5                     
 2002b48:	f8 07 62 0c 	ld  [ %i5 + 0x20c ], %i4	! 201660c <rtems_current_user_env>
 2002b4c:	03 00 80 5b 	sethi  %hi(0x2016c00), %g1                     
 2002b50:	82 10 63 c4 	or  %g1, 0x3c4, %g1	! 2016fc4 <rtems_global_user_env>
 2002b54:	80 a7 00 01 	cmp  %i4, %g1                                  
 2002b58:	02 80 00 20 	be  2002bd8 <chroot+0x98>                      
 2002b5c:	01 00 00 00 	nop                                            
   rtems_libio_set_private_env(); /* try to set a new private env*/   
   if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ 
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
  }                                                                   
                                                                      
  result = chdir(pathname);                                           
 2002b60:	40 00 24 b8 	call  200be40 <chdir>                          
 2002b64:	90 10 00 18 	mov  %i0, %o0                                  
  if (result) {                                                       
 2002b68:	80 a2 20 00 	cmp  %o0, 0                                    
 2002b6c:	12 80 00 27 	bne  2002c08 <chroot+0xc8>                     
 2002b70:	92 10 20 01 	mov  1, %o1                                    
    rtems_set_errno_and_return_minus_one( errno );                    
  }                                                                   
                                                                      
  /* clone the new root location */                                   
  if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {           
 2002b74:	11 00 80 56 	sethi  %hi(0x2015800), %o0                     
 2002b78:	94 10 20 00 	clr  %o2                                       
 2002b7c:	90 12 20 88 	or  %o0, 0x88, %o0                             
 2002b80:	96 07 bf ec 	add  %fp, -20, %o3                             
 2002b84:	40 00 00 68 	call  2002d24 <rtems_filesystem_evaluate_path> 
 2002b88:	98 10 20 00 	clr  %o4                                       
 2002b8c:	80 a2 20 00 	cmp  %o0, 0                                    
 2002b90:	12 80 00 1e 	bne  2002c08 <chroot+0xc8>                     <== NEVER TAKEN
 2002b94:	d0 07 62 0c 	ld  [ %i5 + 0x20c ], %o0                       
    rtems_set_errno_and_return_minus_one( errno );                    
  }                                                                   
  rtems_filesystem_freenode(&rtems_filesystem_root);                  
  rtems_filesystem_root = loc;                                        
                                                                      
  return 0;                                                           
 2002b98:	b0 10 20 00 	clr  %i0                                       
  /* clone the new root location */                                   
  if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {           
    /* our cwd has changed, though - but there is no easy way of return :-( */
    rtems_set_errno_and_return_minus_one( errno );                    
  }                                                                   
  rtems_filesystem_freenode(&rtems_filesystem_root);                  
 2002b9c:	40 00 00 9c 	call  2002e0c <rtems_filesystem_freenode>      
 2002ba0:	90 02 20 18 	add  %o0, 0x18, %o0                            
  rtems_filesystem_root = loc;                                        
 2002ba4:	c2 07 62 0c 	ld  [ %i5 + 0x20c ], %g1                       
 2002ba8:	c4 07 bf ec 	ld  [ %fp + -20 ], %g2                         
 2002bac:	c4 20 60 18 	st  %g2, [ %g1 + 0x18 ]                        
 2002bb0:	c4 07 bf f0 	ld  [ %fp + -16 ], %g2                         
 2002bb4:	c4 20 60 1c 	st  %g2, [ %g1 + 0x1c ]                        
 2002bb8:	c4 07 bf f4 	ld  [ %fp + -12 ], %g2                         
 2002bbc:	c4 20 60 20 	st  %g2, [ %g1 + 0x20 ]                        
 2002bc0:	c4 07 bf f8 	ld  [ %fp + -8 ], %g2                          
 2002bc4:	c4 20 60 24 	st  %g2, [ %g1 + 0x24 ]                        
 2002bc8:	c4 07 bf fc 	ld  [ %fp + -4 ], %g2                          
 2002bcc:	c4 20 60 28 	st  %g2, [ %g1 + 0x28 ]                        
                                                                      
  return 0;                                                           
}                                                                     
 2002bd0:	81 c7 e0 08 	ret                                            
 2002bd4:	81 e8 00 00 	restore                                        
  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) {             
   rtems_libio_set_private_env(); /* try to set a new private env*/   
 2002bd8:	40 00 05 0b 	call  2004004 <rtems_libio_set_private_env>    
 2002bdc:	01 00 00 00 	nop                                            
   if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ 
 2002be0:	c2 07 62 0c 	ld  [ %i5 + 0x20c ], %g1                       
 2002be4:	80 a0 40 1c 	cmp  %g1, %i4                                  
 2002be8:	12 bf ff de 	bne  2002b60 <chroot+0x20>                     
 2002bec:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
 2002bf0:	40 00 33 73 	call  200f9bc <__errno>                        
 2002bf4:	b0 10 3f ff 	mov  -1, %i0	! ffffffff <RAM_END+0xfdbfffff>   
 2002bf8:	82 10 20 86 	mov  0x86, %g1                                 
 2002bfc:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2002c00:	81 c7 e0 08 	ret                                            
 2002c04:	81 e8 00 00 	restore                                        
  }                                                                   
                                                                      
  /* clone the new root location */                                   
  if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {           
    /* our cwd has changed, though - but there is no easy way of return :-( */
    rtems_set_errno_and_return_minus_one( errno );                    
 2002c08:	40 00 33 6d 	call  200f9bc <__errno>                        
 2002c0c:	b0 10 3f ff 	mov  -1, %i0                                   
 2002c10:	40 00 33 6b 	call  200f9bc <__errno>                        
 2002c14:	ba 10 00 08 	mov  %o0, %i5                                  
 2002c18:	c2 02 00 00 	ld  [ %o0 ], %g1                               
 2002c1c:	c2 27 40 00 	st  %g1, [ %i5 ]                               
 2002c20:	81 c7 e0 08 	ret                                            
 2002c24:	81 e8 00 00 	restore                                        
                                                                      

020062c4 <clock_gettime>: int clock_gettime( clockid_t clock_id, struct timespec *tp ) {
 20062c4:	9d e3 bf a0 	save  %sp, -96, %sp                            
  if ( !tp )                                                          
 20062c8:	80 a6 60 00 	cmp  %i1, 0                                    
 20062cc:	02 80 00 20 	be  200634c <clock_gettime+0x88>               
 20062d0:	80 a6 20 01 	cmp  %i0, 1                                    
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( clock_id == CLOCK_REALTIME ) {                                 
 20062d4:	02 80 00 19 	be  2006338 <clock_gettime+0x74>               
 20062d8:	80 a6 20 04 	cmp  %i0, 4                                    
    _TOD_Get(tp);                                                     
    return 0;                                                         
  }                                                                   
#ifdef CLOCK_MONOTONIC                                                
  if ( clock_id == CLOCK_MONOTONIC ) {                                
 20062dc:	02 80 00 12 	be  2006324 <clock_gettime+0x60>               <== NEVER TAKEN
 20062e0:	80 a6 20 02 	cmp  %i0, 2                                    
    return 0;                                                         
  }                                                                   
#endif                                                                
                                                                      
#ifdef _POSIX_CPUTIME                                                 
  if ( clock_id == CLOCK_PROCESS_CPUTIME_ID ) {                       
 20062e4:	02 80 00 10 	be  2006324 <clock_gettime+0x60>               
 20062e8:	80 a6 20 03 	cmp  %i0, 3                                    
    return 0;                                                         
  }                                                                   
#endif                                                                
                                                                      
#ifdef _POSIX_THREAD_CPUTIME                                          
  if ( clock_id == CLOCK_THREAD_CPUTIME_ID )                          
 20062ec:	02 80 00 08 	be  200630c <clock_gettime+0x48>               
 20062f0:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( ENOSYS );                   
#endif                                                                
                                                                      
  rtems_set_errno_and_return_minus_one( EINVAL );                     
 20062f4:	40 00 28 fc 	call  20106e4 <__errno>                        
 20062f8:	b0 10 3f ff 	mov  -1, %i0	! ffffffff <RAM_END+0xfdbfffff>   
 20062fc:	82 10 20 16 	mov  0x16, %g1                                 
 2006300:	c2 22 00 00 	st  %g1, [ %o0 ]                               
                                                                      
  return 0;                                                           
}                                                                     
 2006304:	81 c7 e0 08 	ret                                            
 2006308:	81 e8 00 00 	restore                                        
  }                                                                   
#endif                                                                
                                                                      
#ifdef _POSIX_THREAD_CPUTIME                                          
  if ( clock_id == CLOCK_THREAD_CPUTIME_ID )                          
    rtems_set_errno_and_return_minus_one( ENOSYS );                   
 200630c:	40 00 28 f6 	call  20106e4 <__errno>                        
 2006310:	b0 10 3f ff 	mov  -1, %i0                                   
 2006314:	82 10 20 58 	mov  0x58, %g1                                 
 2006318:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200631c:	81 c7 e0 08 	ret                                            
 2006320:	81 e8 00 00 	restore                                        
  }                                                                   
#endif                                                                
                                                                      
#ifdef _POSIX_CPUTIME                                                 
  if ( clock_id == CLOCK_PROCESS_CPUTIME_ID ) {                       
    _TOD_Get_uptime_as_timespec( tp );                                
 2006324:	90 10 00 19 	mov  %i1, %o0                                  
 2006328:	40 00 08 3b 	call  2008414 <_TOD_Get_uptime_as_timespec>    
 200632c:	b0 10 20 00 	clr  %i0                                       
    return 0;                                                         
 2006330:	81 c7 e0 08 	ret                                            
 2006334:	81 e8 00 00 	restore                                        
{                                                                     
  if ( !tp )                                                          
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( clock_id == CLOCK_REALTIME ) {                                 
    _TOD_Get(tp);                                                     
 2006338:	90 10 00 19 	mov  %i1, %o0                                  
 200633c:	40 00 08 1b 	call  20083a8 <_TOD_Get>                       
 2006340:	b0 10 20 00 	clr  %i0                                       
    return 0;                                                         
 2006344:	81 c7 e0 08 	ret                                            
 2006348:	81 e8 00 00 	restore                                        
  clockid_t        clock_id,                                          
  struct timespec *tp                                                 
)                                                                     
{                                                                     
  if ( !tp )                                                          
    rtems_set_errno_and_return_minus_one( EINVAL );                   
 200634c:	40 00 28 e6 	call  20106e4 <__errno>                        
 2006350:	b0 10 3f ff 	mov  -1, %i0                                   
 2006354:	82 10 20 16 	mov  0x16, %g1                                 
 2006358:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200635c:	81 c7 e0 08 	ret                                            
 2006360:	81 e8 00 00 	restore                                        
                                                                      

02006364 <clock_settime>: int clock_settime( clockid_t clock_id, const struct timespec *tp ) {
 2006364:	9d e3 bf a0 	save  %sp, -96, %sp                            
  if ( !tp )                                                          
 2006368:	80 a6 60 00 	cmp  %i1, 0                                    
 200636c:	02 80 00 25 	be  2006400 <clock_settime+0x9c>               <== NEVER TAKEN
 2006370:	80 a6 20 01 	cmp  %i0, 1                                    
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( clock_id == CLOCK_REALTIME ) {                                 
 2006374:	02 80 00 0c 	be  20063a4 <clock_settime+0x40>               
 2006378:	80 a6 20 02 	cmp  %i0, 2                                    
    _Thread_Disable_dispatch();                                       
      _TOD_Set( tp );                                                 
    _Thread_Enable_dispatch();                                        
  }                                                                   
#ifdef _POSIX_CPUTIME                                                 
  else if ( clock_id == CLOCK_PROCESS_CPUTIME_ID )                    
 200637c:	02 80 00 1b 	be  20063e8 <clock_settime+0x84>               
 2006380:	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_ID )                     
 2006384:	02 80 00 19 	be  20063e8 <clock_settime+0x84>               
 2006388:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( ENOSYS );                   
#endif                                                                
  else                                                                
    rtems_set_errno_and_return_minus_one( EINVAL );                   
 200638c:	40 00 28 d6 	call  20106e4 <__errno>                        
 2006390:	b0 10 3f ff 	mov  -1, %i0	! ffffffff <RAM_END+0xfdbfffff>   
 2006394:	82 10 20 16 	mov  0x16, %g1                                 
 2006398:	c2 22 00 00 	st  %g1, [ %o0 ]                               
                                                                      
  return 0;                                                           
}                                                                     
 200639c:	81 c7 e0 08 	ret                                            
 20063a0:	81 e8 00 00 	restore                                        
{                                                                     
  if ( !tp )                                                          
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( clock_id == CLOCK_REALTIME ) {                                 
    if ( tp->tv_sec < TOD_SECONDS_1970_THROUGH_1988 )                 
 20063a4:	c4 06 40 00 	ld  [ %i1 ], %g2                               
 20063a8:	03 08 76 b9 	sethi  %hi(0x21dae400), %g1                    
 20063ac:	82 10 60 ff 	or  %g1, 0xff, %g1	! 21dae4ff <RAM_END+0x1f9ae4ff>
 20063b0:	80 a0 80 01 	cmp  %g2, %g1                                  
 20063b4:	08 80 00 13 	bleu  2006400 <clock_settime+0x9c>             
 20063b8:	03 00 80 69 	sethi  %hi(0x201a400), %g1                     
   *                                                                  
   * This rountine increments the thread dispatch level               
   */                                                                 
  RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
  {                                                                   
    _Thread_Dispatch_disable_level++;                                 
 20063bc:	c4 00 61 30 	ld  [ %g1 + 0x130 ], %g2	! 201a530 <_Thread_Dispatch_disable_level>
 20063c0:	84 00 a0 01 	inc  %g2                                       
 20063c4:	c4 20 61 30 	st  %g2, [ %g1 + 0x130 ]                       
    return _Thread_Dispatch_disable_level;                            
 20063c8:	c2 00 61 30 	ld  [ %g1 + 0x130 ], %g1                       
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    _Thread_Disable_dispatch();                                       
      _TOD_Set( tp );                                                 
 20063cc:	90 10 00 19 	mov  %i1, %o0                                  
 20063d0:	40 00 08 29 	call  2008474 <_TOD_Set>                       
 20063d4:	b0 10 20 00 	clr  %i0                                       
    _Thread_Enable_dispatch();                                        
 20063d8:	40 00 0e c6 	call  2009ef0 <_Thread_Enable_dispatch>        
 20063dc:	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;                                                           
 20063e0:	81 c7 e0 08 	ret                                            
 20063e4:	81 e8 00 00 	restore                                        
  else if ( clock_id == CLOCK_PROCESS_CPUTIME_ID )                    
    rtems_set_errno_and_return_minus_one( ENOSYS );                   
#endif                                                                
#ifdef _POSIX_THREAD_CPUTIME                                          
  else if ( clock_id == CLOCK_THREAD_CPUTIME_ID )                     
    rtems_set_errno_and_return_minus_one( ENOSYS );                   
 20063e8:	40 00 28 bf 	call  20106e4 <__errno>                        
 20063ec:	b0 10 3f ff 	mov  -1, %i0                                   
 20063f0:	82 10 20 58 	mov  0x58, %g1                                 
 20063f4:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 20063f8:	81 c7 e0 08 	ret                                            
 20063fc:	81 e8 00 00 	restore                                        
  if ( !tp )                                                          
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( clock_id == CLOCK_REALTIME ) {                                 
    if ( tp->tv_sec < TOD_SECONDS_1970_THROUGH_1988 )                 
      rtems_set_errno_and_return_minus_one( EINVAL );                 
 2006400:	40 00 28 b9 	call  20106e4 <__errno>                        
 2006404:	b0 10 3f ff 	mov  -1, %i0                                   
 2006408:	82 10 20 16 	mov  0x16, %g1                                 
 200640c:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2006410:	81 c7 e0 08 	ret                                            
 2006414:	81 e8 00 00 	restore                                        
                                                                      

02002834 <create_disk>: return disktab [major].minor + minor; } static rtems_status_code create_disk(dev_t dev, const char *name, rtems_disk_device **dd_ptr) {
 2002834:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_device_major_number major = 0;                                
  rtems_device_minor_number minor = 0;                                
                                                                      
  rtems_filesystem_split_dev_t(dev, major, minor);                    
                                                                      
  if (major >= disktab_size) {                                        
 2002838:	39 00 80 6a 	sethi  %hi(0x201a800), %i4                     
 200283c:	e0 07 20 90 	ld  [ %i4 + 0x90 ], %l0	! 201a890 <disktab_size>
 2002840:	03 00 80 6a 	sethi  %hi(0x201a800), %g1                     
  return disktab [major].minor + minor;                               
}                                                                     
                                                                      
static rtems_status_code                                              
create_disk(dev_t dev, const char *name, rtems_disk_device **dd_ptr)  
{                                                                     
 2002844:	ba 10 00 18 	mov  %i0, %i5                                  
  rtems_device_major_number major = 0;                                
  rtems_device_minor_number minor = 0;                                
                                                                      
  rtems_filesystem_split_dev_t(dev, major, minor);                    
                                                                      
  if (major >= disktab_size) {                                        
 2002848:	80 a6 00 10 	cmp  %i0, %l0                                  
 200284c:	0a 80 00 16 	bcs  20028a4 <create_disk+0x70>                
 2002850:	e2 00 60 94 	ld  [ %g1 + 0x94 ], %l1                        
    rtems_disk_device_table *table = disktab;                         
 2002854:	27 00 80 6a 	sethi  %hi(0x201a800), %l3                     
    rtems_device_major_number old_size = disktab_size;                
    rtems_device_major_number new_size = 2 * old_size;                
 2002858:	a5 2c 20 01 	sll  %l0, 1, %l2                               
                                                                      
    if (major >= new_size) {                                          
 200285c:	80 a6 00 12 	cmp  %i0, %l2                                  
 2002860:	0a 80 00 03 	bcs  200286c <create_disk+0x38>                <== NEVER TAKEN
 2002864:	d0 04 e0 94 	ld  [ %l3 + 0x94 ], %o0                        
      new_size = major + 1;                                           
 2002868:	a4 06 20 01 	add  %i0, 1, %l2                               
    }                                                                 
                                                                      
    table = realloc(table, new_size * sizeof(*table));                
 200286c:	93 2c a0 03 	sll  %l2, 3, %o1                               
 2002870:	40 00 08 2d 	call  2004924 <realloc>                        
 2002874:	b0 10 20 1a 	mov  0x1a, %i0                                 
    if (table == NULL) {                                              
 2002878:	80 a2 20 00 	cmp  %o0, 0                                    
 200287c:	02 80 00 1b 	be  20028e8 <create_disk+0xb4>                 <== ALWAYS TAKEN
 2002880:	a2 10 00 08 	mov  %o0, %l1                                  
      return NULL;                                                    
    }                                                                 
                                                                      
    memset(table + old_size, 0, (new_size - old_size) * sizeof(*table));
 2002884:	94 24 80 10 	sub  %l2, %l0, %o2                             <== NOT EXECUTED
 2002888:	91 2c 20 03 	sll  %l0, 3, %o0                               <== NOT EXECUTED
 200288c:	92 10 20 00 	clr  %o1                                       <== NOT EXECUTED
 2002890:	90 04 40 08 	add  %l1, %o0, %o0                             <== NOT EXECUTED
 2002894:	40 00 46 57 	call  20141f0 <memset>                         <== NOT EXECUTED
 2002898:	95 2a a0 03 	sll  %o2, 3, %o2                               <== NOT EXECUTED
    disktab = table;                                                  
 200289c:	e2 24 e0 94 	st  %l1, [ %l3 + 0x94 ]                        <== NOT EXECUTED
    disktab_size = new_size;                                          
 20028a0:	e4 27 20 90 	st  %l2, [ %i4 + 0x90 ]                        <== NOT EXECUTED
  }                                                                   
                                                                      
  if (disktab [major].minor == NULL || minor >= disktab[major].size) {
 20028a4:	83 2f 60 03 	sll  %i5, 3, %g1                               
 20028a8:	e0 04 40 01 	ld  [ %l1 + %g1 ], %l0                         
 20028ac:	a2 04 40 01 	add  %l1, %g1, %l1                             
 20028b0:	80 a4 20 00 	cmp  %l0, 0                                    
 20028b4:	02 80 00 0f 	be  20028f0 <create_disk+0xbc>                 
 20028b8:	e4 04 60 04 	ld  [ %l1 + 4 ], %l2                           
 20028bc:	80 a6 40 12 	cmp  %i1, %l2                                  
 20028c0:	1a 80 00 0d 	bcc  20028f4 <create_disk+0xc0>                <== NEVER TAKEN
 20028c4:	80 a4 a0 00 	cmp  %l2, 0                                    
    memset(table + old_size, 0, (new_size - old_size) * sizeof(*table));
    disktab [major].minor = table;                                    
    disktab [major].size = new_size;                                  
  }                                                                   
                                                                      
  return disktab [major].minor + minor;                               
 20028c8:	83 2e 60 02 	sll  %i1, 2, %g1                               
{                                                                     
  rtems_disk_device **dd_entry = create_disk_table_entry(dev);        
  rtems_disk_device *dd = NULL;                                       
  char *alloc_name = NULL;                                            
                                                                      
  if (dd_entry == NULL) {                                             
 20028cc:	b8 84 00 01 	addcc  %l0, %g1, %i4                           
 20028d0:	02 80 00 06 	be  20028e8 <create_disk+0xb4>                 <== NEVER TAKEN
 20028d4:	b0 10 20 1a 	mov  0x1a, %i0                                 
    return RTEMS_NO_MEMORY;                                           
  }                                                                   
                                                                      
  if (*dd_entry != NULL) {                                            
 20028d8:	c2 04 00 01 	ld  [ %l0 + %g1 ], %g1                         
 20028dc:	80 a0 60 00 	cmp  %g1, 0                                    
 20028e0:	02 80 00 20 	be  2002960 <create_disk+0x12c>                
 20028e4:	b0 10 20 0c 	mov  0xc, %i0                                  
                                                                      
  *dd_entry = dd;                                                     
  *dd_ptr = dd;                                                       
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 20028e8:	81 c7 e0 08 	ret                                            
 20028ec:	81 e8 00 00 	restore                                        
  if (disktab [major].minor == NULL || minor >= disktab[major].size) {
    rtems_disk_device **table = disktab [major].minor;                
    rtems_device_minor_number old_size = disktab [major].size;        
    rtems_device_minor_number new_size = 0;                           
                                                                      
    if (old_size == 0) {                                              
 20028f0:	80 a4 a0 00 	cmp  %l2, 0                                    
 20028f4:	12 80 00 15 	bne  2002948 <create_disk+0x114>               <== NEVER TAKEN
 20028f8:	b8 10 20 08 	mov  8, %i4                                    
      new_size = DISKTAB_INITIAL_SIZE;                                
    } else {                                                          
      new_size = 2 * old_size;                                        
    }                                                                 
    if (minor >= new_size) {                                          
 20028fc:	80 a6 40 1c 	cmp  %i1, %i4                                  
 2002900:	3a 80 00 02 	bcc,a   2002908 <create_disk+0xd4>             
 2002904:	b8 06 60 01 	add  %i1, 1, %i4                               
      new_size = minor + 1;                                           
    }                                                                 
                                                                      
    table = realloc(table, new_size * sizeof(*table));                
 2002908:	90 10 00 10 	mov  %l0, %o0                                  
 200290c:	93 2f 20 02 	sll  %i4, 2, %o1                               
 2002910:	40 00 08 05 	call  2004924 <realloc>                        
 2002914:	b0 10 20 1a 	mov  0x1a, %i0                                 
    if (table == NULL) {                                              
 2002918:	80 a2 20 00 	cmp  %o0, 0                                    
 200291c:	02 bf ff f3 	be  20028e8 <create_disk+0xb4>                 
 2002920:	a0 10 00 08 	mov  %o0, %l0                                  
      return NULL;                                                    
    }                                                                 
                                                                      
    memset(table + old_size, 0, (new_size - old_size) * sizeof(*table));
 2002924:	94 27 00 12 	sub  %i4, %l2, %o2                             
 2002928:	91 2c a0 02 	sll  %l2, 2, %o0                               
 200292c:	92 10 20 00 	clr  %o1                                       
 2002930:	90 04 00 08 	add  %l0, %o0, %o0                             
 2002934:	40 00 46 2f 	call  20141f0 <memset>                         
 2002938:	95 2a a0 02 	sll  %o2, 2, %o2                               
    disktab [major].minor = table;                                    
 200293c:	e0 24 40 00 	st  %l0, [ %l1 ]                               
    disktab [major].size = new_size;                                  
 2002940:	10 bf ff e2 	b  20028c8 <create_disk+0x94>                  
 2002944:	f8 24 60 04 	st  %i4, [ %l1 + 4 ]                           
    rtems_device_minor_number new_size = 0;                           
                                                                      
    if (old_size == 0) {                                              
      new_size = DISKTAB_INITIAL_SIZE;                                
    } else {                                                          
      new_size = 2 * old_size;                                        
 2002948:	b9 2c a0 01 	sll  %l2, 1, %i4                               <== NOT EXECUTED
    }                                                                 
    if (minor >= new_size) {                                          
 200294c:	80 a6 40 1c 	cmp  %i1, %i4                                  <== NOT EXECUTED
 2002950:	0a bf ff ef 	bcs  200290c <create_disk+0xd8>                <== NOT EXECUTED
 2002954:	90 10 00 10 	mov  %l0, %o0                                  <== NOT EXECUTED
 2002958:	10 bf ff ed 	b  200290c <create_disk+0xd8>                  <== NOT EXECUTED
 200295c:	b8 06 60 01 	add  %i1, 1, %i4                               <== NOT EXECUTED
                                                                      
  if (*dd_entry != NULL) {                                            
    return RTEMS_RESOURCE_IN_USE;                                     
  }                                                                   
                                                                      
  dd = malloc(sizeof(*dd));                                           
 2002960:	90 10 20 38 	mov  0x38, %o0                                 
 2002964:	40 00 05 19 	call  2003dc8 <malloc>                         
 2002968:	b0 10 20 1a 	mov  0x1a, %i0                                 
  if (dd == NULL) {                                                   
 200296c:	80 a2 20 00 	cmp  %o0, 0                                    
 2002970:	02 bf ff de 	be  20028e8 <create_disk+0xb4>                 <== NEVER TAKEN
 2002974:	a0 10 00 08 	mov  %o0, %l0                                  
    return RTEMS_NO_MEMORY;                                           
  }                                                                   
                                                                      
  if (name != NULL) {                                                 
 2002978:	80 a6 a0 00 	cmp  %i2, 0                                    
 200297c:	02 80 00 0f 	be  20029b8 <create_disk+0x184>                
 2002980:	a2 10 20 00 	clr  %l1                                       
    alloc_name = strdup(name);                                        
 2002984:	40 00 46 f9 	call  2014568 <strdup>                         
 2002988:	90 10 00 1a 	mov  %i2, %o0                                  
                                                                      
    if (alloc_name == NULL) {                                         
 200298c:	a2 92 20 00 	orcc  %o0, 0, %l1                              
 2002990:	02 80 00 15 	be  20029e4 <create_disk+0x1b0>                <== NEVER TAKEN
 2002994:	b4 10 00 08 	mov  %o0, %i2                                  
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
  }                                                                   
                                                                      
  if (name != NULL) {                                                 
    if (mknod(alloc_name, 0777 | S_IFBLK, dev) < 0) {                 
 2002998:	94 10 00 1d 	mov  %i5, %o2                                  
 200299c:	13 00 00 18 	sethi  %hi(0x6000), %o1                        
 20029a0:	96 10 00 19 	mov  %i1, %o3                                  
 20029a4:	40 00 05 59 	call  2003f08 <mknod>                          
 20029a8:	92 12 61 ff 	or  %o1, 0x1ff, %o1                            
 20029ac:	80 a2 20 00 	cmp  %o0, 0                                    
 20029b0:	06 80 00 0b 	bl  20029dc <create_disk+0x1a8>                <== NEVER TAKEN
 20029b4:	90 10 00 1a 	mov  %i2, %o0                                  
      free(dd);                                                       
      return RTEMS_UNSATISFIED;                                       
    }                                                                 
  }                                                                   
                                                                      
  dd->dev = dev;                                                      
 20029b8:	fa 24 00 00 	st  %i5, [ %l0 ]                               
 20029bc:	f2 24 20 04 	st  %i1, [ %l0 + 4 ]                           
  dd->name = alloc_name;                                              
 20029c0:	e2 24 20 10 	st  %l1, [ %l0 + 0x10 ]                        
  dd->uses = 0;                                                       
 20029c4:	c0 24 20 14 	clr  [ %l0 + 0x14 ]                            
  dd->deleted = false;                                                
 20029c8:	c0 2c 20 30 	clrb  [ %l0 + 0x30 ]                           
                                                                      
  *dd_entry = dd;                                                     
 20029cc:	e0 27 00 00 	st  %l0, [ %i4 ]                               
  *dd_ptr = dd;                                                       
 20029d0:	e0 26 c0 00 	st  %l0, [ %i3 ]                               
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 20029d4:	81 c7 e0 08 	ret                                            
 20029d8:	91 e8 20 00 	restore  %g0, 0, %o0                           
    }                                                                 
  }                                                                   
                                                                      
  if (name != NULL) {                                                 
    if (mknod(alloc_name, 0777 | S_IFBLK, dev) < 0) {                 
      free(alloc_name);                                               
 20029dc:	40 00 04 19 	call  2003a40 <free>                           <== NOT EXECUTED
 20029e0:	b0 10 20 0d 	mov  0xd, %i0                                  <== NOT EXECUTED
      free(dd);                                                       
 20029e4:	40 00 04 17 	call  2003a40 <free>                           <== NOT EXECUTED
 20029e8:	90 10 00 10 	mov  %l0, %o0                                  <== NOT EXECUTED
      return RTEMS_UNSATISFIED;                                       
 20029ec:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 20029f0:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

0200a8b0 <devFS_evaluate_path>: const char *pathname, size_t pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) {
 200a8b0:	9d e3 bf a0 	save  %sp, -96, %sp                            
  int                   i;                                            
  rtems_device_name_t  *device_name_table;                            
                                                                      
  /* see if 'flags' is valid */                                       
  if ( !rtems_libio_is_valid_perms( flags ) )                         
 200a8b4:	80 8e bf f8 	btst  -8, %i2                                  
 200a8b8:	12 80 00 33 	bne  200a984 <devFS_evaluate_path+0xd4>        <== NEVER TAKEN
 200a8bc:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( EPERM );                    
                                                                      
  /* get the device name table */                                     
  device_name_table = (rtems_device_name_t *)pathloc->node_access;    
 200a8c0:	f4 06 c0 00 	ld  [ %i3 ], %i2                               
  if (!device_name_table)                                             
 200a8c4:	80 a6 a0 00 	cmp  %i2, 0                                    
 200a8c8:	02 80 00 35 	be  200a99c <devFS_evaluate_path+0xec>         
 200a8cc:	03 00 80 63 	sethi  %hi(0x2018c00), %g1                     
    rtems_set_errno_and_return_minus_one( EFAULT );                   
                                                                      
  for (i = 0; i < rtems_device_table_size; i++) {                     
 200a8d0:	e0 00 62 34 	ld  [ %g1 + 0x234 ], %l0	! 2018e34 <rtems_device_table_size>
 *  handlers.                                                         
 */                                                                   
                                                                      
extern rtems_filesystem_file_handlers_r  devFS_file_handlers;         
                                                                      
int devFS_evaluate_path(                                              
 200a8d4:	ba 10 20 00 	clr  %i5                                       
  /* 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++) {                     
 200a8d8:	80 a4 20 00 	cmp  %l0, 0                                    
 200a8dc:	02 80 00 18 	be  200a93c <devFS_evaluate_path+0x8c>         <== NEVER TAKEN
 200a8e0:	82 10 20 00 	clr  %g1                                       
    if (!device_name_table[i].device_name)                            
 200a8e4:	a3 28 60 02 	sll  %g1, 2, %l1                               
 200a8e8:	83 28 60 04 	sll  %g1, 4, %g1                               
 200a8ec:	a2 04 40 01 	add  %l1, %g1, %l1                             
 200a8f0:	f8 06 80 11 	ld  [ %i2 + %l1 ], %i4                         
 200a8f4:	80 a7 20 00 	cmp  %i4, 0                                    
 200a8f8:	02 80 00 0d 	be  200a92c <devFS_evaluate_path+0x7c>         
 200a8fc:	a2 06 80 11 	add  %i2, %l1, %l1                             
      continue;                                                       
                                                                      
    if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0)
 200a900:	90 10 00 18 	mov  %i0, %o0                                  
 200a904:	92 10 00 1c 	mov  %i4, %o1                                  
 200a908:	40 00 0f 45 	call  200e61c <strncmp>                        
 200a90c:	94 10 00 19 	mov  %i1, %o2                                  
 200a910:	80 a2 20 00 	cmp  %o0, 0                                    
 200a914:	32 80 00 07 	bne,a   200a930 <devFS_evaluate_path+0x80>     
 200a918:	ba 07 60 01 	inc  %i5                                       
      continue;                                                       
                                                                      
    if (device_name_table[i].device_name[pathnamelen] != '\0')        
 200a91c:	c2 4f 00 19 	ldsb  [ %i4 + %i1 ], %g1                       
 200a920:	80 a0 60 00 	cmp  %g1, 0                                    
 200a924:	02 80 00 0c 	be  200a954 <devFS_evaluate_path+0xa4>         
 200a928:	03 00 80 63 	sethi  %hi(0x2018c00), %g1                     
  /* 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++) {                     
 200a92c:	ba 07 60 01 	inc  %i5                                       
 200a930:	80 a7 40 10 	cmp  %i5, %l0                                  
 200a934:	12 bf ff ec 	bne  200a8e4 <devFS_evaluate_path+0x34>        
 200a938:	82 10 00 1d 	mov  %i5, %g1                                  
    pathloc->mt_entry = rtems_filesystem_root.mt_entry;               
    return 0;                                                         
  }                                                                   
                                                                      
  /* no such file or directory */                                     
  rtems_set_errno_and_return_minus_one( ENOENT );                     
 200a93c:	40 00 0b 96 	call  200d794 <__errno>                        
 200a940:	b0 10 3f ff 	mov  -1, %i0                                   
 200a944:	82 10 20 02 	mov  2, %g1                                    
 200a948:	c2 22 00 00 	st  %g1, [ %o0 ]                               
}                                                                     
 200a94c:	81 c7 e0 08 	ret                                            
 200a950:	81 e8 00 00 	restore                                        
                                                                      
    /* 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;               
 200a954:	c2 00 63 9c 	ld  [ %g1 + 0x39c ], %g1                       
    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;                         
 200a958:	05 00 80 63 	sethi  %hi(0x2018c00), %g2                     
    pathloc->ops = &devFS_ops;                                        
    pathloc->mt_entry = rtems_filesystem_root.mt_entry;               
 200a95c:	c2 00 60 28 	ld  [ %g1 + 0x28 ], %g1                        
    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;                         
 200a960:	84 10 a2 fc 	or  %g2, 0x2fc, %g2                            
                                                                      
    if (device_name_table[i].device_name[pathnamelen] != '\0')        
      continue;                                                       
                                                                      
    /* find the device, set proper values */                          
    pathloc->node_access = (void *)&device_name_table[i];             
 200a964:	e2 26 c0 00 	st  %l1, [ %i3 ]                               
    pathloc->handlers = &devFS_file_handlers;                         
 200a968:	c4 26 e0 08 	st  %g2, [ %i3 + 8 ]                           
    pathloc->ops = &devFS_ops;                                        
    pathloc->mt_entry = rtems_filesystem_root.mt_entry;               
 200a96c:	c2 26 e0 10 	st  %g1, [ %i3 + 0x10 ]                        
      continue;                                                       
                                                                      
    /* find the device, set proper values */                          
    pathloc->node_access = (void *)&device_name_table[i];             
    pathloc->handlers = &devFS_file_handlers;                         
    pathloc->ops = &devFS_ops;                                        
 200a970:	05 00 80 63 	sethi  %hi(0x2018c00), %g2                     
 200a974:	84 10 a3 34 	or  %g2, 0x334, %g2	! 2018f34 <devFS_ops>      
 200a978:	c4 26 e0 0c 	st  %g2, [ %i3 + 0xc ]                         
    pathloc->mt_entry = rtems_filesystem_root.mt_entry;               
    return 0;                                                         
 200a97c:	81 c7 e0 08 	ret                                            
 200a980:	91 e8 20 00 	restore  %g0, 0, %o0                           
  int                   i;                                            
  rtems_device_name_t  *device_name_table;                            
                                                                      
  /* see if 'flags' is valid */                                       
  if ( !rtems_libio_is_valid_perms( flags ) )                         
    rtems_set_errno_and_return_minus_one( EPERM );                    
 200a984:	40 00 0b 84 	call  200d794 <__errno>                        <== NOT EXECUTED
 200a988:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
 200a98c:	82 10 20 01 	mov  1, %g1                                    <== NOT EXECUTED
 200a990:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
 200a994:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200a998:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      
  /* 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 );                   
 200a99c:	40 00 0b 7e 	call  200d794 <__errno>                        
 200a9a0:	b0 10 3f ff 	mov  -1, %i0                                   
 200a9a4:	82 10 20 0e 	mov  0xe, %g1                                  
 200a9a8:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200a9ac:	81 c7 e0 08 	ret                                            
 200a9b0:	81 e8 00 00 	restore                                        
                                                                      

02002d68 <devFS_mknod>: const char *path, mode_t mode, dev_t dev, rtems_filesystem_location_info_t *pathloc ) {
 2002d68:	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') &&                         
 2002d6c:	c2 4e 00 00 	ldsb  [ %i0 ], %g1                             
 2002d70:	80 a0 60 64 	cmp  %g1, 0x64                                 
 2002d74:	02 80 00 43 	be  2002e80 <devFS_mknod+0x118>                
 2002d78:	ba 10 00 18 	mov  %i0, %i5                                  
      (path[2] == 'v') && (path[3] == '\0'))                          
      return 0;                                                       
                                                                      
  /* must be a character device or a block device */                  
  if (!S_ISBLK(mode) && !S_ISCHR(mode))                               
 2002d7c:	03 00 00 3c 	sethi  %hi(0xf000), %g1                        
 2002d80:	05 00 00 08 	sethi  %hi(0x2000), %g2                        
 2002d84:	82 0e 40 01 	and  %i1, %g1, %g1                             
 2002d88:	80 a0 40 02 	cmp  %g1, %g2                                  
 2002d8c:	12 80 00 4b 	bne  2002eb8 <devFS_mknod+0x150>               
 2002d90:	05 00 00 18 	sethi  %hi(0x6000), %g2                        
    rtems_set_errno_and_return_minus_one( EINVAL );                   
  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;    
 2002d94:	f0 07 00 00 	ld  [ %i4 ], %i0                               
  if (!device_name_table)                                             
 2002d98:	80 a6 20 00 	cmp  %i0, 0                                    
 2002d9c:	02 80 00 56 	be  2002ef4 <devFS_mknod+0x18c>                
 2002da0:	03 00 80 63 	sethi  %hi(0x2018c00), %g1                     
    rtems_set_errno_and_return_minus_one( EFAULT );                   
                                                                      
  for (slot = -1, i = 0; i < rtems_device_table_size; i++){           
 2002da4:	e0 00 62 34 	ld  [ %g1 + 0x234 ], %l0	! 2018e34 <rtems_device_table_size>
 2002da8:	80 a4 20 00 	cmp  %l0, 0                                    
 2002dac:	02 80 00 4c 	be  2002edc <devFS_mknod+0x174>                
 2002db0:	82 10 20 00 	clr  %g1                                       
#include <stdlib.h>                                                   
                                                                      
#include <rtems/seterr.h>                                             
#include "devfs.h"                                                    
                                                                      
int devFS_mknod(                                                      
 2002db4:	a2 10 3f ff 	mov  -1, %l1                                   
 2002db8:	10 80 00 0a 	b  2002de0 <devFS_mknod+0x78>                  
 2002dbc:	b8 10 20 00 	clr  %i4                                       
                                                                      
  for (slot = -1, i = 0; i < rtems_device_table_size; i++){           
      if (device_name_table[i].device_name == NULL)                   
          slot = i;                                                   
      else                                                            
          if (strcmp(path, device_name_table[i].device_name) == 0)    
 2002dc0:	40 00 2d b9 	call  200e4a4 <strcmp>                         
 2002dc4:	01 00 00 00 	nop                                            
 2002dc8:	80 a2 20 00 	cmp  %o0, 0                                    
 2002dcc:	02 80 00 27 	be  2002e68 <devFS_mknod+0x100>                
 2002dd0:	b8 07 20 01 	inc  %i4                                       
  /* 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++){           
 2002dd4:	80 a7 00 10 	cmp  %i4, %l0                                  
 2002dd8:	02 80 00 0e 	be  2002e10 <devFS_mknod+0xa8>                 
 2002ddc:	82 10 00 1c 	mov  %i4, %g1                                  
      if (device_name_table[i].device_name == NULL)                   
 2002de0:	85 28 60 02 	sll  %g1, 2, %g2                               
 2002de4:	83 28 60 04 	sll  %g1, 4, %g1                               
 2002de8:	82 00 80 01 	add  %g2, %g1, %g1                             
 2002dec:	d2 06 00 01 	ld  [ %i0 + %g1 ], %o1                         
 2002df0:	80 a2 60 00 	cmp  %o1, 0                                    
 2002df4:	12 bf ff f3 	bne  2002dc0 <devFS_mknod+0x58>                
 2002df8:	90 10 00 1d 	mov  %i5, %o0                                  
 2002dfc:	a2 10 00 1c 	mov  %i4, %l1                                  
  /* 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++){           
 2002e00:	b8 07 20 01 	inc  %i4                                       
 2002e04:	80 a7 00 10 	cmp  %i4, %l0                                  
 2002e08:	12 bf ff f6 	bne  2002de0 <devFS_mknod+0x78>                
 2002e0c:	82 10 00 1c 	mov  %i4, %g1                                  
      else                                                            
          if (strcmp(path, device_name_table[i].device_name) == 0)    
              rtems_set_errno_and_return_minus_one( EEXIST );         
  }                                                                   
                                                                      
  if (slot == -1)                                                     
 2002e10:	80 a4 7f ff 	cmp  %l1, -1                                   
 2002e14:	02 80 00 32 	be  2002edc <devFS_mknod+0x174>                <== NEVER TAKEN
 2002e18:	01 00 00 00 	nop                                            
      rtems_set_errno_and_return_minus_one( ENOMEM );                 
                                                                      
  _ISR_Disable(level);                                                
 2002e1c:	7f ff ff 44 	call  2002b2c <sparc_disable_interrupts>       
 2002e20:	01 00 00 00 	nop                                            
 2002e24:	a0 10 00 08 	mov  %o0, %l0                                  
  device_name_table[slot].device_name  = (char *)path;                
 2002e28:	83 2c 60 02 	sll  %l1, 2, %g1                               
  device_name_table[slot].device_name_length = strlen(path);          
 2002e2c:	90 10 00 1d 	mov  %i5, %o0                                  
                                                                      
  if (slot == -1)                                                     
      rtems_set_errno_and_return_minus_one( ENOMEM );                 
                                                                      
  _ISR_Disable(level);                                                
  device_name_table[slot].device_name  = (char *)path;                
 2002e30:	a3 2c 60 04 	sll  %l1, 4, %l1                               
 2002e34:	a2 00 40 11 	add  %g1, %l1, %l1                             
 2002e38:	b8 06 00 11 	add  %i0, %l1, %i4                             
  device_name_table[slot].device_name_length = strlen(path);          
 2002e3c:	40 00 2d c7 	call  200e558 <strlen>                         
 2002e40:	fa 26 00 11 	st  %i5, [ %i0 + %l1 ]                         
  device_name_table[slot].major = major;                              
 2002e44:	f4 27 20 08 	st  %i2, [ %i4 + 8 ]                           
  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);          
 2002e48:	d0 27 20 04 	st  %o0, [ %i4 + 4 ]                           
  device_name_table[slot].major = major;                              
  device_name_table[slot].minor = minor;                              
 2002e4c:	f6 27 20 0c 	st  %i3, [ %i4 + 0xc ]                         
  device_name_table[slot].mode  = mode;                               
 2002e50:	f2 27 20 10 	st  %i1, [ %i4 + 0x10 ]                        
  _ISR_Enable(level);                                                 
                                                                      
  return 0;                                                           
 2002e54:	b0 10 20 00 	clr  %i0                                       
  device_name_table[slot].device_name  = (char *)path;                
  device_name_table[slot].device_name_length = strlen(path);          
  device_name_table[slot].major = major;                              
  device_name_table[slot].minor = minor;                              
  device_name_table[slot].mode  = mode;                               
  _ISR_Enable(level);                                                 
 2002e58:	7f ff ff 39 	call  2002b3c <sparc_enable_interrupts>        
 2002e5c:	90 10 00 10 	mov  %l0, %o0                                  
                                                                      
  return 0;                                                           
}                                                                     
 2002e60:	81 c7 e0 08 	ret                                            
 2002e64:	81 e8 00 00 	restore                                        
  for (slot = -1, i = 0; i < rtems_device_table_size; i++){           
      if (device_name_table[i].device_name == NULL)                   
          slot = i;                                                   
      else                                                            
          if (strcmp(path, device_name_table[i].device_name) == 0)    
              rtems_set_errno_and_return_minus_one( EEXIST );         
 2002e68:	40 00 2a 4b 	call  200d794 <__errno>                        
 2002e6c:	b0 10 3f ff 	mov  -1, %i0                                   
 2002e70:	82 10 20 11 	mov  0x11, %g1                                 
 2002e74:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2002e78:	81 c7 e0 08 	ret                                            
 2002e7c:	81 e8 00 00 	restore                                        
   * 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') &&                         
 2002e80:	c2 4e 20 01 	ldsb  [ %i0 + 1 ], %g1                         
 2002e84:	80 a0 60 65 	cmp  %g1, 0x65                                 
 2002e88:	12 bf ff be 	bne  2002d80 <devFS_mknod+0x18>                <== NEVER TAKEN
 2002e8c:	03 00 00 3c 	sethi  %hi(0xf000), %g1                        
 2002e90:	c2 4e 20 02 	ldsb  [ %i0 + 2 ], %g1                         
 2002e94:	80 a0 60 76 	cmp  %g1, 0x76                                 
 2002e98:	12 bf ff ba 	bne  2002d80 <devFS_mknod+0x18>                <== NEVER TAKEN
 2002e9c:	03 00 00 3c 	sethi  %hi(0xf000), %g1                        
      (path[2] == 'v') && (path[3] == '\0'))                          
 2002ea0:	c2 4e 20 03 	ldsb  [ %i0 + 3 ], %g1                         
 2002ea4:	80 a0 60 00 	cmp  %g1, 0                                    
 2002ea8:	12 bf ff b5 	bne  2002d7c <devFS_mknod+0x14>                
 2002eac:	b0 10 20 00 	clr  %i0                                       
  device_name_table[slot].minor = minor;                              
  device_name_table[slot].mode  = mode;                               
  _ISR_Enable(level);                                                 
                                                                      
  return 0;                                                           
}                                                                     
 2002eb0:	81 c7 e0 08 	ret                                            
 2002eb4:	81 e8 00 00 	restore                                        
  if ((path[0] == 'd') && (path[1] == 'e') &&                         
      (path[2] == 'v') && (path[3] == '\0'))                          
      return 0;                                                       
                                                                      
  /* must be a character device or a block device */                  
  if (!S_ISBLK(mode) && !S_ISCHR(mode))                               
 2002eb8:	80 a0 40 02 	cmp  %g1, %g2                                  
 2002ebc:	22 bf ff b7 	be,a   2002d98 <devFS_mknod+0x30>              
 2002ec0:	f0 07 00 00 	ld  [ %i4 ], %i0                               
    rtems_set_errno_and_return_minus_one( EINVAL );                   
 2002ec4:	40 00 2a 34 	call  200d794 <__errno>                        
 2002ec8:	b0 10 3f ff 	mov  -1, %i0                                   
 2002ecc:	82 10 20 16 	mov  0x16, %g1                                 
 2002ed0:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2002ed4:	81 c7 e0 08 	ret                                            
 2002ed8:	81 e8 00 00 	restore                                        
          if (strcmp(path, device_name_table[i].device_name) == 0)    
              rtems_set_errno_and_return_minus_one( EEXIST );         
  }                                                                   
                                                                      
  if (slot == -1)                                                     
      rtems_set_errno_and_return_minus_one( ENOMEM );                 
 2002edc:	40 00 2a 2e 	call  200d794 <__errno>                        
 2002ee0:	b0 10 3f ff 	mov  -1, %i0                                   
 2002ee4:	82 10 20 0c 	mov  0xc, %g1                                  
 2002ee8:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2002eec:	81 c7 e0 08 	ret                                            
 2002ef0:	81 e8 00 00 	restore                                        
    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)                                             
    rtems_set_errno_and_return_minus_one( EFAULT );                   
 2002ef4:	40 00 2a 28 	call  200d794 <__errno>                        
 2002ef8:	b0 10 3f ff 	mov  -1, %i0                                   
 2002efc:	82 10 20 0e 	mov  0xe, %g1                                  
 2002f00:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2002f04:	81 c7 e0 08 	ret                                            
 2002f08:	81 e8 00 00 	restore                                        
                                                                      

020027bc <disk_lock>: */ static volatile bool diskdevs_protected; static rtems_status_code disk_lock(void) {
 20027bc:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  sc = rtems_semaphore_obtain(diskdevs_mutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
 20027c0:	03 00 80 6a 	sethi  %hi(0x201a800), %g1                     
 20027c4:	d0 00 60 8c 	ld  [ %g1 + 0x8c ], %o0	! 201a88c <diskdevs_mutex>
 20027c8:	92 10 20 00 	clr  %o1                                       
 20027cc:	94 10 20 00 	clr  %o2                                       
 20027d0:	40 00 13 a4 	call  2007660 <rtems_semaphore_obtain>         
 20027d4:	b0 10 20 16 	mov  0x16, %i0                                 
  if (sc == RTEMS_SUCCESSFUL) {                                       
 20027d8:	80 a2 20 00 	cmp  %o0, 0                                    
 20027dc:	12 80 00 05 	bne  20027f0 <disk_lock+0x34>                  <== NEVER TAKEN
 20027e0:	84 10 20 01 	mov  1, %g2                                    
    diskdevs_protected = true;                                        
 20027e4:	03 00 80 6a 	sethi  %hi(0x201a800), %g1                     
                                                                      
    return RTEMS_SUCCESSFUL;                                          
 20027e8:	b0 10 20 00 	clr  %i0                                       
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  sc = rtems_semaphore_obtain(diskdevs_mutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
  if (sc == RTEMS_SUCCESSFUL) {                                       
    diskdevs_protected = true;                                        
 20027ec:	c4 28 60 88 	stb  %g2, [ %g1 + 0x88 ]                       
                                                                      
    return RTEMS_SUCCESSFUL;                                          
  } else {                                                            
    return RTEMS_NOT_CONFIGURED;                                      
  }                                                                   
}                                                                     
 20027f0:	81 c7 e0 08 	ret                                            
 20027f4:	81 e8 00 00 	restore                                        
                                                                      

020027f8 <disk_unlock>: static void disk_unlock(void) {
 20027f8:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  diskdevs_protected = false;                                         
                                                                      
  sc = rtems_semaphore_release(diskdevs_mutex);                       
 20027fc:	03 00 80 6a 	sethi  %hi(0x201a800), %g1                     
 2002800:	d0 00 60 8c 	ld  [ %g1 + 0x8c ], %o0	! 201a88c <diskdevs_mutex>
static void                                                           
disk_unlock(void)                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  diskdevs_protected = false;                                         
 2002804:	03 00 80 6a 	sethi  %hi(0x201a800), %g1                     
 2002808:	c0 28 60 88 	clrb  [ %g1 + 0x88 ]	! 201a888 <diskdevs_protected>
                                                                      
  sc = rtems_semaphore_release(diskdevs_mutex);                       
 200280c:	40 00 13 df 	call  2007788 <rtems_semaphore_release>        
 2002810:	01 00 00 00 	nop                                            
  if (sc != RTEMS_SUCCESSFUL) {                                       
 2002814:	80 a2 20 00 	cmp  %o0, 0                                    
 2002818:	12 80 00 04 	bne  2002828 <disk_unlock+0x30>                <== NEVER TAKEN
 200281c:	11 37 ab 6f 	sethi  %hi(0xdeadbc00), %o0                    
 2002820:	81 c7 e0 08 	ret                                            
 2002824:	81 e8 00 00 	restore                                        
    /* FIXME: Error number */                                         
    rtems_fatal_error_occurred(0xdeadbeef);                           
 2002828:	40 00 15 28 	call  2007cc8 <rtems_fatal_error_occurred>     <== NOT EXECUTED
 200282c:	90 12 22 ef 	or  %o0, 0x2ef, %o0                            <== NOT EXECUTED
                                                                      

02003f78 <drainOutput.part.0>: /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty)
 2003f78:	9d e3 bf a0 	save  %sp, -96, %sp                            
{                                                                     
  rtems_interrupt_level level;                                        
  rtems_status_code sc;                                               
                                                                      
  if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) {           
    rtems_interrupt_disable (level);                                  
 2003f7c:	7f ff f8 9a 	call  20021e4 <sparc_disable_interrupts>       
 2003f80:	ba 10 00 18 	mov  %i0, %i5                                  
    while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) {              
 2003f84:	c4 06 20 84 	ld  [ %i0 + 0x84 ], %g2                        
 2003f88:	c2 06 20 80 	ld  [ %i0 + 0x80 ], %g1                        
 2003f8c:	80 a0 80 01 	cmp  %g2, %g1                                  
 2003f90:	02 80 00 14 	be  2003fe0 <drainOutput.part.0+0x68>          <== ALWAYS TAKEN
 2003f94:	01 00 00 00 	nop                                            
      tty->rawOutBufState = rob_wait;                                 
 2003f98:	b8 10 20 02 	mov  2, %i4	! 2 <PROM_START+0x2>               <== NOT EXECUTED
 2003f9c:	f8 27 60 94 	st  %i4, [ %i5 + 0x94 ]                        <== NOT EXECUTED
      rtems_interrupt_enable (level);                                 
 2003fa0:	7f ff f8 95 	call  20021f4 <sparc_enable_interrupts>        <== NOT EXECUTED
 2003fa4:	01 00 00 00 	nop                                            <== NOT EXECUTED
      sc = rtems_semaphore_obtain(                                    
 2003fa8:	d0 07 60 8c 	ld  [ %i5 + 0x8c ], %o0                        <== NOT EXECUTED
 2003fac:	92 10 20 00 	clr  %o1                                       <== NOT EXECUTED
 2003fb0:	40 00 0a 64 	call  2006940 <rtems_semaphore_obtain>         <== NOT EXECUTED
 2003fb4:	94 10 20 00 	clr  %o2                                       <== NOT EXECUTED
        tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);      
      if (sc != RTEMS_SUCCESSFUL)                                     
 2003fb8:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
 2003fbc:	12 80 00 0b 	bne  2003fe8 <drainOutput.part.0+0x70>         <== NOT EXECUTED
 2003fc0:	01 00 00 00 	nop                                            <== NOT EXECUTED
        rtems_fatal_error_occurred (sc);                              
      rtems_interrupt_disable (level);                                
 2003fc4:	7f ff f8 88 	call  20021e4 <sparc_disable_interrupts>       <== NOT EXECUTED
 2003fc8:	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) {              
 2003fcc:	c4 07 60 84 	ld  [ %i5 + 0x84 ], %g2                        <== NOT EXECUTED
 2003fd0:	c2 07 60 80 	ld  [ %i5 + 0x80 ], %g1                        <== NOT EXECUTED
 2003fd4:	80 a0 80 01 	cmp  %g2, %g1                                  <== NOT EXECUTED
 2003fd8:	32 bf ff f2 	bne,a   2003fa0 <drainOutput.part.0+0x28>      <== NOT EXECUTED
 2003fdc:	f8 27 60 94 	st  %i4, [ %i5 + 0x94 ]                        <== NOT EXECUTED
        tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);      
      if (sc != RTEMS_SUCCESSFUL)                                     
        rtems_fatal_error_occurred (sc);                              
      rtems_interrupt_disable (level);                                
    }                                                                 
    rtems_interrupt_enable (level);                                   
 2003fe0:	7f ff f8 85 	call  20021f4 <sparc_enable_interrupts>        
 2003fe4:	91 e8 00 08 	restore  %g0, %o0, %o0                         
      tty->rawOutBufState = rob_wait;                                 
      rtems_interrupt_enable (level);                                 
      sc = rtems_semaphore_obtain(                                    
        tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);      
      if (sc != RTEMS_SUCCESSFUL)                                     
        rtems_fatal_error_occurred (sc);                              
 2003fe8:	40 00 0c 1a 	call  2007050 <rtems_fatal_error_occurred>     <== NOT EXECUTED
                                                                      

02004d1c <echo>: /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) {
 2004d1c:	9d e3 bf 98 	save  %sp, -104, %sp                           
  if ((tty->termios.c_lflag & ECHOCTL) &&                             
 2004d20:	c2 06 60 3c 	ld  [ %i1 + 0x3c ], %g1                        
 2004d24:	80 88 62 00 	btst  0x200, %g1                               
 2004d28:	02 80 00 08 	be  2004d48 <echo+0x2c>                        <== NEVER TAKEN
 2004d2c:	03 00 80 74 	sethi  %hi(0x201d000), %g1                     
       iscntrl(c) && (c != '\t') && (c != '\n')) {                    
 2004d30:	c2 00 60 34 	ld  [ %g1 + 0x34 ], %g1	! 201d034 <__ctype_ptr__>
 2004d34:	82 00 40 18 	add  %g1, %i0, %g1                             
 2004d38:	c2 08 60 01 	ldub  [ %g1 + 1 ], %g1                         
 2004d3c:	80 88 60 20 	btst  0x20, %g1                                
 2004d40:	12 80 00 07 	bne  2004d5c <echo+0x40>                       
 2004d44:	80 a6 20 09 	cmp  %i0, 9                                    
    echobuf[0] = '^';                                                 
    echobuf[1] = c ^ 0x40;                                            
    rtems_termios_puts (echobuf, 2, tty);                             
    tty->column += 2;                                                 
  } else {                                                            
    oproc (c, tty);                                                   
 2004d48:	90 10 00 18 	mov  %i0, %o0                                  
 2004d4c:	7f ff ff 8d 	call  2004b80 <oproc>                          
 2004d50:	92 10 00 19 	mov  %i1, %o1                                  
 2004d54:	81 c7 e0 08 	ret                                            
 2004d58:	81 e8 00 00 	restore                                        
 */                                                                   
static void                                                           
echo (unsigned char c, struct rtems_termios_tty *tty)                 
{                                                                     
  if ((tty->termios.c_lflag & ECHOCTL) &&                             
       iscntrl(c) && (c != '\t') && (c != '\n')) {                    
 2004d5c:	02 bf ff fc 	be  2004d4c <echo+0x30>                        
 2004d60:	90 10 00 18 	mov  %i0, %o0                                  
 2004d64:	80 a6 20 0a 	cmp  %i0, 0xa                                  
 2004d68:	02 bf ff f9 	be  2004d4c <echo+0x30>                        
 2004d6c:	82 10 20 5e 	mov  0x5e, %g1                                 
    char echobuf[2];                                                  
                                                                      
    echobuf[0] = '^';                                                 
    echobuf[1] = c ^ 0x40;                                            
 2004d70:	b0 1e 20 40 	xor  %i0, 0x40, %i0                            
{                                                                     
  if ((tty->termios.c_lflag & ECHOCTL) &&                             
       iscntrl(c) && (c != '\t') && (c != '\n')) {                    
    char echobuf[2];                                                  
                                                                      
    echobuf[0] = '^';                                                 
 2004d74:	c2 2f bf f8 	stb  %g1, [ %fp + -8 ]                         
    echobuf[1] = c ^ 0x40;                                            
 2004d78:	f0 2f bf f9 	stb  %i0, [ %fp + -7 ]                         
    rtems_termios_puts (echobuf, 2, tty);                             
 2004d7c:	90 07 bf f8 	add  %fp, -8, %o0                              
 2004d80:	92 10 20 02 	mov  2, %o1                                    
 2004d84:	7f ff ff 2f 	call  2004a40 <rtems_termios_puts>             
 2004d88:	94 10 00 19 	mov  %i1, %o2                                  
    tty->column += 2;                                                 
 2004d8c:	c2 06 60 28 	ld  [ %i1 + 0x28 ], %g1                        
 2004d90:	82 00 60 02 	add  %g1, 2, %g1                               
 2004d94:	c2 26 60 28 	st  %g1, [ %i1 + 0x28 ]                        
 2004d98:	81 c7 e0 08 	ret                                            
 2004d9c:	81 e8 00 00 	restore                                        
                                                                      

02003c10 <endgrent>: void endgrent(void) { if (group_fp != NULL)
 2003c10:	03 00 80 61 	sethi  %hi(0x2018400), %g1                     
 2003c14:	d0 00 62 40 	ld  [ %g1 + 0x240 ], %o0	! 2018640 <group_fp>  
 2003c18:	80 a2 20 00 	cmp  %o0, 0                                    
 2003c1c:	02 80 00 05 	be  2003c30 <endgrent+0x20>                    <== NEVER TAKEN
 2003c20:	01 00 00 00 	nop                                            
    fclose(group_fp);                                                 
 2003c24:	82 13 c0 00 	mov  %o7, %g1                                  
 2003c28:	40 00 32 59 	call  201058c <fclose>                         
 2003c2c:	9e 10 40 00 	mov  %g1, %o7                                  
 2003c30:	81 c3 e0 08 	retl                                           <== NOT EXECUTED
                                                                      

02003a84 <endpwent>: void endpwent(void) { if (passwd_fp != NULL)
 2003a84:	03 00 80 61 	sethi  %hi(0x2018400), %g1                     
 2003a88:	d0 00 61 60 	ld  [ %g1 + 0x160 ], %o0	! 2018560 <passwd_fp> 
 2003a8c:	80 a2 20 00 	cmp  %o0, 0                                    
 2003a90:	02 80 00 05 	be  2003aa4 <endpwent+0x20>                    <== NEVER TAKEN
 2003a94:	01 00 00 00 	nop                                            
    fclose(passwd_fp);                                                
 2003a98:	82 13 c0 00 	mov  %o7, %g1                                  
 2003a9c:	40 00 32 bc 	call  201058c <fclose>                         
 2003aa0:	9e 10 40 00 	mov  %g1, %o7                                  
 2003aa4:	81 c3 e0 08 	retl                                           <== NOT EXECUTED
                                                                      

02004da0 <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) {
 2004da0:	9d e3 bf a0 	save  %sp, -96, %sp                            
  if (tty->ccount == 0)                                               
 2004da4:	c2 06 20 20 	ld  [ %i0 + 0x20 ], %g1                        
 2004da8:	80 a0 60 00 	cmp  %g1, 0                                    
 2004dac:	02 80 00 37 	be  2004e88 <erase+0xe8>                       
 2004db0:	ba 10 00 18 	mov  %i0, %i5                                  
    return;                                                           
  if (lineFlag) {                                                     
    if (!(tty->termios.c_lflag & ECHO)) {                             
 2004db4:	c6 06 20 3c 	ld  [ %i0 + 0x3c ], %g3                        
static void                                                           
erase (struct rtems_termios_tty *tty, int lineFlag)                   
{                                                                     
  if (tty->ccount == 0)                                               
    return;                                                           
  if (lineFlag) {                                                     
 2004db8:	80 a6 60 00 	cmp  %i1, 0                                    
 2004dbc:	12 80 00 35 	bne  2004e90 <erase+0xf0>                      
 2004dc0:	84 08 e0 08 	and  %g3, 8, %g2                               
          tty->column--;                                              
        }                                                             
      }                                                               
      else {                                                          
        if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) {        
          rtems_termios_puts ("\b \b", 3, tty);                       
 2004dc4:	31 00 80 6e 	sethi  %hi(0x201b800), %i0                     
                                                                      
        /*                                                            
         * Back up over the tab                                       
         */                                                           
        while (tty->column > col) {                                   
          rtems_termios_puts ("\b", 1, tty);                          
 2004dc8:	37 00 80 6e 	sethi  %hi(0x201b800), %i3                     
          tty->column--;                                              
        }                                                             
      }                                                               
      else {                                                          
        if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) {        
 2004dcc:	35 00 80 74 	sethi  %hi(0x201d000), %i2                     
          rtems_termios_puts ("\b \b", 3, tty);                       
 2004dd0:	b0 16 20 a8 	or  %i0, 0xa8, %i0                             
                                                                      
        /*                                                            
         * Back up over the tab                                       
         */                                                           
        while (tty->column > col) {                                   
          rtems_termios_puts ("\b", 1, tty);                          
 2004dd4:	10 80 00 0d 	b  2004e08 <erase+0x68>                        
 2004dd8:	b6 16 e0 a0 	or  %i3, 0xa0, %i3                             
          tty->column--;                                              
        }                                                             
      }                                                               
      else {                                                          
        if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) {        
 2004ddc:	12 80 00 6b 	bne  2004f88 <erase+0x1e8>                     <== NOT EXECUTED
 2004de0:	90 10 00 18 	mov  %i0, %o0                                  <== NOT EXECUTED
          if (tty->column)                                            
            tty->column--;                                            
        }                                                             
      }                                                               
    }                                                                 
    if (!lineFlag)                                                    
 2004de4:	80 a6 60 00 	cmp  %i1, 0                                    <== NOT EXECUTED
 2004de8:	02 80 00 66 	be  2004f80 <erase+0x1e0>                      <== NEVER TAKEN
 2004dec:	01 00 00 00 	nop                                            
        echo ('\n', tty);                                             
      return;                                                         
    }                                                                 
  }                                                                   
                                                                      
  while (tty->ccount) {                                               
 2004df0:	c2 07 60 20 	ld  [ %i5 + 0x20 ], %g1                        
 2004df4:	80 a0 60 00 	cmp  %g1, 0                                    
 2004df8:	02 80 00 62 	be  2004f80 <erase+0x1e0>                      
 2004dfc:	01 00 00 00 	nop                                            
    }                                                                 
    if (!(tty->termios.c_lflag & ECHOE)) {                            
      tty->ccount = 0;                                                
      echo (tty->termios.c_cc[VKILL], tty);                           
      if (tty->termios.c_lflag & ECHOK)                               
        echo ('\n', tty);                                             
 2004e00:	c6 07 60 3c 	ld  [ %i5 + 0x3c ], %g3                        
 2004e04:	84 08 e0 08 	and  %g3, 8, %g2                               
      return;                                                         
    }                                                                 
  }                                                                   
                                                                      
  while (tty->ccount) {                                               
    unsigned char c = tty->cbuf[--tty->ccount];                       
 2004e08:	c8 07 60 1c 	ld  [ %i5 + 0x1c ], %g4                        
 2004e0c:	82 00 7f ff 	add  %g1, -1, %g1                              
 2004e10:	c2 27 60 20 	st  %g1, [ %i5 + 0x20 ]                        
                                                                      
    if (tty->termios.c_lflag & ECHO) {                                
 2004e14:	80 a0 a0 00 	cmp  %g2, 0                                    
 2004e18:	02 bf ff f3 	be  2004de4 <erase+0x44>                       <== NEVER TAKEN
 2004e1c:	f8 09 00 01 	ldub  [ %g4 + %g1 ], %i4                       
      if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) {             
 2004e20:	80 a6 60 00 	cmp  %i1, 0                                    
 2004e24:	12 80 00 05 	bne  2004e38 <erase+0x98>                      
 2004e28:	b8 0f 20 ff 	and  %i4, 0xff, %i4                            
 2004e2c:	80 88 e0 10 	btst  0x10, %g3                                
 2004e30:	22 80 00 52 	be,a   2004f78 <erase+0x1d8>                   <== NEVER TAKEN
 2004e34:	f0 0f 60 43 	ldub  [ %i5 + 0x43 ], %i0                      <== NOT EXECUTED
        echo (tty->termios.c_cc[VERASE], tty);                        
      } else if (c == '\t') {                                         
 2004e38:	80 a7 20 09 	cmp  %i4, 9                                    
 2004e3c:	02 80 00 25 	be  2004ed0 <erase+0x130>                      
 2004e40:	b8 07 20 01 	inc  %i4                                       
          rtems_termios_puts ("\b", 1, tty);                          
          tty->column--;                                              
        }                                                             
      }                                                               
      else {                                                          
        if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) {        
 2004e44:	c2 06 a0 34 	ld  [ %i2 + 0x34 ], %g1                        
 2004e48:	c2 08 40 1c 	ldub  [ %g1 + %i4 ], %g1                       
 2004e4c:	80 88 60 20 	btst  0x20, %g1                                
 2004e50:	12 bf ff e3 	bne  2004ddc <erase+0x3c>                      <== NEVER TAKEN
 2004e54:	80 88 e2 00 	btst  0x200, %g3                               
          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);                       
 2004e58:	11 00 80 6e 	sethi  %hi(0x201b800), %o0                     
 2004e5c:	92 10 20 03 	mov  3, %o1                                    
 2004e60:	90 12 20 a8 	or  %o0, 0xa8, %o0                             
 2004e64:	7f ff fe f7 	call  2004a40 <rtems_termios_puts>             
 2004e68:	94 10 00 1d 	mov  %i5, %o2                                  
          if (tty->column)                                            
 2004e6c:	c2 07 60 28 	ld  [ %i5 + 0x28 ], %g1                        
 2004e70:	80 a0 60 00 	cmp  %g1, 0                                    
 2004e74:	02 bf ff dd 	be  2004de8 <erase+0x48>                       <== NEVER TAKEN
 2004e78:	80 a6 60 00 	cmp  %i1, 0                                    
            tty->column--;                                            
 2004e7c:	82 00 7f ff 	add  %g1, -1, %g1                              
        }                                                             
      }                                                               
    }                                                                 
    if (!lineFlag)                                                    
 2004e80:	12 bf ff dc 	bne  2004df0 <erase+0x50>                      
 2004e84:	c2 27 60 28 	st  %g1, [ %i5 + 0x28 ]                        
 2004e88:	81 c7 e0 08 	ret                                            
 2004e8c:	81 e8 00 00 	restore                                        
erase (struct rtems_termios_tty *tty, int lineFlag)                   
{                                                                     
  if (tty->ccount == 0)                                               
    return;                                                           
  if (lineFlag) {                                                     
    if (!(tty->termios.c_lflag & ECHO)) {                             
 2004e90:	84 88 e0 08 	andcc  %g3, 8, %g2                             
 2004e94:	22 bf ff fd 	be,a   2004e88 <erase+0xe8>                    <== NEVER TAKEN
 2004e98:	c0 26 20 20 	clr  [ %i0 + 0x20 ]                            <== NOT EXECUTED
      tty->ccount = 0;                                                
      return;                                                         
    }                                                                 
    if (!(tty->termios.c_lflag & ECHOE)) {                            
 2004e9c:	80 88 e0 10 	btst  0x10, %g3                                
 2004ea0:	32 bf ff ca 	bne,a   2004dc8 <erase+0x28>                   <== ALWAYS TAKEN
 2004ea4:	31 00 80 6e 	sethi  %hi(0x201b800), %i0                     
      tty->ccount = 0;                                                
      echo (tty->termios.c_cc[VKILL], tty);                           
 2004ea8:	d0 0e 20 44 	ldub  [ %i0 + 0x44 ], %o0	! 201b844 <rtems_status_assoc+0x194><== NOT EXECUTED
    if (!(tty->termios.c_lflag & ECHO)) {                             
      tty->ccount = 0;                                                
      return;                                                         
    }                                                                 
    if (!(tty->termios.c_lflag & ECHOE)) {                            
      tty->ccount = 0;                                                
 2004eac:	c0 26 20 20 	clr  [ %i0 + 0x20 ]                            <== NOT EXECUTED
      echo (tty->termios.c_cc[VKILL], tty);                           
 2004eb0:	7f ff ff 9b 	call  2004d1c <echo>                           <== NOT EXECUTED
 2004eb4:	92 10 00 18 	mov  %i0, %o1                                  <== NOT EXECUTED
      if (tty->termios.c_lflag & ECHOK)                               
 2004eb8:	c2 06 20 3c 	ld  [ %i0 + 0x3c ], %g1                        <== NOT EXECUTED
 2004ebc:	80 88 60 20 	btst  0x20, %g1                                <== NOT EXECUTED
 2004ec0:	02 bf ff f2 	be  2004e88 <erase+0xe8>                       <== NOT EXECUTED
 2004ec4:	b0 10 20 0a 	mov  0xa, %i0                                  <== NOT EXECUTED
        echo ('\n', tty);                                             
 2004ec8:	7f ff ff 95 	call  2004d1c <echo>                           <== NOT EXECUTED
 2004ecc:	93 e8 00 1d 	restore  %g0, %i5, %o1                         <== NOT EXECUTED
        int i = 0;                                                    
                                                                      
        /*                                                            
         * Find the character before the tab                          
         */                                                           
        while (i != tty->ccount) {                                    
 2004ed0:	80 a0 60 00 	cmp  %g1, 0                                    
 2004ed4:	02 80 00 17 	be  2004f30 <erase+0x190>                      
 2004ed8:	f8 07 60 2c 	ld  [ %i5 + 0x2c ], %i4                        
          c = tty->cbuf[i++];                                         
          if (c == '\t') {                                            
            col = (col | 7) + 1;                                      
          } else if (iscntrl (c)) {                                   
 2004edc:	da 06 a0 34 	ld  [ %i2 + 0x34 ], %o5                        
    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;                             
        int i = 0;                                                    
 2004ee0:	84 10 20 00 	clr  %g2                                       
        while (i != tty->ccount) {                                    
          c = tty->cbuf[i++];                                         
          if (c == '\t') {                                            
            col = (col | 7) + 1;                                      
          } else if (iscntrl (c)) {                                   
            if (tty->termios.c_lflag & ECHOCTL)                       
 2004ee4:	10 80 00 07 	b  2004f00 <erase+0x160>                       
 2004ee8:	98 08 e2 00 	and  %g3, 0x200, %o4                           
 2004eec:	32 80 00 02 	bne,a   2004ef4 <erase+0x154>                  <== NOT EXECUTED
 2004ef0:	b8 07 20 02 	add  %i4, 2, %i4                               <== NOT EXECUTED
        int i = 0;                                                    
                                                                      
        /*                                                            
         * Find the character before the tab                          
         */                                                           
        while (i != tty->ccount) {                                    
 2004ef4:	80 a0 40 02 	cmp  %g1, %g2                                  
 2004ef8:	22 80 00 0f 	be,a   2004f34 <erase+0x194>                   <== NEVER TAKEN
 2004efc:	c2 07 60 28 	ld  [ %i5 + 0x28 ], %g1                        <== NOT EXECUTED
          c = tty->cbuf[i++];                                         
 2004f00:	c6 09 00 02 	ldub  [ %g4 + %g2 ], %g3                       
 2004f04:	84 00 a0 01 	inc  %g2                                       
          if (c == '\t') {                                            
 2004f08:	80 a0 e0 09 	cmp  %g3, 9                                    
 2004f0c:	02 80 00 18 	be  2004f6c <erase+0x1cc>                      
 2004f10:	9e 03 40 03 	add  %o5, %g3, %o7                             
            col = (col | 7) + 1;                                      
          } else if (iscntrl (c)) {                                   
 2004f14:	de 0b e0 01 	ldub  [ %o7 + 1 ], %o7                         
 2004f18:	80 8b e0 20 	btst  0x20, %o7                                
 2004f1c:	12 bf ff f4 	bne  2004eec <erase+0x14c>                     <== NEVER TAKEN
 2004f20:	80 a3 20 00 	cmp  %o4, 0                                    
        int i = 0;                                                    
                                                                      
        /*                                                            
         * Find the character before the tab                          
         */                                                           
        while (i != tty->ccount) {                                    
 2004f24:	80 a0 40 02 	cmp  %g1, %g2                                  
 2004f28:	12 bf ff f6 	bne  2004f00 <erase+0x160>                     
 2004f2c:	b8 07 20 01 	inc  %i4                                       
        }                                                             
                                                                      
        /*                                                            
         * Back up over the tab                                       
         */                                                           
        while (tty->column > col) {                                   
 2004f30:	c2 07 60 28 	ld  [ %i5 + 0x28 ], %g1                        
 2004f34:	80 a7 00 01 	cmp  %i4, %g1                                  
 2004f38:	16 bf ff ac 	bge  2004de8 <erase+0x48>                      <== NEVER TAKEN
 2004f3c:	80 a6 60 00 	cmp  %i1, 0                                    
          rtems_termios_puts ("\b", 1, tty);                          
 2004f40:	90 10 00 1b 	mov  %i3, %o0                                  
 2004f44:	92 10 20 01 	mov  1, %o1                                    
 2004f48:	7f ff fe be 	call  2004a40 <rtems_termios_puts>             
 2004f4c:	94 10 00 1d 	mov  %i5, %o2                                  
          tty->column--;                                              
 2004f50:	c2 07 60 28 	ld  [ %i5 + 0x28 ], %g1                        
 2004f54:	82 00 7f ff 	add  %g1, -1, %g1                              
        }                                                             
                                                                      
        /*                                                            
         * Back up over the tab                                       
         */                                                           
        while (tty->column > col) {                                   
 2004f58:	80 a0 40 1c 	cmp  %g1, %i4                                  
 2004f5c:	14 bf ff f9 	bg  2004f40 <erase+0x1a0>                      
 2004f60:	c2 27 60 28 	st  %g1, [ %i5 + 0x28 ]                        
          if (tty->column)                                            
            tty->column--;                                            
        }                                                             
      }                                                               
    }                                                                 
    if (!lineFlag)                                                    
 2004f64:	10 bf ff a1 	b  2004de8 <erase+0x48>                        
 2004f68:	80 a6 60 00 	cmp  %i1, 0                                    
         * Find the character before the tab                          
         */                                                           
        while (i != tty->ccount) {                                    
          c = tty->cbuf[i++];                                         
          if (c == '\t') {                                            
            col = (col | 7) + 1;                                      
 2004f6c:	b8 17 20 07 	or  %i4, 7, %i4                                
 2004f70:	10 bf ff e1 	b  2004ef4 <erase+0x154>                       
 2004f74:	b8 07 20 01 	inc  %i4                                       
  while (tty->ccount) {                                               
    unsigned char c = tty->cbuf[--tty->ccount];                       
                                                                      
    if (tty->termios.c_lflag & ECHO) {                                
      if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) {             
        echo (tty->termios.c_cc[VERASE], tty);                        
 2004f78:	7f ff ff 69 	call  2004d1c <echo>                           <== NOT EXECUTED
 2004f7c:	93 e8 00 1d 	restore  %g0, %i5, %o1                         <== NOT EXECUTED
 2004f80:	81 c7 e0 08 	ret                                            
 2004f84:	81 e8 00 00 	restore                                        
          tty->column--;                                              
        }                                                             
      }                                                               
      else {                                                          
        if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) {        
          rtems_termios_puts ("\b \b", 3, tty);                       
 2004f88:	92 10 20 03 	mov  3, %o1                                    <== NOT EXECUTED
 2004f8c:	7f ff fe ad 	call  2004a40 <rtems_termios_puts>             <== NOT EXECUTED
 2004f90:	94 10 00 1d 	mov  %i5, %o2                                  <== NOT EXECUTED
          if (tty->column)                                            
 2004f94:	c2 07 60 28 	ld  [ %i5 + 0x28 ], %g1                        <== NOT EXECUTED
 2004f98:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
 2004f9c:	22 80 00 05 	be,a   2004fb0 <erase+0x210>                   <== NOT EXECUTED
 2004fa0:	c2 06 a0 34 	ld  [ %i2 + 0x34 ], %g1                        <== NOT EXECUTED
            tty->column--;                                            
 2004fa4:	82 00 7f ff 	add  %g1, -1, %g1                              <== NOT EXECUTED
 2004fa8:	c2 27 60 28 	st  %g1, [ %i5 + 0x28 ]                        <== NOT EXECUTED
        }                                                             
        if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) {       
 2004fac:	c2 06 a0 34 	ld  [ %i2 + 0x34 ], %g1                        <== NOT EXECUTED
 2004fb0:	c2 08 40 1c 	ldub  [ %g1 + %i4 ], %g1                       <== NOT EXECUTED
 2004fb4:	80 88 60 20 	btst  0x20, %g1                                <== NOT EXECUTED
 2004fb8:	02 bf ff a9 	be  2004e5c <erase+0xbc>                       <== NOT EXECUTED
 2004fbc:	11 00 80 6e 	sethi  %hi(0x201b800), %o0                     <== NOT EXECUTED
 2004fc0:	c2 07 60 3c 	ld  [ %i5 + 0x3c ], %g1                        <== NOT EXECUTED
 2004fc4:	80 88 62 00 	btst  0x200, %g1                               <== NOT EXECUTED
 2004fc8:	12 bf ff a6 	bne  2004e60 <erase+0xc0>                      <== NOT EXECUTED
 2004fcc:	92 10 20 03 	mov  3, %o1                                    <== NOT EXECUTED
          if (tty->column)                                            
            tty->column--;                                            
        }                                                             
      }                                                               
    }                                                                 
    if (!lineFlag)                                                    
 2004fd0:	10 bf ff 86 	b  2004de8 <erase+0x48>                        <== NOT EXECUTED
 2004fd4:	80 a6 60 00 	cmp  %i1, 0                                    <== NOT EXECUTED
                                                                      

02003490 <fcntl>: int fcntl( int fd, int cmd, ... ) {
 2003490:	9d e3 bf 90 	save  %sp, -112, %sp                           
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
 2003494:	03 00 80 5f 	sethi  %hi(0x2017c00), %g1                     
 2003498:	c4 00 60 30 	ld  [ %g1 + 0x30 ], %g2	! 2017c30 <rtems_libio_number_iops>
  ...                                                                 
)                                                                     
{                                                                     
  int            ret;                                                 
  va_list        ap;                                                  
  va_start( ap, cmd );                                                
 200349c:	f4 27 a0 4c 	st  %i2, [ %fp + 0x4c ]                        
 20034a0:	82 07 a0 4c 	add  %fp, 0x4c, %g1                            
 20034a4:	f6 27 a0 50 	st  %i3, [ %fp + 0x50 ]                        
 20034a8:	f8 27 a0 54 	st  %i4, [ %fp + 0x54 ]                        
 20034ac:	fa 27 a0 58 	st  %i5, [ %fp + 0x58 ]                        
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
 20034b0:	80 a6 00 02 	cmp  %i0, %g2                                  
 20034b4:	1a 80 00 65 	bcc  2003648 <fcntl+0x1b8>                     
 20034b8:	c2 27 bf fc 	st  %g1, [ %fp + -4 ]                          
  iop = rtems_libio_iop( fd );                                        
 20034bc:	3b 00 80 61 	sethi  %hi(0x2018400), %i5                     
 20034c0:	c6 07 62 80 	ld  [ %i5 + 0x280 ], %g3	! 2018680 <rtems_libio_iops>
 20034c4:	93 2e 20 06 	sll  %i0, 6, %o1                               
 20034c8:	92 00 c0 09 	add  %g3, %o1, %o1                             
  rtems_libio_check_is_open(iop);                                     
 20034cc:	d0 02 60 18 	ld  [ %o1 + 0x18 ], %o0                        
 20034d0:	80 8a 21 00 	btst  0x100, %o0                               
 20034d4:	02 80 00 5d 	be  2003648 <fcntl+0x1b8>                      
 20034d8:	80 a6 60 09 	cmp  %i1, 9                                    
                                                                      
  /*                                                                  
   *  This switch should contain all the cases from POSIX.            
   */                                                                 
                                                                      
  switch ( cmd ) {                                                    
 20034dc:	08 80 00 08 	bleu  20034fc <fcntl+0x6c>                     
 20034e0:	89 2e 60 02 	sll  %i1, 2, %g4                               
      errno = ENOTSUP;                                                
      ret = -1;                                                       
      break;                                                          
                                                                      
    default:                                                          
      errno = EINVAL;                                                 
 20034e4:	40 00 34 10 	call  2010524 <__errno>                        
 20034e8:	b0 10 3f ff 	mov  -1, %i0                                   
 20034ec:	82 10 20 16 	mov  0x16, %g1                                 
 20034f0:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 20034f4:	81 c7 e0 08 	ret                                            
 20034f8:	81 e8 00 00 	restore                                        
                                                                      
  /*                                                                  
   *  This switch should contain all the cases from POSIX.            
   */                                                                 
                                                                      
  switch ( cmd ) {                                                    
 20034fc:	31 00 80 0d 	sethi  %hi(0x2003400), %i0                     
 2003500:	b0 16 20 68 	or  %i0, 0x68, %i0	! 2003468 <rtems_filesystem_prefix_separators+0x70>
 2003504:	c8 06 00 04 	ld  [ %i0 + %g4 ], %g4                         
 2003508:	81 c1 00 00 	jmp  %g4                                       
 200350c:	01 00 00 00 	nop                                            
      errno = ENOTSUP;                                                
      ret = -1;                                                       
      break;                                                          
                                                                      
    case F_GETOWN:       /*  for sockets. */                          
      errno = ENOTSUP;                                                
 2003510:	40 00 34 05 	call  2010524 <__errno>                        
 2003514:	01 00 00 00 	nop                                            
 2003518:	82 10 20 86 	mov  0x86, %g1	! 86 <PROM_START+0x86>          
 200351c:	c2 22 00 00 	st  %g1, [ %o0 ]                               
  int            mask;                                                
  int            ret = 0;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
  iop = rtems_libio_iop( fd );                                        
  rtems_libio_check_is_open(iop);                                     
 2003520:	81 c7 e0 08 	ret                                            
 2003524:	91 e8 3f ff 	restore  %g0, -1, %o0                          
    case F_GETFL:        /* more flags (cloexec) */                   
      ret = rtems_libio_to_fcntl_flags( iop->flags );                 
      break;                                                          
                                                                      
    case F_SETFL:                                                     
      flags = rtems_libio_fcntl_flags( va_arg( ap, int ) );           
 2003528:	d0 00 40 00 	ld  [ %g1 ], %o0                               
 200352c:	40 00 01 92 	call  2003b74 <rtems_libio_fcntl_flags>        
 2003530:	d2 27 bf f4 	st  %o1, [ %fp + -12 ]                         
                                                                      
      /*                                                              
       *  XXX If we are turning on append, should we seek to the end? 
       */                                                             
                                                                      
      iop->flags = (iop->flags & ~mask) | (flags & mask);             
 2003534:	d2 07 bf f4 	ld  [ %fp + -12 ], %o1                         
 2003538:	90 0a 22 01 	and  %o0, 0x201, %o0                           
 200353c:	c2 02 60 18 	ld  [ %o1 + 0x18 ], %g1                        
  rtems_libio_t *iop;                                                 
  rtems_libio_t *diop;                                                
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
 2003540:	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);             
 2003544:	82 08 7d fe 	and  %g1, -514, %g1                            
 2003548:	82 12 00 01 	or  %o0, %g1, %g1                              
 200354c:	c2 22 60 18 	st  %g1, [ %o1 + 0x18 ]                        
   *  If we got this far successfully, then we give the optional      
   *  filesystem specific handler a chance to process this.           
   */                                                                 
                                                                      
  if (ret >= 0) {                                                     
    int err = (*iop->pathinfo.handlers->fcntl_h)( cmd, iop );         
 2003550:	c2 02 60 24 	ld  [ %o1 + 0x24 ], %g1                        
 2003554:	c2 00 60 30 	ld  [ %g1 + 0x30 ], %g1                        
 2003558:	9f c0 40 00 	call  %g1                                      
 200355c:	90 10 00 19 	mov  %i1, %o0                                  
    if (err) {                                                        
 2003560:	b2 92 20 00 	orcc  %o0, 0, %i1                              
 2003564:	12 80 00 04 	bne  2003574 <fcntl+0xe4>                      <== NEVER TAKEN
 2003568:	01 00 00 00 	nop                                            
  va_list        ap;                                                  
  va_start( ap, cmd );                                                
  ret = vfcntl(fd,cmd,ap);                                            
  va_end(ap);                                                         
  return ret;                                                         
}                                                                     
 200356c:	81 c7 e0 08 	ret                                            
 2003570:	81 e8 00 00 	restore                                        
   */                                                                 
                                                                      
  if (ret >= 0) {                                                     
    int err = (*iop->pathinfo.handlers->fcntl_h)( cmd, iop );         
    if (err) {                                                        
      errno = err;                                                    
 2003574:	40 00 33 ec 	call  2010524 <__errno>                        <== NOT EXECUTED
 2003578:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
 200357c:	f2 22 00 00 	st  %i1, [ %o0 ]                               <== NOT EXECUTED
  va_list        ap;                                                  
  va_start( ap, cmd );                                                
  ret = vfcntl(fd,cmd,ap);                                            
  va_end(ap);                                                         
  return ret;                                                         
}                                                                     
 2003580:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 2003584:	81 e8 00 00 	restore                                        <== NOT EXECUTED
      else                                                            
        iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC;                     
      break;                                                          
                                                                      
    case F_GETFL:        /* more flags (cloexec) */                   
      ret = rtems_libio_to_fcntl_flags( iop->flags );                 
 2003588:	40 00 01 88 	call  2003ba8 <rtems_libio_to_fcntl_flags>     
 200358c:	d2 27 bf f4 	st  %o1, [ %fp + -12 ]                         
 2003590:	d2 07 bf f4 	ld  [ %fp + -12 ], %o1                         
 2003594:	b0 10 00 08 	mov  %o0, %i0                                  
  /*                                                                  
   *  If we got this far successfully, then we give the optional      
   *  filesystem specific handler a chance to process this.           
   */                                                                 
                                                                      
  if (ret >= 0) {                                                     
 2003598:	80 a6 20 00 	cmp  %i0, 0                                    
 200359c:	36 bf ff ee 	bge,a   2003554 <fcntl+0xc4>                   <== ALWAYS TAKEN
 20035a0:	c2 02 60 24 	ld  [ %o1 + 0x24 ], %g1                        
  va_list        ap;                                                  
  va_start( ap, cmd );                                                
  ret = vfcntl(fd,cmd,ap);                                            
  va_end(ap);                                                         
  return ret;                                                         
}                                                                     
 20035a4:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 20035a8:	81 e8 00 00 	restore                                        <== NOT EXECUTED
       *  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 ) )                                        
 20035ac:	c2 00 40 00 	ld  [ %g1 ], %g1                               
 20035b0:	80 a0 60 00 	cmp  %g1, 0                                    
 20035b4:	22 80 00 22 	be,a   200363c <fcntl+0x1ac>                   
 20035b8:	90 0a 37 ff 	and  %o0, -2049, %o0                           
        iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC;                      
 20035bc:	90 12 28 00 	or  %o0, 0x800, %o0                            
  rtems_libio_t *iop;                                                 
  rtems_libio_t *diop;                                                
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
 20035c0:	b0 10 20 00 	clr  %i0                                       
       *  processes, then we can ignore this one except to make       
       *  F_GETFD work.                                               
       */                                                             
                                                                      
      if ( va_arg( ap, int ) )                                        
        iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC;                      
 20035c4:	10 bf ff e3 	b  2003550 <fcntl+0xc0>                        
 20035c8:	d0 22 60 18 	st  %o0, [ %o1 + 0x18 ]                        
      diop->pathinfo   = iop->pathinfo;                               
      ret = (int) (diop - rtems_libio_iops);                          
      break;                                                          
                                                                      
    case F_GETFD:        /* get f_flags */                            
      ret = ((iop->flags & LIBIO_FLAGS_CLOSE_ON_EXEC) != 0);          
 20035cc:	90 0a 28 00 	and  %o0, 0x800, %o0                           
 20035d0:	80 a0 00 08 	cmp  %g0, %o0                                  
 20035d4:	10 bf ff df 	b  2003550 <fcntl+0xc0>                        
 20035d8:	b0 40 20 00 	addx  %g0, 0, %i0                              
   *  This switch should contain all the cases from POSIX.            
   */                                                                 
                                                                      
  switch ( cmd ) {                                                    
    case F_DUPFD:        /* dup */                                    
      fd2 = va_arg( ap, int );                                        
 20035dc:	c8 00 40 00 	ld  [ %g1 ], %g4                               
      if ( fd2 )                                                      
 20035e0:	80 a1 20 00 	cmp  %g4, 0                                    
 20035e4:	02 80 00 1f 	be  2003660 <fcntl+0x1d0>                      
 20035e8:	b0 10 20 00 	clr  %i0                                       
        diop = rtems_libio_iop( fd2 );                                
 20035ec:	80 a0 80 04 	cmp  %g2, %g4                                  
 20035f0:	08 80 00 05 	bleu  2003604 <fcntl+0x174>                    <== NEVER TAKEN
 20035f4:	82 10 20 00 	clr  %g1                                       
 20035f8:	83 29 20 06 	sll  %g4, 6, %g1                               
 20035fc:	82 00 c0 01 	add  %g3, %g1, %g1                             
 2003600:	b0 10 00 01 	mov  %g1, %i0                                  
          break;                                                      
        }                                                             
      }                                                               
                                                                      
      diop->flags      = iop->flags;                                  
      diop->pathinfo   = iop->pathinfo;                               
 2003604:	c4 02 60 1c 	ld  [ %o1 + 0x1c ], %g2                        
      ret = (int) (diop - rtems_libio_iops);                          
 2003608:	b0 26 00 03 	sub  %i0, %g3, %i0                             
          break;                                                      
        }                                                             
      }                                                               
                                                                      
      diop->flags      = iop->flags;                                  
      diop->pathinfo   = iop->pathinfo;                               
 200360c:	c4 20 60 1c 	st  %g2, [ %g1 + 0x1c ]                        
 2003610:	c4 02 60 20 	ld  [ %o1 + 0x20 ], %g2                        
          ret = -1;                                                   
          break;                                                      
        }                                                             
      }                                                               
                                                                      
      diop->flags      = iop->flags;                                  
 2003614:	d0 20 60 18 	st  %o0, [ %g1 + 0x18 ]                        
      diop->pathinfo   = iop->pathinfo;                               
 2003618:	c4 20 60 20 	st  %g2, [ %g1 + 0x20 ]                        
 200361c:	c4 02 60 24 	ld  [ %o1 + 0x24 ], %g2                        
      ret = (int) (diop - rtems_libio_iops);                          
 2003620:	b1 3e 20 06 	sra  %i0, 6, %i0                               
          break;                                                      
        }                                                             
      }                                                               
                                                                      
      diop->flags      = iop->flags;                                  
      diop->pathinfo   = iop->pathinfo;                               
 2003624:	c4 20 60 24 	st  %g2, [ %g1 + 0x24 ]                        
 2003628:	c4 02 60 28 	ld  [ %o1 + 0x28 ], %g2                        
 200362c:	c4 20 60 28 	st  %g2, [ %g1 + 0x28 ]                        
 2003630:	c4 02 60 2c 	ld  [ %o1 + 0x2c ], %g2                        
 2003634:	10 bf ff d9 	b  2003598 <fcntl+0x108>                       
 2003638:	c4 20 60 2c 	st  %g2, [ %g1 + 0x2c ]                        
  rtems_libio_t *iop;                                                 
  rtems_libio_t *diop;                                                
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
 200363c:	b0 10 20 00 	clr  %i0                                       
       */                                                             
                                                                      
      if ( va_arg( ap, int ) )                                        
        iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC;                      
      else                                                            
        iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC;                     
 2003640:	10 bf ff c4 	b  2003550 <fcntl+0xc0>                        
 2003644:	d0 22 60 18 	st  %o0, [ %o1 + 0x18 ]                        
  int            mask;                                                
  int            ret = 0;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
  iop = rtems_libio_iop( fd );                                        
  rtems_libio_check_is_open(iop);                                     
 2003648:	40 00 33 b7 	call  2010524 <__errno>                        
 200364c:	b0 10 3f ff 	mov  -1, %i0                                   
 2003650:	82 10 20 09 	mov  9, %g1                                    
 2003654:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2003658:	81 c7 e0 08 	ret                                            
 200365c:	81 e8 00 00 	restore                                        
      fd2 = va_arg( ap, int );                                        
      if ( fd2 )                                                      
        diop = rtems_libio_iop( fd2 );                                
      else {                                                          
        /* allocate a file control block */                           
        diop = rtems_libio_allocate();                                
 2003660:	40 00 01 69 	call  2003c04 <rtems_libio_allocate>           
 2003664:	d2 27 bf f4 	st  %o1, [ %fp + -12 ]                         
        if ( diop == 0 ) {                                            
 2003668:	82 92 20 00 	orcc  %o0, 0, %g1                              
 200366c:	02 bf ff ad 	be  2003520 <fcntl+0x90>                       <== NEVER TAKEN
 2003670:	d2 07 bf f4 	ld  [ %fp + -12 ], %o1                         
 2003674:	d0 02 60 18 	ld  [ %o1 + 0x18 ], %o0                        
 2003678:	c6 07 62 80 	ld  [ %i5 + 0x280 ], %g3                       
 200367c:	10 bf ff e2 	b  2003604 <fcntl+0x174>                       
 2003680:	b0 10 00 01 	mov  %g1, %i0                                  
                                                                      

0200d9a4 <fifo_open>: */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) {
 200d9a4:	9d e3 bf 98 	save  %sp, -104, %sp                           
                                                                      
static int pipe_lock(void)                                            
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (pipe_semaphore == RTEMS_ID_NONE) {                              
 200d9a8:	3b 00 80 88 	sethi  %hi(0x2022000), %i5                     
 200d9ac:	d0 07 62 4c 	ld  [ %i5 + 0x24c ], %o0	! 202224c <pipe_semaphore>
 */                                                                   
int fifo_open(                                                        
  pipe_control_t **pipep,                                             
  rtems_libio_t *iop                                                  
)                                                                     
{                                                                     
 200d9b0:	b8 10 00 18 	mov  %i0, %i4                                  
                                                                      
static int pipe_lock(void)                                            
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (pipe_semaphore == RTEMS_ID_NONE) {                              
 200d9b4:	80 a2 20 00 	cmp  %o0, 0                                    
 200d9b8:	02 80 00 54 	be  200db08 <fifo_open+0x164>                  
 200d9bc:	b4 17 62 4c 	or  %i5, 0x24c, %i2                            
                                                                      
    rtems_libio_unlock();                                             
  }                                                                   
                                                                      
  if (sc == RTEMS_SUCCESSFUL) {                                       
    sc = rtems_semaphore_obtain(pipe_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
 200d9c0:	92 10 20 00 	clr  %o1                                       
 200d9c4:	94 10 20 00 	clr  %o2                                       
 200d9c8:	7f ff eb d1 	call  200890c <rtems_semaphore_obtain>         
 200d9cc:	b0 10 3f f4 	mov  -12, %i0                                  
  }                                                                   
                                                                      
  if (sc == RTEMS_SUCCESSFUL) {                                       
 200d9d0:	80 a2 20 00 	cmp  %o0, 0                                    
 200d9d4:	12 80 01 18 	bne  200de34 <fifo_open+0x490>                 <== NEVER TAKEN
 200d9d8:	01 00 00 00 	nop                                            
                                                                      
  err = pipe_lock();                                                  
  if (err)                                                            
    return err;                                                       
                                                                      
  pipe = *pipep;                                                      
 200d9dc:	f6 07 00 00 	ld  [ %i4 ], %i3                               
  if (pipe == NULL) {                                                 
 200d9e0:	80 a6 e0 00 	cmp  %i3, 0                                    
 200d9e4:	02 80 00 91 	be  200dc28 <fifo_open+0x284>                  
 200d9e8:	01 00 00 00 	nop                                            
    err = pipe_alloc(&pipe);                                          
    if (err)                                                          
      goto out;                                                       
  }                                                                   
                                                                      
  if (! PIPE_LOCK(pipe))                                              
 200d9ec:	d0 06 e0 28 	ld  [ %i3 + 0x28 ], %o0                        
 200d9f0:	92 10 20 00 	clr  %o1                                       
 200d9f4:	7f ff eb c6 	call  200890c <rtems_semaphore_obtain>         
 200d9f8:	94 10 20 00 	clr  %o2                                       
    err = -EINTR;                                                     
                                                                      
  if (*pipep == NULL) {                                               
 200d9fc:	c2 07 00 00 	ld  [ %i4 ], %g1                               
    err = pipe_alloc(&pipe);                                          
    if (err)                                                          
      goto out;                                                       
  }                                                                   
                                                                      
  if (! PIPE_LOCK(pipe))                                              
 200da00:	80 a0 00 08 	cmp  %g0, %o0                                  
 200da04:	b0 60 20 00 	subx  %g0, 0, %i0                              
    err = -EINTR;                                                     
                                                                      
  if (*pipep == NULL) {                                               
 200da08:	80 a0 60 00 	cmp  %g1, 0                                    
 200da0c:	02 80 00 d9 	be  200dd70 <fifo_open+0x3cc>                  
 200da10:	b0 0e 3f fc 	and  %i0, -4, %i0                              
                                                                      
static void pipe_unlock(void)                                         
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  sc = rtems_semaphore_release(pipe_semaphore);                       
 200da14:	7f ff ec 08 	call  2008a34 <rtems_semaphore_release>        
 200da18:	d0 07 62 4c 	ld  [ %i5 + 0x24c ], %o0                       
  pipe_control_t *pipe;                                               
  unsigned int prevCounter;                                           
  int err;                                                            
                                                                      
  err = pipe_new(pipep);                                              
  if (err)                                                            
 200da1c:	80 a6 20 00 	cmp  %i0, 0                                    
 200da20:	12 80 01 05 	bne  200de34 <fifo_open+0x490>                 <== NEVER TAKEN
 200da24:	01 00 00 00 	nop                                            
    return err;                                                       
  pipe = *pipep;                                                      
                                                                      
  switch (LIBIO_ACCMODE(iop)) {                                       
 200da28:	c2 06 60 18 	ld  [ %i1 + 0x18 ], %g1                        
 200da2c:	82 08 60 06 	and  %g1, 6, %g1                               
 200da30:	80 a0 60 04 	cmp  %g1, 4                                    
 200da34:	02 80 00 42 	be  200db3c <fifo_open+0x198>                  
 200da38:	fa 07 00 00 	ld  [ %i4 ], %i5                               
 200da3c:	80 a0 60 06 	cmp  %g1, 6                                    
 200da40:	02 80 00 65 	be  200dbd4 <fifo_open+0x230>                  
 200da44:	80 a0 60 02 	cmp  %g1, 2                                    
 200da48:	22 80 00 07 	be,a   200da64 <fifo_open+0xc0>                <== ALWAYS TAKEN
 200da4c:	c2 07 60 10 	ld  [ %i5 + 0x10 ], %g1                        
      if (pipe->Writers ++ == 0)                                      
        PIPE_WAKEUPREADERS(pipe);                                     
      break;                                                          
  }                                                                   
                                                                      
  PIPE_UNLOCK(pipe);                                                  
 200da50:	d0 07 60 28 	ld  [ %i5 + 0x28 ], %o0                        <== NOT EXECUTED
 200da54:	7f ff eb f8 	call  2008a34 <rtems_semaphore_release>        
 200da58:	b0 10 20 00 	clr  %i0                                       
  return 0;                                                           
 200da5c:	81 c7 e0 08 	ret                                            
 200da60:	81 e8 00 00 	restore                                        
    return err;                                                       
  pipe = *pipep;                                                      
                                                                      
  switch (LIBIO_ACCMODE(iop)) {                                       
    case LIBIO_FLAGS_READ:                                            
      pipe->readerCounter ++;                                         
 200da64:	c4 07 60 20 	ld  [ %i5 + 0x20 ], %g2                        
      if (pipe->Readers ++ == 0)                                      
 200da68:	86 00 60 01 	add  %g1, 1, %g3                               
    return err;                                                       
  pipe = *pipep;                                                      
                                                                      
  switch (LIBIO_ACCMODE(iop)) {                                       
    case LIBIO_FLAGS_READ:                                            
      pipe->readerCounter ++;                                         
 200da6c:	84 00 a0 01 	inc  %g2                                       
      if (pipe->Readers ++ == 0)                                      
 200da70:	c6 27 60 10 	st  %g3, [ %i5 + 0x10 ]                        
 200da74:	80 a0 60 00 	cmp  %g1, 0                                    
 200da78:	02 80 00 d4 	be  200ddc8 <fifo_open+0x424>                  <== ALWAYS TAKEN
 200da7c:	c4 27 60 20 	st  %g2, [ %i5 + 0x20 ]                        
        PIPE_WAKEUPWRITERS(pipe);                                     
                                                                      
      if (pipe->Writers == 0) {                                       
 200da80:	c2 07 60 14 	ld  [ %i5 + 0x14 ], %g1                        <== NOT EXECUTED
 200da84:	80 a0 60 00 	cmp  %g1, 0                                    
 200da88:	32 bf ff f3 	bne,a   200da54 <fifo_open+0xb0>               
 200da8c:	d0 07 60 28 	ld  [ %i5 + 0x28 ], %o0                        
        /* Not an error */                                            
        if (LIBIO_NODELAY(iop))                                       
 200da90:	c2 06 60 18 	ld  [ %i1 + 0x18 ], %g1                        
 200da94:	80 88 60 01 	btst  1, %g1                                   
 200da98:	32 bf ff ef 	bne,a   200da54 <fifo_open+0xb0>               
 200da9c:	d0 07 60 28 	ld  [ %i5 + 0x28 ], %o0                        
          break;                                                      
                                                                      
        prevCounter = pipe->writerCounter;                            
 200daa0:	10 80 00 0c 	b  200dad0 <fifo_open+0x12c>                   
 200daa4:	f6 07 60 24 	ld  [ %i5 + 0x24 ], %i3                        
        /* Wait until a writer opens the pipe */                      
        do {                                                          
          PIPE_UNLOCK(pipe);                                          
          if (! PIPE_READWAIT(pipe))                                  
            goto out_error;                                           
          if (! PIPE_LOCK(pipe))                                      
 200daa8:	92 10 20 00 	clr  %o1                                       
 200daac:	7f ff eb 98 	call  200890c <rtems_semaphore_obtain>         
 200dab0:	94 10 20 00 	clr  %o2                                       
 200dab4:	80 a2 20 00 	cmp  %o0, 0                                    
 200dab8:	12 80 00 0f 	bne  200daf4 <fifo_open+0x150>                 <== NEVER TAKEN
 200dabc:	b0 10 3f fc 	mov  -4, %i0                                   
            goto out_error;                                           
        } while (prevCounter == pipe->writerCounter);                 
 200dac0:	c2 07 60 24 	ld  [ %i5 + 0x24 ], %g1                        
 200dac4:	80 a0 40 1b 	cmp  %g1, %i3                                  
 200dac8:	32 bf ff e3 	bne,a   200da54 <fifo_open+0xb0>               <== ALWAYS TAKEN
 200dacc:	d0 07 60 28 	ld  [ %i5 + 0x28 ], %o0                        
                                                                      
        prevCounter = pipe->writerCounter;                            
        err = -EINTR;                                                 
        /* Wait until a writer opens the pipe */                      
        do {                                                          
          PIPE_UNLOCK(pipe);                                          
 200dad0:	7f ff eb d9 	call  2008a34 <rtems_semaphore_release>        
 200dad4:	d0 07 60 28 	ld  [ %i5 + 0x28 ], %o0                        
          if (! PIPE_READWAIT(pipe))                                  
 200dad8:	d0 07 60 2c 	ld  [ %i5 + 0x2c ], %o0                        
 200dadc:	40 00 07 10 	call  200f71c <rtems_barrier_wait>             
 200dae0:	92 10 20 00 	clr  %o1                                       
 200dae4:	80 a2 20 00 	cmp  %o0, 0                                    
 200dae8:	22 bf ff f0 	be,a   200daa8 <fifo_open+0x104>               <== ALWAYS TAKEN
 200daec:	d0 07 60 28 	ld  [ %i5 + 0x28 ], %o0                        
        goto out_error;                                               
      }                                                               
                                                                      
      if (pipe->Readers == 0) {                                       
        prevCounter = pipe->readerCounter;                            
        err = -EINTR;                                                 
 200daf0:	b0 10 3f fc 	mov  -4, %i0                                   <== NOT EXECUTED
                                                                      
  PIPE_UNLOCK(pipe);                                                  
  return 0;                                                           
                                                                      
out_error:                                                            
  pipe_release(pipep, iop);                                           
 200daf4:	90 10 00 1c 	mov  %i4, %o0                                  <== NOT EXECUTED
 200daf8:	7f ff ff 68 	call  200d898 <pipe_release>                   
 200dafc:	92 10 00 19 	mov  %i1, %o1                                  
  return err;                                                         
}                                                                     
 200db00:	81 c7 e0 08 	ret                                            
 200db04:	81 e8 00 00 	restore                                        
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 );
 200db08:	37 00 80 88 	sethi  %hi(0x2022000), %i3                     
 200db0c:	d0 06 e3 cc 	ld  [ %i3 + 0x3cc ], %o0	! 20223cc <rtems_libio_semaphore>
 200db10:	92 10 20 00 	clr  %o1                                       
 200db14:	7f ff eb 7e 	call  200890c <rtems_semaphore_obtain>         
 200db18:	94 10 20 00 	clr  %o2                                       
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (pipe_semaphore == RTEMS_ID_NONE) {                              
    rtems_libio_lock();                                               
                                                                      
    if (pipe_semaphore == RTEMS_ID_NONE) {                            
 200db1c:	c2 07 62 4c 	ld  [ %i5 + 0x24c ], %g1                       
 200db20:	80 a0 60 00 	cmp  %g1, 0                                    
 200db24:	02 80 00 9a 	be  200dd8c <fifo_open+0x3e8>                  <== ALWAYS TAKEN
 200db28:	98 10 00 1a 	mov  %i2, %o4                                  
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
 200db2c:	7f ff eb c2 	call  2008a34 <rtems_semaphore_release>        <== NOT EXECUTED
 200db30:	d0 06 e3 cc 	ld  [ %i3 + 0x3cc ], %o0                       <== NOT EXECUTED
 200db34:	10 bf ff a3 	b  200d9c0 <fifo_open+0x1c>                    <== NOT EXECUTED
 200db38:	d0 07 62 4c 	ld  [ %i5 + 0x24c ], %o0                       <== NOT EXECUTED
      break;                                                          
                                                                      
    case LIBIO_FLAGS_WRITE:                                           
      pipe->writerCounter ++;                                         
                                                                      
      if (pipe->Writers ++ == 0)                                      
 200db3c:	c2 07 60 14 	ld  [ %i5 + 0x14 ], %g1                        
        } while (prevCounter == pipe->writerCounter);                 
      }                                                               
      break;                                                          
                                                                      
    case LIBIO_FLAGS_WRITE:                                           
      pipe->writerCounter ++;                                         
 200db40:	c4 07 60 24 	ld  [ %i5 + 0x24 ], %g2                        
                                                                      
      if (pipe->Writers ++ == 0)                                      
 200db44:	86 00 60 01 	add  %g1, 1, %g3                               
        } while (prevCounter == pipe->writerCounter);                 
      }                                                               
      break;                                                          
                                                                      
    case LIBIO_FLAGS_WRITE:                                           
      pipe->writerCounter ++;                                         
 200db48:	84 00 a0 01 	inc  %g2                                       
                                                                      
      if (pipe->Writers ++ == 0)                                      
 200db4c:	c6 27 60 14 	st  %g3, [ %i5 + 0x14 ]                        
 200db50:	80 a0 60 00 	cmp  %g1, 0                                    
 200db54:	02 80 00 a7 	be  200ddf0 <fifo_open+0x44c>                  <== ALWAYS TAKEN
 200db58:	c4 27 60 24 	st  %g2, [ %i5 + 0x24 ]                        
        PIPE_WAKEUPREADERS(pipe);                                     
                                                                      
      if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {                 
 200db5c:	c2 07 60 10 	ld  [ %i5 + 0x10 ], %g1                        <== NOT EXECUTED
 200db60:	80 a0 60 00 	cmp  %g1, 0                                    
 200db64:	32 bf ff bc 	bne,a   200da54 <fifo_open+0xb0>               
 200db68:	d0 07 60 28 	ld  [ %i5 + 0x28 ], %o0                        
 200db6c:	c2 06 60 18 	ld  [ %i1 + 0x18 ], %g1                        
 200db70:	80 88 60 01 	btst  1, %g1                                   
 200db74:	32 80 00 b2 	bne,a   200de3c <fifo_open+0x498>              
 200db78:	d0 07 60 28 	ld  [ %i5 + 0x28 ], %o0                        
        err = -ENXIO;                                                 
        goto out_error;                                               
      }                                                               
                                                                      
      if (pipe->Readers == 0) {                                       
        prevCounter = pipe->readerCounter;                            
 200db7c:	10 80 00 0c 	b  200dbac <fifo_open+0x208>                   
 200db80:	f6 07 60 20 	ld  [ %i5 + 0x20 ], %i3                        
        err = -EINTR;                                                 
        do {                                                          
          PIPE_UNLOCK(pipe);                                          
          if (! PIPE_WRITEWAIT(pipe))                                 
            goto out_error;                                           
          if (! PIPE_LOCK(pipe))                                      
 200db84:	92 10 20 00 	clr  %o1                                       
 200db88:	7f ff eb 61 	call  200890c <rtems_semaphore_obtain>         
 200db8c:	94 10 20 00 	clr  %o2                                       
 200db90:	80 a2 20 00 	cmp  %o0, 0                                    
 200db94:	12 bf ff d8 	bne  200daf4 <fifo_open+0x150>                 <== NEVER TAKEN
 200db98:	b0 10 3f fc 	mov  -4, %i0                                   
            goto out_error;                                           
        } while (prevCounter == pipe->readerCounter);                 
 200db9c:	c2 07 60 20 	ld  [ %i5 + 0x20 ], %g1                        
 200dba0:	80 a0 40 1b 	cmp  %g1, %i3                                  
 200dba4:	32 bf ff ac 	bne,a   200da54 <fifo_open+0xb0>               <== ALWAYS TAKEN
 200dba8:	d0 07 60 28 	ld  [ %i5 + 0x28 ], %o0                        
                                                                      
      if (pipe->Readers == 0) {                                       
        prevCounter = pipe->readerCounter;                            
        err = -EINTR;                                                 
        do {                                                          
          PIPE_UNLOCK(pipe);                                          
 200dbac:	7f ff eb a2 	call  2008a34 <rtems_semaphore_release>        
 200dbb0:	d0 07 60 28 	ld  [ %i5 + 0x28 ], %o0                        
          if (! PIPE_WRITEWAIT(pipe))                                 
 200dbb4:	d0 07 60 30 	ld  [ %i5 + 0x30 ], %o0                        
 200dbb8:	40 00 06 d9 	call  200f71c <rtems_barrier_wait>             
 200dbbc:	92 10 20 00 	clr  %o1                                       
 200dbc0:	80 a2 20 00 	cmp  %o0, 0                                    
 200dbc4:	22 bf ff f0 	be,a   200db84 <fifo_open+0x1e0>               <== ALWAYS TAKEN
 200dbc8:	d0 07 60 28 	ld  [ %i5 + 0x28 ], %o0                        
        goto out_error;                                               
      }                                                               
                                                                      
      if (pipe->Readers == 0) {                                       
        prevCounter = pipe->readerCounter;                            
        err = -EINTR;                                                 
 200dbcc:	10 bf ff ca 	b  200daf4 <fifo_open+0x150>                   <== NOT EXECUTED
 200dbd0:	b0 10 3f fc 	mov  -4, %i0                                   <== NOT EXECUTED
      }                                                               
      break;                                                          
                                                                      
    case LIBIO_FLAGS_READ_WRITE:                                      
      pipe->readerCounter ++;                                         
      if (pipe->Readers ++ == 0)                                      
 200dbd4:	c2 07 60 10 	ld  [ %i5 + 0x10 ], %g1                        
        } while (prevCounter == pipe->readerCounter);                 
      }                                                               
      break;                                                          
                                                                      
    case LIBIO_FLAGS_READ_WRITE:                                      
      pipe->readerCounter ++;                                         
 200dbd8:	c4 07 60 20 	ld  [ %i5 + 0x20 ], %g2                        
      if (pipe->Readers ++ == 0)                                      
 200dbdc:	86 00 60 01 	add  %g1, 1, %g3                               
        } while (prevCounter == pipe->readerCounter);                 
      }                                                               
      break;                                                          
                                                                      
    case LIBIO_FLAGS_READ_WRITE:                                      
      pipe->readerCounter ++;                                         
 200dbe0:	84 00 a0 01 	inc  %g2                                       
      if (pipe->Readers ++ == 0)                                      
 200dbe4:	c6 27 60 10 	st  %g3, [ %i5 + 0x10 ]                        
 200dbe8:	80 a0 60 00 	cmp  %g1, 0                                    
 200dbec:	02 80 00 7c 	be  200dddc <fifo_open+0x438>                  <== ALWAYS TAKEN
 200dbf0:	c4 27 60 20 	st  %g2, [ %i5 + 0x20 ]                        
        PIPE_WAKEUPWRITERS(pipe);                                     
      pipe->writerCounter ++;                                         
      if (pipe->Writers ++ == 0)                                      
 200dbf4:	c2 07 60 14 	ld  [ %i5 + 0x14 ], %g1                        <== NOT EXECUTED
                                                                      
    case LIBIO_FLAGS_READ_WRITE:                                      
      pipe->readerCounter ++;                                         
      if (pipe->Readers ++ == 0)                                      
        PIPE_WAKEUPWRITERS(pipe);                                     
      pipe->writerCounter ++;                                         
 200dbf8:	c4 07 60 24 	ld  [ %i5 + 0x24 ], %g2                        
      if (pipe->Writers ++ == 0)                                      
 200dbfc:	86 00 60 01 	add  %g1, 1, %g3                               
                                                                      
    case LIBIO_FLAGS_READ_WRITE:                                      
      pipe->readerCounter ++;                                         
      if (pipe->Readers ++ == 0)                                      
        PIPE_WAKEUPWRITERS(pipe);                                     
      pipe->writerCounter ++;                                         
 200dc00:	84 00 a0 01 	inc  %g2                                       
      if (pipe->Writers ++ == 0)                                      
 200dc04:	c6 27 60 14 	st  %g3, [ %i5 + 0x14 ]                        
 200dc08:	80 a0 60 00 	cmp  %g1, 0                                    
 200dc0c:	12 bf ff 91 	bne  200da50 <fifo_open+0xac>                  <== NEVER TAKEN
 200dc10:	c4 27 60 24 	st  %g2, [ %i5 + 0x24 ]                        
        PIPE_WAKEUPREADERS(pipe);                                     
 200dc14:	d0 07 60 2c 	ld  [ %i5 + 0x2c ], %o0                        
 200dc18:	40 00 06 aa 	call  200f6c0 <rtems_barrier_release>          
 200dc1c:	92 07 bf f8 	add  %fp, -8, %o1                              
      break;                                                          
  }                                                                   
                                                                      
  PIPE_UNLOCK(pipe);                                                  
 200dc20:	10 bf ff 8d 	b  200da54 <fifo_open+0xb0>                    
 200dc24:	d0 07 60 28 	ld  [ %i5 + 0x28 ], %o0                        
{                                                                     
  static char c = 'a';                                                
  pipe_control_t *pipe;                                               
  int err = -ENOMEM;                                                  
                                                                      
  pipe = malloc(sizeof(pipe_control_t));                              
 200dc28:	7f ff dd 72 	call  20051f0 <malloc>                         
 200dc2c:	90 10 20 34 	mov  0x34, %o0                                 
  if (pipe == NULL)                                                   
 200dc30:	b6 92 20 00 	orcc  %o0, 0, %i3                              
 200dc34:	02 80 00 8e 	be  200de6c <fifo_open+0x4c8>                  
 200dc38:	82 10 22 00 	mov  0x200, %g1                                
    return err;                                                       
  memset(pipe, 0, sizeof(pipe_control_t));                            
 200dc3c:	c0 26 c0 00 	clr  [ %i3 ]                                   
 200dc40:	c0 26 e0 08 	clr  [ %i3 + 8 ]                               
 200dc44:	c0 26 e0 0c 	clr  [ %i3 + 0xc ]                             
 200dc48:	c0 26 e0 10 	clr  [ %i3 + 0x10 ]                            
 200dc4c:	c0 26 e0 14 	clr  [ %i3 + 0x14 ]                            
 200dc50:	c0 26 e0 18 	clr  [ %i3 + 0x18 ]                            
 200dc54:	c0 26 e0 1c 	clr  [ %i3 + 0x1c ]                            
 200dc58:	c0 26 e0 20 	clr  [ %i3 + 0x20 ]                            
 200dc5c:	c0 26 e0 24 	clr  [ %i3 + 0x24 ]                            
 200dc60:	c0 26 e0 28 	clr  [ %i3 + 0x28 ]                            
 200dc64:	c0 26 e0 2c 	clr  [ %i3 + 0x2c ]                            
 200dc68:	c0 26 e0 30 	clr  [ %i3 + 0x30 ]                            
                                                                      
  pipe->Size = PIPE_BUF;                                              
  pipe->Buffer = malloc(pipe->Size);                                  
 200dc6c:	90 10 22 00 	mov  0x200, %o0                                
 200dc70:	7f ff dd 60 	call  20051f0 <malloc>                         
 200dc74:	c2 26 e0 04 	st  %g1, [ %i3 + 4 ]                           
  if (! pipe->Buffer)                                                 
 200dc78:	80 a2 20 00 	cmp  %o0, 0                                    
 200dc7c:	02 80 00 7a 	be  200de64 <fifo_open+0x4c0>                  <== NEVER TAKEN
 200dc80:	d0 26 c0 00 	st  %o0, [ %i3 ]                               
    goto err_buf;                                                     
                                                                      
  err = -ENOMEM;                                                      
                                                                      
  if (rtems_barrier_create(                                           
        rtems_build_name ('P', 'I', 'r', c),                          
 200dc84:	35 00 80 86 	sethi  %hi(0x2021800), %i2                     
 200dc88:	d0 4e a2 4c 	ldsb  [ %i2 + 0x24c ], %o0	! 2021a4c <c.6628>  
  if (! pipe->Buffer)                                                 
    goto err_buf;                                                     
                                                                      
  err = -ENOMEM;                                                      
                                                                      
  if (rtems_barrier_create(                                           
 200dc8c:	31 14 12 5c 	sethi  %hi(0x50497000), %i0                    
 200dc90:	82 16 22 00 	or  %i0, 0x200, %g1	! 50497200 <RAM_END+0x4e097200>
 200dc94:	92 10 20 00 	clr  %o1                                       
 200dc98:	94 10 20 00 	clr  %o2                                       
 200dc9c:	90 12 00 01 	or  %o0, %g1, %o0                              
 200dca0:	40 00 06 2e 	call  200f558 <rtems_barrier_create>           
 200dca4:	96 06 e0 2c 	add  %i3, 0x2c, %o3                            
 200dca8:	80 a2 20 00 	cmp  %o0, 0                                    
 200dcac:	12 80 00 6c 	bne  200de5c <fifo_open+0x4b8>                 
 200dcb0:	d0 4e a2 4c 	ldsb  [ %i2 + 0x24c ], %o0                     
        rtems_build_name ('P', 'I', 'r', c),                          
        RTEMS_BARRIER_MANUAL_RELEASE, 0,                              
        &pipe->readBarrier) != RTEMS_SUCCESSFUL)                      
    goto err_rbar;                                                    
  if (rtems_barrier_create(                                           
 200dcb4:	03 14 12 5d 	sethi  %hi(0x50497400), %g1                    
 200dcb8:	82 10 63 00 	or  %g1, 0x300, %g1	! 50497700 <RAM_END+0x4e097700>
 200dcbc:	92 10 20 00 	clr  %o1                                       
 200dcc0:	94 10 20 00 	clr  %o2                                       
 200dcc4:	90 12 00 01 	or  %o0, %g1, %o0                              
 200dcc8:	40 00 06 24 	call  200f558 <rtems_barrier_create>           
 200dccc:	96 06 e0 30 	add  %i3, 0x30, %o3                            
 200dcd0:	80 a2 20 00 	cmp  %o0, 0                                    
 200dcd4:	12 80 00 60 	bne  200de54 <fifo_open+0x4b0>                 
 200dcd8:	d0 4e a2 4c 	ldsb  [ %i2 + 0x24c ], %o0                     
        rtems_build_name ('P', 'I', 'w', c),                          
        RTEMS_BARRIER_MANUAL_RELEASE, 0,                              
        &pipe->writeBarrier) != RTEMS_SUCCESSFUL)                     
    goto err_wbar;                                                    
  if (rtems_semaphore_create(                                         
 200dcdc:	b0 16 23 00 	or  %i0, 0x300, %i0                            
 200dce0:	92 10 20 01 	mov  1, %o1                                    
 200dce4:	90 12 00 18 	or  %o0, %i0, %o0                              
 200dce8:	94 10 20 10 	mov  0x10, %o2                                 
 200dcec:	96 10 20 00 	clr  %o3                                       
 200dcf0:	7f ff ea 60 	call  2008670 <rtems_semaphore_create>         
 200dcf4:	98 06 e0 28 	add  %i3, 0x28, %o4                            
 200dcf8:	80 a2 20 00 	cmp  %o0, 0                                    
 200dcfc:	12 80 00 54 	bne  200de4c <fifo_open+0x4a8>                 
 200dd00:	94 07 bf fc 	add  %fp, -4, %o2                              
RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Get (                  
  Objects_Id         id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (Barrier_Control *)                                          
 200dd04:	d2 06 e0 2c 	ld  [ %i3 + 0x2c ], %o1                        
 200dd08:	21 00 80 8b 	sethi  %hi(0x2022c00), %l0                     
 200dd0c:	7f ff f1 7a 	call  200a2f4 <_Objects_Get>                   
 200dd10:	90 14 22 c0 	or  %l0, 0x2c0, %o0	! 2022ec0 <_Barrier_Information>
static void pipe_interruptible(pipe_control_t *pipe)                  
{                                                                     
  Objects_Locations location;                                         
                                                                      
  _Barrier_Get(pipe->readBarrier, &location)->Barrier.Wait_queue.state
    |= STATES_INTERRUPTIBLE_BY_SIGNAL;                                
 200dd14:	c2 02 20 4c 	ld  [ %o0 + 0x4c ], %g1                        
 200dd18:	31 04 00 00 	sethi  %hi(0x10000000), %i0                    
 200dd1c:	82 10 40 18 	or  %g1, %i0, %g1                              
  _Thread_Enable_dispatch();                                          
 200dd20:	7f ff f5 4c 	call  200b250 <_Thread_Enable_dispatch>        
 200dd24:	c2 22 20 4c 	st  %g1, [ %o0 + 0x4c ]                        
 200dd28:	d2 06 e0 30 	ld  [ %i3 + 0x30 ], %o1                        
 200dd2c:	94 07 bf fc 	add  %fp, -4, %o2                              
 200dd30:	7f ff f1 71 	call  200a2f4 <_Objects_Get>                   
 200dd34:	90 14 22 c0 	or  %l0, 0x2c0, %o0                            
  _Barrier_Get(pipe->writeBarrier, &location)->Barrier.Wait_queue.state
    |= STATES_INTERRUPTIBLE_BY_SIGNAL;                                
 200dd38:	c2 02 20 4c 	ld  [ %o0 + 0x4c ], %g1                        
 200dd3c:	b0 10 40 18 	or  %g1, %i0, %i0                              
  _Thread_Enable_dispatch();                                          
 200dd40:	7f ff f5 44 	call  200b250 <_Thread_Enable_dispatch>        
 200dd44:	f0 22 20 4c 	st  %i0, [ %o0 + 0x4c ]                        
#ifdef RTEMS_POSIX_API                                                
  pipe_interruptible(pipe);                                           
#endif                                                                
                                                                      
  *pipep = pipe;                                                      
  if (c ++ == 'z')                                                    
 200dd48:	c2 0e a2 4c 	ldub  [ %i2 + 0x24c ], %g1                     
 200dd4c:	84 00 60 01 	add  %g1, 1, %g2                               
 200dd50:	83 28 60 18 	sll  %g1, 0x18, %g1                            
 200dd54:	83 38 60 18 	sra  %g1, 0x18, %g1                            
 200dd58:	80 a0 60 7a 	cmp  %g1, 0x7a                                 
 200dd5c:	12 bf ff 24 	bne  200d9ec <fifo_open+0x48>                  
 200dd60:	c4 2e a2 4c 	stb  %g2, [ %i2 + 0x24c ]                      
    c = 'a';                                                          
 200dd64:	82 10 20 61 	mov  0x61, %g1                                 
 200dd68:	10 bf ff 21 	b  200d9ec <fifo_open+0x48>                    
 200dd6c:	c2 2e a2 4c 	stb  %g1, [ %i2 + 0x24c ]                      
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    err = -EINTR;                                                     
                                                                      
  if (*pipep == NULL) {                                               
    if (err)                                                          
 200dd70:	80 a6 20 00 	cmp  %i0, 0                                    
 200dd74:	12 80 00 24 	bne  200de04 <fifo_open+0x460>                 <== NEVER TAKEN
 200dd78:	d0 07 62 4c 	ld  [ %i5 + 0x24c ], %o0                       
                                                                      
static void pipe_unlock(void)                                         
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  sc = rtems_semaphore_release(pipe_semaphore);                       
 200dd7c:	7f ff eb 2e 	call  2008a34 <rtems_semaphore_release>        
 200dd80:	f6 27 00 00 	st  %i3, [ %i4 ]                               
  err = pipe_new(pipep);                                              
  if (err)                                                            
    return err;                                                       
  pipe = *pipep;                                                      
                                                                      
  switch (LIBIO_ACCMODE(iop)) {                                       
 200dd84:	10 bf ff 2a 	b  200da2c <fifo_open+0x88>                    
 200dd88:	c2 06 60 18 	ld  [ %i1 + 0x18 ], %g1                        
                                                                      
  if (pipe_semaphore == RTEMS_ID_NONE) {                              
    rtems_libio_lock();                                               
                                                                      
    if (pipe_semaphore == RTEMS_ID_NONE) {                            
      sc = rtems_semaphore_create(                                    
 200dd8c:	92 10 20 01 	mov  1, %o1                                    
 200dd90:	94 10 20 54 	mov  0x54, %o2                                 
 200dd94:	96 10 20 00 	clr  %o3                                       
 200dd98:	11 14 12 54 	sethi  %hi(0x50495000), %o0                    
 200dd9c:	7f ff ea 35 	call  2008670 <rtems_semaphore_create>         
 200dda0:	90 12 20 45 	or  %o0, 0x45, %o0	! 50495045 <RAM_END+0x4e095045>
 200dda4:	b4 10 00 08 	mov  %o0, %i2                                  
 200dda8:	d0 06 e3 cc 	ld  [ %i3 + 0x3cc ], %o0                       
 200ddac:	7f ff eb 22 	call  2008a34 <rtems_semaphore_release>        
 200ddb0:	b0 10 3f f4 	mov  -12, %i0                                  
    }                                                                 
                                                                      
    rtems_libio_unlock();                                             
  }                                                                   
                                                                      
  if (sc == RTEMS_SUCCESSFUL) {                                       
 200ddb4:	80 a6 a0 00 	cmp  %i2, 0                                    
 200ddb8:	12 bf ff 29 	bne  200da5c <fifo_open+0xb8>                  
 200ddbc:	d0 07 62 4c 	ld  [ %i5 + 0x24c ], %o0                       
    sc = rtems_semaphore_obtain(pipe_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
 200ddc0:	10 bf ff 01 	b  200d9c4 <fifo_open+0x20>                    
 200ddc4:	92 10 20 00 	clr  %o1                                       
                                                                      
  switch (LIBIO_ACCMODE(iop)) {                                       
    case LIBIO_FLAGS_READ:                                            
      pipe->readerCounter ++;                                         
      if (pipe->Readers ++ == 0)                                      
        PIPE_WAKEUPWRITERS(pipe);                                     
 200ddc8:	d0 07 60 30 	ld  [ %i5 + 0x30 ], %o0                        
 200ddcc:	40 00 06 3d 	call  200f6c0 <rtems_barrier_release>          
 200ddd0:	92 07 bf f8 	add  %fp, -8, %o1                              
                                                                      
      if (pipe->Writers == 0) {                                       
 200ddd4:	10 bf ff 2c 	b  200da84 <fifo_open+0xe0>                    
 200ddd8:	c2 07 60 14 	ld  [ %i5 + 0x14 ], %g1                        
      break;                                                          
                                                                      
    case LIBIO_FLAGS_READ_WRITE:                                      
      pipe->readerCounter ++;                                         
      if (pipe->Readers ++ == 0)                                      
        PIPE_WAKEUPWRITERS(pipe);                                     
 200dddc:	d0 07 60 30 	ld  [ %i5 + 0x30 ], %o0                        
 200dde0:	40 00 06 38 	call  200f6c0 <rtems_barrier_release>          
 200dde4:	92 07 bf f8 	add  %fp, -8, %o1                              
      pipe->writerCounter ++;                                         
      if (pipe->Writers ++ == 0)                                      
 200dde8:	10 bf ff 84 	b  200dbf8 <fifo_open+0x254>                   
 200ddec:	c2 07 60 14 	ld  [ %i5 + 0x14 ], %g1                        
                                                                      
    case LIBIO_FLAGS_WRITE:                                           
      pipe->writerCounter ++;                                         
                                                                      
      if (pipe->Writers ++ == 0)                                      
        PIPE_WAKEUPREADERS(pipe);                                     
 200ddf0:	d0 07 60 2c 	ld  [ %i5 + 0x2c ], %o0                        
 200ddf4:	40 00 06 33 	call  200f6c0 <rtems_barrier_release>          
 200ddf8:	92 07 bf f8 	add  %fp, -8, %o1                              
                                                                      
      if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {                 
 200ddfc:	10 bf ff 59 	b  200db60 <fifo_open+0x1bc>                   
 200de00:	c2 07 60 10 	ld  [ %i5 + 0x10 ], %g1                        
/* Called with pipe_semaphore held. */                                
static inline void pipe_free(                                         
  pipe_control_t *pipe                                                
)                                                                     
{                                                                     
  rtems_barrier_delete(pipe->readBarrier);                            
 200de04:	40 00 06 06 	call  200f61c <rtems_barrier_delete>           <== NOT EXECUTED
 200de08:	d0 06 e0 2c 	ld  [ %i3 + 0x2c ], %o0                        <== NOT EXECUTED
  rtems_barrier_delete(pipe->writeBarrier);                           
 200de0c:	40 00 06 04 	call  200f61c <rtems_barrier_delete>           <== NOT EXECUTED
 200de10:	d0 06 e0 30 	ld  [ %i3 + 0x30 ], %o0                        <== NOT EXECUTED
  rtems_semaphore_delete(pipe->Semaphore);                            
 200de14:	7f ff ea 87 	call  2008830 <rtems_semaphore_delete>         <== NOT EXECUTED
 200de18:	d0 06 e0 28 	ld  [ %i3 + 0x28 ], %o0                        <== NOT EXECUTED
  free(pipe->Buffer);                                                 
 200de1c:	7f ff da f6 	call  20049f4 <free>                           <== NOT EXECUTED
 200de20:	d0 06 c0 00 	ld  [ %i3 ], %o0                               <== NOT EXECUTED
  free(pipe);                                                         
 200de24:	7f ff da f4 	call  20049f4 <free>                           <== NOT EXECUTED
 200de28:	90 10 00 1b 	mov  %i3, %o0                                  <== NOT EXECUTED
                                                                      
static void pipe_unlock(void)                                         
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  sc = rtems_semaphore_release(pipe_semaphore);                       
 200de2c:	7f ff eb 02 	call  2008a34 <rtems_semaphore_release>        
 200de30:	d0 07 62 4c 	ld  [ %i5 + 0x24c ], %o0                       
 200de34:	81 c7 e0 08 	ret                                            
 200de38:	81 e8 00 00 	restore                                        
                                                                      
      if (pipe->Writers ++ == 0)                                      
        PIPE_WAKEUPREADERS(pipe);                                     
                                                                      
      if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {                 
	PIPE_UNLOCK(pipe);                                                   
 200de3c:	7f ff ea fe 	call  2008a34 <rtems_semaphore_release>        
 200de40:	b0 10 3f fa 	mov  -6, %i0                                   
        err = -ENXIO;                                                 
        goto out_error;                                               
 200de44:	10 bf ff 2d 	b  200daf8 <fifo_open+0x154>                   
 200de48:	90 10 00 1c 	mov  %i4, %o0                                  
  if (c ++ == 'z')                                                    
    c = 'a';                                                          
  return 0;                                                           
                                                                      
err_sem:                                                              
  rtems_barrier_delete(pipe->writeBarrier);                           
 200de4c:	40 00 05 f4 	call  200f61c <rtems_barrier_delete>           
 200de50:	d0 06 e0 30 	ld  [ %i3 + 0x30 ], %o0                        
err_wbar:                                                             
  rtems_barrier_delete(pipe->readBarrier);                            
 200de54:	40 00 05 f2 	call  200f61c <rtems_barrier_delete>           
 200de58:	d0 06 e0 2c 	ld  [ %i3 + 0x2c ], %o0                        
err_rbar:                                                             
  free(pipe->Buffer);                                                 
 200de5c:	7f ff da e6 	call  20049f4 <free>                           
 200de60:	d0 06 c0 00 	ld  [ %i3 ], %o0                               
err_buf:                                                              
  free(pipe);                                                         
 200de64:	7f ff da e4 	call  20049f4 <free>                           
 200de68:	90 10 00 1b 	mov  %i3, %o0                                  
    }                                                                 
                                                                      
    rtems_libio_unlock();                                             
  }                                                                   
                                                                      
  if (sc == RTEMS_SUCCESSFUL) {                                       
 200de6c:	10 bf ff f0 	b  200de2c <fifo_open+0x488>                   
 200de70:	b0 10 3f f4 	mov  -12, %i0                                  
                                                                      

02003738 <fpathconf>: long fpathconf( int fd, int name ) {
 2003738:	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);                                           
 200373c:	03 00 80 5f 	sethi  %hi(0x2017c00), %g1                     
 2003740:	c2 00 60 30 	ld  [ %g1 + 0x30 ], %g1	! 2017c30 <rtems_libio_number_iops>
 2003744:	80 a6 00 01 	cmp  %i0, %g1                                  
 2003748:	1a 80 00 3b 	bcc  2003834 <fpathconf+0xfc>                  
 200374c:	03 00 80 61 	sethi  %hi(0x2018400), %g1                     
  iop = rtems_libio_iop(fd);                                          
 2003750:	c2 00 62 80 	ld  [ %g1 + 0x280 ], %g1	! 2018680 <rtems_libio_iops>
 2003754:	b1 2e 20 06 	sll  %i0, 6, %i0                               
 2003758:	b0 00 40 18 	add  %g1, %i0, %i0                             
  rtems_libio_check_is_open(iop);                                     
 200375c:	c2 06 20 18 	ld  [ %i0 + 0x18 ], %g1                        
 2003760:	80 88 61 00 	btst  0x100, %g1                               
 2003764:	02 80 00 34 	be  2003834 <fpathconf+0xfc>                   <== NEVER TAKEN
 2003768:	80 a6 60 0b 	cmp  %i1, 0xb                                  
   *  Now process the information request.                            
   */                                                                 
                                                                      
  the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options;  
                                                                      
  switch ( name ) {                                                   
 200376c:	08 80 00 08 	bleu  200378c <fpathconf+0x54>                 
 2003770:	c2 06 20 2c 	ld  [ %i0 + 0x2c ], %g1                        
      break;                                                          
    case _PC_SYNC_IO:                                                 
      return_value = the_limits->posix_sync_io;                       
      break;                                                          
    default:                                                          
      rtems_set_errno_and_return_minus_one( EINVAL );                 
 2003774:	40 00 33 6c 	call  2010524 <__errno>                        
 2003778:	b0 10 3f ff 	mov  -1, %i0                                   
 200377c:	82 10 20 16 	mov  0x16, %g1                                 
 2003780:	c2 22 00 00 	st  %g1, [ %o0 ]                               
      break;                                                          
  }                                                                   
                                                                      
  return return_value;                                                
}                                                                     
 2003784:	81 c7 e0 08 	ret                                            
 2003788:	81 e8 00 00 	restore                                        
   *  Now process the information request.                            
   */                                                                 
                                                                      
  the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options;  
                                                                      
  switch ( name ) {                                                   
 200378c:	b3 2e 60 02 	sll  %i1, 2, %i1                               
 2003790:	05 00 80 0d 	sethi  %hi(0x2003400), %g2                     
 2003794:	84 10 a3 08 	or  %g2, 0x308, %g2	! 2003708 <fdatasync+0x6c> 
 2003798:	c4 00 80 19 	ld  [ %g2 + %i1 ], %g2                         
 200379c:	81 c0 80 00 	jmp  %g2                                       
 20037a0:	01 00 00 00 	nop                                            
      break;                                                          
    case _PC_ASYNC_IO:                                                
      return_value = the_limits->posix_async_io;                      
      break;                                                          
    case _PC_PRIO_IO:                                                 
      return_value = the_limits->posix_prio_io;                       
 20037a4:	f0 00 60 5c 	ld  [ %g1 + 0x5c ], %i0                        
      break;                                                          
 20037a8:	81 c7 e0 08 	ret                                            
 20037ac:	81 e8 00 00 	restore                                        
      break;                                                          
    case _PC_VDISABLE:                                                
      return_value = the_limits->posix_vdisable;                      
      break;                                                          
    case _PC_ASYNC_IO:                                                
      return_value = the_limits->posix_async_io;                      
 20037b0:	f0 00 60 50 	ld  [ %g1 + 0x50 ], %i0                        
      break;                                                          
 20037b4:	81 c7 e0 08 	ret                                            
 20037b8:	81 e8 00 00 	restore                                        
      break;                                                          
    case _PC_NO_TRUNC:                                                
      return_value = the_limits->posix_no_trunc;                      
      break;                                                          
    case _PC_VDISABLE:                                                
      return_value = the_limits->posix_vdisable;                      
 20037bc:	f0 00 60 64 	ld  [ %g1 + 0x64 ], %i0                        
      break;                                                          
 20037c0:	81 c7 e0 08 	ret                                            
 20037c4:	81 e8 00 00 	restore                                        
      break;                                                          
    case _PC_CHOWN_RESTRICTED:                                        
      return_value = the_limits->posix_chown_restrictions;            
      break;                                                          
    case _PC_NO_TRUNC:                                                
      return_value = the_limits->posix_no_trunc;                      
 20037c8:	f0 00 60 58 	ld  [ %g1 + 0x58 ], %i0                        
      break;                                                          
 20037cc:	81 c7 e0 08 	ret                                            
 20037d0:	81 e8 00 00 	restore                                        
      break;                                                          
    case _PC_PIPE_BUF:                                                
      return_value = the_limits->pipe_buf;                            
      break;                                                          
    case _PC_CHOWN_RESTRICTED:                                        
      return_value = the_limits->posix_chown_restrictions;            
 20037d4:	f0 00 60 54 	ld  [ %g1 + 0x54 ], %i0                        
      break;                                                          
 20037d8:	81 c7 e0 08 	ret                                            
 20037dc:	81 e8 00 00 	restore                                        
      break;                                                          
    case _PC_PATH_MAX:                                                
      return_value = the_limits->path_max;                            
      break;                                                          
    case _PC_PIPE_BUF:                                                
      return_value = the_limits->pipe_buf;                            
 20037e0:	f0 00 60 4c 	ld  [ %g1 + 0x4c ], %i0                        
      break;                                                          
 20037e4:	81 c7 e0 08 	ret                                            
 20037e8:	81 e8 00 00 	restore                                        
      break;                                                          
    case _PC_NAME_MAX:                                                
      return_value = the_limits->name_max;                            
      break;                                                          
    case _PC_PATH_MAX:                                                
      return_value = the_limits->path_max;                            
 20037ec:	f0 00 60 48 	ld  [ %g1 + 0x48 ], %i0                        
      break;                                                          
 20037f0:	81 c7 e0 08 	ret                                            
 20037f4:	81 e8 00 00 	restore                                        
      break;                                                          
    case _PC_MAX_INPUT:                                               
      return_value = the_limits->max_input;                           
      break;                                                          
    case _PC_NAME_MAX:                                                
      return_value = the_limits->name_max;                            
 20037f8:	f0 00 60 44 	ld  [ %g1 + 0x44 ], %i0                        
      break;                                                          
 20037fc:	81 c7 e0 08 	ret                                            
 2003800:	81 e8 00 00 	restore                                        
      break;                                                          
    case _PC_MAX_CANON:                                               
      return_value = the_limits->max_canon;                           
      break;                                                          
    case _PC_MAX_INPUT:                                               
      return_value = the_limits->max_input;                           
 2003804:	f0 00 60 40 	ld  [ %g1 + 0x40 ], %i0                        
      break;                                                          
 2003808:	81 c7 e0 08 	ret                                            
 200380c:	81 e8 00 00 	restore                                        
  switch ( name ) {                                                   
    case _PC_LINK_MAX:                                                
      return_value = the_limits->link_max;                            
      break;                                                          
    case _PC_MAX_CANON:                                               
      return_value = the_limits->max_canon;                           
 2003810:	f0 00 60 3c 	ld  [ %g1 + 0x3c ], %i0                        
      break;                                                          
 2003814:	81 c7 e0 08 	ret                                            
 2003818:	81 e8 00 00 	restore                                        
                                                                      
  the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options;  
                                                                      
  switch ( name ) {                                                   
    case _PC_LINK_MAX:                                                
      return_value = the_limits->link_max;                            
 200381c:	f0 00 60 38 	ld  [ %g1 + 0x38 ], %i0                        
      break;                                                          
 2003820:	81 c7 e0 08 	ret                                            
 2003824:	81 e8 00 00 	restore                                        
      break;                                                          
    case _PC_PRIO_IO:                                                 
      return_value = the_limits->posix_prio_io;                       
      break;                                                          
    case _PC_SYNC_IO:                                                 
      return_value = the_limits->posix_sync_io;                       
 2003828:	f0 00 60 60 	ld  [ %g1 + 0x60 ], %i0                        
      break;                                                          
 200382c:	81 c7 e0 08 	ret                                            
 2003830:	81 e8 00 00 	restore                                        
  rtems_libio_t                          *iop;                        
  rtems_filesystem_limits_and_options_t  *the_limits;                 
                                                                      
  rtems_libio_check_fd(fd);                                           
  iop = rtems_libio_iop(fd);                                          
  rtems_libio_check_is_open(iop);                                     
 2003834:	40 00 33 3c 	call  2010524 <__errno>                        
 2003838:	b0 10 3f ff 	mov  -1, %i0                                   
 200383c:	82 10 20 09 	mov  9, %g1                                    
 2003840:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2003844:	81 c7 e0 08 	ret                                            
 2003848:	81 e8 00 00 	restore                                        
                                                                      

02002f10 <free>: #include <stdlib.h> void free( void *ptr ) {
 2002f10:	9d e3 bf a0 	save  %sp, -96, %sp                            
  MSBUMP(free_calls, 1);                                              
 2002f14:	03 00 80 76 	sethi  %hi(0x201d800), %g1                     
 2002f18:	82 10 60 20 	or  %g1, 0x20, %g1	! 201d820 <rtems_malloc_statistics>
 2002f1c:	c4 00 60 0c 	ld  [ %g1 + 0xc ], %g2                         
#include <stdlib.h>                                                   
                                                                      
void free(                                                            
  void *ptr                                                           
)                                                                     
{                                                                     
 2002f20:	b2 10 00 18 	mov  %i0, %i1                                  
  MSBUMP(free_calls, 1);                                              
 2002f24:	84 00 a0 01 	inc  %g2                                       
                                                                      
  if ( !ptr )                                                         
 2002f28:	80 a6 20 00 	cmp  %i0, 0                                    
 2002f2c:	02 80 00 15 	be  2002f80 <free+0x70>                        
 2002f30:	c4 20 60 0c 	st  %g2, [ %g1 + 0xc ]                         
    return;                                                           
                                                                      
  /*                                                                  
   *  Do not attempt to free memory if in a critical section or ISR.  
   */                                                                 
  if ( _System_state_Is_up(_System_state_Get()) &&                    
 2002f34:	03 00 80 76 	sethi  %hi(0x201d800), %g1                     
 2002f38:	c2 00 63 24 	ld  [ %g1 + 0x324 ], %g1	! 201db24 <_System_state_Current>
 2002f3c:	80 a0 60 03 	cmp  %g1, 3                                    
 2002f40:	02 80 00 17 	be  2002f9c <free+0x8c>                        <== ALWAYS TAKEN
 2002f44:	03 00 80 75 	sethi  %hi(0x201d400), %g1                     
  }                                                                   
                                                                      
  /*                                                                  
   *  If configured, update the statistics                            
   */                                                                 
  if ( rtems_malloc_statistics_helpers )                              
 2002f48:	c2 00 61 64 	ld  [ %g1 + 0x164 ], %g1	! 201d564 <rtems_malloc_statistics_helpers>
 2002f4c:	80 a0 60 00 	cmp  %g1, 0                                    
 2002f50:	02 80 00 06 	be  2002f68 <free+0x58>                        
 2002f54:	3b 00 80 73 	sethi  %hi(0x201cc00), %i5                     
    (*rtems_malloc_statistics_helpers->at_free)(ptr);                 
 2002f58:	c2 00 60 08 	ld  [ %g1 + 8 ], %g1                           
 2002f5c:	9f c0 40 00 	call  %g1                                      
 2002f60:	90 10 00 19 	mov  %i1, %o0                                  
                                                                      
  if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) {            
 2002f64:	3b 00 80 73 	sethi  %hi(0x201cc00), %i5                     
 2002f68:	d0 07 61 50 	ld  [ %i5 + 0x150 ], %o0	! 201cd50 <RTEMS_Malloc_Heap>
 2002f6c:	40 00 15 fc 	call  200875c <_Protected_heap_Free>           
 2002f70:	92 10 00 19 	mov  %i1, %o1                                  
 2002f74:	80 8a 20 ff 	btst  0xff, %o0                                
 2002f78:	22 80 00 04 	be,a   2002f88 <free+0x78>                     
 2002f7c:	c2 07 61 50 	ld  [ %i5 + 0x150 ], %g1                       
 2002f80:	81 c7 e0 08 	ret                                            
 2002f84:	81 e8 00 00 	restore                                        
    printk( "Program heap: free of bad pointer %p -- range %p - %p \n",
 2002f88:	31 00 80 6e 	sethi  %hi(0x201b800), %i0                     
 2002f8c:	f4 00 60 18 	ld  [ %g1 + 0x18 ], %i2                        
 2002f90:	f6 00 60 1c 	ld  [ %g1 + 0x1c ], %i3                        
 2002f94:	40 00 03 ae 	call  2003e4c <printk>                         
 2002f98:	91 ee 20 18 	restore  %i0, 0x18, %o0                        
                                                                      
  /*                                                                  
   *  Do not attempt to free memory if in a critical section or ISR.  
   */                                                                 
  if ( _System_state_Is_up(_System_state_Get()) &&                    
       !malloc_is_system_state_OK() ) {                               
 2002f9c:	40 00 00 5d 	call  2003110 <malloc_is_system_state_OK>      
 2002fa0:	01 00 00 00 	nop                                            
    return;                                                           
                                                                      
  /*                                                                  
   *  Do not attempt to free memory if in a critical section or ISR.  
   */                                                                 
  if ( _System_state_Is_up(_System_state_Get()) &&                    
 2002fa4:	80 8a 20 ff 	btst  0xff, %o0                                
 2002fa8:	12 bf ff e8 	bne  2002f48 <free+0x38>                       
 2002fac:	03 00 80 75 	sethi  %hi(0x201d400), %g1                     
       !malloc_is_system_state_OK() ) {                               
      malloc_deferred_free(ptr);                                      
 2002fb0:	40 00 00 77 	call  200318c <malloc_deferred_free>           
 2002fb4:	81 e8 00 00 	restore                                        
                                                                      

02003fcc <free_user_env>: * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) {
 2003fcc:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_user_env_t *env = (rtems_user_env_t*) venv ;                  
                                                                      
  if (env != &rtems_global_user_env                                   
 2003fd0:	03 00 80 5b 	sethi  %hi(0x2016c00), %g1                     
 2003fd4:	82 10 63 c4 	or  %g1, 0x3c4, %g1	! 2016fc4 <rtems_global_user_env>
 2003fd8:	80 a6 00 01 	cmp  %i0, %g1                                  
 2003fdc:	02 80 00 08 	be  2003ffc <free_user_env+0x30>               <== NEVER TAKEN
 2003fe0:	01 00 00 00 	nop                                            
  #ifdef HAVE_USERENV_REFCNT                                          
      && --env->refcnt <= 0                                           
  #endif                                                              
  ) {                                                                 
    rtems_filesystem_freenode( &env->current_directory);              
 2003fe4:	7f ff fb 8a 	call  2002e0c <rtems_filesystem_freenode>      
 2003fe8:	90 06 20 04 	add  %i0, 4, %o0                               
    rtems_filesystem_freenode( &env->root_directory);                 
 2003fec:	7f ff fb 88 	call  2002e0c <rtems_filesystem_freenode>      
 2003ff0:	90 06 20 18 	add  %i0, 0x18, %o0                            
    free(env);                                                        
 2003ff4:	7f ff fb 8d 	call  2002e28 <free>                           
 2003ff8:	81 e8 00 00 	restore                                        
 2003ffc:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 2004000:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

020026d0 <get_disk_entry>: rtems_device_major_number major = 0; rtems_device_minor_number minor = 0; rtems_filesystem_split_dev_t(dev, major, minor); if (major < disktab_size && disktab != NULL) {
 20026d0:	03 00 80 6a 	sethi  %hi(0x201a800), %g1                     
 20026d4:	c2 00 60 90 	ld  [ %g1 + 0x90 ], %g1	! 201a890 <disktab_size>
 20026d8:	80 a0 40 08 	cmp  %g1, %o0                                  
 20026dc:	08 80 00 1e 	bleu  2002754 <get_disk_entry+0x84>            <== NEVER TAKEN
 20026e0:	84 10 20 00 	clr  %g2                                       
 20026e4:	03 00 80 6a 	sethi  %hi(0x201a800), %g1                     
 20026e8:	c2 00 60 94 	ld  [ %g1 + 0x94 ], %g1	! 201a894 <disktab>    
 20026ec:	80 a0 60 00 	cmp  %g1, 0                                    
 20026f0:	02 80 00 19 	be  2002754 <get_disk_entry+0x84>              <== NEVER TAKEN
 20026f4:	01 00 00 00 	nop                                            
    rtems_disk_device_table *dtab = disktab + major;                  
 20026f8:	91 2a 20 03 	sll  %o0, 3, %o0                               
 20026fc:	86 00 40 08 	add  %g1, %o0, %g3                             
                                                                      
    if (minor < dtab->size && dtab->minor != NULL) {                  
 2002700:	c6 00 e0 04 	ld  [ %g3 + 4 ], %g3                           
 2002704:	80 a0 c0 09 	cmp  %g3, %o1                                  
 2002708:	08 80 00 13 	bleu  2002754 <get_disk_entry+0x84>            <== NEVER TAKEN
 200270c:	01 00 00 00 	nop                                            
 2002710:	c2 00 40 08 	ld  [ %g1 + %o0 ], %g1                         
 2002714:	80 a0 60 00 	cmp  %g1, 0                                    
 2002718:	02 80 00 0f 	be  2002754 <get_disk_entry+0x84>              <== NEVER TAKEN
 200271c:	93 2a 60 02 	sll  %o1, 2, %o1                               
      rtems_disk_device *dd = dtab->minor [minor];                    
 2002720:	c4 00 40 09 	ld  [ %g1 + %o1 ], %g2                         
                                                                      
      if (dd != NULL && !lookup_only) {                               
 2002724:	80 a0 a0 00 	cmp  %g2, 0                                    
 2002728:	02 80 00 0b 	be  2002754 <get_disk_entry+0x84>              
 200272c:	80 a2 a0 00 	cmp  %o2, 0                                    
 2002730:	12 80 00 09 	bne  2002754 <get_disk_entry+0x84>             
 2002734:	01 00 00 00 	nop                                            
        if (!dd->deleted) {                                           
 2002738:	c2 08 a0 30 	ldub  [ %g2 + 0x30 ], %g1                      
 200273c:	80 a0 60 00 	cmp  %g1, 0                                    
 2002740:	32 80 00 07 	bne,a   200275c <get_disk_entry+0x8c>          
 2002744:	84 10 20 00 	clr  %g2                                       
          ++dd->uses;                                                 
 2002748:	c2 00 a0 14 	ld  [ %g2 + 0x14 ], %g1                        
 200274c:	82 00 60 01 	inc  %g1                                       
 2002750:	c2 20 a0 14 	st  %g1, [ %g2 + 0x14 ]                        
      return dd;                                                      
    }                                                                 
  }                                                                   
                                                                      
  return NULL;                                                        
}                                                                     
 2002754:	81 c3 e0 08 	retl                                           
 2002758:	90 10 00 02 	mov  %g2, %o0                                  
 200275c:	81 c3 e0 08 	retl                                           
 2002760:	90 10 00 02 	mov  %g2, %o0                                  
                                                                      

02015e74 <getdents>: int getdents( int dd_fd, char *dd_buf, int dd_len ) {
 2015e74:	9d e3 bf 88 	save  %sp, -120, %sp                           
  rtems_filesystem_location_info_t  loc;                              
                                                                      
  /*                                                                  
   *  Get the file control block structure associated with the file descriptor
   */                                                                 
  iop = rtems_libio_iop( dd_fd );                                     
 2015e78:	03 00 80 63 	sethi  %hi(0x2018c00), %g1                     
 2015e7c:	c2 00 60 78 	ld  [ %g1 + 0x78 ], %g1	! 2018c78 <rtems_libio_number_iops>
 2015e80:	80 a6 00 01 	cmp  %i0, %g1                                  
 2015e84:	1a 80 00 06 	bcc  2015e9c <getdents+0x28>                   <== NEVER TAKEN
 2015e88:	ba 10 20 00 	clr  %i5                                       
 2015e8c:	03 00 80 65 	sethi  %hi(0x2019400), %g1                     
 2015e90:	fa 00 63 fc 	ld  [ %g1 + 0x3fc ], %i5	! 20197fc <rtems_libio_iops>
 2015e94:	b1 2e 20 06 	sll  %i0, 6, %i0                               
 2015e98:	ba 07 40 18 	add  %i5, %i0, %i5                             
                                                                      
  /*                                                                  
   *  Make sure we are working on a directory                         
   */                                                                 
  loc = iop->pathinfo;                                                
 2015e9c:	c4 07 60 28 	ld  [ %i5 + 0x28 ], %g2                        
 2015ea0:	de 07 60 1c 	ld  [ %i5 + 0x1c ], %o7                        
  if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY )
 2015ea4:	c2 00 a0 10 	ld  [ %g2 + 0x10 ], %g1                        
  iop = rtems_libio_iop( dd_fd );                                     
                                                                      
  /*                                                                  
   *  Make sure we are working on a directory                         
   */                                                                 
  loc = iop->pathinfo;                                                
 2015ea8:	f0 07 60 20 	ld  [ %i5 + 0x20 ], %i0                        
 2015eac:	c8 07 60 24 	ld  [ %i5 + 0x24 ], %g4                        
 2015eb0:	c6 07 60 2c 	ld  [ %i5 + 0x2c ], %g3                        
 2015eb4:	de 27 bf ec 	st  %o7, [ %fp + -20 ]                         
 2015eb8:	f0 27 bf f0 	st  %i0, [ %fp + -16 ]                         
 2015ebc:	c8 27 bf f4 	st  %g4, [ %fp + -12 ]                         
 2015ec0:	c4 27 bf f8 	st  %g2, [ %fp + -8 ]                          
 2015ec4:	c6 27 bf fc 	st  %g3, [ %fp + -4 ]                          
  if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY )
 2015ec8:	9f c0 40 00 	call  %g1                                      
 2015ecc:	90 07 bf ec 	add  %fp, -20, %o0                             
 2015ed0:	80 a2 20 01 	cmp  %o0, 1                                    
 2015ed4:	12 80 00 09 	bne  2015ef8 <getdents+0x84>                   
 2015ed8:	90 10 00 1d 	mov  %i5, %o0                                  
                                                                      
  /*                                                                  
   *  Return the number of bytes that were actually transfered as a result
   *  of the read attempt.                                            
   */                                                                 
  return (*iop->pathinfo.handlers->read_h)( iop, dd_buf, dd_len  );   
 2015edc:	c2 07 60 24 	ld  [ %i5 + 0x24 ], %g1                        
 2015ee0:	c2 00 60 08 	ld  [ %g1 + 8 ], %g1                           
 2015ee4:	92 10 00 19 	mov  %i1, %o1                                  
 2015ee8:	9f c0 40 00 	call  %g1                                      
 2015eec:	94 10 00 1a 	mov  %i2, %o2                                  
}                                                                     
 2015ef0:	81 c7 e0 08 	ret                                            
 2015ef4:	91 e8 00 08 	restore  %g0, %o0, %o0                         
  /*                                                                  
   *  Make sure we are working on a directory                         
   */                                                                 
  loc = iop->pathinfo;                                                
  if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY )
    rtems_set_errno_and_return_minus_one( ENOTDIR );                  
 2015ef8:	7f ff e8 b8 	call  20101d8 <__errno>                        
 2015efc:	b0 10 3f ff 	mov  -1, %i0                                   
 2015f00:	82 10 20 14 	mov  0x14, %g1                                 
 2015f04:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2015f08:	81 c7 e0 08 	ret                                            
 2015f0c:	81 e8 00 00 	restore                                        
                                                                      

0200eb00 <imfs_dir_open>: IMFS_jnode_t *the_jnode; /* Is the node a directory ? */ the_jnode = (IMFS_jnode_t *) iop->pathinfo.node_access; if ( the_jnode->type != IMFS_DIRECTORY )
 200eb00:	c4 02 20 1c 	ld  [ %o0 + 0x1c ], %g2                        
 200eb04:	c4 00 a0 4c 	ld  [ %g2 + 0x4c ], %g2                        
 200eb08:	80 a0 a0 01 	cmp  %g2, 1                                    
 200eb0c:	12 80 00 05 	bne  200eb20 <imfs_dir_open+0x20>              <== NEVER TAKEN
 200eb10:	82 10 3f ff 	mov  -1, %g1                                   
     return -1;      /* It wasn't a directory --> return error */     
                                                                      
  iop->offset = 0;                                                    
 200eb14:	c0 22 20 10 	clr  [ %o0 + 0x10 ]                            
 200eb18:	c0 22 20 14 	clr  [ %o0 + 0x14 ]                            
  return 0;                                                           
 200eb1c:	82 10 20 00 	clr  %g1                                       
}                                                                     
 200eb20:	81 c3 e0 08 	retl                                           
 200eb24:	90 10 00 01 	mov  %g1, %o0                                  
                                                                      

0200eb28 <imfs_dir_read>: ssize_t imfs_dir_read( rtems_libio_t *iop, void *buffer, size_t count ) {
 200eb28:	9d e3 be 88 	save  %sp, -376, %sp                           
   int                  current_entry;                                
   int                  first_entry;                                  
   int                  last_entry;                                   
   struct dirent        tmp_dirent;                                   
                                                                      
   the_jnode = (IMFS_jnode_t *)iop->pathinfo.node_access;             
 200eb2c:	f6 06 20 1c 	ld  [ %i0 + 0x1c ], %i3                        
ssize_t imfs_dir_read(                                                
  rtems_libio_t  *iop,                                                
  void           *buffer,                                             
  size_t          count                                               
)                                                                     
{                                                                     
 200eb30:	ba 10 00 18 	mov  %i0, %i5                                  
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(        
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_head( the_chain )->next;                    
 200eb34:	f8 06 e0 50 	ld  [ %i3 + 0x50 ], %i4                        
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
 200eb38:	b6 06 e0 54 	add  %i3, 0x54, %i3                            
   struct dirent        tmp_dirent;                                   
                                                                      
   the_jnode = (IMFS_jnode_t *)iop->pathinfo.node_access;             
   the_chain = &the_jnode->info.directory.Entries;                    
                                                                      
   if ( rtems_chain_is_empty( the_chain ) )                           
 200eb3c:	80 a7 00 1b 	cmp  %i4, %i3                                  
 200eb40:	02 80 00 34 	be  200ec10 <imfs_dir_read+0xe8>               
 200eb44:	b0 10 20 00 	clr  %i0                                       
                                                                      
   /* Move to the first of the desired directory entries */           
   the_node = rtems_chain_first( the_chain );                         
                                                                      
   bytes_transferred = 0;                                             
   first_entry = iop->offset;                                         
 200eb48:	e0 07 60 14 	ld  [ %i5 + 0x14 ], %l0                        
   /* 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);
 200eb4c:	90 10 00 1a 	mov  %i2, %o0                                  
 200eb50:	40 00 27 0e 	call  2018788 <.udiv>                          
 200eb54:	92 10 21 18 	mov  0x118, %o1                                
   for (                                                              
      current_entry = 0;                                              
      current_entry < last_entry;                                     
      current_entry = current_entry + sizeof(struct dirent) ){        
                                                                      
      if ( rtems_chain_is_tail( the_chain, the_node ) ){              
 200eb58:	b4 10 20 00 	clr  %i2                                       
                                                                      
   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);
 200eb5c:	83 2a 20 03 	sll  %o0, 3, %g1                               
 200eb60:	91 2a 20 05 	sll  %o0, 5, %o0                               
 200eb64:	82 00 40 08 	add  %g1, %o0, %g1                             
 200eb68:	a3 28 60 03 	sll  %g1, 3, %l1                               
 200eb6c:	a2 24 40 01 	sub  %l1, %g1, %l1                             
 200eb70:	a2 04 40 10 	add  %l1, %l0, %l1                             
                                                                      
   /* The directory was not empty so try to move to the desired entry in chain*/
   for (                                                              
 200eb74:	80 a4 60 00 	cmp  %l1, 0                                    
 200eb78:	14 80 00 09 	bg  200eb9c <imfs_dir_read+0x74>               <== ALWAYS TAKEN
 200eb7c:	a4 10 21 18 	mov  0x118, %l2                                
 200eb80:	30 80 00 24 	b,a   200ec10 <imfs_dir_read+0xe8>             <== NOT EXECUTED
 200eb84:	80 a4 40 1a 	cmp  %l1, %i2                                  
 200eb88:	04 80 00 22 	ble  200ec10 <imfs_dir_read+0xe8>              <== NEVER TAKEN
 200eb8c:	f8 07 00 00 	ld  [ %i4 ], %i4                               
      current_entry = 0;                                              
      current_entry < last_entry;                                     
      current_entry = current_entry + sizeof(struct dirent) ){        
                                                                      
      if ( rtems_chain_is_tail( the_chain, the_node ) ){              
 200eb90:	80 a7 00 1b 	cmp  %i4, %i3                                  
 200eb94:	02 80 00 1f 	be  200ec10 <imfs_dir_read+0xe8>               
 200eb98:	01 00 00 00 	nop                                            
         /* entry in the read */                                      
         return bytes_transferred;  /* Indicate that there are no more */
                                    /* entries to return */           
      }                                                               
                                                                      
      if( current_entry >= first_entry ) {                            
 200eb9c:	80 a4 00 1a 	cmp  %l0, %i2                                  
 200eba0:	34 bf ff f9 	bg,a   200eb84 <imfs_dir_read+0x5c>            
 200eba4:	b4 06 a1 18 	add  %i2, 0x118, %i2                           
         /* 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;                        
 200eba8:	c2 07 20 38 	ld  [ %i4 + 0x38 ], %g1                        
                                    /* entries to return */           
      }                                                               
                                                                      
      if( current_entry >= first_entry ) {                            
         /* Move the entry to the return buffer */                    
         tmp_dirent.d_off = current_entry;                            
 200ebac:	85 3e a0 1f 	sra  %i2, 0x1f, %g2                            
         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 );             
 200ebb0:	a6 07 20 0c 	add  %i4, 0xc, %l3                             
                                    /* entries to return */           
      }                                                               
                                                                      
      if( current_entry >= first_entry ) {                            
         /* Move the entry to the return buffer */                    
         tmp_dirent.d_off = current_entry;                            
 200ebb4:	c4 27 be f0 	st  %g2, [ %fp + -272 ]                        
         tmp_dirent.d_reclen = sizeof( struct dirent );               
         the_jnode = (IMFS_jnode_t *) the_node;                       
         tmp_dirent.d_ino = the_jnode->st_ino;                        
 200ebb8:	c2 27 be e8 	st  %g1, [ %fp + -280 ]                        
                                    /* entries to return */           
      }                                                               
                                                                      
      if( current_entry >= first_entry ) {                            
         /* Move the entry to the return buffer */                    
         tmp_dirent.d_off = current_entry;                            
 200ebbc:	f4 27 be f4 	st  %i2, [ %fp + -268 ]                        
         tmp_dirent.d_reclen = sizeof( struct dirent );               
 200ebc0:	e4 37 be f8 	sth  %l2, [ %fp + -264 ]                       
         the_jnode = (IMFS_jnode_t *) the_node;                       
         tmp_dirent.d_ino = the_jnode->st_ino;                        
         tmp_dirent.d_namlen = strlen( the_jnode->name );             
 200ebc4:	40 00 09 0f 	call  2011000 <strlen>                         
 200ebc8:	90 10 00 13 	mov  %l3, %o0                                  
         strcpy( tmp_dirent.d_name, the_jnode->name );                
 200ebcc:	92 10 00 13 	mov  %l3, %o1                                  
         /* 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 );             
 200ebd0:	d0 37 be fa 	sth  %o0, [ %fp + -262 ]                       
         strcpy( tmp_dirent.d_name, the_jnode->name );                
 200ebd4:	40 00 07 47 	call  20108f0 <strcpy>                         
 200ebd8:	90 07 be fc 	add  %fp, -260, %o0                            
         memcpy(                                                      
 200ebdc:	90 06 40 18 	add  %i1, %i0, %o0                             
 200ebe0:	92 07 be e8 	add  %fp, -280, %o1                            
 200ebe4:	40 00 05 cb 	call  2010310 <memcpy>                         
 200ebe8:	94 10 21 18 	mov  0x118, %o2                                
            buffer + bytes_transferred,                               
            (void *)&tmp_dirent,                                      
            sizeof( struct dirent )                                   
         );                                                           
         iop->offset = iop->offset + sizeof(struct dirent);           
 200ebec:	c4 1f 60 10 	ldd  [ %i5 + 0x10 ], %g2                       
 *  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(                                                
 200ebf0:	b4 06 a1 18 	add  %i2, 0x118, %i2                           
         memcpy(                                                      
            buffer + bytes_transferred,                               
            (void *)&tmp_dirent,                                      
            sizeof( struct dirent )                                   
         );                                                           
         iop->offset = iop->offset + sizeof(struct dirent);           
 200ebf4:	86 80 e1 18 	addcc  %g3, 0x118, %g3                         
 200ebf8:	84 40 a0 00 	addx  %g2, 0, %g2                              
 200ebfc:	c4 3f 60 10 	std  %g2, [ %i5 + 0x10 ]                       
         bytes_transferred = bytes_transferred + sizeof( struct dirent );
 200ec00:	b0 06 21 18 	add  %i0, 0x118, %i0                           
   /* 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 (                                                              
 200ec04:	80 a4 40 1a 	cmp  %l1, %i2                                  
 200ec08:	14 bf ff e2 	bg  200eb90 <imfs_dir_read+0x68>               <== NEVER TAKEN
 200ec0c:	f8 07 00 00 	ld  [ %i4 ], %i4                               
      the_node = the_node->next;                                      
   }                                                                  
                                                                      
   /* Success */                                                      
   return bytes_transferred;                                          
}                                                                     
 200ec10:	81 c7 e0 08 	ret                                            
 200ec14:	81 e8 00 00 	restore                                        
                                                                      

0200ed70 <imfs_dir_rmnod>: int imfs_dir_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) {
 200ed70:	9d e3 bf a0 	save  %sp, -96, %sp                            
  IMFS_jnode_t *the_jnode;                                            
                                                                      
  the_jnode = (IMFS_jnode_t *) pathloc->node_access;                  
 200ed74:	fa 06 40 00 	ld  [ %i1 ], %i5                               
                                                                      
  /*                                                                  
   * You cannot remove a node that still has children                 
   */                                                                 
                                                                      
  if ( ! rtems_chain_is_empty( &the_jnode->info.directory.Entries ) ) 
 200ed78:	c4 07 60 50 	ld  [ %i5 + 0x50 ], %g2                        
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
 200ed7c:	82 07 60 54 	add  %i5, 0x54, %g1                            
 200ed80:	80 a0 80 01 	cmp  %g2, %g1                                  
 200ed84:	12 80 00 18 	bne  200ede4 <imfs_dir_rmnod+0x74>             
 200ed88:	01 00 00 00 	nop                                            
                                                                      
static inline bool rtems_filesystem_is_root_location(                 
  const rtems_filesystem_location_info_t *loc                         
)                                                                     
{                                                                     
  return loc->mt_entry->mt_fs_root.node_access == loc->node_access;   
 200ed8c:	c2 06 60 10 	ld  [ %i1 + 0x10 ], %g1                        
                                                                      
  /*                                                                  
   * You cannot remove the file system root node.                     
   */                                                                 
                                                                      
  if ( rtems_filesystem_is_root_location(pathloc) )                   
 200ed90:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        
 200ed94:	80 a7 40 01 	cmp  %i5, %g1                                  
 200ed98:	02 80 00 0d 	be  200edcc <imfs_dir_rmnod+0x5c>              
 200ed9c:	01 00 00 00 	nop                                            
                                                                      
  /*                                                                  
   * You cannot remove a mountpoint.                                  
   */                                                                 
                                                                      
   if ( the_jnode->info.directory.mt_fs != NULL )                     
 200eda0:	c2 07 60 5c 	ld  [ %i5 + 0x5c ], %g1                        
 200eda4:	80 a0 60 00 	cmp  %g1, 0                                    
 200eda8:	12 80 00 09 	bne  200edcc <imfs_dir_rmnod+0x5c>             <== NEVER TAKEN
 200edac:	01 00 00 00 	nop                                            
     rtems_set_errno_and_return_minus_one( EBUSY );                   
                                                                      
  IMFS_create_orphan( the_jnode );                                    
 200edb0:	7f ff f3 47 	call  200bacc <IMFS_create_orphan>             
 200edb4:	90 10 00 1d 	mov  %i5, %o0                                  
  IMFS_check_node_remove( the_jnode );                                
 200edb8:	90 10 00 1d 	mov  %i5, %o0                                  
 200edbc:	7f ff f3 56 	call  200bb14 <IMFS_check_node_remove>         
 200edc0:	b0 10 20 00 	clr  %i0                                       
                                                                      
  return 0;                                                           
}                                                                     
 200edc4:	81 c7 e0 08 	ret                                            
 200edc8:	81 e8 00 00 	restore                                        
  /*                                                                  
   * You cannot remove a mountpoint.                                  
   */                                                                 
                                                                      
   if ( the_jnode->info.directory.mt_fs != NULL )                     
     rtems_set_errno_and_return_minus_one( EBUSY );                   
 200edcc:	40 00 02 f5 	call  200f9a0 <__errno>                        
 200edd0:	b0 10 3f ff 	mov  -1, %i0                                   
 200edd4:	82 10 20 10 	mov  0x10, %g1                                 
 200edd8:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200eddc:	81 c7 e0 08 	ret                                            
 200ede0:	81 e8 00 00 	restore                                        
  /*                                                                  
   * 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 );               
 200ede4:	40 00 02 ef 	call  200f9a0 <__errno>                        
 200ede8:	b0 10 3f ff 	mov  -1, %i0                                   
 200edec:	82 10 20 5a 	mov  0x5a, %g1                                 
 200edf0:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200edf4:	81 c7 e0 08 	ret                                            
 200edf8:	81 e8 00 00 	restore                                        
                                                                      

02003674 <init_etc_passwd_group>: /* * Initialize useable but dummy databases */ void init_etc_passwd_group(void) {
 2003674:	9d e3 bf a0 	save  %sp, -96, %sp                            
  FILE *fp;                                                           
  static char etc_passwd_initted = 0;                                 
                                                                      
  if (etc_passwd_initted)                                             
 2003678:	03 00 80 61 	sethi  %hi(0x2018400), %g1                     
 200367c:	c4 48 60 78 	ldsb  [ %g1 + 0x78 ], %g2	! 2018478 <etc_passwd_initted.6527>
 2003680:	80 a0 a0 00 	cmp  %g2, 0                                    
 2003684:	22 80 00 04 	be,a   2003694 <init_etc_passwd_group+0x20>    
 2003688:	84 10 20 01 	mov  1, %g2                                    
 200368c:	81 c7 e0 08 	ret                                            
 2003690:	81 e8 00 00 	restore                                        
    return;                                                           
  etc_passwd_initted = 1;                                             
  mkdir("/etc", 0777);                                                
 2003694:	92 10 21 ff 	mov  0x1ff, %o1                                
  FILE *fp;                                                           
  static char etc_passwd_initted = 0;                                 
                                                                      
  if (etc_passwd_initted)                                             
    return;                                                           
  etc_passwd_initted = 1;                                             
 2003698:	c4 28 60 78 	stb  %g2, [ %g1 + 0x78 ]                       
  mkdir("/etc", 0777);                                                
 200369c:	11 00 80 5b 	sethi  %hi(0x2016c00), %o0                     
 20036a0:	40 00 02 6d 	call  2004054 <mkdir>                          
 20036a4:	90 12 23 50 	or  %o0, 0x350, %o0	! 2016f50 <IMFS_ops+0x94>  
                                                                      
  /*                                                                  
   *  Initialize /etc/passwd                                          
   */                                                                 
  if ((fp = fopen("/etc/passwd", "r")) != NULL) {                     
 20036a8:	39 00 80 5b 	sethi  %hi(0x2016c00), %i4                     
 20036ac:	3b 00 80 5b 	sethi  %hi(0x2016c00), %i5                     
 20036b0:	90 17 23 58 	or  %i4, 0x358, %o0                            
 20036b4:	40 00 35 95 	call  2010d08 <fopen>                          
 20036b8:	92 17 63 68 	or  %i5, 0x368, %o1                            
 20036bc:	80 a2 20 00 	cmp  %o0, 0                                    
 20036c0:	22 80 00 0d 	be,a   20036f4 <init_etc_passwd_group+0x80>    
 20036c4:	90 17 23 58 	or  %i4, 0x358, %o0                            
  }                                                                   
  else if ((fp = fopen("/etc/passwd", "w")) != NULL) {                
    fprintf(fp, "root:*:0:0:root::/:/bin/sh\n"                        
                 "rtems:*:1:1:RTEMS Application::/:/bin/sh\n"         
                 "tty:!:2:2:tty owner::/:/bin/false\n" );             
    fclose(fp);                                                       
 20036c8:	40 00 33 b1 	call  201058c <fclose>                         
 20036cc:	01 00 00 00 	nop                                            
  }                                                                   
                                                                      
  /*                                                                  
   *  Initialize /etc/group                                           
   */                                                                 
  if ((fp = fopen("/etc/group", "r")) != NULL) {                      
 20036d0:	39 00 80 5b 	sethi  %hi(0x2016c00), %i4                     
 20036d4:	92 17 63 68 	or  %i5, 0x368, %o1                            
 20036d8:	40 00 35 8c 	call  2010d08 <fopen>                          
 20036dc:	90 17 23 e0 	or  %i4, 0x3e0, %o0                            
 20036e0:	80 a2 20 00 	cmp  %o0, 0                                    
 20036e4:	22 80 00 11 	be,a   2003728 <init_etc_passwd_group+0xb4>    
 20036e8:	90 17 23 e0 	or  %i4, 0x3e0, %o0                            
    fclose(fp);                                                       
 20036ec:	40 00 33 a8 	call  201058c <fclose>                         
 20036f0:	91 e8 00 08 	restore  %g0, %o0, %o0                         
   *  Initialize /etc/passwd                                          
   */                                                                 
  if ((fp = fopen("/etc/passwd", "r")) != NULL) {                     
    fclose(fp);                                                       
  }                                                                   
  else if ((fp = fopen("/etc/passwd", "w")) != NULL) {                
 20036f4:	13 00 80 5b 	sethi  %hi(0x2016c00), %o1                     
 20036f8:	40 00 35 84 	call  2010d08 <fopen>                          
 20036fc:	92 12 63 70 	or  %o1, 0x370, %o1	! 2016f70 <IMFS_ops+0xb4>  
 2003700:	b0 92 20 00 	orcc  %o0, 0, %i0                              
 2003704:	02 bf ff f3 	be  20036d0 <init_etc_passwd_group+0x5c>       <== NEVER TAKEN
 2003708:	92 10 20 01 	mov  1, %o1                                    
    fprintf(fp, "root:*:0:0:root::/:/bin/sh\n"                        
 200370c:	94 10 20 66 	mov  0x66, %o2                                 
 2003710:	96 10 00 18 	mov  %i0, %o3                                  
 2003714:	11 00 80 5b 	sethi  %hi(0x2016c00), %o0                     
 2003718:	40 00 37 66 	call  20114b0 <fwrite>                         
 200371c:	90 12 23 78 	or  %o0, 0x378, %o0	! 2016f78 <IMFS_ops+0xbc>  
                 "rtems:*:1:1:RTEMS Application::/:/bin/sh\n"         
                 "tty:!:2:2:tty owner::/:/bin/false\n" );             
    fclose(fp);                                                       
 2003720:	10 bf ff ea 	b  20036c8 <init_etc_passwd_group+0x54>        
 2003724:	90 10 00 18 	mov  %i0, %o0                                  
   *  Initialize /etc/group                                           
   */                                                                 
  if ((fp = fopen("/etc/group", "r")) != NULL) {                      
    fclose(fp);                                                       
  }                                                                   
  else if ((fp = fopen("/etc/group", "w")) != NULL) {                 
 2003728:	13 00 80 5b 	sethi  %hi(0x2016c00), %o1                     
 200372c:	40 00 35 77 	call  2010d08 <fopen>                          
 2003730:	92 12 63 70 	or  %o1, 0x370, %o1	! 2016f70 <IMFS_ops+0xb4>  
 2003734:	b0 92 20 00 	orcc  %o0, 0, %i0                              
 2003738:	02 bf ff d5 	be  200368c <init_etc_passwd_group+0x18>       <== NEVER TAKEN
 200373c:	01 00 00 00 	nop                                            
    fprintf( fp, "root:x:0:root\n"                                    
 2003740:	92 10 20 01 	mov  1, %o1	! 1 <PROM_START+0x1>               
 2003744:	11 00 80 5b 	sethi  %hi(0x2016c00), %o0                     
 2003748:	94 10 20 2a 	mov  0x2a, %o2                                 
 200374c:	96 10 00 18 	mov  %i0, %o3                                  
 2003750:	40 00 37 58 	call  20114b0 <fwrite>                         
 2003754:	90 12 23 f0 	or  %o0, 0x3f0, %o0                            
                 "rtems:x:1:rtems\n"                                  
                 "tty:x:2:tty\n" );                                   
    fclose(fp);                                                       
 2003758:	40 00 33 8d 	call  201058c <fclose>                         
 200375c:	81 e8 00 00 	restore                                        
                                                                      

02004fd8 <iproc>: /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) {
 2004fd8:	9d e3 bf a0 	save  %sp, -96, %sp                            
  if (tty->termios.c_iflag & ISTRIP)                                  
 2004fdc:	c2 06 60 30 	ld  [ %i1 + 0x30 ], %g1                        
 2004fe0:	80 88 60 20 	btst  0x20, %g1                                
 2004fe4:	02 80 00 03 	be  2004ff0 <iproc+0x18>                       <== ALWAYS TAKEN
 2004fe8:	ba 10 00 18 	mov  %i0, %i5                                  
    c &= 0x7f;                                                        
 2004fec:	ba 0e 20 7f 	and  %i0, 0x7f, %i5                            <== NOT EXECUTED
                                                                      
  if (tty->termios.c_iflag & IUCLC)                                   
 2004ff0:	80 88 62 00 	btst  0x200, %g1                               
 2004ff4:	02 80 00 0d 	be  2005028 <iproc+0x50>                       
 2004ff8:	80 a7 60 0d 	cmp  %i5, 0xd                                  
    c = tolower (c);                                                  
 2004ffc:	05 00 80 74 	sethi  %hi(0x201d000), %g2                     
 2005000:	c6 00 a0 34 	ld  [ %g2 + 0x34 ], %g3	! 201d034 <__ctype_ptr__>
 2005004:	84 10 00 1d 	mov  %i5, %g2                                  
 2005008:	ba 00 c0 1d 	add  %g3, %i5, %i5                             
 200500c:	c6 0f 60 01 	ldub  [ %i5 + 1 ], %g3                         
 2005010:	86 08 e0 03 	and  %g3, 3, %g3                               
 2005014:	80 a0 e0 01 	cmp  %g3, 1                                    
 2005018:	22 80 00 02 	be,a   2005020 <iproc+0x48>                    
 200501c:	84 00 a0 20 	add  %g2, 0x20, %g2                            
 2005020:	ba 08 a0 ff 	and  %g2, 0xff, %i5                            
                                                                      
  if (c == '\r') {                                                    
 2005024:	80 a7 60 0d 	cmp  %i5, 0xd                                  
 2005028:	02 80 00 17 	be  2005084 <iproc+0xac>                       
 200502c:	80 a7 60 0a 	cmp  %i5, 0xa                                  
    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)) {         
 2005030:	02 80 00 40 	be  2005130 <iproc+0x158>                      
 2005034:	80 a7 60 00 	cmp  %i5, 0                                    
    c = '\r';                                                         
  }                                                                   
                                                                      
  if ((c != '\0') && (tty->termios.c_lflag & ICANON)) {               
 2005038:	32 80 00 1a 	bne,a   20050a0 <iproc+0xc8>                   <== ALWAYS TAKEN
 200503c:	c2 06 60 3c 	ld  [ %i1 + 0x3c ], %g1                        
  }                                                                   
                                                                      
  /*                                                                  
   * FIXME: Should do IMAXBEL handling somehow                        
   */                                                                 
  if (tty->ccount < (CBUFSIZE-1)) {                                   
 2005040:	c2 06 60 20 	ld  [ %i1 + 0x20 ], %g1                        <== NOT EXECUTED
 2005044:	05 00 80 73 	sethi  %hi(0x201cc00), %g2                     
 2005048:	c4 00 a2 6c 	ld  [ %g2 + 0x26c ], %g2	! 201ce6c <rtems_termios_cbufsize>
 200504c:	84 00 bf ff 	add  %g2, -1, %g2                              
 2005050:	80 a0 40 02 	cmp  %g1, %g2                                  
 2005054:	16 80 00 46 	bge  200516c <iproc+0x194>                     <== NEVER TAKEN
 2005058:	b0 10 20 00 	clr  %i0                                       
    if (tty->termios.c_lflag & ECHO)                                  
 200505c:	c4 06 60 3c 	ld  [ %i1 + 0x3c ], %g2                        
 2005060:	80 88 a0 08 	btst  8, %g2                                   
 2005064:	12 80 00 38 	bne  2005144 <iproc+0x16c>                     <== ALWAYS TAKEN
 2005068:	90 10 00 1d 	mov  %i5, %o0                                  
      echo (c, tty);                                                  
    tty->cbuf[tty->ccount++] = c;                                     
 200506c:	c6 06 60 1c 	ld  [ %i1 + 0x1c ], %g3                        
 2005070:	84 00 60 01 	add  %g1, 1, %g2                               
 2005074:	fa 28 c0 01 	stb  %i5, [ %g3 + %g1 ]                        
 2005078:	c4 26 60 20 	st  %g2, [ %i1 + 0x20 ]                        
  }                                                                   
  return 0;                                                           
}                                                                     
 200507c:	81 c7 e0 08 	ret                                            
 2005080:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      
  if (tty->termios.c_iflag & IUCLC)                                   
    c = tolower (c);                                                  
                                                                      
  if (c == '\r') {                                                    
    if (tty->termios.c_iflag & IGNCR)                                 
 2005084:	80 88 60 80 	btst  0x80, %g1                                
 2005088:	12 80 00 39 	bne  200516c <iproc+0x194>                     <== NEVER TAKEN
 200508c:	b0 10 20 00 	clr  %i0                                       
      return 0;                                                       
    if (tty->termios.c_iflag & ICRNL)                                 
 2005090:	80 88 61 00 	btst  0x100, %g1                               
 2005094:	32 80 00 02 	bne,a   200509c <iproc+0xc4>                   <== ALWAYS TAKEN
 2005098:	ba 10 20 0a 	mov  0xa, %i5                                  
      c = '\n';                                                       
  } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) {         
    c = '\r';                                                         
  }                                                                   
                                                                      
  if ((c != '\0') && (tty->termios.c_lflag & ICANON)) {               
 200509c:	c2 06 60 3c 	ld  [ %i1 + 0x3c ], %g1                        
 20050a0:	80 88 60 02 	btst  2, %g1                                   
 20050a4:	22 bf ff e8 	be,a   2005044 <iproc+0x6c>                    
 20050a8:	c2 06 60 20 	ld  [ %i1 + 0x20 ], %g1                        
    if (c == tty->termios.c_cc[VERASE]) {                             
 20050ac:	c4 0e 60 43 	ldub  [ %i1 + 0x43 ], %g2                      
 20050b0:	80 a0 80 1d 	cmp  %g2, %i5                                  
 20050b4:	02 80 00 3d 	be  20051a8 <iproc+0x1d0>                      
 20050b8:	90 10 00 19 	mov  %i1, %o0                                  
      erase (tty, 0);                                                 
      return 0;                                                       
    }                                                                 
    else if (c == tty->termios.c_cc[VKILL]) {                         
 20050bc:	c4 0e 60 44 	ldub  [ %i1 + 0x44 ], %g2                      
 20050c0:	80 a0 80 1d 	cmp  %g2, %i5                                  
 20050c4:	02 80 00 28 	be  2005164 <iproc+0x18c>                      
 20050c8:	92 10 20 01 	mov  1, %o1                                    
      erase (tty, 1);                                                 
      return 0;                                                       
    }                                                                 
    else if (c == tty->termios.c_cc[VEOF]) {                          
 20050cc:	c4 0e 60 45 	ldub  [ %i1 + 0x45 ], %g2                      
 20050d0:	80 a0 80 1d 	cmp  %g2, %i5                                  
 20050d4:	02 80 00 26 	be  200516c <iproc+0x194>                      <== NEVER TAKEN
 20050d8:	b0 10 20 01 	mov  1, %i0                                    
      return 1;                                                       
    } else if (c == '\n') {                                           
 20050dc:	80 a7 60 0a 	cmp  %i5, 0xa                                  
 20050e0:	02 80 00 25 	be  2005174 <iproc+0x19c>                      
 20050e4:	80 88 60 48 	btst  0x48, %g1                                
      if (tty->termios.c_lflag & (ECHO | ECHONL))                     
        echo (c, tty);                                                
      tty->cbuf[tty->ccount++] = c;                                   
      return 1;                                                       
    } else if ((c == tty->termios.c_cc[VEOL]) ||                      
 20050e8:	c4 0e 60 4c 	ldub  [ %i1 + 0x4c ], %g2                      
 20050ec:	80 a0 80 1d 	cmp  %g2, %i5                                  
 20050f0:	02 80 00 07 	be  200510c <iproc+0x134>                      <== NEVER TAKEN
 20050f4:	80 88 60 08 	btst  8, %g1                                   
 20050f8:	c4 0e 60 51 	ldub  [ %i1 + 0x51 ], %g2                      
 20050fc:	80 a0 80 1d 	cmp  %g2, %i5                                  
 2005100:	32 bf ff d1 	bne,a   2005044 <iproc+0x6c>                   <== ALWAYS TAKEN
 2005104:	c2 06 60 20 	ld  [ %i1 + 0x20 ], %g1                        
               (c == tty->termios.c_cc[VEOL2])) {                     
      if (tty->termios.c_lflag & ECHO)                                
 2005108:	80 88 60 08 	btst  8, %g1                                   <== NOT EXECUTED
 200510c:	32 80 00 12 	bne,a   2005154 <iproc+0x17c>                  <== NOT EXECUTED
 2005110:	90 10 00 1d 	mov  %i5, %o0                                  <== NOT EXECUTED
        echo (c, tty);                                                
      tty->cbuf[tty->ccount++] = c;                                   
 2005114:	c2 06 60 20 	ld  [ %i1 + 0x20 ], %g1                        <== NOT EXECUTED
 2005118:	c6 06 60 1c 	ld  [ %i1 + 0x1c ], %g3                        <== NOT EXECUTED
 200511c:	84 00 60 01 	add  %g1, 1, %g2                               <== NOT EXECUTED
 2005120:	fa 28 c0 01 	stb  %i5, [ %g3 + %g1 ]                        <== NOT EXECUTED
 2005124:	c4 26 60 20 	st  %g2, [ %i1 + 0x20 ]                        <== NOT EXECUTED
      return 1;                                                       
 2005128:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200512c:	91 e8 20 01 	restore  %g0, 1, %o0                           <== NOT EXECUTED
  if (c == '\r') {                                                    
    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)) {         
 2005130:	80 88 60 40 	btst  0x40, %g1                                
 2005134:	32 bf ff da 	bne,a   200509c <iproc+0xc4>                   <== NEVER TAKEN
 2005138:	ba 10 20 0d 	mov  0xd, %i5                                  <== NOT EXECUTED
    c = '\r';                                                         
  }                                                                   
                                                                      
  if ((c != '\0') && (tty->termios.c_lflag & ICANON)) {               
 200513c:	10 bf ff d9 	b  20050a0 <iproc+0xc8>                        
 2005140:	c2 06 60 3c 	ld  [ %i1 + 0x3c ], %g1                        
  /*                                                                  
   * FIXME: Should do IMAXBEL handling somehow                        
   */                                                                 
  if (tty->ccount < (CBUFSIZE-1)) {                                   
    if (tty->termios.c_lflag & ECHO)                                  
      echo (c, tty);                                                  
 2005144:	7f ff fe f6 	call  2004d1c <echo>                           
 2005148:	92 10 00 19 	mov  %i1, %o1                                  
 200514c:	10 bf ff c8 	b  200506c <iproc+0x94>                        
 2005150:	c2 06 60 20 	ld  [ %i1 + 0x20 ], %g1                        
      tty->cbuf[tty->ccount++] = c;                                   
      return 1;                                                       
    } else if ((c == tty->termios.c_cc[VEOL]) ||                      
               (c == tty->termios.c_cc[VEOL2])) {                     
      if (tty->termios.c_lflag & ECHO)                                
        echo (c, tty);                                                
 2005154:	7f ff fe f2 	call  2004d1c <echo>                           <== NOT EXECUTED
 2005158:	92 10 00 19 	mov  %i1, %o1                                  <== NOT EXECUTED
      tty->cbuf[tty->ccount++] = c;                                   
 200515c:	10 bf ff ef 	b  2005118 <iproc+0x140>                       <== NOT EXECUTED
 2005160:	c2 06 60 20 	ld  [ %i1 + 0x20 ], %g1                        <== NOT EXECUTED
    if (c == tty->termios.c_cc[VERASE]) {                             
      erase (tty, 0);                                                 
      return 0;                                                       
    }                                                                 
    else if (c == tty->termios.c_cc[VKILL]) {                         
      erase (tty, 1);                                                 
 2005164:	7f ff ff 0f 	call  2004da0 <erase>                          
 2005168:	b0 10 20 00 	clr  %i0                                       
      return 0;                                                       
 200516c:	81 c7 e0 08 	ret                                            
 2005170:	81 e8 00 00 	restore                                        
    }                                                                 
    else if (c == tty->termios.c_cc[VEOF]) {                          
      return 1;                                                       
    } else if (c == '\n') {                                           
      if (tty->termios.c_lflag & (ECHO | ECHONL))                     
 2005174:	22 80 00 06 	be,a   200518c <iproc+0x1b4>                   <== NEVER TAKEN
 2005178:	c2 06 60 20 	ld  [ %i1 + 0x20 ], %g1                        <== NOT EXECUTED
        echo (c, tty);                                                
 200517c:	90 10 20 0a 	mov  0xa, %o0                                  
 2005180:	7f ff fe e7 	call  2004d1c <echo>                           
 2005184:	92 10 00 19 	mov  %i1, %o1                                  
      tty->cbuf[tty->ccount++] = c;                                   
 2005188:	c2 06 60 20 	ld  [ %i1 + 0x20 ], %g1                        
 200518c:	c4 06 60 1c 	ld  [ %i1 + 0x1c ], %g2                        
 2005190:	86 10 20 0a 	mov  0xa, %g3                                  
 2005194:	c6 28 80 01 	stb  %g3, [ %g2 + %g1 ]                        
 2005198:	82 00 60 01 	inc  %g1                                       
 200519c:	c2 26 60 20 	st  %g1, [ %i1 + 0x20 ]                        
      return 1;                                                       
 20051a0:	81 c7 e0 08 	ret                                            
 20051a4:	91 e8 20 01 	restore  %g0, 1, %o0                           
    c = '\r';                                                         
  }                                                                   
                                                                      
  if ((c != '\0') && (tty->termios.c_lflag & ICANON)) {               
    if (c == tty->termios.c_cc[VERASE]) {                             
      erase (tty, 0);                                                 
 20051a8:	92 10 20 00 	clr  %o1                                       
 20051ac:	7f ff fe fd 	call  2004da0 <erase>                          
 20051b0:	b0 10 20 00 	clr  %i0                                       
      return 0;                                                       
 20051b4:	81 c7 e0 08 	ret                                            
 20051b8:	81 e8 00 00 	restore                                        
                                                                      

0201a3b8 <killinfo>: int killinfo( pid_t pid, int sig, const union sigval *value ) {
 201a3b8:	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() )                                              
 201a3bc:	7f ff fe e2 	call  2019f44 <getpid>                         
 201a3c0:	01 00 00 00 	nop                                            
 201a3c4:	80 a2 00 18 	cmp  %o0, %i0                                  
 201a3c8:	12 80 00 af 	bne  201a684 <killinfo+0x2cc>                  
 201a3cc:	80 a6 60 00 	cmp  %i1, 0                                    
    rtems_set_errno_and_return_minus_one( ESRCH );                    
                                                                      
  /*                                                                  
   *  Validate the signal passed.                                     
   */                                                                 
  if ( !sig )                                                         
 201a3d0:	02 80 00 b3 	be  201a69c <killinfo+0x2e4>                   
 201a3d4:	82 06 7f ff 	add  %i1, -1, %g1                              
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( !is_valid_signo(sig) )                                         
 201a3d8:	80 a0 60 1f 	cmp  %g1, 0x1f                                 
 201a3dc:	18 80 00 b0 	bgu  201a69c <killinfo+0x2e4>                  
 201a3e0:	b7 2e 60 02 	sll  %i1, 2, %i3                               
    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 )          
 201a3e4:	39 00 80 77 	sethi  %hi(0x201dc00), %i4                     
 201a3e8:	a1 2e 60 04 	sll  %i1, 4, %l0                               
 201a3ec:	b8 17 23 60 	or  %i4, 0x360, %i4                            
 201a3f0:	84 24 00 1b 	sub  %l0, %i3, %g2                             
 201a3f4:	84 07 00 02 	add  %i4, %g2, %g2                             
 201a3f8:	c4 00 a0 08 	ld  [ %g2 + 8 ], %g2                           
 201a3fc:	80 a0 a0 01 	cmp  %g2, 1                                    
 201a400:	02 80 00 3f 	be  201a4fc <killinfo+0x144>                   
 201a404:	b0 10 20 00 	clr  %i0                                       
  /*                                                                  
   *  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 ) )      
 201a408:	80 a6 60 04 	cmp  %i1, 4                                    
 201a40c:	02 80 00 3e 	be  201a504 <killinfo+0x14c>                   
 201a410:	80 a6 60 08 	cmp  %i1, 8                                    
 201a414:	02 80 00 3c 	be  201a504 <killinfo+0x14c>                   
 201a418:	80 a6 60 0b 	cmp  %i1, 0xb                                  
 201a41c:	02 80 00 3a 	be  201a504 <killinfo+0x14c>                   
 201a420:	ba 10 20 01 	mov  1, %i5                                    
                                                                      
  /*                                                                  
   *  Build up a siginfo structure                                    
   */                                                                 
  siginfo = &siginfo_struct;                                          
  siginfo->si_signo = sig;                                            
 201a424:	f2 27 bf f4 	st  %i1, [ %fp + -12 ]                         
  siginfo->si_code = SI_USER;                                         
 201a428:	fa 27 bf f8 	st  %i5, [ %fp + -8 ]                          
  if ( !value ) {                                                     
 201a42c:	80 a6 a0 00 	cmp  %i2, 0                                    
 201a430:	02 80 00 3b 	be  201a51c <killinfo+0x164>                   
 201a434:	bb 2f 40 01 	sll  %i5, %g1, %i5                             
    siginfo->si_value.sival_int = 0;                                  
  } else {                                                            
    siginfo->si_value = *value;                                       
 201a438:	c2 06 80 00 	ld  [ %i2 ], %g1                               
 201a43c:	c2 27 bf fc 	st  %g1, [ %fp + -4 ]                          
   *                                                                  
   * This rountine increments the thread dispatch level               
   */                                                                 
  RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
  {                                                                   
    _Thread_Dispatch_disable_level++;                                 
 201a440:	03 00 80 76 	sethi  %hi(0x201d800), %g1                     
 201a444:	c4 00 61 d0 	ld  [ %g1 + 0x1d0 ], %g2	! 201d9d0 <_Thread_Dispatch_disable_level>
 201a448:	84 00 a0 01 	inc  %g2                                       
 201a44c:	c4 20 61 d0 	st  %g2, [ %g1 + 0x1d0 ]                       
    return _Thread_Dispatch_disable_level;                            
 201a450:	c2 00 61 d0 	ld  [ %g1 + 0x1d0 ], %g1                       
                                                                      
  /*                                                                  
   *  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;                                     
 201a454:	03 00 80 77 	sethi  %hi(0x201dc00), %g1                     
 201a458:	d0 00 63 14 	ld  [ %g1 + 0x314 ], %o0	! 201df14 <_Per_CPU_Information+0xc>
                                                                      
  api = the_thread->API_Extensions[ THREAD_API_POSIX ];               
  if ( _POSIX_signals_Is_interested( api, mask ) ) {                  
 201a45c:	c2 02 21 5c 	ld  [ %o0 + 0x15c ], %g1                       
 201a460:	c2 00 60 d0 	ld  [ %g1 + 0xd0 ], %g1                        
 201a464:	80 af 40 01 	andncc  %i5, %g1, %g0                          
 201a468:	12 80 00 16 	bne  201a4c0 <killinfo+0x108>                  
 201a46c:	07 00 80 78 	sethi  %hi(0x201e000), %g3                     
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
 201a470:	d0 00 e0 ec 	ld  [ %g3 + 0xec ], %o0	! 201e0ec <_POSIX_signals_Wait_queue>
 201a474:	86 10 e0 ec 	or  %g3, 0xec, %g3                             
                                                                      
  /* XXX violation of visibility -- need to define thread queue support */
                                                                      
  the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo;                 
                                                                      
  for ( the_node = _Chain_First( the_chain );                         
 201a478:	86 00 e0 04 	add  %g3, 4, %g3                               
 201a47c:	80 a2 00 03 	cmp  %o0, %g3                                  
 201a480:	32 80 00 0d 	bne,a   201a4b4 <killinfo+0xfc>                
 201a484:	c2 02 20 30 	ld  [ %o0 + 0x30 ], %g1                        
   *  NOTES:                                                          
   *                                                                  
   *    + rtems internal threads do not receive signals.              
   */                                                                 
  interested = NULL;                                                  
  interested_priority = PRIORITY_MAXIMUM + 1;                         
 201a488:	10 80 00 27 	b  201a524 <killinfo+0x16c>                    
 201a48c:	03 00 80 73 	sethi  %hi(0x201cc00), %g1                     
                                                                      
    /*                                                                
     * Is this thread is blocked waiting for another signal but has   
     * not blocked this one?                                          
     */                                                               
    if (~api->signals_blocked & mask)                                 
 201a490:	c2 00 a0 d0 	ld  [ %g2 + 0xd0 ], %g1                        
 201a494:	80 af 40 01 	andncc  %i5, %g1, %g0                          
 201a498:	12 80 00 0b 	bne  201a4c4 <killinfo+0x10c>                  
 201a49c:	92 10 00 19 	mov  %i1, %o1                                  
                                                                      
  the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo;                 
                                                                      
  for ( the_node = _Chain_First( the_chain );                         
        !_Chain_Is_tail( the_chain, the_node ) ;                      
        the_node = the_node->next ) {                                 
 201a4a0:	d0 02 00 00 	ld  [ %o0 ], %o0                               
                                                                      
  /* XXX violation of visibility -- need to define thread queue support */
                                                                      
  the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo;                 
                                                                      
  for ( the_node = _Chain_First( the_chain );                         
 201a4a4:	80 a2 00 03 	cmp  %o0, %g3                                  
 201a4a8:	02 80 00 1f 	be  201a524 <killinfo+0x16c>                   <== ALWAYS TAKEN
 201a4ac:	03 00 80 73 	sethi  %hi(0x201cc00), %g1                     
    #endif                                                            
                                                                      
    /*                                                                
     * Is this thread is actually blocked waiting for the signal?     
     */                                                               
    if (the_thread->Wait.option & mask)                               
 201a4b0:	c2 02 20 30 	ld  [ %o0 + 0x30 ], %g1                        <== NOT EXECUTED
 201a4b4:	80 8f 40 01 	btst  %i5, %g1                                 
 201a4b8:	02 bf ff f6 	be  201a490 <killinfo+0xd8>                    
 201a4bc:	c4 02 21 5c 	ld  [ %o0 + 0x15c ], %g2                       
                                                                      
  /*                                                                  
   *  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 ) ) {  
 201a4c0:	92 10 00 19 	mov  %i1, %o1                                  
 201a4c4:	40 00 00 8d 	call  201a6f8 <_POSIX_signals_Unblock_thread>  
 201a4c8:	94 07 bf f4 	add  %fp, -12, %o2                             
 201a4cc:	80 8a 20 ff 	btst  0xff, %o0                                
 201a4d0:	12 80 00 5a 	bne  201a638 <killinfo+0x280>                  
 201a4d4:	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 );                         
 201a4d8:	40 00 00 7f 	call  201a6d4 <_POSIX_signals_Set_process_signals>
 201a4dc:	90 10 00 1d 	mov  %i5, %o0                                  
                                                                      
  if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) {       
 201a4e0:	b6 24 00 1b 	sub  %l0, %i3, %i3                             
 201a4e4:	c2 07 00 1b 	ld  [ %i4 + %i3 ], %g1                         
 201a4e8:	80 a0 60 02 	cmp  %g1, 2                                    
 201a4ec:	02 80 00 57 	be  201a648 <killinfo+0x290>                   
 201a4f0:	11 00 80 78 	sethi  %hi(0x201e000), %o0                     
                                                                      
    _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); 
  }                                                                   
                                                                      
  DEBUG_STEP("\n");                                                   
  _Thread_Enable_dispatch();                                          
 201a4f4:	7f ff bb ae 	call  20093ac <_Thread_Enable_dispatch>        
 201a4f8:	b0 10 20 00 	clr  %i0                                       
  return 0;                                                           
}                                                                     
 201a4fc:	81 c7 e0 08 	ret                                            
 201a500:	81 e8 00 00 	restore                                        
   *  P1003.1c/Draft 10, p. 33 says that certain signals should always
   *  be directed to the executing thread such as those caused by hardware
   *  faults.                                                         
   */                                                                 
  if ( (sig == SIGFPE) || (sig == SIGILL) || (sig == SIGSEGV ) )      
      return pthread_kill( pthread_self(), sig );                     
 201a504:	40 00 01 0f 	call  201a940 <pthread_self>                   
 201a508:	01 00 00 00 	nop                                            
 201a50c:	40 00 00 d2 	call  201a854 <pthread_kill>                   
 201a510:	92 10 00 19 	mov  %i1, %o1                                  
 201a514:	81 c7 e0 08 	ret                                            
 201a518:	91 e8 00 08 	restore  %g0, %o0, %o0                         
   */                                                                 
  siginfo = &siginfo_struct;                                          
  siginfo->si_signo = sig;                                            
  siginfo->si_code = SI_USER;                                         
  if ( !value ) {                                                     
    siginfo->si_value.sival_int = 0;                                  
 201a51c:	10 bf ff c9 	b  201a440 <killinfo+0x88>                     
 201a520:	c0 27 bf fc 	clr  [ %fp + -4 ]                              
   *  NOTES:                                                          
   *                                                                  
   *    + rtems internal threads do not receive signals.              
   */                                                                 
  interested = NULL;                                                  
  interested_priority = PRIORITY_MAXIMUM + 1;                         
 201a524:	c8 08 60 ac 	ldub  [ %g1 + 0xac ], %g4                      
 201a528:	1b 00 80 76 	sethi  %hi(0x201d800), %o5                     
 201a52c:	88 01 20 01 	inc  %g4                                       
 201a530:	9a 13 61 40 	or  %o5, 0x140, %o5                            
   *                                                                  
   *  NOTES:                                                          
   *                                                                  
   *    + rtems internal threads do not receive signals.              
   */                                                                 
  interested = NULL;                                                  
 201a534:	90 10 20 00 	clr  %o0                                       
 */                                                                   
                                                                      
#define _POSIX_signals_Is_interested( _api, _mask ) \                 
  ( ~(_api)->signals_blocked & (_mask) )                              
                                                                      
int killinfo(                                                         
 201a538:	98 03 60 08 	add  %o5, 8, %o4                               
 */                                                                   
RTEMS_INLINE_ROUTINE bool _States_Is_interruptible_by_signal (        
  States_Control the_states                                           
)                                                                     
{                                                                     
   return (the_states & STATES_INTERRUPTIBLE_BY_SIGNAL);              
 201a53c:	15 04 00 00 	sethi  %hi(0x10000000), %o2                    
  for (the_api = OBJECTS_CLASSIC_API; the_api <= OBJECTS_APIS_LAST; the_api++) {
                                                                      
    /*                                                                
     *  This can occur when no one is interested and an API is not configured.
     */                                                               
    if ( !_Objects_Information_table[ the_api ] )                     
 201a540:	c2 03 40 00 	ld  [ %o5 ], %g1                               
 201a544:	80 a0 60 00 	cmp  %g1, 0                                    
 201a548:	22 80 00 31 	be,a   201a60c <killinfo+0x254>                <== NEVER TAKEN
 201a54c:	9a 03 60 04 	add  %o5, 4, %o5                               <== NOT EXECUTED
      continue;                                                       
                                                                      
    the_info = _Objects_Information_table[ the_api ][ 1 ];            
 201a550:	c2 00 60 04 	ld  [ %g1 + 4 ], %g1                           
       */                                                             
      if ( !the_info )                                                
        continue;                                                     
    #endif                                                            
                                                                      
    maximum = the_info->maximum;                                      
 201a554:	f4 10 60 10 	lduh  [ %g1 + 0x10 ], %i2                      
    object_table = the_info->local_table;                             
                                                                      
    for ( index = 1 ; index <= maximum ; index++ ) {                  
 201a558:	80 a6 a0 00 	cmp  %i2, 0                                    
 201a55c:	02 80 00 2b 	be  201a608 <killinfo+0x250>                   
 201a560:	f0 00 60 1c 	ld  [ %g1 + 0x1c ], %i0                        
 201a564:	82 10 20 01 	mov  1, %g1                                    
 */                                                                   
                                                                      
#define _POSIX_signals_Is_interested( _api, _mask ) \                 
  ( ~(_api)->signals_blocked & (_mask) )                              
                                                                      
int killinfo(                                                         
 201a568:	85 28 60 02 	sll  %g1, 2, %g2                               
                                                                      
    maximum = the_info->maximum;                                      
    object_table = the_info->local_table;                             
                                                                      
    for ( index = 1 ; index <= maximum ; index++ ) {                  
      the_thread = (Thread_Control *) object_table[ index ];          
 201a56c:	c4 06 00 02 	ld  [ %i0 + %g2 ], %g2                         
                                                                      
      if ( !the_thread )                                              
 201a570:	80 a0 a0 00 	cmp  %g2, 0                                    
 201a574:	22 80 00 22 	be,a   201a5fc <killinfo+0x244>                
 201a578:	82 00 60 01 	inc  %g1                                       
                                                                      
      /*                                                              
       *  If this thread is of lower priority than the interested thread,
       *  go on to the next thread.                                   
       */                                                             
      if ( the_thread->current_priority > interested_priority )       
 201a57c:	c6 00 a0 14 	ld  [ %g2 + 0x14 ], %g3                        
 201a580:	80 a0 c0 04 	cmp  %g3, %g4                                  
 201a584:	38 80 00 1e 	bgu,a   201a5fc <killinfo+0x244>               
 201a588:	82 00 60 01 	inc  %g1                                       
      #if defined(RTEMS_DEBUG)                                        
        if ( !api )                                                   
          continue;                                                   
      #endif                                                          
                                                                      
      if ( !_POSIX_signals_Is_interested( api, mask ) )               
 201a58c:	de 00 a1 5c 	ld  [ %g2 + 0x15c ], %o7                       
 201a590:	de 03 e0 d0 	ld  [ %o7 + 0xd0 ], %o7                        
 201a594:	80 af 40 0f 	andncc  %i5, %o7, %g0                          
 201a598:	22 80 00 19 	be,a   201a5fc <killinfo+0x244>                
 201a59c:	82 00 60 01 	inc  %g1                                       
       *                                                              
       *  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 ) {     
 201a5a0:	80 a0 c0 04 	cmp  %g3, %g4                                  
 201a5a4:	2a 80 00 14 	bcs,a   201a5f4 <killinfo+0x23c>               
 201a5a8:	88 10 00 03 	mov  %g3, %g4                                  
       *  and blocking interruptibutable by signal.                   
       *                                                              
       *  If the interested thread is ready, don't think about changing.
       */                                                             
                                                                      
      if ( interested && !_States_Is_ready( interested->current_state ) ) {
 201a5ac:	80 a2 20 00 	cmp  %o0, 0                                    
 201a5b0:	22 80 00 13 	be,a   201a5fc <killinfo+0x244>                <== NEVER TAKEN
 201a5b4:	82 00 60 01 	inc  %g1                                       <== NOT EXECUTED
 201a5b8:	de 02 20 10 	ld  [ %o0 + 0x10 ], %o7                        
 201a5bc:	80 a3 e0 00 	cmp  %o7, 0                                    
 201a5c0:	22 80 00 0f 	be,a   201a5fc <killinfo+0x244>                <== NEVER TAKEN
 201a5c4:	82 00 60 01 	inc  %g1                                       <== NOT EXECUTED
        /* preferred ready over blocked */                            
        DEBUG_STEP("5");                                              
        if ( _States_Is_ready( the_thread->current_state ) ) {        
 201a5c8:	d6 00 a0 10 	ld  [ %g2 + 0x10 ], %o3                        
 201a5cc:	80 a2 e0 00 	cmp  %o3, 0                                    
 201a5d0:	22 80 00 09 	be,a   201a5f4 <killinfo+0x23c>                
 201a5d4:	88 10 00 03 	mov  %g3, %g4                                  
          continue;                                                   
        }                                                             
                                                                      
        DEBUG_STEP("6");                                              
        /* prefer blocked/interruptible over blocked/not interruptible */
        if ( !_States_Is_interruptible_by_signal(interested->current_state) ) {
 201a5d8:	80 8b c0 0a 	btst  %o7, %o2                                 
 201a5dc:	32 80 00 08 	bne,a   201a5fc <killinfo+0x244>               
 201a5e0:	82 00 60 01 	inc  %g1                                       
          DEBUG_STEP("7");                                            
          if ( _States_Is_interruptible_by_signal(the_thread->current_state) ) {
 201a5e4:	80 8a c0 0a 	btst  %o3, %o2                                 
 201a5e8:	22 80 00 05 	be,a   201a5fc <killinfo+0x244>                
 201a5ec:	82 00 60 01 	inc  %g1                                       
       */                                                             
                                                                      
      if ( interested && !_States_Is_ready( interested->current_state ) ) {
        /* preferred ready over blocked */                            
        DEBUG_STEP("5");                                              
        if ( _States_Is_ready( the_thread->current_state ) ) {        
 201a5f0:	88 10 00 03 	mov  %g3, %g4                                  
 201a5f4:	90 10 00 02 	mov  %g2, %o0                                  
    #endif                                                            
                                                                      
    maximum = the_info->maximum;                                      
    object_table = the_info->local_table;                             
                                                                      
    for ( index = 1 ; index <= maximum ; index++ ) {                  
 201a5f8:	82 00 60 01 	inc  %g1                                       
 201a5fc:	80 a6 80 01 	cmp  %i2, %g1                                  
 201a600:	1a bf ff db 	bcc  201a56c <killinfo+0x1b4>                  
 201a604:	85 28 60 02 	sll  %g1, 2, %g2                               
 201a608:	9a 03 60 04 	add  %o5, 4, %o5                               
   *    + 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++) {
 201a60c:	80 a3 40 0c 	cmp  %o5, %o4                                  
 201a610:	32 bf ff cd 	bne,a   201a544 <killinfo+0x18c>               
 201a614:	c2 03 40 00 	ld  [ %o5 ], %g1                               
        }                                                             
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if ( interested ) {                                                 
 201a618:	80 a2 20 00 	cmp  %o0, 0                                    
 201a61c:	02 bf ff af 	be  201a4d8 <killinfo+0x120>                   
 201a620:	92 10 00 19 	mov  %i1, %o1                                  
                                                                      
  /*                                                                  
   *  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 ) ) {  
 201a624:	40 00 00 35 	call  201a6f8 <_POSIX_signals_Unblock_thread>  
 201a628:	94 07 bf f4 	add  %fp, -12, %o2                             
 201a62c:	80 8a 20 ff 	btst  0xff, %o0                                
 201a630:	02 bf ff aa 	be  201a4d8 <killinfo+0x120>                   <== ALWAYS TAKEN
 201a634:	01 00 00 00 	nop                                            
    _Thread_Enable_dispatch();                                        
 201a638:	7f ff bb 5d 	call  20093ac <_Thread_Enable_dispatch>        
 201a63c:	b0 10 20 00 	clr  %i0	! 0 <PROM_START>                      
    return 0;                                                         
 201a640:	81 c7 e0 08 	ret                                            
 201a644:	81 e8 00 00 	restore                                        
   */                                                                 
  _POSIX_signals_Set_process_signals( mask );                         
                                                                      
  if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) {       
                                                                      
    psiginfo = (POSIX_signals_Siginfo_node *)                         
 201a648:	7f ff b3 81 	call  200744c <_Chain_Get>                     
 201a64c:	90 12 20 e0 	or  %o0, 0xe0, %o0                             
               _Chain_Get( &_POSIX_signals_Inactive_siginfo );        
    if ( !psiginfo ) {                                                
 201a650:	92 92 20 00 	orcc  %o0, 0, %o1                              
 201a654:	02 80 00 18 	be  201a6b4 <killinfo+0x2fc>                   
 201a658:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         
      rtems_set_errno_and_return_minus_one( EAGAIN );                 
    }                                                                 
                                                                      
    psiginfo->Info = *siginfo;                                        
                                                                      
    _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); 
 201a65c:	11 00 80 78 	sethi  %hi(0x201e000), %o0                     
    if ( !psiginfo ) {                                                
      _Thread_Enable_dispatch();                                      
      rtems_set_errno_and_return_minus_one( EAGAIN );                 
    }                                                                 
                                                                      
    psiginfo->Info = *siginfo;                                        
 201a660:	c2 22 60 08 	st  %g1, [ %o1 + 8 ]                           
 201a664:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
                                                                      
    _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); 
 201a668:	90 12 21 58 	or  %o0, 0x158, %o0                            
    if ( !psiginfo ) {                                                
      _Thread_Enable_dispatch();                                      
      rtems_set_errno_and_return_minus_one( EAGAIN );                 
    }                                                                 
                                                                      
    psiginfo->Info = *siginfo;                                        
 201a66c:	c2 22 60 0c 	st  %g1, [ %o1 + 0xc ]                         
 201a670:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
                                                                      
    _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); 
 201a674:	90 02 00 1b 	add  %o0, %i3, %o0                             
 201a678:	7f ff b3 61 	call  20073fc <_Chain_Append>                  
 201a67c:	c2 22 60 10 	st  %g1, [ %o1 + 0x10 ]                        
 201a680:	30 bf ff 9d 	b,a   201a4f4 <killinfo+0x13c>                 
                                                                      
  /*                                                                  
   *  Only supported for the "calling process" (i.e. this node).      
   */                                                                 
  if ( pid != getpid() )                                              
    rtems_set_errno_and_return_minus_one( ESRCH );                    
 201a684:	7f ff d4 c7 	call  200f9a0 <__errno>                        
 201a688:	b0 10 3f ff 	mov  -1, %i0                                   
 201a68c:	82 10 20 03 	mov  3, %g1                                    
 201a690:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 201a694:	81 c7 e0 08 	ret                                            
 201a698:	81 e8 00 00 	restore                                        
   */                                                                 
  if ( !sig )                                                         
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( !is_valid_signo(sig) )                                         
    rtems_set_errno_and_return_minus_one( EINVAL );                   
 201a69c:	7f ff d4 c1 	call  200f9a0 <__errno>                        
 201a6a0:	b0 10 3f ff 	mov  -1, %i0                                   
 201a6a4:	82 10 20 16 	mov  0x16, %g1                                 
 201a6a8:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 201a6ac:	81 c7 e0 08 	ret                                            
 201a6b0:	81 e8 00 00 	restore                                        
  if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) {       
                                                                      
    psiginfo = (POSIX_signals_Siginfo_node *)                         
               _Chain_Get( &_POSIX_signals_Inactive_siginfo );        
    if ( !psiginfo ) {                                                
      _Thread_Enable_dispatch();                                      
 201a6b4:	7f ff bb 3e 	call  20093ac <_Thread_Enable_dispatch>        
 201a6b8:	b0 10 3f ff 	mov  -1, %i0                                   
      rtems_set_errno_and_return_minus_one( EAGAIN );                 
 201a6bc:	7f ff d4 b9 	call  200f9a0 <__errno>                        
 201a6c0:	01 00 00 00 	nop                                            
 201a6c4:	82 10 20 0b 	mov  0xb, %g1	! b <PROM_START+0xb>             
 201a6c8:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 201a6cc:	81 c7 e0 08 	ret                                            
 201a6d0:	81 e8 00 00 	restore                                        
                                                                      

02003844 <libc_wrapup>: extern void _wrapup_reent(struct _reent *); extern void _reclaim_reent(struct _reent *); void libc_wrapup(void) {
 2003844:	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()))                      
 2003848:	03 00 80 76 	sethi  %hi(0x201d800), %g1                     
 200384c:	c2 00 63 24 	ld  [ %g1 + 0x324 ], %g1	! 201db24 <_System_state_Current>
 2003850:	80 a0 60 03 	cmp  %g1, 3                                    
 2003854:	02 80 00 04 	be  2003864 <libc_wrapup+0x20>                 <== ALWAYS TAKEN
 2003858:	3b 00 80 74 	sethi  %hi(0x201d000), %i5                     
 200385c:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 2003860:	81 e8 00 00 	restore                                        <== NOT EXECUTED
  /*                                                                  
   *  This was already done if the user called exit() directly .      
  _wrapup_reent(0);                                                   
   */                                                                 
                                                                      
  if (_REENT != _global_impure_ptr) {                                 
 2003864:	05 00 80 70 	sethi  %hi(0x201c000), %g2                     
 2003868:	c2 07 60 38 	ld  [ %i5 + 0x38 ], %g1                        
 200386c:	f8 00 a1 f0 	ld  [ %g2 + 0x1f0 ], %i4                       
 2003870:	80 a0 40 1c 	cmp  %g1, %i4                                  
 2003874:	02 80 00 05 	be  2003888 <libc_wrapup+0x44>                 
 2003878:	01 00 00 00 	nop                                            
      _wrapup_reent(_global_impure_ptr);                              
 200387c:	40 00 33 85 	call  2010690 <_wrapup_reent>                  
 2003880:	90 10 00 1c 	mov  %i4, %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;                                    
 2003884:	f8 27 60 38 	st  %i4, [ %i5 + 0x38 ]                        
   *                                                                  
   * Should this be changed to do *all* file streams?                 
   *    _fwalk (_REENT, fclose);                                      
   */                                                                 
                                                                      
  fclose (stdin);                                                     
 2003888:	40 00 30 98 	call  200fae8 <fclose>                         
 200388c:	d0 07 20 04 	ld  [ %i4 + 4 ], %o0                           
  fclose (stdout);                                                    
 2003890:	c2 07 60 38 	ld  [ %i5 + 0x38 ], %g1                        
 2003894:	40 00 30 95 	call  200fae8 <fclose>                         
 2003898:	d0 00 60 08 	ld  [ %g1 + 8 ], %o0                           
  fclose (stderr);                                                    
 200389c:	c2 07 60 38 	ld  [ %i5 + 0x38 ], %g1                        
 20038a0:	f0 00 60 0c 	ld  [ %g1 + 0xc ], %i0                         
 20038a4:	40 00 30 91 	call  200fae8 <fclose>                         
 20038a8:	81 e8 00 00 	restore                                        
                                                                      

02019f64 <lseek>: off_t lseek( int fd, off_t offset, int whence ) {
 2019f64:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_libio_t *iop;                                                 
  off_t          old_offset;                                          
  off_t          status;                                              
                                                                      
  rtems_libio_check_fd( fd );                                         
 2019f68:	03 00 80 73 	sethi  %hi(0x201cc00), %g1                     
 2019f6c:	c2 00 61 90 	ld  [ %g1 + 0x190 ], %g1	! 201cd90 <rtems_libio_number_iops>
off_t lseek(                                                          
  int     fd,                                                         
  off_t   offset,                                                     
  int     whence                                                      
)                                                                     
{                                                                     
 2019f70:	98 10 00 19 	mov  %i1, %o4                                  
  rtems_libio_t *iop;                                                 
  off_t          old_offset;                                          
  off_t          status;                                              
                                                                      
  rtems_libio_check_fd( fd );                                         
 2019f74:	80 a6 00 01 	cmp  %i0, %g1                                  
 2019f78:	1a 80 00 32 	bcc  201a040 <lseek+0xdc>                      
 2019f7c:	9a 10 00 1a 	mov  %i2, %o5                                  
  iop = rtems_libio_iop( fd );                                        
 2019f80:	03 00 80 76 	sethi  %hi(0x201d800), %g1                     
 2019f84:	fa 00 60 04 	ld  [ %g1 + 4 ], %i5	! 201d804 <rtems_libio_iops>
 2019f88:	b1 2e 20 06 	sll  %i0, 6, %i0                               
 2019f8c:	ba 07 40 18 	add  %i5, %i0, %i5                             
  rtems_libio_check_is_open(iop);                                     
 2019f90:	c2 07 60 18 	ld  [ %i5 + 0x18 ], %g1                        
 2019f94:	80 88 61 00 	btst  0x100, %g1                               
 2019f98:	02 80 00 2a 	be  201a040 <lseek+0xdc>                       
 2019f9c:	80 a6 e0 01 	cmp  %i3, 1                                    
  /*                                                                  
   *  Now process the lseek().                                        
   */                                                                 
                                                                      
  old_offset = iop->offset;                                           
  switch ( whence ) {                                                 
 2019fa0:	02 80 00 24 	be  201a030 <lseek+0xcc>                       
 2019fa4:	e0 1f 60 10 	ldd  [ %i5 + 0x10 ], %l0                       
 2019fa8:	80 a6 e0 02 	cmp  %i3, 2                                    
 2019fac:	02 80 00 15 	be  201a000 <lseek+0x9c>                       
 2019fb0:	80 a6 e0 00 	cmp  %i3, 0                                    
 2019fb4:	12 80 00 18 	bne  201a014 <lseek+0xb0>                      
 2019fb8:	01 00 00 00 	nop                                            
    case SEEK_SET:                                                    
      iop->offset = offset;                                           
 2019fbc:	d8 3f 60 10 	std  %o4, [ %i5 + 0x10 ]                       
  /*                                                                  
   *  At this time, handlers assume iop->offset has the desired       
   *  new offset.                                                     
   */                                                                 
                                                                      
  status = (*iop->pathinfo.handlers->lseek_h)( iop, offset, whence ); 
 2019fc0:	c2 07 60 24 	ld  [ %i5 + 0x24 ], %g1                        
 2019fc4:	90 10 00 1d 	mov  %i5, %o0                                  
 2019fc8:	c2 00 60 14 	ld  [ %g1 + 0x14 ], %g1                        
 2019fcc:	92 10 00 0c 	mov  %o4, %o1                                  
 2019fd0:	94 10 00 0d 	mov  %o5, %o2                                  
 2019fd4:	9f c0 40 00 	call  %g1                                      
 2019fd8:	96 10 00 1b 	mov  %i3, %o3                                  
 2019fdc:	b0 10 00 08 	mov  %o0, %i0                                  
  if ( status == (off_t) -1 )                                         
 2019fe0:	80 a6 3f ff 	cmp  %i0, -1                                   
 2019fe4:	12 80 00 05 	bne  2019ff8 <lseek+0x94>                      
 2019fe8:	b2 10 00 09 	mov  %o1, %i1                                  
 2019fec:	80 a2 7f ff 	cmp  %o1, -1                                   
 2019ff0:	22 80 00 02 	be,a   2019ff8 <lseek+0x94>                    <== ALWAYS TAKEN
 2019ff4:	e0 3f 60 10 	std  %l0, [ %i5 + 0x10 ]                       
  /*                                                                  
   *  So if the operation failed, we have to restore iop->offset.     
   */                                                                 
                                                                      
  return status;                                                      
}                                                                     
 2019ff8:	81 c7 e0 08 	ret                                            
 2019ffc:	81 e8 00 00 	restore                                        
    case SEEK_CUR:                                                    
      iop->offset += offset;                                          
      break;                                                          
                                                                      
    case SEEK_END:                                                    
      iop->offset = iop->size + offset;                               
 201a000:	c4 1f 60 08 	ldd  [ %i5 + 8 ], %g2                          
 201a004:	86 80 c0 1a 	addcc  %g3, %i2, %g3                           
 201a008:	84 40 80 19 	addx  %g2, %i1, %g2                            
      break;                                                          
 201a00c:	10 bf ff ed 	b  2019fc0 <lseek+0x5c>                        
 201a010:	c4 3f 60 10 	std  %g2, [ %i5 + 0x10 ]                       
                                                                      
    default:                                                          
      rtems_set_errno_and_return_minus_one( EINVAL );                 
 201a014:	7f ff d6 63 	call  200f9a0 <__errno>                        
 201a018:	31 3f ff ff 	sethi  %hi(0xfffffc00), %i0                    
 201a01c:	82 10 20 16 	mov  0x16, %g1                                 
 201a020:	b0 16 23 ff 	or  %i0, 0x3ff, %i0                            
 201a024:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 201a028:	81 c7 e0 08 	ret                                            
 201a02c:	93 e8 00 18 	restore  %g0, %i0, %o1                         
    case SEEK_SET:                                                    
      iop->offset = offset;                                           
      break;                                                          
                                                                      
    case SEEK_CUR:                                                    
      iop->offset += offset;                                          
 201a030:	86 84 40 1a 	addcc  %l1, %i2, %g3                           
 201a034:	84 44 00 19 	addx  %l0, %i1, %g2                            
      break;                                                          
 201a038:	10 bf ff e2 	b  2019fc0 <lseek+0x5c>                        
 201a03c:	c4 3f 60 10 	std  %g2, [ %i5 + 0x10 ]                       
  off_t          old_offset;                                          
  off_t          status;                                              
                                                                      
  rtems_libio_check_fd( fd );                                         
  iop = rtems_libio_iop( fd );                                        
  rtems_libio_check_is_open(iop);                                     
 201a040:	7f ff d6 58 	call  200f9a0 <__errno>                        
 201a044:	31 3f ff ff 	sethi  %hi(0xfffffc00), %i0                    
 201a048:	82 10 20 09 	mov  9, %g1                                    
 201a04c:	b0 16 23 ff 	or  %i0, 0x3ff, %i0                            
 201a050:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 201a054:	81 c7 e0 08 	ret                                            
 201a058:	93 e8 00 18 	restore  %g0, %i0, %o1                         
                                                                      

02003298 <malloc>: #include "malloc_p.h" void *malloc( size_t size ) {
 2003298:	9d e3 bf a0 	save  %sp, -96, %sp                            
  void        *return_this;                                           
                                                                      
  MSBUMP(malloc_calls, 1);                                            
 200329c:	03 00 80 76 	sethi  %hi(0x201d800), %g1                     
 20032a0:	82 10 60 20 	or  %g1, 0x20, %g1	! 201d820 <rtems_malloc_statistics>
 20032a4:	c4 00 60 04 	ld  [ %g1 + 4 ], %g2                           
#include "malloc_p.h"                                                 
                                                                      
void *malloc(                                                         
  size_t  size                                                        
)                                                                     
{                                                                     
 20032a8:	ba 10 00 18 	mov  %i0, %i5                                  
  void        *return_this;                                           
                                                                      
  MSBUMP(malloc_calls, 1);                                            
 20032ac:	84 00 a0 01 	inc  %g2                                       
                                                                      
  /*                                                                  
   *  If some free's have been deferred, then do them now.            
   */                                                                 
  malloc_deferred_frees_process();                                    
 20032b0:	7f ff ff aa 	call  2003158 <malloc_deferred_frees_process>  
 20032b4:	c4 20 60 04 	st  %g2, [ %g1 + 4 ]                           
                                                                      
  /*                                                                  
   * Validate the parameters                                          
   */                                                                 
  if ( !size )                                                        
 20032b8:	80 a7 60 00 	cmp  %i5, 0                                    
 20032bc:	02 80 00 1e 	be  2003334 <malloc+0x9c>                      
 20032c0:	b0 10 20 00 	clr  %i0                                       
    return (void *) 0;                                                
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if not in correct system state.
   */                                                                 
  if ( _System_state_Is_up(_System_state_Get()) &&                    
 20032c4:	03 00 80 76 	sethi  %hi(0x201d800), %g1                     
 20032c8:	c2 00 63 24 	ld  [ %g1 + 0x324 ], %g1	! 201db24 <_System_state_Current>
 20032cc:	80 a0 60 03 	cmp  %g1, 3                                    
 20032d0:	02 80 00 1b 	be  200333c <malloc+0xa4>                      
 20032d4:	03 00 80 73 	sethi  %hi(0x201cc00), %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 );
 20032d8:	d0 00 61 50 	ld  [ %g1 + 0x150 ], %o0	! 201cd50 <RTEMS_Malloc_Heap>
 20032dc:	92 10 00 1d 	mov  %i5, %o1                                  
 20032e0:	94 10 20 00 	clr  %o2                                       
 20032e4:	40 00 15 10 	call  2008724 <_Protected_heap_Allocate_aligned_with_boundary>
 20032e8:	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 ) {                                               
 20032ec:	b0 92 20 00 	orcc  %o0, 0, %i0                              
 20032f0:	02 80 00 21 	be  2003374 <malloc+0xdc>                      <== NEVER TAKEN
 20032f4:	03 00 80 75 	sethi  %hi(0x201d400), %g1                     
  }                                                                   
                                                                      
  /*                                                                  
   *  If the user wants us to dirty the allocated memory, then do it. 
   */                                                                 
  if ( rtems_malloc_dirty_helper )                                    
 20032f8:	03 00 80 75 	sethi  %hi(0x201d400), %g1                     
 20032fc:	c2 00 61 5c 	ld  [ %g1 + 0x15c ], %g1	! 201d55c <rtems_malloc_dirty_helper>
 2003300:	80 a0 60 00 	cmp  %g1, 0                                    
 2003304:	02 80 00 04 	be  2003314 <malloc+0x7c>                      
 2003308:	90 10 00 18 	mov  %i0, %o0                                  
    (*rtems_malloc_dirty_helper)( return_this, size );                
 200330c:	9f c0 40 00 	call  %g1                                      
 2003310:	92 10 00 1d 	mov  %i5, %o1                                  
                                                                      
  /*                                                                  
   *  If configured, update the statistics                            
   */                                                                 
  if ( rtems_malloc_statistics_helpers )                              
 2003314:	03 00 80 75 	sethi  %hi(0x201d400), %g1                     
 2003318:	c2 00 61 64 	ld  [ %g1 + 0x164 ], %g1	! 201d564 <rtems_malloc_statistics_helpers>
 200331c:	80 a0 60 00 	cmp  %g1, 0                                    
 2003320:	02 80 00 25 	be  20033b4 <malloc+0x11c>                     
 2003324:	01 00 00 00 	nop                                            
    (*rtems_malloc_statistics_helpers->at_malloc)(return_this);       
 2003328:	c2 00 60 04 	ld  [ %g1 + 4 ], %g1                           
 200332c:	9f c0 40 00 	call  %g1                                      
 2003330:	90 10 00 18 	mov  %i0, %o0                                  
                                                                      
  return return_this;                                                 
}                                                                     
 2003334:	81 c7 e0 08 	ret                                            
 2003338:	81 e8 00 00 	restore                                        
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if not in correct system state.
   */                                                                 
  if ( _System_state_Is_up(_System_state_Get()) &&                    
       !malloc_is_system_state_OK() )                                 
 200333c:	7f ff ff 75 	call  2003110 <malloc_is_system_state_OK>      
 2003340:	01 00 00 00 	nop                                            
    return (void *) 0;                                                
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if not in correct system state.
   */                                                                 
  if ( _System_state_Is_up(_System_state_Get()) &&                    
 2003344:	80 8a 20 ff 	btst  0xff, %o0                                
 2003348:	02 bf ff fb 	be  2003334 <malloc+0x9c>                      <== NEVER TAKEN
 200334c:	03 00 80 73 	sethi  %hi(0x201cc00), %g1                     
 2003350:	d0 00 61 50 	ld  [ %g1 + 0x150 ], %o0	! 201cd50 <RTEMS_Malloc_Heap>
 2003354:	92 10 00 1d 	mov  %i5, %o1                                  
 2003358:	94 10 20 00 	clr  %o2                                       
 200335c:	40 00 14 f2 	call  2008724 <_Protected_heap_Allocate_aligned_with_boundary>
 2003360:	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 ) {                                               
 2003364:	b0 92 20 00 	orcc  %o0, 0, %i0                              
 2003368:	12 bf ff e5 	bne  20032fc <malloc+0x64>                     
 200336c:	03 00 80 75 	sethi  %hi(0x201d400), %g1                     
    if (rtems_malloc_sbrk_helpers)                                    
 2003370:	03 00 80 75 	sethi  %hi(0x201d400), %g1                     
 2003374:	c2 00 61 60 	ld  [ %g1 + 0x160 ], %g1	! 201d560 <rtems_malloc_sbrk_helpers>
 2003378:	80 a0 60 00 	cmp  %g1, 0                                    
 200337c:	02 80 00 0a 	be  20033a4 <malloc+0x10c>                     
 2003380:	01 00 00 00 	nop                                            
      return_this = (*rtems_malloc_sbrk_helpers->extend)( size );     
 2003384:	c2 00 60 04 	ld  [ %g1 + 4 ], %g1                           
 2003388:	9f c0 40 00 	call  %g1                                      
 200338c:	90 10 00 1d 	mov  %i5, %o0                                  
    if ( !return_this ) {                                             
 2003390:	80 a2 20 00 	cmp  %o0, 0                                    
 2003394:	02 80 00 04 	be  20033a4 <malloc+0x10c>                     
 2003398:	01 00 00 00 	nop                                            
 200339c:	10 bf ff d7 	b  20032f8 <malloc+0x60>                       
 20033a0:	b0 10 00 08 	mov  %o0, %i0                                  
      errno = ENOMEM;                                                 
 20033a4:	40 00 31 7f 	call  200f9a0 <__errno>                        
 20033a8:	01 00 00 00 	nop                                            
 20033ac:	82 10 20 0c 	mov  0xc, %g1	! c <PROM_START+0xc>             
 20033b0:	c2 22 00 00 	st  %g1, [ %o0 ]                               
      return (void *) 0;                                              
 20033b4:	81 c7 e0 08 	ret                                            
 20033b8:	81 e8 00 00 	restore                                        
                                                                      

020030ec <malloc_sbrk_extend_and_allocate>: } void *malloc_sbrk_extend_and_allocate( size_t size ) {
 20030ec:	9d e3 bf a0 	save  %sp, -96, %sp                            
   *  Round to the "requested sbrk amount" so hopefully we won't have 
   *  to grow again for a while.  This effectively does sbrk() calls  
   *  in "page" amounts.                                              
   */                                                                 
                                                                      
  sbrk_amount = RTEMS_Malloc_Sbrk_amount;                             
 20030f0:	03 00 80 5c 	sethi  %hi(0x2017000), %g1                     
 20030f4:	fa 00 60 58 	ld  [ %g1 + 0x58 ], %i5	! 2017058 <RTEMS_Malloc_Sbrk_amount>
                                                                      
  if ( sbrk_amount == 0 )                                             
 20030f8:	80 a7 60 00 	cmp  %i5, 0                                    
 20030fc:	02 80 00 20 	be  200317c <malloc_sbrk_extend_and_allocate+0x90><== NEVER TAKEN
 2003100:	b2 10 00 18 	mov  %i0, %i1                                  
    return (void *) 0;                                                
                                                                      
  the_size = ((size + sbrk_amount) / sbrk_amount * sbrk_amount);      
 2003104:	92 10 00 1d 	mov  %i5, %o1                                  
 2003108:	40 00 3f b7 	call  2012fe4 <.udiv>                          
 200310c:	90 06 00 1d 	add  %i0, %i5, %o0                             
 2003110:	40 00 3f 7b 	call  2012efc <.umul>                          
 2003114:	92 10 00 1d 	mov  %i5, %o1                                  
                                                                      
  starting_address = (void *) sbrk(the_size);                         
 2003118:	7f ff f8 b7 	call  20013f4 <sbrk>                           
 200311c:	ba 10 00 08 	mov  %o0, %i5                                  
  if ( starting_address == (void*) -1 )                               
 2003120:	80 a2 3f ff 	cmp  %o0, -1                                   
 2003124:	02 80 00 16 	be  200317c <malloc_sbrk_extend_and_allocate+0x90>
 2003128:	92 10 00 08 	mov  %o0, %o1                                  
    return (void *) 0;                                                
                                                                      
  if ( !_Protected_heap_Extend(                                       
 200312c:	39 00 80 59 	sethi  %hi(0x2016400), %i4                     
 2003130:	d0 07 20 40 	ld  [ %i4 + 0x40 ], %o0	! 2016440 <RTEMS_Malloc_Heap>
 2003134:	40 00 14 9c 	call  20083a4 <_Protected_heap_Extend>         
 2003138:	94 10 00 1d 	mov  %i5, %o2                                  
 200313c:	80 8a 20 ff 	btst  0xff, %o0                                
 2003140:	02 80 00 09 	be  2003164 <malloc_sbrk_extend_and_allocate+0x78>
 2003144:	03 00 80 5c 	sethi  %hi(0x2017000), %g1                     
 2003148:	f0 07 20 40 	ld  [ %i4 + 0x40 ], %i0                        
    sbrk(-the_size);                                                  
    errno = ENOMEM;                                                   
    return (void *) 0;                                                
  }                                                                   
                                                                      
  MSBUMP(space_available, the_size);                                  
 200314c:	c4 00 60 28 	ld  [ %g1 + 0x28 ], %g2                        
 2003150:	b4 10 20 00 	clr  %i2                                       
 2003154:	ba 07 40 02 	add  %i5, %g2, %i5                             
 2003158:	fa 20 60 28 	st  %i5, [ %g1 + 0x28 ]                        
 200315c:	40 00 14 84 	call  200836c <_Protected_heap_Allocate_aligned_with_boundary>
 2003160:	97 e8 20 00 	restore  %g0, 0, %o3                           
  if ( starting_address == (void*) -1 )                               
    return (void *) 0;                                                
                                                                      
  if ( !_Protected_heap_Extend(                                       
          RTEMS_Malloc_Heap, starting_address, the_size) ) {          
    sbrk(-the_size);                                                  
 2003164:	7f ff f8 a4 	call  20013f4 <sbrk>                           
 2003168:	90 20 00 1d 	neg  %i5, %o0                                  
    errno = ENOMEM;                                                   
 200316c:	40 00 31 e5 	call  200f900 <__errno>                        
 2003170:	01 00 00 00 	nop                                            
 2003174:	82 10 20 0c 	mov  0xc, %g1	! c <PROM_START+0xc>             
 2003178:	c2 22 00 00 	st  %g1, [ %o0 ]                               
                                                                      
  MSBUMP(space_available, the_size);                                  
                                                                      
  return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size );  
  return return_this;                                                 
}                                                                     
 200317c:	81 c7 e0 08 	ret                                            
 2003180:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      

02003184 <malloc_sbrk_initialize>: void *malloc_sbrk_initialize( void *starting_address, size_t length ) {
 2003184:	9d e3 bf a0 	save  %sp, -96, %sp                            
  uintptr_t     old_address;                                          
  uintptr_t     uaddress;                                             
                                                                      
  RTEMS_Malloc_Sbrk_amount = length;                                  
 2003188:	03 00 80 5c 	sethi  %hi(0x2017000), %g1                     
   * If the starting address is 0 then we are to attempt to           
   * get length worth of memory using sbrk. Make sure we              
   * align the address that we get back.                              
   */                                                                 
                                                                      
  if (!starting_address) {                                            
 200318c:	80 a6 20 00 	cmp  %i0, 0                                    
 2003190:	02 80 00 04 	be  20031a0 <malloc_sbrk_initialize+0x1c>      
 2003194:	f2 20 60 58 	st  %i1, [ %g1 + 0x58 ]                        
    }                                                                 
                                                                      
    starting_address = (void *)uaddress;                              
  }                                                                   
  return starting_address;                                            
}                                                                     
 2003198:	81 c7 e0 08 	ret                                            
 200319c:	81 e8 00 00 	restore                                        
   * get length worth of memory using sbrk. Make sure we              
   * align the address that we get back.                              
   */                                                                 
                                                                      
  if (!starting_address) {                                            
    uaddress = (uintptr_t)sbrk(length);                               
 20031a0:	7f ff f8 95 	call  20013f4 <sbrk>                           
 20031a4:	90 10 00 19 	mov  %i1, %o0                                  
                                                                      
    if (uaddress == (uintptr_t) -1) {                                 
 20031a8:	80 a2 3f ff 	cmp  %o0, -1                                   
 20031ac:	02 80 00 08 	be  20031cc <malloc_sbrk_initialize+0x48>      <== ALWAYS TAKEN
 20031b0:	80 8a 20 07 	btst  7, %o0                                   
      rtems_fatal_error_occurred( RTEMS_NO_MEMORY );                  
      /* DOES NOT RETURN!!! */                                        
    }                                                                 
                                                                      
    if (uaddress & (CPU_HEAP_ALIGNMENT-1)) {                          
 20031b4:	02 80 00 04 	be  20031c4 <malloc_sbrk_initialize+0x40>      <== NOT EXECUTED
 20031b8:	01 00 00 00 	nop                                            <== NOT EXECUTED
      old_address = uaddress;                                         
      uaddress = (uaddress + CPU_HEAP_ALIGNMENT) & ~(CPU_HEAP_ALIGNMENT-1);
 20031bc:	90 02 20 08 	add  %o0, 8, %o0                               <== NOT EXECUTED
 20031c0:	90 0a 3f f8 	and  %o0, -8, %o0                              <== NOT EXECUTED
    }                                                                 
                                                                      
    starting_address = (void *)uaddress;                              
  }                                                                   
  return starting_address;                                            
}                                                                     
 20031c4:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 20031c8:	91 e8 00 08 	restore  %g0, %o0, %o0                         <== NOT EXECUTED
                                                                      
  if (!starting_address) {                                            
    uaddress = (uintptr_t)sbrk(length);                               
                                                                      
    if (uaddress == (uintptr_t) -1) {                                 
      rtems_fatal_error_occurred( RTEMS_NO_MEMORY );                  
 20031cc:	40 00 0e df 	call  2006d48 <rtems_fatal_error_occurred>     
 20031d0:	90 10 20 1a 	mov  0x1a, %o0                                 
                                                                      

0200e1ac <memfile_free_blocks_in_table>: */ void memfile_free_blocks_in_table( block_p **block_table, int entries ) {
 200e1ac:	9d e3 bf a0 	save  %sp, -96, %sp                            
  /*                                                                  
   *  Now go through all the slots in the table and free the memory.  
   */                                                                 
  b = *block_table;                                                   
                                                                      
  for ( i=0 ; i<entries ; i++ ) {                                     
 200e1b0:	80 a6 60 00 	cmp  %i1, 0                                    
 200e1b4:	04 80 00 0f 	ble  200e1f0 <memfile_free_blocks_in_table+0x44><== NEVER TAKEN
 200e1b8:	d0 06 00 00 	ld  [ %i0 ], %o0                               
 200e1bc:	ba 10 00 08 	mov  %o0, %i5                                  
 200e1c0:	b8 10 20 00 	clr  %i4                                       
    if ( b[i] ) {                                                     
 200e1c4:	d0 07 40 00 	ld  [ %i5 ], %o0                               
 200e1c8:	80 a2 20 00 	cmp  %o0, 0                                    
 200e1cc:	02 80 00 05 	be  200e1e0 <memfile_free_blocks_in_table+0x34>
 200e1d0:	b8 07 20 01 	inc  %i4                                       
      memfile_free_block( b[i] );                                     
 200e1d4:	7f ff ff ed 	call  200e188 <memfile_free_block>             
 200e1d8:	01 00 00 00 	nop                                            
      b[i] = 0;                                                       
 200e1dc:	c0 27 40 00 	clr  [ %i5 ]                                   
  /*                                                                  
   *  Now go through all the slots in the table and free the memory.  
   */                                                                 
  b = *block_table;                                                   
                                                                      
  for ( i=0 ; i<entries ; i++ ) {                                     
 200e1e0:	80 a7 00 19 	cmp  %i4, %i1                                  
 200e1e4:	12 bf ff f8 	bne  200e1c4 <memfile_free_blocks_in_table+0x18>
 200e1e8:	ba 07 60 04 	add  %i5, 4, %i5                               
 200e1ec:	d0 06 00 00 	ld  [ %i0 ], %o0                               
                                                                      
  /*                                                                  
   *  Now that all the blocks in the block table are free, we can     
   *  free the block table itself.                                    
   */                                                                 
  memfile_free_block( *block_table );                                 
 200e1f0:	7f ff ff e6 	call  200e188 <memfile_free_block>             
 200e1f4:	01 00 00 00 	nop                                            
  *block_table = 0;                                                   
 200e1f8:	c0 26 00 00 	clr  [ %i0 ]                                   
}                                                                     
 200e1fc:	81 c7 e0 08 	ret                                            
 200e200:	81 e8 00 00 	restore                                        
                                                                      

0200e7b0 <memfile_ftruncate>: */ int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) {
 200e7b0:	9d e3 bf 98 	save  %sp, -104, %sp                           
  IMFS_jnode_t   *the_jnode;                                          
                                                                      
  the_jnode = iop->pathinfo.node_access;                              
 200e7b4:	fa 06 20 1c 	ld  [ %i0 + 0x1c ], %i5                        
   *  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 )                           
 200e7b8:	c2 07 60 50 	ld  [ %i5 + 0x50 ], %g1                        
 200e7bc:	80 a0 40 19 	cmp  %g1, %i1                                  
 200e7c0:	06 80 00 13 	bl  200e80c <memfile_ftruncate+0x5c>           <== NEVER TAKEN
 200e7c4:	90 10 00 1d 	mov  %i5, %o0                                  
 200e7c8:	22 80 00 0d 	be,a   200e7fc <memfile_ftruncate+0x4c>        <== ALWAYS TAKEN
 200e7cc:	c2 07 60 54 	ld  [ %i5 + 0x54 ], %g1                        
  /*                                                                  
   *  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;                                 
 200e7d0:	f2 27 60 50 	st  %i1, [ %i5 + 0x50 ]                        <== NOT EXECUTED
 200e7d4:	f4 27 60 54 	st  %i2, [ %i5 + 0x54 ]                        
  iop->size = the_jnode->info.file.size;                              
 200e7d8:	f2 26 20 08 	st  %i1, [ %i0 + 8 ]                           
 200e7dc:	f4 26 20 0c 	st  %i2, [ %i0 + 0xc ]                         
                                                                      
  IMFS_update_atime( the_jnode );                                     
 200e7e0:	90 07 bf f8 	add  %fp, -8, %o0                              
 200e7e4:	7f ff d1 f5 	call  2002fb8 <gettimeofday>                   
 200e7e8:	92 10 20 00 	clr  %o1                                       
 200e7ec:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
 200e7f0:	c2 27 60 40 	st  %g1, [ %i5 + 0x40 ]                        
                                                                      
  return 0;                                                           
}                                                                     
 200e7f4:	81 c7 e0 08 	ret                                            
 200e7f8:	91 e8 20 00 	restore  %g0, 0, %o0                           
   *  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 )                           
 200e7fc:	80 a0 40 1a 	cmp  %g1, %i2                                  
 200e800:	3a bf ff f5 	bcc,a   200e7d4 <memfile_ftruncate+0x24>       
 200e804:	f2 27 60 50 	st  %i1, [ %i5 + 0x50 ]                        
    return IMFS_memfile_extend( the_jnode, length );                  
 200e808:	90 10 00 1d 	mov  %i5, %o0                                  
 200e80c:	92 10 00 19 	mov  %i1, %o1                                  
 200e810:	7f ff fe e7 	call  200e3ac <IMFS_memfile_extend>            
 200e814:	94 10 00 1a 	mov  %i2, %o2                                  
 200e818:	81 c7 e0 08 	ret                                            
 200e81c:	91 e8 00 08 	restore  %g0, %o0, %o0                         
                                                                      

0200e820 <memfile_lseek>: rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) {
 200e820:	9d e3 bf a0 	save  %sp, -96, %sp                            
  IMFS_jnode_t   *the_jnode;                                          
                                                                      
  the_jnode = iop->pathinfo.node_access;                              
 200e824:	fa 06 20 1c 	ld  [ %i0 + 0x1c ], %i5                        
                                                                      
  if (the_jnode->type == IMFS_LINEAR_FILE) {                          
 200e828:	c2 07 60 4c 	ld  [ %i5 + 0x4c ], %g1                        
 200e82c:	80 a0 60 06 	cmp  %g1, 6                                    
 200e830:	02 80 00 0f 	be  200e86c <memfile_lseek+0x4c>               
 200e834:	c4 1e 20 10 	ldd  [ %i0 + 0x10 ], %g2                       
    if (iop->offset > the_jnode->info.linearfile.size)                
      iop->offset = the_jnode->info.linearfile.size;                  
  }                                                                   
  else {  /* Must be a block file (IMFS_MEMORY_FILE). */              
    if (IMFS_memfile_extend( the_jnode, iop->offset ))                
 200e838:	90 10 00 1d 	mov  %i5, %o0                                  
 200e83c:	92 10 00 02 	mov  %g2, %o1                                  
 200e840:	7f ff fe db 	call  200e3ac <IMFS_memfile_extend>            
 200e844:	94 10 00 03 	mov  %g3, %o2                                  
 200e848:	80 a2 20 00 	cmp  %o0, 0                                    
 200e84c:	12 80 00 19 	bne  200e8b0 <memfile_lseek+0x90>              
 200e850:	01 00 00 00 	nop                                            
      rtems_set_errno_and_return_minus_one( ENOSPC );                 
                                                                      
    iop->size = the_jnode->info.file.size;                            
 200e854:	d8 1f 60 50 	ldd  [ %i5 + 0x50 ], %o4                       
 200e858:	c4 1e 20 10 	ldd  [ %i0 + 0x10 ], %g2                       
 200e85c:	d8 3e 20 08 	std  %o4, [ %i0 + 8 ]                          
  }                                                                   
  return iop->offset;                                                 
}                                                                     
 200e860:	b0 10 00 02 	mov  %g2, %i0                                  
 200e864:	81 c7 e0 08 	ret                                            
 200e868:	93 e8 00 03 	restore  %g0, %g3, %o1                         
  IMFS_jnode_t   *the_jnode;                                          
                                                                      
  the_jnode = iop->pathinfo.node_access;                              
                                                                      
  if (the_jnode->type == IMFS_LINEAR_FILE) {                          
    if (iop->offset > the_jnode->info.linearfile.size)                
 200e86c:	c2 07 60 50 	ld  [ %i5 + 0x50 ], %g1                        
 200e870:	80 a0 80 01 	cmp  %g2, %g1                                  
 200e874:	14 80 00 08 	bg  200e894 <memfile_lseek+0x74>               <== NEVER TAKEN
 200e878:	c8 07 60 54 	ld  [ %i5 + 0x54 ], %g4                        
 200e87c:	80 a0 80 01 	cmp  %g2, %g1                                  
 200e880:	32 bf ff f9 	bne,a   200e864 <memfile_lseek+0x44>           <== NEVER TAKEN
 200e884:	b0 10 00 02 	mov  %g2, %i0                                  <== NOT EXECUTED
 200e888:	80 a0 c0 04 	cmp  %g3, %g4                                  
 200e88c:	28 bf ff f6 	bleu,a   200e864 <memfile_lseek+0x44>          <== ALWAYS TAKEN
 200e890:	b0 10 00 02 	mov  %g2, %i0                                  
      iop->offset = the_jnode->info.linearfile.size;                  
 200e894:	c2 26 20 10 	st  %g1, [ %i0 + 0x10 ]                        <== NOT EXECUTED
 200e898:	84 10 00 01 	mov  %g1, %g2                                  <== NOT EXECUTED
 200e89c:	c8 26 20 14 	st  %g4, [ %i0 + 0x14 ]                        <== NOT EXECUTED
 200e8a0:	86 10 00 04 	mov  %g4, %g3                                  <== NOT EXECUTED
      rtems_set_errno_and_return_minus_one( ENOSPC );                 
                                                                      
    iop->size = the_jnode->info.file.size;                            
  }                                                                   
  return iop->offset;                                                 
}                                                                     
 200e8a4:	b0 10 00 02 	mov  %g2, %i0                                  <== NOT EXECUTED
 200e8a8:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200e8ac:	93 e8 00 03 	restore  %g0, %g3, %o1                         <== NOT EXECUTED
    if (iop->offset > the_jnode->info.linearfile.size)                
      iop->offset = the_jnode->info.linearfile.size;                  
  }                                                                   
  else {  /* Must be a block file (IMFS_MEMORY_FILE). */              
    if (IMFS_memfile_extend( the_jnode, iop->offset ))                
      rtems_set_errno_and_return_minus_one( ENOSPC );                 
 200e8b0:	40 00 04 3c 	call  200f9a0 <__errno>                        
 200e8b4:	01 00 00 00 	nop                                            
 200e8b8:	05 3f ff ff 	sethi  %hi(0xfffffc00), %g2                    
 200e8bc:	82 10 20 1c 	mov  0x1c, %g1                                 
 200e8c0:	84 10 a3 ff 	or  %g2, 0x3ff, %g2                            
 200e8c4:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200e8c8:	10 bf ff e6 	b  200e860 <memfile_lseek+0x40>                
 200e8cc:	86 10 00 02 	mov  %g2, %g3                                  
                                                                      

0200e700 <memfile_open>: rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) {
 200e700:	9d e3 bf a0 	save  %sp, -96, %sp                            
  the_jnode = iop->pathinfo.node_access;                              
                                                                      
  /*                                                                  
   * Perform 'copy on write' for linear files                         
   */                                                                 
  if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND))         
 200e704:	c2 06 20 18 	ld  [ %i0 + 0x18 ], %g1                        
  rtems_libio_t *iop,                                                 
  const char    *pathname,                                            
  uint32_t       flag,                                                
  uint32_t       mode                                                 
)                                                                     
{                                                                     
 200e708:	ba 10 00 18 	mov  %i0, %i5                                  
  the_jnode = iop->pathinfo.node_access;                              
                                                                      
  /*                                                                  
   * Perform 'copy on write' for linear files                         
   */                                                                 
  if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND))         
 200e70c:	80 88 62 04 	btst  0x204, %g1                               
 200e710:	02 80 00 06 	be  200e728 <memfile_open+0x28>                
 200e714:	f8 06 20 1c 	ld  [ %i0 + 0x1c ], %i4                        
   && (the_jnode->type == IMFS_LINEAR_FILE)) {                        
 200e718:	c4 07 20 4c 	ld  [ %i4 + 0x4c ], %g2                        
 200e71c:	80 a0 a0 06 	cmp  %g2, 6                                    
 200e720:	22 80 00 0c 	be,a   200e750 <memfile_open+0x50>             <== NEVER TAKEN
 200e724:	d8 07 20 54 	ld  [ %i4 + 0x54 ], %o4                        <== NOT EXECUTED
    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)                                                  
     && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1))      
 200e728:	c4 1f 20 50 	ldd  [ %i4 + 0x50 ], %g2                       
        return -1;                                                    
  }                                                                   
  if (iop->flags & LIBIO_FLAGS_APPEND)                                
 200e72c:	80 88 62 00 	btst  0x200, %g1                               
 200e730:	22 80 00 05 	be,a   200e744 <memfile_open+0x44>             
 200e734:	c4 3f 60 08 	std  %g2, [ %i5 + 8 ]                          
    iop->offset = the_jnode->info.file.size;                          
 200e738:	c4 3f 60 10 	std  %g2, [ %i5 + 0x10 ]                       
 200e73c:	c4 1f 20 50 	ldd  [ %i4 + 0x50 ], %g2                       
                                                                      
  iop->size = the_jnode->info.file.size;                              
 200e740:	c4 3f 60 08 	std  %g2, [ %i5 + 8 ]                          
  return 0;                                                           
 200e744:	b0 10 20 00 	clr  %i0                                       
}                                                                     
 200e748:	81 c7 e0 08 	ret                                            
 200e74c:	81 e8 00 00 	restore                                        
   * Perform 'copy on write' for linear files                         
   */                                                                 
  if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND))         
   && (the_jnode->type == IMFS_LINEAR_FILE)) {                        
    uint32_t   count = the_jnode->info.linearfile.size;               
    const unsigned char *buffer = the_jnode->info.linearfile.direct;  
 200e750:	d6 07 20 58 	ld  [ %i4 + 0x58 ], %o3                        <== NOT EXECUTED
                                                                      
    the_jnode->type = IMFS_MEMORY_FILE;                               
 200e754:	82 10 20 05 	mov  5, %g1                                    <== NOT EXECUTED
    the_jnode->info.file.size            = 0;                         
 200e758:	c0 27 20 50 	clr  [ %i4 + 0x50 ]                            <== NOT EXECUTED
 200e75c:	c0 27 20 54 	clr  [ %i4 + 0x54 ]                            <== NOT EXECUTED
  if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND))         
   && (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;                               
 200e760:	c2 27 20 4c 	st  %g1, [ %i4 + 0x4c ]                        <== NOT EXECUTED
    the_jnode->info.file.size            = 0;                         
    the_jnode->info.file.indirect        = 0;                         
 200e764:	c0 27 20 58 	clr  [ %i4 + 0x58 ]                            <== NOT EXECUTED
    the_jnode->info.file.doubly_indirect = 0;                         
 200e768:	c0 27 20 5c 	clr  [ %i4 + 0x5c ]                            <== NOT EXECUTED
    the_jnode->info.file.triply_indirect = 0;                         
    if ((count != 0)                                                  
 200e76c:	80 a3 20 00 	cmp  %o4, 0                                    <== NOT EXECUTED
 200e770:	12 80 00 06 	bne  200e788 <memfile_open+0x88>               <== NOT EXECUTED
 200e774:	c0 27 20 60 	clr  [ %i4 + 0x60 ]                            <== NOT EXECUTED
 200e778:	c2 06 20 18 	ld  [ %i0 + 0x18 ], %g1                        <== NOT EXECUTED
 200e77c:	84 10 20 00 	clr  %g2                                       <== NOT EXECUTED
 200e780:	10 bf ff eb 	b  200e72c <memfile_open+0x2c>                 <== NOT EXECUTED
 200e784:	86 10 20 00 	clr  %g3                                       <== NOT EXECUTED
     && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1))      
 200e788:	90 10 00 1c 	mov  %i4, %o0                                  <== NOT EXECUTED
 200e78c:	92 10 20 00 	clr  %o1                                       <== NOT EXECUTED
 200e790:	94 10 20 00 	clr  %o2                                       <== NOT EXECUTED
 200e794:	7f ff ff 57 	call  200e4f0 <IMFS_memfile_write>             <== NOT EXECUTED
 200e798:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
 200e79c:	80 a2 3f ff 	cmp  %o0, -1                                   <== NOT EXECUTED
 200e7a0:	02 bf ff ea 	be  200e748 <memfile_open+0x48>                <== NOT EXECUTED
 200e7a4:	01 00 00 00 	nop                                            <== NOT EXECUTED
 200e7a8:	10 bf ff e0 	b  200e728 <memfile_open+0x28>                 <== NOT EXECUTED
 200e7ac:	c2 07 60 18 	ld  [ %i5 + 0x18 ], %g1                        <== NOT EXECUTED
                                                                      

020033d8 <mknod>: int mknod( const char *pathname, mode_t mode, dev_t dev ) {
 20033d8:	9d e3 bf 80 	save  %sp, -128, %sp                           
  int                                 result;                         
                                                                      
  /*                                                                  
   * The file type is field within the mode. Check we have a sane mode set.
   */                                                                 
  switch (mode & S_IFMT)                                              
 20033dc:	05 00 00 10 	sethi  %hi(0x4000), %g2                        
 20033e0:	03 00 00 3c 	sethi  %hi(0xf000), %g1                        
 20033e4:	82 0e 40 01 	and  %i1, %g1, %g1                             
 20033e8:	80 a0 40 02 	cmp  %g1, %g2                                  
 20033ec:	02 80 00 18 	be  200344c <mknod+0x74>                       
 20033f0:	90 10 00 18 	mov  %i0, %o0                                  
 20033f4:	08 80 00 0f 	bleu  2003430 <mknod+0x58>                     
 20033f8:	05 00 00 04 	sethi  %hi(0x1000), %g2                        
 20033fc:	05 00 00 18 	sethi  %hi(0x6000), %g2                        
 2003400:	80 a0 40 02 	cmp  %g1, %g2                                  
 2003404:	02 80 00 12 	be  200344c <mknod+0x74>                       
 2003408:	05 00 00 20 	sethi  %hi(0x8000), %g2                        
 200340c:	80 a0 40 02 	cmp  %g1, %g2                                  
 2003410:	02 80 00 10 	be  2003450 <mknod+0x78>                       <== ALWAYS TAKEN
 2003414:	92 07 bf f8 	add  %fp, -8, %o1                              
    case S_IFBLK:                                                     
    case S_IFREG:                                                     
    case S_IFIFO:                                                     
      break;                                                          
    default:                                                          
      rtems_set_errno_and_return_minus_one( EINVAL );                 
 2003418:	40 00 31 62 	call  200f9a0 <__errno>                        
 200341c:	b0 10 3f ff 	mov  -1, %i0                                   
 2003420:	82 10 20 16 	mov  0x16, %g1                                 
 2003424:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2003428:	81 c7 e0 08 	ret                                            
 200342c:	81 e8 00 00 	restore                                        
  int                                 result;                         
                                                                      
  /*                                                                  
   * The file type is field within the mode. Check we have a sane mode set.
   */                                                                 
  switch (mode & S_IFMT)                                              
 2003430:	80 a0 40 02 	cmp  %g1, %g2                                  
 2003434:	02 80 00 05 	be  2003448 <mknod+0x70>                       
 2003438:	05 00 00 08 	sethi  %hi(0x2000), %g2                        
 200343c:	80 a0 40 02 	cmp  %g1, %g2                                  
 2003440:	12 bf ff f6 	bne  2003418 <mknod+0x40>                      
 2003444:	01 00 00 00 	nop                                            
      break;                                                          
    default:                                                          
      rtems_set_errno_and_return_minus_one( EINVAL );                 
  }                                                                   
                                                                      
  rtems_filesystem_get_start_loc( pathname, &i, &temp_loc );          
 2003448:	90 10 00 18 	mov  %i0, %o0                                  
 200344c:	92 07 bf f8 	add  %fp, -8, %o1                              
 2003450:	40 00 02 8b 	call  2003e7c <rtems_filesystem_get_start_loc> 
 2003454:	94 07 bf e4 	add  %fp, -28, %o2                             
                                                                      
  result = (*temp_loc.ops->evalformake_h)(                            
 2003458:	c2 07 bf f0 	ld  [ %fp + -16 ], %g1                         
 200345c:	d0 07 bf f8 	ld  [ %fp + -8 ], %o0                          
 2003460:	c2 00 60 04 	ld  [ %g1 + 4 ], %g1                           
 2003464:	90 06 00 08 	add  %i0, %o0, %o0                             
 2003468:	92 07 bf e4 	add  %fp, -28, %o1                             
 200346c:	94 07 bf fc 	add  %fp, -4, %o2                              
 2003470:	9f c0 40 00 	call  %g1                                      
 2003474:	b0 10 3f ff 	mov  -1, %i0                                   
    &pathname[i],                                                     
    &temp_loc,                                                        
    &name_start                                                       
  );                                                                  
  if ( result != 0 )                                                  
 2003478:	80 a2 20 00 	cmp  %o0, 0                                    
 200347c:	12 bf ff eb 	bne  2003428 <mknod+0x50>                      
 2003480:	c2 07 bf f0 	ld  [ %fp + -16 ], %g1                         
    return -1;                                                        
                                                                      
  result =  (*temp_loc.ops->mknod_h)( name_start, mode, dev, &temp_loc );
 2003484:	d0 07 bf fc 	ld  [ %fp + -4 ], %o0                          
 2003488:	c2 00 60 14 	ld  [ %g1 + 0x14 ], %g1                        
 200348c:	92 10 00 19 	mov  %i1, %o1                                  
 2003490:	94 10 00 1a 	mov  %i2, %o2                                  
 2003494:	96 10 00 1b 	mov  %i3, %o3                                  
 2003498:	9f c0 40 00 	call  %g1                                      
 200349c:	98 07 bf e4 	add  %fp, -28, %o4                             
 20034a0:	b0 10 00 08 	mov  %o0, %i0                                  
                                                                      
  rtems_filesystem_freenode( &temp_loc );                             
 20034a4:	7f ff fe 94 	call  2002ef4 <rtems_filesystem_freenode>      
 20034a8:	90 07 bf e4 	add  %fp, -28, %o0                             
                                                                      
  return result;                                                      
}                                                                     
 20034ac:	81 c7 e0 08 	ret                                            
 20034b0:	81 e8 00 00 	restore                                        
                                                                      

0200353c <mount>: const char *target, const char *filesystemtype, rtems_filesystem_options_t options, const void *data ) {
 200353c:	9d e3 bf 88 	save  %sp, -120, %sp                           
                                                                      
  /*                                                                  
   *  Are the file system options valid?                              
   */                                                                 
                                                                      
  if ( options != RTEMS_FILESYSTEM_READ_ONLY &&                       
 2003540:	80 a6 e0 01 	cmp  %i3, 1                                    
 2003544:	18 80 00 85 	bgu  2003758 <mount+0x21c>                     
 2003548:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  /*                                                                  
   *  Get mount handler                                               
   */                                                                 
  mount_h = rtems_filesystem_get_mount_handler( filesystemtype );     
 200354c:	40 00 23 5b 	call  200c2b8 <rtems_filesystem_get_mount_handler>
 2003550:	90 10 00 1a 	mov  %i2, %o0                                  
  if ( !mount_h )                                                     
 2003554:	a2 92 20 00 	orcc  %o0, 0, %l1                              
 2003558:	02 80 00 80 	be  2003758 <mount+0x21c>                      
 200355c:	80 a0 00 19 	cmp  %g0, %i1                                  
  const char *target_or_null,                                         
  const char *filesystemtype,                                         
  size_t *target_length_ptr                                           
)                                                                     
{                                                                     
  const char *target = target_or_null != NULL ? target_or_null : "/"; 
 2003560:	a0 40 20 00 	addx  %g0, 0, %l0                              
 2003564:	80 a4 20 00 	cmp  %l0, 0                                    
 2003568:	02 80 00 77 	be  2003744 <mount+0x208>                      
 200356c:	90 10 00 19 	mov  %i1, %o0                                  
 * 	4) The mount point exists with the proper permissions to allow mounting
 *	5) The selected mount point already has a file system mounted to it
 *                                                                    
 */                                                                   
                                                                      
int mount(                                                            
 2003570:	40 00 36 a4 	call  2011000 <strlen>                         
 2003574:	ae 10 00 19 	mov  %i1, %l7                                  
 2003578:	ac 10 00 08 	mov  %o0, %l6                                  
 200357c:	a8 02 20 01 	add  %o0, 1, %l4                               
  const char *filesystemtype,                                         
  size_t *target_length_ptr                                           
)                                                                     
{                                                                     
  const char *target = target_or_null != NULL ? target_or_null : "/"; 
  size_t filesystemtype_size = strlen( filesystemtype ) + 1;          
 2003580:	40 00 36 a0 	call  2011000 <strlen>                         
 2003584:	90 10 00 1a 	mov  %i2, %o0                                  
  size_t source_size = source_or_null != NULL ?                       
    strlen( source_or_null ) + 1 : 0;                                 
 2003588:	a4 10 20 00 	clr  %l2                                       
 200358c:	80 a6 20 00 	cmp  %i0, 0                                    
 2003590:	02 80 00 05 	be  20035a4 <mount+0x68>                       
 2003594:	aa 10 00 08 	mov  %o0, %l5                                  
 2003598:	40 00 36 9a 	call  2011000 <strlen>                         
 200359c:	90 10 00 18 	mov  %i0, %o0                                  
 20035a0:	a4 02 20 01 	add  %o0, 1, %l2                               
  size_t target_size = strlen( target ) + 1;                          
  size_t size = sizeof( rtems_filesystem_mount_table_entry_t )        
    + filesystemtype_size + source_size + target_size;                
 20035a4:	92 05 40 14 	add  %l5, %l4, %o1                             
  rtems_filesystem_mount_table_entry_t *mt_entry = calloc( 1, size ); 
 20035a8:	90 10 20 01 	mov  1, %o0                                    
  size_t filesystemtype_size = strlen( filesystemtype ) + 1;          
  size_t source_size = source_or_null != NULL ?                       
    strlen( source_or_null ) + 1 : 0;                                 
  size_t target_size = strlen( target ) + 1;                          
  size_t size = sizeof( rtems_filesystem_mount_table_entry_t )        
    + filesystemtype_size + source_size + target_size;                
 20035ac:	92 02 60 75 	add  %o1, 0x75, %o1                            
  rtems_filesystem_mount_table_entry_t *mt_entry = calloc( 1, size ); 
 20035b0:	7f ff fd 4b 	call  2002adc <calloc>                         
 20035b4:	92 02 40 12 	add  %o1, %l2, %o1                             
                                                                      
  if ( mt_entry != NULL ) {                                           
 20035b8:	ba 92 20 00 	orcc  %o0, 0, %i5                              
 20035bc:	02 80 00 5c 	be  200372c <mount+0x1f0>                      <== NEVER TAKEN
 20035c0:	a6 07 60 74 	add  %i5, 0x74, %l3                            
    char *str = (char *) mt_entry + sizeof( *mt_entry );              
                                                                      
    memcpy( str, filesystemtype, filesystemtype_size );               
 20035c4:	92 10 00 1a 	mov  %i2, %o1                                  
  const char *filesystemtype,                                         
  size_t *target_length_ptr                                           
)                                                                     
{                                                                     
  const char *target = target_or_null != NULL ? target_or_null : "/"; 
  size_t filesystemtype_size = strlen( filesystemtype ) + 1;          
 20035c8:	aa 05 60 01 	inc  %l5                                       
  rtems_filesystem_mount_table_entry_t *mt_entry = calloc( 1, size ); 
                                                                      
  if ( mt_entry != NULL ) {                                           
    char *str = (char *) mt_entry + sizeof( *mt_entry );              
                                                                      
    memcpy( str, filesystemtype, filesystemtype_size );               
 20035cc:	90 10 00 13 	mov  %l3, %o0                                  
 20035d0:	40 00 33 50 	call  2010310 <memcpy>                         
 20035d4:	94 10 00 15 	mov  %l5, %o2                                  
    mt_entry->type = str;                                             
    str += filesystemtype_size;                                       
 20035d8:	b4 04 c0 15 	add  %l3, %l5, %i2                             
                                                                      
    memcpy( str, source_or_null, source_size );                       
 20035dc:	94 10 00 12 	mov  %l2, %o2                                  
 20035e0:	92 10 00 18 	mov  %i0, %o1                                  
                                                                      
  if ( mt_entry != NULL ) {                                           
    char *str = (char *) mt_entry + sizeof( *mt_entry );              
                                                                      
    memcpy( str, filesystemtype, filesystemtype_size );               
    mt_entry->type = str;                                             
 20035e4:	e6 27 60 6c 	st  %l3, [ %i5 + 0x6c ]                        
    str += filesystemtype_size;                                       
                                                                      
    memcpy( str, source_or_null, source_size );                       
 20035e8:	40 00 33 4a 	call  2010310 <memcpy>                         
 20035ec:	90 10 00 1a 	mov  %i2, %o0                                  
    mt_entry->dev = str;                                              
    str += source_size;                                               
 20035f0:	a4 06 80 12 	add  %i2, %l2, %l2                             
                                                                      
    memcpy( str, target, target_size );                               
 20035f4:	92 10 00 17 	mov  %l7, %o1                                  
 20035f8:	94 10 00 14 	mov  %l4, %o2                                  
    memcpy( str, filesystemtype, filesystemtype_size );               
    mt_entry->type = str;                                             
    str += filesystemtype_size;                                       
                                                                      
    memcpy( str, source_or_null, source_size );                       
    mt_entry->dev = str;                                              
 20035fc:	f4 27 60 70 	st  %i2, [ %i5 + 0x70 ]                        
    str += source_size;                                               
                                                                      
    memcpy( str, target, target_size );                               
 2003600:	40 00 33 44 	call  2010310 <memcpy>                         
 2003604:	90 10 00 12 	mov  %l2, %o0                                  
  if ( !mt_entry )                                                    
    rtems_set_errno_and_return_minus_one( ENOMEM );                   
                                                                      
  mt_entry->mt_fs_root.mt_entry = mt_entry;                           
  mt_entry->options = options;                                        
  mt_entry->pathconf_limits_and_options = rtems_filesystem_default_pathconf;
 2003608:	90 07 60 38 	add  %i5, 0x38, %o0                            
    memcpy( str, source_or_null, source_size );                       
    mt_entry->dev = str;                                              
    str += source_size;                                               
                                                                      
    memcpy( str, target, target_size );                               
    mt_entry->target = str;                                           
 200360c:	e4 27 60 68 	st  %l2, [ %i5 + 0x68 ]                        
    &target_length                                                    
  );                                                                  
  if ( !mt_entry )                                                    
    rtems_set_errno_and_return_minus_one( ENOMEM );                   
                                                                      
  mt_entry->mt_fs_root.mt_entry = mt_entry;                           
 2003610:	fa 27 60 2c 	st  %i5, [ %i5 + 0x2c ]                        
  mt_entry->options = options;                                        
 2003614:	f6 27 60 30 	st  %i3, [ %i5 + 0x30 ]                        
  mt_entry->pathconf_limits_and_options = rtems_filesystem_default_pathconf;
 2003618:	94 10 20 30 	mov  0x30, %o2                                 
 200361c:	13 00 80 6e 	sethi  %hi(0x201b800), %o1                     
 2003620:	40 00 33 3c 	call  2010310 <memcpy>                         
 2003624:	92 12 60 50 	or  %o1, 0x50, %o1	! 201b850 <rtems_filesystem_default_pathconf>
  /*                                                                  
   *  The mount_point should be a directory with read/write/execute   
   *  permissions in the existing tree.                               
   */                                                                 
                                                                      
  if ( has_target ) {                                                 
 2003628:	80 a4 20 00 	cmp  %l0, 0                                    
 200362c:	12 80 00 11 	bne  2003670 <mount+0x134>                     
 2003630:	03 00 80 73 	sethi  %hi(0x201cc00), %g1                     
    }                                                                 
  } else {                                                            
    /*                                                                
     * Do we already have a base file system ?                        
     */                                                               
    if ( !rtems_chain_is_empty( &mount_chain ) ) {                    
 2003634:	c4 00 62 54 	ld  [ %g1 + 0x254 ], %g2	! 201ce54 <mount_chain>
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(        
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_head( the_chain )->next;                    
 2003638:	82 10 62 54 	or  %g1, 0x254, %g1                            
 200363c:	82 00 60 04 	add  %g1, 4, %g1                               
 2003640:	80 a0 80 01 	cmp  %g2, %g1                                  
 2003644:	02 80 00 26 	be  20036dc <mount+0x1a0>                      <== ALWAYS TAKEN
 2003648:	b6 10 20 00 	clr  %i3                                       
      errno = EINVAL;                                                 
 200364c:	40 00 30 d5 	call  200f9a0 <__errno>                        <== NOT EXECUTED
 2003650:	01 00 00 00 	nop                                            <== NOT EXECUTED
 2003654:	82 10 20 16 	mov  0x16, %g1	! 16 <PROM_START+0x16>          <== NOT EXECUTED
 2003658:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
                                                                      
  return 0;                                                           
                                                                      
cleanup_and_bail:                                                     
                                                                      
  free( mt_entry );                                                   
 200365c:	90 10 00 1d 	mov  %i5, %o0                                  <== NOT EXECUTED
 2003660:	7f ff fe 2c 	call  2002f10 <free>                           <== NOT EXECUTED
 2003664:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
 2003668:	81 c7 e0 08 	ret                                            
 200366c:	81 e8 00 00 	restore                                        
   *  The mount_point should be a directory with read/write/execute   
   *  permissions in the existing tree.                               
   */                                                                 
                                                                      
  if ( has_target ) {                                                 
    if ( rtems_filesystem_evaluate_path(                              
 2003670:	90 10 00 19 	mov  %i1, %o0                                  
 2003674:	92 10 00 16 	mov  %l6, %o1                                  
 2003678:	94 10 20 07 	mov  7, %o2                                    
 200367c:	96 07 bf ec 	add  %fp, -20, %o3                             
 2003680:	7f ff fd e3 	call  2002e0c <rtems_filesystem_evaluate_path> 
 2003684:	98 10 20 01 	mov  1, %o4                                    
 2003688:	80 a2 3f ff 	cmp  %o0, -1                                   
 200368c:	02 bf ff f4 	be  200365c <mount+0x120>                      <== NEVER TAKEN
 2003690:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
                                                                      
    /*                                                                
     *  Test to see if it is a directory                              
     */                                                               
                                                                      
    if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
 2003694:	c2 00 60 10 	ld  [ %g1 + 0x10 ], %g1                        
 2003698:	9f c0 40 00 	call  %g1                                      
 200369c:	90 07 bf ec 	add  %fp, -20, %o0                             
 20036a0:	80 a2 20 01 	cmp  %o0, 1                                    
 20036a4:	02 80 00 4e 	be  20037dc <mount+0x2a0>                      
 20036a8:	d2 07 bf ec 	ld  [ %fp + -20 ], %o1                         
      errno = ENOTDIR;                                                
 20036ac:	40 00 30 bd 	call  200f9a0 <__errno>                        
 20036b0:	01 00 00 00 	nop                                            
 20036b4:	82 10 20 14 	mov  0x14, %g1	! 14 <PROM_START+0x14>          
 20036b8:	c2 22 00 00 	st  %g1, [ %o0 ]                               
                                                                      
  return 0;                                                           
                                                                      
cleanup_and_bail:                                                     
                                                                      
  free( mt_entry );                                                   
 20036bc:	7f ff fe 15 	call  2002f10 <free>                           
 20036c0:	90 10 00 1d 	mov  %i5, %o0                                  
  if ( has_target ) {                                                 
    if ( rtems_filesystem_evaluate_path(                              
           target, target_length, RTEMS_LIBIO_PERMS_RWX, &loc, true ) == -1 )
      goto cleanup_and_bail;                                          
                                                                      
    loc_to_free = &loc;                                               
 20036c4:	b6 07 bf ec 	add  %fp, -20, %i3                             
  free( mt_entry );                                                   
                                                                      
  if ( loc_to_free )                                                  
    rtems_filesystem_freenode( loc_to_free );                         
                                                                      
  return -1;                                                          
 20036c8:	b0 10 3f ff 	mov  -1, %i0                                   
cleanup_and_bail:                                                     
                                                                      
  free( mt_entry );                                                   
                                                                      
  if ( loc_to_free )                                                  
    rtems_filesystem_freenode( loc_to_free );                         
 20036cc:	7f ff fe 0a 	call  2002ef4 <rtems_filesystem_freenode>      
 20036d0:	90 10 00 1b 	mov  %i3, %o0                                  
                                                                      
  return -1;                                                          
}                                                                     
 20036d4:	81 c7 e0 08 	ret                                            
 20036d8:	81 e8 00 00 	restore                                        
     *  mt_point_node.node_access will be left to null to indicate that this
     *  is the root of the entire file system.                        
     */                                                               
  }                                                                   
                                                                      
  if ( (*mount_h)( mt_entry, data ) ) {                               
 20036dc:	90 10 00 1d 	mov  %i5, %o0                                  
 20036e0:	9f c4 40 00 	call  %l1                                      
 20036e4:	92 10 00 1c 	mov  %i4, %o1                                  
 20036e8:	80 a2 20 00 	cmp  %o0, 0                                    
 20036ec:	22 80 00 21 	be,a   2003770 <mount+0x234>                   
 20036f0:	39 00 80 76 	sethi  %hi(0x201d800), %i4                     
    /*                                                                
     * Try to undo the mount operation                                
     */                                                               
    loc.ops->unmount_h( mt_entry );                                   
 20036f4:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
 20036f8:	90 10 00 1d 	mov  %i5, %o0                                  
 20036fc:	c2 00 60 28 	ld  [ %g1 + 0x28 ], %g1                        
 2003700:	9f c0 40 00 	call  %g1                                      
 2003704:	b0 10 3f ff 	mov  -1, %i0                                   
                                                                      
  return 0;                                                           
                                                                      
cleanup_and_bail:                                                     
                                                                      
  free( mt_entry );                                                   
 2003708:	7f ff fe 02 	call  2002f10 <free>                           
 200370c:	90 10 00 1d 	mov  %i5, %o0                                  
                                                                      
  if ( loc_to_free )                                                  
 2003710:	80 a6 e0 00 	cmp  %i3, 0                                    
 2003714:	02 bf ff d5 	be  2003668 <mount+0x12c>                      <== NEVER TAKEN
 2003718:	90 10 00 1b 	mov  %i3, %o0                                  
    rtems_filesystem_freenode( loc_to_free );                         
 200371c:	7f ff fd f6 	call  2002ef4 <rtems_filesystem_freenode>      
 2003720:	b0 10 3f ff 	mov  -1, %i0                                   
                                                                      
  return -1;                                                          
}                                                                     
 2003724:	81 c7 e0 08 	ret                                            
 2003728:	81 e8 00 00 	restore                                        
    target,                                                           
    filesystemtype,                                                   
    &target_length                                                    
  );                                                                  
  if ( !mt_entry )                                                    
    rtems_set_errno_and_return_minus_one( ENOMEM );                   
 200372c:	40 00 30 9d 	call  200f9a0 <__errno>                        <== NOT EXECUTED
 2003730:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
 2003734:	82 10 20 0c 	mov  0xc, %g1                                  <== NOT EXECUTED
 2003738:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
 200373c:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 2003740:	81 e8 00 00 	restore                                        <== NOT EXECUTED
  const char *target_or_null,                                         
  const char *filesystemtype,                                         
  size_t *target_length_ptr                                           
)                                                                     
{                                                                     
  const char *target = target_or_null != NULL ? target_or_null : "/"; 
 2003744:	2f 00 80 6c 	sethi  %hi(0x201b000), %l7                     
 2003748:	a8 10 20 02 	mov  2, %l4                                    
 200374c:	ac 10 20 01 	mov  1, %l6                                    
 2003750:	10 bf ff 8c 	b  2003580 <mount+0x44>                        
 2003754:	ae 15 e3 20 	or  %l7, 0x320, %l7                            
  /*                                                                  
   *  Get mount handler                                               
   */                                                                 
  mount_h = rtems_filesystem_get_mount_handler( filesystemtype );     
  if ( !mount_h )                                                     
    rtems_set_errno_and_return_minus_one( EINVAL );                   
 2003758:	40 00 30 92 	call  200f9a0 <__errno>                        
 200375c:	b0 10 3f ff 	mov  -1, %i0                                   
 2003760:	82 10 20 16 	mov  0x16, %g1                                 
 2003764:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2003768:	81 c7 e0 08 	ret                                            
 200376c:	81 e8 00 00 	restore                                        
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 );
 2003770:	d0 07 20 0c 	ld  [ %i4 + 0xc ], %o0                         
 2003774:	94 10 20 00 	clr  %o2                                       
 2003778:	40 00 0c 72 	call  2006940 <rtems_semaphore_obtain>         
 200377c:	92 10 20 00 	clr  %o1                                       
 2003780:	92 10 00 1d 	mov  %i5, %o1                                  
 2003784:	11 00 80 73 	sethi  %hi(0x201cc00), %o0                     
 2003788:	40 00 0f 1d 	call  20073fc <_Chain_Append>                  
 200378c:	90 12 22 54 	or  %o0, 0x254, %o0	! 201ce54 <mount_chain>    
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
 2003790:	d0 07 20 0c 	ld  [ %i4 + 0xc ], %o0                         
 2003794:	40 00 0c b5 	call  2006a68 <rtems_semaphore_release>        
 2003798:	b0 10 20 00 	clr  %i0                                       
   */                                                                 
  rtems_libio_lock();                                                 
  rtems_chain_append( &mount_chain, &mt_entry->Node );                
  rtems_libio_unlock();                                               
                                                                      
  if ( !has_target )                                                  
 200379c:	80 a4 20 00 	cmp  %l0, 0                                    
 20037a0:	12 bf ff b2 	bne  2003668 <mount+0x12c>                     
 20037a4:	03 00 80 73 	sethi  %hi(0x201cc00), %g1                     
    rtems_filesystem_root = mt_entry->mt_fs_root;                     
 20037a8:	f6 07 60 1c 	ld  [ %i5 + 0x1c ], %i3                        
 20037ac:	f8 07 60 20 	ld  [ %i5 + 0x20 ], %i4                        
 20037b0:	c8 07 60 24 	ld  [ %i5 + 0x24 ], %g4                        
 20037b4:	c6 07 60 28 	ld  [ %i5 + 0x28 ], %g3                        
 20037b8:	c4 07 60 2c 	ld  [ %i5 + 0x2c ], %g2                        
 20037bc:	c2 00 62 74 	ld  [ %g1 + 0x274 ], %g1                       
 20037c0:	f6 20 60 18 	st  %i3, [ %g1 + 0x18 ]                        
 20037c4:	f8 20 60 1c 	st  %i4, [ %g1 + 0x1c ]                        
 20037c8:	c8 20 60 20 	st  %g4, [ %g1 + 0x20 ]                        
 20037cc:	c6 20 60 24 	st  %g3, [ %g1 + 0x24 ]                        
 20037d0:	c4 20 60 28 	st  %g2, [ %g1 + 0x28 ]                        
 20037d4:	81 c7 e0 08 	ret                                            
 20037d8:	81 e8 00 00 	restore                                        
                                                                      
    /*                                                                
     *  You can only mount one file system onto a single mount point. 
     */                                                               
                                                                      
    if ( rtems_filesystem_mount_iterate( is_node_fs_root, loc.node_access ) ) {
 20037dc:	11 00 80 0d 	sethi  %hi(0x2003400), %o0                     
 20037e0:	7f ff ff 3a 	call  20034c8 <rtems_filesystem_mount_iterate> 
 20037e4:	90 12 20 b4 	or  %o0, 0xb4, %o0	! 20034b4 <is_node_fs_root> 
 20037e8:	80 8a 20 ff 	btst  0xff, %o0                                
 20037ec:	02 80 00 07 	be  2003808 <mount+0x2cc>                      
 20037f0:	c4 07 bf f8 	ld  [ %fp + -8 ], %g2                          
      errno = EBUSY;                                                  
 20037f4:	40 00 30 6b 	call  200f9a0 <__errno>                        
 20037f8:	01 00 00 00 	nop                                            
 20037fc:	82 10 20 10 	mov  0x10, %g1	! 10 <PROM_START+0x10>          
      goto cleanup_and_bail;                                          
 2003800:	10 bf ff af 	b  20036bc <mount+0x180>                       
 2003804:	c2 22 00 00 	st  %g1, [ %o0 ]                               
     *  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.                                            
     */                                                               
                                                                      
    mt_entry->mt_point_node.node_access = loc.node_access;            
 2003808:	c6 07 bf ec 	ld  [ %fp + -20 ], %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( mt_entry ) ) {                             
 200380c:	c2 00 a0 20 	ld  [ %g2 + 0x20 ], %g1                        
     *  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.                                            
     */                                                               
                                                                      
    mt_entry->mt_point_node.node_access = loc.node_access;            
 2003810:	c6 27 60 08 	st  %g3, [ %i5 + 8 ]                           
    mt_entry->mt_point_node.handlers = loc.handlers;                  
    mt_entry->mt_point_node.ops = loc.ops;                            
 2003814:	c4 27 60 14 	st  %g2, [ %i5 + 0x14 ]                        
     *  until the system is unmounted.  It may be needed to correctly 
     *  traverse the tree.                                            
     */                                                               
                                                                      
    mt_entry->mt_point_node.node_access = loc.node_access;            
    mt_entry->mt_point_node.handlers = loc.handlers;                  
 2003818:	c6 07 bf f4 	ld  [ %fp + -12 ], %g3                         
    mt_entry->mt_point_node.ops = loc.ops;                            
    mt_entry->mt_point_node.mt_entry = loc.mt_entry;                  
 200381c:	c4 07 bf fc 	ld  [ %fp + -4 ], %g2                          
     *  until the system is unmounted.  It may be needed to correctly 
     *  traverse the tree.                                            
     */                                                               
                                                                      
    mt_entry->mt_point_node.node_access = loc.node_access;            
    mt_entry->mt_point_node.handlers = loc.handlers;                  
 2003820:	c6 27 60 10 	st  %g3, [ %i5 + 0x10 ]                        
    mt_entry->mt_point_node.ops = loc.ops;                            
    mt_entry->mt_point_node.mt_entry = loc.mt_entry;                  
 2003824:	c4 27 60 18 	st  %g2, [ %i5 + 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( mt_entry ) ) {                             
 2003828:	90 10 00 1d 	mov  %i5, %o0                                  
 200382c:	9f c0 40 00 	call  %g1                                      
 2003830:	b6 07 bf ec 	add  %fp, -20, %i3                             
 2003834:	80 a2 20 00 	cmp  %o0, 0                                    
 2003838:	02 bf ff aa 	be  20036e0 <mount+0x1a4>                      <== ALWAYS TAKEN
 200383c:	90 10 00 1d 	mov  %i5, %o0                                  
 2003840:	30 bf ff 9f 	b,a   20036bc <mount+0x180>                    <== NOT EXECUTED
                                                                      

02003660 <mount_and_make_target_path>: const char *target, const char *filesystemtype, rtems_filesystem_options_t options, const void *data ) {
 2003660:	9d e3 bf a0 	save  %sp, -96, %sp                            
  int rv = -1;                                                        
                                                                      
  if (target != NULL) {                                               
 2003664:	90 96 60 00 	orcc  %i1, 0, %o0                              
 2003668:	02 80 00 0b 	be  2003694 <mount_and_make_target_path+0x34>  
 200366c:	01 00 00 00 	nop                                            
    rv = rtems_mkdir(target, S_IRWXU | S_IRWXG | S_IRWXO);            
 2003670:	40 00 02 5f 	call  2003fec <rtems_mkdir>                    
 2003674:	92 10 21 ff 	mov  0x1ff, %o1	! 1ff <PROM_START+0x1ff>       
    if (rv == 0) {                                                    
 2003678:	82 92 20 00 	orcc  %o0, 0, %g1                              
 200367c:	02 80 00 04 	be  200368c <mount_and_make_target_path+0x2c>  <== ALWAYS TAKEN
 2003680:	01 00 00 00 	nop                                            
  } else {                                                            
    errno = EINVAL;                                                   
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
 2003684:	81 c7 e0 08 	ret                                            
 2003688:	91 e8 00 01 	restore  %g0, %g1, %o0                         
  int rv = -1;                                                        
                                                                      
  if (target != NULL) {                                               
    rv = rtems_mkdir(target, S_IRWXU | S_IRWXG | S_IRWXO);            
    if (rv == 0) {                                                    
      rv = mount(                                                     
 200368c:	40 00 00 2a 	call  2003734 <mount>                          
 2003690:	81 e8 00 00 	restore                                        
        options,                                                      
        data                                                          
      );                                                              
    }                                                                 
  } else {                                                            
    errno = EINVAL;                                                   
 2003694:	40 00 30 64 	call  200f824 <__errno>                        
 2003698:	01 00 00 00 	nop                                            
 200369c:	84 10 20 16 	mov  0x16, %g2	! 16 <PROM_START+0x16>          
  const char *filesystemtype,                                         
  rtems_filesystem_options_t options,                                 
  const void *data                                                    
)                                                                     
{                                                                     
  int rv = -1;                                                        
 20036a0:	82 10 3f ff 	mov  -1, %g1                                   
        options,                                                      
        data                                                          
      );                                                              
    }                                                                 
  } else {                                                            
    errno = EINVAL;                                                   
 20036a4:	10 bf ff f8 	b  2003684 <mount_and_make_target_path+0x24>   
 20036a8:	c4 22 00 00 	st  %g2, [ %o0 ]                               
                                                                      

0200b424 <mq_open>: int oflag, ... /* mode_t mode, */ /* struct mq_attr attr */ ) {
 200b424:	9d e3 bf 90 	save  %sp, -112, %sp                           
   *                                                                  
   * This rountine increments the thread dispatch level               
   */                                                                 
  RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
  {                                                                   
    _Thread_Dispatch_disable_level++;                                 
 200b428:	03 00 80 9e 	sethi  %hi(0x2027800), %g1                     
 200b42c:	c4 00 61 50 	ld  [ %g1 + 0x150 ], %g2	! 2027950 <_Thread_Dispatch_disable_level>
  Objects_Locations               location;                           
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  if ( oflag & O_CREAT ) {                                            
    va_start(arg, oflag);                                             
 200b430:	f4 27 a0 4c 	st  %i2, [ %fp + 0x4c ]                        
 200b434:	84 00 a0 01 	inc  %g2                                       
 200b438:	c4 20 61 50 	st  %g2, [ %g1 + 0x150 ]                       
    return _Thread_Dispatch_disable_level;                            
 200b43c:	c2 00 61 50 	ld  [ %g1 + 0x150 ], %g1                       
 200b440:	f6 27 a0 50 	st  %i3, [ %fp + 0x50 ]                        
 200b444:	f8 27 a0 54 	st  %i4, [ %fp + 0x54 ]                        
 200b448:	fa 27 a0 58 	st  %i5, [ %fp + 0x58 ]                        
  POSIX_Message_queue_Control_fd *the_mq_fd;                          
  Objects_Locations               location;                           
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  if ( oflag & O_CREAT ) {                                            
 200b44c:	a0 8e 62 00 	andcc  %i1, 0x200, %l0                         
 200b450:	12 80 00 34 	bne  200b520 <mq_open+0xfc>                    
 200b454:	b4 10 20 00 	clr  %i2                                       
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control_fd *                 
  _POSIX_Message_queue_Allocate_fd( void )                            
{                                                                     
  return (POSIX_Message_queue_Control_fd *)                           
 200b458:	39 00 80 9f 	sethi  %hi(0x2027c00), %i4                     
 200b45c:	40 00 0c 41 	call  200e560 <_Objects_Allocate>              
 200b460:	90 17 22 1c 	or  %i4, 0x21c, %o0	! 2027e1c <_POSIX_Message_queue_Information_fds>
    attr = (struct mq_attr *) va_arg( arg, struct mq_attr * );        
    va_end(arg);                                                      
  }                                                                   
                                                                      
  the_mq_fd = _POSIX_Message_queue_Allocate_fd();                     
  if ( !the_mq_fd ) {                                                 
 200b464:	ba 92 20 00 	orcc  %o0, 0, %i5                              
 200b468:	02 80 00 37 	be  200b544 <mq_open+0x120>                    <== NEVER TAKEN
 200b46c:	01 00 00 00 	nop                                            
    _Thread_Enable_dispatch();                                        
    rtems_set_errno_and_return_minus_one( ENFILE );                   
  }                                                                   
  the_mq_fd->oflag = oflag;                                           
 200b470:	f2 27 60 14 	st  %i1, [ %i5 + 0x14 ]                        
                                                                      
  status = _POSIX_Message_queue_Name_to_id( name, &the_mq_id );       
 200b474:	90 10 00 18 	mov  %i0, %o0                                  
 200b478:	40 00 1e b8 	call  2012f58 <_POSIX_Message_queue_Name_to_id>
 200b47c:	92 07 bf f4 	add  %fp, -12, %o1                             
   *  If the name to id translation worked, then the message queue exists
   *  and we can just return a pointer to the id.  Otherwise we may   
   *  need to check to see if this is a "message queue does not exist"
   *  or some other miscellaneous error on the name.                  
   */                                                                 
  if ( status ) {                                                     
 200b480:	b6 92 20 00 	orcc  %o0, 0, %i3                              
 200b484:	22 80 00 0f 	be,a   200b4c0 <mq_open+0x9c>                  
 200b488:	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) ) ) {               
 200b48c:	80 a6 e0 02 	cmp  %i3, 2                                    
 200b490:	02 80 00 40 	be  200b590 <mq_open+0x16c>                    
 200b494:	80 a4 20 00 	cmp  %l0, 0                                    
                                                                      
RTEMS_INLINE_ROUTINE void _POSIX_Message_queue_Free_fd (              
  POSIX_Message_queue_Control_fd *the_mq_fd                           
)                                                                     
{                                                                     
  _Objects_Free( &_POSIX_Message_queue_Information_fds, &the_mq_fd->Object );
 200b498:	90 17 22 1c 	or  %i4, 0x21c, %o0                            
 200b49c:	40 00 0d 1b 	call  200e908 <_Objects_Free>                  
 200b4a0:	92 10 00 1d 	mov  %i5, %o1                                  
      _POSIX_Message_queue_Free_fd( the_mq_fd );                      
      _Thread_Enable_dispatch();                                      
 200b4a4:	40 00 11 64 	call  200fa34 <_Thread_Enable_dispatch>        
 200b4a8:	b0 10 3f ff 	mov  -1, %i0                                   
      rtems_set_errno_and_return_minus_one_cast( status, mqd_t );     
 200b4ac:	40 00 2d 5d 	call  2016a20 <__errno>                        
 200b4b0:	01 00 00 00 	nop                                            
 200b4b4:	f6 22 00 00 	st  %i3, [ %o0 ]                               
 200b4b8:	81 c7 e0 08 	ret                                            
 200b4bc:	81 e8 00 00 	restore                                        
                                                                      
  } else {                /* name -> ID translation succeeded */      
    /*                                                                
     * Check for existence with creation.                             
     */                                                               
    if ( (oflag & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL) ) {       
 200b4c0:	80 a6 6a 00 	cmp  %i1, 0xa00                                
 200b4c4:	02 80 00 28 	be  200b564 <mq_open+0x140>                    
 200b4c8:	d2 07 bf f4 	ld  [ %fp + -12 ], %o1                         
RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control *_POSIX_Message_queue_Get (
  Objects_Id         id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (POSIX_Message_queue_Control *)                              
 200b4cc:	94 07 bf fc 	add  %fp, -4, %o2                              
 200b4d0:	11 00 80 9f 	sethi  %hi(0x2027c00), %o0                     
 200b4d4:	40 00 0d 6e 	call  200ea8c <_Objects_Get>                   
 200b4d8:	90 12 20 90 	or  %o0, 0x90, %o0	! 2027c90 <_POSIX_Message_queue_Information>
    /*                                                                
     * In this case we need to do an ID->pointer conversion to        
     * check the mode.                                                
     */                                                               
    the_mq = _POSIX_Message_queue_Get( the_mq_id, &location );        
    the_mq->open_count += 1;                                          
 200b4dc:	c4 02 20 18 	ld  [ %o0 + 0x18 ], %g2                        
  Objects_Information *information,                                   
  Objects_Control     *the_object,                                    
  const char          *name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
 200b4e0:	c2 17 60 0a 	lduh  [ %i5 + 0xa ], %g1                       
 200b4e4:	84 00 a0 01 	inc  %g2                                       
  );                                                                  
                                                                      
  _Thread_Enable_dispatch();                                          
                                                                      
  return (mqd_t) the_mq_fd->Object.id;                                
}                                                                     
 200b4e8:	b8 17 22 1c 	or  %i4, 0x21c, %i4                            
    /*                                                                
     * In this case we need to do an ID->pointer conversion to        
     * check the mode.                                                
     */                                                               
    the_mq = _POSIX_Message_queue_Get( the_mq_id, &location );        
    the_mq->open_count += 1;                                          
 200b4ec:	c4 22 20 18 	st  %g2, [ %o0 + 0x18 ]                        
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 200b4f0:	c4 07 20 1c 	ld  [ %i4 + 0x1c ], %g2                        
                                                                      
    /*                                                                
     * In this case we need to do an ID->pointer conversion to        
     * check the mode.                                                
     */                                                               
    the_mq = _POSIX_Message_queue_Get( the_mq_id, &location );        
 200b4f4:	d0 27 bf f8 	st  %o0, [ %fp + -8 ]                          
    the_mq->open_count += 1;                                          
    the_mq_fd->Queue = the_mq;                                        
 200b4f8:	d0 27 60 10 	st  %o0, [ %i5 + 0x10 ]                        
 200b4fc:	83 28 60 02 	sll  %g1, 2, %g1                               
 200b500:	fa 20 80 01 	st  %i5, [ %g2 + %g1 ]                         
    _Objects_Open_string(                                             
      &_POSIX_Message_queue_Information_fds,                          
      &the_mq_fd->Object,                                             
      NULL                                                            
    );                                                                
    _Thread_Enable_dispatch();                                        
 200b504:	40 00 11 4c 	call  200fa34 <_Thread_Enable_dispatch>        
 200b508:	c0 27 60 0c 	clr  [ %i5 + 0xc ]                             
    _Thread_Enable_dispatch();                                        
 200b50c:	40 00 11 4a 	call  200fa34 <_Thread_Enable_dispatch>        
 200b510:	01 00 00 00 	nop                                            
    return (mqd_t)the_mq_fd->Object.id;                               
 200b514:	f0 07 60 08 	ld  [ %i5 + 8 ], %i0                           
 200b518:	81 c7 e0 08 	ret                                            
 200b51c:	81 e8 00 00 	restore                                        
  _Thread_Disable_dispatch();                                         
                                                                      
  if ( oflag & O_CREAT ) {                                            
    va_start(arg, oflag);                                             
    mode = (mode_t) va_arg( arg, unsigned int );                      
    attr = (struct mq_attr *) va_arg( arg, struct mq_attr * );        
 200b520:	82 07 a0 54 	add  %fp, 0x54, %g1                            
 200b524:	f4 07 a0 50 	ld  [ %fp + 0x50 ], %i2                        
 200b528:	c2 27 bf f0 	st  %g1, [ %fp + -16 ]                         
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control_fd *                 
  _POSIX_Message_queue_Allocate_fd( void )                            
{                                                                     
  return (POSIX_Message_queue_Control_fd *)                           
 200b52c:	39 00 80 9f 	sethi  %hi(0x2027c00), %i4                     
 200b530:	40 00 0c 0c 	call  200e560 <_Objects_Allocate>              
 200b534:	90 17 22 1c 	or  %i4, 0x21c, %o0	! 2027e1c <_POSIX_Message_queue_Information_fds>
    va_end(arg);                                                      
  }                                                                   
                                                                      
  the_mq_fd = _POSIX_Message_queue_Allocate_fd();                     
  if ( !the_mq_fd ) {                                                 
 200b538:	ba 92 20 00 	orcc  %o0, 0, %i5                              
 200b53c:	32 bf ff ce 	bne,a   200b474 <mq_open+0x50>                 
 200b540:	f2 27 60 14 	st  %i1, [ %i5 + 0x14 ]                        
    _Thread_Enable_dispatch();                                        
 200b544:	40 00 11 3c 	call  200fa34 <_Thread_Enable_dispatch>        
 200b548:	b0 10 3f ff 	mov  -1, %i0                                   
    rtems_set_errno_and_return_minus_one( ENFILE );                   
 200b54c:	40 00 2d 35 	call  2016a20 <__errno>                        
 200b550:	01 00 00 00 	nop                                            
 200b554:	82 10 20 17 	mov  0x17, %g1	! 17 <PROM_START+0x17>          
 200b558:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200b55c:	81 c7 e0 08 	ret                                            
 200b560:	81 e8 00 00 	restore                                        
                                                                      
RTEMS_INLINE_ROUTINE void _POSIX_Message_queue_Free_fd (              
  POSIX_Message_queue_Control_fd *the_mq_fd                           
)                                                                     
{                                                                     
  _Objects_Free( &_POSIX_Message_queue_Information_fds, &the_mq_fd->Object );
 200b564:	90 17 22 1c 	or  %i4, 0x21c, %o0                            
 200b568:	40 00 0c e8 	call  200e908 <_Objects_Free>                  
 200b56c:	92 10 00 1d 	mov  %i5, %o1                                  
    /*                                                                
     * Check for existence with creation.                             
     */                                                               
    if ( (oflag & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL) ) {       
      _POSIX_Message_queue_Free_fd( the_mq_fd );                      
      _Thread_Enable_dispatch();                                      
 200b570:	40 00 11 31 	call  200fa34 <_Thread_Enable_dispatch>        
 200b574:	b0 10 3f ff 	mov  -1, %i0                                   
      rtems_set_errno_and_return_minus_one_cast( EEXIST, mqd_t );     
 200b578:	40 00 2d 2a 	call  2016a20 <__errno>                        
 200b57c:	01 00 00 00 	nop                                            
 200b580:	82 10 20 11 	mov  0x11, %g1	! 11 <PROM_START+0x11>          
 200b584:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200b588:	81 c7 e0 08 	ret                                            
 200b58c:	81 e8 00 00 	restore                                        
  if ( status ) {                                                     
    /*                                                                
     * Unless provided a valid name that did not already exist        
     * and we are willing to create then it is an error.              
     */                                                               
    if ( !( status == ENOENT && (oflag & O_CREAT) ) ) {               
 200b590:	02 bf ff c3 	be  200b49c <mq_open+0x78>                     
 200b594:	90 17 22 1c 	or  %i4, 0x21c, %o0                            
                                                                      
  /*                                                                  
   *  At this point, the message queue does not exist and everything has been
   *  checked. We should go ahead and create a message queue.         
   */                                                                 
  status = _POSIX_Message_queue_Create_support(                       
 200b598:	90 10 00 18 	mov  %i0, %o0                                  
 200b59c:	92 10 20 01 	mov  1, %o1                                    
 200b5a0:	94 10 00 1a 	mov  %i2, %o2                                  
 200b5a4:	40 00 1e 08 	call  2012dc4 <_POSIX_Message_queue_Create_support>
 200b5a8:	96 07 bf f8 	add  %fp, -8, %o3                              
  );                                                                  
                                                                      
  /*                                                                  
   * errno was set by Create_support, so don't set it again.          
   */                                                                 
  if ( status == -1 ) {                                               
 200b5ac:	80 a2 3f ff 	cmp  %o0, -1                                   
 200b5b0:	02 80 00 0d 	be  200b5e4 <mq_open+0x1c0>                    
 200b5b4:	c6 07 bf f8 	ld  [ %fp + -8 ], %g3                          
  Objects_Information *information,                                   
  Objects_Control     *the_object,                                    
  const char          *name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
 200b5b8:	c2 17 60 0a 	lduh  [ %i5 + 0xa ], %g1                       
  );                                                                  
                                                                      
  _Thread_Enable_dispatch();                                          
                                                                      
  return (mqd_t) the_mq_fd->Object.id;                                
}                                                                     
 200b5bc:	b8 17 22 1c 	or  %i4, 0x21c, %i4                            
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 200b5c0:	c4 07 20 1c 	ld  [ %i4 + 0x1c ], %g2                        
    _POSIX_Message_queue_Free_fd( the_mq_fd );                        
    _Thread_Enable_dispatch();                                        
    return (mqd_t) -1;                                                
  }                                                                   
                                                                      
  the_mq_fd->Queue = the_mq;                                          
 200b5c4:	c6 27 60 10 	st  %g3, [ %i5 + 0x10 ]                        
 200b5c8:	83 28 60 02 	sll  %g1, 2, %g1                               
 200b5cc:	fa 20 80 01 	st  %i5, [ %g2 + %g1 ]                         
    &_POSIX_Message_queue_Information_fds,                            
    &the_mq_fd->Object,                                               
    NULL                                                              
  );                                                                  
                                                                      
  _Thread_Enable_dispatch();                                          
 200b5d0:	40 00 11 19 	call  200fa34 <_Thread_Enable_dispatch>        
 200b5d4:	c0 27 60 0c 	clr  [ %i5 + 0xc ]                             
                                                                      
  return (mqd_t) the_mq_fd->Object.id;                                
 200b5d8:	f0 07 60 08 	ld  [ %i5 + 8 ], %i0                           
}                                                                     
 200b5dc:	81 c7 e0 08 	ret                                            
 200b5e0:	81 e8 00 00 	restore                                        
 200b5e4:	90 17 22 1c 	or  %i4, 0x21c, %o0                            
 200b5e8:	92 10 00 1d 	mov  %i5, %o1                                  
 200b5ec:	40 00 0c c7 	call  200e908 <_Objects_Free>                  
 200b5f0:	b0 10 3f ff 	mov  -1, %i0                                   
  /*                                                                  
   * errno was set by Create_support, so don't set it again.          
   */                                                                 
  if ( status == -1 ) {                                               
    _POSIX_Message_queue_Free_fd( the_mq_fd );                        
    _Thread_Enable_dispatch();                                        
 200b5f4:	40 00 11 10 	call  200fa34 <_Thread_Enable_dispatch>        
 200b5f8:	01 00 00 00 	nop                                            
    return (mqd_t) -1;                                                
 200b5fc:	81 c7 e0 08 	ret                                            
 200b600:	81 e8 00 00 	restore                                        
                                                                      

02003ae4 <newlib_delete_hook>: void newlib_delete_hook( rtems_tcb *current_task, rtems_tcb *deleted_task ) {
 2003ae4:	9d e3 bf a0 	save  %sp, -96, %sp                            
  /*                                                                  
   * The reentrancy structure was allocated by newlib using malloc()  
   */                                                                 
                                                                      
  if (current_task == deleted_task) {                                 
    ptr = _REENT;                                                     
 2003ae8:	03 00 80 74 	sethi  %hi(0x201d000), %g1                     
                                                                      
  /*                                                                  
   * The reentrancy structure was allocated by newlib using malloc()  
   */                                                                 
                                                                      
  if (current_task == deleted_task) {                                 
 2003aec:	80 a6 00 19 	cmp  %i0, %i1                                  
 2003af0:	02 80 00 03 	be  2003afc <newlib_delete_hook+0x18>          
 2003af4:	fa 00 60 38 	ld  [ %g1 + 0x38 ], %i5                        
    ptr = _REENT;                                                     
  } else {                                                            
    ptr = deleted_task->libc_reent;                                   
 2003af8:	fa 06 61 54 	ld  [ %i1 + 0x154 ], %i5                       
  }                                                                   
                                                                      
  if (ptr && ptr != _global_impure_ptr) {                             
 2003afc:	80 a7 60 00 	cmp  %i5, 0                                    
 2003b00:	02 80 00 0b 	be  2003b2c <newlib_delete_hook+0x48>          <== NEVER TAKEN
 2003b04:	03 00 80 70 	sethi  %hi(0x201c000), %g1                     
 2003b08:	c2 00 61 f0 	ld  [ %g1 + 0x1f0 ], %g1	! 201c1f0 <_global_impure_ptr>
 2003b0c:	80 a7 40 01 	cmp  %i5, %g1                                  
 2003b10:	02 80 00 07 	be  2003b2c <newlib_delete_hook+0x48>          
 2003b14:	13 00 80 0e 	sethi  %hi(0x2003800), %o1                     
    _reclaim_reent(ptr);                                              
*/                                                                    
    /*                                                                
     *  Just in case there are some buffers lying around.             
     */                                                               
    _fwalk(ptr, newlib_free_buffers);                                 
 2003b18:	90 10 00 1d 	mov  %i5, %o0                                  
 2003b1c:	40 00 31 b8 	call  20101fc <_fwalk>                         
 2003b20:	92 12 60 d4 	or  %o1, 0xd4, %o1                             
#if REENT_MALLOCED                                                    
    free(ptr);                                                        
#else                                                                 
    _Workspace_Free(ptr);                                             
 2003b24:	40 00 1a c7 	call  200a640 <_Workspace_Free>                
 2003b28:	90 10 00 1d 	mov  %i5, %o0                                  
                                                                      
  /*                                                                  
   * Require the switch back to another task to install its own       
   */                                                                 
                                                                      
  if ( current_task == deleted_task ) {                               
 2003b2c:	80 a6 00 19 	cmp  %i0, %i1                                  
 2003b30:	12 80 00 04 	bne  2003b40 <newlib_delete_hook+0x5c>         
 2003b34:	c0 26 61 54 	clr  [ %i1 + 0x154 ]                           
    _REENT = 0;                                                       
 2003b38:	03 00 80 74 	sethi  %hi(0x201d000), %g1                     
 2003b3c:	c0 20 60 38 	clr  [ %g1 + 0x38 ]	! 201d038 <_impure_ptr>    
 2003b40:	81 c7 e0 08 	ret                                            
 2003b44:	81 e8 00 00 	restore                                        
                                                                      

020038d4 <newlib_free_buffers>: */ int newlib_free_buffers( FILE *fp ) {
 20038d4:	9d e3 bf a0 	save  %sp, -96, %sp                            
  switch ( fileno(fp) ) {                                             
 20038d8:	40 00 31 51 	call  200fe1c <fileno>                         
 20038dc:	90 10 00 18 	mov  %i0, %o0                                  
 20038e0:	80 a2 20 02 	cmp  %o0, 2                                    
 20038e4:	28 80 00 06 	bleu,a   20038fc <newlib_free_buffers+0x28>    <== ALWAYS TAKEN
 20038e8:	c2 16 20 0c 	lduh  [ %i0 + 0xc ], %g1                       
        fp->_flags &= ~__SMBF;                                        
        fp->_bf._base = fp->_p = (unsigned char *) NULL;              
      }                                                               
      break;                                                          
    default:                                                          
     fclose(fp);                                                      
 20038ec:	40 00 30 7f 	call  200fae8 <fclose>                         <== NOT EXECUTED
 20038f0:	90 10 00 18 	mov  %i0, %o0                                  <== NOT EXECUTED
  }                                                                   
  return 0;                                                           
}                                                                     
 20038f4:	81 c7 e0 08 	ret                                            
 20038f8:	91 e8 20 00 	restore  %g0, 0, %o0                           
{                                                                     
  switch ( fileno(fp) ) {                                             
    case 0:                                                           
    case 1:                                                           
    case 2:                                                           
      if (fp->_flags & __SMBF) {                                      
 20038fc:	80 88 60 80 	btst  0x80, %g1                                
 2003900:	02 bf ff fd 	be  20038f4 <newlib_free_buffers+0x20>         <== ALWAYS TAKEN
 2003904:	01 00 00 00 	nop                                            
        free( fp->_bf._base );                                        
 2003908:	7f ff fd 82 	call  2002f10 <free>                           <== NOT EXECUTED
 200390c:	d0 06 20 10 	ld  [ %i0 + 0x10 ], %o0                        <== NOT EXECUTED
        fp->_flags &= ~__SMBF;                                        
 2003910:	c2 16 20 0c 	lduh  [ %i0 + 0xc ], %g1                       <== NOT EXECUTED
        fp->_bf._base = fp->_p = (unsigned char *) NULL;              
 2003914:	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;                                        
 2003918:	82 08 7f 7f 	and  %g1, -129, %g1                            <== NOT EXECUTED
        fp->_bf._base = fp->_p = (unsigned char *) NULL;              
 200391c:	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;                                        
 2003920:	c2 36 20 0c 	sth  %g1, [ %i0 + 0xc ]                        <== NOT EXECUTED
      break;                                                          
    default:                                                          
     fclose(fp);                                                      
  }                                                                   
  return 0;                                                           
}                                                                     
 2003924:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 2003928:	91 e8 20 00 	restore  %g0, 0, %o0                           <== NOT EXECUTED
                                                                      

02003bbc <open>: int open( const char *pathname, int flags, ... ) {
 2003bbc:	9d e3 bf 88 	save  %sp, -120, %sp                           
  if ( ( status & _FREAD ) == _FREAD )                                
    eval_flags |= RTEMS_LIBIO_PERMS_READ;                             
  if ( ( status & _FWRITE ) == _FWRITE )                              
    eval_flags |= RTEMS_LIBIO_PERMS_WRITE;                            
                                                                      
  va_start(ap, flags);                                                
 2003bc0:	f6 27 a0 50 	st  %i3, [ %fp + 0x50 ]                        
 2003bc4:	f4 27 a0 4c 	st  %i2, [ %fp + 0x4c ]                        
 2003bc8:	f8 27 a0 54 	st  %i4, [ %fp + 0x54 ]                        
 2003bcc:	fa 27 a0 58 	st  %i5, [ %fp + 0x58 ]                        
                                                                      
  /*                                                                  
   * Set the Evaluation flags                                         
   */                                                                 
  eval_flags = 0;                                                     
  status = flags + 1;                                                 
 2003bd0:	82 06 60 01 	add  %i1, 1, %g1                               
  if ( ( status & _FREAD ) == _FREAD )                                
    eval_flags |= RTEMS_LIBIO_PERMS_READ;                             
 2003bd4:	b6 08 60 01 	and  %g1, 1, %i3                               
  if ( ( status & _FWRITE ) == _FWRITE )                              
 2003bd8:	80 88 60 02 	btst  2, %g1                                   
 2003bdc:	02 80 00 03 	be  2003be8 <open+0x2c>                        
 2003be0:	b7 2e e0 02 	sll  %i3, 2, %i3                               
    eval_flags |= RTEMS_LIBIO_PERMS_WRITE;                            
 2003be4:	b6 16 e0 02 	or  %i3, 2, %i3                                
                                                                      
  va_start(ap, flags);                                                
                                                                      
  mode = va_arg( ap, int );                                           
 2003be8:	82 07 a0 50 	add  %fp, 0x50, %g1                            
 2003bec:	f8 07 a0 4c 	ld  [ %fp + 0x4c ], %i4                        
   *             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();                                       
 2003bf0:	40 00 20 ec 	call  200bfa0 <rtems_libio_allocate>           
 2003bf4:	c2 27 bf fc 	st  %g1, [ %fp + -4 ]                          
  if ( iop == 0 ) {                                                   
 2003bf8:	ba 92 20 00 	orcc  %o0, 0, %i5                              
 2003bfc:	22 80 00 2f 	be,a   2003cb8 <open+0xfc>                     
 2003c00:	b6 10 20 17 	mov  0x17, %i3                                 
  }                                                                   
                                                                      
  /*                                                                  
   *  See if the file exists.                                         
   */                                                                 
  status = rtems_filesystem_evaluate_path(                            
 2003c04:	40 00 34 ff 	call  2011000 <strlen>                         
 2003c08:	90 10 00 18 	mov  %i0, %o0                                  
 2003c0c:	94 10 00 1b 	mov  %i3, %o2                                  
 2003c10:	92 10 00 08 	mov  %o0, %o1                                  
 2003c14:	96 07 bf e8 	add  %fp, -24, %o3                             
 2003c18:	90 10 00 18 	mov  %i0, %o0                                  
 2003c1c:	7f ff fc 7c 	call  2002e0c <rtems_filesystem_evaluate_path> 
 2003c20:	98 10 20 01 	mov  1, %o4                                    
    pathname, strlen( pathname ), eval_flags, &loc, true );           
                                                                      
  if ( status == -1 ) {                                               
 2003c24:	80 a2 3f ff 	cmp  %o0, -1                                   
 2003c28:	02 80 00 40 	be  2003d28 <open+0x16c>                       
 2003c2c:	82 0e 6a 00 	and  %i1, 0xa00, %g1                           
    if ( status != 0 ) {   /* The file did not exist */               
      rc = EACCES;                                                    
      goto done;                                                      
    }                                                                 
                                                                      
  } else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) {        
 2003c30:	80 a0 6a 00 	cmp  %g1, 0xa00                                
 2003c34:	02 80 00 26 	be  2003ccc <open+0x110>                       
 2003c38:	b4 07 bf e8 	add  %fp, -24, %i2                             
                                                                      
  /*                                                                  
   *  Fill in the file control block based on the loc structure       
   *  returned by successful path evaluation.                         
   */                                                                 
  iop->flags     |= rtems_libio_fcntl_flags( flags );                 
 2003c3c:	f6 07 60 18 	ld  [ %i5 + 0x18 ], %i3                        
 2003c40:	40 00 20 b4 	call  200bf10 <rtems_libio_fcntl_flags>        
 2003c44:	90 10 00 19 	mov  %i1, %o0                                  
  iop->pathinfo   = loc;                                              
 2003c48:	c4 07 bf f0 	ld  [ %fp + -16 ], %g2                         
 2003c4c:	c6 07 bf e8 	ld  [ %fp + -24 ], %g3                         
                                                                      
  rc = (*iop->pathinfo.handlers->open_h)( iop, pathname, flags, mode );
 2003c50:	c2 00 80 00 	ld  [ %g2 ], %g1                               
  /*                                                                  
   *  Fill in the file control block based on the loc structure       
   *  returned by successful path evaluation.                         
   */                                                                 
  iop->flags     |= rtems_libio_fcntl_flags( flags );                 
  iop->pathinfo   = loc;                                              
 2003c54:	c4 27 60 24 	st  %g2, [ %i5 + 0x24 ]                        
 2003c58:	c4 07 bf f4 	ld  [ %fp + -12 ], %g2                         
 2003c5c:	c6 27 60 1c 	st  %g3, [ %i5 + 0x1c ]                        
 2003c60:	c4 27 60 28 	st  %g2, [ %i5 + 0x28 ]                        
 2003c64:	c6 07 bf ec 	ld  [ %fp + -20 ], %g3                         
 2003c68:	c4 07 bf f8 	ld  [ %fp + -8 ], %g2                          
                                                                      
  /*                                                                  
   *  Fill in the file control block based on the loc structure       
   *  returned by successful path evaluation.                         
   */                                                                 
  iop->flags     |= rtems_libio_fcntl_flags( flags );                 
 2003c6c:	b6 12 00 1b 	or  %o0, %i3, %i3                              
  iop->pathinfo   = loc;                                              
 2003c70:	c6 27 60 20 	st  %g3, [ %i5 + 0x20 ]                        
                                                                      
  /*                                                                  
   *  Fill in the file control block based on the loc structure       
   *  returned by successful path evaluation.                         
   */                                                                 
  iop->flags     |= rtems_libio_fcntl_flags( flags );                 
 2003c74:	f6 27 60 18 	st  %i3, [ %i5 + 0x18 ]                        
  iop->pathinfo   = loc;                                              
 2003c78:	c4 27 60 2c 	st  %g2, [ %i5 + 0x2c ]                        
                                                                      
  rc = (*iop->pathinfo.handlers->open_h)( iop, pathname, flags, mode );
 2003c7c:	90 10 00 1d 	mov  %i5, %o0                                  
 2003c80:	92 10 00 18 	mov  %i0, %o1                                  
 2003c84:	94 10 00 19 	mov  %i1, %o2                                  
 2003c88:	9f c0 40 00 	call  %g1                                      
 2003c8c:	96 10 00 1c 	mov  %i4, %o3                                  
  if ( rc ) {                                                         
 2003c90:	80 a2 20 00 	cmp  %o0, 0                                    
 2003c94:	12 80 00 1a 	bne  2003cfc <open+0x140>                      
 2003c98:	80 8e 64 00 	btst  0x400, %i1                               
  }                                                                   
                                                                      
  /*                                                                  
   *  Optionally truncate the file.                                   
   */                                                                 
  if ( (flags & O_TRUNC) == O_TRUNC ) {                               
 2003c9c:	12 80 00 2d 	bne  2003d50 <open+0x194>                      
 2003ca0:	39 00 80 76 	sethi  %hi(0x201d800), %i4                     
    if ( loc_to_free )                                                
      rtems_filesystem_freenode( loc_to_free );                       
    rtems_set_errno_and_return_minus_one( rc );                       
  }                                                                   
                                                                      
  return iop - rtems_libio_iops;                                      
 2003ca4:	f0 07 20 04 	ld  [ %i4 + 4 ], %i0	! 201d804 <rtems_libio_iops>
 2003ca8:	ba 27 40 18 	sub  %i5, %i0, %i5                             
 2003cac:	b1 3f 60 06 	sra  %i5, 6, %i0                               
}                                                                     
 2003cb0:	81 c7 e0 08 	ret                                            
 2003cb4:	81 e8 00 00 	restore                                        
  if ( rc ) {                                                         
    if ( iop )                                                        
      rtems_libio_free( iop );                                        
    if ( loc_to_free )                                                
      rtems_filesystem_freenode( loc_to_free );                       
    rtems_set_errno_and_return_minus_one( rc );                       
 2003cb8:	40 00 2f 3a 	call  200f9a0 <__errno>                        
 2003cbc:	b0 10 3f ff 	mov  -1, %i0                                   
 2003cc0:	f6 22 00 00 	st  %i3, [ %o0 ]                               
 2003cc4:	81 c7 e0 08 	ret                                            
 2003cc8:	81 e8 00 00 	restore                                        
      goto done;                                                      
    }                                                                 
                                                                      
  } else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) {        
    /* We were trying to create a file that already exists */         
    rc = EEXIST;                                                      
 2003ccc:	b6 10 20 11 	mov  0x11, %i3                                 
   */                                                                 
done:                                                                 
  va_end(ap);                                                         
                                                                      
  if ( rc ) {                                                         
    if ( iop )                                                        
 2003cd0:	80 a7 60 00 	cmp  %i5, 0                                    
 2003cd4:	02 80 00 05 	be  2003ce8 <open+0x12c>                       
 2003cd8:	80 a6 a0 00 	cmp  %i2, 0                                    
      rtems_libio_free( iop );                                        
 2003cdc:	40 00 20 d9 	call  200c040 <rtems_libio_free>               
 2003ce0:	90 10 00 1d 	mov  %i5, %o0                                  
    if ( loc_to_free )                                                
 2003ce4:	80 a6 a0 00 	cmp  %i2, 0                                    
 2003ce8:	02 bf ff f4 	be  2003cb8 <open+0xfc>                        
 2003cec:	01 00 00 00 	nop                                            
      rtems_filesystem_freenode( loc_to_free );                       
 2003cf0:	7f ff fc 81 	call  2002ef4 <rtems_filesystem_freenode>      
 2003cf4:	90 10 00 1a 	mov  %i2, %o0                                  
 2003cf8:	30 bf ff f0 	b,a   2003cb8 <open+0xfc>                      
  iop->flags     |= rtems_libio_fcntl_flags( flags );                 
  iop->pathinfo   = loc;                                              
                                                                      
  rc = (*iop->pathinfo.handlers->open_h)( iop, pathname, flags, mode );
  if ( rc ) {                                                         
    rc = errno;                                                       
 2003cfc:	40 00 2f 29 	call  200f9a0 <__errno>                        
 2003d00:	b4 07 bf e8 	add  %fp, -24, %i2                             
 2003d04:	f6 02 00 00 	ld  [ %o0 ], %i3                               
 2003d08:	39 00 80 76 	sethi  %hi(0x201d800), %i4                     
   *  Single exit and clean up path.                                  
   */                                                                 
done:                                                                 
  va_end(ap);                                                         
                                                                      
  if ( rc ) {                                                         
 2003d0c:	80 a6 e0 00 	cmp  %i3, 0                                    
 2003d10:	12 bf ff f0 	bne  2003cd0 <open+0x114>                      <== ALWAYS TAKEN
 2003d14:	f0 07 20 04 	ld  [ %i4 + 4 ], %i0                           
    if ( loc_to_free )                                                
      rtems_filesystem_freenode( loc_to_free );                       
    rtems_set_errno_and_return_minus_one( rc );                       
  }                                                                   
                                                                      
  return iop - rtems_libio_iops;                                      
 2003d18:	ba 27 40 18 	sub  %i5, %i0, %i5                             <== NOT EXECUTED
 2003d1c:	b1 3f 60 06 	sra  %i5, 6, %i0                               <== NOT EXECUTED
}                                                                     
 2003d20:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 2003d24:	81 e8 00 00 	restore                                        <== NOT EXECUTED
   */                                                                 
  status = rtems_filesystem_evaluate_path(                            
    pathname, strlen( pathname ), eval_flags, &loc, true );           
                                                                      
  if ( status == -1 ) {                                               
    if ( errno != ENOENT ) {                                          
 2003d28:	40 00 2f 1e 	call  200f9a0 <__errno>                        
 2003d2c:	01 00 00 00 	nop                                            
 2003d30:	c2 02 00 00 	ld  [ %o0 ], %g1                               
 2003d34:	80 a0 60 02 	cmp  %g1, 2                                    
 2003d38:	02 80 00 1d 	be  2003dac <open+0x1f0>                       
 2003d3c:	b4 10 20 00 	clr  %i2                                       
      rc = errno;                                                     
 2003d40:	40 00 2f 18 	call  200f9a0 <__errno>                        
 2003d44:	01 00 00 00 	nop                                            
      goto done;                                                      
 2003d48:	10 bf ff f0 	b  2003d08 <open+0x14c>                        
 2003d4c:	f6 02 00 00 	ld  [ %o0 ], %i3                               
                                                                      
  /*                                                                  
   *  Optionally truncate the file.                                   
   */                                                                 
  if ( (flags & O_TRUNC) == O_TRUNC ) {                               
    rc = ftruncate( iop - rtems_libio_iops, 0 );                      
 2003d50:	d0 07 20 04 	ld  [ %i4 + 4 ], %o0                           
 2003d54:	92 10 20 00 	clr  %o1                                       
 2003d58:	94 10 20 00 	clr  %o2                                       
 2003d5c:	90 27 40 08 	sub  %i5, %o0, %o0                             
 2003d60:	40 00 20 2c 	call  200be10 <ftruncate>                      
 2003d64:	91 3a 20 06 	sra  %o0, 6, %o0                               
    if ( rc ) {                                                       
 2003d68:	b6 92 20 00 	orcc  %o0, 0, %i3                              
 2003d6c:	02 bf ff cf 	be  2003ca8 <open+0xec>                        
 2003d70:	f0 07 20 04 	ld  [ %i4 + 4 ], %i0                           
      if(errno) rc = errno;                                           
 2003d74:	40 00 2f 0b 	call  200f9a0 <__errno>                        
 2003d78:	01 00 00 00 	nop                                            
 2003d7c:	c2 02 00 00 	ld  [ %o0 ], %g1                               
 2003d80:	80 a0 60 00 	cmp  %g1, 0                                    
 2003d84:	12 80 00 1a 	bne  2003dec <open+0x230>                      <== ALWAYS TAKEN
 2003d88:	01 00 00 00 	nop                                            
      close( iop - rtems_libio_iops );                                
 2003d8c:	d0 07 20 04 	ld  [ %i4 + 4 ], %o0                           
      /* those are released by close(): */                            
      iop = 0;                                                        
      loc_to_free = NULL;                                             
 2003d90:	b4 10 20 00 	clr  %i2                                       
   */                                                                 
  if ( (flags & O_TRUNC) == O_TRUNC ) {                               
    rc = ftruncate( iop - rtems_libio_iops, 0 );                      
    if ( rc ) {                                                       
      if(errno) rc = errno;                                           
      close( iop - rtems_libio_iops );                                
 2003d94:	90 27 40 08 	sub  %i5, %o0, %o0                             
      /* those are released by close(): */                            
      iop = 0;                                                        
 2003d98:	ba 10 20 00 	clr  %i5                                       
   */                                                                 
  if ( (flags & O_TRUNC) == O_TRUNC ) {                               
    rc = ftruncate( iop - rtems_libio_iops, 0 );                      
    if ( rc ) {                                                       
      if(errno) rc = errno;                                           
      close( iop - rtems_libio_iops );                                
 2003d9c:	40 00 1f fb 	call  200bd88 <close>                          
 2003da0:	91 3a 20 06 	sra  %o0, 6, %o0                               
 2003da4:	10 bf ff da 	b  2003d0c <open+0x150>                        
 2003da8:	39 00 80 76 	sethi  %hi(0x201d800), %i4                     
      rc = errno;                                                     
      goto done;                                                      
    }                                                                 
                                                                      
    /* If the file does not exist and we are not trying to create it--> error */
    if ( !(flags & O_CREAT) ) {                                       
 2003dac:	80 8e 62 00 	btst  0x200, %i1                               
 2003db0:	02 bf ff c8 	be  2003cd0 <open+0x114>                       
 2003db4:	b6 10 20 02 	mov  2, %i3                                    
      rc = ENOENT;                                                    
      goto done;                                                      
    }                                                                 
                                                                      
    /* Create the node for the new regular file */                    
    rc = mknod( pathname, S_IFREG | mode, 0LL );                      
 2003db8:	90 10 00 18 	mov  %i0, %o0                                  
 2003dbc:	13 00 00 20 	sethi  %hi(0x8000), %o1                        
 2003dc0:	94 10 20 00 	clr  %o2                                       
 2003dc4:	92 17 00 09 	or  %i4, %o1, %o1                              
 2003dc8:	7f ff fd 84 	call  20033d8 <mknod>                          
 2003dcc:	96 10 20 00 	clr  %o3                                       
    if ( rc ) {                                                       
 2003dd0:	80 a2 20 00 	cmp  %o0, 0                                    
 2003dd4:	02 80 00 0a 	be  2003dfc <open+0x240>                       <== ALWAYS TAKEN
 2003dd8:	01 00 00 00 	nop                                            
      rc = errno;                                                     
 2003ddc:	40 00 2e f1 	call  200f9a0 <__errno>                        <== NOT EXECUTED
 2003de0:	39 00 80 76 	sethi  %hi(0x201d800), %i4                     <== NOT EXECUTED
      goto done;                                                      
 2003de4:	10 bf ff ca 	b  2003d0c <open+0x150>                        <== NOT EXECUTED
 2003de8:	f6 02 00 00 	ld  [ %o0 ], %i3                               <== NOT EXECUTED
   *  Optionally truncate the file.                                   
   */                                                                 
  if ( (flags & O_TRUNC) == O_TRUNC ) {                               
    rc = ftruncate( iop - rtems_libio_iops, 0 );                      
    if ( rc ) {                                                       
      if(errno) rc = errno;                                           
 2003dec:	40 00 2e ed 	call  200f9a0 <__errno>                        
 2003df0:	01 00 00 00 	nop                                            
 2003df4:	10 bf ff e6 	b  2003d8c <open+0x1d0>                        
 2003df8:	f6 02 00 00 	ld  [ %o0 ], %i3                               
    /*                                                                
     * After we do the mknod(), we have to evaluate the path to get the
     * "loc" structure needed to actually have the file itself open.  
     * So we created it, and then we need to have "look it up."       
     */                                                               
    status = rtems_filesystem_evaluate_path(                          
 2003dfc:	40 00 34 81 	call  2011000 <strlen>                         
 2003e00:	90 10 00 18 	mov  %i0, %o0                                  
 2003e04:	94 10 20 00 	clr  %o2                                       
 2003e08:	92 10 00 08 	mov  %o0, %o1                                  
 2003e0c:	96 07 bf e8 	add  %fp, -24, %o3                             
 2003e10:	90 10 00 18 	mov  %i0, %o0                                  
 2003e14:	98 10 20 01 	mov  1, %o4                                    
 2003e18:	7f ff fb fd 	call  2002e0c <rtems_filesystem_evaluate_path> 
 2003e1c:	b6 10 20 0d 	mov  0xd, %i3                                  
      pathname, strlen( pathname ), 0x0, &loc, true );                
    if ( status != 0 ) {   /* The file did not exist */               
 2003e20:	80 a2 20 00 	cmp  %o0, 0                                    
 2003e24:	12 bf ff ac 	bne  2003cd4 <open+0x118>                      <== NEVER TAKEN
 2003e28:	80 a7 60 00 	cmp  %i5, 0                                    
                                                                      
  /*                                                                  
   *  Fill in the file control block based on the loc structure       
   *  returned by successful path evaluation.                         
   */                                                                 
  iop->flags     |= rtems_libio_fcntl_flags( flags );                 
 2003e2c:	10 bf ff 85 	b  2003c40 <open+0x84>                         
 2003e30:	f6 07 60 18 	ld  [ %i5 + 0x18 ], %i3                        
                                                                      

02004b80 <oproc>: /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) {
 2004b80:	9d e3 bf a0 	save  %sp, -96, %sp                            
  int  i;                                                             
                                                                      
  if (tty->termios.c_oflag & OPOST) {                                 
 2004b84:	c2 06 60 34 	ld  [ %i1 + 0x34 ], %g1                        
 2004b88:	80 88 60 01 	btst  1, %g1                                   
 2004b8c:	02 80 00 21 	be  2004c10 <oproc+0x90>                       <== NEVER TAKEN
 2004b90:	f0 2f a0 44 	stb  %i0, [ %fp + 0x44 ]                       
    switch (c) {                                                      
 2004b94:	80 a6 20 09 	cmp  %i0, 9                                    
 2004b98:	22 80 00 3d 	be,a   2004c8c <oproc+0x10c>                   
 2004b9c:	c6 06 60 28 	ld  [ %i1 + 0x28 ], %g3                        
 2004ba0:	08 80 00 22 	bleu  2004c28 <oproc+0xa8>                     <== NEVER TAKEN
 2004ba4:	80 a6 20 08 	cmp  %i0, 8                                    
 2004ba8:	80 a6 20 0a 	cmp  %i0, 0xa                                  
 2004bac:	02 80 00 2b 	be  2004c58 <oproc+0xd8>                       
 2004bb0:	80 a6 20 0d 	cmp  %i0, 0xd                                  
 2004bb4:	02 80 00 44 	be  2004cc4 <oproc+0x144>                      <== NEVER TAKEN
 2004bb8:	80 88 60 10 	btst  0x10, %g1                                
      if (tty->column > 0)                                            
        tty->column--;                                                
      break;                                                          
                                                                      
    default:                                                          
      if (tty->termios.c_oflag & OLCUC)                               
 2004bbc:	80 88 60 02 	btst  2, %g1                                   
        c = toupper(c);                                               
 2004bc0:	03 00 80 74 	sethi  %hi(0x201d000), %g1                     
      if (tty->column > 0)                                            
        tty->column--;                                                
      break;                                                          
                                                                      
    default:                                                          
      if (tty->termios.c_oflag & OLCUC)                               
 2004bc4:	02 80 00 0b 	be  2004bf0 <oproc+0x70>                       <== ALWAYS TAKEN
 2004bc8:	c2 00 60 34 	ld  [ %g1 + 0x34 ], %g1	! 201d034 <__ctype_ptr__>
        c = toupper(c);                                               
 2004bcc:	84 10 00 18 	mov  %i0, %g2                                  <== NOT EXECUTED
 2004bd0:	b0 00 40 18 	add  %g1, %i0, %i0                             <== NOT EXECUTED
 2004bd4:	c6 0e 20 01 	ldub  [ %i0 + 1 ], %g3                         <== NOT EXECUTED
 2004bd8:	86 08 e0 03 	and  %g3, 3, %g3                               <== NOT EXECUTED
 2004bdc:	80 a0 e0 02 	cmp  %g3, 2                                    <== NOT EXECUTED
 2004be0:	22 80 00 02 	be,a   2004be8 <oproc+0x68>                    <== NOT EXECUTED
 2004be4:	84 00 bf e0 	add  %g2, -32, %g2                             <== NOT EXECUTED
 2004be8:	c4 2f a0 44 	stb  %g2, [ %fp + 0x44 ]                       <== NOT EXECUTED
 2004bec:	b0 08 a0 ff 	and  %g2, 0xff, %i0                            <== NOT EXECUTED
      if (!iscntrl(c))                                                
 2004bf0:	b0 00 40 18 	add  %g1, %i0, %i0                             
 2004bf4:	c2 0e 20 01 	ldub  [ %i0 + 1 ], %g1                         
 2004bf8:	80 88 60 20 	btst  0x20, %g1                                
 2004bfc:	12 80 00 06 	bne  2004c14 <oproc+0x94>                      <== NEVER TAKEN
 2004c00:	90 07 a0 44 	add  %fp, 0x44, %o0                            
        tty->column++;                                                
 2004c04:	c2 06 60 28 	ld  [ %i1 + 0x28 ], %g1                        
 2004c08:	82 00 60 01 	inc  %g1                                       
 2004c0c:	c2 26 60 28 	st  %g1, [ %i1 + 0x28 ]                        
      break;                                                          
    }                                                                 
  }                                                                   
  rtems_termios_puts (&c, 1, tty);                                    
 2004c10:	90 07 a0 44 	add  %fp, 0x44, %o0                            
 2004c14:	92 10 20 01 	mov  1, %o1                                    
 2004c18:	7f ff ff 8a 	call  2004a40 <rtems_termios_puts>             
 2004c1c:	94 10 00 19 	mov  %i1, %o2                                  
 2004c20:	81 c7 e0 08 	ret                                            
 2004c24:	81 e8 00 00 	restore                                        
oproc (unsigned char c, struct rtems_termios_tty *tty)                
{                                                                     
  int  i;                                                             
                                                                      
  if (tty->termios.c_oflag & OPOST) {                                 
    switch (c) {                                                      
 2004c28:	12 bf ff e6 	bne  2004bc0 <oproc+0x40>                      <== NOT EXECUTED
 2004c2c:	80 88 60 02 	btst  2, %g1                                   <== NOT EXECUTED
      }                                                               
      tty->column += i;                                               
      break;                                                          
                                                                      
    case '\b':                                                        
      if (tty->column > 0)                                            
 2004c30:	c2 06 60 28 	ld  [ %i1 + 0x28 ], %g1                        <== NOT EXECUTED
 2004c34:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
 2004c38:	04 bf ff f6 	ble  2004c10 <oproc+0x90>                      <== NOT EXECUTED
 2004c3c:	82 00 7f ff 	add  %g1, -1, %g1                              <== NOT EXECUTED
      if (!iscntrl(c))                                                
        tty->column++;                                                
      break;                                                          
    }                                                                 
  }                                                                   
  rtems_termios_puts (&c, 1, tty);                                    
 2004c40:	90 07 a0 44 	add  %fp, 0x44, %o0                            <== NOT EXECUTED
      tty->column += i;                                               
      break;                                                          
                                                                      
    case '\b':                                                        
      if (tty->column > 0)                                            
        tty->column--;                                                
 2004c44:	c2 26 60 28 	st  %g1, [ %i1 + 0x28 ]                        <== NOT EXECUTED
      if (!iscntrl(c))                                                
        tty->column++;                                                
      break;                                                          
    }                                                                 
  }                                                                   
  rtems_termios_puts (&c, 1, tty);                                    
 2004c48:	92 10 20 01 	mov  1, %o1                                    <== NOT EXECUTED
 2004c4c:	7f ff ff 7d 	call  2004a40 <rtems_termios_puts>             <== NOT EXECUTED
 2004c50:	94 10 00 19 	mov  %i1, %o2                                  <== NOT EXECUTED
 2004c54:	30 80 00 30 	b,a   2004d14 <oproc+0x194>                    <== NOT EXECUTED
  int  i;                                                             
                                                                      
  if (tty->termios.c_oflag & OPOST) {                                 
    switch (c) {                                                      
    case '\n':                                                        
      if (tty->termios.c_oflag & ONLRET)                              
 2004c58:	80 88 60 20 	btst  0x20, %g1                                
 2004c5c:	32 80 00 02 	bne,a   2004c64 <oproc+0xe4>                   <== NEVER TAKEN
 2004c60:	c0 26 60 28 	clr  [ %i1 + 0x28 ]                            <== NOT EXECUTED
        tty->column = 0;                                              
      if (tty->termios.c_oflag & ONLCR) {                             
 2004c64:	80 88 60 04 	btst  4, %g1                                   
 2004c68:	22 bf ff eb 	be,a   2004c14 <oproc+0x94>                    <== NEVER TAKEN
 2004c6c:	90 07 a0 44 	add  %fp, 0x44, %o0                            <== NOT EXECUTED
        rtems_termios_puts ("\r", 1, tty);                            
 2004c70:	92 10 20 01 	mov  1, %o1                                    
 2004c74:	11 00 80 6e 	sethi  %hi(0x201b800), %o0                     
 2004c78:	94 10 00 19 	mov  %i1, %o2                                  
 2004c7c:	7f ff ff 71 	call  2004a40 <rtems_termios_puts>             
 2004c80:	90 12 20 88 	or  %o0, 0x88, %o0                             
        tty->column = 0;                                              
 2004c84:	10 bf ff e3 	b  2004c10 <oproc+0x90>                        
 2004c88:	c0 26 60 28 	clr  [ %i1 + 0x28 ]                            
      tty->column = 0;                                                
      break;                                                          
                                                                      
    case '\t':                                                        
      i = 8 - (tty->column & 7);                                      
      if ((tty->termios.c_oflag & TABDLY) == XTABS) {                 
 2004c8c:	05 00 00 06 	sethi  %hi(0x1800), %g2                        
      }                                                               
      tty->column = 0;                                                
      break;                                                          
                                                                      
    case '\t':                                                        
      i = 8 - (tty->column & 7);                                      
 2004c90:	88 08 e0 07 	and  %g3, 7, %g4                               
      if ((tty->termios.c_oflag & TABDLY) == XTABS) {                 
 2004c94:	82 08 40 02 	and  %g1, %g2, %g1                             
      }                                                               
      tty->column = 0;                                                
      break;                                                          
                                                                      
    case '\t':                                                        
      i = 8 - (tty->column & 7);                                      
 2004c98:	92 10 20 08 	mov  8, %o1                                    
      if ((tty->termios.c_oflag & TABDLY) == XTABS) {                 
 2004c9c:	80 a0 40 02 	cmp  %g1, %g2                                  
 2004ca0:	02 80 00 17 	be  2004cfc <oproc+0x17c>                      <== ALWAYS TAKEN
 2004ca4:	92 22 40 04 	sub  %o1, %g4, %o1                             
        tty->column += i;                                             
        rtems_termios_puts ( "        ",  i, tty);                    
        return;                                                       
      }                                                               
      tty->column += i;                                               
 2004ca8:	92 00 c0 09 	add  %g3, %o1, %o1                             <== NOT EXECUTED
      if (!iscntrl(c))                                                
        tty->column++;                                                
      break;                                                          
    }                                                                 
  }                                                                   
  rtems_termios_puts (&c, 1, tty);                                    
 2004cac:	90 07 a0 44 	add  %fp, 0x44, %o0                            <== NOT EXECUTED
      if ((tty->termios.c_oflag & TABDLY) == XTABS) {                 
        tty->column += i;                                             
        rtems_termios_puts ( "        ",  i, tty);                    
        return;                                                       
      }                                                               
      tty->column += i;                                               
 2004cb0:	d2 26 60 28 	st  %o1, [ %i1 + 0x28 ]                        <== NOT EXECUTED
      if (!iscntrl(c))                                                
        tty->column++;                                                
      break;                                                          
    }                                                                 
  }                                                                   
  rtems_termios_puts (&c, 1, tty);                                    
 2004cb4:	94 10 00 19 	mov  %i1, %o2                                  <== NOT EXECUTED
 2004cb8:	7f ff ff 62 	call  2004a40 <rtems_termios_puts>             <== NOT EXECUTED
 2004cbc:	92 10 20 01 	mov  1, %o1                                    <== NOT EXECUTED
 2004cc0:	30 80 00 15 	b,a   2004d14 <oproc+0x194>                    <== NOT EXECUTED
        tty->column = 0;                                              
      }                                                               
      break;                                                          
                                                                      
    case '\r':                                                        
      if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0))       
 2004cc4:	02 80 00 06 	be  2004cdc <oproc+0x15c>                      <== NOT EXECUTED
 2004cc8:	80 88 60 08 	btst  8, %g1                                   <== NOT EXECUTED
 2004ccc:	c4 06 60 28 	ld  [ %i1 + 0x28 ], %g2                        <== NOT EXECUTED
 2004cd0:	80 a0 a0 00 	cmp  %g2, 0                                    <== NOT EXECUTED
 2004cd4:	02 bf ff d3 	be  2004c20 <oproc+0xa0>                       <== NOT EXECUTED
 2004cd8:	80 88 60 08 	btst  8, %g1                                   <== NOT EXECUTED
        return;                                                       
      if (tty->termios.c_oflag & OCRNL) {                             
 2004cdc:	22 bf ff cd 	be,a   2004c10 <oproc+0x90>                    <== NOT EXECUTED
 2004ce0:	c0 26 60 28 	clr  [ %i1 + 0x28 ]                            <== NOT EXECUTED
        c = '\n';                                                     
 2004ce4:	84 10 20 0a 	mov  0xa, %g2                                  <== NOT EXECUTED
        if (tty->termios.c_oflag & ONLRET)                            
 2004ce8:	80 88 60 20 	btst  0x20, %g1                                <== NOT EXECUTED
 2004cec:	02 bf ff c9 	be  2004c10 <oproc+0x90>                       <== NOT EXECUTED
 2004cf0:	c4 2f a0 44 	stb  %g2, [ %fp + 0x44 ]                       <== NOT EXECUTED
          tty->column = 0;                                            
        break;                                                        
      }                                                               
      tty->column = 0;                                                
      break;                                                          
 2004cf4:	10 bf ff c7 	b  2004c10 <oproc+0x90>                        <== NOT EXECUTED
 2004cf8:	c0 26 60 28 	clr  [ %i1 + 0x28 ]                            <== NOT EXECUTED
                                                                      
    case '\t':                                                        
      i = 8 - (tty->column & 7);                                      
      if ((tty->termios.c_oflag & TABDLY) == XTABS) {                 
        tty->column += i;                                             
 2004cfc:	86 00 c0 09 	add  %g3, %o1, %g3                             
        rtems_termios_puts ( "        ",  i, tty);                    
 2004d00:	11 00 80 6e 	sethi  %hi(0x201b800), %o0                     
      break;                                                          
                                                                      
    case '\t':                                                        
      i = 8 - (tty->column & 7);                                      
      if ((tty->termios.c_oflag & TABDLY) == XTABS) {                 
        tty->column += i;                                             
 2004d04:	c6 26 60 28 	st  %g3, [ %i1 + 0x28 ]                        
        rtems_termios_puts ( "        ",  i, tty);                    
 2004d08:	90 12 20 90 	or  %o0, 0x90, %o0                             
 2004d0c:	7f ff ff 4d 	call  2004a40 <rtems_termios_puts>             
 2004d10:	94 10 00 19 	mov  %i1, %o2                                  
        return;                                                       
 2004d14:	81 c7 e0 08 	ret                                            
 2004d18:	81 e8 00 00 	restore                                        
                                                                      

0200cc00 <pipe_create>: * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) {
 200cc00:	9d e3 bf 90 	save  %sp, -112, %sp                           
  rtems_libio_t *iop;                                                 
  int err = 0;                                                        
                                                                      
  if (rtems_mkdir("/tmp", S_IRWXU | S_IRWXG | S_IRWXO) != 0)          
 200cc04:	92 10 21 ff 	mov  0x1ff, %o1                                
 200cc08:	11 00 80 75 	sethi  %hi(0x201d400), %o0                     
    return -1;                                                        
 200cc0c:	ba 10 3f ff 	mov  -1, %i5                                   
)                                                                     
{                                                                     
  rtems_libio_t *iop;                                                 
  int err = 0;                                                        
                                                                      
  if (rtems_mkdir("/tmp", S_IRWXU | S_IRWXG | S_IRWXO) != 0)          
 200cc10:	40 00 06 18 	call  200e470 <rtems_mkdir>                    
 200cc14:	90 12 23 40 	or  %o0, 0x340, %o0                            
 200cc18:	80 a2 20 00 	cmp  %o0, 0                                    
 200cc1c:	12 80 00 33 	bne  200cce8 <pipe_create+0xe8>                <== NEVER TAKEN
 200cc20:	03 00 80 7a 	sethi  %hi(0x201e800), %g1                     
    return -1;                                                        
                                                                      
  /* /tmp/.fifoXXXX */                                                
  char fifopath[15];                                                  
  memcpy(fifopath, "/tmp/.fifo", 10);                                 
  sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);                   
 200cc24:	d4 10 63 0c 	lduh  [ %g1 + 0x30c ], %o2	! 201eb0c <rtems_pipe_no>
  if (rtems_mkdir("/tmp", S_IRWXU | S_IRWXG | S_IRWXO) != 0)          
    return -1;                                                        
                                                                      
  /* /tmp/.fifoXXXX */                                                
  char fifopath[15];                                                  
  memcpy(fifopath, "/tmp/.fifo", 10);                                 
 200cc28:	05 0b dd 1b 	sethi  %hi(0x2f746c00), %g2                    
  sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);                   
 200cc2c:	88 02 a0 01 	add  %o2, 1, %g4                               
  if (rtems_mkdir("/tmp", S_IRWXU | S_IRWXG | S_IRWXO) != 0)          
    return -1;                                                        
                                                                      
  /* /tmp/.fifoXXXX */                                                
  char fifopath[15];                                                  
  memcpy(fifopath, "/tmp/.fifo", 10);                                 
 200cc30:	84 10 a1 70 	or  %g2, 0x170, %g2                            
  sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);                   
 200cc34:	c8 30 63 0c 	sth  %g4, [ %g1 + 0x30c ]                      
  if (rtems_mkdir("/tmp", S_IRWXU | S_IRWXG | S_IRWXO) != 0)          
    return -1;                                                        
                                                                      
  /* /tmp/.fifoXXXX */                                                
  char fifopath[15];                                                  
  memcpy(fifopath, "/tmp/.fifo", 10);                                 
 200cc38:	07 0b cb 99 	sethi  %hi(0x2f2e6400), %g3                    
 200cc3c:	03 00 00 19 	sethi  %hi(0x6400), %g1                        
 200cc40:	86 10 e2 69 	or  %g3, 0x269, %g3                            
 200cc44:	82 10 62 6f 	or  %g1, 0x26f, %g1                            
 200cc48:	c4 3f bf f0 	std  %g2, [ %fp + -16 ]                        
 200cc4c:	c2 37 bf f8 	sth  %g1, [ %fp + -8 ]                         
  sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);                   
 200cc50:	95 2a a0 10 	sll  %o2, 0x10, %o2                            
 200cc54:	90 07 bf fa 	add  %fp, -6, %o0                              
 200cc58:	95 32 a0 10 	srl  %o2, 0x10, %o2                            
 200cc5c:	13 00 80 75 	sethi  %hi(0x201d400), %o1                     
 200cc60:	40 00 14 40 	call  2011d60 <sprintf>                        
 200cc64:	92 12 63 48 	or  %o1, 0x348, %o1	! 201d748 <_CPU_Trap_slot_template+0x1c>
                                                                      
  /* Try creating FIFO file until find an available file name */      
  while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) {                    
 200cc68:	90 07 bf f0 	add  %fp, -16, %o0                             
 200cc6c:	40 00 05 47 	call  200e188 <mkfifo>                         
 200cc70:	92 10 21 80 	mov  0x180, %o1                                
 200cc74:	80 a2 20 00 	cmp  %o0, 0                                    
 200cc78:	12 80 00 31 	bne  200cd3c <pipe_create+0x13c>               
 200cc7c:	90 07 bf f0 	add  %fp, -16, %o0                             
    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);                 
 200cc80:	7f ff e0 c5 	call  2004f94 <open>                           
 200cc84:	13 00 00 10 	sethi  %hi(0x4000), %o1                        
  if (filsdes[0] < 0) {                                               
 200cc88:	80 a2 20 00 	cmp  %o0, 0                                    
 200cc8c:	06 80 00 1f 	bl  200cd08 <pipe_create+0x108>                
 200cc90:	d0 26 00 00 	st  %o0, [ %i0 ]                               
     the file node will be deleted after it is closed by all. */      
    unlink(fifopath);                                                 
  }                                                                   
  else {                                                              
  /* Reset open file to blocking mode */                              
    iop = rtems_libio_iop(filsdes[0]);                                
 200cc94:	03 00 80 78 	sethi  %hi(0x201e000), %g1                     
 200cc98:	c4 00 62 20 	ld  [ %g1 + 0x220 ], %g2	! 201e220 <rtems_libio_number_iops>
 200cc9c:	80 a2 00 02 	cmp  %o0, %g2                                  
 200cca0:	0a 80 00 15 	bcs  200ccf4 <pipe_create+0xf4>                <== ALWAYS TAKEN
 200cca4:	82 10 20 00 	clr  %g1                                       
    iop->flags &= ~LIBIO_FLAGS_NO_DELAY;                              
 200cca8:	c4 00 60 18 	ld  [ %g1 + 0x18 ], %g2                        
                                                                      
    filsdes[1] = open(fifopath, O_WRONLY);                            
 200ccac:	90 07 bf f0 	add  %fp, -16, %o0                             
    unlink(fifopath);                                                 
  }                                                                   
  else {                                                              
  /* Reset open file to blocking mode */                              
    iop = rtems_libio_iop(filsdes[0]);                                
    iop->flags &= ~LIBIO_FLAGS_NO_DELAY;                              
 200ccb0:	84 08 bf fe 	and  %g2, -2, %g2                              
                                                                      
    filsdes[1] = open(fifopath, O_WRONLY);                            
 200ccb4:	92 10 20 01 	mov  1, %o1                                    
 200ccb8:	7f ff e0 b7 	call  2004f94 <open>                           
 200ccbc:	c4 20 60 18 	st  %g2, [ %g1 + 0x18 ]                        
 200ccc0:	d0 26 20 04 	st  %o0, [ %i0 + 4 ]                           
                                                                      
    if (filsdes[1] < 0) {                                             
 200ccc4:	80 a2 20 00 	cmp  %o0, 0                                    
 200ccc8:	06 80 00 17 	bl  200cd24 <pipe_create+0x124>                
 200cccc:	b8 10 20 00 	clr  %i4                                       
    err = errno;                                                      
    close(filsdes[0]);                                                
    }                                                                 
  unlink(fifopath);                                                   
 200ccd0:	7f ff e9 4d 	call  2007204 <unlink>                         
 200ccd4:	90 07 bf f0 	add  %fp, -16, %o0                             
  }                                                                   
  if(err != 0)                                                        
    rtems_set_errno_and_return_minus_one(err);                        
  return 0;                                                           
 200ccd8:	ba 10 20 00 	clr  %i5                                       
    err = errno;                                                      
    close(filsdes[0]);                                                
    }                                                                 
  unlink(fifopath);                                                   
  }                                                                   
  if(err != 0)                                                        
 200ccdc:	80 a7 20 00 	cmp  %i4, 0                                    
 200cce0:	12 80 00 1a 	bne  200cd48 <pipe_create+0x148>               
 200cce4:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one(err);                        
  return 0;                                                           
}                                                                     
 200cce8:	b0 10 00 1d 	mov  %i5, %i0                                  
 200ccec:	81 c7 e0 08 	ret                                            
 200ccf0:	81 e8 00 00 	restore                                        
     the file node will be deleted after it is closed by all. */      
    unlink(fifopath);                                                 
  }                                                                   
  else {                                                              
  /* Reset open file to blocking mode */                              
    iop = rtems_libio_iop(filsdes[0]);                                
 200ccf4:	03 00 80 7b 	sethi  %hi(0x201ec00), %g1                     
 200ccf8:	c2 00 60 88 	ld  [ %g1 + 0x88 ], %g1	! 201ec88 <rtems_libio_iops>
 200ccfc:	91 2a 20 06 	sll  %o0, 6, %o0                               
 200cd00:	10 bf ff ea 	b  200cca8 <pipe_create+0xa8>                  
 200cd04:	82 00 40 08 	add  %g1, %o0, %g1                             
  }                                                                   
                                                                      
  /* Non-blocking open to avoid waiting for writers */                
  filsdes[0] = open(fifopath, O_RDONLY | O_NONBLOCK);                 
  if (filsdes[0] < 0) {                                               
    err = errno;                                                      
 200cd08:	40 00 11 3b 	call  20111f4 <__errno>                        
 200cd0c:	ba 10 20 00 	clr  %i5                                       
 200cd10:	f8 02 00 00 	ld  [ %o0 ], %i4                               
    /* 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);                                                 
 200cd14:	7f ff e9 3c 	call  2007204 <unlink>                         
 200cd18:	90 07 bf f0 	add  %fp, -16, %o0                             
    err = errno;                                                      
    close(filsdes[0]);                                                
    }                                                                 
  unlink(fifopath);                                                   
  }                                                                   
  if(err != 0)                                                        
 200cd1c:	10 bf ff f1 	b  200cce0 <pipe_create+0xe0>                  
 200cd20:	80 a7 20 00 	cmp  %i4, 0                                    
    iop->flags &= ~LIBIO_FLAGS_NO_DELAY;                              
                                                                      
    filsdes[1] = open(fifopath, O_WRONLY);                            
                                                                      
    if (filsdes[1] < 0) {                                             
    err = errno;                                                      
 200cd24:	40 00 11 34 	call  20111f4 <__errno>                        
 200cd28:	01 00 00 00 	nop                                            
 200cd2c:	f8 02 00 00 	ld  [ %o0 ], %i4                               
    close(filsdes[0]);                                                
 200cd30:	7f ff dc 58 	call  2003e90 <close>                          
 200cd34:	d0 06 00 00 	ld  [ %i0 ], %o0                               
 200cd38:	30 bf ff e6 	b,a   200ccd0 <pipe_create+0xd0>               
  memcpy(fifopath, "/tmp/.fifo", 10);                                 
  sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);                   
                                                                      
  /* Try creating FIFO file until find an available file name */      
  while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) {                    
    if (errno != EEXIST){                                             
 200cd3c:	40 00 11 2e 	call  20111f4 <__errno>                        
 200cd40:	b0 10 00 1d 	mov  %i5, %i0                                  
 200cd44:	30 bf ff ea 	b,a   200ccec <pipe_create+0xec>               
    close(filsdes[0]);                                                
    }                                                                 
  unlink(fifopath);                                                   
  }                                                                   
  if(err != 0)                                                        
    rtems_set_errno_and_return_minus_one(err);                        
 200cd48:	40 00 11 2b 	call  20111f4 <__errno>                        
 200cd4c:	ba 10 3f ff 	mov  -1, %i5                                   
 200cd50:	10 bf ff e6 	b  200cce8 <pipe_create+0xe8>                  
 200cd54:	f8 22 00 00 	st  %i4, [ %o0 ]                               
                                                                      

0200e234 <pipe_ioctl>: pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) {
 200e234:	9d e3 bf a0 	save  %sp, -96, %sp                            
  if (cmd == FIONREAD) {                                              
 200e238:	03 10 01 19 	sethi  %hi(0x40046400), %g1                    
  pipe_control_t *pipe,                                               
  uint32_t        cmd,                                                
  void           *buffer,                                             
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
 200e23c:	ba 10 00 18 	mov  %i0, %i5                                  
  if (cmd == FIONREAD) {                                              
 200e240:	82 10 62 7f 	or  %g1, 0x27f, %g1                            
 200e244:	80 a6 40 01 	cmp  %i1, %g1                                  
 200e248:	12 80 00 12 	bne  200e290 <pipe_ioctl+0x5c>                 
 200e24c:	b0 10 3f ea 	mov  -22, %i0                                  
    if (buffer == NULL)                                               
 200e250:	80 a6 a0 00 	cmp  %i2, 0                                    
 200e254:	02 80 00 0f 	be  200e290 <pipe_ioctl+0x5c>                  
 200e258:	b0 10 3f f2 	mov  -14, %i0                                  
      return -EFAULT;                                                 
                                                                      
    if (! PIPE_LOCK(pipe))                                            
 200e25c:	d0 07 60 28 	ld  [ %i5 + 0x28 ], %o0                        
 200e260:	92 10 20 00 	clr  %o1                                       
 200e264:	94 10 20 00 	clr  %o2                                       
 200e268:	7f ff e9 a9 	call  200890c <rtems_semaphore_obtain>         
 200e26c:	b0 10 3f fc 	mov  -4, %i0                                   
 200e270:	80 a2 20 00 	cmp  %o0, 0                                    
 200e274:	12 80 00 07 	bne  200e290 <pipe_ioctl+0x5c>                 <== NEVER TAKEN
 200e278:	01 00 00 00 	nop                                            
      return -EINTR;                                                  
                                                                      
    /* Return length of pipe */                                       
    *(unsigned int *)buffer = pipe->Length;                           
 200e27c:	c2 07 60 0c 	ld  [ %i5 + 0xc ], %g1                         
    PIPE_UNLOCK(pipe);                                                
 200e280:	d0 07 60 28 	ld  [ %i5 + 0x28 ], %o0                        
    return 0;                                                         
 200e284:	b0 10 20 00 	clr  %i0                                       
    if (! PIPE_LOCK(pipe))                                            
      return -EINTR;                                                  
                                                                      
    /* Return length of pipe */                                       
    *(unsigned int *)buffer = pipe->Length;                           
    PIPE_UNLOCK(pipe);                                                
 200e288:	7f ff e9 eb 	call  2008a34 <rtems_semaphore_release>        
 200e28c:	c2 26 80 00 	st  %g1, [ %i2 ]                               
    return 0;                                                         
  }                                                                   
                                                                      
  return -EINVAL;                                                     
}                                                                     
 200e290:	81 c7 e0 08 	ret                                            
 200e294:	81 e8 00 00 	restore                                        
                                                                      

0200de74 <pipe_read>: pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) {
 200de74:	9d e3 bf 98 	save  %sp, -104, %sp                           
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
 200de78:	d0 06 20 28 	ld  [ %i0 + 0x28 ], %o0                        
  pipe_control_t *pipe,                                               
  void           *buffer,                                             
  size_t          count,                                              
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
 200de7c:	ba 10 00 18 	mov  %i0, %i5                                  
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
 200de80:	92 10 20 00 	clr  %o1                                       
 200de84:	94 10 20 00 	clr  %o2                                       
 200de88:	7f ff ea a1 	call  200890c <rtems_semaphore_obtain>         
 200de8c:	b0 10 3f fc 	mov  -4, %i0                                   
 200de90:	80 a2 20 00 	cmp  %o0, 0                                    
 200de94:	12 80 00 2c 	bne  200df44 <pipe_read+0xd0>                  <== NEVER TAKEN
 200de98:	a0 10 20 00 	clr  %l0                                       
    return -EINTR;                                                    
                                                                      
  while (read < count) {                                              
 200de9c:	80 a6 a0 00 	cmp  %i2, 0                                    
 200dea0:	02 80 00 52 	be  200dfe8 <pipe_read+0x174>                  <== NEVER TAKEN
 200dea4:	b0 10 20 00 	clr  %i0                                       
    while (PIPE_EMPTY(pipe)) {                                        
 200dea8:	f8 07 60 0c 	ld  [ %i5 + 0xc ], %i4                         
 200deac:	80 a7 20 00 	cmp  %i4, 0                                    
 200deb0:	12 80 00 29 	bne  200df54 <pipe_read+0xe0>                  
 200deb4:	82 26 80 10 	sub  %i2, %l0, %g1                             
      /* Not an error */                                              
      if (pipe->Writers == 0)                                         
 200deb8:	c2 07 60 14 	ld  [ %i5 + 0x14 ], %g1                        
 200debc:	80 a0 60 00 	cmp  %g1, 0                                    
 200dec0:	22 80 00 1c 	be,a   200df30 <pipe_read+0xbc>                
 200dec4:	b8 10 20 00 	clr  %i4                                       
        goto out_locked;                                              
                                                                      
      if (LIBIO_NODELAY(iop)) {                                       
 200dec8:	c2 06 e0 18 	ld  [ %i3 + 0x18 ], %g1                        
 200decc:	80 88 60 01 	btst  1, %g1                                   
 200ded0:	32 80 00 18 	bne,a   200df30 <pipe_read+0xbc>               
 200ded4:	b8 10 3f f5 	mov  -11, %i4                                  
        ret = -EAGAIN;                                                
        goto out_locked;                                              
      }                                                               
                                                                      
      /* Wait until pipe is no more empty or no writer exists */      
      pipe->waitingReaders ++;                                        
 200ded8:	c2 07 60 18 	ld  [ %i5 + 0x18 ], %g1                        
      PIPE_UNLOCK(pipe);                                              
 200dedc:	d0 07 60 28 	ld  [ %i5 + 0x28 ], %o0                        
        ret = -EAGAIN;                                                
        goto out_locked;                                              
      }                                                               
                                                                      
      /* Wait until pipe is no more empty or no writer exists */      
      pipe->waitingReaders ++;                                        
 200dee0:	82 00 60 01 	inc  %g1                                       
      PIPE_UNLOCK(pipe);                                              
 200dee4:	7f ff ea d4 	call  2008a34 <rtems_semaphore_release>        
 200dee8:	c2 27 60 18 	st  %g1, [ %i5 + 0x18 ]                        
      if (! PIPE_READWAIT(pipe))                                      
 200deec:	d0 07 60 2c 	ld  [ %i5 + 0x2c ], %o0                        
 200def0:	40 00 06 0b 	call  200f71c <rtems_barrier_wait>             
 200def4:	92 10 20 00 	clr  %o1                                       
 200def8:	80 a0 00 08 	cmp  %g0, %o0                                  
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
 200defc:	d0 07 60 28 	ld  [ %i5 + 0x28 ], %o0                        
      }                                                               
                                                                      
      /* Wait until pipe is no more empty or no writer exists */      
      pipe->waitingReaders ++;                                        
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_READWAIT(pipe))                                      
 200df00:	b8 60 20 00 	subx  %g0, 0, %i4                              
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
 200df04:	92 10 20 00 	clr  %o1                                       
 200df08:	94 10 20 00 	clr  %o2                                       
 200df0c:	7f ff ea 80 	call  200890c <rtems_semaphore_obtain>         
 200df10:	b8 0f 3f fc 	and  %i4, -4, %i4                              
 200df14:	80 a2 20 00 	cmp  %o0, 0                                    
 200df18:	12 80 00 36 	bne  200dff0 <pipe_read+0x17c>                 <== NEVER TAKEN
 200df1c:	80 a7 20 00 	cmp  %i4, 0                                    
        /* WARN waitingReaders not restored! */                       
        ret = -EINTR;                                                 
        goto out_nolock;                                              
      }                                                               
      pipe->waitingReaders --;                                        
 200df20:	c2 07 60 18 	ld  [ %i5 + 0x18 ], %g1                        
 200df24:	82 00 7f ff 	add  %g1, -1, %g1                              
      if (ret != 0)                                                   
 200df28:	02 bf ff e0 	be  200dea8 <pipe_read+0x34>                   <== ALWAYS TAKEN
 200df2c:	c2 27 60 18 	st  %g1, [ %i5 + 0x18 ]                        
      PIPE_WAKEUPWRITERS(pipe);                                       
    read += chunk;                                                    
  }                                                                   
                                                                      
out_locked:                                                           
  PIPE_UNLOCK(pipe);                                                  
 200df30:	7f ff ea c1 	call  2008a34 <rtems_semaphore_release>        
 200df34:	d0 07 60 28 	ld  [ %i5 + 0x28 ], %o0                        
                                                                      
out_nolock:                                                           
  if (read > 0)                                                       
 200df38:	80 a6 20 00 	cmp  %i0, 0                                    
 200df3c:	04 80 00 04 	ble  200df4c <pipe_read+0xd8>                  
 200df40:	01 00 00 00 	nop                                            
    return read;                                                      
  return ret;                                                         
}                                                                     
 200df44:	81 c7 e0 08 	ret                                            
 200df48:	81 e8 00 00 	restore                                        
 200df4c:	81 c7 e0 08 	ret                                            
 200df50:	91 e8 00 1c 	restore  %g0, %i4, %o0                         
      if (ret != 0)                                                   
        goto out_locked;                                              
    }                                                                 
                                                                      
    /* Read chunk bytes */                                            
    chunk = MIN(count - read,  pipe->Length);                         
 200df54:	80 a7 00 01 	cmp  %i4, %g1                                  
 200df58:	38 80 00 02 	bgu,a   200df60 <pipe_read+0xec>               
 200df5c:	b8 10 00 01 	mov  %g1, %i4                                  
    chunk1 = pipe->Size - pipe->Start;                                
 200df60:	c2 07 60 08 	ld  [ %i5 + 8 ], %g1                           
 200df64:	e2 07 60 04 	ld  [ %i5 + 4 ], %l1                           
 200df68:	a2 24 40 01 	sub  %l1, %g1, %l1                             
    if (chunk > chunk1) {                                             
 200df6c:	80 a7 00 11 	cmp  %i4, %l1                                  
 200df70:	04 80 00 22 	ble  200dff8 <pipe_read+0x184>                 
 200df74:	d2 07 40 00 	ld  [ %i5 ], %o1                               
      memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1);      
 200df78:	94 10 00 11 	mov  %l1, %o2                                  
 200df7c:	92 02 40 01 	add  %o1, %g1, %o1                             
 200df80:	40 00 12 85 	call  2012994 <memcpy>                         
 200df84:	90 06 40 10 	add  %i1, %l0, %o0                             
      memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1);   
 200df88:	d2 07 40 00 	ld  [ %i5 ], %o1                               
 200df8c:	90 04 00 11 	add  %l0, %l1, %o0                             
 200df90:	94 27 00 11 	sub  %i4, %l1, %o2                             
 200df94:	40 00 12 80 	call  2012994 <memcpy>                         
 200df98:	90 06 40 08 	add  %i1, %o0, %o0                             
    }                                                                 
    else                                                              
      memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);       
                                                                      
    pipe->Start += chunk;                                             
 200df9c:	d0 07 60 08 	ld  [ %i5 + 8 ], %o0                           
    pipe->Start %= pipe->Size;                                        
 200dfa0:	d2 07 60 04 	ld  [ %i5 + 4 ], %o1                           
 200dfa4:	40 00 40 1c 	call  201e014 <.urem>                          
 200dfa8:	90 07 00 08 	add  %i4, %o0, %o0                             
    pipe->Length -= chunk;                                            
 200dfac:	c2 07 60 0c 	ld  [ %i5 + 0xc ], %g1                         
    }                                                                 
    else                                                              
      memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);       
                                                                      
    pipe->Start += chunk;                                             
    pipe->Start %= pipe->Size;                                        
 200dfb0:	d0 27 60 08 	st  %o0, [ %i5 + 8 ]                           
    pipe->Length -= chunk;                                            
 200dfb4:	82 20 40 1c 	sub  %g1, %i4, %g1                             
    /* For buffering optimization */                                  
    if (PIPE_EMPTY(pipe))                                             
 200dfb8:	80 a0 60 00 	cmp  %g1, 0                                    
 200dfbc:	12 80 00 03 	bne  200dfc8 <pipe_read+0x154>                 
 200dfc0:	c2 27 60 0c 	st  %g1, [ %i5 + 0xc ]                         
      pipe->Start = 0;                                                
 200dfc4:	c0 27 60 08 	clr  [ %i5 + 8 ]                               
                                                                      
    if (pipe->waitingWriters > 0)                                     
 200dfc8:	c2 07 60 1c 	ld  [ %i5 + 0x1c ], %g1                        
 200dfcc:	80 a0 60 00 	cmp  %g1, 0                                    
 200dfd0:	32 80 00 10 	bne,a   200e010 <pipe_read+0x19c>              
 200dfd4:	d0 07 60 30 	ld  [ %i5 + 0x30 ], %o0                        
      PIPE_WAKEUPWRITERS(pipe);                                       
    read += chunk;                                                    
 200dfd8:	b0 06 00 1c 	add  %i0, %i4, %i0                             
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    return -EINTR;                                                    
                                                                      
  while (read < count) {                                              
 200dfdc:	80 a6 00 1a 	cmp  %i0, %i2                                  
 200dfe0:	0a bf ff b2 	bcs  200dea8 <pipe_read+0x34>                  <== NEVER TAKEN
 200dfe4:	a0 10 00 18 	mov  %i0, %l0                                  
    while (PIPE_EMPTY(pipe)) {                                        
      /* Not an error */                                              
      if (pipe->Writers == 0)                                         
 200dfe8:	10 bf ff d2 	b  200df30 <pipe_read+0xbc>                    
 200dfec:	b8 10 20 00 	clr  %i4                                       
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_READWAIT(pipe))                                      
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
        /* WARN waitingReaders not restored! */                       
        ret = -EINTR;                                                 
 200dff0:	10 bf ff d2 	b  200df38 <pipe_read+0xc4>                    <== NOT EXECUTED
 200dff4:	b8 10 3f fc 	mov  -4, %i4                                   <== NOT EXECUTED
    if (chunk > chunk1) {                                             
      memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1);      
      memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1);   
    }                                                                 
    else                                                              
      memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);       
 200dff8:	90 06 40 10 	add  %i1, %l0, %o0                             
 200dffc:	92 02 40 01 	add  %o1, %g1, %o1                             
 200e000:	40 00 12 65 	call  2012994 <memcpy>                         
 200e004:	94 10 00 1c 	mov  %i4, %o2                                  
                                                                      
    pipe->Start += chunk;                                             
 200e008:	10 bf ff e6 	b  200dfa0 <pipe_read+0x12c>                   
 200e00c:	d0 07 60 08 	ld  [ %i5 + 8 ], %o0                           
    /* For buffering optimization */                                  
    if (PIPE_EMPTY(pipe))                                             
      pipe->Start = 0;                                                
                                                                      
    if (pipe->waitingWriters > 0)                                     
      PIPE_WAKEUPWRITERS(pipe);                                       
 200e010:	40 00 05 ac 	call  200f6c0 <rtems_barrier_release>          
 200e014:	92 07 bf fc 	add  %fp, -4, %o1                              
    read += chunk;                                                    
 200e018:	10 bf ff f1 	b  200dfdc <pipe_read+0x168>                   
 200e01c:	b0 06 00 1c 	add  %i0, %i4, %i0                             
                                                                      

0200d898 <pipe_release>: */ void pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) {
 200d898:	9d e3 bf 98 	save  %sp, -104, %sp                           
    /* WARN pipe not released! */                                     
    if (!PIPE_LOCK(pipe))                                             
      rtems_fatal_error_occurred(0xdeadbeef);                         
  #endif                                                              
                                                                      
  mode = LIBIO_ACCMODE(iop);                                          
 200d89c:	c2 06 60 18 	ld  [ %i1 + 0x18 ], %g1                        
void pipe_release(                                                    
  pipe_control_t **pipep,                                             
  rtems_libio_t *iop                                                  
)                                                                     
{                                                                     
  pipe_control_t *pipe = *pipep;                                      
 200d8a0:	fa 06 00 00 	ld  [ %i0 ], %i5                               
    if (!PIPE_LOCK(pipe))                                             
      rtems_fatal_error_occurred(0xdeadbeef);                         
  #endif                                                              
                                                                      
  mode = LIBIO_ACCMODE(iop);                                          
  if (mode & LIBIO_FLAGS_READ)                                        
 200d8a4:	80 88 60 02 	btst  2, %g1                                   
 200d8a8:	02 80 00 05 	be  200d8bc <pipe_release+0x24>                
 200d8ac:	b8 08 60 06 	and  %g1, 6, %i4                               
     pipe->Readers --;                                                
 200d8b0:	c2 07 60 10 	ld  [ %i5 + 0x10 ], %g1                        
 200d8b4:	82 00 7f ff 	add  %g1, -1, %g1                              
 200d8b8:	c2 27 60 10 	st  %g1, [ %i5 + 0x10 ]                        
  if (mode & LIBIO_FLAGS_WRITE)                                       
 200d8bc:	80 8f 20 04 	btst  4, %i4                                   
 200d8c0:	02 80 00 05 	be  200d8d4 <pipe_release+0x3c>                
 200d8c4:	01 00 00 00 	nop                                            
     pipe->Writers --;                                                
 200d8c8:	c2 07 60 14 	ld  [ %i5 + 0x14 ], %g1                        
 200d8cc:	82 00 7f ff 	add  %g1, -1, %g1                              
 200d8d0:	c2 27 60 14 	st  %g1, [ %i5 + 0x14 ]                        
                                                                      
  PIPE_UNLOCK(pipe);                                                  
 200d8d4:	7f ff ec 58 	call  2008a34 <rtems_semaphore_release>        
 200d8d8:	d0 07 60 28 	ld  [ %i5 + 0x28 ], %o0                        
                                                                      
  if (pipe->Readers == 0 && pipe->Writers == 0) {                     
 200d8dc:	c2 07 60 10 	ld  [ %i5 + 0x10 ], %g1                        
 200d8e0:	80 a0 60 00 	cmp  %g1, 0                                    
 200d8e4:	12 80 00 0c 	bne  200d914 <pipe_release+0x7c>               
 200d8e8:	c2 07 60 14 	ld  [ %i5 + 0x14 ], %g1                        
 200d8ec:	80 a0 60 00 	cmp  %g1, 0                                    
 200d8f0:	02 80 00 1d 	be  200d964 <pipe_release+0xcc>                
 200d8f4:	80 a7 20 04 	cmp  %i4, 4                                    
      delfile = TRUE;                                                 
#endif                                                                
    pipe_free(pipe);                                                  
    *pipep = NULL;                                                    
  }                                                                   
  else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE)           
 200d8f8:	32 80 00 14 	bne,a   200d948 <pipe_release+0xb0>            <== ALWAYS TAKEN
 200d8fc:	d0 07 60 30 	ld  [ %i5 + 0x30 ], %o0                        
                                                                      
static void pipe_unlock(void)                                         
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  sc = rtems_semaphore_release(pipe_semaphore);                       
 200d900:	03 00 80 88 	sethi  %hi(0x2022000), %g1                     <== NOT EXECUTED
 200d904:	7f ff ec 4c 	call  2008a34 <rtems_semaphore_release>        <== NOT EXECUTED
 200d908:	d0 00 62 4c 	ld  [ %g1 + 0x24c ], %o0	! 202224c <pipe_semaphore><== NOT EXECUTED
  iop->flags &= ~LIBIO_FLAGS_OPEN;                                    
  if(iop->pathinfo.ops->unlink_h(&iop->pathinfo))                     
    return;                                                           
#endif                                                                
                                                                      
}                                                                     
 200d90c:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200d910:	81 e8 00 00 	restore                                        <== NOT EXECUTED
    *pipep = NULL;                                                    
  }                                                                   
  else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE)           
    /* Notify waiting Writers that all their partners left */         
    PIPE_WAKEUPWRITERS(pipe);                                         
  else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ)            
 200d914:	80 a0 60 00 	cmp  %g1, 0                                    
 200d918:	12 bf ff fa 	bne  200d900 <pipe_release+0x68>               <== NEVER TAKEN
 200d91c:	80 a7 20 02 	cmp  %i4, 2                                    
 200d920:	02 bf ff f9 	be  200d904 <pipe_release+0x6c>                <== NEVER TAKEN
 200d924:	03 00 80 88 	sethi  %hi(0x2022000), %g1                     
    PIPE_WAKEUPREADERS(pipe);                                         
 200d928:	d0 07 60 2c 	ld  [ %i5 + 0x2c ], %o0                        
 200d92c:	40 00 07 65 	call  200f6c0 <rtems_barrier_release>          
 200d930:	92 07 bf fc 	add  %fp, -4, %o1                              
                                                                      
static void pipe_unlock(void)                                         
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  sc = rtems_semaphore_release(pipe_semaphore);                       
 200d934:	03 00 80 88 	sethi  %hi(0x2022000), %g1                     
 200d938:	7f ff ec 3f 	call  2008a34 <rtems_semaphore_release>        
 200d93c:	d0 00 62 4c 	ld  [ %g1 + 0x24c ], %o0	! 202224c <pipe_semaphore>
  iop->flags &= ~LIBIO_FLAGS_OPEN;                                    
  if(iop->pathinfo.ops->unlink_h(&iop->pathinfo))                     
    return;                                                           
#endif                                                                
                                                                      
}                                                                     
 200d940:	81 c7 e0 08 	ret                                            
 200d944:	81 e8 00 00 	restore                                        
    pipe_free(pipe);                                                  
    *pipep = NULL;                                                    
  }                                                                   
  else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE)           
    /* Notify waiting Writers that all their partners left */         
    PIPE_WAKEUPWRITERS(pipe);                                         
 200d948:	40 00 07 5e 	call  200f6c0 <rtems_barrier_release>          
 200d94c:	92 07 bf fc 	add  %fp, -4, %o1                              
                                                                      
static void pipe_unlock(void)                                         
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  sc = rtems_semaphore_release(pipe_semaphore);                       
 200d950:	03 00 80 88 	sethi  %hi(0x2022000), %g1                     
 200d954:	7f ff ec 38 	call  2008a34 <rtems_semaphore_release>        
 200d958:	d0 00 62 4c 	ld  [ %g1 + 0x24c ], %o0	! 202224c <pipe_semaphore>
  iop->flags &= ~LIBIO_FLAGS_OPEN;                                    
  if(iop->pathinfo.ops->unlink_h(&iop->pathinfo))                     
    return;                                                           
#endif                                                                
                                                                      
}                                                                     
 200d95c:	81 c7 e0 08 	ret                                            
 200d960:	81 e8 00 00 	restore                                        
/* Called with pipe_semaphore held. */                                
static inline void pipe_free(                                         
  pipe_control_t *pipe                                                
)                                                                     
{                                                                     
  rtems_barrier_delete(pipe->readBarrier);                            
 200d964:	40 00 07 2e 	call  200f61c <rtems_barrier_delete>           
 200d968:	d0 07 60 2c 	ld  [ %i5 + 0x2c ], %o0                        
  rtems_barrier_delete(pipe->writeBarrier);                           
 200d96c:	40 00 07 2c 	call  200f61c <rtems_barrier_delete>           
 200d970:	d0 07 60 30 	ld  [ %i5 + 0x30 ], %o0                        
  rtems_semaphore_delete(pipe->Semaphore);                            
 200d974:	7f ff eb af 	call  2008830 <rtems_semaphore_delete>         
 200d978:	d0 07 60 28 	ld  [ %i5 + 0x28 ], %o0                        
  free(pipe->Buffer);                                                 
 200d97c:	7f ff dc 1e 	call  20049f4 <free>                           
 200d980:	d0 07 40 00 	ld  [ %i5 ], %o0                               
  free(pipe);                                                         
 200d984:	7f ff dc 1c 	call  20049f4 <free>                           
 200d988:	90 10 00 1d 	mov  %i5, %o0                                  
                                                                      
static void pipe_unlock(void)                                         
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  sc = rtems_semaphore_release(pipe_semaphore);                       
 200d98c:	03 00 80 88 	sethi  %hi(0x2022000), %g1                     
 200d990:	d0 00 62 4c 	ld  [ %g1 + 0x24c ], %o0	! 202224c <pipe_semaphore>
 200d994:	7f ff ec 28 	call  2008a34 <rtems_semaphore_release>        
 200d998:	c0 26 00 00 	clr  [ %i0 ]                                   
  iop->flags &= ~LIBIO_FLAGS_OPEN;                                    
  if(iop->pathinfo.ops->unlink_h(&iop->pathinfo))                     
    return;                                                           
#endif                                                                
                                                                      
}                                                                     
 200d99c:	81 c7 e0 08 	ret                                            
 200d9a0:	81 e8 00 00 	restore                                        
                                                                      

0200e020 <pipe_write>: pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) {
 200e020:	9d e3 bf 98 	save  %sp, -104, %sp                           
 200e024:	ba 10 00 18 	mov  %i0, %i5                                  
  int chunk, chunk1, written = 0, ret = 0;                            
                                                                      
  /* Write nothing */                                                 
  if (count == 0)                                                     
 200e028:	80 a6 a0 00 	cmp  %i2, 0                                    
 200e02c:	12 80 00 04 	bne  200e03c <pipe_write+0x1c>                 <== ALWAYS TAKEN
 200e030:	b0 10 20 00 	clr  %i0                                       
#endif                                                                
                                                                      
  if (written > 0)                                                    
    return written;                                                   
  return ret;                                                         
}                                                                     
 200e034:	81 c7 e0 08 	ret                                            
 200e038:	81 e8 00 00 	restore                                        
                                                                      
  /* Write nothing */                                                 
  if (count == 0)                                                     
    return 0;                                                         
                                                                      
  if (! PIPE_LOCK(pipe))                                              
 200e03c:	d0 07 60 28 	ld  [ %i5 + 0x28 ], %o0                        
 200e040:	92 10 20 00 	clr  %o1                                       
 200e044:	94 10 20 00 	clr  %o2                                       
 200e048:	7f ff ea 31 	call  200890c <rtems_semaphore_obtain>         
 200e04c:	b0 10 3f fc 	mov  -4, %i0                                   
 200e050:	80 a2 20 00 	cmp  %o0, 0                                    
 200e054:	12 bf ff f8 	bne  200e034 <pipe_write+0x14>                 <== NEVER TAKEN
 200e058:	01 00 00 00 	nop                                            
    return -EINTR;                                                    
                                                                      
  if (pipe->Readers == 0) {                                           
 200e05c:	c2 07 60 10 	ld  [ %i5 + 0x10 ], %g1                        
 200e060:	80 a0 60 00 	cmp  %g1, 0                                    
 200e064:	02 80 00 60 	be  200e1e4 <pipe_write+0x1c4>                 
 200e068:	b8 10 3f e0 	mov  -32, %i4                                  
    ret = -EPIPE;                                                     
    goto out_locked;                                                  
  }                                                                   
                                                                      
  /* Write of PIPE_BUF bytes or less shall not be interleaved */      
  chunk = count <= pipe->Size ? count : 1;                            
 200e06c:	e4 07 60 04 	ld  [ %i5 + 4 ], %l2                           
 200e070:	80 a6 80 12 	cmp  %i2, %l2                                  
 200e074:	08 80 00 5a 	bleu  200e1dc <pipe_write+0x1bc>               <== ALWAYS TAKEN
 200e078:	a0 10 20 01 	mov  1, %l0                                    
 200e07c:	a2 10 20 00 	clr  %l1                                       
 200e080:	b0 10 20 00 	clr  %i0                                       
                                                                      
  while (written < count) {                                           
    while (PIPE_SPACE(pipe) < chunk) {                                
 200e084:	c2 07 60 0c 	ld  [ %i5 + 0xc ], %g1                         
 200e088:	b8 24 80 01 	sub  %l2, %g1, %i4                             
 200e08c:	80 a7 00 10 	cmp  %i4, %l0                                  
 200e090:	1a 80 00 27 	bcc  200e12c <pipe_write+0x10c>                
 200e094:	84 26 80 11 	sub  %i2, %l1, %g2                             
      if (LIBIO_NODELAY(iop)) {                                       
 200e098:	c2 06 e0 18 	ld  [ %i3 + 0x18 ], %g1                        
 200e09c:	80 88 60 01 	btst  1, %g1                                   
 200e0a0:	32 80 00 45 	bne,a   200e1b4 <pipe_write+0x194>             
 200e0a4:	b8 10 3f f5 	mov  -11, %i4                                  
        ret = -EAGAIN;                                                
        goto out_locked;                                              
      }                                                               
                                                                      
      /* Wait until there is chunk bytes space or no reader exists */ 
      pipe->waitingWriters ++;                                        
 200e0a8:	c2 07 60 1c 	ld  [ %i5 + 0x1c ], %g1                        
      PIPE_UNLOCK(pipe);                                              
 200e0ac:	d0 07 60 28 	ld  [ %i5 + 0x28 ], %o0                        
        ret = -EAGAIN;                                                
        goto out_locked;                                              
      }                                                               
                                                                      
      /* Wait until there is chunk bytes space or no reader exists */ 
      pipe->waitingWriters ++;                                        
 200e0b0:	82 00 60 01 	inc  %g1                                       
      PIPE_UNLOCK(pipe);                                              
 200e0b4:	7f ff ea 60 	call  2008a34 <rtems_semaphore_release>        
 200e0b8:	c2 27 60 1c 	st  %g1, [ %i5 + 0x1c ]                        
      if (! PIPE_WRITEWAIT(pipe))                                     
 200e0bc:	d0 07 60 30 	ld  [ %i5 + 0x30 ], %o0                        
 200e0c0:	40 00 05 97 	call  200f71c <rtems_barrier_wait>             
 200e0c4:	92 10 20 00 	clr  %o1                                       
 200e0c8:	80 a0 00 08 	cmp  %g0, %o0                                  
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
 200e0cc:	d0 07 60 28 	ld  [ %i5 + 0x28 ], %o0                        
      }                                                               
                                                                      
      /* Wait until there is chunk bytes space or no reader exists */ 
      pipe->waitingWriters ++;                                        
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_WRITEWAIT(pipe))                                     
 200e0d0:	b8 60 20 00 	subx  %g0, 0, %i4                              
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
 200e0d4:	92 10 20 00 	clr  %o1                                       
 200e0d8:	94 10 20 00 	clr  %o2                                       
 200e0dc:	7f ff ea 0c 	call  200890c <rtems_semaphore_obtain>         
 200e0e0:	b8 0f 3f fc 	and  %i4, -4, %i4                              
 200e0e4:	80 a2 20 00 	cmp  %o0, 0                                    
 200e0e8:	12 80 00 47 	bne  200e204 <pipe_write+0x1e4>                <== NEVER TAKEN
 200e0ec:	80 a7 20 00 	cmp  %i4, 0                                    
        /* WARN waitingWriters not restored! */                       
        ret = -EINTR;                                                 
        goto out_nolock;                                              
      }                                                               
      pipe->waitingWriters --;                                        
 200e0f0:	c2 07 60 1c 	ld  [ %i5 + 0x1c ], %g1                        
 200e0f4:	82 00 7f ff 	add  %g1, -1, %g1                              
      if (ret != 0)                                                   
 200e0f8:	12 80 00 2f 	bne  200e1b4 <pipe_write+0x194>                <== NEVER TAKEN
 200e0fc:	c2 27 60 1c 	st  %g1, [ %i5 + 0x1c ]                        
        goto out_locked;                                              
                                                                      
      if (pipe->Readers == 0) {                                       
 200e100:	c2 07 60 10 	ld  [ %i5 + 0x10 ], %g1                        
 200e104:	80 a0 60 00 	cmp  %g1, 0                                    
 200e108:	02 80 00 2b 	be  200e1b4 <pipe_write+0x194>                 <== NEVER TAKEN
 200e10c:	b8 10 3f e0 	mov  -32, %i4                                  
 200e110:	e4 07 60 04 	ld  [ %i5 + 4 ], %l2                           
                                                                      
  /* 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) {                                
 200e114:	c2 07 60 0c 	ld  [ %i5 + 0xc ], %g1                         
 200e118:	b8 24 80 01 	sub  %l2, %g1, %i4                             
 200e11c:	80 a7 00 10 	cmp  %i4, %l0                                  
 200e120:	2a bf ff df 	bcs,a   200e09c <pipe_write+0x7c>              <== NEVER TAKEN
 200e124:	c2 06 e0 18 	ld  [ %i3 + 0x18 ], %g1                        <== NOT EXECUTED
        ret = -EPIPE;                                                 
        goto out_locked;                                              
      }                                                               
    }                                                                 
                                                                      
    chunk = MIN(count - written, PIPE_SPACE(pipe));                   
 200e128:	84 26 80 11 	sub  %i2, %l1, %g2                             
 200e12c:	80 a7 00 02 	cmp  %i4, %g2                                  
 200e130:	38 80 00 02 	bgu,a   200e138 <pipe_write+0x118>             
 200e134:	b8 10 00 02 	mov  %g2, %i4                                  
    chunk1 = pipe->Size - PIPE_WSTART(pipe);                          
 200e138:	d0 07 60 08 	ld  [ %i5 + 8 ], %o0                           
 200e13c:	92 10 00 12 	mov  %l2, %o1                                  
 200e140:	40 00 3f b5 	call  201e014 <.urem>                          
 200e144:	90 00 40 08 	add  %g1, %o0, %o0                             
    if (chunk > chunk1) {                                             
      memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1);
 200e148:	c2 07 40 00 	ld  [ %i5 ], %g1                               
        goto out_locked;                                              
      }                                                               
    }                                                                 
                                                                      
    chunk = MIN(count - written, PIPE_SPACE(pipe));                   
    chunk1 = pipe->Size - PIPE_WSTART(pipe);                          
 200e14c:	a0 24 80 08 	sub  %l2, %o0, %l0                             
    if (chunk > chunk1) {                                             
 200e150:	80 a7 00 10 	cmp  %i4, %l0                                  
 200e154:	04 80 00 2e 	ble  200e20c <pipe_write+0x1ec>                
 200e158:	92 06 40 11 	add  %i1, %l1, %o1                             
      memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1);
 200e15c:	94 10 00 10 	mov  %l0, %o2                                  
 200e160:	40 00 12 0d 	call  2012994 <memcpy>                         
 200e164:	90 00 40 08 	add  %g1, %o0, %o0                             
      memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1);
 200e168:	d0 07 40 00 	ld  [ %i5 ], %o0                               
 200e16c:	92 04 00 11 	add  %l0, %l1, %o1                             
 200e170:	94 27 00 10 	sub  %i4, %l0, %o2                             
 200e174:	40 00 12 08 	call  2012994 <memcpy>                         
 200e178:	92 06 40 09 	add  %i1, %o1, %o1                             
    }                                                                 
    else                                                              
      memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk);
                                                                      
    pipe->Length += chunk;                                            
 200e17c:	c4 07 60 0c 	ld  [ %i5 + 0xc ], %g2                         
    if (pipe->waitingReaders > 0)                                     
 200e180:	c2 07 60 18 	ld  [ %i5 + 0x18 ], %g1                        
      memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1);
    }                                                                 
    else                                                              
      memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk);
                                                                      
    pipe->Length += chunk;                                            
 200e184:	84 00 80 1c 	add  %g2, %i4, %g2                             
    if (pipe->waitingReaders > 0)                                     
 200e188:	80 a0 60 00 	cmp  %g1, 0                                    
 200e18c:	12 80 00 25 	bne  200e220 <pipe_write+0x200>                
 200e190:	c4 27 60 0c 	st  %g2, [ %i5 + 0xc ]                         
      PIPE_WAKEUPREADERS(pipe);                                       
    written += chunk;                                                 
 200e194:	b0 06 00 1c 	add  %i0, %i4, %i0                             
  }                                                                   
                                                                      
  /* Write of PIPE_BUF bytes or less shall not be interleaved */      
  chunk = count <= pipe->Size ? count : 1;                            
                                                                      
  while (written < count) {                                           
 200e198:	80 a6 80 18 	cmp  %i2, %i0                                  
 200e19c:	08 80 00 05 	bleu  200e1b0 <pipe_write+0x190>               <== ALWAYS TAKEN
 200e1a0:	a2 10 00 18 	mov  %i0, %l1                                  
 200e1a4:	e4 07 60 04 	ld  [ %i5 + 4 ], %l2                           <== NOT EXECUTED
    pipe->Length += chunk;                                            
    if (pipe->waitingReaders > 0)                                     
      PIPE_WAKEUPREADERS(pipe);                                       
    written += chunk;                                                 
    /* Write of more than PIPE_BUF bytes can be interleaved */        
    chunk = 1;                                                        
 200e1a8:	10 bf ff b7 	b  200e084 <pipe_write+0x64>                   <== NOT EXECUTED
 200e1ac:	a0 10 20 01 	mov  1, %l0                                    <== NOT EXECUTED
  }                                                                   
                                                                      
  /* Write of PIPE_BUF bytes or less shall not be interleaved */      
  chunk = count <= pipe->Size ? count : 1;                            
                                                                      
  while (written < count) {                                           
 200e1b0:	b8 10 20 00 	clr  %i4                                       
    /* Write of more than PIPE_BUF bytes can be interleaved */        
    chunk = 1;                                                        
  }                                                                   
                                                                      
out_locked:                                                           
  PIPE_UNLOCK(pipe);                                                  
 200e1b4:	7f ff ea 20 	call  2008a34 <rtems_semaphore_release>        
 200e1b8:	d0 07 60 28 	ld  [ %i5 + 0x28 ], %o0                        
                                                                      
out_nolock:                                                           
#ifdef RTEMS_POSIX_API                                                
  /* Signal SIGPIPE */                                                
  if (ret == -EPIPE)                                                  
 200e1bc:	80 a7 3f e0 	cmp  %i4, -32                                  
 200e1c0:	02 80 00 0b 	be  200e1ec <pipe_write+0x1cc>                 
 200e1c4:	01 00 00 00 	nop                                            
    kill(getpid(), SIGPIPE);                                          
#endif                                                                
                                                                      
  if (written > 0)                                                    
 200e1c8:	80 a6 20 00 	cmp  %i0, 0                                    
 200e1cc:	14 bf ff 9a 	bg  200e034 <pipe_write+0x14>                  
 200e1d0:	01 00 00 00 	nop                                            
    return written;                                                   
  return ret;                                                         
}                                                                     
 200e1d4:	81 c7 e0 08 	ret                                            
 200e1d8:	91 e8 00 1c 	restore  %g0, %i4, %o0                         
    ret = -EPIPE;                                                     
    goto out_locked;                                                  
  }                                                                   
                                                                      
  /* Write of PIPE_BUF bytes or less shall not be interleaved */      
  chunk = count <= pipe->Size ? count : 1;                            
 200e1dc:	10 bf ff a8 	b  200e07c <pipe_write+0x5c>                   
 200e1e0:	a0 10 00 1a 	mov  %i2, %l0                                  
  const void     *buffer,                                             
  size_t          count,                                              
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
  int chunk, chunk1, written = 0, ret = 0;                            
 200e1e4:	10 bf ff f4 	b  200e1b4 <pipe_write+0x194>                  
 200e1e8:	b0 10 20 00 	clr  %i0                                       
                                                                      
out_nolock:                                                           
#ifdef RTEMS_POSIX_API                                                
  /* Signal SIGPIPE */                                                
  if (ret == -EPIPE)                                                  
    kill(getpid(), SIGPIPE);                                          
 200e1ec:	40 00 02 23 	call  200ea78 <getpid>                         
 200e1f0:	01 00 00 00 	nop                                            
 200e1f4:	40 00 03 01 	call  200edf8 <kill>                           
 200e1f8:	92 10 20 0d 	mov  0xd, %o1	! d <PROM_START+0xd>             
#endif                                                                
                                                                      
  if (written > 0)                                                    
 200e1fc:	10 bf ff f4 	b  200e1cc <pipe_write+0x1ac>                  
 200e200:	80 a6 20 00 	cmp  %i0, 0                                    
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_WRITEWAIT(pipe))                                     
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
        /* WARN waitingWriters not restored! */                       
        ret = -EINTR;                                                 
 200e204:	10 bf ff f1 	b  200e1c8 <pipe_write+0x1a8>                  <== NOT EXECUTED
 200e208:	b8 10 3f fc 	mov  -4, %i4                                   <== NOT EXECUTED
    if (chunk > chunk1) {                                             
      memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1);
      memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1);
    }                                                                 
    else                                                              
      memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk);
 200e20c:	90 00 40 08 	add  %g1, %o0, %o0                             
 200e210:	40 00 11 e1 	call  2012994 <memcpy>                         
 200e214:	94 10 00 1c 	mov  %i4, %o2                                  
                                                                      
    pipe->Length += chunk;                                            
 200e218:	10 bf ff da 	b  200e180 <pipe_write+0x160>                  
 200e21c:	c4 07 60 0c 	ld  [ %i5 + 0xc ], %g2                         
    if (pipe->waitingReaders > 0)                                     
      PIPE_WAKEUPREADERS(pipe);                                       
 200e220:	d0 07 60 2c 	ld  [ %i5 + 0x2c ], %o0                        
 200e224:	40 00 05 27 	call  200f6c0 <rtems_barrier_release>          
 200e228:	92 07 bf fc 	add  %fp, -4, %o1                              
    written += chunk;                                                 
 200e22c:	10 bf ff db 	b  200e198 <pipe_write+0x178>                  
 200e230:	b0 06 00 1c 	add  %i0, %i4, %i0                             
                                                                      

0200749c <posix_memalign>: ) { /* * Update call statistics */ MSBUMP(memalign_calls, 1);
 200749c:	05 00 80 91 	sethi  %hi(0x2024400), %g2                     
 20074a0:	84 10 a0 28 	or  %g2, 0x28, %g2	! 2024428 <rtems_malloc_statistics>
 20074a4:	c6 00 a0 08 	ld  [ %g2 + 8 ], %g3                           
 20074a8:	86 00 e0 01 	inc  %g3                                       
 20074ac:	c6 20 a0 08 	st  %g3, [ %g2 + 8 ]                           
                                                                      
  if (((alignment - 1) & alignment) != 0 || (alignment < sizeof(void *)))
 20074b0:	84 02 7f ff 	add  %o1, -1, %g2                              
 20074b4:	80 88 80 09 	btst  %g2, %o1                                 
 20074b8:	22 80 00 04 	be,a   20074c8 <posix_memalign+0x2c>           <== ALWAYS TAKEN
 20074bc:	80 a2 60 03 	cmp  %o1, 3                                    
  /*                                                                  
   *  rtems_memalign does all of the error checking work EXCEPT       
   *  for adding restrictionso on the alignment.                      
   */                                                                 
  return rtems_memalign( pointer, alignment, size );                  
}                                                                     
 20074c0:	81 c3 e0 08 	retl                                           
 20074c4:	90 10 20 16 	mov  0x16, %o0                                 
  /*                                                                  
   *  Update call statistics                                          
   */                                                                 
  MSBUMP(memalign_calls, 1);                                          
                                                                      
  if (((alignment - 1) & alignment) != 0 || (alignment < sizeof(void *)))
 20074c8:	08 bf ff fe 	bleu  20074c0 <posix_memalign+0x24>            
 20074cc:	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 );                  
 20074d0:	82 13 c0 00 	mov  %o7, %g1                                  
 20074d4:	40 00 00 8c 	call  2007704 <rtems_memalign>                 
 20074d8:	9e 10 40 00 	mov  %g1, %o7                                  
                                                                      

0200ba8c <pthread_attr_setschedpolicy>: int pthread_attr_setschedpolicy( pthread_attr_t *attr, int policy ) {
 200ba8c:	82 10 00 08 	mov  %o0, %g1                                  
  if ( !attr || !attr->is_initialized )                               
 200ba90:	80 a0 60 00 	cmp  %g1, 0                                    
 200ba94:	02 80 00 06 	be  200baac <pthread_attr_setschedpolicy+0x20> 
 200ba98:	90 10 20 16 	mov  0x16, %o0                                 
 200ba9c:	c4 00 40 00 	ld  [ %g1 ], %g2                               
 200baa0:	80 a0 a0 00 	cmp  %g2, 0                                    
 200baa4:	12 80 00 04 	bne  200bab4 <pthread_attr_setschedpolicy+0x28>
 200baa8:	80 a2 60 04 	cmp  %o1, 4                                    
      return 0;                                                       
                                                                      
    default:                                                          
      return ENOTSUP;                                                 
  }                                                                   
}                                                                     
 200baac:	81 c3 e0 08 	retl                                           
 200bab0:	01 00 00 00 	nop                                            
)                                                                     
{                                                                     
  if ( !attr || !attr->is_initialized )                               
    return EINVAL;                                                    
                                                                      
  switch ( policy ) {                                                 
 200bab4:	18 80 00 09 	bgu  200bad8 <pthread_attr_setschedpolicy+0x4c>
 200bab8:	84 10 20 01 	mov  1, %g2	! 1 <PROM_START+0x1>               
 200babc:	85 28 80 09 	sll  %g2, %o1, %g2                             
 200bac0:	80 88 a0 17 	btst  0x17, %g2                                
 200bac4:	02 80 00 05 	be  200bad8 <pthread_attr_setschedpolicy+0x4c> <== NEVER TAKEN
 200bac8:	01 00 00 00 	nop                                            
    case SCHED_OTHER:                                                 
    case SCHED_FIFO:                                                  
    case SCHED_RR:                                                    
    case SCHED_SPORADIC:                                              
      attr->schedpolicy = policy;                                     
 200bacc:	d2 20 60 14 	st  %o1, [ %g1 + 0x14 ]                        
      return 0;                                                       
 200bad0:	81 c3 e0 08 	retl                                           
 200bad4:	90 10 20 00 	clr  %o0                                       
                                                                      
    default:                                                          
      return ENOTSUP;                                                 
  }                                                                   
}                                                                     
 200bad8:	81 c3 e0 08 	retl                                           
 200badc:	90 10 20 86 	mov  0x86, %o0                                 
                                                                      

02006870 <pthread_barrier_init>: int pthread_barrier_init( pthread_barrier_t *barrier, const pthread_barrierattr_t *attr, unsigned int count ) {
 2006870:	9d e3 bf 90 	save  %sp, -112, %sp                           
 2006874:	ba 10 00 18 	mov  %i0, %i5                                  
  const pthread_barrierattr_t   *the_attr;                            
                                                                      
  /*                                                                  
   *  Error check parameters                                          
   */                                                                 
  if ( !barrier )                                                     
 2006878:	80 a7 60 00 	cmp  %i5, 0                                    
 200687c:	02 80 00 27 	be  2006918 <pthread_barrier_init+0xa8>        
 2006880:	b0 10 20 16 	mov  0x16, %i0                                 
    return EINVAL;                                                    
                                                                      
  if ( count == 0 )                                                   
 2006884:	80 a6 a0 00 	cmp  %i2, 0                                    
 2006888:	02 80 00 24 	be  2006918 <pthread_barrier_init+0xa8>        
 200688c:	80 a6 60 00 	cmp  %i1, 0                                    
    return EINVAL;                                                    
                                                                      
  /*                                                                  
   * If the user passed in NULL, use the default attributes           
   */                                                                 
  if ( attr ) {                                                       
 2006890:	02 80 00 24 	be  2006920 <pthread_barrier_init+0xb0>        
 2006894:	90 07 bf f8 	add  %fp, -8, %o0                              
  }                                                                   
                                                                      
  /*                                                                  
   * Now start error checking the attributes that we are going to use 
   */                                                                 
  if ( !the_attr->is_initialized )                                    
 2006898:	c2 06 40 00 	ld  [ %i1 ], %g1                               
 200689c:	80 a0 60 00 	cmp  %g1, 0                                    
 20068a0:	02 80 00 1e 	be  2006918 <pthread_barrier_init+0xa8>        
 20068a4:	b0 10 20 16 	mov  0x16, %i0                                 
    return EINVAL;                                                    
                                                                      
  switch ( the_attr->process_shared ) {                               
 20068a8:	c2 06 60 04 	ld  [ %i1 + 4 ], %g1                           
 20068ac:	80 a0 60 00 	cmp  %g1, 0                                    
 20068b0:	12 80 00 1a 	bne  2006918 <pthread_barrier_init+0xa8>       <== NEVER TAKEN
 20068b4:	03 00 80 61 	sethi  %hi(0x2018400), %g1                     
   *                                                                  
   * This rountine increments the thread dispatch level               
   */                                                                 
  RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
  {                                                                   
    _Thread_Dispatch_disable_level++;                                 
 20068b8:	c4 00 60 90 	ld  [ %g1 + 0x90 ], %g2	! 2018490 <_Thread_Dispatch_disable_level>
  }                                                                   
                                                                      
  /*                                                                  
   * Convert from POSIX attributes to Core Barrier attributes         
   */                                                                 
  the_attributes.discipline    = CORE_BARRIER_AUTOMATIC_RELEASE;      
 20068bc:	c0 27 bf f0 	clr  [ %fp + -16 ]                             
 20068c0:	84 00 a0 01 	inc  %g2                                       
  the_attributes.maximum_count = count;                               
 20068c4:	f4 27 bf f4 	st  %i2, [ %fp + -12 ]                         
 20068c8:	c4 20 60 90 	st  %g2, [ %g1 + 0x90 ]                        
    return _Thread_Dispatch_disable_level;                            
 20068cc:	c2 00 60 90 	ld  [ %g1 + 0x90 ], %g1                        
 *  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 *)                                    
 20068d0:	37 00 80 62 	sethi  %hi(0x2018800), %i3                     
 20068d4:	40 00 08 c3 	call  2008be0 <_Objects_Allocate>              
 20068d8:	90 16 e0 50 	or  %i3, 0x50, %o0	! 2018850 <_POSIX_Barrier_Information>
   */                                                                 
  _Thread_Disable_dispatch();             /* prevents deletion */     
                                                                      
  the_barrier = _POSIX_Barrier_Allocate();                            
                                                                      
  if ( !the_barrier ) {                                               
 20068dc:	b8 92 20 00 	orcc  %o0, 0, %i4                              
 20068e0:	02 80 00 14 	be  2006930 <pthread_barrier_init+0xc0>        
 20068e4:	90 07 20 10 	add  %i4, 0x10, %o0                            
    _Thread_Enable_dispatch();                                        
    return EAGAIN;                                                    
  }                                                                   
                                                                      
  _CORE_barrier_Initialize( &the_barrier->Barrier, &the_attributes ); 
 20068e8:	40 00 06 0a 	call  2008110 <_CORE_barrier_Initialize>       
 20068ec:	92 07 bf f0 	add  %fp, -16, %o1                             
  Objects_Information *information,                                   
  Objects_Control     *the_object,                                    
  uint32_t             name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
 20068f0:	c4 17 20 0a 	lduh  [ %i4 + 0xa ], %g2                       
   * Exit the critical section and return the user an operational barrier
   */                                                                 
  *barrier = the_barrier->Object.id;                                  
  _Thread_Enable_dispatch();                                          
  return 0;                                                           
}                                                                     
 20068f4:	b6 16 e0 50 	or  %i3, 0x50, %i3                             
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 20068f8:	c6 06 e0 1c 	ld  [ %i3 + 0x1c ], %g3                        
  Objects_Information *information,                                   
  Objects_Control     *the_object,                                    
  uint32_t             name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
 20068fc:	c2 07 20 08 	ld  [ %i4 + 8 ], %g1                           
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 2006900:	85 28 a0 02 	sll  %g2, 2, %g2                               
 2006904:	f8 20 c0 02 	st  %i4, [ %g3 + %g2 ]                         
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  /* ASSERT: information->is_string == false */                       
  the_object->name.name_u32 = name;                                   
 2006908:	c0 27 20 0c 	clr  [ %i4 + 0xc ]                             
  );                                                                  
                                                                      
  /*                                                                  
   * Exit the critical section and return the user an operational barrier
   */                                                                 
  *barrier = the_barrier->Object.id;                                  
 200690c:	c2 27 40 00 	st  %g1, [ %i5 ]                               
  _Thread_Enable_dispatch();                                          
 2006910:	40 00 0d ca 	call  200a038 <_Thread_Enable_dispatch>        
 2006914:	b0 10 20 00 	clr  %i0                                       
  return 0;                                                           
}                                                                     
 2006918:	81 c7 e0 08 	ret                                            
 200691c:	81 e8 00 00 	restore                                        
   * If the user passed in NULL, use the default attributes           
   */                                                                 
  if ( attr ) {                                                       
    the_attr = attr;                                                  
  } else {                                                            
    (void) pthread_barrierattr_init( &my_attr );                      
 2006920:	7f ff ff 9c 	call  2006790 <pthread_barrierattr_init>       
 2006924:	b2 07 bf f8 	add  %fp, -8, %i1                              
  }                                                                   
                                                                      
  /*                                                                  
   * Now start error checking the attributes that we are going to use 
   */                                                                 
  if ( !the_attr->is_initialized )                                    
 2006928:	10 bf ff dd 	b  200689c <pthread_barrier_init+0x2c>         
 200692c:	c2 06 40 00 	ld  [ %i1 ], %g1                               
  _Thread_Disable_dispatch();             /* prevents deletion */     
                                                                      
  the_barrier = _POSIX_Barrier_Allocate();                            
                                                                      
  if ( !the_barrier ) {                                               
    _Thread_Enable_dispatch();                                        
 2006930:	40 00 0d c2 	call  200a038 <_Thread_Enable_dispatch>        
 2006934:	b0 10 20 0b 	mov  0xb, %i0                                  
    return EAGAIN;                                                    
 2006938:	81 c7 e0 08 	ret                                            
 200693c:	81 e8 00 00 	restore                                        
                                                                      

0200610c <pthread_cleanup_push>: void pthread_cleanup_push( void (*routine)( void * ), void *arg ) {
 200610c:	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 )                                                     
 2006110:	80 a6 20 00 	cmp  %i0, 0                                    
 2006114:	02 80 00 16 	be  200616c <pthread_cleanup_push+0x60>        
 2006118:	01 00 00 00 	nop                                            
   *                                                                  
   * This rountine increments the thread dispatch level               
   */                                                                 
  RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
  {                                                                   
    _Thread_Dispatch_disable_level++;                                 
 200611c:	03 00 80 62 	sethi  %hi(0x2018800), %g1                     
 2006120:	c4 00 61 80 	ld  [ %g1 + 0x180 ], %g2	! 2018980 <_Thread_Dispatch_disable_level>
 2006124:	84 00 a0 01 	inc  %g2                                       
 2006128:	c4 20 61 80 	st  %g2, [ %g1 + 0x180 ]                       
    return _Thread_Dispatch_disable_level;                            
 200612c:	c2 00 61 80 	ld  [ %g1 + 0x180 ], %g1                       
    return;                                                           
                                                                      
  _Thread_Disable_dispatch();                                         
  handler = _Workspace_Allocate( sizeof( POSIX_Cancel_Handler_control ) );
 2006130:	40 00 12 d2 	call  200ac78 <_Workspace_Allocate>            
 2006134:	90 10 20 10 	mov  0x10, %o0                                 
                                                                      
  if ( handler ) {                                                    
 2006138:	80 a2 20 00 	cmp  %o0, 0                                    
 200613c:	02 80 00 0a 	be  2006164 <pthread_cleanup_push+0x58>        <== NEVER TAKEN
 2006140:	01 00 00 00 	nop                                            
    thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
 2006144:	03 00 80 63 	sethi  %hi(0x2018c00), %g1                     
 2006148:	c2 00 62 c4 	ld  [ %g1 + 0x2c4 ], %g1	! 2018ec4 <_Per_CPU_Information+0xc>
    handler_stack = &thread_support->Cancellation_Handlers;           
                                                                      
    handler->routine = routine;                                       
    handler->arg = arg;                                               
                                                                      
    _Chain_Append( handler_stack, &handler->Node );                   
 200614c:	92 10 00 08 	mov  %o0, %o1                                  
  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;           
 2006150:	c2 00 61 5c 	ld  [ %g1 + 0x15c ], %g1                       
                                                                      
    handler->routine = routine;                                       
 2006154:	f0 22 20 08 	st  %i0, [ %o0 + 8 ]                           
    handler->arg = arg;                                               
 2006158:	f2 22 20 0c 	st  %i1, [ %o0 + 0xc ]                         
                                                                      
    _Chain_Append( handler_stack, &handler->Node );                   
 200615c:	40 00 06 3c 	call  2007a4c <_Chain_Append>                  
 2006160:	90 00 60 e4 	add  %g1, 0xe4, %o0                            
  }                                                                   
  _Thread_Enable_dispatch();                                          
 2006164:	40 00 0d fa 	call  200994c <_Thread_Enable_dispatch>        
 2006168:	81 e8 00 00 	restore                                        
 200616c:	81 c7 e0 08 	ret                                            
 2006170:	81 e8 00 00 	restore                                        
                                                                      

02007078 <pthread_cond_init>: int pthread_cond_init( pthread_cond_t *cond, const pthread_condattr_t *attr ) {
 2007078:	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;                                        
 200707c:	80 a6 60 00 	cmp  %i1, 0                                    
 2007080:	02 80 00 27 	be  200711c <pthread_cond_init+0xa4>           
 2007084:	ba 10 00 18 	mov  %i0, %i5                                  
  else        the_attr = &_POSIX_Condition_variables_Default_attributes;
                                                                      
  /*                                                                  
   *  Be careful about attributes when global!!!                      
   */                                                                 
  if ( the_attr->process_shared == PTHREAD_PROCESS_SHARED )           
 2007088:	c2 06 60 04 	ld  [ %i1 + 4 ], %g1                           
 200708c:	80 a0 60 01 	cmp  %g1, 1                                    
 2007090:	02 80 00 21 	be  2007114 <pthread_cond_init+0x9c>           <== NEVER TAKEN
 2007094:	b0 10 20 16 	mov  0x16, %i0                                 
    return EINVAL;                                                    
                                                                      
  if ( !the_attr->is_initialized )                                    
 2007098:	c2 06 40 00 	ld  [ %i1 ], %g1                               
 200709c:	80 a0 60 00 	cmp  %g1, 0                                    
 20070a0:	02 80 00 1d 	be  2007114 <pthread_cond_init+0x9c>           
 20070a4:	03 00 80 65 	sethi  %hi(0x2019400), %g1                     
   *                                                                  
   * This rountine increments the thread dispatch level               
   */                                                                 
  RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
  {                                                                   
    _Thread_Dispatch_disable_level++;                                 
 20070a8:	c4 00 61 d0 	ld  [ %g1 + 0x1d0 ], %g2	! 20195d0 <_Thread_Dispatch_disable_level>
 20070ac:	84 00 a0 01 	inc  %g2                                       
 20070b0:	c4 20 61 d0 	st  %g2, [ %g1 + 0x1d0 ]                       
    return _Thread_Dispatch_disable_level;                            
 20070b4:	c2 00 61 d0 	ld  [ %g1 + 0x1d0 ], %g1                       
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE POSIX_Condition_variables_Control                
  *_POSIX_Condition_variables_Allocate( void )                        
{                                                                     
  return (POSIX_Condition_variables_Control *)                        
 20070b8:	37 00 80 66 	sethi  %hi(0x2019800), %i3                     
 20070bc:	40 00 0a 31 	call  2009980 <_Objects_Allocate>              
 20070c0:	90 16 e2 28 	or  %i3, 0x228, %o0	! 2019a28 <_POSIX_Condition_variables_Information>
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  the_cond = _POSIX_Condition_variables_Allocate();                   
                                                                      
  if ( !the_cond ) {                                                  
 20070c4:	b8 92 20 00 	orcc  %o0, 0, %i4                              
 20070c8:	02 80 00 18 	be  2007128 <pthread_cond_init+0xb0>           
 20070cc:	90 07 20 18 	add  %i4, 0x18, %o0                            
    _Thread_Enable_dispatch();                                        
    return ENOMEM;                                                    
  }                                                                   
                                                                      
  the_cond->process_shared  = the_attr->process_shared;               
 20070d0:	c2 06 60 04 	ld  [ %i1 + 4 ], %g1                           
                                                                      
  the_cond->Mutex = POSIX_CONDITION_VARIABLES_NO_MUTEX;               
                                                                      
  _Thread_queue_Initialize(                                           
 20070d4:	92 10 20 00 	clr  %o1                                       
 20070d8:	15 04 00 02 	sethi  %hi(0x10000800), %o2                    
 20070dc:	96 10 20 74 	mov  0x74, %o3                                 
  if ( !the_cond ) {                                                  
    _Thread_Enable_dispatch();                                        
    return ENOMEM;                                                    
  }                                                                   
                                                                      
  the_cond->process_shared  = the_attr->process_shared;               
 20070e0:	c2 27 20 10 	st  %g1, [ %i4 + 0x10 ]                        
                                                                      
  the_cond->Mutex = POSIX_CONDITION_VARIABLES_NO_MUTEX;               
                                                                      
  _Thread_queue_Initialize(                                           
 20070e4:	40 00 11 68 	call  200b684 <_Thread_queue_Initialize>       
 20070e8:	c0 27 20 14 	clr  [ %i4 + 0x14 ]                            
  Objects_Information *information,                                   
  Objects_Control     *the_object,                                    
  uint32_t             name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
 20070ec:	c4 17 20 0a 	lduh  [ %i4 + 0xa ], %g2                       
  *cond = the_cond->Object.id;                                        
                                                                      
  _Thread_Enable_dispatch();                                          
                                                                      
  return 0;                                                           
}                                                                     
 20070f0:	b6 16 e2 28 	or  %i3, 0x228, %i3                            
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 20070f4:	c6 06 e0 1c 	ld  [ %i3 + 0x1c ], %g3                        
  Objects_Information *information,                                   
  Objects_Control     *the_object,                                    
  uint32_t             name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
 20070f8:	c2 07 20 08 	ld  [ %i4 + 8 ], %g1                           
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 20070fc:	85 28 a0 02 	sll  %g2, 2, %g2                               
 2007100:	f8 20 c0 02 	st  %i4, [ %g3 + %g2 ]                         
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  /* ASSERT: information->is_string == false */                       
  the_object->name.name_u32 = name;                                   
 2007104:	c0 27 20 0c 	clr  [ %i4 + 0xc ]                             
    &_POSIX_Condition_variables_Information,                          
    &the_cond->Object,                                                
    0                                                                 
  );                                                                  
                                                                      
  *cond = the_cond->Object.id;                                        
 2007108:	c2 27 40 00 	st  %g1, [ %i5 ]                               
                                                                      
  _Thread_Enable_dispatch();                                          
 200710c:	40 00 0f 33 	call  200add8 <_Thread_Enable_dispatch>        
 2007110:	b0 10 20 00 	clr  %i0                                       
                                                                      
  return 0;                                                           
}                                                                     
 2007114:	81 c7 e0 08 	ret                                            
 2007118:	81 e8 00 00 	restore                                        
{                                                                     
  POSIX_Condition_variables_Control   *the_cond;                      
  const pthread_condattr_t            *the_attr;                      
                                                                      
  if ( attr ) the_attr = attr;                                        
  else        the_attr = &_POSIX_Condition_variables_Default_attributes;
 200711c:	33 00 80 5f 	sethi  %hi(0x2017c00), %i1                     
 2007120:	10 bf ff da 	b  2007088 <pthread_cond_init+0x10>            
 2007124:	b2 16 61 94 	or  %i1, 0x194, %i1	! 2017d94 <_POSIX_Condition_variables_Default_attributes>
  _Thread_Disable_dispatch();                                         
                                                                      
  the_cond = _POSIX_Condition_variables_Allocate();                   
                                                                      
  if ( !the_cond ) {                                                  
    _Thread_Enable_dispatch();                                        
 2007128:	40 00 0f 2c 	call  200add8 <_Thread_Enable_dispatch>        
 200712c:	b0 10 20 0c 	mov  0xc, %i0                                  
    return ENOMEM;                                                    
 2007130:	81 c7 e0 08 	ret                                            
 2007134:	81 e8 00 00 	restore                                        
                                                                      

02006edc <pthread_condattr_destroy>: */ int pthread_condattr_destroy( pthread_condattr_t *attr ) {
 2006edc:	82 10 00 08 	mov  %o0, %g1                                  
  if ( !attr || attr->is_initialized == false )                       
 2006ee0:	80 a0 60 00 	cmp  %g1, 0                                    
 2006ee4:	02 80 00 06 	be  2006efc <pthread_condattr_destroy+0x20>    
 2006ee8:	90 10 20 16 	mov  0x16, %o0                                 
 2006eec:	c4 00 40 00 	ld  [ %g1 ], %g2                               
 2006ef0:	80 a0 a0 00 	cmp  %g2, 0                                    
 2006ef4:	32 80 00 04 	bne,a   2006f04 <pthread_condattr_destroy+0x28><== ALWAYS TAKEN
 2006ef8:	c0 20 40 00 	clr  [ %g1 ]                                   
    return EINVAL;                                                    
                                                                      
  attr->is_initialized = false;                                       
  return 0;                                                           
}                                                                     
 2006efc:	81 c3 e0 08 	retl                                           
 2006f00:	01 00 00 00 	nop                                            
 2006f04:	81 c3 e0 08 	retl                                           
 2006f08:	90 10 20 00 	clr  %o0	! 0 <PROM_START>                      
                                                                      

020065b4 <pthread_create>: pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine)( void * ), void *arg ) {
 20065b4:	9d e3 bf 58 	save  %sp, -168, %sp                           
 20065b8:	ba 10 00 18 	mov  %i0, %i5                                  
  int                                 schedpolicy = SCHED_RR;         
  struct sched_param                  schedparam;                     
  Objects_Name                        name;                           
  int                                 rc;                             
                                                                      
  if ( !start_routine )                                               
 20065bc:	80 a6 a0 00 	cmp  %i2, 0                                    
 20065c0:	02 80 00 63 	be  200674c <pthread_create+0x198>             
 20065c4:	b0 10 20 0e 	mov  0xe, %i0                                  
    return EFAULT;                                                    
                                                                      
  the_attr = (attr) ? attr : &_POSIX_Threads_Default_attributes;      
 20065c8:	80 a6 60 00 	cmp  %i1, 0                                    
 20065cc:	22 80 00 62 	be,a   2006754 <pthread_create+0x1a0>          
 20065d0:	33 00 80 72 	sethi  %hi(0x201c800), %i1                     
                                                                      
  if ( !the_attr->is_initialized )                                    
 20065d4:	c2 06 40 00 	ld  [ %i1 ], %g1                               
 20065d8:	80 a0 60 00 	cmp  %g1, 0                                    
 20065dc:	02 80 00 5c 	be  200674c <pthread_create+0x198>             
 20065e0:	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) )
 20065e4:	c2 06 60 04 	ld  [ %i1 + 4 ], %g1                           
 20065e8:	80 a0 60 00 	cmp  %g1, 0                                    
 20065ec:	02 80 00 07 	be  2006608 <pthread_create+0x54>              
 20065f0:	03 00 80 75 	sethi  %hi(0x201d400), %g1                     
 20065f4:	c4 06 60 08 	ld  [ %i1 + 8 ], %g2                           
 20065f8:	c2 00 62 e0 	ld  [ %g1 + 0x2e0 ], %g1                       
 20065fc:	80 a0 80 01 	cmp  %g2, %g1                                  
 2006600:	0a 80 00 83 	bcs  200680c <pthread_create+0x258>            
 2006604:	01 00 00 00 	nop                                            
   *  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 ) {                                 
 2006608:	c2 06 60 10 	ld  [ %i1 + 0x10 ], %g1                        
 200660c:	80 a0 60 01 	cmp  %g1, 1                                    
 2006610:	02 80 00 53 	be  200675c <pthread_create+0x1a8>             
 2006614:	80 a0 60 02 	cmp  %g1, 2                                    
 2006618:	12 80 00 4d 	bne  200674c <pthread_create+0x198>            
 200661c:	b0 10 20 16 	mov  0x16, %i0                                 
      schedparam  = api->schedparam;                                  
      break;                                                          
                                                                      
    case PTHREAD_EXPLICIT_SCHED:                                      
      schedpolicy = the_attr->schedpolicy;                            
      schedparam  = the_attr->schedparam;                             
 2006620:	da 06 60 18 	ld  [ %i1 + 0x18 ], %o5                        
 2006624:	de 06 60 1c 	ld  [ %i1 + 0x1c ], %o7                        
 2006628:	f0 06 60 20 	ld  [ %i1 + 0x20 ], %i0                        
 200662c:	c8 06 60 24 	ld  [ %i1 + 0x24 ], %g4                        
 2006630:	c6 06 60 28 	ld  [ %i1 + 0x28 ], %g3                        
 2006634:	c4 06 60 2c 	ld  [ %i1 + 0x2c ], %g2                        
 2006638:	c2 06 60 30 	ld  [ %i1 + 0x30 ], %g1                        
      schedpolicy = api->schedpolicy;                                 
      schedparam  = api->schedparam;                                  
      break;                                                          
                                                                      
    case PTHREAD_EXPLICIT_SCHED:                                      
      schedpolicy = the_attr->schedpolicy;                            
 200663c:	f8 06 60 14 	ld  [ %i1 + 0x14 ], %i4                        
      schedparam  = the_attr->schedparam;                             
 2006640:	da 27 bf dc 	st  %o5, [ %fp + -36 ]                         
 2006644:	de 27 bf e0 	st  %o7, [ %fp + -32 ]                         
 2006648:	f0 27 bf e4 	st  %i0, [ %fp + -28 ]                         
 200664c:	c8 27 bf e8 	st  %g4, [ %fp + -24 ]                         
 2006650:	c6 27 bf ec 	st  %g3, [ %fp + -20 ]                         
 2006654:	c4 27 bf f0 	st  %g2, [ %fp + -16 ]                         
 2006658:	c2 27 bf f4 	st  %g1, [ %fp + -12 ]                         
                                                                      
  /*                                                                  
   *  Check the contentionscope since rtems only supports PROCESS wide
   *  contention (i.e. no system wide contention).                    
   */                                                                 
  if ( the_attr->contentionscope != PTHREAD_SCOPE_PROCESS )           
 200665c:	c2 06 60 0c 	ld  [ %i1 + 0xc ], %g1                         
 2006660:	80 a0 60 00 	cmp  %g1, 0                                    
 2006664:	12 80 00 3a 	bne  200674c <pthread_create+0x198>            
 2006668:	b0 10 20 86 	mov  0x86, %i0                                 
    return ENOTSUP;                                                   
                                                                      
  /*                                                                  
   *  Interpret the scheduling parameters.                            
   */                                                                 
  if ( !_POSIX_Priority_Is_valid( schedparam.sched_priority ) )       
 200666c:	d0 07 bf dc 	ld  [ %fp + -36 ], %o0                         
 2006670:	40 00 1b fd 	call  200d664 <_POSIX_Priority_Is_valid>       
 2006674:	b0 10 20 16 	mov  0x16, %i0                                 
 2006678:	80 8a 20 ff 	btst  0xff, %o0                                
 200667c:	02 80 00 34 	be  200674c <pthread_create+0x198>             <== NEVER TAKEN
 2006680:	03 00 80 75 	sethi  %hi(0x201d400), %g1                     
    return EINVAL;                                                    
                                                                      
  core_priority = _POSIX_Priority_To_core( schedparam.sched_priority );
 2006684:	e4 07 bf dc 	ld  [ %fp + -36 ], %l2                         
                                                                      
RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Priority_To_core(        
  int priority                                                        
)                                                                     
{                                                                     
  return (Priority_Control) (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1);
 2006688:	e6 08 62 dc 	ldub  [ %g1 + 0x2dc ], %l3                     
                                                                      
  /*                                                                  
   *  Set the core scheduling policy information.                     
   */                                                                 
  rc = _POSIX_Thread_Translate_sched_param(                           
 200668c:	90 10 00 1c 	mov  %i4, %o0                                  
 2006690:	92 07 bf dc 	add  %fp, -36, %o1                             
 2006694:	94 07 bf f8 	add  %fp, -8, %o2                              
 2006698:	40 00 1c 00 	call  200d698 <_POSIX_Thread_Translate_sched_param>
 200669c:	96 07 bf fc 	add  %fp, -4, %o3                              
    schedpolicy,                                                      
    &schedparam,                                                      
    &budget_algorithm,                                                
    &budget_callout                                                   
  );                                                                  
  if ( rc )                                                           
 20066a0:	b0 92 20 00 	orcc  %o0, 0, %i0                              
 20066a4:	12 80 00 2a 	bne  200674c <pthread_create+0x198>            
 20066a8:	23 00 80 79 	sethi  %hi(0x201e400), %l1                     
  #endif                                                              
                                                                      
  /*                                                                  
   *  Lock the allocator mutex for protection                         
   */                                                                 
  _RTEMS_Lock_allocator();                                            
 20066ac:	d0 04 60 64 	ld  [ %l1 + 0x64 ], %o0	! 201e464 <_RTEMS_Allocator_Mutex>
 20066b0:	40 00 06 56 	call  2008008 <_API_Mutex_Lock>                
 20066b4:	29 00 80 79 	sethi  %hi(0x201e400), %l4                     
 *  _POSIX_Threads_Allocate                                           
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE Thread_Control *_POSIX_Threads_Allocate( void )  
{                                                                     
  return (Thread_Control *) _Objects_Allocate( &_POSIX_Threads_Information );
 20066b8:	40 00 09 1f 	call  2008b34 <_Objects_Allocate>              
 20066bc:	90 15 22 00 	or  %l4, 0x200, %o0	! 201e600 <_POSIX_Threads_Information>
   *  Allocate the thread control block.                              
   *                                                                  
   *  NOTE:  Global threads are not currently supported.              
   */                                                                 
  the_thread = _POSIX_Threads_Allocate();                             
  if ( !the_thread ) {                                                
 20066c0:	a0 92 20 00 	orcc  %o0, 0, %l0                              
 20066c4:	02 80 00 1f 	be  2006740 <pthread_create+0x18c>             
 20066c8:	05 00 80 75 	sethi  %hi(0x201d400), %g2                     
                                                                      
  /*                                                                  
   *  Initialize the core thread for this task.                       
   */                                                                 
  name.name_p = NULL;   /* posix threads don't have a name by default */
  status = _Thread_Initialize(                                        
 20066cc:	c2 06 60 08 	ld  [ %i1 + 8 ], %g1                           
                                                                      
static inline size_t _POSIX_Threads_Ensure_minimum_stack (            
  size_t size                                                         
)                                                                     
{                                                                     
  if ( size >= PTHREAD_MINIMUM_STACK_SIZE )                           
 20066d0:	d6 00 a2 e0 	ld  [ %g2 + 0x2e0 ], %o3                       
                                                                      
  /*                                                                  
   *  Initialize the core thread for this task.                       
   */                                                                 
  name.name_p = NULL;   /* posix threads don't have a name by default */
  status = _Thread_Initialize(                                        
 20066d4:	c0 27 bf d4 	clr  [ %fp + -44 ]                             
                                                                      
static inline size_t _POSIX_Threads_Ensure_minimum_stack (            
  size_t size                                                         
)                                                                     
{                                                                     
  if ( size >= PTHREAD_MINIMUM_STACK_SIZE )                           
 20066d8:	97 2a e0 01 	sll  %o3, 1, %o3                               
                                                                      
  /*                                                                  
   *  Initialize the core thread for this task.                       
   */                                                                 
  name.name_p = NULL;   /* posix threads don't have a name by default */
  status = _Thread_Initialize(                                        
 20066dc:	80 a2 c0 01 	cmp  %o3, %g1                                  
 20066e0:	1a 80 00 03 	bcc  20066ec <pthread_create+0x138>            
 20066e4:	d4 06 60 04 	ld  [ %i1 + 4 ], %o2                           
 20066e8:	96 10 00 01 	mov  %g1, %o3                                  
 20066ec:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
 20066f0:	9a 0c e0 ff 	and  %l3, 0xff, %o5                            
 20066f4:	c2 23 a0 60 	st  %g1, [ %sp + 0x60 ]                        
 20066f8:	82 10 20 01 	mov  1, %g1                                    
 20066fc:	c2 23 a0 5c 	st  %g1, [ %sp + 0x5c ]                        
 2006700:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 2006704:	c0 23 a0 68 	clr  [ %sp + 0x68 ]                            
 2006708:	c2 23 a0 64 	st  %g1, [ %sp + 0x64 ]                        
 200670c:	82 07 bf d4 	add  %fp, -44, %g1                             
 2006710:	90 15 22 00 	or  %l4, 0x200, %o0                            
 2006714:	c2 23 a0 6c 	st  %g1, [ %sp + 0x6c ]                        
 2006718:	92 10 00 10 	mov  %l0, %o1                                  
 200671c:	98 10 20 01 	mov  1, %o4                                    
 2006720:	40 00 0e 54 	call  200a070 <_Thread_Initialize>             
 2006724:	9a 23 40 12 	sub  %o5, %l2, %o5                             
    budget_callout,                                                   
    0,                    /* isr level */                             
    name                  /* posix threads don't have a name */       
  );                                                                  
                                                                      
  if ( !status ) {                                                    
 2006728:	80 8a 20 ff 	btst  0xff, %o0                                
 200672c:	12 80 00 1f 	bne  20067a8 <pthread_create+0x1f4>            
 2006730:	11 00 80 79 	sethi  %hi(0x201e400), %o0                     
                                                                      
RTEMS_INLINE_ROUTINE void _POSIX_Threads_Free (                       
  Thread_Control *the_pthread                                         
)                                                                     
{                                                                     
  _Objects_Free( &_POSIX_Threads_Information, &the_pthread->Object ); 
 2006734:	92 10 00 10 	mov  %l0, %o1                                  
 2006738:	40 00 09 e9 	call  2008edc <_Objects_Free>                  
 200673c:	90 12 22 00 	or  %o0, 0x200, %o0                            
    _POSIX_Threads_Free( the_thread );                                
    _RTEMS_Unlock_allocator();                                        
 2006740:	d0 04 60 64 	ld  [ %l1 + 0x64 ], %o0                        
 2006744:	40 00 06 46 	call  200805c <_API_Mutex_Unlock>              
 2006748:	b0 10 20 0b 	mov  0xb, %i0                                  
    return EAGAIN;                                                    
 200674c:	81 c7 e0 08 	ret                                            
 2006750:	81 e8 00 00 	restore                                        
  int                                 rc;                             
                                                                      
  if ( !start_routine )                                               
    return EFAULT;                                                    
                                                                      
  the_attr = (attr) ? attr : &_POSIX_Threads_Default_attributes;      
 2006754:	10 bf ff a0 	b  20065d4 <pthread_create+0x20>               
 2006758:	b2 16 61 ac 	or  %i1, 0x1ac, %i1                            
   *  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 ];    
 200675c:	03 00 80 7a 	sethi  %hi(0x201e800), %g1                     
 2006760:	c2 00 61 04 	ld  [ %g1 + 0x104 ], %g1	! 201e904 <_Per_CPU_Information+0xc>
 2006764:	c2 00 61 5c 	ld  [ %g1 + 0x15c ], %g1                       
      schedpolicy = api->schedpolicy;                                 
      schedparam  = api->schedparam;                                  
 2006768:	d8 00 60 88 	ld  [ %g1 + 0x88 ], %o4                        
 200676c:	da 00 60 8c 	ld  [ %g1 + 0x8c ], %o5                        
 2006770:	de 00 60 90 	ld  [ %g1 + 0x90 ], %o7                        
 2006774:	f0 00 60 94 	ld  [ %g1 + 0x94 ], %i0                        
 2006778:	c8 00 60 98 	ld  [ %g1 + 0x98 ], %g4                        
 200677c:	c6 00 60 9c 	ld  [ %g1 + 0x9c ], %g3                        
 2006780:	c4 00 60 a0 	ld  [ %g1 + 0xa0 ], %g2                        
   *  attributes structure.                                           
   */                                                                 
  switch ( the_attr->inheritsched ) {                                 
    case PTHREAD_INHERIT_SCHED:                                       
      api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];    
      schedpolicy = api->schedpolicy;                                 
 2006784:	f8 00 60 84 	ld  [ %g1 + 0x84 ], %i4                        
      schedparam  = api->schedparam;                                  
 2006788:	d8 27 bf dc 	st  %o4, [ %fp + -36 ]                         
 200678c:	da 27 bf e0 	st  %o5, [ %fp + -32 ]                         
 2006790:	de 27 bf e4 	st  %o7, [ %fp + -28 ]                         
 2006794:	f0 27 bf e8 	st  %i0, [ %fp + -24 ]                         
 2006798:	c8 27 bf ec 	st  %g4, [ %fp + -20 ]                         
 200679c:	c6 27 bf f0 	st  %g3, [ %fp + -16 ]                         
      break;                                                          
 20067a0:	10 bf ff af 	b  200665c <pthread_create+0xa8>               
 20067a4:	c4 27 bf f4 	st  %g2, [ %fp + -12 ]                         
  }                                                                   
                                                                      
  /*                                                                  
   *  finish initializing the per API structure                       
   */                                                                 
  api = the_thread->API_Extensions[ THREAD_API_POSIX ];               
 20067a8:	e4 04 21 5c 	ld  [ %l0 + 0x15c ], %l2                       
                                                                      
  api->Attributes  = *the_attr;                                       
 20067ac:	92 10 00 19 	mov  %i1, %o1                                  
 20067b0:	94 10 20 40 	mov  0x40, %o2                                 
 20067b4:	40 00 28 e3 	call  2010b40 <memcpy>                         
 20067b8:	90 10 00 12 	mov  %l2, %o0                                  
  api->detachstate = the_attr->detachstate;                           
 20067bc:	c2 06 60 3c 	ld  [ %i1 + 0x3c ], %g1                        
  api->schedpolicy = schedpolicy;                                     
  api->schedparam  = schedparam;                                      
 20067c0:	92 07 bf dc 	add  %fp, -36, %o1                             
 20067c4:	94 10 20 1c 	mov  0x1c, %o2                                 
   *  finish initializing the per API structure                       
   */                                                                 
  api = the_thread->API_Extensions[ THREAD_API_POSIX ];               
                                                                      
  api->Attributes  = *the_attr;                                       
  api->detachstate = the_attr->detachstate;                           
 20067c8:	c2 24 a0 40 	st  %g1, [ %l2 + 0x40 ]                        
  api->schedpolicy = schedpolicy;                                     
 20067cc:	f8 24 a0 84 	st  %i4, [ %l2 + 0x84 ]                        
  api->schedparam  = schedparam;                                      
 20067d0:	40 00 28 dc 	call  2010b40 <memcpy>                         
 20067d4:	90 04 a0 88 	add  %l2, 0x88, %o0                            
                                                                      
  /*                                                                  
   *  POSIX threads are allocated and started in one operation.       
   */                                                                 
  status = _Thread_Start(                                             
 20067d8:	90 10 00 10 	mov  %l0, %o0                                  
 20067dc:	92 10 20 01 	mov  1, %o1                                    
 20067e0:	94 10 00 1a 	mov  %i2, %o2                                  
 20067e4:	96 10 00 1b 	mov  %i3, %o3                                  
 20067e8:	40 00 10 a6 	call  200aa80 <_Thread_Start>                  
 20067ec:	98 10 20 00 	clr  %o4                                       
      _RTEMS_Unlock_allocator();                                      
      return EINVAL;                                                  
    }                                                                 
  #endif                                                              
                                                                      
  if ( schedpolicy == SCHED_SPORADIC ) {                              
 20067f0:	80 a7 20 04 	cmp  %i4, 4                                    
 20067f4:	02 80 00 08 	be  2006814 <pthread_create+0x260>             
 20067f8:	01 00 00 00 	nop                                            
  }                                                                   
                                                                      
  /*                                                                  
   *  Return the id and indicate we successfully created the thread   
   */                                                                 
  *thread = the_thread->Object.id;                                    
 20067fc:	c2 04 20 08 	ld  [ %l0 + 8 ], %g1                           
                                                                      
  _RTEMS_Unlock_allocator();                                          
 2006800:	d0 04 60 64 	ld  [ %l1 + 0x64 ], %o0                        
 2006804:	40 00 06 16 	call  200805c <_API_Mutex_Unlock>              
 2006808:	c2 27 40 00 	st  %g1, [ %i5 ]                               
  return 0;                                                           
 200680c:	81 c7 e0 08 	ret                                            
 2006810:	81 e8 00 00 	restore                                        
      return EINVAL;                                                  
    }                                                                 
  #endif                                                              
                                                                      
  if ( schedpolicy == SCHED_SPORADIC ) {                              
    _Watchdog_Insert_ticks(                                           
 2006814:	40 00 10 f0 	call  200abd4 <_Timespec_To_ticks>             
 2006818:	90 04 a0 90 	add  %l2, 0x90, %o0                            
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 200681c:	92 04 a0 a8 	add  %l2, 0xa8, %o1                            
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
 2006820:	d0 24 a0 b4 	st  %o0, [ %l2 + 0xb4 ]                        
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 2006824:	11 00 80 79 	sethi  %hi(0x201e400), %o0                     
 2006828:	40 00 11 db 	call  200af94 <_Watchdog_Insert>               
 200682c:	90 12 20 7c 	or  %o0, 0x7c, %o0	! 201e47c <_Watchdog_Ticks_chain>
  }                                                                   
                                                                      
  /*                                                                  
   *  Return the id and indicate we successfully created the thread   
   */                                                                 
  *thread = the_thread->Object.id;                                    
 2006830:	10 bf ff f4 	b  2006800 <pthread_create+0x24c>              
 2006834:	c2 04 20 08 	ld  [ %l0 + 8 ], %g1                           
                                                                      

0201a854 <pthread_kill>: int pthread_kill( pthread_t thread, int sig ) {
 201a854:	9d e3 bf 98 	save  %sp, -104, %sp                           
  POSIX_API_Control  *api;                                            
  Thread_Control     *the_thread;                                     
  Objects_Locations  location;                                        
                                                                      
  if ( !sig )                                                         
 201a858:	80 a6 60 00 	cmp  %i1, 0                                    
 201a85c:	02 80 00 2d 	be  201a910 <pthread_kill+0xbc>                
 201a860:	b6 06 7f ff 	add  %i1, -1, %i3                              
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( !is_valid_signo(sig) )                                         
 201a864:	80 a6 e0 1f 	cmp  %i3, 0x1f                                 
 201a868:	18 80 00 2a 	bgu  201a910 <pthread_kill+0xbc>               
 201a86c:	90 10 00 18 	mov  %i0, %o0                                  
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  the_thread = _Thread_Get( thread, &location );                      
 201a870:	7f ff ba dc 	call  20093e0 <_Thread_Get>                    
 201a874:	92 07 bf fc 	add  %fp, -4, %o1                              
  switch ( location ) {                                               
 201a878:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 201a87c:	80 a0 60 00 	cmp  %g1, 0                                    
 201a880:	12 80 00 2a 	bne  201a928 <pthread_kill+0xd4>               <== NEVER TAKEN
 201a884:	ba 10 00 08 	mov  %o0, %i5                                  
                                                                      
      api = the_thread->API_Extensions[ THREAD_API_POSIX ];           
                                                                      
      if ( sig ) {                                                    
                                                                      
        if ( _POSIX_signals_Vectors[ sig ].sa_handler == SIG_IGN ) {  
 201a888:	83 2e 60 02 	sll  %i1, 2, %g1                               
 201a88c:	85 2e 60 04 	sll  %i1, 4, %g2                               
 201a890:	84 20 80 01 	sub  %g2, %g1, %g2                             
 201a894:	03 00 80 77 	sethi  %hi(0x201dc00), %g1                     
 201a898:	82 10 63 60 	or  %g1, 0x360, %g1	! 201df60 <_POSIX_signals_Vectors>
 201a89c:	82 00 40 02 	add  %g1, %g2, %g1                             
 201a8a0:	c4 00 60 08 	ld  [ %g1 + 8 ], %g2                           
 201a8a4:	80 a0 a0 01 	cmp  %g2, 1                                    
 201a8a8:	02 80 00 14 	be  201a8f8 <pthread_kill+0xa4>                
 201a8ac:	c2 02 21 5c 	ld  [ %o0 + 0x15c ], %g1                       
          return 0;                                                   
        }                                                             
                                                                      
        /* XXX critical section */                                    
                                                                      
        api->signals_pending |= signo_to_mask( sig );                 
 201a8b0:	c4 00 60 d4 	ld  [ %g1 + 0xd4 ], %g2                        
 201a8b4:	b8 10 20 01 	mov  1, %i4                                    
                                                                      
        (void) _POSIX_signals_Unblock_thread( the_thread, sig, NULL );
 201a8b8:	92 10 00 19 	mov  %i1, %o1                                  
 201a8bc:	b7 2f 00 1b 	sll  %i4, %i3, %i3                             
 201a8c0:	94 10 20 00 	clr  %o2                                       
          return 0;                                                   
        }                                                             
                                                                      
        /* XXX critical section */                                    
                                                                      
        api->signals_pending |= signo_to_mask( sig );                 
 201a8c4:	b6 10 80 1b 	or  %g2, %i3, %i3                              
                                                                      
        (void) _POSIX_signals_Unblock_thread( the_thread, sig, NULL );
 201a8c8:	7f ff ff 8c 	call  201a6f8 <_POSIX_signals_Unblock_thread>  
 201a8cc:	f6 20 60 d4 	st  %i3, [ %g1 + 0xd4 ]                        
                                                                      
        if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
 201a8d0:	03 00 80 77 	sethi  %hi(0x201dc00), %g1                     
 201a8d4:	82 10 63 08 	or  %g1, 0x308, %g1	! 201df08 <_Per_CPU_Information>
 201a8d8:	c4 00 60 08 	ld  [ %g1 + 8 ], %g2                           
 201a8dc:	80 a0 a0 00 	cmp  %g2, 0                                    
 201a8e0:	02 80 00 06 	be  201a8f8 <pthread_kill+0xa4>                
 201a8e4:	01 00 00 00 	nop                                            
 201a8e8:	c4 00 60 0c 	ld  [ %g1 + 0xc ], %g2                         
 201a8ec:	80 a7 40 02 	cmp  %i5, %g2                                  
 201a8f0:	02 80 00 06 	be  201a908 <pthread_kill+0xb4>                
 201a8f4:	01 00 00 00 	nop                                            
	  _Thread_Dispatch_necessary = true;                                 
      }                                                               
      _Thread_Enable_dispatch();                                      
 201a8f8:	7f ff ba ad 	call  20093ac <_Thread_Enable_dispatch>        
 201a8fc:	b0 10 20 00 	clr  %i0	! 0 <PROM_START>                      
      return 0;                                                       
 201a900:	81 c7 e0 08 	ret                                            
 201a904:	81 e8 00 00 	restore                                        
        api->signals_pending |= signo_to_mask( sig );                 
                                                                      
        (void) _POSIX_signals_Unblock_thread( the_thread, sig, NULL );
                                                                      
        if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
	  _Thread_Dispatch_necessary = true;                                 
 201a908:	f8 28 60 18 	stb  %i4, [ %g1 + 0x18 ]                       
 201a90c:	30 bf ff fb 	b,a   201a8f8 <pthread_kill+0xa4>              
                                                                      
  if ( !sig )                                                         
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( !is_valid_signo(sig) )                                         
    rtems_set_errno_and_return_minus_one( EINVAL );                   
 201a910:	7f ff d4 24 	call  200f9a0 <__errno>                        
 201a914:	b0 10 3f ff 	mov  -1, %i0                                   
 201a918:	82 10 20 16 	mov  0x16, %g1                                 
 201a91c:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 201a920:	81 c7 e0 08 	ret                                            
 201a924:	81 e8 00 00 	restore                                        
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  rtems_set_errno_and_return_minus_one( ESRCH );                      
 201a928:	7f ff d4 1e 	call  200f9a0 <__errno>                        <== NOT EXECUTED
 201a92c:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
 201a930:	82 10 20 03 	mov  3, %g1                                    <== NOT EXECUTED
 201a934:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
}                                                                     
 201a938:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 201a93c:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

02008540 <pthread_mutex_timedlock>: int pthread_mutex_timedlock( pthread_mutex_t *mutex, const struct timespec *abstime ) {
 2008540:	9d e3 bf 98 	save  %sp, -104, %sp                           
   *                                                                  
   *  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 );       
 2008544:	90 10 00 19 	mov  %i1, %o0                                  
 2008548:	40 00 00 37 	call  2008624 <_POSIX_Absolute_timeout_to_ticks>
 200854c:	92 07 bf fc 	add  %fp, -4, %o1                              
  if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )                
    do_wait = false;                                                  
                                                                      
  lock_status = _POSIX_Mutex_Lock_support( mutex, do_wait, ticks );   
 2008550:	d4 07 bf fc 	ld  [ %fp + -4 ], %o2                          
   *                                                                  
   *  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 );       
 2008554:	ba 10 00 08 	mov  %o0, %i5                                  
  if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )                
 2008558:	80 a7 60 03 	cmp  %i5, 3                                    
 200855c:	02 80 00 09 	be  2008580 <pthread_mutex_timedlock+0x40>     
 2008560:	90 10 00 18 	mov  %i0, %o0                                  
    do_wait = false;                                                  
                                                                      
  lock_status = _POSIX_Mutex_Lock_support( mutex, do_wait, ticks );   
 2008564:	7f ff ff be 	call  200845c <_POSIX_Mutex_Lock_support>      
 2008568:	92 10 20 00 	clr  %o1                                       
   *  This service only gives us the option to block.  We used a polling
   *  attempt to lock if the abstime was not in the future.  If we did
   *  not obtain the mutex, then not look at the status immediately,  
   *  make sure the right reason is returned.                         
   */                                                                 
  if ( !do_wait && (lock_status == EBUSY) ) {                         
 200856c:	80 a2 20 10 	cmp  %o0, 0x10                                 
 2008570:	02 80 00 08 	be  2008590 <pthread_mutex_timedlock+0x50>     
 2008574:	80 a7 60 00 	cmp  %i5, 0                                    
         status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )                    
      return ETIMEDOUT;                                               
  }                                                                   
                                                                      
  return lock_status;                                                 
}                                                                     
 2008578:	81 c7 e0 08 	ret                                            
 200857c:	91 e8 00 08 	restore  %g0, %o0, %o0                         
   */                                                                 
  status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks );       
  if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )                
    do_wait = false;                                                  
                                                                      
  lock_status = _POSIX_Mutex_Lock_support( mutex, do_wait, ticks );   
 2008580:	7f ff ff b7 	call  200845c <_POSIX_Mutex_Lock_support>      
 2008584:	92 10 20 01 	mov  1, %o1                                    
         status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )                    
      return ETIMEDOUT;                                               
  }                                                                   
                                                                      
  return lock_status;                                                 
}                                                                     
 2008588:	81 c7 e0 08 	ret                                            
 200858c:	91 e8 00 08 	restore  %g0, %o0, %o0                         
   *  attempt to lock if the abstime was not in the future.  If we did
   *  not obtain the mutex, then not look at the status immediately,  
   *  make sure the right reason is returned.                         
   */                                                                 
  if ( !do_wait && (lock_status == EBUSY) ) {                         
    if ( status == POSIX_ABSOLUTE_TIMEOUT_INVALID )                   
 2008590:	32 80 00 04 	bne,a   20085a0 <pthread_mutex_timedlock+0x60> <== ALWAYS TAKEN
 2008594:	ba 07 7f ff 	add  %i5, -1, %i5                              
      return EINVAL;                                                  
 2008598:	10 bf ff f8 	b  2008578 <pthread_mutex_timedlock+0x38>      <== NOT EXECUTED
 200859c:	90 10 20 16 	mov  0x16, %o0                                 <== NOT EXECUTED
    if ( status == POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST ||               
 20085a0:	80 a7 60 01 	cmp  %i5, 1                                    
 20085a4:	28 bf ff f5 	bleu,a   2008578 <pthread_mutex_timedlock+0x38><== ALWAYS TAKEN
 20085a8:	90 10 20 74 	mov  0x74, %o0                                 
 20085ac:	30 bf ff f3 	b,a   2008578 <pthread_mutex_timedlock+0x38>   <== NOT EXECUTED
                                                                      

02005e34 <pthread_mutexattr_gettype>: #if defined(_UNIX98_THREAD_MUTEX_ATTRIBUTES) int pthread_mutexattr_gettype( const pthread_mutexattr_t *attr, int *type ) {
 2005e34:	82 10 00 08 	mov  %o0, %g1                                  
  if ( !attr )                                                        
 2005e38:	80 a0 60 00 	cmp  %g1, 0                                    
 2005e3c:	02 80 00 06 	be  2005e54 <pthread_mutexattr_gettype+0x20>   
 2005e40:	90 10 20 16 	mov  0x16, %o0                                 
    return EINVAL;                                                    
                                                                      
  if ( !attr->is_initialized )                                        
 2005e44:	c4 00 40 00 	ld  [ %g1 ], %g2                               
 2005e48:	80 a0 a0 00 	cmp  %g2, 0                                    
 2005e4c:	12 80 00 04 	bne  2005e5c <pthread_mutexattr_gettype+0x28>  
 2005e50:	80 a2 60 00 	cmp  %o1, 0                                    
  if ( !type )                                                        
    return EINVAL;                                                    
                                                                      
  *type = attr->type;                                                 
  return 0;                                                           
}                                                                     
 2005e54:	81 c3 e0 08 	retl                                           
 2005e58:	01 00 00 00 	nop                                            
    return EINVAL;                                                    
                                                                      
  if ( !attr->is_initialized )                                        
    return EINVAL;                                                    
                                                                      
  if ( !type )                                                        
 2005e5c:	02 bf ff fe 	be  2005e54 <pthread_mutexattr_gettype+0x20>   <== NEVER TAKEN
 2005e60:	01 00 00 00 	nop                                            
    return EINVAL;                                                    
                                                                      
  *type = attr->type;                                                 
 2005e64:	c2 00 60 10 	ld  [ %g1 + 0x10 ], %g1                        
  return 0;                                                           
 2005e68:	90 10 20 00 	clr  %o0                                       
}                                                                     
 2005e6c:	81 c3 e0 08 	retl                                           
 2005e70:	c2 22 40 00 	st  %g1, [ %o1 ]                               
                                                                      

02008114 <pthread_mutexattr_setpshared>: int pthread_mutexattr_setpshared( pthread_mutexattr_t *attr, int pshared ) {
 2008114:	82 10 00 08 	mov  %o0, %g1                                  
  if ( !attr || !attr->is_initialized )                               
 2008118:	80 a0 60 00 	cmp  %g1, 0                                    
 200811c:	02 80 00 06 	be  2008134 <pthread_mutexattr_setpshared+0x20>
 2008120:	90 10 20 16 	mov  0x16, %o0                                 
 2008124:	c4 00 40 00 	ld  [ %g1 ], %g2                               
 2008128:	80 a0 a0 00 	cmp  %g2, 0                                    
 200812c:	12 80 00 04 	bne  200813c <pthread_mutexattr_setpshared+0x28>
 2008130:	80 a2 60 01 	cmp  %o1, 1                                    
      return 0;                                                       
                                                                      
    default:                                                          
      return EINVAL;                                                  
  }                                                                   
}                                                                     
 2008134:	81 c3 e0 08 	retl                                           
 2008138:	01 00 00 00 	nop                                            
)                                                                     
{                                                                     
  if ( !attr || !attr->is_initialized )                               
    return EINVAL;                                                    
                                                                      
  switch ( pshared ) {                                                
 200813c:	18 bf ff fe 	bgu  2008134 <pthread_mutexattr_setpshared+0x20><== NEVER TAKEN
 2008140:	01 00 00 00 	nop                                            
    case PTHREAD_PROCESS_SHARED:                                      
    case PTHREAD_PROCESS_PRIVATE:                                     
      attr->process_shared = pshared;                                 
 2008144:	d2 20 60 04 	st  %o1, [ %g1 + 4 ]                           
      return 0;                                                       
                                                                      
    default:                                                          
      return EINVAL;                                                  
  }                                                                   
}                                                                     
 2008148:	81 c3 e0 08 	retl                                           
 200814c:	90 10 20 00 	clr  %o0                                       
                                                                      

02005ec8 <pthread_mutexattr_settype>: #if defined(_UNIX98_THREAD_MUTEX_ATTRIBUTES) int pthread_mutexattr_settype( pthread_mutexattr_t *attr, int type ) {
 2005ec8:	82 10 00 08 	mov  %o0, %g1                                  
  if ( !attr || !attr->is_initialized )                               
 2005ecc:	80 a0 60 00 	cmp  %g1, 0                                    
 2005ed0:	02 80 00 06 	be  2005ee8 <pthread_mutexattr_settype+0x20>   
 2005ed4:	90 10 20 16 	mov  0x16, %o0                                 
 2005ed8:	c4 00 40 00 	ld  [ %g1 ], %g2                               
 2005edc:	80 a0 a0 00 	cmp  %g2, 0                                    
 2005ee0:	12 80 00 04 	bne  2005ef0 <pthread_mutexattr_settype+0x28>  <== ALWAYS TAKEN
 2005ee4:	80 a2 60 03 	cmp  %o1, 3                                    
      return 0;                                                       
                                                                      
    default:                                                          
      return EINVAL;                                                  
  }                                                                   
}                                                                     
 2005ee8:	81 c3 e0 08 	retl                                           
 2005eec:	01 00 00 00 	nop                                            
)                                                                     
{                                                                     
  if ( !attr || !attr->is_initialized )                               
    return EINVAL;                                                    
                                                                      
  switch ( type ) {                                                   
 2005ef0:	18 bf ff fe 	bgu  2005ee8 <pthread_mutexattr_settype+0x20>  
 2005ef4:	01 00 00 00 	nop                                            
    case PTHREAD_MUTEX_NORMAL:                                        
    case PTHREAD_MUTEX_RECURSIVE:                                     
    case PTHREAD_MUTEX_ERRORCHECK:                                    
    case PTHREAD_MUTEX_DEFAULT:                                       
      attr->type = type;                                              
 2005ef8:	d2 20 60 10 	st  %o1, [ %g1 + 0x10 ]                        
      return 0;                                                       
                                                                      
    default:                                                          
      return EINVAL;                                                  
  }                                                                   
}                                                                     
 2005efc:	81 c3 e0 08 	retl                                           
 2005f00:	90 10 20 00 	clr  %o0                                       
                                                                      

02006c58 <pthread_once>: int pthread_once( pthread_once_t *once_control, void (*init_routine)(void) ) {
 2006c58:	9d e3 bf 98 	save  %sp, -104, %sp                           
  if ( !once_control || !init_routine )                               
 2006c5c:	80 a6 60 00 	cmp  %i1, 0                                    
 2006c60:	12 80 00 04 	bne  2006c70 <pthread_once+0x18>               
 2006c64:	ba 10 00 18 	mov  %i0, %i5                                  
      (*init_routine)();                                              
    }                                                                 
    rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode);         
  }                                                                   
  return 0;                                                           
}                                                                     
 2006c68:	81 c7 e0 08 	ret                                            
 2006c6c:	91 e8 20 16 	restore  %g0, 0x16, %o0                        
int pthread_once(                                                     
  pthread_once_t  *once_control,                                      
  void           (*init_routine)(void)                                
)                                                                     
{                                                                     
  if ( !once_control || !init_routine )                               
 2006c70:	80 a6 20 00 	cmp  %i0, 0                                    
 2006c74:	22 80 00 13 	be,a   2006cc0 <pthread_once+0x68>             
 2006c78:	b0 10 20 16 	mov  0x16, %i0                                 
    return EINVAL;                                                    
                                                                      
  if ( !once_control->init_executed ) {                               
 2006c7c:	c2 06 20 04 	ld  [ %i0 + 4 ], %g1                           
 2006c80:	80 a0 60 00 	cmp  %g1, 0                                    
 2006c84:	12 80 00 0f 	bne  2006cc0 <pthread_once+0x68>               
 2006c88:	b0 10 20 00 	clr  %i0                                       
    rtems_mode saveMode;                                              
    rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &saveMode); 
 2006c8c:	90 10 21 00 	mov  0x100, %o0                                
 2006c90:	92 10 21 00 	mov  0x100, %o1                                
 2006c94:	40 00 03 0e 	call  20078cc <rtems_task_mode>                
 2006c98:	94 07 bf fc 	add  %fp, -4, %o2                              
    if ( !once_control->init_executed ) {                             
 2006c9c:	c2 07 60 04 	ld  [ %i5 + 4 ], %g1                           
 2006ca0:	80 a0 60 00 	cmp  %g1, 0                                    
 2006ca4:	02 80 00 09 	be  2006cc8 <pthread_once+0x70>                <== ALWAYS TAKEN
 2006ca8:	82 10 20 01 	mov  1, %g1                                    
      once_control->is_initialized = true;                            
      once_control->init_executed = true;                             
      (*init_routine)();                                              
    }                                                                 
    rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode);         
 2006cac:	d0 07 bf fc 	ld  [ %fp + -4 ], %o0                          <== NOT EXECUTED
 2006cb0:	92 10 21 00 	mov  0x100, %o1                                
 2006cb4:	94 07 bf fc 	add  %fp, -4, %o2                              
 2006cb8:	40 00 03 05 	call  20078cc <rtems_task_mode>                
 2006cbc:	b0 10 20 00 	clr  %i0                                       
 2006cc0:	81 c7 e0 08 	ret                                            
 2006cc4:	81 e8 00 00 	restore                                        
                                                                      
  if ( !once_control->init_executed ) {                               
    rtems_mode saveMode;                                              
    rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &saveMode); 
    if ( !once_control->init_executed ) {                             
      once_control->is_initialized = true;                            
 2006cc8:	c2 27 40 00 	st  %g1, [ %i5 ]                               
      once_control->init_executed = true;                             
      (*init_routine)();                                              
 2006ccc:	9f c6 40 00 	call  %i1                                      
 2006cd0:	c2 27 60 04 	st  %g1, [ %i5 + 4 ]                           
    }                                                                 
    rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode);         
 2006cd4:	10 bf ff f7 	b  2006cb0 <pthread_once+0x58>                 
 2006cd8:	d0 07 bf fc 	ld  [ %fp + -4 ], %o0                          
                                                                      

020073d0 <pthread_rwlock_init>: int pthread_rwlock_init( pthread_rwlock_t *rwlock, const pthread_rwlockattr_t *attr ) {
 20073d0:	9d e3 bf 90 	save  %sp, -112, %sp                           
 20073d4:	ba 10 00 18 	mov  %i0, %i5                                  
  const pthread_rwlockattr_t  *the_attr;                              
                                                                      
  /*                                                                  
   *  Error check parameters                                          
   */                                                                 
  if ( !rwlock )                                                      
 20073d8:	80 a7 60 00 	cmp  %i5, 0                                    
 20073dc:	02 80 00 24 	be  200746c <pthread_rwlock_init+0x9c>         
 20073e0:	b0 10 20 16 	mov  0x16, %i0                                 
    return EINVAL;                                                    
                                                                      
  /*                                                                  
   * If the user passed in NULL, use the default attributes           
   */                                                                 
  if ( attr ) {                                                       
 20073e4:	80 a6 60 00 	cmp  %i1, 0                                    
 20073e8:	02 80 00 23 	be  2007474 <pthread_rwlock_init+0xa4>         
 20073ec:	90 07 bf f4 	add  %fp, -12, %o0                             
  }                                                                   
                                                                      
  /*                                                                  
   * Now start error checking the attributes that we are going to use 
   */                                                                 
  if ( !the_attr->is_initialized )                                    
 20073f0:	c2 06 40 00 	ld  [ %i1 ], %g1                               
 20073f4:	80 a0 60 00 	cmp  %g1, 0                                    
 20073f8:	02 80 00 1d 	be  200746c <pthread_rwlock_init+0x9c>         <== NEVER TAKEN
 20073fc:	b0 10 20 16 	mov  0x16, %i0                                 
    return EINVAL;                                                    
                                                                      
  switch ( the_attr->process_shared ) {                               
 2007400:	c2 06 60 04 	ld  [ %i1 + 4 ], %g1                           
 2007404:	80 a0 60 00 	cmp  %g1, 0                                    
 2007408:	12 80 00 19 	bne  200746c <pthread_rwlock_init+0x9c>        <== NEVER TAKEN
 200740c:	03 00 80 6a 	sethi  %hi(0x201a800), %g1                     
   *                                                                  
   * This rountine increments the thread dispatch level               
   */                                                                 
  RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
  {                                                                   
    _Thread_Dispatch_disable_level++;                                 
 2007410:	c4 00 62 20 	ld  [ %g1 + 0x220 ], %g2	! 201aa20 <_Thread_Dispatch_disable_level>
 */                                                                   
RTEMS_INLINE_ROUTINE void _CORE_RWLock_Initialize_attributes(         
  CORE_RWLock_Attributes *the_attributes                              
)                                                                     
{                                                                     
  the_attributes->XXX = 0;                                            
 2007414:	c0 27 bf fc 	clr  [ %fp + -4 ]                              
 2007418:	84 00 a0 01 	inc  %g2                                       
 200741c:	c4 20 62 20 	st  %g2, [ %g1 + 0x220 ]                       
    return _Thread_Dispatch_disable_level;                            
 2007420:	c2 00 62 20 	ld  [ %g1 + 0x220 ], %g1                       
 *  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 *)                                     
 2007424:	37 00 80 6b 	sethi  %hi(0x201ac00), %i3                     
 2007428:	40 00 0a 4c 	call  2009d58 <_Objects_Allocate>              
 200742c:	90 16 e0 20 	or  %i3, 0x20, %o0	! 201ac20 <_POSIX_RWLock_Information>
   */                                                                 
  _Thread_Disable_dispatch();             /* prevents deletion */     
                                                                      
  the_rwlock = _POSIX_RWLock_Allocate();                              
                                                                      
  if ( !the_rwlock ) {                                                
 2007430:	b8 92 20 00 	orcc  %o0, 0, %i4                              
 2007434:	02 80 00 14 	be  2007484 <pthread_rwlock_init+0xb4>         
 2007438:	90 07 20 10 	add  %i4, 0x10, %o0                            
    _Thread_Enable_dispatch();                                        
    return EAGAIN;                                                    
  }                                                                   
                                                                      
  _CORE_RWLock_Initialize( &the_rwlock->RWLock, &the_attributes );    
 200743c:	40 00 07 dc 	call  20093ac <_CORE_RWLock_Initialize>        
 2007440:	92 07 bf fc 	add  %fp, -4, %o1                              
  Objects_Information *information,                                   
  Objects_Control     *the_object,                                    
  uint32_t             name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
 2007444:	c4 17 20 0a 	lduh  [ %i4 + 0xa ], %g2                       
                                                                      
  *rwlock = the_rwlock->Object.id;                                    
                                                                      
  _Thread_Enable_dispatch();                                          
  return 0;                                                           
}                                                                     
 2007448:	b6 16 e0 20 	or  %i3, 0x20, %i3                             
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 200744c:	c6 06 e0 1c 	ld  [ %i3 + 0x1c ], %g3                        
  Objects_Information *information,                                   
  Objects_Control     *the_object,                                    
  uint32_t             name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
 2007450:	c2 07 20 08 	ld  [ %i4 + 8 ], %g1                           
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 2007454:	85 28 a0 02 	sll  %g2, 2, %g2                               
 2007458:	f8 20 c0 02 	st  %i4, [ %g3 + %g2 ]                         
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  /* ASSERT: information->is_string == false */                       
  the_object->name.name_u32 = name;                                   
 200745c:	c0 27 20 0c 	clr  [ %i4 + 0xc ]                             
    &_POSIX_RWLock_Information,                                       
    &the_rwlock->Object,                                              
    0                                                                 
  );                                                                  
                                                                      
  *rwlock = the_rwlock->Object.id;                                    
 2007460:	c2 27 40 00 	st  %g1, [ %i5 ]                               
                                                                      
  _Thread_Enable_dispatch();                                          
 2007464:	40 00 0f 53 	call  200b1b0 <_Thread_Enable_dispatch>        
 2007468:	b0 10 20 00 	clr  %i0                                       
  return 0;                                                           
}                                                                     
 200746c:	81 c7 e0 08 	ret                                            
 2007470:	81 e8 00 00 	restore                                        
   * If the user passed in NULL, use the default attributes           
   */                                                                 
  if ( attr ) {                                                       
    the_attr = attr;                                                  
  } else {                                                            
    (void) pthread_rwlockattr_init( &default_attr );                  
 2007474:	40 00 02 6c 	call  2007e24 <pthread_rwlockattr_init>        
 2007478:	b2 07 bf f4 	add  %fp, -12, %i1                             
  }                                                                   
                                                                      
  /*                                                                  
   * Now start error checking the attributes that we are going to use 
   */                                                                 
  if ( !the_attr->is_initialized )                                    
 200747c:	10 bf ff de 	b  20073f4 <pthread_rwlock_init+0x24>          
 2007480:	c2 06 40 00 	ld  [ %i1 ], %g1                               
  _Thread_Disable_dispatch();             /* prevents deletion */     
                                                                      
  the_rwlock = _POSIX_RWLock_Allocate();                              
                                                                      
  if ( !the_rwlock ) {                                                
    _Thread_Enable_dispatch();                                        
 2007484:	40 00 0f 4b 	call  200b1b0 <_Thread_Enable_dispatch>        
 2007488:	b0 10 20 0b 	mov  0xb, %i0                                  
    return EAGAIN;                                                    
 200748c:	81 c7 e0 08 	ret                                            
 2007490:	81 e8 00 00 	restore                                        
                                                                      

02007504 <pthread_rwlock_timedrdlock>: int pthread_rwlock_timedrdlock( pthread_rwlock_t *rwlock, const struct timespec *abstime ) {
 2007504:	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 )                                                      
 2007508:	80 a6 20 00 	cmp  %i0, 0                                    
 200750c:	02 80 00 24 	be  200759c <pthread_rwlock_timedrdlock+0x98>  
 2007510:	ba 10 20 16 	mov  0x16, %i5                                 
   *                                                                  
   *  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 );       
 2007514:	92 07 bf fc 	add  %fp, -4, %o1                              
 2007518:	40 00 1c 9c 	call  200e788 <_POSIX_Absolute_timeout_to_ticks>
 200751c:	90 10 00 19 	mov  %i1, %o0                                  
 2007520:	d2 06 00 00 	ld  [ %i0 ], %o1                               
 2007524:	b8 10 00 08 	mov  %o0, %i4                                  
 2007528:	94 07 bf f8 	add  %fp, -8, %o2                              
 200752c:	11 00 80 6b 	sethi  %hi(0x201ac00), %o0                     
 2007530:	40 00 0b 55 	call  200a284 <_Objects_Get>                   
 2007534:	90 12 20 20 	or  %o0, 0x20, %o0	! 201ac20 <_POSIX_RWLock_Information>
  if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )                
    do_wait = false;                                                  
                                                                      
  the_rwlock = _POSIX_RWLock_Get( rwlock, &location );                
  switch ( location ) {                                               
 2007538:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
 200753c:	80 a0 60 00 	cmp  %g1, 0                                    
 2007540:	12 80 00 17 	bne  200759c <pthread_rwlock_timedrdlock+0x98> 
 2007544:	d6 07 bf fc 	ld  [ %fp + -4 ], %o3                          
                                                                      
    case OBJECTS_LOCAL:                                               
                                                                      
      _CORE_RWLock_Obtain_for_reading(                                
 2007548:	d2 06 00 00 	ld  [ %i0 ], %o1                               
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,                                
 200754c:	82 1f 20 03 	xor  %i4, 3, %g1                               
 2007550:	90 02 20 10 	add  %o0, 0x10, %o0                            
 2007554:	80 a0 00 01 	cmp  %g0, %g1                                  
 2007558:	98 10 20 00 	clr  %o4                                       
 200755c:	b6 60 3f ff 	subx  %g0, -1, %i3                             
 2007560:	40 00 07 9d 	call  20093d4 <_CORE_RWLock_Obtain_for_reading>
 2007564:	94 10 00 1b 	mov  %i3, %o2                                  
	do_wait,                                                             
	ticks,                                                               
	NULL                                                                 
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
 2007568:	40 00 0f 12 	call  200b1b0 <_Thread_Enable_dispatch>        
 200756c:	01 00 00 00 	nop                                            
      if ( !do_wait ) {                                               
        if ( _Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE ) {
 2007570:	03 00 80 6b 	sethi  %hi(0x201ac00), %g1                     
 2007574:	c2 00 63 64 	ld  [ %g1 + 0x364 ], %g1	! 201af64 <_Per_CPU_Information+0xc>
	ticks,                                                               
	NULL                                                                 
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
      if ( !do_wait ) {                                               
 2007578:	80 a6 e0 00 	cmp  %i3, 0                                    
 200757c:	12 80 00 05 	bne  2007590 <pthread_rwlock_timedrdlock+0x8c> 
 2007580:	d0 00 60 34 	ld  [ %g1 + 0x34 ], %o0                        
        if ( _Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE ) {
 2007584:	80 a2 20 02 	cmp  %o0, 2                                    
 2007588:	02 80 00 07 	be  20075a4 <pthread_rwlock_timedrdlock+0xa0>  
 200758c:	80 a7 20 00 	cmp  %i4, 0                                    
	       status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )                     
	    return ETIMEDOUT;                                                
        }                                                             
      }                                                               
                                                                      
      return _POSIX_RWLock_Translate_core_RWLock_return_code(         
 2007590:	40 00 00 39 	call  2007674 <_POSIX_RWLock_Translate_core_RWLock_return_code>
 2007594:	01 00 00 00 	nop                                            
 2007598:	ba 10 00 08 	mov  %o0, %i5                                  
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return EINVAL;                                                      
}                                                                     
 200759c:	81 c7 e0 08 	ret                                            
 20075a0:	91 e8 00 1d 	restore  %g0, %i5, %o0                         
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
      if ( !do_wait ) {                                               
        if ( _Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE ) {
	  if ( status == POSIX_ABSOLUTE_TIMEOUT_INVALID )                    
 20075a4:	02 bf ff fe 	be  200759c <pthread_rwlock_timedrdlock+0x98>  <== NEVER TAKEN
 20075a8:	b8 07 3f ff 	add  %i4, -1, %i4                              
	    return EINVAL;                                                   
	  if ( status == POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST ||                
 20075ac:	80 a7 20 01 	cmp  %i4, 1                                    
 20075b0:	18 bf ff f8 	bgu  2007590 <pthread_rwlock_timedrdlock+0x8c> <== NEVER TAKEN
 20075b4:	ba 10 20 74 	mov  0x74, %i5                                 
 20075b8:	30 bf ff f9 	b,a   200759c <pthread_rwlock_timedrdlock+0x98>
                                                                      

020075bc <pthread_rwlock_timedwrlock>: int pthread_rwlock_timedwrlock( pthread_rwlock_t *rwlock, const struct timespec *abstime ) {
 20075bc:	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 )                                                      
 20075c0:	80 a6 20 00 	cmp  %i0, 0                                    
 20075c4:	02 80 00 24 	be  2007654 <pthread_rwlock_timedwrlock+0x98>  
 20075c8:	ba 10 20 16 	mov  0x16, %i5                                 
   *                                                                  
   *  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 );       
 20075cc:	92 07 bf fc 	add  %fp, -4, %o1                              
 20075d0:	40 00 1c 6e 	call  200e788 <_POSIX_Absolute_timeout_to_ticks>
 20075d4:	90 10 00 19 	mov  %i1, %o0                                  
 20075d8:	d2 06 00 00 	ld  [ %i0 ], %o1                               
 20075dc:	b8 10 00 08 	mov  %o0, %i4                                  
 20075e0:	94 07 bf f8 	add  %fp, -8, %o2                              
 20075e4:	11 00 80 6b 	sethi  %hi(0x201ac00), %o0                     
 20075e8:	40 00 0b 27 	call  200a284 <_Objects_Get>                   
 20075ec:	90 12 20 20 	or  %o0, 0x20, %o0	! 201ac20 <_POSIX_RWLock_Information>
  if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )                
    do_wait = false;                                                  
                                                                      
  the_rwlock = _POSIX_RWLock_Get( rwlock, &location );                
  switch ( location ) {                                               
 20075f0:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
 20075f4:	80 a0 60 00 	cmp  %g1, 0                                    
 20075f8:	12 80 00 17 	bne  2007654 <pthread_rwlock_timedwrlock+0x98> 
 20075fc:	d6 07 bf fc 	ld  [ %fp + -4 ], %o3                          
                                                                      
    case OBJECTS_LOCAL:                                               
                                                                      
      _CORE_RWLock_Obtain_for_writing(                                
 2007600:	d2 06 00 00 	ld  [ %i0 ], %o1                               
        (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,                                
 2007604:	82 1f 20 03 	xor  %i4, 3, %g1                               
 2007608:	90 02 20 10 	add  %o0, 0x10, %o0                            
 200760c:	80 a0 00 01 	cmp  %g0, %g1                                  
 2007610:	98 10 20 00 	clr  %o4                                       
 2007614:	b6 60 3f ff 	subx  %g0, -1, %i3                             
 2007618:	40 00 07 a5 	call  20094ac <_CORE_RWLock_Obtain_for_writing>
 200761c:	94 10 00 1b 	mov  %i3, %o2                                  
	do_wait,                                                             
	ticks,                                                               
	NULL                                                                 
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
 2007620:	40 00 0e e4 	call  200b1b0 <_Thread_Enable_dispatch>        
 2007624:	01 00 00 00 	nop                                            
      if ( !do_wait &&                                                
           (_Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE) ) {
 2007628:	03 00 80 6b 	sethi  %hi(0x201ac00), %g1                     
 200762c:	c2 00 63 64 	ld  [ %g1 + 0x364 ], %g1	! 201af64 <_Per_CPU_Information+0xc>
	ticks,                                                               
	NULL                                                                 
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
      if ( !do_wait &&                                                
 2007630:	80 a6 e0 00 	cmp  %i3, 0                                    
 2007634:	12 80 00 05 	bne  2007648 <pthread_rwlock_timedwrlock+0x8c> 
 2007638:	d0 00 60 34 	ld  [ %g1 + 0x34 ], %o0                        
 200763c:	80 a2 20 02 	cmp  %o0, 2                                    
 2007640:	02 80 00 07 	be  200765c <pthread_rwlock_timedwrlock+0xa0>  
 2007644:	80 a7 20 00 	cmp  %i4, 0                                    
	if ( status == POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST ||                  
	     status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )                       
	  return ETIMEDOUT;                                                  
      }                                                               
                                                                      
      return _POSIX_RWLock_Translate_core_RWLock_return_code(         
 2007648:	40 00 00 0b 	call  2007674 <_POSIX_RWLock_Translate_core_RWLock_return_code>
 200764c:	01 00 00 00 	nop                                            
 2007650:	ba 10 00 08 	mov  %o0, %i5                                  
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return EINVAL;                                                      
}                                                                     
 2007654:	81 c7 e0 08 	ret                                            
 2007658:	91 e8 00 1d 	restore  %g0, %i5, %o0                         
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
      if ( !do_wait &&                                                
           (_Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE) ) {
	if ( status == POSIX_ABSOLUTE_TIMEOUT_INVALID )                      
 200765c:	02 bf ff fe 	be  2007654 <pthread_rwlock_timedwrlock+0x98>  <== NEVER TAKEN
 2007660:	b8 07 3f ff 	add  %i4, -1, %i4                              
	  return EINVAL;                                                     
	if ( status == POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST ||                  
 2007664:	80 a7 20 01 	cmp  %i4, 1                                    
 2007668:	18 bf ff f8 	bgu  2007648 <pthread_rwlock_timedwrlock+0x8c> <== NEVER TAKEN
 200766c:	ba 10 20 74 	mov  0x74, %i5                                 
 2007670:	30 bf ff f9 	b,a   2007654 <pthread_rwlock_timedwrlock+0x98>
                                                                      

02007e4c <pthread_rwlockattr_setpshared>: int pthread_rwlockattr_setpshared( pthread_rwlockattr_t *attr, int pshared ) {
 2007e4c:	82 10 00 08 	mov  %o0, %g1                                  
  if ( !attr )                                                        
 2007e50:	80 a0 60 00 	cmp  %g1, 0                                    
 2007e54:	02 80 00 06 	be  2007e6c <pthread_rwlockattr_setpshared+0x20>
 2007e58:	90 10 20 16 	mov  0x16, %o0                                 
    return EINVAL;                                                    
                                                                      
  if ( !attr->is_initialized )                                        
 2007e5c:	c4 00 40 00 	ld  [ %g1 ], %g2                               
 2007e60:	80 a0 a0 00 	cmp  %g2, 0                                    
 2007e64:	12 80 00 04 	bne  2007e74 <pthread_rwlockattr_setpshared+0x28>
 2007e68:	80 a2 60 01 	cmp  %o1, 1                                    
      return 0;                                                       
                                                                      
    default:                                                          
      return EINVAL;                                                  
  }                                                                   
}                                                                     
 2007e6c:	81 c3 e0 08 	retl                                           
 2007e70:	01 00 00 00 	nop                                            
    return EINVAL;                                                    
                                                                      
  if ( !attr->is_initialized )                                        
    return EINVAL;                                                    
                                                                      
  switch ( pshared ) {                                                
 2007e74:	18 bf ff fe 	bgu  2007e6c <pthread_rwlockattr_setpshared+0x20><== NEVER TAKEN
 2007e78:	01 00 00 00 	nop                                            
    case PTHREAD_PROCESS_SHARED:                                      
    case PTHREAD_PROCESS_PRIVATE:                                     
      attr->process_shared = pshared;                                 
 2007e7c:	d2 20 60 04 	st  %o1, [ %g1 + 4 ]                           
      return 0;                                                       
                                                                      
    default:                                                          
      return EINVAL;                                                  
  }                                                                   
}                                                                     
 2007e80:	81 c3 e0 08 	retl                                           
 2007e84:	90 10 20 00 	clr  %o0                                       
                                                                      

02008e18 <pthread_setschedparam>: int pthread_setschedparam( pthread_t thread, int policy, struct sched_param *param ) {
 2008e18:	9d e3 bf 90 	save  %sp, -112, %sp                           
 2008e1c:	ba 10 00 18 	mov  %i0, %i5                                  
  int                                  rc;                            
                                                                      
  /*                                                                  
   *  Check all the parameters                                        
   */                                                                 
  if ( !param )                                                       
 2008e20:	80 a6 a0 00 	cmp  %i2, 0                                    
 2008e24:	02 80 00 38 	be  2008f04 <pthread_setschedparam+0xec>       
 2008e28:	b0 10 20 16 	mov  0x16, %i0                                 
    return EINVAL;                                                    
                                                                      
  rc = _POSIX_Thread_Translate_sched_param(                           
 2008e2c:	90 10 00 19 	mov  %i1, %o0                                  
 2008e30:	92 10 00 1a 	mov  %i2, %o1                                  
 2008e34:	94 07 bf f4 	add  %fp, -12, %o2                             
 2008e38:	40 00 1a 61 	call  200f7bc <_POSIX_Thread_Translate_sched_param>
 2008e3c:	96 07 bf f8 	add  %fp, -8, %o3                              
    policy,                                                           
    param,                                                            
    &budget_algorithm,                                                
    &budget_callout                                                   
  );                                                                  
  if ( rc )                                                           
 2008e40:	b0 92 20 00 	orcc  %o0, 0, %i0                              
 2008e44:	12 80 00 30 	bne  2008f04 <pthread_setschedparam+0xec>      
 2008e48:	90 10 00 1d 	mov  %i5, %o0                                  
    return rc;                                                        
                                                                      
  /*                                                                  
   *  Actually change the scheduling policy and parameters            
   */                                                                 
  the_thread = _Thread_Get( thread, &location );                      
 2008e4c:	40 00 0c 76 	call  200c024 <_Thread_Get>                    
 2008e50:	92 07 bf fc 	add  %fp, -4, %o1                              
  switch ( location ) {                                               
 2008e54:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 2008e58:	80 a0 60 00 	cmp  %g1, 0                                    
 2008e5c:	12 80 00 2c 	bne  2008f0c <pthread_setschedparam+0xf4>      
 2008e60:	b8 10 00 08 	mov  %o0, %i4                                  
                                                                      
    case OBJECTS_LOCAL:                                               
      api = the_thread->API_Extensions[ THREAD_API_POSIX ];           
 2008e64:	fa 02 21 5c 	ld  [ %o0 + 0x15c ], %i5                       
                                                                      
      if ( api->schedpolicy == SCHED_SPORADIC )                       
 2008e68:	c2 07 60 84 	ld  [ %i5 + 0x84 ], %g1                        
 2008e6c:	80 a0 60 04 	cmp  %g1, 4                                    
 2008e70:	02 80 00 33 	be  2008f3c <pthread_setschedparam+0x124>      
 2008e74:	01 00 00 00 	nop                                            
        (void) _Watchdog_Remove( &api->Sporadic_timer );              
                                                                      
      api->schedpolicy = policy;                                      
 2008e78:	f2 27 60 84 	st  %i1, [ %i5 + 0x84 ]                        
      api->schedparam  = *param;                                      
 2008e7c:	c2 06 80 00 	ld  [ %i2 ], %g1                               
      the_thread->budget_algorithm = budget_algorithm;                
      the_thread->budget_callout   = budget_callout;                  
                                                                      
      switch ( api->schedpolicy ) {                                   
 2008e80:	80 a6 60 00 	cmp  %i1, 0                                    
                                                                      
      if ( api->schedpolicy == SCHED_SPORADIC )                       
        (void) _Watchdog_Remove( &api->Sporadic_timer );              
                                                                      
      api->schedpolicy = policy;                                      
      api->schedparam  = *param;                                      
 2008e84:	c2 27 60 88 	st  %g1, [ %i5 + 0x88 ]                        
 2008e88:	c4 06 a0 04 	ld  [ %i2 + 4 ], %g2                           
 2008e8c:	c4 27 60 8c 	st  %g2, [ %i5 + 0x8c ]                        
 2008e90:	c4 06 a0 08 	ld  [ %i2 + 8 ], %g2                           
 2008e94:	c4 27 60 90 	st  %g2, [ %i5 + 0x90 ]                        
 2008e98:	c4 06 a0 0c 	ld  [ %i2 + 0xc ], %g2                         
 2008e9c:	c4 27 60 94 	st  %g2, [ %i5 + 0x94 ]                        
 2008ea0:	c4 06 a0 10 	ld  [ %i2 + 0x10 ], %g2                        
 2008ea4:	c4 27 60 98 	st  %g2, [ %i5 + 0x98 ]                        
 2008ea8:	c4 06 a0 14 	ld  [ %i2 + 0x14 ], %g2                        
 2008eac:	c4 27 60 9c 	st  %g2, [ %i5 + 0x9c ]                        
 2008eb0:	c4 06 a0 18 	ld  [ %i2 + 0x18 ], %g2                        
 2008eb4:	c4 27 60 a0 	st  %g2, [ %i5 + 0xa0 ]                        
      the_thread->budget_algorithm = budget_algorithm;                
 2008eb8:	c4 07 bf f4 	ld  [ %fp + -12 ], %g2                         
 2008ebc:	c4 27 20 7c 	st  %g2, [ %i4 + 0x7c ]                        
      the_thread->budget_callout   = budget_callout;                  
 2008ec0:	c4 07 bf f8 	ld  [ %fp + -8 ], %g2                          
                                                                      
      switch ( api->schedpolicy ) {                                   
 2008ec4:	06 80 00 0e 	bl  2008efc <pthread_setschedparam+0xe4>       <== NEVER TAKEN
 2008ec8:	c4 27 20 80 	st  %g2, [ %i4 + 0x80 ]                        
 2008ecc:	80 a6 60 02 	cmp  %i1, 2                                    
 2008ed0:	04 80 00 11 	ble  2008f14 <pthread_setschedparam+0xfc>      
 2008ed4:	07 00 80 6d 	sethi  %hi(0x201b400), %g3                     
 2008ed8:	80 a6 60 04 	cmp  %i1, 4                                    
 2008edc:	12 80 00 08 	bne  2008efc <pthread_setschedparam+0xe4>      <== NEVER TAKEN
 2008ee0:	01 00 00 00 	nop                                            
             true                                                     
          );                                                          
          break;                                                      
                                                                      
        case SCHED_SPORADIC:                                          
          api->ss_high_priority = api->schedparam.sched_priority;     
 2008ee4:	c2 27 60 a4 	st  %g1, [ %i5 + 0xa4 ]                        
          _Watchdog_Remove( &api->Sporadic_timer );                   
 2008ee8:	40 00 10 e3 	call  200d274 <_Watchdog_Remove>               
 2008eec:	90 07 60 a8 	add  %i5, 0xa8, %o0                            
          _POSIX_Threads_Sporadic_budget_TSR( 0, the_thread );        
 2008ef0:	90 10 20 00 	clr  %o0                                       
 2008ef4:	7f ff ff 7e 	call  2008cec <_POSIX_Threads_Sporadic_budget_TSR>
 2008ef8:	92 10 00 1c 	mov  %i4, %o1                                  
          break;                                                      
      }                                                               
                                                                      
      _Thread_Enable_dispatch();                                      
 2008efc:	40 00 0c 3d 	call  200bff0 <_Thread_Enable_dispatch>        
 2008f00:	01 00 00 00 	nop                                            
      return 0;                                                       
 2008f04:	81 c7 e0 08 	ret                                            
 2008f08:	81 e8 00 00 	restore                                        
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return ESRCH;                                                       
}                                                                     
 2008f0c:	81 c7 e0 08 	ret                                            
 2008f10:	91 e8 20 03 	restore  %g0, 3, %o0                           
                                                                      
      switch ( api->schedpolicy ) {                                   
        case SCHED_OTHER:                                             
        case SCHED_FIFO:                                              
        case SCHED_RR:                                                
          the_thread->cpu_time_budget = _Thread_Ticks_per_timeslice;  
 2008f14:	05 00 80 70 	sethi  %hi(0x201c000), %g2                     
 2008f18:	d2 08 e0 2c 	ldub  [ %g3 + 0x2c ], %o1                      
 2008f1c:	c4 00 a0 e4 	ld  [ %g2 + 0xe4 ], %g2                        
 2008f20:	92 22 40 01 	sub  %o1, %g1, %o1                             
 2008f24:	c4 27 20 78 	st  %g2, [ %i4 + 0x78 ]                        
                                                                      
          the_thread->real_priority =                                 
            _POSIX_Priority_To_core( api->schedparam.sched_priority );
                                                                      
          _Thread_Change_priority(                                    
 2008f28:	90 10 00 1c 	mov  %i4, %o0                                  
        case SCHED_OTHER:                                             
        case SCHED_FIFO:                                              
        case SCHED_RR:                                                
          the_thread->cpu_time_budget = _Thread_Ticks_per_timeslice;  
                                                                      
          the_thread->real_priority =                                 
 2008f2c:	d2 27 20 18 	st  %o1, [ %i4 + 0x18 ]                        
            _POSIX_Priority_To_core( api->schedparam.sched_priority );
                                                                      
          _Thread_Change_priority(                                    
 2008f30:	40 00 0a f3 	call  200bafc <_Thread_Change_priority>        
 2008f34:	94 10 20 01 	mov  1, %o2                                    
             the_thread,                                              
             the_thread->real_priority,                               
             true                                                     
          );                                                          
          break;                                                      
 2008f38:	30 bf ff f1 	b,a   2008efc <pthread_setschedparam+0xe4>     
                                                                      
    case OBJECTS_LOCAL:                                               
      api = the_thread->API_Extensions[ THREAD_API_POSIX ];           
                                                                      
      if ( api->schedpolicy == SCHED_SPORADIC )                       
        (void) _Watchdog_Remove( &api->Sporadic_timer );              
 2008f3c:	40 00 10 ce 	call  200d274 <_Watchdog_Remove>               
 2008f40:	90 07 60 a8 	add  %i5, 0xa8, %o0                            
                                                                      
      api->schedpolicy = policy;                                      
 2008f44:	10 bf ff ce 	b  2008e7c <pthread_setschedparam+0x64>        
 2008f48:	f2 27 60 84 	st  %i1, [ %i5 + 0x84 ]                        
                                                                      

02006914 <pthread_testcancel>: /* * 18.2.2 Setting Cancelability State, P1003.1c/Draft 10, p. 183 */ void pthread_testcancel( void ) {
 2006914:	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() )                                        
 2006918:	3b 00 80 63 	sethi  %hi(0x2018c00), %i5                     
 200691c:	ba 17 62 b8 	or  %i5, 0x2b8, %i5	! 2018eb8 <_Per_CPU_Information>
 2006920:	c2 07 60 08 	ld  [ %i5 + 8 ], %g1                           
 2006924:	80 a0 60 00 	cmp  %g1, 0                                    
 2006928:	12 80 00 16 	bne  2006980 <pthread_testcancel+0x6c>         <== NEVER TAKEN
 200692c:	01 00 00 00 	nop                                            
   *                                                                  
   * This rountine increments the thread dispatch level               
   */                                                                 
  RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
  {                                                                   
    _Thread_Dispatch_disable_level++;                                 
 2006930:	03 00 80 62 	sethi  %hi(0x2018800), %g1                     
    return;                                                           
                                                                      
  thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
 2006934:	c4 07 60 0c 	ld  [ %i5 + 0xc ], %g2                         
 2006938:	c6 00 61 80 	ld  [ %g1 + 0x180 ], %g3                       
 200693c:	c4 00 a1 5c 	ld  [ %g2 + 0x15c ], %g2                       
 2006940:	86 00 e0 01 	inc  %g3                                       
 2006944:	c6 20 61 80 	st  %g3, [ %g1 + 0x180 ]                       
    return _Thread_Dispatch_disable_level;                            
 2006948:	c2 00 61 80 	ld  [ %g1 + 0x180 ], %g1                       
                                                                      
  _Thread_Disable_dispatch();                                         
    if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE &&
 200694c:	c2 00 a0 d8 	ld  [ %g2 + 0xd8 ], %g1                        
 2006950:	80 a0 60 00 	cmp  %g1, 0                                    
 2006954:	12 80 00 0d 	bne  2006988 <pthread_testcancel+0x74>         <== NEVER TAKEN
 2006958:	01 00 00 00 	nop                                            
 200695c:	c2 00 a0 e0 	ld  [ %g2 + 0xe0 ], %g1                        
 2006960:	80 a0 60 00 	cmp  %g1, 0                                    
 2006964:	02 80 00 09 	be  2006988 <pthread_testcancel+0x74>          
 2006968:	01 00 00 00 	nop                                            
         thread_support->cancelation_requested )                      
      cancel = true;                                                  
  _Thread_Enable_dispatch();                                          
 200696c:	40 00 0b f8 	call  200994c <_Thread_Enable_dispatch>        
 2006970:	b2 10 3f ff 	mov  -1, %i1	! ffffffff <RAM_END+0xfdbfffff>   
                                                                      
  if ( cancel )                                                       
    _POSIX_Thread_Exit( _Thread_Executing, PTHREAD_CANCELED );        
 2006974:	f0 07 60 0c 	ld  [ %i5 + 0xc ], %i0                         
 2006978:	40 00 1a 29 	call  200d21c <_POSIX_Thread_Exit>             
 200697c:	81 e8 00 00 	restore                                        
 2006980:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 2006984:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      
  _Thread_Disable_dispatch();                                         
    if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE &&
         thread_support->cancelation_requested )                      
      cancel = true;                                                  
  _Thread_Enable_dispatch();                                          
 2006988:	40 00 0b f1 	call  200994c <_Thread_Enable_dispatch>        
 200698c:	81 e8 00 00 	restore                                        
                                                                      

0200b6a4 <ramdisk_allocate>: void *area_begin, uint32_t block_size, rtems_blkdev_bnum block_count, bool trace ) {
 200b6a4:	9d e3 bf a0 	save  %sp, -96, %sp                            
  struct ramdisk *rd = malloc(sizeof(struct ramdisk));                
 200b6a8:	7f ff e1 c8 	call  2003dc8 <malloc>                         
 200b6ac:	90 10 20 10 	mov  0x10, %o0                                 
                                                                      
  if (rd == NULL) {                                                   
 200b6b0:	ba 92 20 00 	orcc  %o0, 0, %i5                              
 200b6b4:	02 80 00 0b 	be  200b6e0 <ramdisk_allocate+0x3c>            <== NEVER TAKEN
 200b6b8:	80 a6 20 00 	cmp  %i0, 0                                    
    return NULL;                                                      
  }                                                                   
                                                                      
  if (area_begin == NULL) {                                           
 200b6bc:	02 80 00 0b 	be  200b6e8 <ramdisk_allocate+0x44>            <== ALWAYS TAKEN
 200b6c0:	90 10 00 1a 	mov  %i2, %o0                                  
                                                                      
      return NULL;                                                    
    }                                                                 
    rd->malloced = true;                                              
  } else {                                                            
    rd->malloced = false;                                             
 200b6c4:	c0 2f 60 0d 	clrb  [ %i5 + 0xd ]                            <== NOT EXECUTED
  }                                                                   
  rd->block_size = block_size;                                        
  rd->block_num = block_count;                                        
  rd->area = area_begin;                                              
  rd->trace = trace;                                                  
  rd->initialized = true;                                             
 200b6c8:	82 10 20 01 	mov  1, %g1                                    <== NOT EXECUTED
    }                                                                 
    rd->malloced = true;                                              
  } else {                                                            
    rd->malloced = false;                                             
  }                                                                   
  rd->block_size = block_size;                                        
 200b6cc:	f2 27 40 00 	st  %i1, [ %i5 ]                               
  rd->block_num = block_count;                                        
 200b6d0:	f4 27 60 04 	st  %i2, [ %i5 + 4 ]                           
  rd->area = area_begin;                                              
 200b6d4:	f0 27 60 08 	st  %i0, [ %i5 + 8 ]                           
  rd->trace = trace;                                                  
 200b6d8:	f6 2f 60 0e 	stb  %i3, [ %i5 + 0xe ]                        
  rd->initialized = true;                                             
 200b6dc:	c2 2f 60 0c 	stb  %g1, [ %i5 + 0xc ]                        
                                                                      
  return rd;                                                          
}                                                                     
 200b6e0:	81 c7 e0 08 	ret                                            
 200b6e4:	91 e8 00 1d 	restore  %g0, %i5, %o0                         
  if (rd == NULL) {                                                   
    return NULL;                                                      
  }                                                                   
                                                                      
  if (area_begin == NULL) {                                           
    area_begin = calloc(block_count, block_size);                     
 200b6e8:	7f ff e0 63 	call  2003874 <calloc>                         
 200b6ec:	92 10 00 19 	mov  %i1, %o1                                  
    if (area_begin == NULL) {                                         
 200b6f0:	b0 92 20 00 	orcc  %o0, 0, %i0                              
 200b6f4:	02 80 00 04 	be  200b704 <ramdisk_allocate+0x60>            <== NEVER TAKEN
 200b6f8:	82 10 20 01 	mov  1, %g1                                    
      free(rd);                                                       
                                                                      
      return NULL;                                                    
    }                                                                 
    rd->malloced = true;                                              
 200b6fc:	10 bf ff f4 	b  200b6cc <ramdisk_allocate+0x28>             
 200b700:	c2 2f 60 0d 	stb  %g1, [ %i5 + 0xd ]                        
  }                                                                   
                                                                      
  if (area_begin == NULL) {                                           
    area_begin = calloc(block_count, block_size);                     
    if (area_begin == NULL) {                                         
      free(rd);                                                       
 200b704:	90 10 00 1d 	mov  %i5, %o0                                  <== NOT EXECUTED
 200b708:	7f ff e0 ce 	call  2003a40 <free>                           <== NOT EXECUTED
 200b70c:	ba 10 20 00 	clr  %i5                                       <== NOT EXECUTED
                                                                      
      return NULL;                                                    
 200b710:	30 bf ff f4 	b,a   200b6e0 <ramdisk_allocate+0x3c>          <== NOT EXECUTED
                                                                      

0200b714 <ramdisk_free>: return rd; } void ramdisk_free(ramdisk *rd) {
 200b714:	9d e3 bf a0 	save  %sp, -96, %sp                            
  if (rd != NULL) {                                                   
 200b718:	80 a6 20 00 	cmp  %i0, 0                                    
 200b71c:	02 80 00 0c 	be  200b74c <ramdisk_free+0x38>                <== NEVER TAKEN
 200b720:	01 00 00 00 	nop                                            
    if (rd->malloced) {                                               
 200b724:	c2 0e 20 0d 	ldub  [ %i0 + 0xd ], %g1                       
 200b728:	80 a0 60 00 	cmp  %g1, 0                                    
 200b72c:	12 80 00 04 	bne  200b73c <ramdisk_free+0x28>               <== ALWAYS TAKEN
 200b730:	01 00 00 00 	nop                                            
      free(rd->area);                                                 
    }                                                                 
    free(rd);                                                         
 200b734:	7f ff e0 c3 	call  2003a40 <free>                           <== NOT EXECUTED
 200b738:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      
void ramdisk_free(ramdisk *rd)                                        
{                                                                     
  if (rd != NULL) {                                                   
    if (rd->malloced) {                                               
      free(rd->area);                                                 
 200b73c:	7f ff e0 c1 	call  2003a40 <free>                           
 200b740:	d0 06 20 08 	ld  [ %i0 + 8 ], %o0                           
    }                                                                 
    free(rd);                                                         
 200b744:	7f ff e0 bf 	call  2003a40 <free>                           
 200b748:	81 e8 00 00 	restore                                        
 200b74c:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200b750:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

0200b580 <ramdisk_ioctl>: return 0; } int ramdisk_ioctl(rtems_disk_device *dd, uint32_t req, void *argp) {
 200b580:	9d e3 bf a0 	save  %sp, -96, %sp                            
    switch (req)                                                      
 200b584:	03 30 06 10 	sethi  %hi(0xc0184000), %g1                    
 200b588:	82 10 62 01 	or  %g1, 0x201, %g1	! c0184201 <RAM_END+0xbdd84201>
 200b58c:	80 a6 40 01 	cmp  %i1, %g1                                  
 200b590:	02 80 00 04 	be  200b5a0 <ramdisk_ioctl+0x20>               
 200b594:	ba 10 00 1a 	mov  %i2, %i5                                  
            }                                                         
            break;                                                    
        }                                                             
                                                                      
        default:                                                      
            return rtems_blkdev_ioctl (dd, req, argp);                
 200b598:	40 00 0b 7a 	call  200e380 <rtems_blkdev_ioctl>             
 200b59c:	81 e8 00 00 	restore                                        
        case RTEMS_BLKIO_REQUEST:                                     
        {                                                             
            rtems_blkdev_request *r = argp;                           
            struct ramdisk *rd = rtems_disk_get_driver_data(dd);      
                                                                      
            switch (r->req)                                           
 200b5a0:	c2 06 80 00 	ld  [ %i2 ], %g1                               
 200b5a4:	80 a0 60 00 	cmp  %g1, 0                                    
 200b5a8:	12 80 00 1d 	bne  200b61c <ramdisk_ioctl+0x9c>              <== ALWAYS TAKEN
 200b5ac:	f4 06 20 2c 	ld  [ %i0 + 0x2c ], %i2                        
#if RTEMS_RAMDISK_TRACE                                               
    rtems_ramdisk_printf (rd, "ramdisk read: start=%d, blocks=%d",    
                          req->bufs[0].block, req->bufnum);           
#endif                                                                
                                                                      
    for (i = 0, sg = req->bufs; i < req->bufnum; i++, sg++)           
 200b5b0:	c2 07 60 10 	ld  [ %i5 + 0x10 ], %g1                        <== NOT EXECUTED
 200b5b4:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
 200b5b8:	02 80 00 11 	be  200b5fc <ramdisk_ioctl+0x7c>               <== NOT EXECUTED
 200b5bc:	f0 06 a0 08 	ld  [ %i2 + 8 ], %i0                           <== NOT EXECUTED
 200b5c0:	b8 07 60 18 	add  %i5, 0x18, %i4                            <== NOT EXECUTED
 200b5c4:	b6 10 20 00 	clr  %i3                                       <== NOT EXECUTED
#if RTEMS_RAMDISK_TRACE                                               
        rtems_ramdisk_printf (rd, "ramdisk read: buf=%d block=%d length=%d off=%d addr=%p",
                              i, sg->block, sg->length, sg->block * rd->block_size,
                              from + (sg->block * rd->block_size));   
#endif                                                                
        memcpy(sg->buffer, from + (sg->block * rd->block_size), sg->length);
 200b5c8:	d0 07 00 00 	ld  [ %i4 ], %o0                               <== NOT EXECUTED
 200b5cc:	d2 06 80 00 	ld  [ %i2 ], %o1                               <== NOT EXECUTED
 200b5d0:	40 00 2d cd 	call  2016d04 <.umul>                          <== NOT EXECUTED
 200b5d4:	f2 07 20 08 	ld  [ %i4 + 8 ], %i1                           <== NOT EXECUTED
 200b5d8:	d4 07 20 04 	ld  [ %i4 + 4 ], %o2                           <== NOT EXECUTED
 200b5dc:	92 06 00 08 	add  %i0, %o0, %o1                             <== NOT EXECUTED
 200b5e0:	40 00 22 c8 	call  2014100 <memcpy>                         <== NOT EXECUTED
 200b5e4:	90 10 00 19 	mov  %i1, %o0                                  <== NOT EXECUTED
#if RTEMS_RAMDISK_TRACE                                               
    rtems_ramdisk_printf (rd, "ramdisk read: start=%d, blocks=%d",    
                          req->bufs[0].block, req->bufnum);           
#endif                                                                
                                                                      
    for (i = 0, sg = req->bufs; i < req->bufnum; i++, sg++)           
 200b5e8:	c2 07 60 10 	ld  [ %i5 + 0x10 ], %g1                        <== NOT EXECUTED
 200b5ec:	b6 06 e0 01 	inc  %i3                                       <== NOT EXECUTED
 200b5f0:	80 a6 c0 01 	cmp  %i3, %g1                                  <== NOT EXECUTED
 200b5f4:	0a bf ff f5 	bcs  200b5c8 <ramdisk_ioctl+0x48>              <== NOT EXECUTED
 200b5f8:	b8 07 20 10 	add  %i4, 0x10, %i4                            <== NOT EXECUTED
                              to + (sg->block * rd->block_size));     
#endif                                                                
        memcpy(to + (sg->block * rd->block_size), sg->buffer, sg->length);
    }                                                                 
    req->status = RTEMS_SUCCESSFUL;                                   
    req->req_done(req->done_arg, RTEMS_SUCCESSFUL);                   
 200b5fc:	c2 07 60 04 	ld  [ %i5 + 4 ], %g1                           <== NOT EXECUTED
 200b600:	d0 07 60 08 	ld  [ %i5 + 8 ], %o0                           <== NOT EXECUTED
                              i, sg->block, sg->length, sg->block * rd->block_size,
                              to + (sg->block * rd->block_size));     
#endif                                                                
        memcpy(to + (sg->block * rd->block_size), sg->buffer, sg->length);
    }                                                                 
    req->status = RTEMS_SUCCESSFUL;                                   
 200b604:	c0 27 60 0c 	clr  [ %i5 + 0xc ]                             <== NOT EXECUTED
    req->req_done(req->done_arg, RTEMS_SUCCESSFUL);                   
 200b608:	92 10 20 00 	clr  %o1                                       <== NOT EXECUTED
 200b60c:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
 200b610:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
            {                                                         
                case RTEMS_BLKDEV_REQ_READ:                           
                    return ramdisk_read(rd, r);                       
                                                                      
                case RTEMS_BLKDEV_REQ_WRITE:                          
                    return ramdisk_write(rd, r);                      
 200b614:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200b618:	81 e8 00 00 	restore                                        <== NOT EXECUTED
        case RTEMS_BLKIO_REQUEST:                                     
        {                                                             
            rtems_blkdev_request *r = argp;                           
            struct ramdisk *rd = rtems_disk_get_driver_data(dd);      
                                                                      
            switch (r->req)                                           
 200b61c:	80 a0 60 01 	cmp  %g1, 1                                    
 200b620:	22 80 00 08 	be,a   200b640 <ramdisk_ioctl+0xc0>            <== ALWAYS TAKEN
 200b624:	c2 07 60 10 	ld  [ %i5 + 0x10 ], %g1                        
                                                                      
                case RTEMS_BLKDEV_REQ_WRITE:                          
                    return ramdisk_write(rd, r);                      
                                                                      
                default:                                              
                    errno = EINVAL;                                   
 200b628:	40 00 20 74 	call  20137f8 <__errno>                        <== NOT EXECUTED
 200b62c:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
 200b630:	82 10 20 16 	mov  0x16, %g1                                 <== NOT EXECUTED
 200b634:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
                    return -1;                                        
 200b638:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200b63c:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      
#if RTEMS_RAMDISK_TRACE                                               
    rtems_ramdisk_printf (rd, "ramdisk write: start=%d, blocks=%d",   
                          req->bufs[0].block, req->bufnum);           
#endif                                                                
    for (i = 0, sg = req->bufs; i < req->bufnum; i++, sg++)           
 200b640:	80 a0 60 00 	cmp  %g1, 0                                    
 200b644:	02 bf ff ee 	be  200b5fc <ramdisk_ioctl+0x7c>               <== NEVER TAKEN
 200b648:	f2 06 a0 08 	ld  [ %i2 + 8 ], %i1                           
 200b64c:	b8 07 60 18 	add  %i5, 0x18, %i4                            
 200b650:	b6 10 20 00 	clr  %i3                                       
#if RTEMS_RAMDISK_TRACE                                               
        rtems_ramdisk_printf (rd, "ramdisk write: buf=%d block=%d length=%d off=%d addr=%p",
                              i, sg->block, sg->length, sg->block * rd->block_size,
                              to + (sg->block * rd->block_size));     
#endif                                                                
        memcpy(to + (sg->block * rd->block_size), sg->buffer, sg->length);
 200b654:	d0 07 00 00 	ld  [ %i4 ], %o0                               
 200b658:	d2 06 80 00 	ld  [ %i2 ], %o1                               
 200b65c:	40 00 2d aa 	call  2016d04 <.umul>                          
 200b660:	b6 06 e0 01 	inc  %i3                                       
 200b664:	d2 07 20 08 	ld  [ %i4 + 8 ], %o1                           
 200b668:	d4 07 20 04 	ld  [ %i4 + 4 ], %o2                           
 200b66c:	40 00 22 a5 	call  2014100 <memcpy>                         
 200b670:	90 06 40 08 	add  %i1, %o0, %o0                             
                                                                      
#if RTEMS_RAMDISK_TRACE                                               
    rtems_ramdisk_printf (rd, "ramdisk write: start=%d, blocks=%d",   
                          req->bufs[0].block, req->bufnum);           
#endif                                                                
    for (i = 0, sg = req->bufs; i < req->bufnum; i++, sg++)           
 200b674:	c2 07 60 10 	ld  [ %i5 + 0x10 ], %g1                        
 200b678:	80 a6 c0 01 	cmp  %i3, %g1                                  
 200b67c:	0a bf ff f6 	bcs  200b654 <ramdisk_ioctl+0xd4>              <== NEVER TAKEN
 200b680:	b8 07 20 10 	add  %i4, 0x10, %i4                            
                              to + (sg->block * rd->block_size));     
#endif                                                                
        memcpy(to + (sg->block * rd->block_size), sg->buffer, sg->length);
    }                                                                 
    req->status = RTEMS_SUCCESSFUL;                                   
    req->req_done(req->done_arg, RTEMS_SUCCESSFUL);                   
 200b684:	c2 07 60 04 	ld  [ %i5 + 4 ], %g1                           
 200b688:	d0 07 60 08 	ld  [ %i5 + 8 ], %o0                           
                              i, sg->block, sg->length, sg->block * rd->block_size,
                              to + (sg->block * rd->block_size));     
#endif                                                                
        memcpy(to + (sg->block * rd->block_size), sg->buffer, sg->length);
    }                                                                 
    req->status = RTEMS_SUCCESSFUL;                                   
 200b68c:	c0 27 60 0c 	clr  [ %i5 + 0xc ]                             
    req->req_done(req->done_arg, RTEMS_SUCCESSFUL);                   
 200b690:	92 10 20 00 	clr  %o1                                       
 200b694:	9f c0 40 00 	call  %g1                                      
 200b698:	b0 10 20 00 	clr  %i0                                       
            {                                                         
                case RTEMS_BLKDEV_REQ_READ:                           
                    return ramdisk_read(rd, r);                       
                                                                      
                case RTEMS_BLKDEV_REQ_WRITE:                          
                    return ramdisk_write(rd, r);                      
 200b69c:	81 c7 e0 08 	ret                                            
 200b6a0:	81 e8 00 00 	restore                                        
                                                                      

0200b754 <ramdisk_register>: rtems_blkdev_bnum block_count, bool trace, const char *disk, dev_t *dev_ptr ) {
 200b754:	9d e3 bf 90 	save  %sp, -112, %sp                           
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_device_major_number major = 0;                                
  ramdisk *rd = NULL;                                                 
  dev_t dev = 0;                                                      
                                                                      
  sc = rtems_io_register_driver(0, &ramdisk_ops, &major);             
 200b758:	90 10 20 00 	clr  %o0                                       
  const char *disk,                                                   
  dev_t *dev_ptr                                                      
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_device_major_number major = 0;                                
 200b75c:	c0 27 bf fc 	clr  [ %fp + -4 ]                              
  ramdisk *rd = NULL;                                                 
  dev_t dev = 0;                                                      
                                                                      
  sc = rtems_io_register_driver(0, &ramdisk_ops, &major);             
 200b760:	94 07 bf fc 	add  %fp, -4, %o2                              
 200b764:	13 00 80 65 	sethi  %hi(0x2019400), %o1                     
  rtems_blkdev_bnum block_count,                                      
  bool trace,                                                         
  const char *disk,                                                   
  dev_t *dev_ptr                                                      
)                                                                     
{                                                                     
 200b768:	ba 10 00 18 	mov  %i0, %i5                                  
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_device_major_number major = 0;                                
  ramdisk *rd = NULL;                                                 
  dev_t dev = 0;                                                      
                                                                      
  sc = rtems_io_register_driver(0, &ramdisk_ops, &major);             
 200b76c:	92 12 62 24 	or  %o1, 0x224, %o1                            
 200b770:	7f ff f1 a4 	call  2007e00 <rtems_io_register_driver>       
 200b774:	b0 10 20 0d 	mov  0xd, %i0                                  
  if (sc != RTEMS_SUCCESSFUL) {                                       
 200b778:	80 a2 20 00 	cmp  %o0, 0                                    
 200b77c:	12 80 00 1c 	bne  200b7ec <ramdisk_register+0x98>           <== NEVER TAKEN
 200b780:	96 10 00 1a 	mov  %i2, %o3                                  
    return RTEMS_UNSATISFIED;                                         
  }                                                                   
                                                                      
  rd = ramdisk_allocate(NULL, block_size, block_count, trace);        
 200b784:	92 10 00 1d 	mov  %i5, %o1                                  
 200b788:	7f ff ff c7 	call  200b6a4 <ramdisk_allocate>               
 200b78c:	94 10 00 19 	mov  %i1, %o2                                  
  if (rd == NULL) {                                                   
 200b790:	b4 92 20 00 	orcc  %o0, 0, %i2                              
 200b794:	02 80 00 14 	be  200b7e4 <ramdisk_register+0x90>            <== NEVER TAKEN
 200b798:	e0 07 bf fc 	ld  [ %fp + -4 ], %l0                          
    return RTEMS_UNSATISFIED;                                         
  }                                                                   
                                                                      
  dev = rtems_filesystem_make_dev_t(major, 0);                        
                                                                      
  sc = rtems_disk_create_phys(                                        
 200b79c:	f6 23 a0 5c 	st  %i3, [ %sp + 0x5c ]                        
 200b7a0:	90 10 00 10 	mov  %l0, %o0                                  
 200b7a4:	92 10 20 00 	clr  %o1                                       
 200b7a8:	94 10 00 1d 	mov  %i5, %o2                                  
 200b7ac:	96 10 00 19 	mov  %i1, %o3                                  
 200b7b0:	9a 10 00 1a 	mov  %i2, %o5                                  
 200b7b4:	19 00 80 2d 	sethi  %hi(0x200b400), %o4                     
 200b7b8:	7f ff dc 8f 	call  20029f4 <rtems_disk_create_phys>         
 200b7bc:	98 13 21 80 	or  %o4, 0x180, %o4	! 200b580 <ramdisk_ioctl>  
    block_count,                                                      
    ramdisk_ioctl,                                                    
    rd,                                                               
    disk                                                              
  );                                                                  
  if (sc != RTEMS_SUCCESSFUL) {                                       
 200b7c0:	80 a2 20 00 	cmp  %o0, 0                                    
 200b7c4:	12 80 00 06 	bne  200b7dc <ramdisk_register+0x88>           <== NEVER TAKEN
 200b7c8:	01 00 00 00 	nop                                            
    rtems_io_unregister_driver(major);                                
                                                                      
    return RTEMS_UNSATISFIED;                                         
  }                                                                   
                                                                      
  *dev_ptr = dev;                                                     
 200b7cc:	e0 27 00 00 	st  %l0, [ %i4 ]                               
 200b7d0:	c0 27 20 04 	clr  [ %i4 + 4 ]                               
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 200b7d4:	81 c7 e0 08 	ret                                            
 200b7d8:	91 e8 20 00 	restore  %g0, 0, %o0                           
    ramdisk_ioctl,                                                    
    rd,                                                               
    disk                                                              
  );                                                                  
  if (sc != RTEMS_SUCCESSFUL) {                                       
    ramdisk_free(rd);                                                 
 200b7dc:	7f ff ff ce 	call  200b714 <ramdisk_free>                   <== NOT EXECUTED
 200b7e0:	90 10 00 1a 	mov  %i2, %o0                                  <== NOT EXECUTED
    rtems_io_unregister_driver(major);                                
 200b7e4:	7f ff f1 ef 	call  2007fa0 <rtems_io_unregister_driver>     <== NOT EXECUTED
 200b7e8:	d0 07 bf fc 	ld  [ %fp + -4 ], %o0                          <== NOT EXECUTED
                                                                      
    return RTEMS_UNSATISFIED;                                         
 200b7ec:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200b7f0:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

0201a08c <read>: ssize_t read( int fd, void *buffer, size_t count ) {
 201a08c:	9d e3 bf a0 	save  %sp, -96, %sp                            
  ssize_t      rc;                                                    
  rtems_libio_t *iop;                                                 
                                                                      
  rtems_libio_check_fd( fd );                                         
 201a090:	03 00 80 73 	sethi  %hi(0x201cc00), %g1                     
 201a094:	c2 00 61 90 	ld  [ %g1 + 0x190 ], %g1	! 201cd90 <rtems_libio_number_iops>
 201a098:	80 a6 00 01 	cmp  %i0, %g1                                  
 201a09c:	1a 80 00 1e 	bcc  201a114 <read+0x88>                       <== NEVER TAKEN
 201a0a0:	03 00 80 76 	sethi  %hi(0x201d800), %g1                     
  iop = rtems_libio_iop( fd );                                        
 201a0a4:	fa 00 60 04 	ld  [ %g1 + 4 ], %i5	! 201d804 <rtems_libio_iops>
 201a0a8:	b1 2e 20 06 	sll  %i0, 6, %i0                               
 201a0ac:	ba 07 40 18 	add  %i5, %i0, %i5                             
  rtems_libio_check_is_open( iop );                                   
 201a0b0:	c2 07 60 18 	ld  [ %i5 + 0x18 ], %g1                        
 201a0b4:	80 88 61 00 	btst  0x100, %g1                               
 201a0b8:	02 80 00 17 	be  201a114 <read+0x88>                        
 201a0bc:	80 a6 60 00 	cmp  %i1, 0                                    
  rtems_libio_check_buffer( buffer );                                 
 201a0c0:	02 80 00 1b 	be  201a12c <read+0xa0>                        <== NEVER TAKEN
 201a0c4:	80 a6 a0 00 	cmp  %i2, 0                                    
  rtems_libio_check_count( count );                                   
 201a0c8:	02 80 00 11 	be  201a10c <read+0x80>                        
 201a0cc:	b0 10 20 00 	clr  %i0                                       
  rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_READ, EBADF );
 201a0d0:	80 88 60 02 	btst  2, %g1                                   
 201a0d4:	02 80 00 10 	be  201a114 <read+0x88>                        
 201a0d8:	90 10 00 1d 	mov  %i5, %o0                                  
                                                                      
  /*                                                                  
   *  Now process the read().                                         
   */                                                                 
  rc = (*iop->pathinfo.handlers->read_h)( iop, buffer, count );       
 201a0dc:	c2 07 60 24 	ld  [ %i5 + 0x24 ], %g1                        
 201a0e0:	c2 00 60 08 	ld  [ %g1 + 8 ], %g1                           
 201a0e4:	92 10 00 19 	mov  %i1, %o1                                  
 201a0e8:	9f c0 40 00 	call  %g1                                      
 201a0ec:	94 10 00 1a 	mov  %i2, %o2                                  
                                                                      
  if ( rc > 0 )                                                       
 201a0f0:	b0 92 20 00 	orcc  %o0, 0, %i0                              
 201a0f4:	04 80 00 06 	ble  201a10c <read+0x80>                       
 201a0f8:	85 3e 20 1f 	sra  %i0, 0x1f, %g2                            
    iop->offset += rc;                                                
 201a0fc:	d8 1f 60 10 	ldd  [ %i5 + 0x10 ], %o4                       
 201a100:	86 83 40 18 	addcc  %o5, %i0, %g3                           
 201a104:	84 43 00 02 	addx  %o4, %g2, %g2                            
 201a108:	c4 3f 60 10 	std  %g2, [ %i5 + 0x10 ]                       
                                                                      
  return rc;                                                          
}                                                                     
 201a10c:	81 c7 e0 08 	ret                                            
 201a110:	81 e8 00 00 	restore                                        
  rtems_libio_check_fd( fd );                                         
  iop = rtems_libio_iop( fd );                                        
  rtems_libio_check_is_open( iop );                                   
  rtems_libio_check_buffer( buffer );                                 
  rtems_libio_check_count( count );                                   
  rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_READ, EBADF );
 201a114:	7f ff d6 23 	call  200f9a0 <__errno>                        
 201a118:	b0 10 3f ff 	mov  -1, %i0                                   
 201a11c:	82 10 20 09 	mov  9, %g1                                    
 201a120:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 201a124:	81 c7 e0 08 	ret                                            
 201a128:	81 e8 00 00 	restore                                        
  rtems_libio_t *iop;                                                 
                                                                      
  rtems_libio_check_fd( fd );                                         
  iop = rtems_libio_iop( fd );                                        
  rtems_libio_check_is_open( iop );                                   
  rtems_libio_check_buffer( buffer );                                 
 201a12c:	7f ff d6 1d 	call  200f9a0 <__errno>                        <== NOT EXECUTED
 201a130:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
 201a134:	82 10 20 16 	mov  0x16, %g1                                 <== NOT EXECUTED
 201a138:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
 201a13c:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 201a140:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

02006010 <readlink>: ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) {
 2006010:	9d e3 bf 88 	save  %sp, -120, %sp                           
  rtems_filesystem_location_info_t  loc;                              
  int                               result;                           
                                                                      
  if (!buf)                                                           
 2006014:	80 a6 60 00 	cmp  %i1, 0                                    
 2006018:	02 80 00 26 	be  20060b0 <readlink+0xa0>                    
 200601c:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( EFAULT );                   
                                                                      
  result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ),
 2006020:	40 00 38 33 	call  20140ec <strlen>                         
 2006024:	90 10 00 18 	mov  %i0, %o0                                  
 2006028:	94 10 20 00 	clr  %o2                                       
 200602c:	92 10 00 08 	mov  %o0, %o1                                  
 2006030:	96 07 bf ec 	add  %fp, -20, %o3                             
 2006034:	90 10 00 18 	mov  %i0, %o0                                  
 2006038:	98 10 20 00 	clr  %o4                                       
 200603c:	7f ff fb 60 	call  2004dbc <rtems_filesystem_evaluate_path> 
 2006040:	b0 10 3f ff 	mov  -1, %i0                                   
                                           0, &loc, false );          
  if ( result != 0 )                                                  
 2006044:	80 a2 20 00 	cmp  %o0, 0                                    
 2006048:	12 80 00 10 	bne  2006088 <readlink+0x78>                   <== NEVER TAKEN
 200604c:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
     return -1;                                                       
                                                                      
  if (  (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_SYM_LINK ){
 2006050:	c2 00 60 10 	ld  [ %g1 + 0x10 ], %g1                        
 2006054:	9f c0 40 00 	call  %g1                                      
 2006058:	90 07 bf ec 	add  %fp, -20, %o0                             
 200605c:	80 a2 20 04 	cmp  %o0, 4                                    
 2006060:	12 80 00 0c 	bne  2006090 <readlink+0x80>                   
 2006064:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
    rtems_filesystem_freenode( &loc );                                
    rtems_set_errno_and_return_minus_one( EINVAL );                   
  }                                                                   
                                                                      
  result =  (*loc.ops->readlink_h)( &loc, buf, bufsize );             
 2006068:	92 10 00 19 	mov  %i1, %o1                                  
 200606c:	c2 00 60 3c 	ld  [ %g1 + 0x3c ], %g1                        
 2006070:	94 10 00 1a 	mov  %i2, %o2                                  
 2006074:	9f c0 40 00 	call  %g1                                      
 2006078:	90 07 bf ec 	add  %fp, -20, %o0                             
 200607c:	b0 10 00 08 	mov  %o0, %i0                                  
                                                                      
  rtems_filesystem_freenode( &loc );                                  
 2006080:	7f ff fb 89 	call  2004ea4 <rtems_filesystem_freenode>      
 2006084:	90 07 bf ec 	add  %fp, -20, %o0                             
                                                                      
  return result;                                                      
}                                                                     
 2006088:	81 c7 e0 08 	ret                                            
 200608c:	81 e8 00 00 	restore                                        
                                           0, &loc, false );          
  if ( result != 0 )                                                  
     return -1;                                                       
                                                                      
  if (  (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_SYM_LINK ){
    rtems_filesystem_freenode( &loc );                                
 2006090:	7f ff fb 85 	call  2004ea4 <rtems_filesystem_freenode>      
 2006094:	90 07 bf ec 	add  %fp, -20, %o0                             
    rtems_set_errno_and_return_minus_one( EINVAL );                   
 2006098:	40 00 31 0a 	call  20124c0 <__errno>                        
 200609c:	01 00 00 00 	nop                                            
 20060a0:	82 10 20 16 	mov  0x16, %g1	! 16 <PROM_START+0x16>          
 20060a4:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 20060a8:	81 c7 e0 08 	ret                                            
 20060ac:	81 e8 00 00 	restore                                        
{                                                                     
  rtems_filesystem_location_info_t  loc;                              
  int                               result;                           
                                                                      
  if (!buf)                                                           
    rtems_set_errno_and_return_minus_one( EFAULT );                   
 20060b0:	40 00 31 04 	call  20124c0 <__errno>                        
 20060b4:	b0 10 3f ff 	mov  -1, %i0                                   
 20060b8:	82 10 20 0e 	mov  0xe, %g1                                  
 20060bc:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 20060c0:	81 c7 e0 08 	ret                                            
 20060c4:	81 e8 00 00 	restore                                        
                                                                      

02004a4c <readv>: ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) {
 2004a4c:	9d e3 bf a0 	save  %sp, -96, %sp                            
  int            v;                                                   
  int            bytes;                                               
  rtems_libio_t *iop;                                                 
  bool           all_zeros;                                           
                                                                      
  rtems_libio_check_fd( fd );                                         
 2004a50:	03 00 80 5e 	sethi  %hi(0x2017800), %g1                     
 2004a54:	c2 00 62 00 	ld  [ %g1 + 0x200 ], %g1	! 2017a00 <rtems_libio_number_iops>
 2004a58:	80 a6 00 01 	cmp  %i0, %g1                                  
 2004a5c:	1a 80 00 48 	bcc  2004b7c <readv+0x130>                     
 2004a60:	03 00 80 61 	sethi  %hi(0x2018400), %g1                     
  iop = rtems_libio_iop( fd );                                        
 2004a64:	f8 00 60 50 	ld  [ %g1 + 0x50 ], %i4	! 2018450 <rtems_libio_iops>
 2004a68:	b1 2e 20 06 	sll  %i0, 6, %i0                               
 2004a6c:	b8 07 00 18 	add  %i4, %i0, %i4                             
  rtems_libio_check_is_open( iop );                                   
 2004a70:	c2 07 20 18 	ld  [ %i4 + 0x18 ], %g1                        
 2004a74:	80 88 61 00 	btst  0x100, %g1                               
 2004a78:	02 80 00 41 	be  2004b7c <readv+0x130>                      
 2004a7c:	80 88 60 02 	btst  2, %g1                                   
  rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_READ, EBADF );
 2004a80:	02 80 00 3f 	be  2004b7c <readv+0x130>                      <== NEVER TAKEN
 2004a84:	80 a6 60 00 	cmp  %i1, 0                                    
                                                                      
  /*                                                                  
   *  Argument validation on IO vector                                
   */                                                                 
  if ( !iov )                                                         
 2004a88:	02 80 00 37 	be  2004b64 <readv+0x118>                      
 2004a8c:	80 a6 a0 00 	cmp  %i2, 0                                    
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt <= 0 )                                                  
 2004a90:	04 80 00 35 	ble  2004b64 <readv+0x118>                     
 2004a94:	80 a6 a4 00 	cmp  %i2, 0x400                                
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt > IOV_MAX )                                             
 2004a98:	14 80 00 33 	bg  2004b64 <readv+0x118>                      <== NEVER TAKEN
 2004a9c:	b5 2e a0 03 	sll  %i2, 3, %i2                               
#include <sys/uio.h>                                                  
                                                                      
#include <rtems/libio_.h>                                             
#include <rtems/seterr.h>                                             
                                                                      
ssize_t readv(                                                        
 2004aa0:	82 10 20 00 	clr  %g1                                       
 2004aa4:	ba 10 20 01 	mov  1, %i5                                    
 2004aa8:	10 80 00 03 	b  2004ab4 <readv+0x68>                        
 2004aac:	84 10 20 00 	clr  %g2                                       
    if ( iov[v].iov_base == 0 )                                       
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
 2004ab0:	84 10 00 04 	mov  %g4, %g2                                  
                                                                      
    /*                                                                
     *  iov[v].iov_len cannot be less than 0 because size_t is unsigned.
     *  So we only check for zero.                                    
     */                                                               
    if ( iov[v].iov_base == 0 )                                       
 2004ab4:	c6 06 40 01 	ld  [ %i1 + %g1 ], %g3                         
 2004ab8:	80 a0 e0 00 	cmp  %g3, 0                                    
 2004abc:	02 80 00 2a 	be  2004b64 <readv+0x118>                      
 2004ac0:	88 06 40 01 	add  %i1, %g1, %g4                             
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
 2004ac4:	c6 01 20 04 	ld  [ %g4 + 4 ], %g3                           
 2004ac8:	88 00 c0 02 	add  %g3, %g2, %g4                             
    if ( total < old )                                                
 2004acc:	80 a1 00 02 	cmp  %g4, %g2                                  
 2004ad0:	06 80 00 25 	bl  2004b64 <readv+0x118>                      
 2004ad4:	82 00 60 08 	add  %g1, 8, %g1                               
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    if ( iov[v].iov_len )                                             
      all_zeros = false;                                              
 2004ad8:	80 a0 00 03 	cmp  %g0, %g3                                  
 2004adc:	84 40 3f ff 	addx  %g0, -1, %g2                             
   *  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++ ) {                           
 2004ae0:	80 a0 40 1a 	cmp  %g1, %i2                                  
 2004ae4:	12 bf ff f3 	bne  2004ab0 <readv+0x64>                      
 2004ae8:	ba 0f 40 02 	and  %i5, %g2, %i5                             
  /*                                                                  
   *  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 ) {                                          
 2004aec:	80 8f 60 ff 	btst  0xff, %i5                                
 2004af0:	12 80 00 1b 	bne  2004b5c <readv+0x110>                     
 2004af4:	b0 10 20 00 	clr  %i0                                       
 2004af8:	ba 10 20 00 	clr  %i5                                       
                                                                      
  /*                                                                  
   *  Now process the readv().                                        
   */                                                                 
  for ( total=0, v=0 ; v < iovcnt ; v++ ) {                           
    bytes = (*iop->pathinfo.handlers->read_h)(                        
 2004afc:	c2 07 20 24 	ld  [ %i4 + 0x24 ], %g1                        
#include <sys/uio.h>                                                  
                                                                      
#include <rtems/libio_.h>                                             
#include <rtems/seterr.h>                                             
                                                                      
ssize_t readv(                                                        
 2004b00:	b6 06 40 1d 	add  %i1, %i5, %i3                             
                                                                      
  /*                                                                  
   *  Now process the readv().                                        
   */                                                                 
  for ( total=0, v=0 ; v < iovcnt ; v++ ) {                           
    bytes = (*iop->pathinfo.handlers->read_h)(                        
 2004b04:	d2 06 40 1d 	ld  [ %i1 + %i5 ], %o1                         
 2004b08:	c2 00 60 08 	ld  [ %g1 + 8 ], %g1                           
 2004b0c:	d4 06 e0 04 	ld  [ %i3 + 4 ], %o2                           
 2004b10:	9f c0 40 00 	call  %g1                                      
 2004b14:	90 10 00 1c 	mov  %i4, %o0                                  
      iop,                                                            
      iov[v].iov_base,                                                
      iov[v].iov_len                                                  
    );                                                                
                                                                      
    if ( bytes < 0 )                                                  
 2004b18:	80 a2 20 00 	cmp  %o0, 0                                    
 2004b1c:	26 80 00 10 	bl,a   2004b5c <readv+0x110>                   <== NEVER TAKEN
 2004b20:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
      return -1;                                                      
                                                                      
    if ( bytes > 0 ) {                                                
 2004b24:	02 80 00 07 	be  2004b40 <readv+0xf4>                       <== NEVER TAKEN
 2004b28:	a1 3a 20 1f 	sra  %o0, 0x1f, %l0                            
      iop->offset += bytes;                                           
 2004b2c:	c4 1f 20 10 	ldd  [ %i4 + 0x10 ], %g2                       
 2004b30:	86 80 c0 08 	addcc  %g3, %o0, %g3                           
      total       += bytes;                                           
 2004b34:	b0 06 00 08 	add  %i0, %o0, %i0                             
                                                                      
    if ( bytes < 0 )                                                  
      return -1;                                                      
                                                                      
    if ( bytes > 0 ) {                                                
      iop->offset += bytes;                                           
 2004b38:	84 40 80 10 	addx  %g2, %l0, %g2                            
 2004b3c:	c4 3f 20 10 	std  %g2, [ %i4 + 0x10 ]                       
      total       += bytes;                                           
    }                                                                 
                                                                      
    if (bytes != iov[ v ].iov_len)                                    
 2004b40:	c2 06 e0 04 	ld  [ %i3 + 4 ], %g1                           
 2004b44:	80 a2 00 01 	cmp  %o0, %g1                                  
 2004b48:	12 80 00 05 	bne  2004b5c <readv+0x110>                     <== NEVER TAKEN
 2004b4c:	ba 07 60 08 	add  %i5, 8, %i5                               
  }                                                                   
                                                                      
  /*                                                                  
   *  Now process the readv().                                        
   */                                                                 
  for ( total=0, v=0 ; v < iovcnt ; v++ ) {                           
 2004b50:	80 a7 40 1a 	cmp  %i5, %i2                                  
 2004b54:	32 bf ff eb 	bne,a   2004b00 <readv+0xb4>                   
 2004b58:	c2 07 20 24 	ld  [ %i4 + 0x24 ], %g1                        
 2004b5c:	81 c7 e0 08 	ret                                            
 2004b60:	81 e8 00 00 	restore                                        
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
    if ( total < old )                                                
      rtems_set_errno_and_return_minus_one( EINVAL );                 
 2004b64:	40 00 2d f2 	call  201032c <__errno>                        
 2004b68:	b0 10 3f ff 	mov  -1, %i0                                   
 2004b6c:	82 10 20 16 	mov  0x16, %g1                                 
 2004b70:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2004b74:	81 c7 e0 08 	ret                                            
 2004b78:	81 e8 00 00 	restore                                        
  bool           all_zeros;                                           
                                                                      
  rtems_libio_check_fd( fd );                                         
  iop = rtems_libio_iop( fd );                                        
  rtems_libio_check_is_open( iop );                                   
  rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_READ, EBADF );
 2004b7c:	40 00 2d ec 	call  201032c <__errno>                        
 2004b80:	b0 10 3f ff 	mov  -1, %i0                                   
 2004b84:	82 10 20 09 	mov  9, %g1                                    
 2004b88:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2004b8c:	81 c7 e0 08 	ret                                            
 2004b90:	81 e8 00 00 	restore                                        
                                                                      

0201a1a0 <realloc>: void *realloc( void *ptr, size_t size ) {
 201a1a0:	9d e3 bf 98 	save  %sp, -104, %sp                           
  uintptr_t old_size;                                                 
  char    *new_area;                                                  
                                                                      
  MSBUMP(realloc_calls, 1);                                           
 201a1a4:	3b 00 80 76 	sethi  %hi(0x201d800), %i5                     
 201a1a8:	ba 17 60 20 	or  %i5, 0x20, %i5	! 201d820 <rtems_malloc_statistics>
 201a1ac:	c4 07 60 10 	ld  [ %i5 + 0x10 ], %g2                        
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if in a critical section or ISR.
   */                                                                 
                                                                      
  if (_System_state_Is_up(_System_state_Get())) {                     
 201a1b0:	03 00 80 76 	sethi  %hi(0x201d800), %g1                     
 201a1b4:	c2 00 63 24 	ld  [ %g1 + 0x324 ], %g1	! 201db24 <_System_state_Current>
)                                                                     
{                                                                     
  uintptr_t old_size;                                                 
  char    *new_area;                                                  
                                                                      
  MSBUMP(realloc_calls, 1);                                           
 201a1b8:	84 00 a0 01 	inc  %g2                                       
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if in a critical section or ISR.
   */                                                                 
                                                                      
  if (_System_state_Is_up(_System_state_Get())) {                     
 201a1bc:	80 a0 60 03 	cmp  %g1, 3                                    
 201a1c0:	02 80 00 2c 	be  201a270 <realloc+0xd0>                     <== ALWAYS TAKEN
 201a1c4:	c4 27 60 10 	st  %g2, [ %i5 + 0x10 ]                        
  }                                                                   
                                                                      
  /*                                                                  
   * Continue with realloc().                                         
   */                                                                 
  if ( !ptr )                                                         
 201a1c8:	80 a6 20 00 	cmp  %i0, 0                                    <== NOT EXECUTED
 201a1cc:	02 80 00 49 	be  201a2f0 <realloc+0x150>                    
 201a1d0:	01 00 00 00 	nop                                            
    return malloc( size );                                            
                                                                      
  if ( !size ) {                                                      
 201a1d4:	80 a6 60 00 	cmp  %i1, 0                                    
 201a1d8:	02 80 00 3b 	be  201a2c4 <realloc+0x124>                    <== NEVER TAKEN
 201a1dc:	39 00 80 73 	sethi  %hi(0x201cc00), %i4                     
    free( ptr );                                                      
    return (void *) 0;                                                
  }                                                                   
                                                                      
  if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) {
 201a1e0:	d0 07 21 50 	ld  [ %i4 + 0x150 ], %o0	! 201cd50 <RTEMS_Malloc_Heap>
 201a1e4:	92 10 00 18 	mov  %i0, %o1                                  
 201a1e8:	40 00 01 da 	call  201a950 <_Protected_heap_Get_block_size> 
 201a1ec:	94 07 bf fc 	add  %fp, -4, %o2                              
 201a1f0:	80 8a 20 ff 	btst  0xff, %o0                                
 201a1f4:	02 80 00 39 	be  201a2d8 <realloc+0x138>                    
 201a1f8:	01 00 00 00 	nop                                            
  }                                                                   
                                                                      
  /*                                                                  
   *  Now resize it.                                                  
   */                                                                 
  if ( _Protected_heap_Resize_block( RTEMS_Malloc_Heap, ptr, size ) ) {
 201a1fc:	d0 07 21 50 	ld  [ %i4 + 0x150 ], %o0                       
 201a200:	92 10 00 18 	mov  %i0, %o1                                  
 201a204:	40 00 01 e1 	call  201a988 <_Protected_heap_Resize_block>   
 201a208:	94 10 00 19 	mov  %i1, %o2                                  
 201a20c:	80 8a 20 ff 	btst  0xff, %o0                                
 201a210:	02 80 00 04 	be  201a220 <realloc+0x80>                     
 201a214:	01 00 00 00 	nop                                            
  memcpy( new_area, ptr, (size < old_size) ? size : old_size );       
  free( ptr );                                                        
                                                                      
  return new_area;                                                    
                                                                      
}                                                                     
 201a218:	81 c7 e0 08 	ret                                            
 201a21c:	81 e8 00 00 	restore                                        
   *  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 );                                          
 201a220:	7f ff a4 1e 	call  2003298 <malloc>                         
 201a224:	90 10 00 19 	mov  %i1, %o0                                  
                                                                      
  MSBUMP(malloc_calls, (uint32_t) -1);   /* subtract off the malloc */
 201a228:	c2 07 60 04 	ld  [ %i5 + 4 ], %g1                           
   *  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 );                                          
 201a22c:	b8 10 00 08 	mov  %o0, %i4                                  
                                                                      
  MSBUMP(malloc_calls, (uint32_t) -1);   /* subtract off the malloc */
 201a230:	82 00 7f ff 	add  %g1, -1, %g1                              
                                                                      
  if ( !new_area ) {                                                  
 201a234:	80 a2 20 00 	cmp  %o0, 0                                    
 201a238:	02 80 00 30 	be  201a2f8 <realloc+0x158>                    
 201a23c:	c2 27 60 04 	st  %g1, [ %i5 + 4 ]                           
    return (void *) 0;                                                
  }                                                                   
                                                                      
  memcpy( new_area, ptr, (size < old_size) ? size : old_size );       
 201a240:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 201a244:	80 a6 40 01 	cmp  %i1, %g1                                  
 201a248:	18 80 00 16 	bgu  201a2a0 <realloc+0x100>                   <== ALWAYS TAKEN
 201a24c:	94 10 00 19 	mov  %i1, %o2                                  
 201a250:	92 10 00 18 	mov  %i0, %o1                                  <== NOT EXECUTED
 201a254:	7f ff d8 2f 	call  2010310 <memcpy>                         <== NOT EXECUTED
 201a258:	90 10 00 1c 	mov  %i4, %o0                                  <== NOT EXECUTED
  free( ptr );                                                        
 201a25c:	90 10 00 18 	mov  %i0, %o0                                  <== NOT EXECUTED
 201a260:	7f ff a3 2c 	call  2002f10 <free>                           <== NOT EXECUTED
 201a264:	b0 10 00 1c 	mov  %i4, %i0                                  <== NOT EXECUTED
                                                                      
  return new_area;                                                    
 201a268:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 201a26c:	81 e8 00 00 	restore                                        <== NOT EXECUTED
   * This routine returns true if thread dispatch indicates           
   * that we are in a critical section.                               
   */                                                                 
  RTEMS_INLINE_ROUTINE bool _Thread_Dispatch_in_critical_section(void)
  {                                                                   
     if (  _Thread_Dispatch_disable_level == 0 )                      
 201a270:	03 00 80 76 	sethi  %hi(0x201d800), %g1                     
 201a274:	c2 00 61 d0 	ld  [ %g1 + 0x1d0 ], %g1	! 201d9d0 <_Thread_Dispatch_disable_level>
 201a278:	80 a0 60 00 	cmp  %g1, 0                                    
 201a27c:	12 80 00 07 	bne  201a298 <realloc+0xf8>                    <== NEVER TAKEN
 201a280:	01 00 00 00 	nop                                            
                                                                      
  if (_System_state_Is_up(_System_state_Get())) {                     
    if (_Thread_Dispatch_in_critical_section())                       
      return (void *) 0;                                              
                                                                      
    if (_ISR_Nest_level > 0)                                          
 201a284:	03 00 80 77 	sethi  %hi(0x201dc00), %g1                     
 201a288:	c2 00 63 10 	ld  [ %g1 + 0x310 ], %g1	! 201df10 <_Per_CPU_Information+0x8>
 201a28c:	80 a0 60 00 	cmp  %g1, 0                                    
 201a290:	22 bf ff cf 	be,a   201a1cc <realloc+0x2c>                  <== ALWAYS TAKEN
 201a294:	80 a6 20 00 	cmp  %i0, 0                                    
      return (void *) 0;                                              
 201a298:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 201a29c:	91 e8 20 00 	restore  %g0, 0, %o0                           <== NOT EXECUTED
                                                                      
  if ( !new_area ) {                                                  
    return (void *) 0;                                                
  }                                                                   
                                                                      
  memcpy( new_area, ptr, (size < old_size) ? size : old_size );       
 201a2a0:	92 10 00 18 	mov  %i0, %o1                                  
 201a2a4:	94 10 00 01 	mov  %g1, %o2                                  
 201a2a8:	7f ff d8 1a 	call  2010310 <memcpy>                         
 201a2ac:	90 10 00 1c 	mov  %i4, %o0                                  
  free( ptr );                                                        
 201a2b0:	90 10 00 18 	mov  %i0, %o0                                  
 201a2b4:	7f ff a3 17 	call  2002f10 <free>                           
 201a2b8:	b0 10 00 1c 	mov  %i4, %i0                                  
                                                                      
  return new_area;                                                    
 201a2bc:	81 c7 e0 08 	ret                                            
 201a2c0:	81 e8 00 00 	restore                                        
   */                                                                 
  if ( !ptr )                                                         
    return malloc( size );                                            
                                                                      
  if ( !size ) {                                                      
    free( ptr );                                                      
 201a2c4:	90 10 00 18 	mov  %i0, %o0                                  <== NOT EXECUTED
 201a2c8:	7f ff a3 12 	call  2002f10 <free>                           <== NOT EXECUTED
 201a2cc:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
    return (void *) 0;                                                
 201a2d0:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 201a2d4:	81 e8 00 00 	restore                                        <== NOT EXECUTED
  }                                                                   
                                                                      
  if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) {
    errno = EINVAL;                                                   
 201a2d8:	7f ff d5 b2 	call  200f9a0 <__errno>                        
 201a2dc:	b0 10 20 00 	clr  %i0                                       
 201a2e0:	82 10 20 16 	mov  0x16, %g1                                 
 201a2e4:	c2 22 00 00 	st  %g1, [ %o0 ]                               
    return (void *) 0;                                                
 201a2e8:	81 c7 e0 08 	ret                                            
 201a2ec:	81 e8 00 00 	restore                                        
                                                                      
  /*                                                                  
   * Continue with realloc().                                         
   */                                                                 
  if ( !ptr )                                                         
    return malloc( size );                                            
 201a2f0:	7f ff a3 ea 	call  2003298 <malloc>                         
 201a2f4:	91 e8 00 19 	restore  %g0, %i1, %o0                         
  memcpy( new_area, ptr, (size < old_size) ? size : old_size );       
  free( ptr );                                                        
                                                                      
  return new_area;                                                    
                                                                      
}                                                                     
 201a2f8:	81 c7 e0 08 	ret                                            
 201a2fc:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      

02003e44 <rmdir>: #include <rtems/seterr.h> int rmdir( const char *pathname ) {
 2003e44:	9d e3 bf 70 	save  %sp, -144, %sp                           
                                                                      
  /*                                                                  
   *  Get the parent node of the node we wish to remove. Find the parent path.
   */                                                                 
                                                                      
  parentpathlen = rtems_filesystem_dirname ( pathname );              
 2003e48:	90 10 00 18 	mov  %i0, %o0                                  
 2003e4c:	7f ff fc 13 	call  2002e98 <rtems_filesystem_dirname>       
 2003e50:	ba 10 00 18 	mov  %i0, %i5                                  
                                                                      
  if ( parentpathlen == 0 )                                           
 2003e54:	80 a2 20 00 	cmp  %o0, 0                                    
 2003e58:	12 80 00 29 	bne  2003efc <rmdir+0xb8>                      
 2003e5c:	b6 10 00 08 	mov  %o0, %i3                                  
    rtems_filesystem_get_start_loc( pathname, &i, &parentloc );       
 2003e60:	b8 07 bf d4 	add  %fp, -44, %i4                             
 2003e64:	90 10 00 18 	mov  %i0, %o0                                  
 2003e68:	92 07 bf fc 	add  %fp, -4, %o1                              
 2003e6c:	94 10 00 1c 	mov  %i4, %o2                                  
 2003e70:	40 00 00 56 	call  2003fc8 <rtems_filesystem_get_start_loc> 
 2003e74:	b6 10 20 00 	clr  %i3                                       
  const char                       *name;                             
  rtems_filesystem_location_info_t  parentloc;                        
  rtems_filesystem_location_info_t  loc;                              
  int                               i;                                
  int                               result;                           
  bool                              free_parentloc = false;           
 2003e78:	b4 10 20 00 	clr  %i2                                       
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  loc = parentloc;                                                    
 2003e7c:	c2 07 bf d4 	ld  [ %fp + -44 ], %g1                         
  name = pathname + parentpathlen;                                    
 2003e80:	ba 07 40 1b 	add  %i5, %i3, %i5                             
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  loc = parentloc;                                                    
 2003e84:	c2 27 bf e8 	st  %g1, [ %fp + -24 ]                         
 2003e88:	c2 07 bf d8 	ld  [ %fp + -40 ], %g1                         
  name = pathname + parentpathlen;                                    
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
 2003e8c:	90 10 00 1d 	mov  %i5, %o0                                  
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  loc = parentloc;                                                    
 2003e90:	c2 27 bf ec 	st  %g1, [ %fp + -20 ]                         
 2003e94:	c2 07 bf dc 	ld  [ %fp + -36 ], %g1                         
 2003e98:	c2 27 bf f0 	st  %g1, [ %fp + -16 ]                         
 2003e9c:	c2 07 bf e0 	ld  [ %fp + -32 ], %g1                         
 2003ea0:	c2 27 bf f4 	st  %g1, [ %fp + -12 ]                         
 2003ea4:	c2 07 bf e4 	ld  [ %fp + -28 ], %g1                         
  name = pathname + parentpathlen;                                    
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
 2003ea8:	40 00 33 00 	call  2010aa8 <strlen>                         
 2003eac:	c2 27 bf f8 	st  %g1, [ %fp + -8 ]                          
 2003eb0:	92 10 00 08 	mov  %o0, %o1                                  
 2003eb4:	7f ff fc 08 	call  2002ed4 <rtems_filesystem_prefix_separators>
 2003eb8:	90 10 00 1d 	mov  %i5, %o0                                  
 2003ebc:	ba 07 40 08 	add  %i5, %o0, %i5                             
                                                                      
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
 2003ec0:	40 00 32 fa 	call  2010aa8 <strlen>                         
 2003ec4:	90 10 00 1d 	mov  %i5, %o0                                  
 2003ec8:	94 10 20 00 	clr  %o2                                       
 2003ecc:	92 10 00 08 	mov  %o0, %o1                                  
 2003ed0:	96 07 bf e8 	add  %fp, -24, %o3                             
 2003ed4:	90 10 00 1d 	mov  %i5, %o0                                  
 2003ed8:	7f ff fb c4 	call  2002de8 <rtems_filesystem_evaluate_relative_path>
 2003edc:	98 10 20 00 	clr  %o4                                       
                                                    0, &loc, false ); 
  if ( result != 0 ) {                                                
 2003ee0:	80 a2 20 00 	cmp  %o0, 0                                    
 2003ee4:	02 80 00 17 	be  2003f40 <rmdir+0xfc>                       
 2003ee8:	80 8e a0 ff 	btst  0xff, %i2                                
    if ( free_parentloc )                                             
 2003eec:	12 80 00 11 	bne  2003f30 <rmdir+0xec>                      
 2003ef0:	b0 10 3f ff 	mov  -1, %i0                                   
  rtems_filesystem_freenode( &loc );                                  
  if ( free_parentloc )                                               
    rtems_filesystem_freenode( &parentloc );                          
                                                                      
  return result;                                                      
}                                                                     
 2003ef4:	81 c7 e0 08 	ret                                            
 2003ef8:	81 e8 00 00 	restore                                        
  parentpathlen = rtems_filesystem_dirname ( pathname );              
                                                                      
  if ( parentpathlen == 0 )                                           
    rtems_filesystem_get_start_loc( pathname, &i, &parentloc );       
  else {                                                              
    result = rtems_filesystem_evaluate_path(pathname, parentpathlen,  
 2003efc:	b8 07 bf d4 	add  %fp, -44, %i4                             
 2003f00:	90 10 00 18 	mov  %i0, %o0                                  
 2003f04:	92 10 00 1b 	mov  %i3, %o1                                  
 2003f08:	94 10 20 02 	mov  2, %o2                                    
 2003f0c:	96 10 00 1c 	mov  %i4, %o3                                  
 2003f10:	98 10 20 00 	clr  %o4                                       
 2003f14:	7f ff fb d2 	call  2002e5c <rtems_filesystem_evaluate_path> 
 2003f18:	b0 10 3f ff 	mov  -1, %i0                                   
                                            RTEMS_LIBIO_PERMS_WRITE,  
                                            &parentloc,               
                                            false );                  
    if ( result != 0 )                                                
 2003f1c:	80 a2 20 00 	cmp  %o0, 0                                    
 2003f20:	12 bf ff f5 	bne  2003ef4 <rmdir+0xb0>                      <== NEVER TAKEN
 2003f24:	b4 10 20 01 	mov  1, %i2                                    
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  loc = parentloc;                                                    
 2003f28:	10 bf ff d6 	b  2003e80 <rmdir+0x3c>                        
 2003f2c:	c2 07 bf d4 	ld  [ %fp + -44 ], %g1                         
                                                                      
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
                                                    0, &loc, false ); 
  if ( result != 0 ) {                                                
    if ( free_parentloc )                                             
      rtems_filesystem_freenode( &parentloc );                        
 2003f30:	7f ff fc 05 	call  2002f44 <rtems_filesystem_freenode>      
 2003f34:	90 10 00 1c 	mov  %i4, %o0                                  
 2003f38:	81 c7 e0 08 	ret                                            
 2003f3c:	81 e8 00 00 	restore                                        
  }                                                                   
                                                                      
  /*                                                                  
   * Verify you can remove this node as a directory.                  
   */                                                                 
  if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
 2003f40:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         
 2003f44:	c2 00 60 10 	ld  [ %g1 + 0x10 ], %g1                        
 2003f48:	9f c0 40 00 	call  %g1                                      
 2003f4c:	90 07 bf e8 	add  %fp, -24, %o0                             
 2003f50:	80 a2 20 01 	cmp  %o0, 1                                    
 2003f54:	12 80 00 10 	bne  2003f94 <rmdir+0x150>                     
 2003f58:	c2 07 bf f0 	ld  [ %fp + -16 ], %g1                         
                                                                      
  /*                                                                  
   * Use the filesystems rmnod to remove the node.                    
   */                                                                 
                                                                      
  result =  (*loc.handlers->rmnod_h)( &parentloc, &loc );             
 2003f5c:	92 07 bf e8 	add  %fp, -24, %o1                             
 2003f60:	c2 00 60 34 	ld  [ %g1 + 0x34 ], %g1                        
 2003f64:	9f c0 40 00 	call  %g1                                      
 2003f68:	90 10 00 1c 	mov  %i4, %o0                                  
 2003f6c:	b0 10 00 08 	mov  %o0, %i0                                  
                                                                      
  rtems_filesystem_freenode( &loc );                                  
 2003f70:	7f ff fb f5 	call  2002f44 <rtems_filesystem_freenode>      
 2003f74:	90 07 bf e8 	add  %fp, -24, %o0                             
  if ( free_parentloc )                                               
 2003f78:	80 8e a0 ff 	btst  0xff, %i2                                
 2003f7c:	02 80 00 11 	be  2003fc0 <rmdir+0x17c>                      
 2003f80:	01 00 00 00 	nop                                            
    rtems_filesystem_freenode( &parentloc );                          
 2003f84:	7f ff fb f0 	call  2002f44 <rtems_filesystem_freenode>      
 2003f88:	90 10 00 1c 	mov  %i4, %o0                                  
                                                                      
  return result;                                                      
}                                                                     
 2003f8c:	81 c7 e0 08 	ret                                            
 2003f90:	81 e8 00 00 	restore                                        
                                                                      
  /*                                                                  
   * Verify you can remove this node as a directory.                  
   */                                                                 
  if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
    rtems_filesystem_freenode( &loc );                                
 2003f94:	7f ff fb ec 	call  2002f44 <rtems_filesystem_freenode>      
 2003f98:	90 07 bf e8 	add  %fp, -24, %o0                             
    if ( free_parentloc )                                             
 2003f9c:	80 8e a0 ff 	btst  0xff, %i2                                
 2003fa0:	02 80 00 04 	be  2003fb0 <rmdir+0x16c>                      <== NEVER TAKEN
 2003fa4:	01 00 00 00 	nop                                            
      rtems_filesystem_freenode( &parentloc );                        
 2003fa8:	7f ff fb e7 	call  2002f44 <rtems_filesystem_freenode>      
 2003fac:	90 10 00 1c 	mov  %i4, %o0                                  
    rtems_set_errno_and_return_minus_one( ENOTDIR );                  
 2003fb0:	40 00 2f 4e 	call  200fce8 <__errno>                        
 2003fb4:	b0 10 3f ff 	mov  -1, %i0                                   
 2003fb8:	82 10 20 14 	mov  0x14, %g1                                 
 2003fbc:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2003fc0:	81 c7 e0 08 	ret                                            
 2003fc4:	81 e8 00 00 	restore                                        
                                                                      

02007538 <rtems_aio_enqueue>: * errno - otherwise */ int rtems_aio_enqueue (rtems_aio_request *req) {
 2007538:	9d e3 bf 78 	save  %sp, -136, %sp                           
  struct sched_param param;                                           
                                                                      
  /* The queue should be initialized */                               
  AIO_assert (aio_request_queue.initialized == AIO_QUEUE_INITIALIZED);
                                                                      
  result = pthread_mutex_lock (&aio_request_queue.mutex);             
 200753c:	3b 00 80 67 	sethi  %hi(0x2019c00), %i5                     
 2007540:	40 00 02 75 	call  2007f14 <pthread_mutex_lock>             
 2007544:	90 17 60 0c 	or  %i5, 0xc, %o0	! 2019c0c <aio_request_queue>
  if (result != 0) {                                                  
 2007548:	b8 92 20 00 	orcc  %o0, 0, %i4                              
 200754c:	12 80 00 31 	bne  2007610 <rtems_aio_enqueue+0xd8>          <== NEVER TAKEN
 2007550:	90 10 00 18 	mov  %i0, %o0                                  
    return result;                                                    
  }                                                                   
                                                                      
  /* _POSIX_PRIORITIZED_IO and _POSIX_PRIORITY_SCHEDULING are defined,
     we can use aio_reqprio to lower the priority of the request */   
  pthread_getschedparam (pthread_self(), &policy, ¶m);            
 2007554:	40 00 04 a5 	call  20087e8 <pthread_self>                   
 2007558:	b6 17 60 0c 	or  %i5, 0xc, %i3                              
 200755c:	92 07 bf fc 	add  %fp, -4, %o1                              
 2007560:	40 00 03 93 	call  20083ac <pthread_getschedparam>          
 2007564:	94 07 bf dc 	add  %fp, -36, %o2                             
                                                                      
  req->caller_thread = pthread_self ();                               
 2007568:	40 00 04 a0 	call  20087e8 <pthread_self>                   
 200756c:	01 00 00 00 	nop                                            
  req->priority = param.sched_priority - req->aiocbp->aio_reqprio;    
 2007570:	c2 06 20 14 	ld  [ %i0 + 0x14 ], %g1                        
  req->policy = policy;                                               
 2007574:	c6 07 bf fc 	ld  [ %fp + -4 ], %g3                          
  /* _POSIX_PRIORITIZED_IO and _POSIX_PRIORITY_SCHEDULING are defined,
     we can use aio_reqprio to lower the priority of the request */   
  pthread_getschedparam (pthread_self(), &policy, ¶m);            
                                                                      
  req->caller_thread = pthread_self ();                               
  req->priority = param.sched_priority - req->aiocbp->aio_reqprio;    
 2007578:	c4 00 60 18 	ld  [ %g1 + 0x18 ], %g2                        
  req->policy = policy;                                               
 200757c:	c6 26 20 08 	st  %g3, [ %i0 + 8 ]                           
  /* _POSIX_PRIORITIZED_IO and _POSIX_PRIORITY_SCHEDULING are defined,
     we can use aio_reqprio to lower the priority of the request */   
  pthread_getschedparam (pthread_self(), &policy, ¶m);            
                                                                      
  req->caller_thread = pthread_self ();                               
  req->priority = param.sched_priority - req->aiocbp->aio_reqprio;    
 2007580:	c6 07 bf dc 	ld  [ %fp + -36 ], %g3                         
                                                                      
  /* _POSIX_PRIORITIZED_IO and _POSIX_PRIORITY_SCHEDULING are defined,
     we can use aio_reqprio to lower the priority of the request */   
  pthread_getschedparam (pthread_self(), &policy, ¶m);            
                                                                      
  req->caller_thread = pthread_self ();                               
 2007584:	d0 26 20 10 	st  %o0, [ %i0 + 0x10 ]                        
  req->priority = param.sched_priority - req->aiocbp->aio_reqprio;    
 2007588:	84 20 c0 02 	sub  %g3, %g2, %g2                             
 200758c:	c4 26 20 0c 	st  %g2, [ %i0 + 0xc ]                         
  req->policy = policy;                                               
  req->aiocbp->error_code = EINPROGRESS;                              
  req->aiocbp->return_value = 0;                                      
                                                                      
  if ((aio_request_queue.idle_threads == 0) &&                        
 2007590:	c4 06 e0 68 	ld  [ %i3 + 0x68 ], %g2                        
  pthread_getschedparam (pthread_self(), &policy, ¶m);            
                                                                      
  req->caller_thread = pthread_self ();                               
  req->priority = param.sched_priority - req->aiocbp->aio_reqprio;    
  req->policy = policy;                                               
  req->aiocbp->error_code = EINPROGRESS;                              
 2007594:	86 10 20 77 	mov  0x77, %g3                                 
  req->aiocbp->return_value = 0;                                      
 2007598:	c0 20 60 38 	clr  [ %g1 + 0x38 ]                            
  pthread_getschedparam (pthread_self(), &policy, ¶m);            
                                                                      
  req->caller_thread = pthread_self ();                               
  req->priority = param.sched_priority - req->aiocbp->aio_reqprio;    
  req->policy = policy;                                               
  req->aiocbp->error_code = EINPROGRESS;                              
 200759c:	c6 20 60 34 	st  %g3, [ %g1 + 0x34 ]                        
  req->aiocbp->return_value = 0;                                      
                                                                      
  if ((aio_request_queue.idle_threads == 0) &&                        
 20075a0:	80 a0 a0 00 	cmp  %g2, 0                                    
 20075a4:	12 80 00 06 	bne  20075bc <rtems_aio_enqueue+0x84>          <== NEVER TAKEN
 20075a8:	d2 00 40 00 	ld  [ %g1 ], %o1                               
 20075ac:	c4 06 e0 64 	ld  [ %i3 + 0x64 ], %g2                        
 20075b0:	80 a0 a0 04 	cmp  %g2, 4                                    
 20075b4:	24 80 00 1b 	ble,a   2007620 <rtems_aio_enqueue+0xe8>       
 20075b8:	90 06 e0 48 	add  %i3, 0x48, %o0                            
  else                                                                
    {                                                                 
      /* the maximum number of threads has been already created       
	 even though some of them might be idle.                             
	 The request belongs to one of the active fd chain */                
      r_chain = rtems_aio_search_fd (&aio_request_queue.work_req,     
 20075bc:	94 10 20 00 	clr  %o2                                       
 20075c0:	11 00 80 67 	sethi  %hi(0x2019c00), %o0                     
 20075c4:	7f ff fe a0 	call  2007044 <rtems_aio_search_fd>            
 20075c8:	90 12 20 54 	or  %o0, 0x54, %o0	! 2019c54 <aio_request_queue+0x48>
				     req->aiocbp->aio_fildes, 0);                                 
      if (r_chain != NULL)                                            
 20075cc:	b4 92 20 00 	orcc  %o0, 0, %i2                              
 20075d0:	22 80 00 31 	be,a   2007694 <rtems_aio_enqueue+0x15c>       
 20075d4:	c2 06 20 14 	ld  [ %i0 + 0x14 ], %g1                        
	{                                                                    
	  pthread_mutex_lock (&r_chain->mutex);                              
 20075d8:	b6 06 a0 1c 	add  %i2, 0x1c, %i3                            
 20075dc:	40 00 02 4e 	call  2007f14 <pthread_mutex_lock>             
 20075e0:	90 10 00 1b 	mov  %i3, %o0                                  
	  rtems_aio_insert_prio (&r_chain->perfd, req);                      
 20075e4:	90 06 a0 08 	add  %i2, 8, %o0                               
 20075e8:	7f ff ff 89 	call  200740c <rtems_aio_insert_prio>          
 20075ec:	92 10 00 18 	mov  %i0, %o1                                  
	  pthread_cond_signal (&r_chain->cond);                              
 20075f0:	40 00 01 25 	call  2007a84 <pthread_cond_signal>            
 20075f4:	90 06 a0 20 	add  %i2, 0x20, %o0                            
	  pthread_mutex_unlock (&r_chain->mutex);                            
 20075f8:	40 00 02 67 	call  2007f94 <pthread_mutex_unlock>           
 20075fc:	90 10 00 1b 	mov  %i3, %o0                                  
	if (aio_request_queue.idle_threads > 0)                              
	  pthread_cond_signal (&aio_request_queue.new_req);                  
      }                                                               
    }                                                                 
                                                                      
  pthread_mutex_unlock (&aio_request_queue.mutex);                    
 2007600:	40 00 02 65 	call  2007f94 <pthread_mutex_unlock>           
 2007604:	90 17 60 0c 	or  %i5, 0xc, %o0                              
  return 0;                                                           
}                                                                     
 2007608:	81 c7 e0 08 	ret                                            
 200760c:	91 e8 00 1c 	restore  %g0, %i4, %o0                         
  /* The queue should be initialized */                               
  AIO_assert (aio_request_queue.initialized == AIO_QUEUE_INITIALIZED);
                                                                      
  result = pthread_mutex_lock (&aio_request_queue.mutex);             
  if (result != 0) {                                                  
    free (req);                                                       
 2007610:	7f ff f0 25 	call  20036a4 <free>                           <== NOT EXECUTED
 2007614:	b0 10 00 1c 	mov  %i4, %i0                                  <== NOT EXECUTED
      }                                                               
    }                                                                 
                                                                      
  pthread_mutex_unlock (&aio_request_queue.mutex);                    
  return 0;                                                           
}                                                                     
 2007618:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200761c:	81 e8 00 00 	restore                                        <== NOT EXECUTED
  if ((aio_request_queue.idle_threads == 0) &&                        
      aio_request_queue.active_threads < AIO_MAX_THREADS)             
    /* we still have empty places on the active_threads chain */      
    {                                                                 
      chain = &aio_request_queue.work_req;                            
      r_chain = rtems_aio_search_fd (chain, req->aiocbp->aio_fildes, 1);
 2007620:	7f ff fe 89 	call  2007044 <rtems_aio_search_fd>            
 2007624:	94 10 20 01 	mov  1, %o2                                    
                                                                      
      if (r_chain->new_fd == 1) {                                     
 2007628:	c2 02 20 18 	ld  [ %o0 + 0x18 ], %g1                        
 200762c:	80 a0 60 01 	cmp  %g1, 1                                    
 2007630:	12 bf ff ea 	bne  20075d8 <rtems_aio_enqueue+0xa0>          
 2007634:	b4 10 00 08 	mov  %o0, %i2                                  
RTEMS_INLINE_ROUTINE void _Chain_Prepend(                             
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  _Chain_Insert(_Chain_Head(the_chain), the_node);                    
 2007638:	90 02 20 08 	add  %o0, 8, %o0                               
 200763c:	40 00 09 11 	call  2009a80 <_Chain_Insert>                  
 2007640:	92 10 00 18 	mov  %i0, %o1                                  
	rtems_chain_prepend (&r_chain->perfd, &req->next_prio);              
	r_chain->new_fd = 0;                                                 
	pthread_mutex_init (&r_chain->mutex, NULL);                          
 2007644:	92 10 20 00 	clr  %o1                                       
      chain = &aio_request_queue.work_req;                            
      r_chain = rtems_aio_search_fd (chain, req->aiocbp->aio_fildes, 1);
                                                                      
      if (r_chain->new_fd == 1) {                                     
	rtems_chain_prepend (&r_chain->perfd, &req->next_prio);              
	r_chain->new_fd = 0;                                                 
 2007648:	c0 26 a0 18 	clr  [ %i2 + 0x18 ]                            
	pthread_mutex_init (&r_chain->mutex, NULL);                          
 200764c:	40 00 01 da 	call  2007db4 <pthread_mutex_init>             
 2007650:	90 06 a0 1c 	add  %i2, 0x1c, %o0                            
	pthread_cond_init (&r_chain->cond, NULL);                            
 2007654:	92 10 20 00 	clr  %o1                                       
 2007658:	40 00 00 db 	call  20079c4 <pthread_cond_init>              
 200765c:	90 06 a0 20 	add  %i2, 0x20, %o0                            
	                                                                     
	AIO_printf ("New thread \n");                                        
	result = pthread_create (&thid, &aio_request_queue.attr,             
 2007660:	90 07 bf f8 	add  %fp, -8, %o0                              
 2007664:	92 06 e0 08 	add  %i3, 8, %o1                               
 2007668:	96 10 00 1a 	mov  %i2, %o3                                  
 200766c:	15 00 80 1c 	sethi  %hi(0x2007000), %o2                     
 2007670:	40 00 02 ae 	call  2008128 <pthread_create>                 
 2007674:	94 12 a1 a0 	or  %o2, 0x1a0, %o2	! 20071a0 <rtems_aio_handle>
				 rtems_aio_handle, (void *) r_chain);                             
	if (result != 0) {                                                   
 2007678:	82 92 20 00 	orcc  %o0, 0, %g1                              
 200767c:	12 80 00 25 	bne  2007710 <rtems_aio_enqueue+0x1d8>         <== NEVER TAKEN
 2007680:	90 10 00 1b 	mov  %i3, %o0                                  
	  pthread_mutex_unlock (&aio_request_queue.mutex);                   
	  return result;                                                     
	}                                                                    
	++aio_request_queue.active_threads;                                  
 2007684:	c2 06 e0 64 	ld  [ %i3 + 0x64 ], %g1                        
 2007688:	82 00 60 01 	inc  %g1                                       
 200768c:	10 bf ff dd 	b  2007600 <rtems_aio_enqueue+0xc8>            
 2007690:	c2 26 e0 64 	st  %g1, [ %i3 + 0x64 ]                        
	                                                                     
	} else {                                                             
                                                                      
	/* or to the idle chain */                                           
	chain = &aio_request_queue.idle_req;                                 
	r_chain = rtems_aio_search_fd (chain, req->aiocbp->aio_fildes, 1);   
 2007694:	11 00 80 67 	sethi  %hi(0x2019c00), %o0                     
 2007698:	d2 00 40 00 	ld  [ %g1 ], %o1                               
 200769c:	90 12 20 60 	or  %o0, 0x60, %o0                             
 20076a0:	7f ff fe 69 	call  2007044 <rtems_aio_search_fd>            
 20076a4:	94 10 20 01 	mov  1, %o2                                    
                                                                      
	if (r_chain->new_fd == 1) {                                          
 20076a8:	c2 02 20 18 	ld  [ %o0 + 0x18 ], %g1                        
	                                                                     
	} else {                                                             
                                                                      
	/* or to the idle chain */                                           
	chain = &aio_request_queue.idle_req;                                 
	r_chain = rtems_aio_search_fd (chain, req->aiocbp->aio_fildes, 1);   
 20076ac:	b4 10 00 08 	mov  %o0, %i2                                  
 20076b0:	92 10 00 18 	mov  %i0, %o1                                  
                                                                      
	if (r_chain->new_fd == 1) {                                          
 20076b4:	80 a0 60 01 	cmp  %g1, 1                                    
 20076b8:	02 80 00 0b 	be  20076e4 <rtems_aio_enqueue+0x1ac>          
 20076bc:	90 02 20 08 	add  %o0, 8, %o0                               
	  r_chain->new_fd = 0;                                               
	  pthread_mutex_init (&r_chain->mutex, NULL);                        
	  pthread_cond_init (&r_chain->cond, NULL);                          
	} else                                                               
	  /* just insert the request in the existing fd chain */             
	  rtems_aio_insert_prio (&r_chain->perfd, req);                      
 20076c0:	7f ff ff 53 	call  200740c <rtems_aio_insert_prio>          
 20076c4:	01 00 00 00 	nop                                            
	if (aio_request_queue.idle_threads > 0)                              
 20076c8:	c2 06 e0 68 	ld  [ %i3 + 0x68 ], %g1                        
 20076cc:	80 a0 60 00 	cmp  %g1, 0                                    
 20076d0:	04 bf ff cc 	ble  2007600 <rtems_aio_enqueue+0xc8>          <== ALWAYS TAKEN
 20076d4:	01 00 00 00 	nop                                            
	  pthread_cond_signal (&aio_request_queue.new_req);                  
 20076d8:	40 00 00 eb 	call  2007a84 <pthread_cond_signal>            <== NOT EXECUTED
 20076dc:	90 06 e0 04 	add  %i3, 4, %o0                               <== NOT EXECUTED
 20076e0:	30 bf ff c8 	b,a   2007600 <rtems_aio_enqueue+0xc8>         <== NOT EXECUTED
 20076e4:	40 00 08 e7 	call  2009a80 <_Chain_Insert>                  
 20076e8:	01 00 00 00 	nop                                            
	  /* If this is a new fd chain we signal the idle threads that       
	     might be waiting for requests */                                
	  AIO_printf (" New chain on waiting queue \n ");                    
	  rtems_chain_prepend (&r_chain->perfd, &req->next_prio);            
	  r_chain->new_fd = 0;                                               
	  pthread_mutex_init (&r_chain->mutex, NULL);                        
 20076ec:	90 06 a0 1c 	add  %i2, 0x1c, %o0                            
	if (r_chain->new_fd == 1) {                                          
	  /* If this is a new fd chain we signal the idle threads that       
	     might be waiting for requests */                                
	  AIO_printf (" New chain on waiting queue \n ");                    
	  rtems_chain_prepend (&r_chain->perfd, &req->next_prio);            
	  r_chain->new_fd = 0;                                               
 20076f0:	c0 26 a0 18 	clr  [ %i2 + 0x18 ]                            
	  pthread_mutex_init (&r_chain->mutex, NULL);                        
 20076f4:	40 00 01 b0 	call  2007db4 <pthread_mutex_init>             
 20076f8:	92 10 20 00 	clr  %o1                                       
	  pthread_cond_init (&r_chain->cond, NULL);                          
 20076fc:	90 06 a0 20 	add  %i2, 0x20, %o0                            
 2007700:	40 00 00 b1 	call  20079c4 <pthread_cond_init>              
 2007704:	92 10 20 00 	clr  %o1                                       
	} else                                                               
	  /* just insert the request in the existing fd chain */             
	  rtems_aio_insert_prio (&r_chain->perfd, req);                      
	if (aio_request_queue.idle_threads > 0)                              
 2007708:	10 bf ff f1 	b  20076cc <rtems_aio_enqueue+0x194>           
 200770c:	c2 06 e0 68 	ld  [ %i3 + 0x68 ], %g1                        
	                                                                     
	AIO_printf ("New thread \n");                                        
	result = pthread_create (&thid, &aio_request_queue.attr,             
				 rtems_aio_handle, (void *) r_chain);                             
	if (result != 0) {                                                   
	  pthread_mutex_unlock (&aio_request_queue.mutex);                   
 2007710:	40 00 02 21 	call  2007f94 <pthread_mutex_unlock>           <== NOT EXECUTED
 2007714:	b8 10 00 01 	mov  %g1, %i4                                  <== NOT EXECUTED
	  return result;                                                     
 2007718:	30 bf ff bc 	b,a   2007608 <rtems_aio_enqueue+0xd0>         <== NOT EXECUTED
                                                                      

020071a0 <rtems_aio_handle>: * NULL - if error */ static void * rtems_aio_handle (void *arg) {
 20071a0:	9d e3 bf 78 	save  %sp, -136, %sp                           
      struct timespec timeout;                                        
                                                                      
      AIO_printf ("Chain is empty [WQ], wait for work\n");            
                                                                      
      pthread_mutex_unlock (&r_chain->mutex);                         
      pthread_mutex_lock (&aio_request_queue.mutex);                  
 20071a4:	37 00 80 67 	sethi  %hi(0x2019c00), %i3                     
 20071a8:	b8 06 20 1c 	add  %i0, 0x1c, %i4                            
 20071ac:	b6 16 e0 0c 	or  %i3, 0xc, %i3                              
      if (rtems_chain_is_empty (chain))                               
	{                                                                    
	  clock_gettime (CLOCK_REALTIME, &timeout);                          
	  timeout.tv_sec += 3;                                               
	  timeout.tv_nsec = 0;                                               
	  result = pthread_cond_timedwait (&r_chain->cond,                   
 20071b0:	b4 10 00 1b 	mov  %i3, %i2                                  
	    pthread_cond_destroy (&r_chain->cond);                           
	    free (r_chain);                                                  
	                                                                     
	    /* If the idle chain is empty sleep for 3 seconds and wait for a 
	       signal. The thread now becomes idle. */                       
	    if (rtems_chain_is_empty (&aio_request_queue.idle_req)) {        
 20071b4:	b2 06 e0 58 	add  %i3, 0x58, %i1                            
	      --aio_request_queue.active_threads;                            
	      clock_gettime (CLOCK_REALTIME, &timeout);                      
	      timeout.tv_sec += 3;                                           
	      timeout.tv_nsec = 0;                                           
                                                                      
	      result = pthread_cond_timedwait (&aio_request_queue.new_req,   
 20071b8:	a0 06 e0 04 	add  %i3, 4, %l0                               
    /* acquire the mutex of the current fd chain.                     
       we don't need to lock the queue mutex since we can             
       add requests to idle fd chains or even active ones             
       if the working request has been extracted from the             
       chain */                                                       
    result = pthread_mutex_lock (&r_chain->mutex);                    
 20071bc:	40 00 03 56 	call  2007f14 <pthread_mutex_lock>             
 20071c0:	90 10 00 1c 	mov  %i4, %o0                                  
    if (result != 0)                                                  
 20071c4:	80 a2 20 00 	cmp  %o0, 0                                    
 20071c8:	12 80 00 2b 	bne  2007274 <rtems_aio_handle+0xd4>           <== NEVER TAKEN
 20071cc:	01 00 00 00 	nop                                            
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(        
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_head( the_chain )->next;                    
 20071d0:	fa 06 20 08 	ld  [ %i0 + 8 ], %i5                           
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
 20071d4:	82 06 20 0c 	add  %i0, 0xc, %g1                             
                                                                      
    /* If the locked chain is not empty, take the first               
       request extract it, unlock the chain and process               
       the request, in this way the user can supply more              
       requests to this fd chain */                                   
    if (!rtems_chain_is_empty (chain)) {                              
 20071d8:	80 a7 40 01 	cmp  %i5, %g1                                  
 20071dc:	02 80 00 41 	be  20072e0 <rtems_aio_handle+0x140>           
 20071e0:	01 00 00 00 	nop                                            
      node = rtems_chain_first (chain);                               
      req = (rtems_aio_request *) node;                               
                                                                      
      /* See _POSIX_PRIORITIZE_IO and _POSIX_PRIORITY_SCHEDULING      
	 discussion in rtems_aio_enqueue () */                               
      pthread_getschedparam (pthread_self(), &policy, ¶m);        
 20071e4:	40 00 05 81 	call  20087e8 <pthread_self>                   
 20071e8:	01 00 00 00 	nop                                            
 20071ec:	92 07 bf fc 	add  %fp, -4, %o1                              
 20071f0:	40 00 04 6f 	call  20083ac <pthread_getschedparam>          
 20071f4:	94 07 bf d8 	add  %fp, -40, %o2                             
      param.sched_priority = req->priority;                           
 20071f8:	c2 07 60 0c 	ld  [ %i5 + 0xc ], %g1                         
      pthread_setschedparam (pthread_self(), req->policy, ¶m);    
 20071fc:	40 00 05 7b 	call  20087e8 <pthread_self>                   
 2007200:	c2 27 bf d8 	st  %g1, [ %fp + -40 ]                         
 2007204:	d2 07 60 08 	ld  [ %i5 + 8 ], %o1                           
 2007208:	40 00 05 7c 	call  20087f8 <pthread_setschedparam>          
 200720c:	94 07 bf d8 	add  %fp, -40, %o2                             
 */                                                                   
RTEMS_INLINE_ROUTINE void rtems_chain_extract(                        
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Extract( the_node );                                         
 2007210:	40 00 0a 04 	call  2009a20 <_Chain_Extract>                 
 2007214:	90 10 00 1d 	mov  %i5, %o0                                  
                                                                      
      rtems_chain_extract (node);                                     
                                                                      
      pthread_mutex_unlock (&r_chain->mutex);                         
 2007218:	40 00 03 5f 	call  2007f94 <pthread_mutex_unlock>           
 200721c:	90 10 00 1c 	mov  %i4, %o0                                  
                                                                      
      switch (req->aiocbp->aio_lio_opcode) {                          
 2007220:	e2 07 60 14 	ld  [ %i5 + 0x14 ], %l1                        
 2007224:	c2 04 60 30 	ld  [ %l1 + 0x30 ], %g1                        
 2007228:	80 a0 60 02 	cmp  %g1, 2                                    
 200722c:	22 80 00 25 	be,a   20072c0 <rtems_aio_handle+0x120>        
 2007230:	c4 1c 60 08 	ldd  [ %l1 + 8 ], %g2                          
 2007234:	80 a0 60 03 	cmp  %g1, 3                                    
 2007238:	02 80 00 1e 	be  20072b0 <rtems_aio_handle+0x110>           <== NEVER TAKEN
 200723c:	01 00 00 00 	nop                                            
 2007240:	80 a0 60 01 	cmp  %g1, 1                                    
 2007244:	22 80 00 0e 	be,a   200727c <rtems_aio_handle+0xdc>         <== ALWAYS TAKEN
 2007248:	c4 1c 60 08 	ldd  [ %l1 + 8 ], %g2                          
                                                                      
      default:                                                        
        result = -1;                                                  
      }                                                               
      if (result == -1) {                                             
        req->aiocbp->return_value = -1;                               
 200724c:	82 10 3f ff 	mov  -1, %g1                                   <== NOT EXECUTED
	req->aiocbp->error_code = errno;                                     
 2007250:	40 00 2b 89 	call  2012074 <__errno>                        <== NOT EXECUTED
 2007254:	c2 24 60 38 	st  %g1, [ %l1 + 0x38 ]                        <== NOT EXECUTED
 2007258:	c2 02 00 00 	ld  [ %o0 ], %g1                               <== NOT EXECUTED
    /* acquire the mutex of the current fd chain.                     
       we don't need to lock the queue mutex since we can             
       add requests to idle fd chains or even active ones             
       if the working request has been extracted from the             
       chain */                                                       
    result = pthread_mutex_lock (&r_chain->mutex);                    
 200725c:	90 10 00 1c 	mov  %i4, %o0                                  <== NOT EXECUTED
 2007260:	40 00 03 2d 	call  2007f14 <pthread_mutex_lock>             <== NOT EXECUTED
 2007264:	c2 24 60 34 	st  %g1, [ %l1 + 0x34 ]                        <== NOT EXECUTED
    if (result != 0)                                                  
 2007268:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
 200726c:	22 bf ff da 	be,a   20071d4 <rtems_aio_handle+0x34>         <== NOT EXECUTED
 2007270:	fa 06 20 08 	ld  [ %i0 + 8 ], %i5                           <== NOT EXECUTED
    }                                                                 
  }                                                                   
                                                                      
  AIO_printf ("Thread finished\n");                                   
  return NULL;                                                        
}                                                                     
 2007274:	81 c7 e0 08 	ret                                            
 2007278:	91 e8 20 00 	restore  %g0, 0, %o0                           
      pthread_mutex_unlock (&r_chain->mutex);                         
                                                                      
      switch (req->aiocbp->aio_lio_opcode) {                          
      case LIO_READ:                                                  
	AIO_printf ("read\n");                                               
        result = pread (req->aiocbp->aio_fildes,                      
 200727c:	d0 04 40 00 	ld  [ %l1 ], %o0                               
 2007280:	d2 04 60 10 	ld  [ %l1 + 0x10 ], %o1                        
 2007284:	d4 04 60 14 	ld  [ %l1 + 0x14 ], %o2                        
 2007288:	96 10 00 02 	mov  %g2, %o3                                  
 200728c:	40 00 2e 9d 	call  2012d00 <pread>                          
 2007290:	98 10 00 03 	mov  %g3, %o4                                  
      	break;                                                         
                                                                      
      default:                                                        
        result = -1;                                                  
      }                                                               
      if (result == -1) {                                             
 2007294:	80 a2 3f ff 	cmp  %o0, -1                                   
 2007298:	22 bf ff ed 	be,a   200724c <rtems_aio_handle+0xac>         <== NEVER TAKEN
 200729c:	e2 07 60 14 	ld  [ %i5 + 0x14 ], %l1                        <== NOT EXECUTED
        req->aiocbp->return_value = -1;                               
	req->aiocbp->error_code = errno;                                     
      } else {                                                        
        req->aiocbp->return_value = result;                           
 20072a0:	c2 07 60 14 	ld  [ %i5 + 0x14 ], %g1                        
 20072a4:	d0 20 60 38 	st  %o0, [ %g1 + 0x38 ]                        
        req->aiocbp->error_code = 0;                                  
 20072a8:	10 bf ff c5 	b  20071bc <rtems_aio_handle+0x1c>             
 20072ac:	c0 20 60 34 	clr  [ %g1 + 0x34 ]                            
                         req->aiocbp->aio_nbytes, req->aiocbp->aio_offset);
        break;                                                        
                                                                      
      case LIO_SYNC:                                                  
	AIO_printf ("sync\n");                                               
      	result = fsync (req->aiocbp->aio_fildes);                      
 20072b0:	40 00 1d aa 	call  200e958 <fsync>                          <== NOT EXECUTED
 20072b4:	d0 04 40 00 	ld  [ %l1 ], %o0                               <== NOT EXECUTED
      	break;                                                         
 20072b8:	10 bf ff f8 	b  2007298 <rtems_aio_handle+0xf8>             <== NOT EXECUTED
 20072bc:	80 a2 3f ff 	cmp  %o0, -1                                   <== NOT EXECUTED
                        req->aiocbp->aio_nbytes, req->aiocbp->aio_offset);
        break;                                                        
                                                                      
      case LIO_WRITE:                                                 
	AIO_printf ("write\n");                                              
        result = pwrite (req->aiocbp->aio_fildes,                     
 20072c0:	d0 04 40 00 	ld  [ %l1 ], %o0                               
 20072c4:	d2 04 60 10 	ld  [ %l1 + 0x10 ], %o1                        
 20072c8:	d4 04 60 14 	ld  [ %l1 + 0x14 ], %o2                        
 20072cc:	96 10 00 02 	mov  %g2, %o3                                  
 20072d0:	40 00 2e ca 	call  2012df8 <pwrite>                         
 20072d4:	98 10 00 03 	mov  %g3, %o4                                  
                         (void *) req->aiocbp->aio_buf,               
                         req->aiocbp->aio_nbytes, req->aiocbp->aio_offset);
        break;                                                        
 20072d8:	10 bf ff f0 	b  2007298 <rtems_aio_handle+0xf8>             
 20072dc:	80 a2 3f ff 	cmp  %o0, -1                                   
                                                                      
      struct timespec timeout;                                        
                                                                      
      AIO_printf ("Chain is empty [WQ], wait for work\n");            
                                                                      
      pthread_mutex_unlock (&r_chain->mutex);                         
 20072e0:	40 00 03 2d 	call  2007f94 <pthread_mutex_unlock>           
 20072e4:	90 10 00 1c 	mov  %i4, %o0                                  
      pthread_mutex_lock (&aio_request_queue.mutex);                  
 20072e8:	40 00 03 0b 	call  2007f14 <pthread_mutex_lock>             
 20072ec:	90 10 00 1b 	mov  %i3, %o0                                  
                                                                      
      if (rtems_chain_is_empty (chain))                               
 20072f0:	c2 06 20 08 	ld  [ %i0 + 8 ], %g1                           
 20072f4:	80 a7 40 01 	cmp  %i5, %g1                                  
 20072f8:	02 80 00 05 	be  200730c <rtems_aio_handle+0x16c>           <== ALWAYS TAKEN
 20072fc:	92 07 bf f4 	add  %fp, -12, %o1                             
	                                                                     
	  }                                                                  
	}                                                                    
      /* If there was a request added in the initial fd chain then release
	 the mutex and process it */                                         
      pthread_mutex_unlock (&aio_request_queue.mutex);                
 2007300:	40 00 03 25 	call  2007f94 <pthread_mutex_unlock>           
 2007304:	90 10 00 1b 	mov  %i3, %o0                                  
 2007308:	30 bf ff ad 	b,a   20071bc <rtems_aio_handle+0x1c>          
      pthread_mutex_unlock (&r_chain->mutex);                         
      pthread_mutex_lock (&aio_request_queue.mutex);                  
                                                                      
      if (rtems_chain_is_empty (chain))                               
	{                                                                    
	  clock_gettime (CLOCK_REALTIME, &timeout);                          
 200730c:	40 00 01 50 	call  200784c <clock_gettime>                  
 2007310:	90 10 20 01 	mov  1, %o0                                    
	  timeout.tv_sec += 3;                                               
 2007314:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         
	  timeout.tv_nsec = 0;                                               
 2007318:	c0 27 bf f8 	clr  [ %fp + -8 ]                              
      pthread_mutex_lock (&aio_request_queue.mutex);                  
                                                                      
      if (rtems_chain_is_empty (chain))                               
	{                                                                    
	  clock_gettime (CLOCK_REALTIME, &timeout);                          
	  timeout.tv_sec += 3;                                               
 200731c:	82 00 60 03 	add  %g1, 3, %g1                               
	  timeout.tv_nsec = 0;                                               
	  result = pthread_cond_timedwait (&r_chain->cond,                   
 2007320:	ba 06 20 20 	add  %i0, 0x20, %i5                            
      pthread_mutex_lock (&aio_request_queue.mutex);                  
                                                                      
      if (rtems_chain_is_empty (chain))                               
	{                                                                    
	  clock_gettime (CLOCK_REALTIME, &timeout);                          
	  timeout.tv_sec += 3;                                               
 2007324:	c2 27 bf f4 	st  %g1, [ %fp + -12 ]                         
	  timeout.tv_nsec = 0;                                               
	  result = pthread_cond_timedwait (&r_chain->cond,                   
 2007328:	90 10 00 1d 	mov  %i5, %o0                                  
 200732c:	92 10 00 1a 	mov  %i2, %o1                                  
 2007330:	40 00 01 f4 	call  2007b00 <pthread_cond_timedwait>         
 2007334:	94 07 bf f4 	add  %fp, -12, %o2                             
					   &aio_request_queue.mutex,                                     
					   &timeout);                                                    
                                                                      
	  /* If no requests were added to the chain we delete the fd chain from
	     the queue and start working with idle fd chains */              
	  if (result == ETIMEDOUT) {                                         
 2007338:	80 a2 20 74 	cmp  %o0, 0x74                                 
 200733c:	12 bf ff f1 	bne  2007300 <rtems_aio_handle+0x160>          <== NEVER TAKEN
 2007340:	01 00 00 00 	nop                                            
 2007344:	40 00 09 b7 	call  2009a20 <_Chain_Extract>                 
 2007348:	90 10 00 18 	mov  %i0, %o0                                  
	    rtems_chain_extract (&r_chain->next_fd);                         
	    pthread_mutex_destroy (&r_chain->mutex);                         
 200734c:	40 00 02 47 	call  2007c68 <pthread_mutex_destroy>          
 2007350:	90 10 00 1c 	mov  %i4, %o0                                  
	    pthread_cond_destroy (&r_chain->cond);                           
 2007354:	40 00 01 66 	call  20078ec <pthread_cond_destroy>           
 2007358:	90 10 00 1d 	mov  %i5, %o0                                  
	    free (r_chain);                                                  
 200735c:	7f ff f0 d2 	call  20036a4 <free>                           
 2007360:	90 10 00 18 	mov  %i0, %o0                                  
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(        
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_head( the_chain )->next;                    
 2007364:	f0 06 e0 54 	ld  [ %i3 + 0x54 ], %i0                        
	                                                                     
	    /* If the idle chain is empty sleep for 3 seconds and wait for a 
	       signal. The thread now becomes idle. */                       
	    if (rtems_chain_is_empty (&aio_request_queue.idle_req)) {        
 2007368:	80 a6 00 19 	cmp  %i0, %i1                                  
 200736c:	22 80 00 0e 	be,a   20073a4 <rtems_aio_handle+0x204>        
 2007370:	c4 06 e0 68 	ld  [ %i3 + 0x68 ], %g2                        
	      }                                                              
	    }                                                                
	    /* Otherwise move this chain to the working chain and            
	       start the loop all over again */                              
	    AIO_printf ("Work on idle\n");                                   
	    --aio_request_queue.idle_threads;                                
 2007374:	c4 06 a0 68 	ld  [ %i2 + 0x68 ], %g2                        
	    ++aio_request_queue.active_threads;                              
 2007378:	c2 06 a0 64 	ld  [ %i2 + 0x64 ], %g1                        
	      }                                                              
	    }                                                                
	    /* Otherwise move this chain to the working chain and            
	       start the loop all over again */                              
	    AIO_printf ("Work on idle\n");                                   
	    --aio_request_queue.idle_threads;                                
 200737c:	84 00 bf ff 	add  %g2, -1, %g2                              
	    ++aio_request_queue.active_threads;                              
 2007380:	82 00 60 01 	inc  %g1                                       
 2007384:	90 10 00 18 	mov  %i0, %o0                                  
	      }                                                              
	    }                                                                
	    /* Otherwise move this chain to the working chain and            
	       start the loop all over again */                              
	    AIO_printf ("Work on idle\n");                                   
	    --aio_request_queue.idle_threads;                                
 2007388:	c4 26 a0 68 	st  %g2, [ %i2 + 0x68 ]                        
 200738c:	40 00 09 a5 	call  2009a20 <_Chain_Extract>                 
 2007390:	c2 26 a0 64 	st  %g1, [ %i2 + 0x64 ]                        
 2007394:	b8 06 20 1c 	add  %i0, 0x1c, %i4                            
                                                                      
	    node = rtems_chain_first (&aio_request_queue.idle_req);          
	    rtems_chain_extract (node);                                      
                                                                      
	    r_chain = (rtems_aio_request_chain *) node;                      
	    rtems_aio_move_to_work (r_chain);                                
 2007398:	7f ff ff 64 	call  2007128 <rtems_aio_move_to_work>         
 200739c:	90 10 00 18 	mov  %i0, %o0                                  
 20073a0:	30 bf ff d8 	b,a   2007300 <rtems_aio_handle+0x160>         
	       signal. The thread now becomes idle. */                       
	    if (rtems_chain_is_empty (&aio_request_queue.idle_req)) {        
	      AIO_printf ("Chain is empty [IQ], wait for work\n");	          
                                                                      
	      ++aio_request_queue.idle_threads;                              
	      --aio_request_queue.active_threads;                            
 20073a4:	c2 06 e0 64 	ld  [ %i3 + 0x64 ], %g1                        
	    /* If the idle chain is empty sleep for 3 seconds and wait for a 
	       signal. The thread now becomes idle. */                       
	    if (rtems_chain_is_empty (&aio_request_queue.idle_req)) {        
	      AIO_printf ("Chain is empty [IQ], wait for work\n");	          
                                                                      
	      ++aio_request_queue.idle_threads;                              
 20073a8:	84 00 a0 01 	inc  %g2                                       
	      --aio_request_queue.active_threads;                            
 20073ac:	82 00 7f ff 	add  %g1, -1, %g1                              
	      clock_gettime (CLOCK_REALTIME, &timeout);                      
 20073b0:	92 07 bf f4 	add  %fp, -12, %o1                             
	    /* If the idle chain is empty sleep for 3 seconds and wait for a 
	       signal. The thread now becomes idle. */                       
	    if (rtems_chain_is_empty (&aio_request_queue.idle_req)) {        
	      AIO_printf ("Chain is empty [IQ], wait for work\n");	          
                                                                      
	      ++aio_request_queue.idle_threads;                              
 20073b4:	c4 26 e0 68 	st  %g2, [ %i3 + 0x68 ]                        
	      --aio_request_queue.active_threads;                            
 20073b8:	c2 26 e0 64 	st  %g1, [ %i3 + 0x64 ]                        
	      clock_gettime (CLOCK_REALTIME, &timeout);                      
 20073bc:	40 00 01 24 	call  200784c <clock_gettime>                  
 20073c0:	90 10 20 01 	mov  1, %o0                                    
	      timeout.tv_sec += 3;                                           
 20073c4:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         
	      timeout.tv_nsec = 0;                                           
 20073c8:	c0 27 bf f8 	clr  [ %fp + -8 ]                              
	      AIO_printf ("Chain is empty [IQ], wait for work\n");	          
                                                                      
	      ++aio_request_queue.idle_threads;                              
	      --aio_request_queue.active_threads;                            
	      clock_gettime (CLOCK_REALTIME, &timeout);                      
	      timeout.tv_sec += 3;                                           
 20073cc:	82 00 60 03 	add  %g1, 3, %g1                               
	      timeout.tv_nsec = 0;                                           
                                                                      
	      result = pthread_cond_timedwait (&aio_request_queue.new_req,   
 20073d0:	90 10 00 10 	mov  %l0, %o0                                  
	      AIO_printf ("Chain is empty [IQ], wait for work\n");	          
                                                                      
	      ++aio_request_queue.idle_threads;                              
	      --aio_request_queue.active_threads;                            
	      clock_gettime (CLOCK_REALTIME, &timeout);                      
	      timeout.tv_sec += 3;                                           
 20073d4:	c2 27 bf f4 	st  %g1, [ %fp + -12 ]                         
	      timeout.tv_nsec = 0;                                           
                                                                      
	      result = pthread_cond_timedwait (&aio_request_queue.new_req,   
 20073d8:	92 10 00 1b 	mov  %i3, %o1                                  
 20073dc:	40 00 01 c9 	call  2007b00 <pthread_cond_timedwait>         
 20073e0:	94 07 bf f4 	add  %fp, -12, %o2                             
					       &aio_request_queue.mutex,                                 
					       &timeout);                                                
	                                                                     
	      /* If no new fd chain was added in the idle requests           
		 then this thread is finished */                                    
	      if (result == ETIMEDOUT) {                                     
 20073e4:	80 a2 20 74 	cmp  %o0, 0x74                                 
 20073e8:	22 80 00 04 	be,a   20073f8 <rtems_aio_handle+0x258>        <== ALWAYS TAKEN
 20073ec:	c2 06 e0 68 	ld  [ %i3 + 0x68 ], %g1                        
 20073f0:	10 bf ff e1 	b  2007374 <rtems_aio_handle+0x1d4>            <== NOT EXECUTED
 20073f4:	f0 06 e0 54 	ld  [ %i3 + 0x54 ], %i0                        <== NOT EXECUTED
		AIO_printf ("Etimeout\n");                                          
		--aio_request_queue.idle_threads;                                   
		pthread_mutex_unlock (&aio_request_queue.mutex);                    
 20073f8:	90 10 00 1b 	mov  %i3, %o0                                  
	                                                                     
	      /* If no new fd chain was added in the idle requests           
		 then this thread is finished */                                    
	      if (result == ETIMEDOUT) {                                     
		AIO_printf ("Etimeout\n");                                          
		--aio_request_queue.idle_threads;                                   
 20073fc:	82 00 7f ff 	add  %g1, -1, %g1                              
		pthread_mutex_unlock (&aio_request_queue.mutex);                    
 2007400:	40 00 02 e5 	call  2007f94 <pthread_mutex_unlock>           
 2007404:	c2 26 e0 68 	st  %g1, [ %i3 + 0x68 ]                        
		return NULL;                                                        
 2007408:	30 bf ff 9b 	b,a   2007274 <rtems_aio_handle+0xd4>          
                                                                      

02006f3c <rtems_aio_init>: * 0 - if initialization succeeded */ int rtems_aio_init (void) {
 2006f3c:	9d e3 bf a0 	save  %sp, -96, %sp                            
  int result = 0;                                                     
                                                                      
  result = pthread_attr_init (&aio_request_queue.attr);               
 2006f40:	3b 00 80 67 	sethi  %hi(0x2019c00), %i5                     
 2006f44:	40 00 04 5e 	call  20080bc <pthread_attr_init>              
 2006f48:	90 17 60 14 	or  %i5, 0x14, %o0	! 2019c14 <aio_request_queue+0x8>
  if (result != 0)                                                    
 2006f4c:	b0 92 20 00 	orcc  %o0, 0, %i0                              
 2006f50:	12 80 00 23 	bne  2006fdc <rtems_aio_init+0xa0>             <== NEVER TAKEN
 2006f54:	90 17 60 14 	or  %i5, 0x14, %o0                             
    return result;                                                    
                                                                      
  result =                                                            
 2006f58:	40 00 04 65 	call  20080ec <pthread_attr_setdetachstate>    
 2006f5c:	92 10 20 00 	clr  %o1                                       
    pthread_attr_setdetachstate (&aio_request_queue.attr,             
                                 PTHREAD_CREATE_DETACHED);            
  if (result != 0)                                                    
 2006f60:	80 a2 20 00 	cmp  %o0, 0                                    
 2006f64:	12 80 00 20 	bne  2006fe4 <rtems_aio_init+0xa8>             <== NEVER TAKEN
 2006f68:	39 00 80 67 	sethi  %hi(0x2019c00), %i4                     
    pthread_attr_destroy (&aio_request_queue.attr);                   
                                                                      
                                                                      
  result = pthread_mutex_init (&aio_request_queue.mutex, NULL);       
 2006f6c:	92 10 20 00 	clr  %o1                                       
 2006f70:	40 00 03 91 	call  2007db4 <pthread_mutex_init>             
 2006f74:	90 17 20 0c 	or  %i4, 0xc, %o0                              
  if (result != 0)                                                    
 2006f78:	80 a2 20 00 	cmp  %o0, 0                                    
 2006f7c:	12 80 00 23 	bne  2007008 <rtems_aio_init+0xcc>             <== NEVER TAKEN
 2006f80:	92 10 20 00 	clr  %o1                                       
    pthread_attr_destroy (&aio_request_queue.attr);                   
                                                                      
                                                                      
  result = pthread_cond_init (&aio_request_queue.new_req, NULL);      
 2006f84:	11 00 80 67 	sethi  %hi(0x2019c00), %o0                     
 2006f88:	40 00 02 8f 	call  20079c4 <pthread_cond_init>              
 2006f8c:	90 12 20 10 	or  %o0, 0x10, %o0	! 2019c10 <aio_request_queue+0x4>
  if (result != 0) {                                                  
 2006f90:	b0 92 20 00 	orcc  %o0, 0, %i0                              
 2006f94:	12 80 00 26 	bne  200702c <rtems_aio_init+0xf0>             <== NEVER TAKEN
 2006f98:	01 00 00 00 	nop                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 2006f9c:	b8 17 20 0c 	or  %i4, 0xc, %i4                              
  head->previous = NULL;                                              
  tail->previous = head;                                              
 2006fa0:	82 07 20 54 	add  %i4, 0x54, %g1                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 2006fa4:	88 07 20 4c 	add  %i4, 0x4c, %g4                            
  head->previous = NULL;                                              
  tail->previous = head;                                              
 2006fa8:	86 07 20 48 	add  %i4, 0x48, %g3                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 2006fac:	84 07 20 58 	add  %i4, 0x58, %g2                            
  head->previous = NULL;                                              
  tail->previous = head;                                              
 2006fb0:	c2 27 20 5c 	st  %g1, [ %i4 + 0x5c ]                        
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 2006fb4:	c8 27 20 48 	st  %g4, [ %i4 + 0x48 ]                        
  head->previous = NULL;                                              
 2006fb8:	c0 27 20 4c 	clr  [ %i4 + 0x4c ]                            
  tail->previous = head;                                              
 2006fbc:	c6 27 20 50 	st  %g3, [ %i4 + 0x50 ]                        
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 2006fc0:	c4 27 20 54 	st  %g2, [ %i4 + 0x54 ]                        
  head->previous = NULL;                                              
 2006fc4:	c0 27 20 58 	clr  [ %i4 + 0x58 ]                            
  }                                                                   
                                                                      
  rtems_chain_initialize_empty (&aio_request_queue.work_req);         
  rtems_chain_initialize_empty (&aio_request_queue.idle_req);         
                                                                      
  aio_request_queue.active_threads = 0;                               
 2006fc8:	c0 27 20 64 	clr  [ %i4 + 0x64 ]                            
  aio_request_queue.idle_threads = 0;                                 
 2006fcc:	c0 27 20 68 	clr  [ %i4 + 0x68 ]                            
  aio_request_queue.initialized = AIO_QUEUE_INITIALIZED;              
 2006fd0:	03 00 00 2c 	sethi  %hi(0xb000), %g1                        
 2006fd4:	82 10 60 0b 	or  %g1, 0xb, %g1	! b00b <PROM_START+0xb00b>   
 2006fd8:	c2 27 20 60 	st  %g1, [ %i4 + 0x60 ]                        
                                                                      
  return result;                                                      
}                                                                     
 2006fdc:	81 c7 e0 08 	ret                                            
 2006fe0:	81 e8 00 00 	restore                                        
                                                                      
  result =                                                            
    pthread_attr_setdetachstate (&aio_request_queue.attr,             
                                 PTHREAD_CREATE_DETACHED);            
  if (result != 0)                                                    
    pthread_attr_destroy (&aio_request_queue.attr);                   
 2006fe4:	40 00 04 2a 	call  200808c <pthread_attr_destroy>           <== NOT EXECUTED
 2006fe8:	90 17 60 14 	or  %i5, 0x14, %o0                             <== NOT EXECUTED
                                                                      
                                                                      
  result = pthread_mutex_init (&aio_request_queue.mutex, NULL);       
 2006fec:	39 00 80 67 	sethi  %hi(0x2019c00), %i4                     <== NOT EXECUTED
 2006ff0:	92 10 20 00 	clr  %o1                                       <== NOT EXECUTED
 2006ff4:	40 00 03 70 	call  2007db4 <pthread_mutex_init>             <== NOT EXECUTED
 2006ff8:	90 17 20 0c 	or  %i4, 0xc, %o0                              <== NOT EXECUTED
  if (result != 0)                                                    
 2006ffc:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
 2007000:	02 bf ff e1 	be  2006f84 <rtems_aio_init+0x48>              <== NOT EXECUTED
 2007004:	92 10 20 00 	clr  %o1                                       <== NOT EXECUTED
    pthread_attr_destroy (&aio_request_queue.attr);                   
 2007008:	40 00 04 21 	call  200808c <pthread_attr_destroy>           <== NOT EXECUTED
 200700c:	90 17 60 14 	or  %i5, 0x14, %o0                             <== NOT EXECUTED
                                                                      
                                                                      
  result = pthread_cond_init (&aio_request_queue.new_req, NULL);      
 2007010:	92 10 20 00 	clr  %o1                                       <== NOT EXECUTED
 2007014:	11 00 80 67 	sethi  %hi(0x2019c00), %o0                     <== NOT EXECUTED
 2007018:	40 00 02 6b 	call  20079c4 <pthread_cond_init>              <== NOT EXECUTED
 200701c:	90 12 20 10 	or  %o0, 0x10, %o0	! 2019c10 <aio_request_queue+0x4><== NOT EXECUTED
  if (result != 0) {                                                  
 2007020:	b0 92 20 00 	orcc  %o0, 0, %i0                              <== NOT EXECUTED
 2007024:	22 bf ff df 	be,a   2006fa0 <rtems_aio_init+0x64>           <== NOT EXECUTED
 2007028:	b8 17 20 0c 	or  %i4, 0xc, %i4                              <== NOT EXECUTED
    pthread_mutex_destroy (&aio_request_queue.mutex);                 
 200702c:	40 00 03 0f 	call  2007c68 <pthread_mutex_destroy>          <== NOT EXECUTED
 2007030:	90 17 20 0c 	or  %i4, 0xc, %o0                              <== NOT EXECUTED
    pthread_attr_destroy (&aio_request_queue.attr);                   
 2007034:	40 00 04 16 	call  200808c <pthread_attr_destroy>           <== NOT EXECUTED
 2007038:	90 17 60 14 	or  %i5, 0x14, %o0                             <== NOT EXECUTED
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 200703c:	10 bf ff d9 	b  2006fa0 <rtems_aio_init+0x64>               <== NOT EXECUTED
 2007040:	b8 17 20 0c 	or  %i4, 0xc, %i4                              <== NOT EXECUTED
                                                                      

0200740c <rtems_aio_insert_prio>: * NONE */ void rtems_aio_insert_prio (rtems_chain_control *chain, rtems_aio_request *req) {
 200740c:	9d e3 bf a0 	save  %sp, -96, %sp                            
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
 2007410:	c2 06 00 00 	ld  [ %i0 ], %g1                               
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
 2007414:	84 06 20 04 	add  %i0, 4, %g2                               
  rtems_chain_node *node;                                             
                                                                      
  AIO_printf ("FD exists \n");                                        
  node = rtems_chain_first (chain);                                   
                                                                      
  if (rtems_chain_is_empty (chain)) {                                 
 2007418:	80 a0 40 02 	cmp  %g1, %g2                                  
 200741c:	02 80 00 15 	be  2007470 <rtems_aio_insert_prio+0x64>       <== NEVER TAKEN
 2007420:	86 10 00 19 	mov  %i1, %g3                                  
    rtems_chain_prepend (chain, &req->next_prio);                     
  } else {                                                            
    AIO_printf ("Add by priority \n");                                
    int prio = ((rtems_aio_request *) node)->aiocbp->aio_reqprio;     
                                                                      
    while (req->aiocbp->aio_reqprio > prio &&                         
 2007424:	de 06 60 14 	ld  [ %i1 + 0x14 ], %o7                        
  if (rtems_chain_is_empty (chain)) {                                 
    AIO_printf ("First in chain \n");                                 
    rtems_chain_prepend (chain, &req->next_prio);                     
  } else {                                                            
    AIO_printf ("Add by priority \n");                                
    int prio = ((rtems_aio_request *) node)->aiocbp->aio_reqprio;     
 2007428:	c8 00 60 14 	ld  [ %g1 + 0x14 ], %g4                        
                                                                      
    while (req->aiocbp->aio_reqprio > prio &&                         
 200742c:	de 03 e0 18 	ld  [ %o7 + 0x18 ], %o7                        
 2007430:	c8 01 20 18 	ld  [ %g4 + 0x18 ], %g4                        
 2007434:	80 a1 00 0f 	cmp  %g4, %o7                                  
 2007438:	26 80 00 07 	bl,a   2007454 <rtems_aio_insert_prio+0x48>    <== NEVER TAKEN
 200743c:	c2 00 40 00 	ld  [ %g1 ], %g1                               <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void rtems_chain_insert(                         
  rtems_chain_node *after_node,                                       
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Insert( after_node, the_node );                              
 2007440:	10 80 00 0b 	b  200746c <rtems_aio_insert_prio+0x60>        
 2007444:	f0 00 60 04 	ld  [ %g1 + 4 ], %i0                           
 2007448:	22 80 00 09 	be,a   200746c <rtems_aio_insert_prio+0x60>    <== NOT EXECUTED
 200744c:	f0 00 60 04 	ld  [ %g1 + 4 ], %i0                           <== NOT EXECUTED
    }                                                                 
  }                                                                   
                                                                      
  AIO_printf ("Thread finished\n");                                   
  return NULL;                                                        
}                                                                     
 2007450:	c2 00 40 00 	ld  [ %g1 ], %g1                               <== NOT EXECUTED
    int prio = ((rtems_aio_request *) node)->aiocbp->aio_reqprio;     
                                                                      
    while (req->aiocbp->aio_reqprio > prio &&                         
           !rtems_chain_is_tail (chain, node)) {                      
      node = rtems_chain_next (node);                                 
      prio = ((rtems_aio_request *) node)->aiocbp->aio_reqprio;       
 2007454:	c8 00 60 14 	ld  [ %g1 + 0x14 ], %g4                        <== NOT EXECUTED
    rtems_chain_prepend (chain, &req->next_prio);                     
  } else {                                                            
    AIO_printf ("Add by priority \n");                                
    int prio = ((rtems_aio_request *) node)->aiocbp->aio_reqprio;     
                                                                      
    while (req->aiocbp->aio_reqprio > prio &&                         
 2007458:	c8 01 20 18 	ld  [ %g4 + 0x18 ], %g4                        <== NOT EXECUTED
 200745c:	80 a1 00 0f 	cmp  %g4, %o7                                  <== NOT EXECUTED
 2007460:	06 bf ff fa 	bl  2007448 <rtems_aio_insert_prio+0x3c>       <== NOT EXECUTED
 2007464:	80 a0 40 02 	cmp  %g1, %g2                                  <== NOT EXECUTED
 2007468:	f0 00 60 04 	ld  [ %g1 + 4 ], %i0                           <== NOT EXECUTED
 200746c:	b2 10 00 03 	mov  %g3, %i1                                  
 2007470:	40 00 09 84 	call  2009a80 <_Chain_Insert>                  
 2007474:	81 e8 00 00 	restore                                        
                                                                      

02007128 <rtems_aio_move_to_work>: * NONE */ void rtems_aio_move_to_work (rtems_aio_request_chain *r_chain) {
 2007128:	9d e3 bf a0 	save  %sp, -96, %sp                            
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
 200712c:	05 00 80 67 	sethi  %hi(0x2019c00), %g2                     
 2007130:	84 10 a0 0c 	or  %g2, 0xc, %g2	! 2019c0c <aio_request_queue>
 2007134:	c2 00 a0 48 	ld  [ %g2 + 0x48 ], %g1                        
  rtems_chain_node *node;                                             
                                                                      
  node = rtems_chain_first (&aio_request_queue.work_req);             
  temp = (rtems_aio_request_chain *) node;                            
                                                                      
  while (temp->fildes < r_chain->fildes &&                            
 2007138:	de 06 20 14 	ld  [ %i0 + 0x14 ], %o7                        
 200713c:	c8 00 60 14 	ld  [ %g1 + 0x14 ], %g4                        
 *        NONE                                                        
 */                                                                   
                                                                      
void                                                                  
rtems_aio_move_to_work (rtems_aio_request_chain *r_chain)             
{                                                                     
 2007140:	b2 10 00 18 	mov  %i0, %i1                                  
  rtems_chain_node *node;                                             
                                                                      
  node = rtems_chain_first (&aio_request_queue.work_req);             
  temp = (rtems_aio_request_chain *) node;                            
                                                                      
  while (temp->fildes < r_chain->fildes &&                            
 2007144:	80 a1 00 0f 	cmp  %g4, %o7                                  
 2007148:	16 80 00 10 	bge  2007188 <rtems_aio_move_to_work+0x60>     <== NEVER TAKEN
 200714c:	86 10 00 01 	mov  %g1, %g3                                  
 2007150:	84 00 a0 4c 	add  %g2, 0x4c, %g2                            
 2007154:	80 a0 40 02 	cmp  %g1, %g2                                  
 2007158:	32 80 00 08 	bne,a   2007178 <rtems_aio_move_to_work+0x50>  <== ALWAYS TAKEN
 200715c:	c6 00 40 00 	ld  [ %g1 ], %g3                               
 2007160:	10 80 00 0b 	b  200718c <rtems_aio_move_to_work+0x64>       <== NOT EXECUTED
 2007164:	f0 00 e0 04 	ld  [ %g3 + 4 ], %i0                           <== NOT EXECUTED
 2007168:	80 a0 c0 02 	cmp  %g3, %g2                                  
 200716c:	02 80 00 0a 	be  2007194 <rtems_aio_move_to_work+0x6c>      <== NEVER TAKEN
 2007170:	86 10 00 02 	mov  %g2, %g3                                  
    }                                                                 
  }                                                                   
                                                                      
  AIO_printf ("Thread finished\n");                                   
  return NULL;                                                        
}                                                                     
 2007174:	c6 00 40 00 	ld  [ %g1 ], %g3                               
  rtems_chain_node *node;                                             
                                                                      
  node = rtems_chain_first (&aio_request_queue.work_req);             
  temp = (rtems_aio_request_chain *) node;                            
                                                                      
  while (temp->fildes < r_chain->fildes &&                            
 2007178:	c8 00 e0 14 	ld  [ %g3 + 0x14 ], %g4                        
 200717c:	80 a1 00 0f 	cmp  %g4, %o7                                  
 2007180:	06 bf ff fa 	bl  2007168 <rtems_aio_move_to_work+0x40>      
 2007184:	82 10 00 03 	mov  %g3, %g1                                  
 2007188:	f0 00 e0 04 	ld  [ %g3 + 4 ], %i0                           
 200718c:	40 00 0a 3d 	call  2009a80 <_Chain_Insert>                  
 2007190:	81 e8 00 00 	restore                                        
 2007194:	f0 00 e0 04 	ld  [ %g3 + 4 ], %i0                           <== NOT EXECUTED
 2007198:	40 00 0a 3a 	call  2009a80 <_Chain_Insert>                  <== NOT EXECUTED
 200719c:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

02007478 <rtems_aio_remove_fd>: * Output parameters: * NONE */ void rtems_aio_remove_fd (rtems_aio_request_chain *r_chain) {
 2007478:	9d e3 bf a0 	save  %sp, -96, %sp                            
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
 200747c:	fa 06 20 08 	ld  [ %i0 + 8 ], %i5                           
  while (!rtems_chain_is_tail (chain, node))                          
    {                                                                 
      rtems_chain_extract (node);                                     
      rtems_aio_request *req = (rtems_aio_request *) node;            
      node = rtems_chain_next (node);                                 
      req->aiocbp->error_code = ECANCELED;                            
 2007480:	b4 10 20 8c 	mov  0x8c, %i2                                 
RTEMS_INLINE_ROUTINE bool _Chain_Is_tail(                             
  Chain_Control *the_chain,                                           
  const Chain_Node    *the_node                                       
)                                                                     
{                                                                     
  return (the_node == _Chain_Tail(the_chain));                        
 2007484:	b0 06 20 0c 	add  %i0, 0xc, %i0                             
  rtems_chain_control *chain;                                         
  rtems_chain_node *node;                                             
  chain = &r_chain->perfd;                                            
  node = rtems_chain_first (chain);                                   
                                                                      
  while (!rtems_chain_is_tail (chain, node))                          
 2007488:	80 a7 40 18 	cmp  %i5, %i0                                  
 200748c:	02 80 00 0d 	be  20074c0 <rtems_aio_remove_fd+0x48>         <== NEVER TAKEN
 2007490:	b6 10 3f ff 	mov  -1, %i3                                   
 */                                                                   
RTEMS_INLINE_ROUTINE void rtems_chain_extract(                        
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Extract( the_node );                                         
 2007494:	40 00 09 63 	call  2009a20 <_Chain_Extract>                 
 2007498:	90 10 00 1d 	mov  %i5, %o0                                  
    {                                                                 
      rtems_chain_extract (node);                                     
      rtems_aio_request *req = (rtems_aio_request *) node;            
      node = rtems_chain_next (node);                                 
      req->aiocbp->error_code = ECANCELED;                            
 200749c:	c2 07 60 14 	ld  [ %i5 + 0x14 ], %g1                        
    }                                                                 
  }                                                                   
                                                                      
  AIO_printf ("Thread finished\n");                                   
  return NULL;                                                        
}                                                                     
 20074a0:	f8 07 40 00 	ld  [ %i5 ], %i4                               
      rtems_chain_extract (node);                                     
      rtems_aio_request *req = (rtems_aio_request *) node;            
      node = rtems_chain_next (node);                                 
      req->aiocbp->error_code = ECANCELED;                            
      req->aiocbp->return_value = -1;                                 
      free (req);                                                     
 20074a4:	90 10 00 1d 	mov  %i5, %o0                                  
  while (!rtems_chain_is_tail (chain, node))                          
    {                                                                 
      rtems_chain_extract (node);                                     
      rtems_aio_request *req = (rtems_aio_request *) node;            
      node = rtems_chain_next (node);                                 
      req->aiocbp->error_code = ECANCELED;                            
 20074a8:	f4 20 60 34 	st  %i2, [ %g1 + 0x34 ]                        
      req->aiocbp->return_value = -1;                                 
      free (req);                                                     
 20074ac:	7f ff f0 7e 	call  20036a4 <free>                           
 20074b0:	f6 20 60 38 	st  %i3, [ %g1 + 0x38 ]                        
  rtems_chain_control *chain;                                         
  rtems_chain_node *node;                                             
  chain = &r_chain->perfd;                                            
  node = rtems_chain_first (chain);                                   
                                                                      
  while (!rtems_chain_is_tail (chain, node))                          
 20074b4:	80 a7 00 18 	cmp  %i4, %i0                                  
 20074b8:	12 bf ff f7 	bne  2007494 <rtems_aio_remove_fd+0x1c>        
 20074bc:	ba 10 00 1c 	mov  %i4, %i5                                  
 20074c0:	81 c7 e0 08 	ret                                            
 20074c4:	81 e8 00 00 	restore                                        
                                                                      

020074c8 <rtems_aio_remove_req>: * AIO_NOTCANCELED - if request was not canceled * AIO_CANCELED - if request was canceled */ int rtems_aio_remove_req (rtems_chain_control *chain, struct aiocb *aiocbp) {
 20074c8:	9d e3 bf a0 	save  %sp, -96, %sp                            
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(        
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_head( the_chain )->next;                    
 20074cc:	fa 06 00 00 	ld  [ %i0 ], %i5                               
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
 20074d0:	82 06 20 04 	add  %i0, 4, %g1                               
  if (rtems_chain_is_empty (chain))                                   
 20074d4:	80 a7 40 01 	cmp  %i5, %g1                                  
 20074d8:	12 80 00 06 	bne  20074f0 <rtems_aio_remove_req+0x28>       
 20074dc:	b0 10 20 02 	mov  2, %i0                                    
 20074e0:	30 80 00 14 	b,a   2007530 <rtems_aio_remove_req+0x68>      
  rtems_chain_node *node = rtems_chain_first (chain);                 
  rtems_aio_request *current;                                         
                                                                      
  current = (rtems_aio_request *) node;                               
                                                                      
  while (!rtems_chain_is_tail (chain, node) && current->aiocbp != aiocbp) {
 20074e4:	80 a7 40 01 	cmp  %i5, %g1                                  <== NOT EXECUTED
 20074e8:	02 80 00 10 	be  2007528 <rtems_aio_remove_req+0x60>        <== NOT EXECUTED
 20074ec:	b0 10 20 01 	mov  1, %i0                                    <== NOT EXECUTED
 20074f0:	c4 07 60 14 	ld  [ %i5 + 0x14 ], %g2                        
 20074f4:	80 a0 80 19 	cmp  %g2, %i1                                  
 20074f8:	32 bf ff fb 	bne,a   20074e4 <rtems_aio_remove_req+0x1c>    <== NEVER TAKEN
 20074fc:	fa 07 40 00 	ld  [ %i5 ], %i5                               <== NOT EXECUTED
 2007500:	40 00 09 48 	call  2009a20 <_Chain_Extract>                 
 2007504:	90 10 00 1d 	mov  %i5, %o0                                  
  if (rtems_chain_is_tail (chain, node))                              
    return AIO_NOTCANCELED;                                           
  else                                                                
    {                                                                 
      rtems_chain_extract (node);                                     
      current->aiocbp->error_code = ECANCELED;                        
 2007508:	c2 07 60 14 	ld  [ %i5 + 0x14 ], %g1                        
 200750c:	84 10 20 8c 	mov  0x8c, %g2                                 
 2007510:	c4 20 60 34 	st  %g2, [ %g1 + 0x34 ]                        
      current->aiocbp->return_value = -1;                             
 2007514:	84 10 3f ff 	mov  -1, %g2                                   
      free (current);                                                 
 2007518:	90 10 00 1d 	mov  %i5, %o0                                  
    return AIO_NOTCANCELED;                                           
  else                                                                
    {                                                                 
      rtems_chain_extract (node);                                     
      current->aiocbp->error_code = ECANCELED;                        
      current->aiocbp->return_value = -1;                             
 200751c:	c4 20 60 38 	st  %g2, [ %g1 + 0x38 ]                        
      free (current);                                                 
 2007520:	7f ff f0 61 	call  20036a4 <free>                           
 2007524:	b0 10 20 00 	clr  %i0                                       
    }                                                                 
                                                                      
  return AIO_CANCELED;                                                
 2007528:	81 c7 e0 08 	ret                                            
 200752c:	81 e8 00 00 	restore                                        
}                                                                     
 2007530:	81 c7 e0 08 	ret                                            
 2007534:	81 e8 00 00 	restore                                        
                                                                      

0200ee78 <rtems_assoc_local_by_remote_bitfield>: uint32_t rtems_assoc_local_by_remote_bitfield( const rtems_assoc_t *ap, uint32_t remote_value ) {
 200ee78:	9d e3 bf a0 	save  %sp, -96, %sp                            
 200ee7c:	b6 10 20 20 	mov  0x20, %i3                                 
 200ee80:	ba 10 00 18 	mov  %i0, %i5                                  
  uint32_t   b;                                                       
  uint32_t   local_value = 0;                                         
                                                                      
  for (b = 1; b; b <<= 1) {                                           
 200ee84:	b8 10 20 01 	mov  1, %i4                                    
    const rtems_assoc_t *ap,                                          
    uint32_t       remote_value                                       
)                                                                     
{                                                                     
  uint32_t   b;                                                       
  uint32_t   local_value = 0;                                         
 200ee88:	10 80 00 04 	b  200ee98 <rtems_assoc_local_by_remote_bitfield+0x20>
 200ee8c:	b0 10 20 00 	clr  %i0                                       
                                                                      
  for (b = 1; b; b <<= 1) {                                           
 200ee90:	02 80 00 0c 	be  200eec0 <rtems_assoc_local_by_remote_bitfield+0x48>
 200ee94:	b9 2f 20 01 	sll  %i4, 1, %i4                               
    if (b & remote_value)                                             
 200ee98:	80 8f 00 19 	btst  %i4, %i1                                 
 200ee9c:	22 bf ff fd 	be,a   200ee90 <rtems_assoc_local_by_remote_bitfield+0x18>
 200eea0:	b6 86 ff ff 	addcc  %i3, -1, %i3                            
      local_value |= rtems_assoc_local_by_remote(ap, b);              
 200eea4:	92 10 00 1c 	mov  %i4, %o1                                  
 200eea8:	40 00 00 08 	call  200eec8 <rtems_assoc_local_by_remote>    
 200eeac:	90 10 00 1d 	mov  %i5, %o0                                  
)                                                                     
{                                                                     
  uint32_t   b;                                                       
  uint32_t   local_value = 0;                                         
                                                                      
  for (b = 1; b; b <<= 1) {                                           
 200eeb0:	b9 2f 20 01 	sll  %i4, 1, %i4                               
 200eeb4:	b6 86 ff ff 	addcc  %i3, -1, %i3                            
 200eeb8:	12 bf ff f8 	bne  200ee98 <rtems_assoc_local_by_remote_bitfield+0x20><== ALWAYS TAKEN
 200eebc:	b0 16 00 08 	or  %i0, %o0, %i0                              
    if (b & remote_value)                                             
      local_value |= rtems_assoc_local_by_remote(ap, b);              
  }                                                                   
                                                                      
  return local_value;                                                 
}                                                                     
 200eec0:	81 c7 e0 08 	ret                                            
 200eec4:	81 e8 00 00 	restore                                        
                                                                      

0200bce8 <rtems_assoc_ptr_by_local>: const rtems_assoc_t *rtems_assoc_ptr_by_local( const rtems_assoc_t *ap, uint32_t local_value ) {
 200bce8:	9d e3 bf a0 	save  %sp, -96, %sp                            
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
 200bcec:	d0 06 00 00 	ld  [ %i0 ], %o0                               
                                                                      
const rtems_assoc_t *rtems_assoc_ptr_by_local(                        
  const rtems_assoc_t *ap,                                            
  uint32_t             local_value                                    
)                                                                     
{                                                                     
 200bcf0:	ba 10 00 18 	mov  %i0, %i5                                  
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
 200bcf4:	80 a2 20 00 	cmp  %o0, 0                                    
 200bcf8:	02 80 00 1b 	be  200bd64 <rtems_assoc_ptr_by_local+0x7c>    
 200bcfc:	b0 10 20 00 	clr  %i0                                       
 200bd00:	13 00 80 6e 	sethi  %hi(0x201b800), %o1                     
 200bd04:	40 00 12 ce 	call  201083c <strcmp>                         
 200bd08:	92 12 63 d8 	or  %o1, 0x3d8, %o1	! 201bbd8 <IMFS_memfile_handlers+0x3c>
 200bd0c:	80 a2 20 00 	cmp  %o0, 0                                    
 200bd10:	02 80 00 17 	be  200bd6c <rtems_assoc_ptr_by_local+0x84>    
 200bd14:	82 10 20 00 	clr  %g1                                       
    default_ap = ap++;                                                
                                                                      
  for ( ; ap->name; ap++)                                             
    if (ap->local_value == local_value)                               
 200bd18:	c4 07 60 04 	ld  [ %i5 + 4 ], %g2                           
 200bd1c:	80 a0 80 19 	cmp  %g2, %i1                                  
 200bd20:	02 80 00 11 	be  200bd64 <rtems_assoc_ptr_by_local+0x7c>    
 200bd24:	b0 10 00 1d 	mov  %i5, %i0                                  
 200bd28:	86 07 60 0c 	add  %i5, 0xc, %g3                             
 200bd2c:	10 80 00 06 	b  200bd44 <rtems_assoc_ptr_by_local+0x5c>     
 200bd30:	84 20 00 1d 	neg  %i5, %g2                                  
 200bd34:	c8 07 7f f8 	ld  [ %i5 + -8 ], %g4                          
 200bd38:	80 a1 00 19 	cmp  %g4, %i1                                  
 200bd3c:	02 80 00 0a 	be  200bd64 <rtems_assoc_ptr_by_local+0x7c>    
 200bd40:	01 00 00 00 	nop                                            
#include <rtems.h>                                                    
#include <rtems/assoc.h>                                              
                                                                      
#include <string.h>             /* strcat, strcmp */                  
                                                                      
const rtems_assoc_t *rtems_assoc_ptr_by_local(                        
 200bd44:	88 06 00 02 	add  %i0, %g2, %g4                             
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
    default_ap = ap++;                                                
                                                                      
  for ( ; ap->name; ap++)                                             
 200bd48:	c8 00 c0 04 	ld  [ %g3 + %g4 ], %g4                         
 200bd4c:	b0 06 20 0c 	add  %i0, 0xc, %i0                             
 200bd50:	80 a1 20 00 	cmp  %g4, 0                                    
#include <rtems.h>                                                    
#include <rtems/assoc.h>                                              
                                                                      
#include <string.h>             /* strcat, strcmp */                  
                                                                      
const rtems_assoc_t *rtems_assoc_ptr_by_local(                        
 200bd54:	ba 06 00 02 	add  %i0, %g2, %i5                             
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
    default_ap = ap++;                                                
                                                                      
  for ( ; ap->name; ap++)                                             
 200bd58:	12 bf ff f7 	bne  200bd34 <rtems_assoc_ptr_by_local+0x4c>   
 200bd5c:	ba 00 c0 1d 	add  %g3, %i5, %i5                             
 200bd60:	b0 10 00 01 	mov  %g1, %i0                                  
    if (ap->local_value == local_value)                               
      return ap;                                                      
                                                                      
  return default_ap;                                                  
}                                                                     
 200bd64:	81 c7 e0 08 	ret                                            
 200bd68:	81 e8 00 00 	restore                                        
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
    default_ap = ap++;                                                
                                                                      
  for ( ; ap->name; ap++)                                             
 200bd6c:	c2 07 60 0c 	ld  [ %i5 + 0xc ], %g1                         
 200bd70:	80 a0 60 00 	cmp  %g1, 0                                    
 200bd74:	02 bf ff fc 	be  200bd64 <rtems_assoc_ptr_by_local+0x7c>    <== NEVER TAKEN
 200bd78:	b0 10 00 1d 	mov  %i5, %i0                                  
)                                                                     
{                                                                     
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
    default_ap = ap++;                                                
 200bd7c:	82 10 00 1d 	mov  %i5, %g1                                  
 200bd80:	10 bf ff e6 	b  200bd18 <rtems_assoc_ptr_by_local+0x30>     
 200bd84:	ba 07 60 0c 	add  %i5, 0xc, %i5                             
                                                                      

0200353c <rtems_assoc_ptr_by_name>: const rtems_assoc_t *rtems_assoc_ptr_by_name( const rtems_assoc_t *ap, const char *name ) {
 200353c:	9d e3 bf a0 	save  %sp, -96, %sp                            
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
 2003540:	fa 06 00 00 	ld  [ %i0 ], %i5                               
                                                                      
const rtems_assoc_t *rtems_assoc_ptr_by_name(                         
  const rtems_assoc_t *ap,                                            
  const char          *name                                           
)                                                                     
{                                                                     
 2003544:	b8 10 00 18 	mov  %i0, %i4                                  
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
 2003548:	80 a7 60 00 	cmp  %i5, 0                                    
 200354c:	02 80 00 1a 	be  20035b4 <rtems_assoc_ptr_by_name+0x78>     
 2003550:	b0 10 20 00 	clr  %i0                                       
 2003554:	90 10 00 1d 	mov  %i5, %o0                                  
 2003558:	13 00 80 58 	sethi  %hi(0x2016000), %o1                     
const rtems_assoc_t *rtems_assoc_ptr_by_name(                         
  const rtems_assoc_t *ap,                                            
  const char          *name                                           
)                                                                     
{                                                                     
  const rtems_assoc_t *default_ap = 0;                                
 200355c:	b4 10 20 00 	clr  %i2                                       
                                                                      
  if (rtems_assoc_is_default(ap))                                     
 2003560:	40 00 36 01 	call  2010d64 <strcmp>                         
 2003564:	92 12 61 a0 	or  %o1, 0x1a0, %o1                            
 2003568:	80 a2 20 00 	cmp  %o0, 0                                    
 200356c:	22 80 00 14 	be,a   20035bc <rtems_assoc_ptr_by_name+0x80>  
 2003570:	fa 07 20 0c 	ld  [ %i4 + 0xc ], %i5                         
                                                                      
const rtems_assoc_t *rtems_assoc_ptr_by_name(                         
  const rtems_assoc_t *ap,                                            
  const char          *name                                           
)                                                                     
{                                                                     
 2003574:	82 10 00 1c 	mov  %i4, %g1                                  
#include <rtems/assoc.h>                                              
                                                                      
#include <string.h>             /* strcat, strcmp */                  
                                                                      
                                                                      
const rtems_assoc_t *rtems_assoc_ptr_by_name(                         
 2003578:	10 80 00 06 	b  2003590 <rtems_assoc_ptr_by_name+0x54>      
 200357c:	b6 07 20 0c 	add  %i4, 0xc, %i3                             
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
    default_ap = ap++;                                                
                                                                      
  for ( ; ap->name; ap++)                                             
 2003580:	fa 00 bf f4 	ld  [ %g2 + -12 ], %i5                         
 2003584:	80 a7 60 00 	cmp  %i5, 0                                    
 2003588:	02 80 00 14 	be  20035d8 <rtems_assoc_ptr_by_name+0x9c>     
 200358c:	01 00 00 00 	nop                                            
)                                                                     
{                                                                     
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
    default_ap = ap++;                                                
 2003590:	b0 10 00 01 	mov  %g1, %i0                                  
                                                                      
  for ( ; ap->name; ap++)                                             
    if (strcmp(ap->name, name) == 0)                                  
 2003594:	90 10 00 1d 	mov  %i5, %o0                                  
 2003598:	40 00 35 f3 	call  2010d64 <strcmp>                         
 200359c:	92 10 00 19 	mov  %i1, %o1                                  
 20035a0:	82 06 20 0c 	add  %i0, 0xc, %g1                             
 20035a4:	80 a2 20 00 	cmp  %o0, 0                                    
#include <rtems/assoc.h>                                              
                                                                      
#include <string.h>             /* strcat, strcmp */                  
                                                                      
                                                                      
const rtems_assoc_t *rtems_assoc_ptr_by_name(                         
 20035a8:	84 20 40 1c 	sub  %g1, %i4, %g2                             
                                                                      
  if (rtems_assoc_is_default(ap))                                     
    default_ap = ap++;                                                
                                                                      
  for ( ; ap->name; ap++)                                             
    if (strcmp(ap->name, name) == 0)                                  
 20035ac:	12 bf ff f5 	bne  2003580 <rtems_assoc_ptr_by_name+0x44>    
 20035b0:	84 00 80 1b 	add  %g2, %i3, %g2                             
	return ap;                                                           
                                                                      
  return default_ap;                                                  
}                                                                     
 20035b4:	81 c7 e0 08 	ret                                            
 20035b8:	81 e8 00 00 	restore                                        
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
    default_ap = ap++;                                                
                                                                      
  for ( ; ap->name; ap++)                                             
 20035bc:	b0 10 00 1c 	mov  %i4, %i0                                  
)                                                                     
{                                                                     
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
    default_ap = ap++;                                                
 20035c0:	b4 10 00 1c 	mov  %i4, %i2                                  
                                                                      
  for ( ; ap->name; ap++)                                             
 20035c4:	80 a7 60 00 	cmp  %i5, 0                                    
 20035c8:	12 bf ff eb 	bne  2003574 <rtems_assoc_ptr_by_name+0x38>    <== ALWAYS TAKEN
 20035cc:	b8 07 20 0c 	add  %i4, 0xc, %i4                             
    if (strcmp(ap->name, name) == 0)                                  
	return ap;                                                           
                                                                      
  return default_ap;                                                  
}                                                                     
 20035d0:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 20035d4:	81 e8 00 00 	restore                                        <== NOT EXECUTED
 20035d8:	81 c7 e0 08 	ret                                            
 20035dc:	91 e8 00 1a 	restore  %g0, %i2, %o0                         
                                                                      

0200eefc <rtems_assoc_ptr_by_remote>: const rtems_assoc_t *rtems_assoc_ptr_by_remote( const rtems_assoc_t *ap, uint32_t remote_value ) {
 200eefc:	9d e3 bf a0 	save  %sp, -96, %sp                            
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
 200ef00:	d0 06 00 00 	ld  [ %i0 ], %o0                               
                                                                      
const rtems_assoc_t *rtems_assoc_ptr_by_remote(                       
  const rtems_assoc_t *ap,                                            
  uint32_t       remote_value                                         
)                                                                     
{                                                                     
 200ef04:	ba 10 00 18 	mov  %i0, %i5                                  
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
 200ef08:	80 a2 20 00 	cmp  %o0, 0                                    
 200ef0c:	02 80 00 1b 	be  200ef78 <rtems_assoc_ptr_by_remote+0x7c>   
 200ef10:	b0 10 20 00 	clr  %i0                                       
 200ef14:	13 00 80 6e 	sethi  %hi(0x201b800), %o1                     
 200ef18:	40 00 06 49 	call  201083c <strcmp>                         
 200ef1c:	92 12 63 d8 	or  %o1, 0x3d8, %o1	! 201bbd8 <IMFS_memfile_handlers+0x3c>
 200ef20:	80 a2 20 00 	cmp  %o0, 0                                    
 200ef24:	02 80 00 17 	be  200ef80 <rtems_assoc_ptr_by_remote+0x84>   
 200ef28:	82 10 20 00 	clr  %g1                                       
    default_ap = ap++;                                                
                                                                      
  for ( ; ap->name; ap++)                                             
    if (ap->remote_value == remote_value)                             
 200ef2c:	c4 07 60 08 	ld  [ %i5 + 8 ], %g2                           
 200ef30:	80 a0 80 19 	cmp  %g2, %i1                                  
 200ef34:	02 80 00 11 	be  200ef78 <rtems_assoc_ptr_by_remote+0x7c>   
 200ef38:	b0 10 00 1d 	mov  %i5, %i0                                  
 200ef3c:	86 07 60 0c 	add  %i5, 0xc, %g3                             
 200ef40:	10 80 00 06 	b  200ef58 <rtems_assoc_ptr_by_remote+0x5c>    
 200ef44:	84 20 00 1d 	neg  %i5, %g2                                  
 200ef48:	c8 07 7f fc 	ld  [ %i5 + -4 ], %g4                          
 200ef4c:	80 a1 00 19 	cmp  %g4, %i1                                  
 200ef50:	02 80 00 0a 	be  200ef78 <rtems_assoc_ptr_by_remote+0x7c>   
 200ef54:	01 00 00 00 	nop                                            
#include <rtems.h>                                                    
#include <rtems/assoc.h>                                              
                                                                      
#include <string.h>             /* strcat, strcmp */                  
                                                                      
const rtems_assoc_t *rtems_assoc_ptr_by_remote(                       
 200ef58:	88 06 00 02 	add  %i0, %g2, %g4                             
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
    default_ap = ap++;                                                
                                                                      
  for ( ; ap->name; ap++)                                             
 200ef5c:	c8 00 c0 04 	ld  [ %g3 + %g4 ], %g4                         
 200ef60:	b0 06 20 0c 	add  %i0, 0xc, %i0                             
 200ef64:	80 a1 20 00 	cmp  %g4, 0                                    
#include <rtems.h>                                                    
#include <rtems/assoc.h>                                              
                                                                      
#include <string.h>             /* strcat, strcmp */                  
                                                                      
const rtems_assoc_t *rtems_assoc_ptr_by_remote(                       
 200ef68:	ba 06 00 02 	add  %i0, %g2, %i5                             
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
    default_ap = ap++;                                                
                                                                      
  for ( ; ap->name; ap++)                                             
 200ef6c:	12 bf ff f7 	bne  200ef48 <rtems_assoc_ptr_by_remote+0x4c>  
 200ef70:	ba 00 c0 1d 	add  %g3, %i5, %i5                             
 200ef74:	b0 10 00 01 	mov  %g1, %i0                                  
    if (ap->remote_value == remote_value)                             
      return ap;                                                      
                                                                      
  return default_ap;                                                  
}                                                                     
 200ef78:	81 c7 e0 08 	ret                                            
 200ef7c:	81 e8 00 00 	restore                                        
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
    default_ap = ap++;                                                
                                                                      
  for ( ; ap->name; ap++)                                             
 200ef80:	c2 07 60 0c 	ld  [ %i5 + 0xc ], %g1                         
 200ef84:	80 a0 60 00 	cmp  %g1, 0                                    
 200ef88:	02 bf ff fc 	be  200ef78 <rtems_assoc_ptr_by_remote+0x7c>   <== NEVER TAKEN
 200ef8c:	b0 10 00 1d 	mov  %i5, %i0                                  
)                                                                     
{                                                                     
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
    default_ap = ap++;                                                
 200ef90:	82 10 00 1d 	mov  %i5, %g1                                  
 200ef94:	10 bf ff e6 	b  200ef2c <rtems_assoc_ptr_by_remote+0x30>    
 200ef98:	ba 07 60 0c 	add  %i5, 0xc, %i5                             
                                                                      

02003680 <rtems_assoc_remote_by_local_bitfield>: uint32_t rtems_assoc_remote_by_local_bitfield( const rtems_assoc_t *ap, uint32_t local_value ) {
 2003680:	9d e3 bf a0 	save  %sp, -96, %sp                            
 2003684:	b6 10 20 20 	mov  0x20, %i3                                 
 2003688:	ba 10 00 18 	mov  %i0, %i5                                  
  uint32_t   b;                                                       
  uint32_t   remote_value = 0;                                        
                                                                      
  for (b = 1; b; b <<= 1)                                             
 200368c:	b8 10 20 01 	mov  1, %i4                                    
    const rtems_assoc_t *ap,                                          
    uint32_t             local_value                                  
)                                                                     
{                                                                     
  uint32_t   b;                                                       
  uint32_t   remote_value = 0;                                        
 2003690:	10 80 00 04 	b  20036a0 <rtems_assoc_remote_by_local_bitfield+0x20>
 2003694:	b0 10 20 00 	clr  %i0                                       
                                                                      
  for (b = 1; b; b <<= 1)                                             
 2003698:	02 80 00 0c 	be  20036c8 <rtems_assoc_remote_by_local_bitfield+0x48>
 200369c:	b9 2f 20 01 	sll  %i4, 1, %i4                               
    if (b & local_value)                                              
 20036a0:	80 8f 00 19 	btst  %i4, %i1                                 
 20036a4:	22 bf ff fd 	be,a   2003698 <rtems_assoc_remote_by_local_bitfield+0x18>
 20036a8:	b6 86 ff ff 	addcc  %i3, -1, %i3                            
      remote_value |= rtems_assoc_remote_by_local(ap, b);             
 20036ac:	92 10 00 1c 	mov  %i4, %o1                                  
 20036b0:	40 00 00 08 	call  20036d0 <rtems_assoc_remote_by_local>    
 20036b4:	90 10 00 1d 	mov  %i5, %o0                                  
)                                                                     
{                                                                     
  uint32_t   b;                                                       
  uint32_t   remote_value = 0;                                        
                                                                      
  for (b = 1; b; b <<= 1)                                             
 20036b8:	b9 2f 20 01 	sll  %i4, 1, %i4                               
 20036bc:	b6 86 ff ff 	addcc  %i3, -1, %i3                            
 20036c0:	12 bf ff f8 	bne  20036a0 <rtems_assoc_remote_by_local_bitfield+0x20><== ALWAYS TAKEN
 20036c4:	b0 16 00 08 	or  %i0, %o0, %i0                              
    if (b & local_value)                                              
      remote_value |= rtems_assoc_remote_by_local(ap, b);             
                                                                      
  return remote_value;                                                
}                                                                     
 20036c8:	81 c7 e0 08 	ret                                            
 20036cc:	81 e8 00 00 	restore                                        
                                                                      

0200bdf8 <rtems_bdbuf_add_to_modified_list_after_access>: } } static void rtems_bdbuf_add_to_modified_list_after_access (rtems_bdbuf_buffer *bd) {
 200bdf8:	9d e3 bf a0 	save  %sp, -96, %sp                            
  if (bdbuf_cache.sync_active && bdbuf_cache.sync_device == bd->dev)  
 200bdfc:	3b 00 80 6a 	sethi  %hi(0x201a800), %i5                     
 200be00:	ba 17 61 a8 	or  %i5, 0x1a8, %i5	! 201a9a8 <bdbuf_cache>    
 200be04:	c2 0f 60 30 	ldub  [ %i5 + 0x30 ], %g1                      
 200be08:	80 a0 60 00 	cmp  %g1, 0                                    
 200be0c:	02 80 00 07 	be  200be28 <rtems_bdbuf_add_to_modified_list_after_access+0x30><== ALWAYS TAKEN
 200be10:	01 00 00 00 	nop                                            
 200be14:	c4 1f 60 38 	ldd  [ %i5 + 0x38 ], %g2                       <== NOT EXECUTED
 200be18:	c2 06 20 18 	ld  [ %i0 + 0x18 ], %g1                        <== NOT EXECUTED
 200be1c:	80 a0 40 02 	cmp  %g1, %g2                                  <== NOT EXECUTED
 200be20:	22 80 00 2a 	be,a   200bec8 <rtems_bdbuf_add_to_modified_list_after_access+0xd0><== NOT EXECUTED
 200be24:	c2 06 20 1c 	ld  [ %i0 + 0x1c ], %g1                        <== NOT EXECUTED
   * difficult question. Is a snapshot of a block that is changing better than
   * nothing being written? We have tended to think we should hold changes for
   * only a specific period of time even if still changing and get onto disk
   * and letting the file system try and recover this position if it can.
   */                                                                 
  if (bd->state == RTEMS_BDBUF_STATE_ACCESS_CACHED                    
 200be28:	c2 06 20 28 	ld  [ %i0 + 0x28 ], %g1                        
 200be2c:	80 a0 60 03 	cmp  %g1, 3                                    
 200be30:	02 80 00 18 	be  200be90 <rtems_bdbuf_add_to_modified_list_after_access+0x98>
 200be34:	03 00 80 63 	sethi  %hi(0x2018c00), %g1                     
        || bd->state == RTEMS_BDBUF_STATE_ACCESS_EMPTY)               
 200be38:	c2 06 20 28 	ld  [ %i0 + 0x28 ], %g1                        
 200be3c:	80 a0 60 05 	cmp  %g1, 5                                    
 200be40:	02 80 00 13 	be  200be8c <rtems_bdbuf_add_to_modified_list_after_access+0x94>
 200be44:	82 10 20 07 	mov  7, %g1                                    
RTEMS_INLINE_ROUTINE void rtems_chain_append(                         
  rtems_chain_control *the_chain,                                     
  rtems_chain_node    *the_node                                       
)                                                                     
{                                                                     
  _Chain_Append( the_chain, the_node );                               
 200be48:	11 00 80 6a 	sethi  %hi(0x201a800), %o0                     
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 200be4c:	c2 26 20 28 	st  %g1, [ %i0 + 0x28 ]                        
 200be50:	90 12 21 f8 	or  %o0, 0x1f8, %o0                            
 200be54:	7f ff f1 0f 	call  2008290 <_Chain_Append>                  
 200be58:	92 10 00 18 	mov  %i0, %o1                                  
    bd->hold_timer = bdbuf_config.swap_block_hold;                    
                                                                      
  rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_MODIFIED);             
  rtems_chain_append (&bdbuf_cache.modified, &bd->link);              
                                                                      
  if (bd->waiters)                                                    
 200be5c:	c2 06 20 2c 	ld  [ %i0 + 0x2c ], %g1                        
 200be60:	80 a0 60 00 	cmp  %g1, 0                                    
 200be64:	12 80 00 17 	bne  200bec0 <rtems_bdbuf_add_to_modified_list_after_access+0xc8>
 200be68:	31 00 80 6a 	sethi  %hi(0x201a800), %i0                     
}                                                                     
                                                                      
static bool                                                           
rtems_bdbuf_has_buffer_waiters (void)                                 
{                                                                     
  return bdbuf_cache.buffer_waiters.count;                            
 200be6c:	c2 07 60 78 	ld  [ %i5 + 0x78 ], %g1                        
  rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_MODIFIED);             
  rtems_chain_append (&bdbuf_cache.modified, &bd->link);              
                                                                      
  if (bd->waiters)                                                    
    rtems_bdbuf_wake (&bdbuf_cache.access_waiters);                   
  else if (rtems_bdbuf_has_buffer_waiters ())                         
 200be70:	80 a0 60 00 	cmp  %g1, 0                                    
 200be74:	12 80 00 04 	bne  200be84 <rtems_bdbuf_add_to_modified_list_after_access+0x8c>
 200be78:	01 00 00 00 	nop                                            
 200be7c:	81 c7 e0 08 	ret                                            
 200be80:	81 e8 00 00 	restore                                        
    rtems_bdbuf_wake_swapper ();                                      
 200be84:	7f ff ff 3f 	call  200bb80 <rtems_bdbuf_wake_swapper>       
 200be88:	81 e8 00 00 	restore                                        
   * only a specific period of time even if still changing and get onto disk
   * and letting the file system try and recover this position if it can.
   */                                                                 
  if (bd->state == RTEMS_BDBUF_STATE_ACCESS_CACHED                    
        || bd->state == RTEMS_BDBUF_STATE_ACCESS_EMPTY)               
    bd->hold_timer = bdbuf_config.swap_block_hold;                    
 200be8c:	03 00 80 63 	sethi  %hi(0x2018c00), %g1                     
 200be90:	c2 00 63 58 	ld  [ %g1 + 0x358 ], %g1	! 2018f58 <rtems_bdbuf_configuration+0x10>
 200be94:	11 00 80 6a 	sethi  %hi(0x201a800), %o0                     
 200be98:	c2 26 20 34 	st  %g1, [ %i0 + 0x34 ]                        
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 200be9c:	82 10 20 07 	mov  7, %g1                                    
 200bea0:	90 12 21 f8 	or  %o0, 0x1f8, %o0                            
 200bea4:	c2 26 20 28 	st  %g1, [ %i0 + 0x28 ]                        
 200bea8:	7f ff f0 fa 	call  2008290 <_Chain_Append>                  
 200beac:	92 10 00 18 	mov  %i0, %o1                                  
    bd->hold_timer = bdbuf_config.swap_block_hold;                    
                                                                      
  rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_MODIFIED);             
  rtems_chain_append (&bdbuf_cache.modified, &bd->link);              
                                                                      
  if (bd->waiters)                                                    
 200beb0:	c2 06 20 2c 	ld  [ %i0 + 0x2c ], %g1                        
 200beb4:	80 a0 60 00 	cmp  %g1, 0                                    
 200beb8:	02 bf ff ed 	be  200be6c <rtems_bdbuf_add_to_modified_list_after_access+0x74>
 200bebc:	31 00 80 6a 	sethi  %hi(0x201a800), %i0                     
    rtems_bdbuf_wake (&bdbuf_cache.access_waiters);                   
 200bec0:	7f ff ff bf 	call  200bdbc <rtems_bdbuf_wake>               
 200bec4:	91 ee 22 10 	restore  %i0, 0x210, %o0                       
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_add_to_modified_list_after_access (rtems_bdbuf_buffer *bd)
{                                                                     
  if (bdbuf_cache.sync_active && bdbuf_cache.sync_device == bd->dev)  
 200bec8:	80 a0 40 03 	cmp  %g1, %g3                                  <== NOT EXECUTED
 200becc:	12 bf ff d7 	bne  200be28 <rtems_bdbuf_add_to_modified_list_after_access+0x30><== NOT EXECUTED
 200bed0:	01 00 00 00 	nop                                            <== NOT EXECUTED
  {                                                                   
    rtems_bdbuf_unlock_cache ();                                      
 200bed4:	7f ff ff 08 	call  200baf4 <rtems_bdbuf_unlock_cache>       <== NOT EXECUTED
 200bed8:	01 00 00 00 	nop                                            <== NOT EXECUTED
                                                                      
    /*                                                                
     * Wait for the sync lock.                                        
     */                                                               
    rtems_bdbuf_lock_sync ();                                         
 200bedc:	7f ff fe 81 	call  200b8e0 <rtems_bdbuf_lock_sync>          <== NOT EXECUTED
 200bee0:	01 00 00 00 	nop                                            <== NOT EXECUTED
                                                                      
    rtems_bdbuf_unlock_sync ();                                       
 200bee4:	7f ff ff 10 	call  200bb24 <rtems_bdbuf_unlock_sync>        <== NOT EXECUTED
 200bee8:	01 00 00 00 	nop                                            <== NOT EXECUTED
    rtems_bdbuf_lock_cache ();                                        
 200beec:	7f ff fe 6f 	call  200b8a8 <rtems_bdbuf_lock_cache>         <== NOT EXECUTED
 200bef0:	01 00 00 00 	nop                                            <== NOT EXECUTED
 200bef4:	30 bf ff cd 	b,a   200be28 <rtems_bdbuf_add_to_modified_list_after_access+0x30><== NOT EXECUTED
                                                                      

0200bc94 <rtems_bdbuf_anonymous_wait>: * The function assumes the cache is locked on entry and it will be locked on * exit. */ static void rtems_bdbuf_anonymous_wait (rtems_bdbuf_waiters *waiters) {
 200bc94:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_mode        prev_mode;                                        
                                                                      
  /*                                                                  
   * Indicate we are waiting.                                         
   */                                                                 
  ++waiters->count;                                                   
 200bc98:	c2 06 00 00 	ld  [ %i0 ], %g1                               
 200bc9c:	82 00 60 01 	inc  %g1                                       
 200bca0:	c2 26 00 00 	st  %g1, [ %i0 ]                               
   * blocking or just hits that window, and before this task has blocked on the
   * semaphore. If the preempting task flushes the queue this task will not see
   * the flush and may block for ever or until another transaction flushes this
   * semaphore.                                                       
   */                                                                 
  prev_mode = rtems_bdbuf_disable_preemption ();                      
 200bca4:	7f ff ff de 	call  200bc1c <rtems_bdbuf_disable_preemption> 
 200bca8:	01 00 00 00 	nop                                            
                                                                      
  /*                                                                  
   * Unlock the cache, wait, and lock the cache when we return.       
   */                                                                 
  rtems_bdbuf_unlock_cache ();                                        
 200bcac:	7f ff ff 92 	call  200baf4 <rtems_bdbuf_unlock_cache>       
 200bcb0:	ba 10 00 08 	mov  %o0, %i5                                  
                                                                      
  sc = rtems_semaphore_obtain (waiters->sema, RTEMS_WAIT, RTEMS_BDBUF_WAIT_TIMEOUT);
 200bcb4:	d0 06 20 04 	ld  [ %i0 + 4 ], %o0                           
 200bcb8:	92 10 20 00 	clr  %o1                                       
 200bcbc:	7f ff ee 69 	call  2007660 <rtems_semaphore_obtain>         
 200bcc0:	94 10 20 00 	clr  %o2                                       
                                                                      
  if (sc == RTEMS_TIMEOUT)                                            
 200bcc4:	80 a2 20 06 	cmp  %o0, 6                                    
 200bcc8:	02 80 00 0d 	be  200bcfc <rtems_bdbuf_anonymous_wait+0x68>  <== NEVER TAKEN
 200bccc:	80 a2 20 0d 	cmp  %o0, 0xd                                  
    rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_CACHE_WAIT_TO);
                                                                      
  if (sc != RTEMS_UNSATISFIED)                                        
 200bcd0:	12 80 00 0e 	bne  200bd08 <rtems_bdbuf_anonymous_wait+0x74> <== NEVER TAKEN
 200bcd4:	11 10 80 00 	sethi  %hi(0x42000000), %o0                    
    rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_CACHE_WAIT_2);
                                                                      
  rtems_bdbuf_lock_cache ();                                          
 200bcd8:	7f ff fe f4 	call  200b8a8 <rtems_bdbuf_lock_cache>         
 200bcdc:	01 00 00 00 	nop                                            
                                                                      
  rtems_bdbuf_restore_preemption (prev_mode);                         
 200bce0:	7f ff ff de 	call  200bc58 <rtems_bdbuf_restore_preemption> 
 200bce4:	90 10 00 1d 	mov  %i5, %o0                                  
                                                                      
  --waiters->count;                                                   
 200bce8:	c2 06 00 00 	ld  [ %i0 ], %g1                               
 200bcec:	82 00 7f ff 	add  %g1, -1, %g1                              
 200bcf0:	c2 26 00 00 	st  %g1, [ %i0 ]                               
}                                                                     
 200bcf4:	81 c7 e0 08 	ret                                            
 200bcf8:	81 e8 00 00 	restore                                        
  rtems_bdbuf_unlock_cache ();                                        
                                                                      
  sc = rtems_semaphore_obtain (waiters->sema, RTEMS_WAIT, RTEMS_BDBUF_WAIT_TIMEOUT);
                                                                      
  if (sc == RTEMS_TIMEOUT)                                            
    rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_CACHE_WAIT_TO);
 200bcfc:	11 10 80 00 	sethi  %hi(0x42000000), %o0                    <== NOT EXECUTED
 200bd00:	7f ff ef f2 	call  2007cc8 <rtems_fatal_error_occurred>     <== NOT EXECUTED
 200bd04:	90 12 20 12 	or  %o0, 0x12, %o0	! 42000012 <RAM_END+0x3fc00012><== NOT EXECUTED
                                                                      
  if (sc != RTEMS_UNSATISFIED)                                        
    rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_CACHE_WAIT_2);
 200bd08:	7f ff ef f0 	call  2007cc8 <rtems_fatal_error_occurred>     <== NOT EXECUTED
 200bd0c:	90 12 20 10 	or  %o0, 0x10, %o0                             <== NOT EXECUTED
                                                                      

0200bc1c <rtems_bdbuf_disable_preemption>: --bd->group->users; } static rtems_mode rtems_bdbuf_disable_preemption (void) {
 200bc1c:	9d e3 bf 98 	save  %sp, -104, %sp                           
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_mode prev_mode = 0;                                           
                                                                      
  sc = rtems_task_mode (RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &prev_mode);
 200bc20:	90 10 21 00 	mov  0x100, %o0                                
                                                                      
static rtems_mode                                                     
rtems_bdbuf_disable_preemption (void)                                 
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_mode prev_mode = 0;                                           
 200bc24:	c0 27 bf fc 	clr  [ %fp + -4 ]                              
                                                                      
  sc = rtems_task_mode (RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &prev_mode);
 200bc28:	92 10 21 00 	mov  0x100, %o1                                
 200bc2c:	40 00 13 28 	call  20108cc <rtems_task_mode>                
 200bc30:	94 07 bf fc 	add  %fp, -4, %o2                              
  if (sc != RTEMS_SUCCESSFUL)                                         
 200bc34:	80 a2 20 00 	cmp  %o0, 0                                    
 200bc38:	12 80 00 04 	bne  200bc48 <rtems_bdbuf_disable_preemption+0x2c><== NEVER TAKEN
 200bc3c:	f0 07 bf fc 	ld  [ %fp + -4 ], %i0                          
    rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_PREEMPT_DIS);
                                                                      
  return prev_mode;                                                   
}                                                                     
 200bc40:	81 c7 e0 08 	ret                                            
 200bc44:	81 e8 00 00 	restore                                        
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_mode prev_mode = 0;                                           
                                                                      
  sc = rtems_task_mode (RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &prev_mode);
  if (sc != RTEMS_SUCCESSFUL)                                         
    rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_PREEMPT_DIS);
 200bc48:	11 10 80 00 	sethi  %hi(0x42000000), %o0                    <== NOT EXECUTED
 200bc4c:	7f ff f0 1f 	call  2007cc8 <rtems_fatal_error_occurred>     <== NOT EXECUTED
 200bc50:	90 12 20 0f 	or  %o0, 0xf, %o0	! 4200000f <RAM_END+0x3fc0000f><== NOT EXECUTED
                                                                      

0200c690 <rtems_bdbuf_execute_transfer_request.isra.9>: req->bufnum = transfer_index; } static rtems_status_code rtems_bdbuf_execute_transfer_request (const rtems_disk_device *dd,
 200c690:	9d e3 bf a0 	save  %sp, -96, %sp                            
  int result = 0;                                                     
  uint32_t transfer_index = 0;                                        
  bool wake_transfer_waiters = false;                                 
  bool wake_buffer_waiters = false;                                   
                                                                      
  if (cache_locked)                                                   
 200c694:	80 a6 e0 00 	cmp  %i3, 0                                    
 200c698:	12 80 00 6b 	bne  200c844 <rtems_bdbuf_execute_transfer_request.isra.9+0x1b4>
 200c69c:	01 00 00 00 	nop                                            
    rtems_bdbuf_unlock_cache ();                                      
                                                                      
  result = dd->ioctl (dd->phys_dev, RTEMS_BLKIO_REQUEST, req);        
 200c6a0:	d0 06 00 00 	ld  [ %i0 ], %o0                               
 200c6a4:	c2 06 40 00 	ld  [ %i1 ], %g1                               
 200c6a8:	94 10 00 1a 	mov  %i2, %o2                                  
 200c6ac:	13 30 06 10 	sethi  %hi(0xc0184000), %o1                    
                                                                      
  if (result == 0)                                                    
 200c6b0:	ba 10 20 00 	clr  %i5                                       
  bool wake_buffer_waiters = false;                                   
                                                                      
  if (cache_locked)                                                   
    rtems_bdbuf_unlock_cache ();                                      
                                                                      
  result = dd->ioctl (dd->phys_dev, RTEMS_BLKIO_REQUEST, req);        
 200c6b4:	92 12 62 01 	or  %o1, 0x201, %o1                            
 200c6b8:	9f c0 40 00 	call  %g1                                      
 200c6bc:	b0 10 20 1b 	mov  0x1b, %i0                                 
                                                                      
  if (result == 0)                                                    
 200c6c0:	80 a2 20 00 	cmp  %o0, 0                                    
 200c6c4:	02 80 00 56 	be  200c81c <rtems_bdbuf_execute_transfer_request.isra.9+0x18c>
 200c6c8:	01 00 00 00 	nop                                            
    sc = req->status;                                                 
  }                                                                   
  else                                                                
    sc = RTEMS_IO_ERROR;                                              
                                                                      
  rtems_bdbuf_lock_cache ();                                          
 200c6cc:	7f ff fc 77 	call  200b8a8 <rtems_bdbuf_lock_cache>         
 200c6d0:	01 00 00 00 	nop                                            
                                                                      
  for (transfer_index = 0; transfer_index < req->bufnum; ++transfer_index)
 200c6d4:	c6 06 a0 10 	ld  [ %i2 + 0x10 ], %g3                        
 200c6d8:	80 a0 e0 00 	cmp  %g3, 0                                    
 200c6dc:	02 80 00 35 	be  200c7b0 <rtems_bdbuf_execute_transfer_request.isra.9+0x120><== NEVER TAKEN
 200c6e0:	a2 10 20 00 	clr  %l1                                       
 200c6e4:	27 00 80 6a 	sethi  %hi(0x201a800), %l3                     
 200c6e8:	b2 10 00 1a 	mov  %i2, %i1                                  
                                      bool                     cache_locked)
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  int result = 0;                                                     
  uint32_t transfer_index = 0;                                        
  bool wake_transfer_waiters = false;                                 
 200c6ec:	a4 10 20 00 	clr  %l2                                       
  else                                                                
    sc = RTEMS_IO_ERROR;                                              
                                                                      
  rtems_bdbuf_lock_cache ();                                          
                                                                      
  for (transfer_index = 0; transfer_index < req->bufnum; ++transfer_index)
 200c6f0:	b8 10 20 00 	clr  %i4                                       
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 200c6f4:	a0 10 20 01 	mov  1, %l0                                    
 200c6f8:	a6 14 e1 ec 	or  %l3, 0x1ec, %l3                            
 200c6fc:	10 80 00 15 	b  200c750 <rtems_bdbuf_execute_transfer_request.isra.9+0xc0>
 200c700:	a8 10 20 02 	mov  2, %l4                                    
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_group_release (rtems_bdbuf_buffer *bd)                    
{                                                                     
  --bd->group->users;                                                 
 200c704:	c2 05 60 30 	ld  [ %l5 + 0x30 ], %g1                        
    else                                                              
      wake_buffer_waiters = true;                                     
                                                                      
    rtems_bdbuf_group_release (bd);                                   
                                                                      
    if (sc == RTEMS_SUCCESSFUL && bd->state == RTEMS_BDBUF_STATE_TRANSFER)
 200c708:	80 a6 20 00 	cmp  %i0, 0                                    
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_group_release (rtems_bdbuf_buffer *bd)                    
{                                                                     
  --bd->group->users;                                                 
 200c70c:	c4 00 60 0c 	ld  [ %g1 + 0xc ], %g2                         
 200c710:	84 00 bf ff 	add  %g2, -1, %g2                              
    else                                                              
      wake_buffer_waiters = true;                                     
                                                                      
    rtems_bdbuf_group_release (bd);                                   
                                                                      
    if (sc == RTEMS_SUCCESSFUL && bd->state == RTEMS_BDBUF_STATE_TRANSFER)
 200c714:	12 80 00 06 	bne  200c72c <rtems_bdbuf_execute_transfer_request.isra.9+0x9c>
 200c718:	c4 20 60 0c 	st  %g2, [ %g1 + 0xc ]                         
 200c71c:	c2 05 60 28 	ld  [ %l5 + 0x28 ], %g1                        
 200c720:	80 a0 60 09 	cmp  %g1, 9                                    
 200c724:	02 80 00 2b 	be  200c7d0 <rtems_bdbuf_execute_transfer_request.isra.9+0x140>
 200c728:	01 00 00 00 	nop                                            
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 200c72c:	e0 25 60 28 	st  %l0, [ %l5 + 0x28 ]                        
static void                                                           
rtems_bdbuf_discard_buffer (rtems_bdbuf_buffer *bd)                   
{                                                                     
  rtems_bdbuf_make_empty (bd);                                        
                                                                      
  if (bd->waiters == 0)                                               
 200c730:	c2 05 60 2c 	ld  [ %l5 + 0x2c ], %g1                        
 200c734:	80 a0 60 00 	cmp  %g1, 0                                    
 200c738:	02 80 00 0d 	be  200c76c <rtems_bdbuf_execute_transfer_request.isra.9+0xdc>
 200c73c:	01 00 00 00 	nop                                            
  else                                                                
    sc = RTEMS_IO_ERROR;                                              
                                                                      
  rtems_bdbuf_lock_cache ();                                          
                                                                      
  for (transfer_index = 0; transfer_index < req->bufnum; ++transfer_index)
 200c740:	b8 07 20 01 	inc  %i4                                       
 200c744:	80 a7 00 03 	cmp  %i4, %g3                                  
 200c748:	1a 80 00 14 	bcc  200c798 <rtems_bdbuf_execute_transfer_request.isra.9+0x108>
 200c74c:	b2 06 60 10 	add  %i1, 0x10, %i1                            
  {                                                                   
    rtems_bdbuf_buffer *bd = req->bufs [transfer_index].user;         
 200c750:	ea 06 60 24 	ld  [ %i1 + 0x24 ], %l5                        
    bool waiters = bd->waiters;                                       
 200c754:	c2 05 60 2c 	ld  [ %l5 + 0x2c ], %g1                        
                                                                      
    if (waiters)                                                      
 200c758:	80 a0 60 00 	cmp  %g1, 0                                    
 200c75c:	32 bf ff ea 	bne,a   200c704 <rtems_bdbuf_execute_transfer_request.isra.9+0x74>
 200c760:	a4 10 20 01 	mov  1, %l2                                    
      wake_transfer_waiters = true;                                   
    else                                                              
      wake_buffer_waiters = true;                                     
 200c764:	10 bf ff e8 	b  200c704 <rtems_bdbuf_execute_transfer_request.isra.9+0x74>
 200c768:	a2 10 20 01 	mov  1, %l1                                    
{                                                                     
  rtems_bdbuf_make_empty (bd);                                        
                                                                      
  if (bd->waiters == 0)                                               
  {                                                                   
    rtems_bdbuf_remove_from_tree (bd);                                
 200c76c:	7f ff fe 1f 	call  200bfe8 <rtems_bdbuf_remove_from_tree>   
 200c770:	90 10 00 15 	mov  %l5, %o0                                  
 200c774:	90 10 00 13 	mov  %l3, %o0                                  
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 200c778:	c0 25 60 28 	clr  [ %l5 + 0x28 ]                            
 200c77c:	40 00 11 95 	call  2010dd0 <_Chain_Insert>                  
 200c780:	92 10 00 15 	mov  %l5, %o1                                  
 200c784:	c6 06 a0 10 	ld  [ %i2 + 0x10 ], %g3                        
  else                                                                
    sc = RTEMS_IO_ERROR;                                              
                                                                      
  rtems_bdbuf_lock_cache ();                                          
                                                                      
  for (transfer_index = 0; transfer_index < req->bufnum; ++transfer_index)
 200c788:	b8 07 20 01 	inc  %i4                                       
 200c78c:	80 a7 00 03 	cmp  %i4, %g3                                  
 200c790:	0a bf ff f0 	bcs  200c750 <rtems_bdbuf_execute_transfer_request.isra.9+0xc0><== NEVER TAKEN
 200c794:	b2 06 60 10 	add  %i1, 0x10, %i1                            
                                                                      
    if (rtems_bdbuf_tracer)                                           
      rtems_bdbuf_show_users ("transfer", bd);                        
  }                                                                   
                                                                      
  if (wake_transfer_waiters)                                          
 200c798:	80 8c a0 ff 	btst  0xff, %l2                                
 200c79c:	12 80 00 1c 	bne  200c80c <rtems_bdbuf_execute_transfer_request.isra.9+0x17c>
 200c7a0:	11 00 80 6a 	sethi  %hi(0x201a800), %o0                     
    rtems_bdbuf_wake (&bdbuf_cache.transfer_waiters);                 
                                                                      
  if (wake_buffer_waiters)                                            
 200c7a4:	80 8c 60 ff 	btst  0xff, %l1                                
 200c7a8:	12 80 00 10 	bne  200c7e8 <rtems_bdbuf_execute_transfer_request.isra.9+0x158>
 200c7ac:	11 00 80 6a 	sethi  %hi(0x201a800), %o0                     
    rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);                   
                                                                      
  if (!cache_locked)                                                  
 200c7b0:	80 a6 e0 00 	cmp  %i3, 0                                    
 200c7b4:	02 80 00 12 	be  200c7fc <rtems_bdbuf_execute_transfer_request.isra.9+0x16c>
 200c7b8:	01 00 00 00 	nop                                            
    rtems_bdbuf_unlock_cache ();                                      
                                                                      
  if (sc == RTEMS_SUCCESSFUL || sc == RTEMS_UNSATISFIED)              
 200c7bc:	80 8f 60 ff 	btst  0xff, %i5                                
 200c7c0:	22 80 00 02 	be,a   200c7c8 <rtems_bdbuf_execute_transfer_request.isra.9+0x138>
 200c7c4:	b0 10 20 1b 	mov  0x1b, %i0                                 
    return sc;                                                        
  else                                                                
    return RTEMS_IO_ERROR;                                            
}                                                                     
 200c7c8:	81 c7 e0 08 	ret                                            
 200c7cc:	81 e8 00 00 	restore                                        
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 200c7d0:	e8 25 60 28 	st  %l4, [ %l5 + 0x28 ]                        
RTEMS_INLINE_ROUTINE void rtems_chain_append(                         
  rtems_chain_control *the_chain,                                     
  rtems_chain_node    *the_node                                       
)                                                                     
{                                                                     
  _Chain_Append( the_chain, the_node );                               
 200c7d4:	90 10 00 13 	mov  %l3, %o0                                  
 200c7d8:	7f ff ee ae 	call  2008290 <_Chain_Append>                  
 200c7dc:	92 10 00 15 	mov  %l5, %o1                                  
 200c7e0:	10 bf ff d8 	b  200c740 <rtems_bdbuf_execute_transfer_request.isra.9+0xb0>
 200c7e4:	c6 06 a0 10 	ld  [ %i2 + 0x10 ], %g3                        
                                                                      
  if (wake_transfer_waiters)                                          
    rtems_bdbuf_wake (&bdbuf_cache.transfer_waiters);                 
                                                                      
  if (wake_buffer_waiters)                                            
    rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);                   
 200c7e8:	7f ff fd 75 	call  200bdbc <rtems_bdbuf_wake>               
 200c7ec:	90 12 22 20 	or  %o0, 0x220, %o0                            
                                                                      
  if (!cache_locked)                                                  
 200c7f0:	80 a6 e0 00 	cmp  %i3, 0                                    
 200c7f4:	32 bf ff f3 	bne,a   200c7c0 <rtems_bdbuf_execute_transfer_request.isra.9+0x130>
 200c7f8:	80 8f 60 ff 	btst  0xff, %i5                                
    rtems_bdbuf_unlock_cache ();                                      
 200c7fc:	7f ff fc be 	call  200baf4 <rtems_bdbuf_unlock_cache>       
 200c800:	01 00 00 00 	nop                                            
                                                                      
  if (sc == RTEMS_SUCCESSFUL || sc == RTEMS_UNSATISFIED)              
 200c804:	10 bf ff ef 	b  200c7c0 <rtems_bdbuf_execute_transfer_request.isra.9+0x130>
 200c808:	80 8f 60 ff 	btst  0xff, %i5                                
    if (rtems_bdbuf_tracer)                                           
      rtems_bdbuf_show_users ("transfer", bd);                        
  }                                                                   
                                                                      
  if (wake_transfer_waiters)                                          
    rtems_bdbuf_wake (&bdbuf_cache.transfer_waiters);                 
 200c80c:	7f ff fd 6c 	call  200bdbc <rtems_bdbuf_wake>               
 200c810:	90 12 22 18 	or  %o0, 0x218, %o0                            
                                                                      
  if (wake_buffer_waiters)                                            
 200c814:	10 bf ff e5 	b  200c7a8 <rtems_bdbuf_execute_transfer_request.isra.9+0x118>
 200c818:	80 8c 60 ff 	btst  0xff, %l1                                
                                                                      
  result = dd->ioctl (dd->phys_dev, RTEMS_BLKIO_REQUEST, req);        
                                                                      
  if (result == 0)                                                    
  {                                                                   
    rtems_bdbuf_wait_for_event (RTEMS_BDBUF_TRANSFER_SYNC);           
 200c81c:	7f ff fc ed 	call  200bbd0 <rtems_bdbuf_wait_for_event>     
 200c820:	90 10 20 02 	mov  2, %o0                                    
    sc = req->status;                                                 
 200c824:	f0 06 a0 0c 	ld  [ %i2 + 0xc ], %i0                         
 200c828:	82 1e 20 0d 	xor  %i0, 0xd, %g1                             
 200c82c:	80 a0 00 01 	cmp  %g0, %g1                                  
 200c830:	ba 60 3f ff 	subx  %g0, -1, %i5                             
 200c834:	80 a0 00 18 	cmp  %g0, %i0                                  
 200c838:	82 60 3f ff 	subx  %g0, -1, %g1                             
 200c83c:	10 bf ff a4 	b  200c6cc <rtems_bdbuf_execute_transfer_request.isra.9+0x3c>
 200c840:	ba 17 40 01 	or  %i5, %g1, %i5                              
  uint32_t transfer_index = 0;                                        
  bool wake_transfer_waiters = false;                                 
  bool wake_buffer_waiters = false;                                   
                                                                      
  if (cache_locked)                                                   
    rtems_bdbuf_unlock_cache ();                                      
 200c844:	7f ff fc ac 	call  200baf4 <rtems_bdbuf_unlock_cache>       
 200c848:	01 00 00 00 	nop                                            
                                                                      
  result = dd->ioctl (dd->phys_dev, RTEMS_BLKIO_REQUEST, req);        
 200c84c:	10 bf ff 96 	b  200c6a4 <rtems_bdbuf_execute_transfer_request.isra.9+0x14>
 200c850:	d0 06 00 00 	ld  [ %i0 ], %o0                               
                                                                      

0200b918 <rtems_bdbuf_fatal>: #define RTEMS_BDBUF_AVL_MAX_HEIGHT (32) #endif static void rtems_bdbuf_fatal (rtems_bdbuf_buf_state state, uint32_t error) {
 200b918:	9d e3 bf a0 	save  %sp, -96, %sp                            <== NOT EXECUTED
  rtems_fatal_error_occurred ((((uint32_t) state) << 16) | error);    
 200b91c:	91 2e 20 10 	sll  %i0, 0x10, %o0                            <== NOT EXECUTED
 200b920:	7f ff f0 ea 	call  2007cc8 <rtems_fatal_error_occurred>     <== NOT EXECUTED
 200b924:	90 16 40 08 	or  %i1, %o0, %o0                              <== NOT EXECUTED
                                                                      

0200d8a8 <rtems_bdbuf_get>: rtems_status_code rtems_bdbuf_get (dev_t dev, rtems_blkdev_bnum block, rtems_bdbuf_buffer **bd_ptr) {
 200d8a8:	9d e3 bf 90 	save  %sp, -112, %sp                           
                         rtems_blkdev_bnum  *media_block_ptr,         
                         size_t             *bds_per_group_ptr)       
{                                                                     
  rtems_disk_device *dd = NULL;                                       
                                                                      
  if (!bdbuf_cache.initialised)                                       
 200d8ac:	03 00 80 6a 	sethi  %hi(0x201a800), %g1                     
 200d8b0:	c2 08 62 30 	ldub  [ %g1 + 0x230 ], %g1	! 201aa30 <bdbuf_cache+0x88>
rtems_bdbuf_get (dev_t                dev,                            
                 rtems_blkdev_bnum    block,                          
                 rtems_bdbuf_buffer **bd_ptr)                         
{                                                                     
  rtems_status_code   sc = RTEMS_SUCCESSFUL;                          
  rtems_disk_device  *dd = NULL;                                      
 200d8b4:	c0 27 bf f4 	clr  [ %fp + -12 ]                             
  rtems_bdbuf_buffer *bd = NULL;                                      
  rtems_blkdev_bnum   media_block = 0;                                
 200d8b8:	c0 27 bf f8 	clr  [ %fp + -8 ]                              
  size_t              bds_per_group = 0;                              
 200d8bc:	c0 27 bf fc 	clr  [ %fp + -4 ]                              
                                                                      
rtems_status_code                                                     
rtems_bdbuf_get (dev_t                dev,                            
                 rtems_blkdev_bnum    block,                          
                 rtems_bdbuf_buffer **bd_ptr)                         
{                                                                     
 200d8c0:	b8 10 00 18 	mov  %i0, %i4                                  
                         rtems_blkdev_bnum  *media_block_ptr,         
                         size_t             *bds_per_group_ptr)       
{                                                                     
  rtems_disk_device *dd = NULL;                                       
                                                                      
  if (!bdbuf_cache.initialised)                                       
 200d8c4:	80 a0 60 00 	cmp  %g1, 0                                    
 200d8c8:	02 80 00 26 	be  200d960 <rtems_bdbuf_get+0xb8>             <== NEVER TAKEN
 200d8cc:	b0 10 20 16 	mov  0x16, %i0                                 
 200d8d0:	90 10 00 1c 	mov  %i4, %o0                                  
 200d8d4:	92 10 00 19 	mov  %i1, %o1                                  
 200d8d8:	94 10 00 1a 	mov  %i2, %o2                                  
 200d8dc:	96 07 bf f4 	add  %fp, -12, %o3                             
 200d8e0:	98 07 bf f8 	add  %fp, -8, %o4                              
 200d8e4:	7f ff f9 85 	call  200bef8 <rtems_bdbuf_obtain_disk.part.8> 
 200d8e8:	9a 07 bf fc 	add  %fp, -4, %o5                              
  rtems_bdbuf_buffer *bd = NULL;                                      
  rtems_blkdev_bnum   media_block = 0;                                
  size_t              bds_per_group = 0;                              
                                                                      
  sc = rtems_bdbuf_obtain_disk (dev, block, &dd, &media_block, &bds_per_group);
  if (sc != RTEMS_SUCCESSFUL)                                         
 200d8ec:	b0 92 20 00 	orcc  %o0, 0, %i0                              
 200d8f0:	12 80 00 1c 	bne  200d960 <rtems_bdbuf_get+0xb8>            <== NEVER TAKEN
 200d8f4:	01 00 00 00 	nop                                            
    return sc;                                                        
                                                                      
  rtems_bdbuf_lock_cache ();                                          
 200d8f8:	7f ff f7 ec 	call  200b8a8 <rtems_bdbuf_lock_cache>         
 200d8fc:	01 00 00 00 	nop                                            
   */                                                                 
  if (rtems_bdbuf_tracer)                                             
    printf ("bdbuf:get: %" PRIu32 " (%" PRIu32 ") (dev = %08x)\n",    
            media_block, block, (unsigned) dev);                      
                                                                      
  bd = rtems_bdbuf_get_buffer_for_access (dev, media_block, bds_per_group);
 200d900:	d4 1f bf f8 	ldd  [ %fp + -8 ], %o2                         
 200d904:	90 10 00 1c 	mov  %i4, %o0                                  
 200d908:	7f ff fe 5b 	call  200d274 <rtems_bdbuf_get_buffer_for_access>
 200d90c:	92 10 00 19 	mov  %i1, %o1                                  
                                                                      
  switch (bd->state)                                                  
 200d910:	c2 02 20 28 	ld  [ %o0 + 0x28 ], %g1                        
 200d914:	80 a0 60 02 	cmp  %g1, 2                                    
 200d918:	02 80 00 14 	be  200d968 <rtems_bdbuf_get+0xc0>             
 200d91c:	b8 10 00 08 	mov  %o0, %i4                                  
 200d920:	80 a0 60 07 	cmp  %g1, 7                                    
 200d924:	02 80 00 08 	be  200d944 <rtems_bdbuf_get+0x9c>             
 200d928:	80 a0 60 01 	cmp  %g1, 1                                    
 200d92c:	02 80 00 12 	be  200d974 <rtems_bdbuf_get+0xcc>             <== ALWAYS TAKEN
 200d930:	82 10 20 05 	mov  5, %g1                                    
       * so just gets the block to fill.                              
       */                                                             
      rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_ACCESS_MODIFIED);  
      break;                                                          
    default:                                                          
      rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_2);
 200d934:	d0 02 20 28 	ld  [ %o0 + 0x28 ], %o0                        <== NOT EXECUTED
 200d938:	13 10 80 00 	sethi  %hi(0x42000000), %o1                    <== NOT EXECUTED
 200d93c:	7f ff f7 f7 	call  200b918 <rtems_bdbuf_fatal>              <== NOT EXECUTED
 200d940:	92 12 60 1e 	or  %o1, 0x1e, %o1	! 4200001e <RAM_END+0x3fc0001e><== NOT EXECUTED
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 200d944:	82 10 20 04 	mov  4, %g1                                    
 200d948:	c2 22 20 28 	st  %g1, [ %o0 + 0x28 ]                        
  {                                                                   
    rtems_bdbuf_show_users ("get", bd);                               
    rtems_bdbuf_show_usage ();                                        
  }                                                                   
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
 200d94c:	7f ff f8 6a 	call  200baf4 <rtems_bdbuf_unlock_cache>       
 200d950:	01 00 00 00 	nop                                            
                                                                      
  rtems_bdbuf_release_disk (dd);                                      
 200d954:	7f ff f8 80 	call  200bb54 <rtems_bdbuf_release_disk>       
 200d958:	d0 07 bf f4 	ld  [ %fp + -12 ], %o0                         
                                                                      
  *bd_ptr = bd;                                                       
 200d95c:	f8 26 c0 00 	st  %i4, [ %i3 ]                               
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 200d960:	81 c7 e0 08 	ret                                            
 200d964:	81 e8 00 00 	restore                                        
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 200d968:	82 10 20 03 	mov  3, %g1                                    
 200d96c:	c2 22 20 28 	st  %g1, [ %o0 + 0x28 ]                        
 200d970:	30 bf ff f7 	b,a   200d94c <rtems_bdbuf_get+0xa4>           
 200d974:	c2 22 20 28 	st  %g1, [ %o0 + 0x28 ]                        
 200d978:	30 bf ff f5 	b,a   200d94c <rtems_bdbuf_get+0xa4>           
                                                                      

0200d274 <rtems_bdbuf_get_buffer_for_access>: static rtems_bdbuf_buffer * rtems_bdbuf_get_buffer_for_access (dev_t dev, rtems_blkdev_bnum block, size_t bds_per_group) {
 200d274:	9d e3 bf a0 	save  %sp, -96, %sp                            
 200d278:	3b 00 80 6a 	sethi  %hi(0x201a800), %i5                     
 200d27c:	ba 17 61 a8 	or  %i5, 0x1a8, %i5	! 201a9a8 <bdbuf_cache>    
        rtems_bdbuf_wait (bd, &bdbuf_cache.access_waiters);           
        break;                                                        
      case RTEMS_BDBUF_STATE_SYNC:                                    
      case RTEMS_BDBUF_STATE_TRANSFER:                                
      case RTEMS_BDBUF_STATE_TRANSFER_PURGED:                         
        rtems_bdbuf_wait (bd, &bdbuf_cache.transfer_waiters);         
 200d280:	a4 07 60 70 	add  %i5, 0x70, %l2                            
        }                                                             
      case RTEMS_BDBUF_STATE_ACCESS_CACHED:                           
      case RTEMS_BDBUF_STATE_ACCESS_EMPTY:                            
      case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:                         
      case RTEMS_BDBUF_STATE_ACCESS_PURGED:                           
        rtems_bdbuf_wait (bd, &bdbuf_cache.access_waiters);           
 200d284:	a2 07 60 68 	add  %i5, 0x68, %l1                            
 200d288:	a0 07 60 5c 	add  %i5, 0x5c, %l0                            
 200d28c:	b8 07 60 44 	add  %i5, 0x44, %i4                            
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_wait_for_buffer (void)                                    
{                                                                     
  if (!rtems_chain_is_empty (&bdbuf_cache.modified))                  
 200d290:	a6 07 60 54 	add  %i5, 0x54, %l3                            
{                                                                     
  rtems_bdbuf_buffer *bd = NULL;                                      
                                                                      
  do                                                                  
  {                                                                   
    bd = rtems_bdbuf_avl_search (&bdbuf_cache.tree, dev, block);      
 200d294:	e8 07 60 40 	ld  [ %i5 + 0x40 ], %l4                        
                        dev_t                dev,                     
                        rtems_blkdev_bnum    block)                   
{                                                                     
  rtems_bdbuf_buffer* p = *root;                                      
                                                                      
  while ((p != NULL) && ((p->dev != dev) || (p->block != block)))     
 200d298:	80 a5 20 00 	cmp  %l4, 0                                    
 200d29c:	02 80 00 0e 	be  200d2d4 <rtems_bdbuf_get_buffer_for_access+0x60>
 200d2a0:	90 10 00 18 	mov  %i0, %o0                                  
 200d2a4:	c2 05 20 18 	ld  [ %l4 + 0x18 ], %g1                        
 200d2a8:	80 a6 00 01 	cmp  %i0, %g1                                  
 200d2ac:	02 80 00 23 	be  200d338 <rtems_bdbuf_get_buffer_for_access+0xc4>
 200d2b0:	c4 05 20 1c 	ld  [ %l4 + 0x1c ], %g2                        
  {                                                                   
    if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))    
 200d2b4:	80 a6 00 01 	cmp  %i0, %g1                                  
 200d2b8:	08 80 00 1a 	bleu  200d320 <rtems_bdbuf_get_buffer_for_access+0xac>
 200d2bc:	01 00 00 00 	nop                                            
    {                                                                 
      p = p->avl.right;                                               
 200d2c0:	e8 05 20 0c 	ld  [ %l4 + 0xc ], %l4                         
                        dev_t                dev,                     
                        rtems_blkdev_bnum    block)                   
{                                                                     
  rtems_bdbuf_buffer* p = *root;                                      
                                                                      
  while ((p != NULL) && ((p->dev != dev) || (p->block != block)))     
 200d2c4:	80 a5 20 00 	cmp  %l4, 0                                    
 200d2c8:	32 bf ff f8 	bne,a   200d2a8 <rtems_bdbuf_get_buffer_for_access+0x34>
 200d2cc:	c2 05 20 18 	ld  [ %l4 + 0x18 ], %g1                        
        bd = NULL;                                                    
      }                                                               
    }                                                                 
    else                                                              
    {                                                                 
      bd = rtems_bdbuf_get_buffer_from_lru_list (dev, block, bds_per_group);
 200d2d0:	90 10 00 18 	mov  %i0, %o0                                  
 200d2d4:	92 10 00 19 	mov  %i1, %o1                                  
 200d2d8:	94 10 00 1a 	mov  %i2, %o2                                  
 200d2dc:	7f ff fe df 	call  200ce58 <rtems_bdbuf_get_buffer_from_lru_list>
 200d2e0:	96 10 00 1b 	mov  %i3, %o3                                  
                                                                      
      if (bd == NULL)                                                 
 200d2e4:	a8 92 20 00 	orcc  %o0, 0, %l4                              
 200d2e8:	22 80 00 60 	be,a   200d468 <rtems_bdbuf_get_buffer_for_access+0x1f4>
 200d2ec:	c2 07 60 50 	ld  [ %i5 + 0x50 ], %g1                        
        rtems_bdbuf_wait (bd, &bdbuf_cache.access_waiters);           
        break;                                                        
      case RTEMS_BDBUF_STATE_SYNC:                                    
      case RTEMS_BDBUF_STATE_TRANSFER:                                
      case RTEMS_BDBUF_STATE_TRANSFER_PURGED:                         
        rtems_bdbuf_wait (bd, &bdbuf_cache.transfer_waiters);         
 200d2f0:	3b 00 80 6a 	sethi  %hi(0x201a800), %i5                     
static void                                                           
rtems_bdbuf_wait_for_access (rtems_bdbuf_buffer *bd)                  
{                                                                     
  while (true)                                                        
  {                                                                   
    switch (bd->state)                                                
 200d2f4:	39 00 80 2e 	sethi  %hi(0x200b800), %i4                     
        rtems_bdbuf_wait (bd, &bdbuf_cache.access_waiters);           
        break;                                                        
      case RTEMS_BDBUF_STATE_SYNC:                                    
      case RTEMS_BDBUF_STATE_TRANSFER:                                
      case RTEMS_BDBUF_STATE_TRANSFER_PURGED:                         
        rtems_bdbuf_wait (bd, &bdbuf_cache.transfer_waiters);         
 200d2f8:	ba 17 62 18 	or  %i5, 0x218, %i5                            
        return;                                                       
      case RTEMS_BDBUF_STATE_ACCESS_CACHED:                           
      case RTEMS_BDBUF_STATE_ACCESS_EMPTY:                            
      case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:                         
      case RTEMS_BDBUF_STATE_ACCESS_PURGED:                           
        rtems_bdbuf_wait (bd, &bdbuf_cache.access_waiters);           
 200d2fc:	b6 07 7f f8 	add  %i5, -8, %i3                              
static void                                                           
rtems_bdbuf_wait_for_access (rtems_bdbuf_buffer *bd)                  
{                                                                     
  while (true)                                                        
  {                                                                   
    switch (bd->state)                                                
 200d300:	c2 05 20 28 	ld  [ %l4 + 0x28 ], %g1                        
 200d304:	80 a0 60 0a 	cmp  %g1, 0xa                                  
 200d308:	08 80 00 24 	bleu  200d398 <rtems_bdbuf_get_buffer_for_access+0x124><== ALWAYS TAKEN
 200d30c:	84 17 20 4c 	or  %i4, 0x4c, %g2                             
      case RTEMS_BDBUF_STATE_TRANSFER:                                
      case RTEMS_BDBUF_STATE_TRANSFER_PURGED:                         
        rtems_bdbuf_wait (bd, &bdbuf_cache.transfer_waiters);         
        break;                                                        
      default:                                                        
        rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_7);
 200d310:	d0 05 20 28 	ld  [ %l4 + 0x28 ], %o0                        <== NOT EXECUTED
 200d314:	13 10 80 00 	sethi  %hi(0x42000000), %o1                    <== NOT EXECUTED
 200d318:	7f ff f9 80 	call  200b918 <rtems_bdbuf_fatal>              <== NOT EXECUTED
 200d31c:	92 12 60 05 	or  %o1, 5, %o1	! 42000005 <RAM_END+0x3fc00005><== NOT EXECUTED
{                                                                     
  rtems_bdbuf_buffer* p = *root;                                      
                                                                      
  while ((p != NULL) && ((p->dev != dev) || (p->block != block)))     
  {                                                                   
    if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))    
 200d320:	12 80 00 04 	bne  200d330 <rtems_bdbuf_get_buffer_for_access+0xbc><== ALWAYS TAKEN
 200d324:	80 a6 40 02 	cmp  %i1, %g2                                  
 200d328:	38 bf ff e7 	bgu,a   200d2c4 <rtems_bdbuf_get_buffer_for_access+0x50><== NOT EXECUTED
 200d32c:	e8 05 20 0c 	ld  [ %l4 + 0xc ], %l4                         <== NOT EXECUTED
    {                                                                 
      p = p->avl.right;                                               
    }                                                                 
    else                                                              
    {                                                                 
      p = p->avl.left;                                                
 200d330:	10 bf ff e5 	b  200d2c4 <rtems_bdbuf_get_buffer_for_access+0x50>
 200d334:	e8 05 20 08 	ld  [ %l4 + 8 ], %l4                           
                        dev_t                dev,                     
                        rtems_blkdev_bnum    block)                   
{                                                                     
  rtems_bdbuf_buffer* p = *root;                                      
                                                                      
  while ((p != NULL) && ((p->dev != dev) || (p->block != block)))     
 200d338:	80 a6 40 02 	cmp  %i1, %g2                                  
 200d33c:	12 bf ff df 	bne  200d2b8 <rtems_bdbuf_get_buffer_for_access+0x44><== NEVER TAKEN
 200d340:	80 a6 00 01 	cmp  %i0, %g1                                  
 200d344:	c2 05 20 20 	ld  [ %l4 + 0x20 ], %g1                        
 200d348:	80 a6 80 01 	cmp  %i2, %g1                                  
 200d34c:	22 80 00 06 	be,a   200d364 <rtems_bdbuf_get_buffer_for_access+0xf0>
 200d350:	c2 05 20 30 	ld  [ %l4 + 0x30 ], %g1                        
  {                                                                   
    if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))    
 200d354:	38 bf ff dc 	bgu,a   200d2c4 <rtems_bdbuf_get_buffer_for_access+0x50>
 200d358:	e8 05 20 0c 	ld  [ %l4 + 0xc ], %l4                         
    {                                                                 
      p = p->avl.right;                                               
    }                                                                 
    else                                                              
    {                                                                 
      p = p->avl.left;                                                
 200d35c:	10 bf ff da 	b  200d2c4 <rtems_bdbuf_get_buffer_for_access+0x50>
 200d360:	e8 05 20 08 	ld  [ %l4 + 8 ], %l4                           
  {                                                                   
    bd = rtems_bdbuf_avl_search (&bdbuf_cache.tree, dev, block);      
                                                                      
    if (bd != NULL)                                                   
    {                                                                 
      if (bd->group->bds_per_group != bds_per_group)                  
 200d364:	c2 00 60 08 	ld  [ %g1 + 8 ], %g1                           
 200d368:	80 a0 40 1b 	cmp  %g1, %i3                                  
 200d36c:	02 bf ff e1 	be  200d2f0 <rtems_bdbuf_get_buffer_for_access+0x7c>
 200d370:	2b 00 80 2e 	sethi  %hi(0x200b800), %l5                     
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 200d374:	ac 10 20 08 	mov  8, %l6                                    
static bool                                                           
rtems_bdbuf_wait_for_recycle (rtems_bdbuf_buffer *bd)                 
{                                                                     
  while (true)                                                        
  {                                                                   
    switch (bd->state)                                                
 200d378:	c2 05 20 28 	ld  [ %l4 + 0x28 ], %g1                        
 200d37c:	80 a0 60 0a 	cmp  %g1, 0xa                                  
 200d380:	08 80 00 16 	bleu  200d3d8 <rtems_bdbuf_get_buffer_for_access+0x164><== ALWAYS TAKEN
 200d384:	84 15 60 20 	or  %l5, 0x20, %g2                             
      case RTEMS_BDBUF_STATE_TRANSFER:                                
      case RTEMS_BDBUF_STATE_TRANSFER_PURGED:                         
        rtems_bdbuf_wait (bd, &bdbuf_cache.transfer_waiters);         
        break;                                                        
      default:                                                        
        rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_8);
 200d388:	d0 05 20 28 	ld  [ %l4 + 0x28 ], %o0                        <== NOT EXECUTED
 200d38c:	13 10 80 00 	sethi  %hi(0x42000000), %o1                    <== NOT EXECUTED
 200d390:	7f ff f9 62 	call  200b918 <rtems_bdbuf_fatal>              <== NOT EXECUTED
 200d394:	92 12 60 06 	or  %o1, 6, %o1	! 42000006 <RAM_END+0x3fc00006><== NOT EXECUTED
static void                                                           
rtems_bdbuf_wait_for_access (rtems_bdbuf_buffer *bd)                  
{                                                                     
  while (true)                                                        
  {                                                                   
    switch (bd->state)                                                
 200d398:	83 28 60 02 	sll  %g1, 2, %g1                               
 200d39c:	c2 00 80 01 	ld  [ %g2 + %g1 ], %g1                         
 200d3a0:	81 c0 40 00 	jmp  %g1                                       
 200d3a4:	01 00 00 00 	nop                                            
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_group_release (rtems_bdbuf_buffer *bd)                    
{                                                                     
  --bd->group->users;                                                 
 200d3a8:	c2 05 20 30 	ld  [ %l4 + 0x30 ], %g1                        
 200d3ac:	c4 00 60 0c 	ld  [ %g1 + 0xc ], %g2                         
 200d3b0:	84 00 bf ff 	add  %g2, -1, %g2                              
 200d3b4:	c4 20 60 0c 	st  %g2, [ %g1 + 0xc ]                         
 */                                                                   
RTEMS_INLINE_ROUTINE void rtems_chain_extract(                        
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Extract( the_node );                                         
 200d3b8:	7f ff eb c1 	call  20082bc <_Chain_Extract>                 
 200d3bc:	90 10 00 14 	mov  %l4, %o0                                  
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_group_obtain (rtems_bdbuf_buffer *bd)                     
{                                                                     
  ++bd->group->users;                                                 
 200d3c0:	c2 05 20 30 	ld  [ %l4 + 0x30 ], %g1                        
 200d3c4:	c4 00 60 0c 	ld  [ %g1 + 0xc ], %g2                         
 200d3c8:	84 00 a0 01 	inc  %g2                                       
 200d3cc:	c4 20 60 0c 	st  %g2, [ %g1 + 0xc ]                         
                                                                      
  rtems_bdbuf_wait_for_access (bd);                                   
  rtems_bdbuf_group_obtain (bd);                                      
                                                                      
  return bd;                                                          
}                                                                     
 200d3d0:	81 c7 e0 08 	ret                                            
 200d3d4:	91 e8 00 14 	restore  %g0, %l4, %o0                         
static bool                                                           
rtems_bdbuf_wait_for_recycle (rtems_bdbuf_buffer *bd)                 
{                                                                     
  while (true)                                                        
  {                                                                   
    switch (bd->state)                                                
 200d3d8:	83 28 60 02 	sll  %g1, 2, %g1                               
 200d3dc:	c2 00 80 01 	ld  [ %g2 + %g1 ], %g1                         
 200d3e0:	81 c0 40 00 	jmp  %g1                                       
 200d3e4:	01 00 00 00 	nop                                            
 200d3e8:	90 10 00 14 	mov  %l4, %o0                                  <== NOT EXECUTED
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 200d3ec:	ec 25 20 28 	st  %l6, [ %l4 + 0x28 ]                        <== NOT EXECUTED
 200d3f0:	7f ff eb b3 	call  20082bc <_Chain_Extract>                 <== NOT EXECUTED
 200d3f4:	01 00 00 00 	nop                                            <== 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 );                               
 200d3f8:	90 10 00 10 	mov  %l0, %o0                                  <== NOT EXECUTED
 200d3fc:	7f ff eb a5 	call  2008290 <_Chain_Append>                  <== NOT EXECUTED
 200d400:	92 10 00 14 	mov  %l4, %o1                                  <== NOT EXECUTED
rtems_bdbuf_request_sync_for_modified_buffer (rtems_bdbuf_buffer *bd) 
{                                                                     
  rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_SYNC);                 
  rtems_chain_extract (&bd->link);                                    
  rtems_chain_append (&bdbuf_cache.sync, &bd->link);                  
  rtems_bdbuf_wake_swapper ();                                        
 200d404:	7f ff f9 df 	call  200bb80 <rtems_bdbuf_wake_swapper>       <== NOT EXECUTED
 200d408:	01 00 00 00 	nop                                            <== NOT EXECUTED
 200d40c:	30 bf ff db 	b,a   200d378 <rtems_bdbuf_get_buffer_for_access+0x104><== NOT EXECUTED
        }                                                             
      case RTEMS_BDBUF_STATE_ACCESS_CACHED:                           
      case RTEMS_BDBUF_STATE_ACCESS_EMPTY:                            
      case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:                         
      case RTEMS_BDBUF_STATE_ACCESS_PURGED:                           
        rtems_bdbuf_wait (bd, &bdbuf_cache.access_waiters);           
 200d410:	90 10 00 14 	mov  %l4, %o0                                  
 200d414:	7f ff fa 40 	call  200bd14 <rtems_bdbuf_wait>               
 200d418:	92 10 00 11 	mov  %l1, %o1                                  
 200d41c:	30 bf ff d7 	b,a   200d378 <rtems_bdbuf_get_buffer_for_access+0x104>
      case RTEMS_BDBUF_STATE_MODIFIED:                                
        rtems_bdbuf_request_sync_for_modified_buffer (bd);            
        break;                                                        
      case RTEMS_BDBUF_STATE_CACHED:                                  
      case RTEMS_BDBUF_STATE_EMPTY:                                   
        if (bd->waiters == 0)                                         
 200d420:	c2 05 20 2c 	ld  [ %l4 + 0x2c ], %g1                        
 200d424:	80 a0 60 00 	cmp  %g1, 0                                    
 200d428:	32 80 00 16 	bne,a   200d480 <rtems_bdbuf_get_buffer_for_access+0x20c><== ALWAYS TAKEN
 200d42c:	11 00 80 6a 	sethi  %hi(0x201a800), %o0                     
    {                                                                 
      if (bd->group->bds_per_group != bds_per_group)                  
      {                                                               
        if (rtems_bdbuf_wait_for_recycle (bd))                        
        {                                                             
          rtems_bdbuf_remove_from_tree_and_lru_list (bd);             
 200d430:	7f ff fb eb 	call  200c3dc <rtems_bdbuf_remove_from_tree_and_lru_list><== NOT EXECUTED
 200d434:	90 10 00 14 	mov  %l4, %o0                                  <== NOT EXECUTED
 200d438:	90 10 00 1c 	mov  %i4, %o0                                  <== NOT EXECUTED
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 200d43c:	c0 25 20 28 	clr  [ %l4 + 0x28 ]                            <== NOT EXECUTED
 200d440:	40 00 0e 64 	call  2010dd0 <_Chain_Insert>                  <== NOT EXECUTED
 200d444:	92 10 00 14 	mov  %l4, %o1                                  <== NOT EXECUTED
      {                                                               
        if (rtems_bdbuf_wait_for_recycle (bd))                        
        {                                                             
          rtems_bdbuf_remove_from_tree_and_lru_list (bd);             
          rtems_bdbuf_make_free_and_add_to_lru_list (bd);             
          rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);             
 200d448:	7f ff fa 5d 	call  200bdbc <rtems_bdbuf_wake>               <== NOT EXECUTED
 200d44c:	90 07 20 34 	add  %i4, 0x34, %o0                            <== NOT EXECUTED
{                                                                     
  rtems_bdbuf_buffer *bd = NULL;                                      
                                                                      
  do                                                                  
  {                                                                   
    bd = rtems_bdbuf_avl_search (&bdbuf_cache.tree, dev, block);      
 200d450:	10 bf ff 92 	b  200d298 <rtems_bdbuf_get_buffer_for_access+0x24><== NOT EXECUTED
 200d454:	e8 07 60 40 	ld  [ %i5 + 0x40 ], %l4                        <== NOT EXECUTED
        rtems_bdbuf_wait (bd, &bdbuf_cache.access_waiters);           
        break;                                                        
      case RTEMS_BDBUF_STATE_SYNC:                                    
      case RTEMS_BDBUF_STATE_TRANSFER:                                
      case RTEMS_BDBUF_STATE_TRANSFER_PURGED:                         
        rtems_bdbuf_wait (bd, &bdbuf_cache.transfer_waiters);         
 200d458:	90 10 00 14 	mov  %l4, %o0                                  <== NOT EXECUTED
 200d45c:	7f ff fa 2e 	call  200bd14 <rtems_bdbuf_wait>               <== NOT EXECUTED
 200d460:	92 10 00 12 	mov  %l2, %o1                                  <== NOT EXECUTED
 200d464:	30 bf ff c5 	b,a   200d378 <rtems_bdbuf_get_buffer_for_access+0x104><== NOT EXECUTED
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_wait_for_buffer (void)                                    
{                                                                     
  if (!rtems_chain_is_empty (&bdbuf_cache.modified))                  
 200d468:	80 a0 40 13 	cmp  %g1, %l3                                  
 200d46c:	22 80 00 05 	be,a   200d480 <rtems_bdbuf_get_buffer_for_access+0x20c>
 200d470:	11 00 80 6a 	sethi  %hi(0x201a800), %o0                     
    rtems_bdbuf_wake_swapper ();                                      
 200d474:	7f ff f9 c3 	call  200bb80 <rtems_bdbuf_wake_swapper>       
 200d478:	01 00 00 00 	nop                                            
                                                                      
  rtems_bdbuf_anonymous_wait (&bdbuf_cache.buffer_waiters);           
 200d47c:	11 00 80 6a 	sethi  %hi(0x201a800), %o0                     
 200d480:	7f ff fa 05 	call  200bc94 <rtems_bdbuf_anonymous_wait>     
 200d484:	90 12 22 20 	or  %o0, 0x220, %o0	! 201aa20 <bdbuf_cache+0x78>
{                                                                     
  rtems_bdbuf_buffer *bd = NULL;                                      
                                                                      
  do                                                                  
  {                                                                   
    bd = rtems_bdbuf_avl_search (&bdbuf_cache.tree, dev, block);      
 200d488:	10 bf ff 84 	b  200d298 <rtems_bdbuf_get_buffer_for_access+0x24>
 200d48c:	e8 07 60 40 	ld  [ %i5 + 0x40 ], %l4                        
        rtems_bdbuf_wait (bd, &bdbuf_cache.access_waiters);           
        break;                                                        
      case RTEMS_BDBUF_STATE_SYNC:                                    
      case RTEMS_BDBUF_STATE_TRANSFER:                                
      case RTEMS_BDBUF_STATE_TRANSFER_PURGED:                         
        rtems_bdbuf_wait (bd, &bdbuf_cache.transfer_waiters);         
 200d490:	90 10 00 14 	mov  %l4, %o0                                  
 200d494:	7f ff fa 20 	call  200bd14 <rtems_bdbuf_wait>               
 200d498:	92 10 00 1d 	mov  %i5, %o1                                  
 200d49c:	30 bf ff 99 	b,a   200d300 <rtems_bdbuf_get_buffer_for_access+0x8c>
        return;                                                       
      case RTEMS_BDBUF_STATE_ACCESS_CACHED:                           
      case RTEMS_BDBUF_STATE_ACCESS_EMPTY:                            
      case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:                         
      case RTEMS_BDBUF_STATE_ACCESS_PURGED:                           
        rtems_bdbuf_wait (bd, &bdbuf_cache.access_waiters);           
 200d4a0:	90 10 00 14 	mov  %l4, %o0                                  
 200d4a4:	7f ff fa 1c 	call  200bd14 <rtems_bdbuf_wait>               
 200d4a8:	92 10 00 1b 	mov  %i3, %o1                                  
 200d4ac:	30 bf ff 95 	b,a   200d300 <rtems_bdbuf_get_buffer_for_access+0x8c>
                                                                      

0200ce58 <rtems_bdbuf_get_buffer_from_lru_list>: static rtems_bdbuf_buffer * rtems_bdbuf_get_buffer_from_lru_list (dev_t dev, rtems_blkdev_bnum block, size_t bds_per_group) {
 200ce58:	9d e3 bf 20 	save  %sp, -224, %sp                           
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
 200ce5c:	21 00 80 6a 	sethi  %hi(0x201a800), %l0                     
 200ce60:	a0 14 21 a8 	or  %l0, 0x1a8, %l0	! 201a9a8 <bdbuf_cache>    
 200ce64:	fa 04 20 44 	ld  [ %l0 + 0x44 ], %i5                        
  rtems_chain_node *node = rtems_chain_first (&bdbuf_cache.lru);      
                                                                      
  while (!rtems_chain_is_tail (&bdbuf_cache.lru, node))               
 200ce68:	b8 04 20 48 	add  %l0, 0x48, %i4                            
 200ce6c:	80 a7 40 1c 	cmp  %i5, %i4                                  
 200ce70:	02 80 00 3f 	be  200cf6c <rtems_bdbuf_get_buffer_from_lru_list+0x114>
 200ce74:	a2 10 20 00 	clr  %l1                                       
RTEMS_INLINE_ROUTINE void _Chain_Prepend(                             
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  _Chain_Insert(_Chain_Head(the_chain), the_node);                    
 200ce78:	aa 04 20 44 	add  %l0, 0x44, %l5                            
       b < group->bds_per_group;                                      
       b++, bd += bufs_per_bd)                                        
    rtems_bdbuf_make_free_and_add_to_lru_list (bd);                   
                                                                      
  if (b > 1)                                                          
    rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);                   
 200ce7c:	ac 04 20 78 	add  %l0, 0x78, %l6                            
              bd->group->bds_per_group, bds_per_group);               
                                                                      
    /*                                                                
     * If nobody waits for this BD, we may recycle it.                
     */                                                               
    if (bd->waiters == 0)                                             
 200ce80:	c2 07 60 2c 	ld  [ %i5 + 0x2c ], %g1                        
 200ce84:	80 a0 60 00 	cmp  %g1, 0                                    
 200ce88:	32 80 00 36 	bne,a   200cf60 <rtems_bdbuf_get_buffer_from_lru_list+0x108>
 200ce8c:	fa 07 40 00 	ld  [ %i5 ], %i5                               
    {                                                                 
      if (bd->group->bds_per_group == bds_per_group)                  
 200ce90:	e6 07 60 30 	ld  [ %i5 + 0x30 ], %l3                        
 200ce94:	d2 04 e0 08 	ld  [ %l3 + 8 ], %o1                           
 200ce98:	80 a2 40 1b 	cmp  %o1, %i3                                  
 200ce9c:	02 80 00 36 	be  200cf74 <rtems_bdbuf_get_buffer_from_lru_list+0x11c>
 200cea0:	01 00 00 00 	nop                                            
      {                                                               
        rtems_bdbuf_remove_from_tree_and_lru_list (bd);               
                                                                      
        empty_bd = bd;                                                
      }                                                               
      else if (bd->group->users == 0)                                 
 200cea4:	c2 04 e0 0c 	ld  [ %l3 + 0xc ], %g1                         
 200cea8:	80 a0 60 00 	cmp  %g1, 0                                    
 200ceac:	32 80 00 2d 	bne,a   200cf60 <rtems_bdbuf_get_buffer_from_lru_list+0x108>
 200ceb0:	fa 07 40 00 	ld  [ %i5 ], %i5                               
  if (rtems_bdbuf_tracer)                                             
    printf ("bdbuf:realloc: %tu: %zd -> %zd\n",                       
            group - bdbuf_cache.groups, group->bds_per_group,         
            new_bds_per_group);                                       
                                                                      
  bufs_per_bd = bdbuf_cache.max_bds_per_group / group->bds_per_group; 
 200ceb4:	d0 04 20 20 	ld  [ %l0 + 0x20 ], %o0                        
                                                                      
  for (b = 0, bd = group->bdbuf;                                      
 200ceb8:	80 a2 60 00 	cmp  %o1, 0                                    
 200cebc:	02 80 00 0d 	be  200cef0 <rtems_bdbuf_get_buffer_from_lru_list+0x98><== NEVER TAKEN
 200cec0:	e2 04 e0 10 	ld  [ %l3 + 0x10 ], %l1                        
  if (rtems_bdbuf_tracer)                                             
    printf ("bdbuf:realloc: %tu: %zd -> %zd\n",                       
            group - bdbuf_cache.groups, group->bds_per_group,         
            new_bds_per_group);                                       
                                                                      
  bufs_per_bd = bdbuf_cache.max_bds_per_group / group->bds_per_group; 
 200cec4:	40 00 27 ca 	call  2016dec <.udiv>                          
 200cec8:	a4 10 20 00 	clr  %l2                                       
                                                                      
  for (b = 0, bd = group->bdbuf;                                      
 200cecc:	a9 2a 20 06 	sll  %o0, 6, %l4                               
       b < group->bds_per_group;                                      
       b++, bd += bufs_per_bd)                                        
    rtems_bdbuf_remove_from_tree_and_lru_list (bd);                   
 200ced0:	7f ff fd 43 	call  200c3dc <rtems_bdbuf_remove_from_tree_and_lru_list>
 200ced4:	90 10 00 11 	mov  %l1, %o0                                  
            group - bdbuf_cache.groups, group->bds_per_group,         
            new_bds_per_group);                                       
                                                                      
  bufs_per_bd = bdbuf_cache.max_bds_per_group / group->bds_per_group; 
                                                                      
  for (b = 0, bd = group->bdbuf;                                      
 200ced8:	c2 04 e0 08 	ld  [ %l3 + 8 ], %g1                           
       b < group->bds_per_group;                                      
       b++, bd += bufs_per_bd)                                        
 200cedc:	a4 04 a0 01 	inc  %l2                                       
            group - bdbuf_cache.groups, group->bds_per_group,         
            new_bds_per_group);                                       
                                                                      
  bufs_per_bd = bdbuf_cache.max_bds_per_group / group->bds_per_group; 
                                                                      
  for (b = 0, bd = group->bdbuf;                                      
 200cee0:	80 a4 80 01 	cmp  %l2, %g1                                  
 200cee4:	0a bf ff fb 	bcs  200ced0 <rtems_bdbuf_get_buffer_from_lru_list+0x78>
 200cee8:	a2 04 40 14 	add  %l1, %l4, %l1                             
 200ceec:	e2 04 e0 10 	ld  [ %l3 + 0x10 ], %l1                        
       b < group->bds_per_group;                                      
       b++, bd += bufs_per_bd)                                        
    rtems_bdbuf_remove_from_tree_and_lru_list (bd);                   
                                                                      
  group->bds_per_group = new_bds_per_group;                           
 200cef0:	f6 24 e0 08 	st  %i3, [ %l3 + 8 ]                           
  bufs_per_bd = bdbuf_cache.max_bds_per_group / new_bds_per_group;    
                                                                      
  for (b = 1, bd = group->bdbuf + bufs_per_bd;                        
 200cef4:	80 a6 e0 01 	cmp  %i3, 1                                    
 200cef8:	08 80 00 16 	bleu  200cf50 <rtems_bdbuf_get_buffer_from_lru_list+0xf8>
 200cefc:	d0 04 20 20 	ld  [ %l0 + 0x20 ], %o0                        
       b < group->bds_per_group;                                      
       b++, bd += bufs_per_bd)                                        
    rtems_bdbuf_remove_from_tree_and_lru_list (bd);                   
                                                                      
  group->bds_per_group = new_bds_per_group;                           
  bufs_per_bd = bdbuf_cache.max_bds_per_group / new_bds_per_group;    
 200cf00:	92 10 00 1b 	mov  %i3, %o1                                  
 200cf04:	40 00 27 ba 	call  2016dec <.udiv>                          
 200cf08:	a4 10 20 01 	mov  1, %l2                                    
                                                                      
  for (b = 1, bd = group->bdbuf + bufs_per_bd;                        
 200cf0c:	a9 2a 20 06 	sll  %o0, 6, %l4                               
 200cf10:	a2 04 40 14 	add  %l1, %l4, %l1                             
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 200cf14:	c0 24 60 28 	clr  [ %l1 + 0x28 ]                            
 200cf18:	92 10 00 11 	mov  %l1, %o1                                  
 200cf1c:	40 00 0f ad 	call  2010dd0 <_Chain_Insert>                  
 200cf20:	90 10 00 15 	mov  %l5, %o0                                  
    rtems_bdbuf_remove_from_tree_and_lru_list (bd);                   
                                                                      
  group->bds_per_group = new_bds_per_group;                           
  bufs_per_bd = bdbuf_cache.max_bds_per_group / new_bds_per_group;    
                                                                      
  for (b = 1, bd = group->bdbuf + bufs_per_bd;                        
 200cf24:	c2 04 e0 08 	ld  [ %l3 + 8 ], %g1                           
       b < group->bds_per_group;                                      
       b++, bd += bufs_per_bd)                                        
 200cf28:	a4 04 a0 01 	inc  %l2                                       
    rtems_bdbuf_remove_from_tree_and_lru_list (bd);                   
                                                                      
  group->bds_per_group = new_bds_per_group;                           
  bufs_per_bd = bdbuf_cache.max_bds_per_group / new_bds_per_group;    
                                                                      
  for (b = 1, bd = group->bdbuf + bufs_per_bd;                        
 200cf2c:	80 a4 80 01 	cmp  %l2, %g1                                  
 200cf30:	0a bf ff f9 	bcs  200cf14 <rtems_bdbuf_get_buffer_from_lru_list+0xbc><== NEVER TAKEN
 200cf34:	a2 04 40 14 	add  %l1, %l4, %l1                             
       b < group->bds_per_group;                                      
       b++, bd += bufs_per_bd)                                        
    rtems_bdbuf_make_free_and_add_to_lru_list (bd);                   
                                                                      
  if (b > 1)                                                          
 200cf38:	80 a4 a0 01 	cmp  %l2, 1                                    
 200cf3c:	28 80 00 05 	bleu,a   200cf50 <rtems_bdbuf_get_buffer_from_lru_list+0xf8><== NEVER TAKEN
 200cf40:	e2 04 e0 10 	ld  [ %l3 + 0x10 ], %l1                        <== NOT EXECUTED
    rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);                   
 200cf44:	7f ff fb 9e 	call  200bdbc <rtems_bdbuf_wake>               
 200cf48:	90 10 00 16 	mov  %l6, %o0                                  
 200cf4c:	e2 04 e0 10 	ld  [ %l3 + 0x10 ], %l1                        
      }                                                               
      else if (bd->group->users == 0)                                 
        empty_bd = rtems_bdbuf_group_realloc (bd->group, bds_per_group);
    }                                                                 
                                                                      
    if (empty_bd != NULL)                                             
 200cf50:	80 a4 60 00 	cmp  %l1, 0                                    
 200cf54:	32 80 00 0f 	bne,a   200cf90 <rtems_bdbuf_get_buffer_from_lru_list+0x138><== ALWAYS TAKEN
 200cf58:	c0 24 60 08 	clr  [ %l1 + 8 ]                               
rtems_bdbuf_purge_major (rtems_device_major_number major)             
{                                                                     
  dev_t dev = rtems_filesystem_make_dev_t (major, 0);                 
                                                                      
  rtems_bdbuf_purge (rtems_bdbuf_purge_compare_major, dev);           
}                                                                     
 200cf5c:	fa 07 40 00 	ld  [ %i5 ], %i5                               <== NOT EXECUTED
                                      rtems_blkdev_bnum block,        
                                      size_t            bds_per_group)
{                                                                     
  rtems_chain_node *node = rtems_chain_first (&bdbuf_cache.lru);      
                                                                      
  while (!rtems_chain_is_tail (&bdbuf_cache.lru, node))               
 200cf60:	80 a7 40 1c 	cmp  %i5, %i4                                  
 200cf64:	12 bf ff c7 	bne  200ce80 <rtems_bdbuf_get_buffer_from_lru_list+0x28>
 200cf68:	a2 10 20 00 	clr  %l1                                       
                                                                      
    node = rtems_chain_next (node);                                   
  }                                                                   
                                                                      
  return NULL;                                                        
}                                                                     
 200cf6c:	81 c7 e0 08 	ret                                            
 200cf70:	91 e8 00 11 	restore  %g0, %l1, %o0                         
     */                                                               
    if (bd->waiters == 0)                                             
    {                                                                 
      if (bd->group->bds_per_group == bds_per_group)                  
      {                                                               
        rtems_bdbuf_remove_from_tree_and_lru_list (bd);               
 200cf74:	7f ff fd 1a 	call  200c3dc <rtems_bdbuf_remove_from_tree_and_lru_list>
 200cf78:	90 10 00 1d 	mov  %i5, %o0                                  
 200cf7c:	a2 10 00 1d 	mov  %i5, %l1                                  
      }                                                               
      else if (bd->group->users == 0)                                 
        empty_bd = rtems_bdbuf_group_realloc (bd->group, bds_per_group);
    }                                                                 
                                                                      
    if (empty_bd != NULL)                                             
 200cf80:	80 a4 60 00 	cmp  %l1, 0                                    
 200cf84:	22 bf ff f7 	be,a   200cf60 <rtems_bdbuf_get_buffer_from_lru_list+0x108><== NEVER TAKEN
 200cf88:	fa 07 40 00 	ld  [ %i5 ], %i5                               <== NOT EXECUTED
                                dev_t               dev,              
                                rtems_blkdev_bnum   block)            
{                                                                     
  bd->dev       = dev;                                                
  bd->block     = block;                                              
  bd->avl.left  = NULL;                                               
 200cf8c:	c0 24 60 08 	clr  [ %l1 + 8 ]                               
  bd->avl.right = NULL;                                               
 200cf90:	c0 24 60 0c 	clr  [ %l1 + 0xc ]                             
                       rtems_bdbuf_buffer*  node)                     
{                                                                     
  dev_t             dev = node->dev;                                  
  rtems_blkdev_bnum block = node->block;                              
                                                                      
  rtems_bdbuf_buffer*  p = *root;                                     
 200cf94:	c2 04 20 40 	ld  [ %l0 + 0x40 ], %g1                        
static void                                                           
rtems_bdbuf_setup_empty_buffer (rtems_bdbuf_buffer *bd,               
                                dev_t               dev,              
                                rtems_blkdev_bnum   block)            
{                                                                     
  bd->dev       = dev;                                                
 200cf98:	f0 3c 60 18 	std  %i0, [ %l1 + 0x18 ]                       
  bd->block     = block;                                              
 200cf9c:	f4 24 60 20 	st  %i2, [ %l1 + 0x20 ]                        
  bd->avl.left  = NULL;                                               
  bd->avl.right = NULL;                                               
  bd->waiters   = 0;                                                  
 200cfa0:	c0 24 60 2c 	clr  [ %l1 + 0x2c ]                            
  rtems_bdbuf_buffer*  p = *root;                                     
  rtems_bdbuf_buffer*  q;                                             
  rtems_bdbuf_buffer*  p1;                                            
  rtems_bdbuf_buffer*  p2;                                            
  rtems_bdbuf_buffer*  buf_stack[RTEMS_BDBUF_AVL_MAX_HEIGHT];         
  rtems_bdbuf_buffer** buf_prev = buf_stack;                          
 200cfa4:	b6 07 bf 80 	add  %fp, -128, %i3                            
  {                                                                   
    *buf_prev++ = p;                                                  
                                                                      
    if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))    
    {                                                                 
      p->avl.cache = 1;                                               
 200cfa8:	b8 10 20 01 	mov  1, %i4                                    
  rtems_bdbuf_buffer*  p = *root;                                     
  rtems_bdbuf_buffer*  q;                                             
  rtems_bdbuf_buffer*  p1;                                            
  rtems_bdbuf_buffer*  p2;                                            
  rtems_bdbuf_buffer*  buf_stack[RTEMS_BDBUF_AVL_MAX_HEIGHT];         
  rtems_bdbuf_buffer** buf_prev = buf_stack;                          
 200cfac:	84 10 00 1b 	mov  %i3, %g2                                  
                                                                      
  bool modified = false;                                              
                                                                      
  if (p == NULL)                                                      
 200cfb0:	80 a0 60 00 	cmp  %g1, 0                                    
 200cfb4:	02 80 00 a9 	be  200d258 <rtems_bdbuf_get_buffer_from_lru_list+0x400>
 200cfb8:	9e 10 3f ff 	mov  -1, %o7                                   
                                                                      
  while (p != NULL)                                                   
  {                                                                   
    *buf_prev++ = p;                                                  
                                                                      
    if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))    
 200cfbc:	c6 00 60 18 	ld  [ %g1 + 0x18 ], %g3                        
    return 0;                                                         
  }                                                                   
                                                                      
  while (p != NULL)                                                   
  {                                                                   
    *buf_prev++ = p;                                                  
 200cfc0:	c2 20 80 00 	st  %g1, [ %g2 ]                               
 200cfc4:	88 00 a0 04 	add  %g2, 4, %g4                               
                                                                      
    if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))    
 200cfc8:	80 a6 00 03 	cmp  %i0, %g3                                  
 200cfcc:	18 80 00 17 	bgu  200d028 <rtems_bdbuf_get_buffer_from_lru_list+0x1d0><== NEVER TAKEN
 200cfd0:	fa 00 60 1c 	ld  [ %g1 + 0x1c ], %i5                        
 200cfd4:	80 a6 00 03 	cmp  %i0, %g3                                  
 200cfd8:	32 80 00 09 	bne,a   200cffc <rtems_bdbuf_get_buffer_from_lru_list+0x1a4><== NEVER TAKEN
 200cfdc:	c6 00 60 08 	ld  [ %g1 + 8 ], %g3                           <== NOT EXECUTED
 200cfe0:	80 a6 40 1d 	cmp  %i1, %i5                                  
 200cfe4:	38 80 00 12 	bgu,a   200d02c <rtems_bdbuf_get_buffer_from_lru_list+0x1d4><== NEVER TAKEN
 200cfe8:	c6 00 60 0c 	ld  [ %g1 + 0xc ], %g3                         <== NOT EXECUTED
 200cfec:	80 a6 40 1d 	cmp  %i1, %i5                                  
 200cff0:	22 80 00 3f 	be,a   200d0ec <rtems_bdbuf_get_buffer_from_lru_list+0x294><== ALWAYS TAKEN
 200cff4:	c6 00 60 20 	ld  [ %g1 + 0x20 ], %g3                        
      }                                                               
    }                                                                 
    else if ((p->dev != dev) || (p->block != block))                  
    {                                                                 
      p->avl.cache = -1;                                              
      q = p->avl.left;                                                
 200cff8:	c6 00 60 08 	ld  [ %g1 + 8 ], %g3                           <== NOT EXECUTED
      if (q == NULL)                                                  
 200cffc:	80 a0 e0 00 	cmp  %g3, 0                                    
 200d000:	02 80 00 48 	be  200d120 <rtems_bdbuf_get_buffer_from_lru_list+0x2c8>
 200d004:	de 28 60 10 	stb  %o7, [ %g1 + 0x10 ]                       
  rtems_bdbuf_buffer*  buf_stack[RTEMS_BDBUF_AVL_MAX_HEIGHT];         
  rtems_bdbuf_buffer** buf_prev = buf_stack;                          
                                                                      
  bool modified = false;                                              
                                                                      
  if (p == NULL)                                                      
 200d008:	82 10 00 03 	mov  %g3, %g1                                  
                                                                      
  while (p != NULL)                                                   
  {                                                                   
    *buf_prev++ = p;                                                  
                                                                      
    if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))    
 200d00c:	c6 00 60 18 	ld  [ %g1 + 0x18 ], %g3                        
      p->avl.cache = -1;                                              
      q = p->avl.left;                                                
      if (q == NULL)                                                  
      {                                                               
        q = node;                                                     
        p->avl.left = q;                                              
 200d010:	84 10 00 04 	mov  %g4, %g2                                  
    return 0;                                                         
  }                                                                   
                                                                      
  while (p != NULL)                                                   
  {                                                                   
    *buf_prev++ = p;                                                  
 200d014:	c2 20 80 00 	st  %g1, [ %g2 ]                               
 200d018:	88 00 a0 04 	add  %g2, 4, %g4                               
                                                                      
    if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))    
 200d01c:	80 a6 00 03 	cmp  %i0, %g3                                  
 200d020:	08 bf ff ee 	bleu  200cfd8 <rtems_bdbuf_get_buffer_from_lru_list+0x180><== ALWAYS TAKEN
 200d024:	fa 00 60 1c 	ld  [ %g1 + 0x1c ], %i5                        
    {                                                                 
      p->avl.cache = 1;                                               
      q = p->avl.right;                                               
 200d028:	c6 00 60 0c 	ld  [ %g1 + 0xc ], %g3                         <== NOT EXECUTED
      if (q == NULL)                                                  
 200d02c:	80 a0 e0 00 	cmp  %g3, 0                                    
 200d030:	12 bf ff f6 	bne  200d008 <rtems_bdbuf_get_buffer_from_lru_list+0x1b0>
 200d034:	f8 28 60 10 	stb  %i4, [ %g1 + 0x10 ]                       
      {                                                               
        q = node;                                                     
        p->avl.right = q = node;                                      
 200d038:	e2 20 60 0c 	st  %l1, [ %g1 + 0xc ]                         
 200d03c:	88 10 20 01 	mov  1, %g4                                    
    }                                                                 
                                                                      
    p = q;                                                            
  }                                                                   
                                                                      
  q->avl.left = q->avl.right = NULL;                                  
 200d040:	c0 24 60 0c 	clr  [ %l1 + 0xc ]                             
 200d044:	c0 24 60 08 	clr  [ %l1 + 8 ]                               
  q->avl.bal = 0;                                                     
 200d048:	c0 2c 60 11 	clrb  [ %l1 + 0x11 ]                           
 200d04c:	89 29 20 18 	sll  %g4, 0x18, %g4                            
          p->avl.bal = 0;                                             
          modified = false;                                           
          break;                                                      
                                                                      
        case 0:                                                       
          p->avl.bal = 1;                                             
 200d050:	10 80 00 12 	b  200d098 <rtems_bdbuf_get_buffer_from_lru_list+0x240>
 200d054:	b4 10 20 01 	mov  1, %i2                                    
 200d058:	86 10 00 01 	mov  %g1, %g3                                  
 200d05c:	ba 10 20 01 	mov  1, %i5                                    
        default:                                                      
          break;                                                      
      }                                                               
    }                                                                 
    q = p;                                                            
    if (buf_prev > buf_stack)                                         
 200d060:	80 a0 80 1b 	cmp  %g2, %i3                                  
 200d064:	28 80 00 1f 	bleu,a   200d0e0 <rtems_bdbuf_get_buffer_from_lru_list+0x288>
 200d068:	c6 24 20 40 	st  %g3, [ %l0 + 0x40 ]                        
    {                                                                 
      p = *--buf_prev;                                                
 200d06c:	c2 00 bf fc 	ld  [ %g2 + -4 ], %g1                          
                                                                      
      if (p->avl.cache == -1)                                         
 200d070:	c8 08 60 10 	ldub  [ %g1 + 0x10 ], %g4                      
 200d074:	89 29 20 18 	sll  %g4, 0x18, %g4                            
 200d078:	b9 39 20 18 	sra  %g4, 0x18, %i4                            
 200d07c:	80 a7 3f ff 	cmp  %i4, -1                                   
 200d080:	22 80 00 03 	be,a   200d08c <rtems_bdbuf_get_buffer_from_lru_list+0x234>
 200d084:	c6 20 60 08 	st  %g3, [ %g1 + 8 ]                           
      {                                                               
        p->avl.left = q;                                              
      }                                                               
      else                                                            
      {                                                               
        p->avl.right = q;                                             
 200d088:	c6 20 60 0c 	st  %g3, [ %g1 + 0xc ]                         
  q->avl.left = q->avl.right = NULL;                                  
  q->avl.bal = 0;                                                     
  modified = true;                                                    
  buf_prev--;                                                         
                                                                      
  while (modified)                                                    
 200d08c:	80 8f 60 ff 	btst  0xff, %i5                                
 200d090:	02 80 00 14 	be  200d0e0 <rtems_bdbuf_get_buffer_from_lru_list+0x288>
 200d094:	84 00 bf fc 	add  %g2, -4, %g2                              
  {                                                                   
    if (p->avl.cache == -1)                                           
 200d098:	89 39 20 18 	sra  %g4, 0x18, %g4                            
 200d09c:	80 a1 3f ff 	cmp  %g4, -1                                   
 200d0a0:	22 80 00 23 	be,a   200d12c <rtems_bdbuf_get_buffer_from_lru_list+0x2d4>
 200d0a4:	fa 48 60 11 	ldsb  [ %g1 + 0x11 ], %i5                      
          break;                                                      
      }                                                               
    }                                                                 
    else                                                              
    {                                                                 
      switch (p->avl.bal)                                             
 200d0a8:	c6 48 60 11 	ldsb  [ %g1 + 0x11 ], %g3                      
 200d0ac:	80 a0 e0 00 	cmp  %g3, 0                                    
 200d0b0:	22 bf ff ea 	be,a   200d058 <rtems_bdbuf_get_buffer_from_lru_list+0x200>
 200d0b4:	f4 28 60 11 	stb  %i2, [ %g1 + 0x11 ]                       
 200d0b8:	80 a0 e0 01 	cmp  %g3, 1                                    
 200d0bc:	02 80 00 23 	be  200d148 <rtems_bdbuf_get_buffer_from_lru_list+0x2f0>
 200d0c0:	80 a0 ff ff 	cmp  %g3, -1                                   
 200d0c4:	22 80 00 14 	be,a   200d114 <rtems_bdbuf_get_buffer_from_lru_list+0x2bc><== ALWAYS TAKEN
 200d0c8:	c0 28 60 11 	clrb  [ %g1 + 0x11 ]                           
 200d0cc:	86 10 00 01 	mov  %g1, %g3                                  <== NOT EXECUTED
        default:                                                      
          break;                                                      
      }                                                               
    }                                                                 
    q = p;                                                            
    if (buf_prev > buf_stack)                                         
 200d0d0:	80 a0 80 1b 	cmp  %g2, %i3                                  <== NOT EXECUTED
 200d0d4:	18 bf ff e6 	bgu  200d06c <rtems_bdbuf_get_buffer_from_lru_list+0x214><== NOT EXECUTED
 200d0d8:	ba 10 20 01 	mov  1, %i5                                    <== NOT EXECUTED
        p->avl.right = q;                                             
      }                                                               
    }                                                                 
    else                                                              
    {                                                                 
      *root = p;                                                      
 200d0dc:	c6 24 20 40 	st  %g3, [ %l0 + 0x40 ]                        <== NOT EXECUTED
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 200d0e0:	82 10 20 01 	mov  1, %g1                                    
 200d0e4:	c2 24 60 28 	st  %g1, [ %l1 + 0x28 ]                        
                                                                      
    if (empty_bd != NULL)                                             
    {                                                                 
      rtems_bdbuf_setup_empty_buffer (empty_bd, dev, block);          
                                                                      
      return empty_bd;                                                
 200d0e8:	30 bf ff a1 	b,a   200cf6c <rtems_bdbuf_get_buffer_from_lru_list+0x114>
                                                                      
  while (p != NULL)                                                   
  {                                                                   
    *buf_prev++ = p;                                                  
                                                                      
    if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))    
 200d0ec:	80 a6 80 03 	cmp  %i2, %g3                                  
 200d0f0:	38 bf ff cf 	bgu,a   200d02c <rtems_bdbuf_get_buffer_from_lru_list+0x1d4>
 200d0f4:	c6 00 60 0c 	ld  [ %g1 + 0xc ], %g3                         
        q = node;                                                     
        p->avl.right = q = node;                                      
        break;                                                        
      }                                                               
    }                                                                 
    else if ((p->dev != dev) || (p->block != block))                  
 200d0f8:	80 a6 80 03 	cmp  %i2, %g3                                  
 200d0fc:	32 bf ff c0 	bne,a   200cffc <rtems_bdbuf_get_buffer_from_lru_list+0x1a4><== ALWAYS TAKEN
 200d100:	c6 00 60 08 	ld  [ %g1 + 8 ], %g3                           
  bd->avl.left  = NULL;                                               
  bd->avl.right = NULL;                                               
  bd->waiters   = 0;                                                  
                                                                      
  if (rtems_bdbuf_avl_insert (&bdbuf_cache.tree, bd) != 0)            
    rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_RECYCLE);    
 200d104:	11 10 80 00 	sethi  %hi(0x42000000), %o0                    <== NOT EXECUTED
 200d108:	7f ff ea f0 	call  2007cc8 <rtems_fatal_error_occurred>     <== NOT EXECUTED
 200d10c:	90 12 20 1b 	or  %o0, 0x1b, %o0	! 4200001b <RAM_END+0x3fc0001b><== NOT EXECUTED
    else                                                              
    {                                                                 
      switch (p->avl.bal)                                             
      {                                                               
        case -1:                                                      
          p->avl.bal = 0;                                             
 200d110:	c0 28 60 11 	clrb  [ %g1 + 0x11 ]                           <== NOT EXECUTED
 200d114:	86 10 00 01 	mov  %g1, %g3                                  
          modified = false;                                           
 200d118:	10 bf ff d2 	b  200d060 <rtems_bdbuf_get_buffer_from_lru_list+0x208>
 200d11c:	ba 10 20 00 	clr  %i5                                       
      p->avl.cache = -1;                                              
      q = p->avl.left;                                                
      if (q == NULL)                                                  
      {                                                               
        q = node;                                                     
        p->avl.left = q;                                              
 200d120:	e2 20 60 08 	st  %l1, [ %g1 + 8 ]                           
 200d124:	10 bf ff c7 	b  200d040 <rtems_bdbuf_get_buffer_from_lru_list+0x1e8>
 200d128:	88 10 3f ff 	mov  -1, %g4                                   
                                                                      
  while (modified)                                                    
  {                                                                   
    if (p->avl.cache == -1)                                           
    {                                                                 
      switch (p->avl.bal)                                             
 200d12c:	80 a7 60 00 	cmp  %i5, 0                                    
 200d130:	12 80 00 21 	bne  200d1b4 <rtems_bdbuf_get_buffer_from_lru_list+0x35c>
 200d134:	80 a7 60 01 	cmp  %i5, 1                                    
          p->avl.bal = 0;                                             
          modified = false;                                           
          break;                                                      
                                                                      
        case 0:                                                       
          p->avl.bal = -1;                                            
 200d138:	c8 28 60 11 	stb  %g4, [ %g1 + 0x11 ]                       
 200d13c:	86 10 00 01 	mov  %g1, %g3                                  
 200d140:	10 bf ff c8 	b  200d060 <rtems_bdbuf_get_buffer_from_lru_list+0x208>
 200d144:	ba 10 20 01 	mov  1, %i5                                    
        case 0:                                                       
          p->avl.bal = 1;                                             
          break;                                                      
                                                                      
        case 1:                                                       
          p1 = p->avl.right;                                          
 200d148:	c8 00 60 0c 	ld  [ %g1 + 0xc ], %g4                         
          if (p1->avl.bal == 1) /* simple RR-turn */                  
 200d14c:	c6 49 20 11 	ldsb  [ %g4 + 0x11 ], %g3                      
 200d150:	80 a0 e0 01 	cmp  %g3, 1                                    
 200d154:	02 80 00 33 	be  200d220 <rtems_bdbuf_get_buffer_from_lru_list+0x3c8><== ALWAYS TAKEN
 200d158:	c6 01 20 08 	ld  [ %g4 + 8 ], %g3                           
            p2 = p1->avl.left;                                        
            p1->avl.left = p2->avl.right;                             
            p2->avl.right = p1;                                       
            p->avl.right = p2->avl.left;                              
            p2->avl.left = p;                                         
            if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
 200d15c:	fa 48 e0 11 	ldsb  [ %g3 + 0x11 ], %i5                      <== NOT EXECUTED
            p = p1;                                                   
          }                                                           
          else /* double RL-turn */                                   
          {                                                           
            p2 = p1->avl.left;                                        
            p1->avl.left = p2->avl.right;                             
 200d160:	f8 00 e0 0c 	ld  [ %g3 + 0xc ], %i4                         <== NOT EXECUTED
            p2->avl.right = p1;                                       
            p->avl.right = p2->avl.left;                              
            p2->avl.left = p;                                         
            if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
 200d164:	ba 1f 60 01 	xor  %i5, 1, %i5                               <== NOT EXECUTED
            p = p1;                                                   
          }                                                           
          else /* double RL-turn */                                   
          {                                                           
            p2 = p1->avl.left;                                        
            p1->avl.left = p2->avl.right;                             
 200d168:	f8 21 20 08 	st  %i4, [ %g4 + 8 ]                           <== NOT EXECUTED
            p2->avl.right = p1;                                       
            p->avl.right = p2->avl.left;                              
            p2->avl.left = p;                                         
            if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
 200d16c:	80 a0 00 1d 	cmp  %g0, %i5                                  <== NOT EXECUTED
          else /* double RL-turn */                                   
          {                                                           
            p2 = p1->avl.left;                                        
            p1->avl.left = p2->avl.right;                             
            p2->avl.right = p1;                                       
            p->avl.right = p2->avl.left;                              
 200d170:	f8 00 e0 08 	ld  [ %g3 + 8 ], %i4                           <== NOT EXECUTED
            p2->avl.left = p;                                         
            if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
 200d174:	ba 40 3f ff 	addx  %g0, -1, %i5                             <== NOT EXECUTED
          }                                                           
          else /* double RL-turn */                                   
          {                                                           
            p2 = p1->avl.left;                                        
            p1->avl.left = p2->avl.right;                             
            p2->avl.right = p1;                                       
 200d178:	c8 20 e0 0c 	st  %g4, [ %g3 + 0xc ]                         <== NOT EXECUTED
            p->avl.right = p2->avl.left;                              
            p2->avl.left = p;                                         
            if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
 200d17c:	fa 28 60 11 	stb  %i5, [ %g1 + 0x11 ]                       <== NOT EXECUTED
            if (p2->avl.bal == -1) p1->avl.bal = +1; else p1->avl.bal = 0;
 200d180:	fa 48 e0 11 	ldsb  [ %g3 + 0x11 ], %i5                      <== NOT EXECUTED
          else /* double RL-turn */                                   
          {                                                           
            p2 = p1->avl.left;                                        
            p1->avl.left = p2->avl.right;                             
            p2->avl.right = p1;                                       
            p->avl.right = p2->avl.left;                              
 200d184:	f8 20 60 0c 	st  %i4, [ %g1 + 0xc ]                         <== NOT EXECUTED
            p2->avl.left = p;                                         
            if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
            if (p2->avl.bal == -1) p1->avl.bal = +1; else p1->avl.bal = 0;
 200d188:	80 a7 7f ff 	cmp  %i5, -1                                   <== NOT EXECUTED
 200d18c:	02 80 00 06 	be  200d1a4 <rtems_bdbuf_get_buffer_from_lru_list+0x34c><== NOT EXECUTED
 200d190:	c2 20 e0 08 	st  %g1, [ %g3 + 8 ]                           <== NOT EXECUTED
 200d194:	c0 29 20 11 	clrb  [ %g4 + 0x11 ]                           
            p = p2;                                                   
          }                                                           
          p->avl.bal = 0;                                             
 200d198:	c0 28 e0 11 	clrb  [ %g3 + 0x11 ]                           
          modified = false;                                           
 200d19c:	10 bf ff b1 	b  200d060 <rtems_bdbuf_get_buffer_from_lru_list+0x208>
 200d1a0:	ba 10 20 00 	clr  %i5                                       
            p1->avl.left = p2->avl.right;                             
            p2->avl.right = p1;                                       
            p->avl.right = p2->avl.left;                              
            p2->avl.left = p;                                         
            if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
            if (p2->avl.bal == -1) p1->avl.bal = +1; else p1->avl.bal = 0;
 200d1a4:	f4 29 20 11 	stb  %i2, [ %g4 + 0x11 ]                       <== NOT EXECUTED
            p = p2;                                                   
          }                                                           
          p->avl.bal = 0;                                             
 200d1a8:	c0 28 e0 11 	clrb  [ %g3 + 0x11 ]                           <== NOT EXECUTED
          modified = false;                                           
 200d1ac:	10 bf ff ad 	b  200d060 <rtems_bdbuf_get_buffer_from_lru_list+0x208><== NOT EXECUTED
 200d1b0:	ba 10 20 00 	clr  %i5                                       <== NOT EXECUTED
                                                                      
  while (modified)                                                    
  {                                                                   
    if (p->avl.cache == -1)                                           
    {                                                                 
      switch (p->avl.bal)                                             
 200d1b4:	02 bf ff d7 	be  200d110 <rtems_bdbuf_get_buffer_from_lru_list+0x2b8><== NEVER TAKEN
 200d1b8:	80 a7 7f ff 	cmp  %i5, -1                                   
 200d1bc:	32 bf ff c5 	bne,a   200d0d0 <rtems_bdbuf_get_buffer_from_lru_list+0x278><== NEVER TAKEN
 200d1c0:	86 10 00 01 	mov  %g1, %g3                                  <== NOT EXECUTED
        case 0:                                                       
          p->avl.bal = -1;                                            
          break;                                                      
                                                                      
        case -1:                                                      
          p1 = p->avl.left;                                           
 200d1c4:	c8 00 60 08 	ld  [ %g1 + 8 ], %g4                           
          if (p1->avl.bal == -1) /* simple LL-turn */                 
 200d1c8:	c6 49 20 11 	ldsb  [ %g4 + 0x11 ], %g3                      
 200d1cc:	80 a0 ff ff 	cmp  %g3, -1                                   
 200d1d0:	02 80 00 1b 	be  200d23c <rtems_bdbuf_get_buffer_from_lru_list+0x3e4><== NEVER TAKEN
 200d1d4:	c6 01 20 0c 	ld  [ %g4 + 0xc ], %g3                         
            p2 = p1->avl.right;                                       
            p1->avl.right = p2->avl.left;                             
            p2->avl.left = p1;                                        
            p->avl.left = p2->avl.right;                              
            p2->avl.right = p;                                        
            if (p2->avl.bal == -1) p->avl.bal = +1; else p->avl.bal = 0;
 200d1d8:	f8 48 e0 11 	ldsb  [ %g3 + 0x11 ], %i4                      
            p = p1;                                                   
          }                                                           
          else /* double LR-turn */                                   
          {                                                           
            p2 = p1->avl.right;                                       
            p1->avl.right = p2->avl.left;                             
 200d1dc:	f2 00 e0 08 	ld  [ %g3 + 8 ], %i1                           
            p2->avl.left = p1;                                        
            p->avl.left = p2->avl.right;                              
            p2->avl.right = p;                                        
            if (p2->avl.bal == -1) p->avl.bal = +1; else p->avl.bal = 0;
 200d1e0:	b8 38 00 1c 	xnor  %g0, %i4, %i4                            
            p = p1;                                                   
          }                                                           
          else /* double LR-turn */                                   
          {                                                           
            p2 = p1->avl.right;                                       
            p1->avl.right = p2->avl.left;                             
 200d1e4:	f2 21 20 0c 	st  %i1, [ %g4 + 0xc ]                         
            p2->avl.left = p1;                                        
            p->avl.left = p2->avl.right;                              
            p2->avl.right = p;                                        
            if (p2->avl.bal == -1) p->avl.bal = +1; else p->avl.bal = 0;
 200d1e8:	80 a0 00 1c 	cmp  %g0, %i4                                  
          else /* double LR-turn */                                   
          {                                                           
            p2 = p1->avl.right;                                       
            p1->avl.right = p2->avl.left;                             
            p2->avl.left = p1;                                        
            p->avl.left = p2->avl.right;                              
 200d1ec:	f2 00 e0 0c 	ld  [ %g3 + 0xc ], %i1                         
            p2->avl.right = p;                                        
            if (p2->avl.bal == -1) p->avl.bal = +1; else p->avl.bal = 0;
 200d1f0:	b8 60 3f ff 	subx  %g0, -1, %i4                             
          }                                                           
          else /* double LR-turn */                                   
          {                                                           
            p2 = p1->avl.right;                                       
            p1->avl.right = p2->avl.left;                             
            p2->avl.left = p1;                                        
 200d1f4:	c8 20 e0 08 	st  %g4, [ %g3 + 8 ]                           
            p->avl.left = p2->avl.right;                              
            p2->avl.right = p;                                        
            if (p2->avl.bal == -1) p->avl.bal = +1; else p->avl.bal = 0;
 200d1f8:	f8 28 60 11 	stb  %i4, [ %g1 + 0x11 ]                       
            if (p2->avl.bal == +1) p1->avl.bal = -1; else p1->avl.bal = 0;
 200d1fc:	f8 48 e0 11 	ldsb  [ %g3 + 0x11 ], %i4                      
          else /* double LR-turn */                                   
          {                                                           
            p2 = p1->avl.right;                                       
            p1->avl.right = p2->avl.left;                             
            p2->avl.left = p1;                                        
            p->avl.left = p2->avl.right;                              
 200d200:	f2 20 60 08 	st  %i1, [ %g1 + 8 ]                           
            p2->avl.right = p;                                        
            if (p2->avl.bal == -1) p->avl.bal = +1; else p->avl.bal = 0;
            if (p2->avl.bal == +1) p1->avl.bal = -1; else p1->avl.bal = 0;
 200d204:	80 a7 20 01 	cmp  %i4, 1                                    
 200d208:	12 bf ff e3 	bne  200d194 <rtems_bdbuf_get_buffer_from_lru_list+0x33c><== ALWAYS TAKEN
 200d20c:	c2 20 e0 0c 	st  %g1, [ %g3 + 0xc ]                         
 200d210:	fa 29 20 11 	stb  %i5, [ %g4 + 0x11 ]                       <== NOT EXECUTED
            p2->avl.left = p;                                         
            if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
            if (p2->avl.bal == -1) p1->avl.bal = +1; else p1->avl.bal = 0;
            p = p2;                                                   
          }                                                           
          p->avl.bal = 0;                                             
 200d214:	c0 28 e0 11 	clrb  [ %g3 + 0x11 ]                           <== NOT EXECUTED
          modified = false;                                           
 200d218:	10 bf ff 92 	b  200d060 <rtems_bdbuf_get_buffer_from_lru_list+0x208><== NOT EXECUTED
 200d21c:	ba 10 20 00 	clr  %i5                                       <== NOT EXECUTED
                                                                      
        case 1:                                                       
          p1 = p->avl.right;                                          
          if (p1->avl.bal == 1) /* simple RR-turn */                  
          {                                                           
            p->avl.right = p1->avl.left;                              
 200d220:	c6 20 60 0c 	st  %g3, [ %g1 + 0xc ]                         
            p1->avl.left = p;                                         
            p->avl.bal = 0;                                           
 200d224:	c0 28 60 11 	clrb  [ %g1 + 0x11 ]                           
        case 1:                                                       
          p1 = p->avl.right;                                          
          if (p1->avl.bal == 1) /* simple RR-turn */                  
          {                                                           
            p->avl.right = p1->avl.left;                              
            p1->avl.left = p;                                         
 200d228:	c2 21 20 08 	st  %g1, [ %g4 + 8 ]                           
            p->avl.bal = 0;                                           
 200d22c:	86 10 00 04 	mov  %g4, %g3                                  
            if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
            if (p2->avl.bal == -1) p1->avl.bal = +1; else p1->avl.bal = 0;
            p = p2;                                                   
          }                                                           
          p->avl.bal = 0;                                             
          modified = false;                                           
 200d230:	ba 10 20 00 	clr  %i5                                       
            p2->avl.left = p;                                         
            if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
            if (p2->avl.bal == -1) p1->avl.bal = +1; else p1->avl.bal = 0;
            p = p2;                                                   
          }                                                           
          p->avl.bal = 0;                                             
 200d234:	10 bf ff 8b 	b  200d060 <rtems_bdbuf_get_buffer_from_lru_list+0x208>
 200d238:	c0 28 e0 11 	clrb  [ %g3 + 0x11 ]                           
                                                                      
        case -1:                                                      
          p1 = p->avl.left;                                           
          if (p1->avl.bal == -1) /* simple LL-turn */                 
          {                                                           
            p->avl.left = p1->avl.right;                              
 200d23c:	c6 20 60 08 	st  %g3, [ %g1 + 8 ]                           <== NOT EXECUTED
            p1->avl.right = p;                                        
            p->avl.bal = 0;                                           
 200d240:	c0 28 60 11 	clrb  [ %g1 + 0x11 ]                           <== NOT EXECUTED
        case -1:                                                      
          p1 = p->avl.left;                                           
          if (p1->avl.bal == -1) /* simple LL-turn */                 
          {                                                           
            p->avl.left = p1->avl.right;                              
            p1->avl.right = p;                                        
 200d244:	c2 21 20 0c 	st  %g1, [ %g4 + 0xc ]                         <== NOT EXECUTED
            p->avl.bal = 0;                                           
 200d248:	86 10 00 04 	mov  %g4, %g3                                  <== NOT EXECUTED
            if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
            if (p2->avl.bal == -1) p1->avl.bal = +1; else p1->avl.bal = 0;
            p = p2;                                                   
          }                                                           
          p->avl.bal = 0;                                             
          modified = false;                                           
 200d24c:	ba 10 20 00 	clr  %i5                                       <== NOT EXECUTED
            p2->avl.left = p;                                         
            if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
            if (p2->avl.bal == -1) p1->avl.bal = +1; else p1->avl.bal = 0;
            p = p2;                                                   
          }                                                           
          p->avl.bal = 0;                                             
 200d250:	10 bf ff 84 	b  200d060 <rtems_bdbuf_get_buffer_from_lru_list+0x208><== NOT EXECUTED
 200d254:	c0 28 e0 11 	clrb  [ %g3 + 0x11 ]                           <== NOT EXECUTED
                                                                      
  bool modified = false;                                              
                                                                      
  if (p == NULL)                                                      
  {                                                                   
    *root = node;                                                     
 200d258:	e2 24 20 40 	st  %l1, [ %l0 + 0x40 ]                        
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 200d25c:	82 10 20 01 	mov  1, %g1                                    
  bool modified = false;                                              
                                                                      
  if (p == NULL)                                                      
  {                                                                   
    *root = node;                                                     
    node->avl.left = NULL;                                            
 200d260:	c0 24 60 08 	clr  [ %l1 + 8 ]                               
    node->avl.right = NULL;                                           
 200d264:	c0 24 60 0c 	clr  [ %l1 + 0xc ]                             
    node->avl.bal = 0;                                                
 200d268:	c0 2c 60 11 	clrb  [ %l1 + 0x11 ]                           
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 200d26c:	c2 24 60 28 	st  %g1, [ %l1 + 0x28 ]                        
 200d270:	30 bf ff 3f 	b,a   200cf6c <rtems_bdbuf_get_buffer_from_lru_list+0x114>
                                                                      

0200d4b0 <rtems_bdbuf_init>: * * @return rtems_status_code The initialisation status. */ rtems_status_code rtems_bdbuf_init (void) {
 200d4b0:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_mode          prev_mode;                                      
                                                                      
  if (rtems_bdbuf_tracer)                                             
    printf ("bdbuf:init\n");                                          
                                                                      
  if (rtems_interrupt_is_in_progress())                               
 200d4b4:	03 00 80 6c 	sethi  %hi(0x201b000), %g1                     
 200d4b8:	c2 00 62 b0 	ld  [ %g1 + 0x2b0 ], %g1	! 201b2b0 <_Per_CPU_Information+0x8>
 200d4bc:	80 a0 60 00 	cmp  %g1, 0                                    
 200d4c0:	12 80 00 16 	bne  200d518 <rtems_bdbuf_init+0x68>           <== NEVER TAKEN
 200d4c4:	b0 10 20 12 	mov  0x12, %i0                                 
    return RTEMS_CALLED_FROM_ISR;                                     
                                                                      
  /*                                                                  
   * Check the configuration table values.                            
   */                                                                 
  if ((bdbuf_config.buffer_max % bdbuf_config.buffer_min) != 0)       
 200d4c8:	33 00 80 63 	sethi  %hi(0x2018c00), %i1                     
 200d4cc:	b2 16 63 48 	or  %i1, 0x348, %i1	! 2018f48 <rtems_bdbuf_configuration>
 200d4d0:	f8 06 60 24 	ld  [ %i1 + 0x24 ], %i4                        
 200d4d4:	e0 06 60 20 	ld  [ %i1 + 0x20 ], %l0                        
 200d4d8:	90 10 00 1c 	mov  %i4, %o0                                  
 200d4dc:	92 10 00 10 	mov  %l0, %o1                                  
 200d4e0:	40 00 26 ef 	call  201709c <.urem>                          
 200d4e4:	b0 10 20 0a 	mov  0xa, %i0                                  
 200d4e8:	80 a2 20 00 	cmp  %o0, 0                                    
 200d4ec:	12 80 00 ed 	bne  200d8a0 <rtems_bdbuf_init+0x3f0>          <== NEVER TAKEN
 200d4f0:	01 00 00 00 	nop                                            
  /*                                                                  
   * We use a special variable to manage the initialisation incase we have
   * completing threads doing this. You may get errors if the another thread
   * makes a call and we have not finished initialisation.            
   */                                                                 
  prev_mode = rtems_bdbuf_disable_preemption ();                      
 200d4f4:	7f ff f9 ca 	call  200bc1c <rtems_bdbuf_disable_preemption> 
 200d4f8:	35 00 80 6a 	sethi  %hi(0x201a800), %i2                     
  if (bdbuf_cache.initialised)                                        
 200d4fc:	b6 16 a1 a8 	or  %i2, 0x1a8, %i3	! 201a9a8 <bdbuf_cache>    
 200d500:	c2 0e e0 88 	ldub  [ %i3 + 0x88 ], %g1                      
 200d504:	80 a0 60 00 	cmp  %g1, 0                                    
 200d508:	02 80 00 06 	be  200d520 <rtems_bdbuf_init+0x70>            <== ALWAYS TAKEN
 200d50c:	ba 10 00 08 	mov  %o0, %i5                                  
  {                                                                   
    rtems_bdbuf_restore_preemption (prev_mode);                       
 200d510:	7f ff f9 d2 	call  200bc58 <rtems_bdbuf_restore_preemption> <== NOT EXECUTED
 200d514:	b0 10 20 0c 	mov  0xc, %i0                                  <== NOT EXECUTED
    return RTEMS_RESOURCE_IN_USE;                                     
 200d518:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200d51c:	81 e8 00 00 	restore                                        <== NOT EXECUTED
  }                                                                   
                                                                      
  memset(&bdbuf_cache, 0, sizeof(bdbuf_cache));                       
 200d520:	92 10 20 00 	clr  %o1                                       
 200d524:	94 10 20 90 	mov  0x90, %o2                                 
 200d528:	40 00 1b 32 	call  20141f0 <memset>                         
 200d52c:	90 10 00 1b 	mov  %i3, %o0                                  
  bdbuf_cache.initialised = true;                                     
 200d530:	82 10 20 01 	mov  1, %g1                                    
  rtems_bdbuf_restore_preemption (prev_mode);                         
 200d534:	90 10 00 1d 	mov  %i5, %o0                                  
 200d538:	7f ff f9 c8 	call  200bc58 <rtems_bdbuf_restore_preemption> 
 200d53c:	c2 2e e0 88 	stb  %g1, [ %i3 + 0x88 ]                       
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 200d540:	82 06 e0 0c 	add  %i3, 0xc, %g1                             
   */                                                                 
  cache_aligment = 32; /* FIXME rtems_cache_get_data_line_size() */   
  if (cache_aligment <= 0)                                            
    cache_aligment = CPU_ALIGNMENT;                                   
                                                                      
  bdbuf_cache.sync_device = BDBUF_INVALID_DEV;                        
 200d544:	05 3f ff ff 	sethi  %hi(0xfffffc00), %g2                    
 200d548:	c2 26 e0 08 	st  %g1, [ %i3 + 8 ]                           
 200d54c:	84 10 a3 ff 	or  %g2, 0x3ff, %g2                            
 200d550:	82 06 e0 48 	add  %i3, 0x48, %g1                            
 200d554:	86 10 00 02 	mov  %g2, %g3                                  
 200d558:	c2 26 e0 44 	st  %g1, [ %i3 + 0x44 ]                        
 200d55c:	c4 3e e0 38 	std  %g2, [ %i3 + 0x38 ]                       
 200d560:	82 06 e0 54 	add  %i3, 0x54, %g1                            
  head->previous = NULL;                                              
  tail->previous = head;                                              
 200d564:	84 06 e0 08 	add  %i3, 8, %g2                               
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 200d568:	c2 26 e0 50 	st  %g1, [ %i3 + 0x50 ]                        
  head->previous = NULL;                                              
  tail->previous = head;                                              
 200d56c:	c4 26 e0 10 	st  %g2, [ %i3 + 0x10 ]                        
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 200d570:	82 06 e0 60 	add  %i3, 0x60, %g1                            
  head->previous = NULL;                                              
  tail->previous = head;                                              
 200d574:	84 06 e0 44 	add  %i3, 0x44, %g2                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 200d578:	c2 26 e0 5c 	st  %g1, [ %i3 + 0x5c ]                        
  head->previous = NULL;                                              
  tail->previous = head;                                              
 200d57c:	c4 26 e0 4c 	st  %g2, [ %i3 + 0x4c ]                        
 200d580:	82 06 e0 5c 	add  %i3, 0x5c, %g1                            
 200d584:	84 06 e0 50 	add  %i3, 0x50, %g2                            
  rtems_chain_initialize_empty (&bdbuf_cache.sync);                   
                                                                      
  /*                                                                  
   * Create the locks for the cache.                                  
   */                                                                 
  sc = rtems_semaphore_create (rtems_build_name ('B', 'D', 'C', 'l'), 
 200d588:	3b 10 91 10 	sethi  %hi(0x42444000), %i5                    
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
 200d58c:	c0 26 e0 0c 	clr  [ %i3 + 0xc ]                             
 200d590:	c0 26 e0 48 	clr  [ %i3 + 0x48 ]                            
 200d594:	c0 26 e0 54 	clr  [ %i3 + 0x54 ]                            
  tail->previous = head;                                              
 200d598:	c4 26 e0 58 	st  %g2, [ %i3 + 0x58 ]                        
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
 200d59c:	c0 26 e0 60 	clr  [ %i3 + 0x60 ]                            
 200d5a0:	90 17 63 6c 	or  %i5, 0x36c, %o0                            
  tail->previous = head;                                              
 200d5a4:	c2 26 e0 64 	st  %g1, [ %i3 + 0x64 ]                        
 200d5a8:	92 10 20 01 	mov  1, %o1                                    
 200d5ac:	94 10 20 54 	mov  0x54, %o2                                 
 200d5b0:	96 10 20 00 	clr  %o3                                       
 200d5b4:	7f ff e7 84 	call  20073c4 <rtems_semaphore_create>         
 200d5b8:	98 06 e0 28 	add  %i3, 0x28, %o4                            
                               1, RTEMS_BDBUF_CACHE_LOCK_ATTRIBS, 0,  
                               &bdbuf_cache.lock);                    
  if (sc != RTEMS_SUCCESSFUL)                                         
 200d5bc:	80 a2 20 00 	cmp  %o0, 0                                    
 200d5c0:	02 80 00 25 	be  200d654 <rtems_bdbuf_init+0x1a4>           <== ALWAYS TAKEN
 200d5c4:	01 00 00 00 	nop                                            
                                                                      
  return RTEMS_SUCCESSFUL;                                            
                                                                      
error:                                                                
                                                                      
  if (bdbuf_cache.swapout != 0)                                       
 200d5c8:	d0 06 a1 a8 	ld  [ %i2 + 0x1a8 ], %o0                       <== NOT EXECUTED
 200d5cc:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
 200d5d0:	12 80 00 1e 	bne  200d648 <rtems_bdbuf_init+0x198>          <== NOT EXECUTED
 200d5d4:	01 00 00 00 	nop                                            <== NOT EXECUTED
    rtems_task_delete (bdbuf_cache.swapout);                          
                                                                      
  free (bdbuf_cache.buffers);                                         
 200d5d8:	7f ff d9 1a 	call  2003a40 <free>                           <== NOT EXECUTED
 200d5dc:	d0 06 e0 18 	ld  [ %i3 + 0x18 ], %o0                        <== NOT EXECUTED
  free (bdbuf_cache.groups);                                          
 200d5e0:	7f ff d9 18 	call  2003a40 <free>                           <== NOT EXECUTED
 200d5e4:	d0 06 e0 84 	ld  [ %i3 + 0x84 ], %o0                        <== NOT EXECUTED
  free (bdbuf_cache.bds);                                             
 200d5e8:	7f ff d9 16 	call  2003a40 <free>                           <== NOT EXECUTED
 200d5ec:	d0 06 e0 14 	ld  [ %i3 + 0x14 ], %o0                        <== NOT EXECUTED
                                                                      
  rtems_semaphore_delete (bdbuf_cache.buffer_waiters.sema);           
 200d5f0:	7f ff e7 e5 	call  2007584 <rtems_semaphore_delete>         <== NOT EXECUTED
 200d5f4:	d0 06 e0 7c 	ld  [ %i3 + 0x7c ], %o0                        <== NOT EXECUTED
  rtems_semaphore_delete (bdbuf_cache.access_waiters.sema);           
 200d5f8:	7f ff e7 e3 	call  2007584 <rtems_semaphore_delete>         <== NOT EXECUTED
 200d5fc:	d0 06 e0 6c 	ld  [ %i3 + 0x6c ], %o0                        <== NOT EXECUTED
  rtems_semaphore_delete (bdbuf_cache.transfer_waiters.sema);         
 200d600:	7f ff e7 e1 	call  2007584 <rtems_semaphore_delete>         <== NOT EXECUTED
 200d604:	d0 06 e0 74 	ld  [ %i3 + 0x74 ], %o0                        <== NOT EXECUTED
  rtems_semaphore_delete (bdbuf_cache.sync_lock);                     
 200d608:	7f ff e7 df 	call  2007584 <rtems_semaphore_delete>         <== NOT EXECUTED
 200d60c:	d0 06 e0 2c 	ld  [ %i3 + 0x2c ], %o0                        <== NOT EXECUTED
                                                                      
  if (bdbuf_cache.lock != 0)                                          
 200d610:	c2 06 e0 28 	ld  [ %i3 + 0x28 ], %g1                        <== NOT EXECUTED
 200d614:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
 200d618:	12 80 00 05 	bne  200d62c <rtems_bdbuf_init+0x17c>          <== NOT EXECUTED
 200d61c:	01 00 00 00 	nop                                            <== NOT EXECUTED
  {                                                                   
    rtems_bdbuf_unlock_cache ();                                      
    rtems_semaphore_delete (bdbuf_cache.lock);                        
  }                                                                   
                                                                      
  bdbuf_cache.initialised = false;                                    
 200d620:	c0 2e e0 88 	clrb  [ %i3 + 0x88 ]                           <== NOT EXECUTED
                                                                      
  return RTEMS_UNSATISFIED;                                           
}                                                                     
 200d624:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200d628:	91 e8 20 0d 	restore  %g0, 0xd, %o0                         <== NOT EXECUTED
  rtems_semaphore_delete (bdbuf_cache.transfer_waiters.sema);         
  rtems_semaphore_delete (bdbuf_cache.sync_lock);                     
                                                                      
  if (bdbuf_cache.lock != 0)                                          
  {                                                                   
    rtems_bdbuf_unlock_cache ();                                      
 200d62c:	7f ff f9 32 	call  200baf4 <rtems_bdbuf_unlock_cache>       <== NOT EXECUTED
 200d630:	b0 10 20 0d 	mov  0xd, %i0                                  <== NOT EXECUTED
    rtems_semaphore_delete (bdbuf_cache.lock);                        
 200d634:	7f ff e7 d4 	call  2007584 <rtems_semaphore_delete>         <== NOT EXECUTED
 200d638:	d0 06 e0 28 	ld  [ %i3 + 0x28 ], %o0                        <== NOT EXECUTED
 200d63c:	c0 2e e0 88 	clrb  [ %i3 + 0x88 ]                           <== NOT EXECUTED
 200d640:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200d644:	81 e8 00 00 	restore                                        <== NOT EXECUTED
  return RTEMS_SUCCESSFUL;                                            
                                                                      
error:                                                                
                                                                      
  if (bdbuf_cache.swapout != 0)                                       
    rtems_task_delete (bdbuf_cache.swapout);                          
 200d648:	7f ff e8 c5 	call  200795c <rtems_task_delete>              <== NOT EXECUTED
 200d64c:	01 00 00 00 	nop                                            <== NOT EXECUTED
 200d650:	30 bf ff e2 	b,a   200d5d8 <rtems_bdbuf_init+0x128>         <== NOT EXECUTED
                               1, RTEMS_BDBUF_CACHE_LOCK_ATTRIBS, 0,  
                               &bdbuf_cache.lock);                    
  if (sc != RTEMS_SUCCESSFUL)                                         
    goto error;                                                       
                                                                      
  rtems_bdbuf_lock_cache ();                                          
 200d654:	7f ff f8 95 	call  200b8a8 <rtems_bdbuf_lock_cache>         
 200d658:	01 00 00 00 	nop                                            
                                                                      
  sc = rtems_semaphore_create (rtems_build_name ('B', 'D', 'C', 's'), 
 200d65c:	90 17 63 73 	or  %i5, 0x373, %o0                            
 200d660:	92 10 20 01 	mov  1, %o1                                    
 200d664:	94 10 20 54 	mov  0x54, %o2                                 
 200d668:	96 10 20 00 	clr  %o3                                       
 200d66c:	7f ff e7 56 	call  20073c4 <rtems_semaphore_create>         
 200d670:	98 06 e0 2c 	add  %i3, 0x2c, %o4                            
                               1, RTEMS_BDBUF_CACHE_LOCK_ATTRIBS, 0,  
                               &bdbuf_cache.sync_lock);               
  if (sc != RTEMS_SUCCESSFUL)                                         
 200d674:	80 a2 20 00 	cmp  %o0, 0                                    
 200d678:	12 bf ff d5 	bne  200d5cc <rtems_bdbuf_init+0x11c>          <== NEVER TAKEN
 200d67c:	d0 06 a1 a8 	ld  [ %i2 + 0x1a8 ], %o0                       
    goto error;                                                       
                                                                      
  sc = rtems_semaphore_create (rtems_build_name ('B', 'D', 'C', 'a'), 
 200d680:	90 17 63 61 	or  %i5, 0x361, %o0                            
 200d684:	92 10 20 00 	clr  %o1                                       
 200d688:	94 10 20 24 	mov  0x24, %o2                                 
 200d68c:	96 10 20 00 	clr  %o3                                       
 200d690:	7f ff e7 4d 	call  20073c4 <rtems_semaphore_create>         
 200d694:	98 06 e0 6c 	add  %i3, 0x6c, %o4                            
                               0, RTEMS_BDBUF_CACHE_WAITER_ATTRIBS, 0,
                               &bdbuf_cache.access_waiters.sema);     
  if (sc != RTEMS_SUCCESSFUL)                                         
 200d698:	80 a2 20 00 	cmp  %o0, 0                                    
 200d69c:	12 bf ff cc 	bne  200d5cc <rtems_bdbuf_init+0x11c>          <== NEVER TAKEN
 200d6a0:	d0 06 a1 a8 	ld  [ %i2 + 0x1a8 ], %o0                       
    goto error;                                                       
                                                                      
  sc = rtems_semaphore_create (rtems_build_name ('B', 'D', 'C', 't'), 
 200d6a4:	90 17 63 74 	or  %i5, 0x374, %o0                            
 200d6a8:	92 10 20 00 	clr  %o1                                       
 200d6ac:	94 10 20 24 	mov  0x24, %o2                                 
 200d6b0:	96 10 20 00 	clr  %o3                                       
 200d6b4:	7f ff e7 44 	call  20073c4 <rtems_semaphore_create>         
 200d6b8:	98 06 e0 74 	add  %i3, 0x74, %o4                            
                               0, RTEMS_BDBUF_CACHE_WAITER_ATTRIBS, 0,
                               &bdbuf_cache.transfer_waiters.sema);   
  if (sc != RTEMS_SUCCESSFUL)                                         
 200d6bc:	80 a2 20 00 	cmp  %o0, 0                                    
 200d6c0:	12 bf ff c3 	bne  200d5cc <rtems_bdbuf_init+0x11c>          <== NEVER TAKEN
 200d6c4:	d0 06 a1 a8 	ld  [ %i2 + 0x1a8 ], %o0                       
    goto error;                                                       
                                                                      
  sc = rtems_semaphore_create (rtems_build_name ('B', 'D', 'C', 'b'), 
 200d6c8:	90 17 63 62 	or  %i5, 0x362, %o0                            
 200d6cc:	92 10 20 00 	clr  %o1                                       
 200d6d0:	94 10 20 24 	mov  0x24, %o2                                 
 200d6d4:	96 10 20 00 	clr  %o3                                       
 200d6d8:	7f ff e7 3b 	call  20073c4 <rtems_semaphore_create>         
 200d6dc:	98 06 e0 7c 	add  %i3, 0x7c, %o4                            
                               0, RTEMS_BDBUF_CACHE_WAITER_ATTRIBS, 0,
                               &bdbuf_cache.buffer_waiters.sema);     
  if (sc != RTEMS_SUCCESSFUL)                                         
 200d6e0:	80 a2 20 00 	cmp  %o0, 0                                    
 200d6e4:	32 bf ff ba 	bne,a   200d5cc <rtems_bdbuf_init+0x11c>       <== NEVER TAKEN
 200d6e8:	d0 06 a1 a8 	ld  [ %i2 + 0x1a8 ], %o0                       <== NOT EXECUTED
                                                                      
  /*                                                                  
   * Compute the various number of elements in the cache.             
   */                                                                 
  bdbuf_cache.buffer_min_count =                                      
    bdbuf_config.size / bdbuf_config.buffer_min;                      
 200d6ec:	d0 06 60 1c 	ld  [ %i1 + 0x1c ], %o0                        
 200d6f0:	40 00 25 bf 	call  2016dec <.udiv>                          
 200d6f4:	92 10 00 10 	mov  %l0, %o1                                  
  bdbuf_cache.max_bds_per_group =                                     
    bdbuf_config.buffer_max / bdbuf_config.buffer_min;                
 200d6f8:	92 10 00 10 	mov  %l0, %o1                                  
                                                                      
  /*                                                                  
   * Compute the various number of elements in the cache.             
   */                                                                 
  bdbuf_cache.buffer_min_count =                                      
    bdbuf_config.size / bdbuf_config.buffer_min;                      
 200d6fc:	ba 10 00 08 	mov  %o0, %i5                                  
    goto error;                                                       
                                                                      
  /*                                                                  
   * Compute the various number of elements in the cache.             
   */                                                                 
  bdbuf_cache.buffer_min_count =                                      
 200d700:	d0 26 e0 1c 	st  %o0, [ %i3 + 0x1c ]                        
    bdbuf_config.size / bdbuf_config.buffer_min;                      
  bdbuf_cache.max_bds_per_group =                                     
    bdbuf_config.buffer_max / bdbuf_config.buffer_min;                
 200d704:	40 00 25 ba 	call  2016dec <.udiv>                          
 200d708:	90 10 00 1c 	mov  %i4, %o0                                  
 200d70c:	82 10 00 08 	mov  %o0, %g1                                  
  bdbuf_cache.group_count =                                           
    bdbuf_cache.buffer_min_count / bdbuf_cache.max_bds_per_group;     
 200d710:	90 10 00 1d 	mov  %i5, %o0                                  
 200d714:	92 10 00 01 	mov  %g1, %o1                                  
 200d718:	40 00 25 b5 	call  2016dec <.udiv>                          
 200d71c:	c2 26 e0 20 	st  %g1, [ %i3 + 0x20 ]                        
                                                                      
  /*                                                                  
   * Allocate the memory for the buffer descriptors.                  
   */                                                                 
  bdbuf_cache.bds = calloc (sizeof (rtems_bdbuf_buffer),              
 200d720:	92 10 00 1d 	mov  %i5, %o1                                  
   */                                                                 
  bdbuf_cache.buffer_min_count =                                      
    bdbuf_config.size / bdbuf_config.buffer_min;                      
  bdbuf_cache.max_bds_per_group =                                     
    bdbuf_config.buffer_max / bdbuf_config.buffer_min;                
  bdbuf_cache.group_count =                                           
 200d724:	d0 26 e0 80 	st  %o0, [ %i3 + 0x80 ]                        
    bdbuf_cache.buffer_min_count / bdbuf_cache.max_bds_per_group;     
 200d728:	b8 10 00 08 	mov  %o0, %i4                                  
                                                                      
  /*                                                                  
   * Allocate the memory for the buffer descriptors.                  
   */                                                                 
  bdbuf_cache.bds = calloc (sizeof (rtems_bdbuf_buffer),              
 200d72c:	7f ff d8 52 	call  2003874 <calloc>                         
 200d730:	90 10 20 40 	mov  0x40, %o0                                 
                            bdbuf_cache.buffer_min_count);            
  if (!bdbuf_cache.bds)                                               
 200d734:	80 a2 20 00 	cmp  %o0, 0                                    
 200d738:	02 bf ff a4 	be  200d5c8 <rtems_bdbuf_init+0x118>           <== NEVER TAKEN
 200d73c:	d0 26 e0 14 	st  %o0, [ %i3 + 0x14 ]                        
    goto error;                                                       
                                                                      
  /*                                                                  
   * Allocate the memory for the buffer descriptors.                  
   */                                                                 
  bdbuf_cache.groups = calloc (sizeof (rtems_bdbuf_group),            
 200d740:	90 10 20 14 	mov  0x14, %o0                                 
 200d744:	7f ff d8 4c 	call  2003874 <calloc>                         
 200d748:	92 10 00 1c 	mov  %i4, %o1                                  
                               bdbuf_cache.group_count);              
  if (!bdbuf_cache.groups)                                            
 200d74c:	80 a2 20 00 	cmp  %o0, 0                                    
 200d750:	02 bf ff 9e 	be  200d5c8 <rtems_bdbuf_init+0x118>           <== NEVER TAKEN
 200d754:	d0 26 e0 84 	st  %o0, [ %i3 + 0x84 ]                        
   *                                                                  
   * The memory allocate allows a                                     
   */                                                                 
  if (rtems_memalign ((void **) &bdbuf_cache.buffers,                 
                      cache_aligment,                                 
                      bdbuf_cache.buffer_min_count * bdbuf_config.buffer_min) != 0)
 200d758:	92 10 00 10 	mov  %l0, %o1                                  
 200d75c:	40 00 25 6a 	call  2016d04 <.umul>                          
 200d760:	90 10 00 1d 	mov  %i5, %o0                                  
   * aligned. It is possible to free the memory allocated by rtems_memalign()
   * with free(). Return 0 if allocated.                              
   *                                                                  
   * The memory allocate allows a                                     
   */                                                                 
  if (rtems_memalign ((void **) &bdbuf_cache.buffers,                 
 200d764:	92 10 20 20 	mov  0x20, %o1                                 
                      cache_aligment,                                 
                      bdbuf_cache.buffer_min_count * bdbuf_config.buffer_min) != 0)
 200d768:	94 10 00 08 	mov  %o0, %o2                                  
   * aligned. It is possible to free the memory allocated by rtems_memalign()
   * with free(). Return 0 if allocated.                              
   *                                                                  
   * The memory allocate allows a                                     
   */                                                                 
  if (rtems_memalign ((void **) &bdbuf_cache.buffers,                 
 200d76c:	11 00 80 6a 	sethi  %hi(0x201a800), %o0                     
 200d770:	40 00 09 86 	call  200fd88 <rtems_memalign>                 
 200d774:	90 12 21 c0 	or  %o0, 0x1c0, %o0	! 201a9c0 <bdbuf_cache+0x18>
 200d778:	80 a2 20 00 	cmp  %o0, 0                                    
 200d77c:	12 bf ff 94 	bne  200d5cc <rtems_bdbuf_init+0x11c>          <== NEVER TAKEN
 200d780:	d0 06 a1 a8 	ld  [ %i2 + 0x1a8 ], %o0                       
                                                                      
  /*                                                                  
   * The cache is empty after opening so we need to add all the buffers to it
   * and initialise the groups.                                       
   */                                                                 
  for (b = 0, group = bdbuf_cache.groups,                             
 200d784:	e8 06 e0 84 	ld  [ %i3 + 0x84 ], %l4                        
         bd = bdbuf_cache.bds, buffer = bdbuf_cache.buffers;          
 200d788:	f0 06 e0 14 	ld  [ %i3 + 0x14 ], %i0                        
 200d78c:	e6 06 e0 18 	ld  [ %i3 + 0x18 ], %l3                        
       b < bdbuf_cache.buffer_min_count;                              
       b++, bd++, buffer += bdbuf_config.buffer_min)                  
  {                                                                   
    bd->dev    = BDBUF_INVALID_DEV;                                   
 200d790:	39 3f ff ff 	sethi  %hi(0xfffffc00), %i4                    
                                                                      
  /*                                                                  
   * The cache is empty after opening so we need to add all the buffers to it
   * and initialise the groups.                                       
   */                                                                 
  for (b = 0, group = bdbuf_cache.groups,                             
 200d794:	a4 10 20 00 	clr  %l2                                       
         bd = bdbuf_cache.bds, buffer = bdbuf_cache.buffers;          
       b < bdbuf_cache.buffer_min_count;                              
       b++, bd++, buffer += bdbuf_config.buffer_min)                  
  {                                                                   
    bd->dev    = BDBUF_INVALID_DEV;                                   
 200d798:	b8 17 23 ff 	or  %i4, 0x3ff, %i4                            
   * The cache is empty after opening so we need to add all the buffers to it
   * and initialise the groups.                                       
   */                                                                 
  for (b = 0, group = bdbuf_cache.groups,                             
         bd = bdbuf_cache.bds, buffer = bdbuf_cache.buffers;          
       b < bdbuf_cache.buffer_min_count;                              
 200d79c:	a2 10 00 1b 	mov  %i3, %l1                                  
       b++, bd++, buffer += bdbuf_config.buffer_min)                  
  {                                                                   
    bd->dev    = BDBUF_INVALID_DEV;                                   
 200d7a0:	ba 10 00 1c 	mov  %i4, %i5                                  
 200d7a4:	ac 06 e0 44 	add  %i3, 0x44, %l6                            
                                                                      
  /*                                                                  
   * The cache is empty after opening so we need to add all the buffers to it
   * and initialise the groups.                                       
   */                                                                 
  for (b = 0, group = bdbuf_cache.groups,                             
 200d7a8:	c2 06 e0 1c 	ld  [ %i3 + 0x1c ], %g1                        
 200d7ac:	92 10 00 18 	mov  %i0, %o1                                  
 200d7b0:	80 a4 80 01 	cmp  %l2, %g1                                  
 200d7b4:	1a 80 00 12 	bcc  200d7fc <rtems_bdbuf_init+0x34c>          
 200d7b8:	90 10 00 16 	mov  %l6, %o0                                  
         bd = bdbuf_cache.bds, buffer = bdbuf_cache.buffers;          
       b < bdbuf_cache.buffer_min_count;                              
       b++, bd++, buffer += bdbuf_config.buffer_min)                  
  {                                                                   
    bd->dev    = BDBUF_INVALID_DEV;                                   
    bd->group  = group;                                               
 200d7bc:	e8 26 20 30 	st  %l4, [ %i0 + 0x30 ]                        
    bd->buffer = buffer;                                              
 200d7c0:	e6 26 20 24 	st  %l3, [ %i0 + 0x24 ]                        
 200d7c4:	7f ff ea b3 	call  2008290 <_Chain_Append>                  
 200d7c8:	f8 3e 20 18 	std  %i4, [ %i0 + 0x18 ]                       
                                                                      
    rtems_chain_append (&bdbuf_cache.lru, &bd->link);                 
                                                                      
    if ((b % bdbuf_cache.max_bds_per_group) ==                        
 200d7cc:	ea 04 60 20 	ld  [ %l1 + 0x20 ], %l5                        
 200d7d0:	90 10 00 12 	mov  %l2, %o0                                  
 200d7d4:	92 10 00 15 	mov  %l5, %o1                                  
 200d7d8:	40 00 26 31 	call  201709c <.urem>                          
 200d7dc:	aa 05 7f ff 	add  %l5, -1, %l5                              
 200d7e0:	80 a2 00 15 	cmp  %o0, %l5                                  
 200d7e4:	22 80 00 02 	be,a   200d7ec <rtems_bdbuf_init+0x33c>        
 200d7e8:	a8 05 20 14 	add  %l4, 0x14, %l4                            
   * and initialise the groups.                                       
   */                                                                 
  for (b = 0, group = bdbuf_cache.groups,                             
         bd = bdbuf_cache.bds, buffer = bdbuf_cache.buffers;          
       b < bdbuf_cache.buffer_min_count;                              
       b++, bd++, buffer += bdbuf_config.buffer_min)                  
 200d7ec:	a4 04 a0 01 	inc  %l2                                       
 200d7f0:	b0 06 20 40 	add  %i0, 0x40, %i0                            
 200d7f4:	10 bf ff ed 	b  200d7a8 <rtems_bdbuf_init+0x2f8>            
 200d7f8:	a6 04 c0 10 	add  %l3, %l0, %l3                             
       b < bdbuf_cache.group_count;                                   
       b++,                                                           
         group++,                                                     
         bd += bdbuf_cache.max_bds_per_group)                         
  {                                                                   
    group->bds_per_group = bdbuf_cache.max_bds_per_group;             
 200d7fc:	c8 04 60 20 	ld  [ %l1 + 0x20 ], %g4                        
        (bdbuf_cache.max_bds_per_group - 1))                          
      group++;                                                        
  }                                                                   
                                                                      
  for (b = 0,                                                         
         group = bdbuf_cache.groups,                                  
 200d800:	c2 04 60 84 	ld  [ %l1 + 0x84 ], %g1                        
         bd = bdbuf_cache.bds;                                        
 200d804:	c6 04 60 14 	ld  [ %l1 + 0x14 ], %g3                        
       b < bdbuf_cache.group_count;                                   
 200d808:	f8 04 60 80 	ld  [ %l1 + 0x80 ], %i4                        
       b++,                                                           
         group++,                                                     
         bd += bdbuf_cache.max_bds_per_group)                         
 200d80c:	bb 29 20 06 	sll  %g4, 6, %i5                               
    if ((b % bdbuf_cache.max_bds_per_group) ==                        
        (bdbuf_cache.max_bds_per_group - 1))                          
      group++;                                                        
  }                                                                   
                                                                      
  for (b = 0,                                                         
 200d810:	84 10 20 00 	clr  %g2                                       
 200d814:	80 a0 80 1c 	cmp  %g2, %i4                                  
 200d818:	02 80 00 07 	be  200d834 <rtems_bdbuf_init+0x384>           
 200d81c:	84 00 a0 01 	inc  %g2                                       
       b++,                                                           
         group++,                                                     
         bd += bdbuf_cache.max_bds_per_group)                         
  {                                                                   
    group->bds_per_group = bdbuf_cache.max_bds_per_group;             
    group->bdbuf = bd;                                                
 200d820:	c6 20 60 10 	st  %g3, [ %g1 + 0x10 ]                        
       b < bdbuf_cache.group_count;                                   
       b++,                                                           
         group++,                                                     
         bd += bdbuf_cache.max_bds_per_group)                         
  {                                                                   
    group->bds_per_group = bdbuf_cache.max_bds_per_group;             
 200d824:	c8 20 60 08 	st  %g4, [ %g1 + 8 ]                           
  for (b = 0,                                                         
         group = bdbuf_cache.groups,                                  
         bd = bdbuf_cache.bds;                                        
       b < bdbuf_cache.group_count;                                   
       b++,                                                           
         group++,                                                     
 200d828:	82 00 60 14 	add  %g1, 0x14, %g1                            
         bd += bdbuf_cache.max_bds_per_group)                         
 200d82c:	10 bf ff fa 	b  200d814 <rtems_bdbuf_init+0x364>            
 200d830:	86 00 c0 1d 	add  %g3, %i5, %g3                             
   * threads.                                                         
   */                                                                 
  bdbuf_cache.swapout_enabled = true;                                 
                                                                      
  sc = rtems_task_create (rtems_build_name('B', 'S', 'W', 'P'),       
                          bdbuf_config.swapout_priority ?             
 200d834:	d2 06 60 08 	ld  [ %i1 + 8 ], %o1                           
                                                                      
  /*                                                                  
   * Create and start swapout task. This task will create and manage the worker
   * threads.                                                         
   */                                                                 
  bdbuf_cache.swapout_enabled = true;                                 
 200d838:	82 10 20 01 	mov  1, %g1                                    
 200d83c:	c2 2e e0 04 	stb  %g1, [ %i3 + 4 ]                          
                                                                      
  sc = rtems_task_create (rtems_build_name('B', 'S', 'W', 'P'),       
 200d840:	80 a2 60 00 	cmp  %o1, 0                                    
 200d844:	22 80 00 02 	be,a   200d84c <rtems_bdbuf_init+0x39c>        <== NEVER TAKEN
 200d848:	92 10 20 0f 	mov  0xf, %o1                                  <== NOT EXECUTED
 200d84c:	11 10 94 d5 	sethi  %hi(0x42535400), %o0                    
 200d850:	15 00 00 08 	sethi  %hi(0x2000), %o2                        
 200d854:	90 12 23 50 	or  %o0, 0x350, %o0                            
 200d858:	96 10 24 00 	mov  0x400, %o3                                
 200d85c:	98 10 20 00 	clr  %o4                                       
 200d860:	7f ff e7 f5 	call  2007834 <rtems_task_create>              
 200d864:	9a 16 a1 a8 	or  %i2, 0x1a8, %o5                            
                            RTEMS_BDBUF_SWAPOUT_TASK_PRIORITY_DEFAULT,
                          SWAPOUT_TASK_STACK_SIZE,                    
                          RTEMS_PREEMPT | RTEMS_NO_TIMESLICE | RTEMS_NO_ASR,
                          RTEMS_LOCAL | RTEMS_NO_FLOATING_POINT,      
                          &bdbuf_cache.swapout);                      
  if (sc != RTEMS_SUCCESSFUL)                                         
 200d868:	80 a2 20 00 	cmp  %o0, 0                                    
 200d86c:	12 bf ff 58 	bne  200d5cc <rtems_bdbuf_init+0x11c>          <== NEVER TAKEN
 200d870:	d0 06 a1 a8 	ld  [ %i2 + 0x1a8 ], %o0                       
    goto error;                                                       
                                                                      
  sc = rtems_task_start (bdbuf_cache.swapout,                         
 200d874:	03 00 80 6a 	sethi  %hi(0x201a800), %g1                     
 200d878:	d0 00 61 a8 	ld  [ %g1 + 0x1a8 ], %o0	! 201a9a8 <bdbuf_cache>
 200d87c:	94 10 00 1b 	mov  %i3, %o2                                  
 200d880:	13 00 80 32 	sethi  %hi(0x200c800), %o1                     
 200d884:	7f ff e8 78 	call  2007a64 <rtems_task_start>               
 200d888:	92 12 62 1c 	or  %o1, 0x21c, %o1	! 200ca1c <rtems_bdbuf_swapout_task>
                         rtems_bdbuf_swapout_task,                    
                         (rtems_task_argument) &bdbuf_cache);         
  if (sc != RTEMS_SUCCESSFUL)                                         
 200d88c:	80 a2 20 00 	cmp  %o0, 0                                    
 200d890:	12 bf ff 4f 	bne  200d5cc <rtems_bdbuf_init+0x11c>          <== NEVER TAKEN
 200d894:	d0 06 a1 a8 	ld  [ %i2 + 0x1a8 ], %o0                       
    goto error;                                                       
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
 200d898:	7f ff f8 97 	call  200baf4 <rtems_bdbuf_unlock_cache>       
 200d89c:	b0 10 20 00 	clr  %i0                                       
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 200d8a0:	81 c7 e0 08 	ret                                            
 200d8a4:	81 e8 00 00 	restore                                        
                                                                      

0200b8a8 <rtems_bdbuf_lock_cache>: /** * Lock the cache. A single task can nest calls. */ static void rtems_bdbuf_lock_cache (void) {
 200b8a8:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_bdbuf_lock (bdbuf_cache.lock, RTEMS_BLKDEV_FATAL_BDBUF_CACHE_LOCK);
 200b8ac:	03 00 80 6a 	sethi  %hi(0x201a800), %g1                     
 * @param fatal_error_code The error code if the call fails.          
 */                                                                   
static void                                                           
rtems_bdbuf_lock (rtems_id lock, uint32_t fatal_error_code)           
{                                                                     
  rtems_status_code sc = rtems_semaphore_obtain (lock,                
 200b8b0:	d0 00 61 d0 	ld  [ %g1 + 0x1d0 ], %o0	! 201a9d0 <bdbuf_cache+0x28>
 200b8b4:	92 10 20 00 	clr  %o1                                       
 200b8b8:	7f ff ef 6a 	call  2007660 <rtems_semaphore_obtain>         
 200b8bc:	94 10 20 00 	clr  %o2                                       
                                                 RTEMS_WAIT,          
                                                 RTEMS_NO_TIMEOUT);   
  if (sc != RTEMS_SUCCESSFUL)                                         
 200b8c0:	80 a2 20 00 	cmp  %o0, 0                                    
 200b8c4:	12 80 00 04 	bne  200b8d4 <rtems_bdbuf_lock_cache+0x2c>     <== NEVER TAKEN
 200b8c8:	11 10 80 00 	sethi  %hi(0x42000000), %o0                    
 200b8cc:	81 c7 e0 08 	ret                                            
 200b8d0:	81 e8 00 00 	restore                                        
    rtems_fatal_error_occurred (fatal_error_code);                    
 200b8d4:	7f ff f0 fd 	call  2007cc8 <rtems_fatal_error_occurred>     <== NOT EXECUTED
 200b8d8:	90 12 20 0d 	or  %o0, 0xd, %o0                              <== NOT EXECUTED
                                                                      

0200b8e0 <rtems_bdbuf_lock_sync>: /** * Lock the cache's sync. A single task can nest calls. */ static void rtems_bdbuf_lock_sync (void) {
 200b8e0:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_bdbuf_lock (bdbuf_cache.sync_lock, RTEMS_BLKDEV_FATAL_BDBUF_SYNC_LOCK);
 200b8e4:	03 00 80 6a 	sethi  %hi(0x201a800), %g1                     
 * @param fatal_error_code The error code if the call fails.          
 */                                                                   
static void                                                           
rtems_bdbuf_lock (rtems_id lock, uint32_t fatal_error_code)           
{                                                                     
  rtems_status_code sc = rtems_semaphore_obtain (lock,                
 200b8e8:	d0 00 61 d4 	ld  [ %g1 + 0x1d4 ], %o0	! 201a9d4 <bdbuf_cache+0x2c>
 200b8ec:	92 10 20 00 	clr  %o1                                       
 200b8f0:	7f ff ef 5c 	call  2007660 <rtems_semaphore_obtain>         
 200b8f4:	94 10 20 00 	clr  %o2                                       
                                                 RTEMS_WAIT,          
                                                 RTEMS_NO_TIMEOUT);   
  if (sc != RTEMS_SUCCESSFUL)                                         
 200b8f8:	80 a2 20 00 	cmp  %o0, 0                                    
 200b8fc:	12 80 00 04 	bne  200b90c <rtems_bdbuf_lock_sync+0x2c>      <== NEVER TAKEN
 200b900:	11 10 80 00 	sethi  %hi(0x42000000), %o0                    
 200b904:	81 c7 e0 08 	ret                                            
 200b908:	81 e8 00 00 	restore                                        
    rtems_fatal_error_occurred (fatal_error_code);                    
 200b90c:	7f ff f0 ef 	call  2007cc8 <rtems_fatal_error_occurred>     <== NOT EXECUTED
 200b910:	90 12 20 0b 	or  %o0, 0xb, %o0                              <== NOT EXECUTED
                                                                      

0200bef8 <rtems_bdbuf_obtain_disk.part.8>: return bd; } static rtems_status_code rtems_bdbuf_obtain_disk (dev_t dev,
 200bef8:	9d e3 bf a0 	save  %sp, -96, %sp                            
    return RTEMS_NOT_CONFIGURED;                                      
                                                                      
  /*                                                                  
   * Do not hold the cache lock when obtaining the disk table.        
   */                                                                 
  dd = rtems_disk_obtain (dev);                                       
 200befc:	90 10 00 18 	mov  %i0, %o0                                  
 200bf00:	92 10 00 19 	mov  %i1, %o1                                  
 200bf04:	7f ff db 9b 	call  2002d70 <rtems_disk_obtain>              
 200bf08:	b0 10 20 04 	mov  4, %i0                                    
  if (dd == NULL)                                                     
 200bf0c:	80 a2 20 00 	cmp  %o0, 0                                    
 200bf10:	02 80 00 34 	be  200bfe0 <rtems_bdbuf_obtain_disk.part.8+0xe8><== NEVER TAKEN
 200bf14:	b2 10 00 08 	mov  %o0, %i1                                  
    return RTEMS_INVALID_ID;                                          
                                                                      
  *dd_ptr = dd;                                                       
                                                                      
  if (media_block_ptr != NULL)                                        
 200bf18:	80 a7 20 00 	cmp  %i4, 0                                    
 200bf1c:	02 80 00 11 	be  200bf60 <rtems_bdbuf_obtain_disk.part.8+0x68>
 200bf20:	d0 26 c0 00 	st  %o0, [ %i3 ]                               
rtems_bdbuf_media_block (rtems_blkdev_bnum block,                     
                         size_t            block_size,                
                         size_t            media_block_size)          
{                                                                     
  return (rtems_blkdev_bnum)                                          
    ((((uint64_t) block) * block_size) / media_block_size);           
 200bf24:	d6 02 20 20 	ld  [ %o0 + 0x20 ], %o3                        
 200bf28:	94 10 20 00 	clr  %o2                                       
 200bf2c:	90 10 20 00 	clr  %o0                                       
 200bf30:	40 00 2d 07 	call  201734c <__muldi3>                       
 200bf34:	92 10 00 1a 	mov  %i2, %o1                                  
 200bf38:	d6 06 60 24 	ld  [ %i1 + 0x24 ], %o3                        
 200bf3c:	40 00 2f 10 	call  2017b7c <__udivdi3>                      
 200bf40:	94 10 20 00 	clr  %o2                                       
     * the user.                                                      
     */                                                               
    rtems_blkdev_bnum mb = rtems_bdbuf_media_block (block,            
                                                    dd->block_size,   
                                                    dd->media_block_size);
    if (mb >= dd->size)                                               
 200bf44:	c2 06 60 1c 	ld  [ %i1 + 0x1c ], %g1                        
 200bf48:	80 a2 40 01 	cmp  %o1, %g1                                  
 200bf4c:	1a 80 00 23 	bcc  200bfd8 <rtems_bdbuf_obtain_disk.part.8+0xe0><== NEVER TAKEN
 200bf50:	90 10 00 19 	mov  %i1, %o0                                  
    {                                                                 
      rtems_disk_release(dd);                                         
      return RTEMS_INVALID_NUMBER;                                    
    }                                                                 
                                                                      
    *media_block_ptr = mb + dd->start;                                
 200bf54:	c2 06 60 18 	ld  [ %i1 + 0x18 ], %g1                        
 200bf58:	92 02 40 01 	add  %o1, %g1, %o1                             
 200bf5c:	d2 27 00 00 	st  %o1, [ %i4 ]                               
  }                                                                   
                                                                      
  if (bds_per_group_ptr != NULL)                                      
 200bf60:	80 a7 60 00 	cmp  %i5, 0                                    
 200bf64:	02 80 00 1f 	be  200bfe0 <rtems_bdbuf_obtain_disk.part.8+0xe8>
 200bf68:	b0 10 20 00 	clr  %i0                                       
  {                                                                   
    size_t bds_per_group = rtems_bdbuf_bds_per_group (dd->block_size);
 200bf6c:	d0 06 60 20 	ld  [ %i1 + 0x20 ], %o0                        
rtems_bdbuf_bds_per_group (size_t size)                               
{                                                                     
  size_t bufs_per_size;                                               
  size_t bds_per_size;                                                
                                                                      
  if (size > bdbuf_config.buffer_max)                                 
 200bf70:	03 00 80 63 	sethi  %hi(0x2018c00), %g1                     
 200bf74:	82 10 63 48 	or  %g1, 0x348, %g1	! 2018f48 <rtems_bdbuf_configuration>
 200bf78:	c4 00 60 24 	ld  [ %g1 + 0x24 ], %g2                        
 200bf7c:	80 a2 00 02 	cmp  %o0, %g2                                  
 200bf80:	38 80 00 16 	bgu,a   200bfd8 <rtems_bdbuf_obtain_disk.part.8+0xe0><== NEVER TAKEN
 200bf84:	90 10 00 19 	mov  %i1, %o0                                  <== NOT EXECUTED
    return 0;                                                         
                                                                      
  bufs_per_size = ((size - 1) / bdbuf_config.buffer_min) + 1;         
 200bf88:	d2 00 60 20 	ld  [ %g1 + 0x20 ], %o1                        
 200bf8c:	40 00 2b 98 	call  2016dec <.udiv>                          
 200bf90:	90 02 3f ff 	add  %o0, -1, %o0                              
 200bf94:	90 02 20 01 	inc  %o0                                       
                                                                      
  for (bds_per_size = 1;                                              
 200bf98:	80 a2 20 01 	cmp  %o0, 1                                    
 200bf9c:	08 80 00 06 	bleu  200bfb4 <rtems_bdbuf_obtain_disk.part.8+0xbc>
 200bfa0:	92 10 20 01 	mov  1, %o1                                    
       bds_per_size < bufs_per_size;                                  
       bds_per_size <<= 1)                                            
 200bfa4:	93 2a 60 01 	sll  %o1, 1, %o1                               
  if (size > bdbuf_config.buffer_max)                                 
    return 0;                                                         
                                                                      
  bufs_per_size = ((size - 1) / bdbuf_config.buffer_min) + 1;         
                                                                      
  for (bds_per_size = 1;                                              
 200bfa8:	80 a2 00 09 	cmp  %o0, %o1                                  
 200bfac:	38 bf ff ff 	bgu,a   200bfa8 <rtems_bdbuf_obtain_disk.part.8+0xb0><== NEVER TAKEN
 200bfb0:	93 2a 60 01 	sll  %o1, 1, %o1                               <== NOT EXECUTED
       bds_per_size < bufs_per_size;                                  
       bds_per_size <<= 1)                                            
    ;                                                                 
                                                                      
  return bdbuf_cache.max_bds_per_group / bds_per_size;                
 200bfb4:	03 00 80 6a 	sethi  %hi(0x201a800), %g1                     
 200bfb8:	40 00 2b 8d 	call  2016dec <.udiv>                          
 200bfbc:	d0 00 61 c8 	ld  [ %g1 + 0x1c8 ], %o0	! 201a9c8 <bdbuf_cache+0x20>
                                                                      
  if (bds_per_group_ptr != NULL)                                      
  {                                                                   
    size_t bds_per_group = rtems_bdbuf_bds_per_group (dd->block_size);
                                                                      
    if (bds_per_group == 0)                                           
 200bfc0:	80 a2 20 00 	cmp  %o0, 0                                    
 200bfc4:	22 80 00 05 	be,a   200bfd8 <rtems_bdbuf_obtain_disk.part.8+0xe0><== NEVER TAKEN
 200bfc8:	90 10 00 19 	mov  %i1, %o0                                  <== NOT EXECUTED
    {                                                                 
      rtems_disk_release (dd);                                        
      return RTEMS_INVALID_NUMBER;                                    
    }                                                                 
                                                                      
    *bds_per_group_ptr = bds_per_group;                               
 200bfcc:	d0 27 40 00 	st  %o0, [ %i5 ]                               
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 200bfd0:	81 c7 e0 08 	ret                                            
 200bfd4:	91 e8 20 00 	restore  %g0, 0, %o0                           
  {                                                                   
    size_t bds_per_group = rtems_bdbuf_bds_per_group (dd->block_size);
                                                                      
    if (bds_per_group == 0)                                           
    {                                                                 
      rtems_disk_release (dd);                                        
 200bfd8:	7f ff db 85 	call  2002dec <rtems_disk_release>             <== NOT EXECUTED
 200bfdc:	b0 10 20 0a 	mov  0xa, %i0                                  <== NOT EXECUTED
 200bfe0:	81 c7 e0 08 	ret                                            
 200bfe4:	81 e8 00 00 	restore                                        
                                                                      

0200c488 <rtems_bdbuf_purge>: } } static void rtems_bdbuf_purge (rtems_bdbuf_purge_compare compare, dev_t dev) {
 200c488:	9d e3 bf 10 	save  %sp, -240, %sp                           
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 200c48c:	82 07 bf f8 	add  %fp, -8, %g1                              
 200c490:	a0 07 bf f4 	add  %fp, -12, %l0                             
  head->previous = NULL;                                              
 200c494:	c0 27 bf f8 	clr  [ %fp + -8 ]                              
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 200c498:	c2 27 bf f4 	st  %g1, [ %fp + -12 ]                         
  head->previous = NULL;                                              
  tail->previous = head;                                              
 200c49c:	e0 27 bf fc 	st  %l0, [ %fp + -4 ]                          
  rtems_chain_control purge_list;                                     
                                                                      
  rtems_chain_initialize_empty (&purge_list);                         
  rtems_bdbuf_lock_cache ();                                          
 200c4a0:	7f ff fd 02 	call  200b8a8 <rtems_bdbuf_lock_cache>         
 200c4a4:	23 00 80 6a 	sethi  %hi(0x201a800), %l1                     
                              rtems_bdbuf_purge_compare compare,      
                              dev_t dev)                              
{                                                                     
  rtems_bdbuf_buffer *stack [RTEMS_BDBUF_AVL_MAX_HEIGHT];             
  rtems_bdbuf_buffer **prev = stack;                                  
  rtems_bdbuf_buffer *cur = bdbuf_cache.tree;                         
 200c4a8:	a2 14 61 a8 	or  %l1, 0x1a8, %l1	! 201a9a8 <bdbuf_cache>    
 200c4ac:	f6 04 60 40 	ld  [ %l1 + 0x40 ], %i3                        
                                                                      
  *prev = NULL;                                                       
 200c4b0:	c0 27 bf 74 	clr  [ %fp + -140 ]                            
  }                                                                   
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_purge (rtems_bdbuf_purge_compare compare, dev_t dev)      
{                                                                     
 200c4b4:	ba 10 00 1a 	mov  %i2, %i5                                  
 200c4b8:	b8 10 00 19 	mov  %i1, %i4                                  
  rtems_bdbuf_buffer **prev = stack;                                  
  rtems_bdbuf_buffer *cur = bdbuf_cache.tree;                         
                                                                      
  *prev = NULL;                                                       
                                                                      
  while (cur != NULL)                                                 
 200c4bc:	80 a6 e0 00 	cmp  %i3, 0                                    
 200c4c0:	02 80 00 46 	be  200c5d8 <rtems_bdbuf_purge+0x150>          <== NEVER TAKEN
 200c4c4:	b4 07 bf 74 	add  %fp, -140, %i2                            
  {                                                                   
    if ((*compare) (cur->dev, dev))                                   
    {                                                                 
      switch (cur->state)                                             
 200c4c8:	33 00 80 2d 	sethi  %hi(0x200b400), %i1                     
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 200c4cc:	a6 10 20 06 	mov  6, %l3                                    
 200c4d0:	a4 10 20 0a 	mov  0xa, %l2                                  
        case RTEMS_BDBUF_STATE_EMPTY:                                 
        case RTEMS_BDBUF_STATE_ACCESS_PURGED:                         
        case RTEMS_BDBUF_STATE_TRANSFER_PURGED:                       
          break;                                                      
        case RTEMS_BDBUF_STATE_SYNC:                                  
          rtems_bdbuf_wake (&bdbuf_cache.transfer_waiters);           
 200c4d4:	a2 04 60 70 	add  %l1, 0x70, %l1                            
                                                                      
  *prev = NULL;                                                       
                                                                      
  while (cur != NULL)                                                 
  {                                                                   
    if ((*compare) (cur->dev, dev))                                   
 200c4d8:	d0 1e e0 18 	ldd  [ %i3 + 0x18 ], %o0                       
 200c4dc:	94 10 00 1c 	mov  %i4, %o2                                  
 200c4e0:	9f c6 00 00 	call  %i0                                      
 200c4e4:	96 10 00 1d 	mov  %i5, %o3                                  
 200c4e8:	80 8a 20 ff 	btst  0xff, %o0                                
 200c4ec:	22 80 00 0b 	be,a   200c518 <rtems_bdbuf_purge+0x90>        <== NEVER TAKEN
 200c4f0:	c2 06 e0 08 	ld  [ %i3 + 8 ], %g1                           <== NOT EXECUTED
    {                                                                 
      switch (cur->state)                                             
 200c4f4:	c2 06 e0 28 	ld  [ %i3 + 0x28 ], %g1                        
 200c4f8:	80 a0 60 0a 	cmp  %g1, 0xa                                  
 200c4fc:	08 80 00 0e 	bleu  200c534 <rtems_bdbuf_purge+0xac>         <== ALWAYS TAKEN
 200c500:	84 16 63 f4 	or  %i1, 0x3f4, %g2                            
        case RTEMS_BDBUF_STATE_ACCESS_EMPTY:                          
        case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:                       
          rtems_bdbuf_set_state (cur, RTEMS_BDBUF_STATE_ACCESS_PURGED);
          break;                                                      
        default:                                                      
          rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_STATE_11);
 200c504:	11 10 80 00 	sethi  %hi(0x42000000), %o0                    <== NOT EXECUTED
 200c508:	7f ff ed f0 	call  2007cc8 <rtems_fatal_error_occurred>     <== NOT EXECUTED
 200c50c:	90 12 20 01 	or  %o0, 1, %o0	! 42000001 <RAM_END+0x3fc00001><== NOT EXECUTED
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 200c510:	e4 26 e0 28 	st  %l2, [ %i3 + 0x28 ]                        
        default:                                                      
          rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_STATE_11);
      }                                                               
    }                                                                 
                                                                      
    if (cur->avl.left != NULL)                                        
 200c514:	c2 06 e0 08 	ld  [ %i3 + 8 ], %g1                           
 200c518:	80 a0 60 00 	cmp  %g1, 0                                    
 200c51c:	22 80 00 1a 	be,a   200c584 <rtems_bdbuf_purge+0xfc>        <== ALWAYS TAKEN
 200c520:	c2 06 e0 0c 	ld  [ %i3 + 0xc ], %g1                         
    }                                                                 
    else if (cur->avl.right != NULL)                                  
    {                                                                 
      /* Right */                                                     
      ++prev;                                                         
      *prev = cur;                                                    
 200c524:	f6 26 a0 04 	st  %i3, [ %i2 + 4 ]                           <== NOT EXECUTED
 200c528:	b6 10 00 01 	mov  %g1, %i3                                  <== NOT EXECUTED
      cur = cur->avl.left;                                            
    }                                                                 
    else if (cur->avl.right != NULL)                                  
    {                                                                 
      /* Right */                                                     
      ++prev;                                                         
 200c52c:	10 bf ff eb 	b  200c4d8 <rtems_bdbuf_purge+0x50>            <== NOT EXECUTED
 200c530:	b4 06 a0 04 	add  %i2, 4, %i2                               <== NOT EXECUTED
                                                                      
  while (cur != NULL)                                                 
  {                                                                   
    if ((*compare) (cur->dev, dev))                                   
    {                                                                 
      switch (cur->state)                                             
 200c534:	83 28 60 02 	sll  %g1, 2, %g1                               
 200c538:	c2 00 80 01 	ld  [ %g2 + %g1 ], %g1                         
 200c53c:	81 c0 40 00 	jmp  %g1                                       
 200c540:	01 00 00 00 	nop                                            
        case RTEMS_BDBUF_STATE_EMPTY:                                 
        case RTEMS_BDBUF_STATE_ACCESS_PURGED:                         
        case RTEMS_BDBUF_STATE_TRANSFER_PURGED:                       
          break;                                                      
        case RTEMS_BDBUF_STATE_SYNC:                                  
          rtems_bdbuf_wake (&bdbuf_cache.transfer_waiters);           
 200c544:	7f ff fe 1e 	call  200bdbc <rtems_bdbuf_wake>               
 200c548:	90 10 00 11 	mov  %l1, %o0                                  
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_group_release (rtems_bdbuf_buffer *bd)                    
{                                                                     
  --bd->group->users;                                                 
 200c54c:	c2 06 e0 30 	ld  [ %i3 + 0x30 ], %g1                        
 200c550:	c4 00 60 0c 	ld  [ %g1 + 0xc ], %g2                         
 200c554:	84 00 bf ff 	add  %g2, -1, %g2                              
 200c558:	c4 20 60 0c 	st  %g2, [ %g1 + 0xc ]                         
 200c55c:	7f ff ef 58 	call  20082bc <_Chain_Extract>                 
 200c560:	90 10 00 1b 	mov  %i3, %o0                                  
RTEMS_INLINE_ROUTINE void rtems_chain_append(                         
  rtems_chain_control *the_chain,                                     
  rtems_chain_node    *the_node                                       
)                                                                     
{                                                                     
  _Chain_Append( the_chain, the_node );                               
 200c564:	90 10 00 10 	mov  %l0, %o0                                  
 200c568:	7f ff ef 4a 	call  2008290 <_Chain_Append>                  
 200c56c:	92 10 00 1b 	mov  %i3, %o1                                  
        default:                                                      
          rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_STATE_11);
      }                                                               
    }                                                                 
                                                                      
    if (cur->avl.left != NULL)                                        
 200c570:	c2 06 e0 08 	ld  [ %i3 + 8 ], %g1                           
 200c574:	80 a0 60 00 	cmp  %g1, 0                                    
 200c578:	32 bf ff ec 	bne,a   200c528 <rtems_bdbuf_purge+0xa0>       <== NEVER TAKEN
 200c57c:	f6 26 a0 04 	st  %i3, [ %i2 + 4 ]                           <== NOT EXECUTED
      /* Left */                                                      
      ++prev;                                                         
      *prev = cur;                                                    
      cur = cur->avl.left;                                            
    }                                                                 
    else if (cur->avl.right != NULL)                                  
 200c580:	c2 06 e0 0c 	ld  [ %i3 + 0xc ], %g1                         
 200c584:	80 a0 60 00 	cmp  %g1, 0                                    
 200c588:	32 bf ff e8 	bne,a   200c528 <rtems_bdbuf_purge+0xa0>       <== NEVER TAKEN
 200c58c:	f6 26 a0 04 	st  %i3, [ %i2 + 4 ]                           <== NOT EXECUTED
      *prev = cur;                                                    
      cur = cur->avl.right;                                           
    }                                                                 
    else                                                              
    {                                                                 
      while (*prev != NULL && cur == (*prev)->avl.right)              
 200c590:	c6 06 80 00 	ld  [ %i2 ], %g3                               
 200c594:	80 a0 e0 00 	cmp  %g3, 0                                    
 200c598:	22 80 00 11 	be,a   200c5dc <rtems_bdbuf_purge+0x154>       <== ALWAYS TAKEN
 200c59c:	35 00 80 6a 	sethi  %hi(0x201a800), %i2                     
 200c5a0:	c4 00 e0 0c 	ld  [ %g3 + 0xc ], %g2                         <== NOT EXECUTED
 200c5a4:	80 a6 c0 02 	cmp  %i3, %g2                                  <== NOT EXECUTED
 200c5a8:	22 80 00 09 	be,a   200c5cc <rtems_bdbuf_purge+0x144>       <== NOT EXECUTED
 200c5ac:	c2 06 bf fc 	ld  [ %i2 + -4 ], %g1                          <== NOT EXECUTED
  rtems_bdbuf_buffer **prev = stack;                                  
  rtems_bdbuf_buffer *cur = bdbuf_cache.tree;                         
                                                                      
  *prev = NULL;                                                       
                                                                      
  while (cur != NULL)                                                 
 200c5b0:	10 80 00 34 	b  200c680 <rtems_bdbuf_purge+0x1f8>           <== NOT EXECUTED
 200c5b4:	80 a0 a0 00 	cmp  %g2, 0                                    <== NOT EXECUTED
      *prev = cur;                                                    
      cur = cur->avl.right;                                           
    }                                                                 
    else                                                              
    {                                                                 
      while (*prev != NULL && cur == (*prev)->avl.right)              
 200c5b8:	80 a0 80 03 	cmp  %g2, %g3                                  <== NOT EXECUTED
 200c5bc:	12 80 00 30 	bne  200c67c <rtems_bdbuf_purge+0x1f4>         <== NOT EXECUTED
 200c5c0:	b4 06 bf fc 	add  %i2, -4, %i2                              <== NOT EXECUTED
 200c5c4:	86 10 00 01 	mov  %g1, %g3                                  <== NOT EXECUTED
 200c5c8:	c2 06 bf fc 	ld  [ %i2 + -4 ], %g1                          <== NOT EXECUTED
 200c5cc:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
 200c5d0:	32 bf ff fa 	bne,a   200c5b8 <rtems_bdbuf_purge+0x130>      <== NOT EXECUTED
 200c5d4:	c4 00 60 0c 	ld  [ %g1 + 0xc ], %g2                         <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Chain_Prepend(                             
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  _Chain_Insert(_Chain_Head(the_chain), the_node);                    
 200c5d8:	35 00 80 6a 	sethi  %hi(0x201a800), %i2                     <== NOT EXECUTED
  while ((node = rtems_chain_get (purge_list)) != NULL)               
  {                                                                   
    rtems_bdbuf_buffer *bd = (rtems_bdbuf_buffer *) node;             
                                                                      
    if (bd->waiters == 0)                                             
      wake_buffer_waiters = true;                                     
 200c5dc:	b6 10 20 00 	clr  %i3                                       
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 200c5e0:	b8 10 20 01 	mov  1, %i4                                    
 200c5e4:	b4 16 a1 ec 	or  %i2, 0x1ec, %i2                            
 */                                                                   
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(               
  rtems_chain_control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Get( the_chain );                                     
 200c5e8:	7f ff ef 3e 	call  20082e0 <_Chain_Get>                     
 200c5ec:	90 10 00 10 	mov  %l0, %o0                                  
rtems_bdbuf_purge_list (rtems_chain_control *purge_list)              
{                                                                     
  bool wake_buffer_waiters = false;                                   
  rtems_chain_node *node = NULL;                                      
                                                                      
  while ((node = rtems_chain_get (purge_list)) != NULL)               
 200c5f0:	b2 92 20 00 	orcc  %o0, 0, %i1                              
 200c5f4:	02 80 00 17 	be  200c650 <rtems_bdbuf_purge+0x1c8>          
 200c5f8:	80 8e e0 ff 	btst  0xff, %i3                                
  {                                                                   
    rtems_bdbuf_buffer *bd = (rtems_bdbuf_buffer *) node;             
                                                                      
    if (bd->waiters == 0)                                             
 200c5fc:	c2 06 60 2c 	ld  [ %i1 + 0x2c ], %g1                        
 200c600:	80 a0 60 00 	cmp  %g1, 0                                    
 200c604:	22 80 00 02 	be,a   200c60c <rtems_bdbuf_purge+0x184>       
 200c608:	b6 10 20 01 	mov  1, %i3                                    
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 200c60c:	f8 26 60 28 	st  %i4, [ %i1 + 0x28 ]                        
static void                                                           
rtems_bdbuf_discard_buffer (rtems_bdbuf_buffer *bd)                   
{                                                                     
  rtems_bdbuf_make_empty (bd);                                        
                                                                      
  if (bd->waiters == 0)                                               
 200c610:	c2 06 60 2c 	ld  [ %i1 + 0x2c ], %g1                        
 200c614:	80 a0 60 00 	cmp  %g1, 0                                    
 200c618:	12 bf ff f4 	bne  200c5e8 <rtems_bdbuf_purge+0x160>         
 200c61c:	01 00 00 00 	nop                                            
  {                                                                   
    rtems_bdbuf_remove_from_tree (bd);                                
 200c620:	7f ff fe 72 	call  200bfe8 <rtems_bdbuf_remove_from_tree>   
 200c624:	90 10 00 19 	mov  %i1, %o0                                  
 200c628:	92 10 00 19 	mov  %i1, %o1                                  
 200c62c:	90 10 00 1a 	mov  %i2, %o0                                  
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 200c630:	c0 26 60 28 	clr  [ %i1 + 0x28 ]                            
 200c634:	40 00 11 e7 	call  2010dd0 <_Chain_Insert>                  
 200c638:	01 00 00 00 	nop                                            
 200c63c:	7f ff ef 29 	call  20082e0 <_Chain_Get>                     
 200c640:	90 10 00 10 	mov  %l0, %o0                                  
rtems_bdbuf_purge_list (rtems_chain_control *purge_list)              
{                                                                     
  bool wake_buffer_waiters = false;                                   
  rtems_chain_node *node = NULL;                                      
                                                                      
  while ((node = rtems_chain_get (purge_list)) != NULL)               
 200c644:	b2 92 20 00 	orcc  %o0, 0, %i1                              
 200c648:	12 bf ff ed 	bne  200c5fc <rtems_bdbuf_purge+0x174>         <== NEVER TAKEN
 200c64c:	80 8e e0 ff 	btst  0xff, %i3                                
      wake_buffer_waiters = true;                                     
                                                                      
    rtems_bdbuf_discard_buffer (bd);                                  
  }                                                                   
                                                                      
  if (wake_buffer_waiters)                                            
 200c650:	02 80 00 04 	be  200c660 <rtems_bdbuf_purge+0x1d8>          
 200c654:	11 00 80 6a 	sethi  %hi(0x201a800), %o0                     
    rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);                   
 200c658:	7f ff fd d9 	call  200bdbc <rtems_bdbuf_wake>               
 200c65c:	90 12 22 20 	or  %o0, 0x220, %o0	! 201aa20 <bdbuf_cache+0x78>
                                                                      
  rtems_chain_initialize_empty (&purge_list);                         
  rtems_bdbuf_lock_cache ();                                          
  rtems_bdbuf_gather_for_purge (&purge_list, compare, dev);           
  rtems_bdbuf_purge_list (&purge_list);                               
  rtems_bdbuf_unlock_cache ();                                        
 200c660:	7f ff fd 25 	call  200baf4 <rtems_bdbuf_unlock_cache>       
 200c664:	01 00 00 00 	nop                                            
}                                                                     
 200c668:	81 c7 e0 08 	ret                                            
 200c66c:	81 e8 00 00 	restore                                        
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 200c670:	e6 26 e0 28 	st  %l3, [ %i3 + 0x28 ]                        
        default:                                                      
          rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_STATE_11);
      }                                                               
    }                                                                 
                                                                      
    if (cur->avl.left != NULL)                                        
 200c674:	10 bf ff a9 	b  200c518 <rtems_bdbuf_purge+0x90>            
 200c678:	c2 06 e0 08 	ld  [ %i3 + 8 ], %g1                           
  rtems_bdbuf_buffer **prev = stack;                                  
  rtems_bdbuf_buffer *cur = bdbuf_cache.tree;                         
                                                                      
  *prev = NULL;                                                       
                                                                      
  while (cur != NULL)                                                 
 200c67c:	80 a0 a0 00 	cmp  %g2, 0                                    <== NOT EXECUTED
 200c680:	22 bf ff d7 	be,a   200c5dc <rtems_bdbuf_purge+0x154>       <== NOT EXECUTED
 200c684:	35 00 80 6a 	sethi  %hi(0x201a800), %i2                     <== NOT EXECUTED
 200c688:	10 bf ff 94 	b  200c4d8 <rtems_bdbuf_purge+0x50>            <== NOT EXECUTED
 200c68c:	b6 10 00 02 	mov  %g2, %i3                                  <== NOT EXECUTED
                                                                      

0200b898 <rtems_bdbuf_purge_compare_major>: } static bool rtems_bdbuf_purge_compare_major (dev_t a, dev_t b) { return rtems_filesystem_dev_major_t (a) == rtems_filesystem_dev_major_t (b);
 200b898:	94 1a 00 0a 	xor  %o0, %o2, %o2                             <== NOT EXECUTED
}                                                                     
 200b89c:	80 a0 00 0a 	cmp  %g0, %o2                                  <== NOT EXECUTED
 200b8a0:	81 c3 e0 08 	retl                                           <== NOT EXECUTED
 200b8a4:	90 60 3f ff 	subx  %g0, -1, %o0                             <== NOT EXECUTED
                                                                      

0200e004 <rtems_bdbuf_purge_major>: void rtems_bdbuf_purge_major (rtems_device_major_number major) { dev_t dev = rtems_filesystem_make_dev_t (major, 0); rtems_bdbuf_purge (rtems_bdbuf_purge_compare_major, dev);
 200e004:	92 10 00 08 	mov  %o0, %o1                                  <== NOT EXECUTED
 200e008:	94 10 20 00 	clr  %o2                                       <== NOT EXECUTED
 200e00c:	11 00 80 2e 	sethi  %hi(0x200b800), %o0                     <== NOT EXECUTED
 200e010:	90 12 20 98 	or  %o0, 0x98, %o0	! 200b898 <rtems_bdbuf_purge_compare_major><== NOT EXECUTED
 200e014:	82 13 c0 00 	mov  %o7, %g1                                  <== NOT EXECUTED
 200e018:	7f ff f9 1c 	call  200c488 <rtems_bdbuf_purge>              <== NOT EXECUTED
 200e01c:	9e 10 40 00 	mov  %g1, %o7                                  <== NOT EXECUTED
                                                                      

0200d97c <rtems_bdbuf_read>: rtems_status_code rtems_bdbuf_read (dev_t dev, rtems_blkdev_bnum block, rtems_bdbuf_buffer **bd_ptr) {
 200d97c:	9d e3 bf 88 	save  %sp, -120, %sp                           
                         rtems_blkdev_bnum  *media_block_ptr,         
                         size_t             *bds_per_group_ptr)       
{                                                                     
  rtems_disk_device *dd = NULL;                                       
                                                                      
  if (!bdbuf_cache.initialised)                                       
 200d980:	3b 00 80 6a 	sethi  %hi(0x201a800), %i5                     
 200d984:	ba 17 61 a8 	or  %i5, 0x1a8, %i5	! 201a9a8 <bdbuf_cache>    
 200d988:	c2 0f 60 88 	ldub  [ %i5 + 0x88 ], %g1                      
rtems_bdbuf_read (dev_t                dev,                           
                  rtems_blkdev_bnum    block,                         
                  rtems_bdbuf_buffer **bd_ptr)                        
{                                                                     
  rtems_status_code     sc = RTEMS_SUCCESSFUL;                        
  rtems_disk_device    *dd = NULL;                                    
 200d98c:	c0 27 bf f4 	clr  [ %fp + -12 ]                             
  rtems_blkdev_request *req = NULL;                                   
  rtems_bdbuf_buffer   *bd = NULL;                                    
  rtems_blkdev_bnum     media_block = 0;                              
 200d990:	c0 27 bf f8 	clr  [ %fp + -8 ]                              
  size_t                bds_per_group = 0;                            
 200d994:	c0 27 bf fc 	clr  [ %fp + -4 ]                              
                                                                      
rtems_status_code                                                     
rtems_bdbuf_read (dev_t                dev,                           
                  rtems_blkdev_bnum    block,                         
                  rtems_bdbuf_buffer **bd_ptr)                        
{                                                                     
 200d998:	84 10 00 18 	mov  %i0, %g2                                  
                         rtems_blkdev_bnum  *media_block_ptr,         
                         size_t             *bds_per_group_ptr)       
{                                                                     
  rtems_disk_device *dd = NULL;                                       
                                                                      
  if (!bdbuf_cache.initialised)                                       
 200d99c:	80 a0 60 00 	cmp  %g1, 0                                    
 200d9a0:	02 80 00 9f 	be  200dc1c <rtems_bdbuf_read+0x2a0>           <== NEVER TAKEN
 200d9a4:	b0 10 20 16 	mov  0x16, %i0                                 
 200d9a8:	90 10 00 02 	mov  %g2, %o0                                  
 200d9ac:	92 10 00 19 	mov  %i1, %o1                                  
 200d9b0:	94 10 00 1a 	mov  %i2, %o2                                  
 200d9b4:	96 07 bf f4 	add  %fp, -12, %o3                             
 200d9b8:	98 07 bf f8 	add  %fp, -8, %o4                              
 200d9bc:	7f ff f9 4f 	call  200bef8 <rtems_bdbuf_obtain_disk.part.8> 
 200d9c0:	9a 07 bf fc 	add  %fp, -4, %o5                              
  rtems_bdbuf_buffer   *bd = NULL;                                    
  rtems_blkdev_bnum     media_block = 0;                              
  size_t                bds_per_group = 0;                            
                                                                      
  sc = rtems_bdbuf_obtain_disk (dev, block, &dd, &media_block, &bds_per_group);
  if (sc != RTEMS_SUCCESSFUL)                                         
 200d9c4:	b0 92 20 00 	orcc  %o0, 0, %i0                              
 200d9c8:	12 80 00 95 	bne  200dc1c <rtems_bdbuf_read+0x2a0>          <== NEVER TAKEN
 200d9cc:	01 00 00 00 	nop                                            
  /*                                                                  
   * TODO: This type of request structure is wrong and should be removed.
   */                                                                 
#define bdbuf_alloc(size) __builtin_alloca (size)                     
                                                                      
  req = bdbuf_alloc (sizeof (rtems_blkdev_request) +                  
 200d9d0:	03 00 80 63 	sethi  %hi(0x2018c00), %g1                     
 200d9d4:	e8 00 63 48 	ld  [ %g1 + 0x348 ], %l4	! 2018f48 <rtems_bdbuf_configuration>
 200d9d8:	a8 05 20 01 	inc  %l4                                       
 200d9dc:	83 2d 20 04 	sll  %l4, 4, %g1                               
 200d9e0:	82 00 60 20 	add  %g1, 0x20, %g1                            
                                                                      
  if (rtems_bdbuf_tracer)                                             
    printf ("bdbuf:read: %" PRIu32 " (%" PRIu32 ") (dev = %08x)\n",   
            media_block + dd->start, block, (unsigned) dev);          
                                                                      
  rtems_bdbuf_lock_cache ();                                          
 200d9e4:	7f ff f7 b1 	call  200b8a8 <rtems_bdbuf_lock_cache>         
 200d9e8:	9c 23 80 01 	sub  %sp, %g1, %sp                             
  rtems_bdbuf_create_read_request (dd, media_block, bds_per_group, req, &bd);
 200d9ec:	e2 07 bf f4 	ld  [ %fp + -12 ], %l1                         
  /*                                                                  
   * TODO: This type of request structure is wrong and should be removed.
   */                                                                 
#define bdbuf_alloc(size) __builtin_alloca (size)                     
                                                                      
  req = bdbuf_alloc (sizeof (rtems_blkdev_request) +                  
 200d9f0:	a0 03 a0 60 	add  %sp, 0x60, %l0                            
                                 rtems_blkdev_request    *req,        
                                 rtems_bdbuf_buffer     **bd_ptr)     
{                                                                     
  rtems_bdbuf_buffer *bd = NULL;                                      
  rtems_blkdev_bnum   media_block_end = dd->start + dd->size;         
  rtems_blkdev_bnum   media_block_count = dd->block_size / dd->media_block_size;
 200d9f4:	e6 04 60 20 	ld  [ %l1 + 0x20 ], %l3                        
 200d9f8:	d2 04 60 24 	ld  [ %l1 + 0x24 ], %o1                        
 200d9fc:	40 00 24 fc 	call  2016dec <.udiv>                          
 200da00:	90 10 00 13 	mov  %l3, %o0                                  
                                                                      
  if (media_block_end - media_block < transfer_count)                 
    transfer_count = media_block_end - media_block;                   
                                                                      
  req->req = RTEMS_BLKDEV_REQ_READ;                                   
  req->req_done = rtems_bdbuf_transfer_done;                          
 200da04:	03 00 80 2e 	sethi  %hi(0x200b800), %g1                     
 200da08:	82 10 63 b4 	or  %g1, 0x3b4, %g1	! 200bbb4 <rtems_bdbuf_transfer_done>
                                 rtems_bdbuf_buffer     **bd_ptr)     
{                                                                     
  rtems_bdbuf_buffer *bd = NULL;                                      
  rtems_blkdev_bnum   media_block_end = dd->start + dd->size;         
  rtems_blkdev_bnum   media_block_count = dd->block_size / dd->media_block_size;
  dev_t               dev = dd->dev;                                  
 200da0c:	f8 04 40 00 	ld  [ %l1 ], %i4                               
 200da10:	f2 04 60 04 	ld  [ %l1 + 4 ], %i1                           
                                 size_t                   bds_per_group,
                                 rtems_blkdev_request    *req,        
                                 rtems_bdbuf_buffer     **bd_ptr)     
{                                                                     
  rtems_bdbuf_buffer *bd = NULL;                                      
  rtems_blkdev_bnum   media_block_end = dd->start + dd->size;         
 200da14:	ec 1c 60 18 	ldd  [ %l1 + 0x18 ], %l6                       
  if (rtems_bdbuf_tracer)                                             
    printf ("bdbuf:read: %" PRIu32 " (%" PRIu32 ") (dev = %08x)\n",   
            media_block + dd->start, block, (unsigned) dev);          
                                                                      
  rtems_bdbuf_lock_cache ();                                          
  rtems_bdbuf_create_read_request (dd, media_block, bds_per_group, req, &bd);
 200da18:	f4 07 bf f8 	ld  [ %fp + -8 ], %i2                          
 200da1c:	ea 07 bf fc 	ld  [ %fp + -4 ], %l5                          
                                                                      
  if (media_block_end - media_block < transfer_count)                 
    transfer_count = media_block_end - media_block;                   
                                                                      
  req->req = RTEMS_BLKDEV_REQ_READ;                                   
  req->req_done = rtems_bdbuf_transfer_done;                          
 200da20:	c2 24 20 04 	st  %g1, [ %l0 + 4 ]                           
                                 rtems_blkdev_request    *req,        
                                 rtems_bdbuf_buffer     **bd_ptr)     
{                                                                     
  rtems_bdbuf_buffer *bd = NULL;                                      
  rtems_blkdev_bnum   media_block_end = dd->start + dd->size;         
  rtems_blkdev_bnum   media_block_count = dd->block_size / dd->media_block_size;
 200da24:	a4 10 00 08 	mov  %o0, %l2                                  
  uint32_t            transfer_count = bdbuf_config.max_read_ahead_blocks + 1;
                                                                      
  if (media_block_end - media_block < transfer_count)                 
    transfer_count = media_block_end - media_block;                   
                                                                      
  req->req = RTEMS_BLKDEV_REQ_READ;                                   
 200da28:	c0 24 00 00 	clr  [ %l0 ]                                   
  req->req_done = rtems_bdbuf_transfer_done;                          
  req->done_arg = req;                                                
  req->io_task = rtems_task_self ();                                  
 200da2c:	40 00 0c 14 	call  2010a7c <rtems_task_self>                
 200da30:	e0 24 20 08 	st  %l0, [ %l0 + 8 ]                           
  req->status = RTEMS_RESOURCE_IN_USE;                                
 200da34:	82 10 20 0c 	mov  0xc, %g1                                  
    transfer_count = media_block_end - media_block;                   
                                                                      
  req->req = RTEMS_BLKDEV_REQ_READ;                                   
  req->req_done = rtems_bdbuf_transfer_done;                          
  req->done_arg = req;                                                
  req->io_task = rtems_task_self ();                                  
 200da38:	d0 24 20 14 	st  %o0, [ %l0 + 0x14 ]                        
  req->status = RTEMS_RESOURCE_IN_USE;                                
 200da3c:	c2 24 20 0c 	st  %g1, [ %l0 + 0xc ]                         
  req->bufnum = 0;                                                    
                                                                      
  bd = rtems_bdbuf_get_buffer_for_access (dev, media_block, bds_per_group);
 200da40:	92 10 00 19 	mov  %i1, %o1                                  
  req->req = RTEMS_BLKDEV_REQ_READ;                                   
  req->req_done = rtems_bdbuf_transfer_done;                          
  req->done_arg = req;                                                
  req->io_task = rtems_task_self ();                                  
  req->status = RTEMS_RESOURCE_IN_USE;                                
  req->bufnum = 0;                                                    
 200da44:	c0 24 20 10 	clr  [ %l0 + 0x10 ]                            
                                                                      
  bd = rtems_bdbuf_get_buffer_for_access (dev, media_block, bds_per_group);
 200da48:	90 10 00 1c 	mov  %i4, %o0                                  
 200da4c:	94 10 00 1a 	mov  %i2, %o2                                  
 200da50:	7f ff fe 09 	call  200d274 <rtems_bdbuf_get_buffer_for_access>
 200da54:	96 10 00 15 	mov  %l5, %o3                                  
                                                                      
  *bd_ptr = bd;                                                       
                                                                      
  req->bufs [0].user   = bd;                                          
 200da58:	d0 24 20 24 	st  %o0, [ %l0 + 0x24 ]                        
  req->bufs [0].block  = media_block;                                 
  req->bufs [0].length = block_size;                                  
  req->bufs [0].buffer = bd->buffer;                                  
 200da5c:	c4 02 20 24 	ld  [ %o0 + 0x24 ], %g2                        
                                                                      
  if (rtems_bdbuf_tracer)                                             
    rtems_bdbuf_show_users ("read", bd);                              
                                                                      
  switch (bd->state)                                                  
 200da60:	c2 02 20 28 	ld  [ %o0 + 0x28 ], %g1                        
  bd = rtems_bdbuf_get_buffer_for_access (dev, media_block, bds_per_group);
                                                                      
  *bd_ptr = bd;                                                       
                                                                      
  req->bufs [0].user   = bd;                                          
  req->bufs [0].block  = media_block;                                 
 200da64:	f4 24 20 18 	st  %i2, [ %l0 + 0x18 ]                        
  req->bufs [0].length = block_size;                                  
 200da68:	e6 24 20 1c 	st  %l3, [ %l0 + 0x1c ]                        
  req->bufs [0].buffer = bd->buffer;                                  
 200da6c:	c4 24 20 20 	st  %g2, [ %l0 + 0x20 ]                        
                                                                      
  if (rtems_bdbuf_tracer)                                             
    rtems_bdbuf_show_users ("read", bd);                              
                                                                      
  switch (bd->state)                                                  
 200da70:	80 a0 60 02 	cmp  %g1, 2                                    
 200da74:	02 80 00 5a 	be  200dbdc <rtems_bdbuf_read+0x260>           
 200da78:	a2 10 00 08 	mov  %o0, %l1                                  
 200da7c:	80 a0 60 07 	cmp  %g1, 7                                    
 200da80:	02 80 00 57 	be  200dbdc <rtems_bdbuf_read+0x260>           
 200da84:	80 a0 60 01 	cmp  %g1, 1                                    
 200da88:	22 80 00 06 	be,a   200daa0 <rtems_bdbuf_read+0x124>        <== ALWAYS TAKEN
 200da8c:	ae 05 c0 16 	add  %l7, %l6, %l7                             
      return;                                                         
    case RTEMS_BDBUF_STATE_EMPTY:                                     
      rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_TRANSFER);         
      break;                                                          
    default:                                                          
      rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_1);
 200da90:	d0 02 20 28 	ld  [ %o0 + 0x28 ], %o0                        <== NOT EXECUTED
 200da94:	13 10 80 00 	sethi  %hi(0x42000000), %o1                    <== NOT EXECUTED
 200da98:	7f ff f7 a0 	call  200b918 <rtems_bdbuf_fatal>              <== NOT EXECUTED
 200da9c:	92 12 60 1d 	or  %o1, 0x1d, %o1	! 4200001d <RAM_END+0x3fc0001d><== NOT EXECUTED
  dev_t               dev = dd->dev;                                  
  uint32_t            block_size = dd->block_size;                    
  uint32_t            transfer_index = 1;                             
  uint32_t            transfer_count = bdbuf_config.max_read_ahead_blocks + 1;
                                                                      
  if (media_block_end - media_block < transfer_count)                 
 200daa0:	ae 25 c0 1a 	sub  %l7, %i2, %l7                             
  req->bufs [0].buffer = bd->buffer;                                  
                                                                      
  if (rtems_bdbuf_tracer)                                             
    rtems_bdbuf_show_users ("read", bd);                              
                                                                      
  switch (bd->state)                                                  
 200daa4:	80 a5 c0 14 	cmp  %l7, %l4                                  
 200daa8:	38 80 00 02 	bgu,a   200dab0 <rtems_bdbuf_read+0x134>       
 200daac:	ae 10 00 14 	mov  %l4, %l7                                  
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 200dab0:	82 10 20 09 	mov  9, %g1                                    
 200dab4:	c2 24 60 28 	st  %g1, [ %l1 + 0x28 ]                        
      return;                                                         
    case RTEMS_BDBUF_STATE_EMPTY:                                     
      rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_TRANSFER);         
      break;                                                          
    default:                                                          
      rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_1);
 200dab8:	ac 10 00 10 	mov  %l0, %l6                                  
      break;                                                          
  }                                                                   
                                                                      
  while (transfer_index < transfer_count)                             
 200dabc:	80 a5 e0 01 	cmp  %l7, 1                                    
 200dac0:	08 80 00 28 	bleu  200db60 <rtems_bdbuf_read+0x1e4>         
 200dac4:	a8 10 20 01 	mov  1, %l4                                    
                                       rtems_blkdev_bnum block,       
                                       size_t            bds_per_group)
{                                                                     
  rtems_bdbuf_buffer *bd = NULL;                                      
                                                                      
  bd = rtems_bdbuf_avl_search (&bdbuf_cache.tree, dev, block);        
 200dac8:	c4 07 60 40 	ld  [ %i5 + 0x40 ], %g2                        
                        dev_t                dev,                     
                        rtems_blkdev_bnum    block)                   
{                                                                     
  rtems_bdbuf_buffer* p = *root;                                      
                                                                      
  while ((p != NULL) && ((p->dev != dev) || (p->block != block)))     
 200dacc:	80 a0 a0 00 	cmp  %g2, 0                                    
 200dad0:	02 80 00 0d 	be  200db04 <rtems_bdbuf_read+0x188>           <== NEVER TAKEN
 200dad4:	b4 06 80 12 	add  %i2, %l2, %i2                             
 200dad8:	c6 00 a0 18 	ld  [ %g2 + 0x18 ], %g3                        
 200dadc:	80 a7 00 03 	cmp  %i4, %g3                                  
 200dae0:	02 80 00 34 	be  200dbb0 <rtems_bdbuf_read+0x234>           <== ALWAYS TAKEN
 200dae4:	c8 00 a0 1c 	ld  [ %g2 + 0x1c ], %g4                        
  {                                                                   
    if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))    
 200dae8:	80 a7 00 03 	cmp  %i4, %g3                                  <== NOT EXECUTED
 200daec:	08 80 00 2b 	bleu  200db98 <rtems_bdbuf_read+0x21c>         <== NOT EXECUTED
 200daf0:	01 00 00 00 	nop                                            <== NOT EXECUTED
    {                                                                 
      p = p->avl.right;                                               
 200daf4:	c4 00 a0 0c 	ld  [ %g2 + 0xc ], %g2                         <== NOT EXECUTED
                        dev_t                dev,                     
                        rtems_blkdev_bnum    block)                   
{                                                                     
  rtems_bdbuf_buffer* p = *root;                                      
                                                                      
  while ((p != NULL) && ((p->dev != dev) || (p->block != block)))     
 200daf8:	80 a0 a0 00 	cmp  %g2, 0                                    
 200dafc:	32 bf ff f8 	bne,a   200dadc <rtems_bdbuf_read+0x160>       <== NEVER TAKEN
 200db00:	c6 00 a0 18 	ld  [ %g2 + 0x18 ], %g3                        <== NOT EXECUTED
                                                                      
  bd = rtems_bdbuf_avl_search (&bdbuf_cache.tree, dev, block);        
                                                                      
  if (bd == NULL)                                                     
  {                                                                   
    bd = rtems_bdbuf_get_buffer_from_lru_list (dev, block, bds_per_group);
 200db04:	c2 27 bf ec 	st  %g1, [ %fp + -20 ]                         
 200db08:	90 10 00 1c 	mov  %i4, %o0                                  
 200db0c:	92 10 00 19 	mov  %i1, %o1                                  
 200db10:	94 10 00 1a 	mov  %i2, %o2                                  
 200db14:	7f ff fc d1 	call  200ce58 <rtems_bdbuf_get_buffer_from_lru_list>
 200db18:	96 10 00 15 	mov  %l5, %o3                                  
                                                                      
    if (bd != NULL)                                                   
 200db1c:	80 a2 20 00 	cmp  %o0, 0                                    
 200db20:	02 80 00 10 	be  200db60 <rtems_bdbuf_read+0x1e4>           <== ALWAYS TAKEN
 200db24:	c2 07 bf ec 	ld  [ %fp + -20 ], %g1                         
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_group_obtain (rtems_bdbuf_buffer *bd)                     
{                                                                     
  ++bd->group->users;                                                 
 200db28:	c4 02 20 30 	ld  [ %o0 + 0x30 ], %g2                        <== NOT EXECUTED
    req->bufs [transfer_index].buffer = bd->buffer;                   
                                                                      
    if (rtems_bdbuf_tracer)                                           
      rtems_bdbuf_show_users ("read-ahead", bd);                      
                                                                      
    ++transfer_index;                                                 
 200db2c:	a8 05 20 01 	inc  %l4                                       <== NOT EXECUTED
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_group_obtain (rtems_bdbuf_buffer *bd)                     
{                                                                     
  ++bd->group->users;                                                 
 200db30:	c6 00 a0 0c 	ld  [ %g2 + 0xc ], %g3                         <== NOT EXECUTED
    default:                                                          
      rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_1);
      break;                                                          
  }                                                                   
                                                                      
  while (transfer_index < transfer_count)                             
 200db34:	80 a5 00 17 	cmp  %l4, %l7                                  <== NOT EXECUTED
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_group_obtain (rtems_bdbuf_buffer *bd)                     
{                                                                     
  ++bd->group->users;                                                 
 200db38:	86 00 e0 01 	inc  %g3                                       <== NOT EXECUTED
 200db3c:	c6 20 a0 0c 	st  %g3, [ %g2 + 0xc ]                         <== NOT EXECUTED
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 200db40:	c2 22 20 28 	st  %g1, [ %o0 + 0x28 ]                        <== NOT EXECUTED
    if (bd == NULL)                                                   
      break;                                                          
                                                                      
    rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_TRANSFER);           
                                                                      
    req->bufs [transfer_index].user   = bd;                           
 200db44:	d0 25 a0 34 	st  %o0, [ %l6 + 0x34 ]                        <== NOT EXECUTED
    req->bufs [transfer_index].block  = media_block;                  
 200db48:	f4 25 a0 28 	st  %i2, [ %l6 + 0x28 ]                        <== NOT EXECUTED
    req->bufs [transfer_index].length = block_size;                   
 200db4c:	e6 25 a0 2c 	st  %l3, [ %l6 + 0x2c ]                        <== NOT EXECUTED
    req->bufs [transfer_index].buffer = bd->buffer;                   
 200db50:	c4 02 20 24 	ld  [ %o0 + 0x24 ], %g2                        <== NOT EXECUTED
 200db54:	c4 25 a0 30 	st  %g2, [ %l6 + 0x30 ]                        <== NOT EXECUTED
    default:                                                          
      rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_1);
      break;                                                          
  }                                                                   
                                                                      
  while (transfer_index < transfer_count)                             
 200db58:	12 bf ff dc 	bne  200dac8 <rtems_bdbuf_read+0x14c>          <== NOT EXECUTED
 200db5c:	ac 05 a0 10 	add  %l6, 0x10, %l6                            <== NOT EXECUTED
      rtems_bdbuf_show_users ("read-ahead", bd);                      
                                                                      
    ++transfer_index;                                                 
  }                                                                   
                                                                      
  req->bufnum = transfer_index;                                       
 200db60:	e8 24 20 10 	st  %l4, [ %l0 + 0x10 ]                        
            media_block + dd->start, block, (unsigned) dev);          
                                                                      
  rtems_bdbuf_lock_cache ();                                          
  rtems_bdbuf_create_read_request (dd, media_block, bds_per_group, req, &bd);
                                                                      
  if (req->bufnum > 0)                                                
 200db64:	80 a5 20 00 	cmp  %l4, 0                                    
 200db68:	12 80 00 1f 	bne  200dbe4 <rtems_bdbuf_read+0x268>          
 200db6c:	d2 07 bf f4 	ld  [ %fp + -12 ], %o1                         
    }                                                                 
  }                                                                   
                                                                      
  if (sc == RTEMS_SUCCESSFUL)                                         
  {                                                                   
    switch (bd->state)                                                
 200db70:	c2 04 60 28 	ld  [ %l1 + 0x28 ], %g1                        
 200db74:	80 a0 60 02 	cmp  %g1, 2                                    
 200db78:	02 80 00 2e 	be  200dc30 <rtems_bdbuf_read+0x2b4>           
 200db7c:	80 a0 60 07 	cmp  %g1, 7                                    
 200db80:	02 80 00 29 	be  200dc24 <rtems_bdbuf_read+0x2a8>           <== ALWAYS TAKEN
 200db84:	82 10 20 04 	mov  4, %g1                                    
        break;                                                        
      case RTEMS_BDBUF_STATE_MODIFIED:                                
        rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_ACCESS_MODIFIED);
        break;                                                        
      default:                                                        
        rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_4);
 200db88:	d0 04 60 28 	ld  [ %l1 + 0x28 ], %o0                        <== NOT EXECUTED
 200db8c:	13 10 80 00 	sethi  %hi(0x42000000), %o1                    <== NOT EXECUTED
 200db90:	7f ff f7 62 	call  200b918 <rtems_bdbuf_fatal>              <== NOT EXECUTED
 200db94:	92 12 60 02 	or  %o1, 2, %o1	! 42000002 <RAM_END+0x3fc00002><== NOT EXECUTED
{                                                                     
  rtems_bdbuf_buffer* p = *root;                                      
                                                                      
  while ((p != NULL) && ((p->dev != dev) || (p->block != block)))     
  {                                                                   
    if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))    
 200db98:	12 80 00 04 	bne  200dba8 <rtems_bdbuf_read+0x22c>          <== NOT EXECUTED
 200db9c:	80 a6 40 04 	cmp  %i1, %g4                                  <== NOT EXECUTED
 200dba0:	38 bf ff d6 	bgu,a   200daf8 <rtems_bdbuf_read+0x17c>       <== NOT EXECUTED
 200dba4:	c4 00 a0 0c 	ld  [ %g2 + 0xc ], %g2                         <== NOT EXECUTED
    {                                                                 
      p = p->avl.right;                                               
    }                                                                 
    else                                                              
    {                                                                 
      p = p->avl.left;                                                
 200dba8:	10 bf ff d4 	b  200daf8 <rtems_bdbuf_read+0x17c>            <== NOT EXECUTED
 200dbac:	c4 00 a0 08 	ld  [ %g2 + 8 ], %g2                           <== NOT EXECUTED
                        dev_t                dev,                     
                        rtems_blkdev_bnum    block)                   
{                                                                     
  rtems_bdbuf_buffer* p = *root;                                      
                                                                      
  while ((p != NULL) && ((p->dev != dev) || (p->block != block)))     
 200dbb0:	80 a6 40 04 	cmp  %i1, %g4                                  
 200dbb4:	12 bf ff ce 	bne  200daec <rtems_bdbuf_read+0x170>          <== NEVER TAKEN
 200dbb8:	80 a7 00 03 	cmp  %i4, %g3                                  
 200dbbc:	c6 00 a0 20 	ld  [ %g2 + 0x20 ], %g3                        
 200dbc0:	80 a6 80 03 	cmp  %i2, %g3                                  
 200dbc4:	22 bf ff e8 	be,a   200db64 <rtems_bdbuf_read+0x1e8>        <== NEVER TAKEN
 200dbc8:	e8 24 20 10 	st  %l4, [ %l0 + 0x10 ]                        <== NOT EXECUTED
  {                                                                   
    if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))    
 200dbcc:	38 bf ff cb 	bgu,a   200daf8 <rtems_bdbuf_read+0x17c>       <== ALWAYS TAKEN
 200dbd0:	c4 00 a0 0c 	ld  [ %g2 + 0xc ], %g2                         
    {                                                                 
      p = p->avl.right;                                               
    }                                                                 
    else                                                              
    {                                                                 
      p = p->avl.left;                                                
 200dbd4:	10 bf ff c9 	b  200daf8 <rtems_bdbuf_read+0x17c>            <== NOT EXECUTED
 200dbd8:	c4 00 a0 08 	ld  [ %g2 + 8 ], %g2                           <== NOT EXECUTED
  req->bufs [0].buffer = bd->buffer;                                  
                                                                      
  if (rtems_bdbuf_tracer)                                             
    rtems_bdbuf_show_users ("read", bd);                              
                                                                      
  switch (bd->state)                                                  
 200dbdc:	10 bf ff e2 	b  200db64 <rtems_bdbuf_read+0x1e8>            
 200dbe0:	e8 04 20 10 	ld  [ %l0 + 0x10 ], %l4                        
  rtems_bdbuf_lock_cache ();                                          
  rtems_bdbuf_create_read_request (dd, media_block, bds_per_group, req, &bd);
                                                                      
  if (req->bufnum > 0)                                                
  {                                                                   
    sc = rtems_bdbuf_execute_transfer_request (dd, req, true);        
 200dbe4:	94 10 00 10 	mov  %l0, %o2                                  
 200dbe8:	90 02 60 08 	add  %o1, 8, %o0                               
 200dbec:	96 10 20 01 	mov  1, %o3                                    
 200dbf0:	7f ff fa a8 	call  200c690 <rtems_bdbuf_execute_transfer_request.isra.9>
 200dbf4:	92 02 60 28 	add  %o1, 0x28, %o1                            
    if (sc == RTEMS_SUCCESSFUL)                                       
 200dbf8:	80 a2 20 00 	cmp  %o0, 0                                    
 200dbfc:	02 80 00 11 	be  200dc40 <rtems_bdbuf_read+0x2c4>           
 200dc00:	01 00 00 00 	nop                                            
    }                                                                 
                                                                      
    *bd_ptr = bd;                                                     
  }                                                                   
  else                                                                
    *bd_ptr = NULL;                                                   
 200dc04:	c0 26 c0 00 	clr  [ %i3 ]                                   
 200dc08:	b0 10 00 08 	mov  %o0, %i0                                  
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
 200dc0c:	7f ff f7 ba 	call  200baf4 <rtems_bdbuf_unlock_cache>       
 200dc10:	01 00 00 00 	nop                                            
  rtems_bdbuf_release_disk (dd);                                      
 200dc14:	7f ff f7 d0 	call  200bb54 <rtems_bdbuf_release_disk>       
 200dc18:	d0 07 bf f4 	ld  [ %fp + -12 ], %o0                         
                                                                      
  return sc;                                                          
}                                                                     
 200dc1c:	81 c7 e0 08 	ret                                            
 200dc20:	81 e8 00 00 	restore                                        
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 200dc24:	c2 24 60 28 	st  %g1, [ %l1 + 0x28 ]                        
    {                                                                 
      rtems_bdbuf_show_users ("read", bd);                            
      rtems_bdbuf_show_usage ();                                      
    }                                                                 
                                                                      
    *bd_ptr = bd;                                                     
 200dc28:	10 bf ff f9 	b  200dc0c <rtems_bdbuf_read+0x290>            
 200dc2c:	e2 26 c0 00 	st  %l1, [ %i3 ]                               
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 200dc30:	82 10 20 03 	mov  3, %g1                                    
 200dc34:	c2 24 60 28 	st  %g1, [ %l1 + 0x28 ]                        
    {                                                                 
      rtems_bdbuf_show_users ("read", bd);                            
      rtems_bdbuf_show_usage ();                                      
    }                                                                 
                                                                      
    *bd_ptr = bd;                                                     
 200dc38:	10 bf ff f5 	b  200dc0c <rtems_bdbuf_read+0x290>            
 200dc3c:	e2 26 c0 00 	st  %l1, [ %i3 ]                               
 */                                                                   
RTEMS_INLINE_ROUTINE void rtems_chain_extract(                        
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Extract( the_node );                                         
 200dc40:	7f ff e9 9f 	call  20082bc <_Chain_Extract>                 
 200dc44:	90 10 00 11 	mov  %l1, %o0                                  
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_group_obtain (rtems_bdbuf_buffer *bd)                     
{                                                                     
  ++bd->group->users;                                                 
 200dc48:	c2 04 60 30 	ld  [ %l1 + 0x30 ], %g1                        
 200dc4c:	c4 00 60 0c 	ld  [ %g1 + 0xc ], %g2                         
 200dc50:	84 00 a0 01 	inc  %g2                                       
 200dc54:	10 bf ff c7 	b  200db70 <rtems_bdbuf_read+0x1f4>            
 200dc58:	c4 20 60 0c 	st  %g2, [ %g1 + 0xc ]                         
                                                                      

0200dc5c <rtems_bdbuf_release>: return RTEMS_SUCCESSFUL; } rtems_status_code rtems_bdbuf_release (rtems_bdbuf_buffer *bd) {
 200dc5c:	9d e3 bf a0 	save  %sp, -96, %sp                            
}                                                                     
                                                                      
static rtems_status_code                                              
rtems_bdbuf_check_bd_and_lock_cache (rtems_bdbuf_buffer *bd, const char *kind)
{                                                                     
  if (!bdbuf_cache.initialised)                                       
 200dc60:	3b 00 80 6a 	sethi  %hi(0x201a800), %i5                     
 200dc64:	ba 17 61 a8 	or  %i5, 0x1a8, %i5	! 201a9a8 <bdbuf_cache>    
 200dc68:	c2 0f 60 88 	ldub  [ %i5 + 0x88 ], %g1                      
 200dc6c:	80 a0 60 00 	cmp  %g1, 0                                    
 200dc70:	02 80 00 15 	be  200dcc4 <rtems_bdbuf_release+0x68>         <== NEVER TAKEN
 200dc74:	84 10 20 16 	mov  0x16, %g2                                 
    return RTEMS_NOT_CONFIGURED;                                      
  if (bd == NULL)                                                     
 200dc78:	80 a6 20 00 	cmp  %i0, 0                                    
 200dc7c:	02 80 00 14 	be  200dccc <rtems_bdbuf_release+0x70>         <== NEVER TAKEN
 200dc80:	84 10 20 09 	mov  9, %g2                                    
  if (rtems_bdbuf_tracer)                                             
  {                                                                   
    printf ("bdbuf:%s: %" PRIu32 "\n", kind, bd->block);              
    rtems_bdbuf_show_users (kind, bd);                                
  }                                                                   
  rtems_bdbuf_lock_cache();                                           
 200dc84:	7f ff f7 09 	call  200b8a8 <rtems_bdbuf_lock_cache>         
 200dc88:	01 00 00 00 	nop                                            
                                                                      
  sc = rtems_bdbuf_check_bd_and_lock_cache (bd, "release");           
  if (sc != RTEMS_SUCCESSFUL)                                         
    return sc;                                                        
                                                                      
  switch (bd->state)                                                  
 200dc8c:	c2 06 20 28 	ld  [ %i0 + 0x28 ], %g1                        
 200dc90:	80 a0 60 04 	cmp  %g1, 4                                    
 200dc94:	02 80 00 16 	be  200dcec <rtems_bdbuf_release+0x90>         
 200dc98:	01 00 00 00 	nop                                            
 200dc9c:	08 80 00 0e 	bleu  200dcd4 <rtems_bdbuf_release+0x78>       
 200dca0:	80 a0 60 03 	cmp  %g1, 3                                    
 200dca4:	80 a0 60 06 	cmp  %g1, 6                                    
 200dca8:	18 80 00 0d 	bgu  200dcdc <rtems_bdbuf_release+0x80>        <== NEVER TAKEN
 200dcac:	01 00 00 00 	nop                                            
    case RTEMS_BDBUF_STATE_ACCESS_CACHED:                             
      rtems_bdbuf_add_to_lru_list_after_access (bd);                  
      break;                                                          
    case RTEMS_BDBUF_STATE_ACCESS_EMPTY:                              
    case RTEMS_BDBUF_STATE_ACCESS_PURGED:                             
      rtems_bdbuf_discard_buffer_after_access (bd);                   
 200dcb0:	7f ff f9 da 	call  200c418 <rtems_bdbuf_discard_buffer_after_access>
 200dcb4:	90 10 00 18 	mov  %i0, %o0                                  
  }                                                                   
                                                                      
  if (rtems_bdbuf_tracer)                                             
    rtems_bdbuf_show_usage ();                                        
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
 200dcb8:	7f ff f7 8f 	call  200baf4 <rtems_bdbuf_unlock_cache>       
 200dcbc:	01 00 00 00 	nop                                            
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 200dcc0:	84 10 20 00 	clr  %g2	! 0 <PROM_START>                      
}                                                                     
 200dcc4:	81 c7 e0 08 	ret                                            
 200dcc8:	91 e8 00 02 	restore  %g0, %g2, %o0                         
 200dccc:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200dcd0:	91 e8 00 02 	restore  %g0, %g2, %o0                         <== NOT EXECUTED
                                                                      
  sc = rtems_bdbuf_check_bd_and_lock_cache (bd, "release");           
  if (sc != RTEMS_SUCCESSFUL)                                         
    return sc;                                                        
                                                                      
  switch (bd->state)                                                  
 200dcd4:	22 80 00 09 	be,a   200dcf8 <rtems_bdbuf_release+0x9c>      <== ALWAYS TAKEN
 200dcd8:	c2 06 20 30 	ld  [ %i0 + 0x30 ], %g1                        
      break;                                                          
    case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:                           
      rtems_bdbuf_add_to_modified_list_after_access (bd);             
      break;                                                          
    default:                                                          
      rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_0);
 200dcdc:	d0 06 20 28 	ld  [ %i0 + 0x28 ], %o0                        <== NOT EXECUTED
 200dce0:	13 10 80 00 	sethi  %hi(0x42000000), %o1                    <== NOT EXECUTED
 200dce4:	7f ff f7 0d 	call  200b918 <rtems_bdbuf_fatal>              <== NOT EXECUTED
 200dce8:	92 12 60 1c 	or  %o1, 0x1c, %o1	! 4200001c <RAM_END+0x3fc0001c><== NOT EXECUTED
    case RTEMS_BDBUF_STATE_ACCESS_EMPTY:                              
    case RTEMS_BDBUF_STATE_ACCESS_PURGED:                             
      rtems_bdbuf_discard_buffer_after_access (bd);                   
      break;                                                          
    case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:                           
      rtems_bdbuf_add_to_modified_list_after_access (bd);             
 200dcec:	7f ff f8 43 	call  200bdf8 <rtems_bdbuf_add_to_modified_list_after_access>
 200dcf0:	90 10 00 18 	mov  %i0, %o0                                  
      break;                                                          
 200dcf4:	30 bf ff f1 	b,a   200dcb8 <rtems_bdbuf_release+0x5c>       
RTEMS_INLINE_ROUTINE void rtems_chain_append(                         
  rtems_chain_control *the_chain,                                     
  rtems_chain_node    *the_node                                       
)                                                                     
{                                                                     
  _Chain_Append( the_chain, the_node );                               
 200dcf8:	90 07 60 44 	add  %i5, 0x44, %o0                            
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_group_release (rtems_bdbuf_buffer *bd)                    
{                                                                     
  --bd->group->users;                                                 
 200dcfc:	c4 00 60 0c 	ld  [ %g1 + 0xc ], %g2                         
 200dd00:	92 10 00 18 	mov  %i0, %o1                                  
 200dd04:	84 00 bf ff 	add  %g2, -1, %g2                              
 200dd08:	c4 20 60 0c 	st  %g2, [ %g1 + 0xc ]                         
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 200dd0c:	82 10 20 02 	mov  2, %g1                                    
 200dd10:	c2 26 20 28 	st  %g1, [ %i0 + 0x28 ]                        
 200dd14:	7f ff e9 5f 	call  2008290 <_Chain_Append>                  
 200dd18:	01 00 00 00 	nop                                            
rtems_bdbuf_add_to_lru_list_after_access (rtems_bdbuf_buffer *bd)     
{                                                                     
  rtems_bdbuf_group_release (bd);                                     
  rtems_bdbuf_make_cached_and_add_to_lru_list (bd);                   
                                                                      
  if (bd->waiters)                                                    
 200dd1c:	c2 06 20 2c 	ld  [ %i0 + 0x2c ], %g1                        
 200dd20:	80 a0 60 00 	cmp  %g1, 0                                    
 200dd24:	02 80 00 05 	be  200dd38 <rtems_bdbuf_release+0xdc>         
 200dd28:	01 00 00 00 	nop                                            
    rtems_bdbuf_wake (&bdbuf_cache.access_waiters);                   
 200dd2c:	7f ff f8 24 	call  200bdbc <rtems_bdbuf_wake>               
 200dd30:	90 07 60 68 	add  %i5, 0x68, %o0                            
 200dd34:	30 bf ff e1 	b,a   200dcb8 <rtems_bdbuf_release+0x5c>       
  else                                                                
    rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);                   
 200dd38:	7f ff f8 21 	call  200bdbc <rtems_bdbuf_wake>               
 200dd3c:	90 07 60 78 	add  %i5, 0x78, %o0                            
 200dd40:	30 bf ff de 	b,a   200dcb8 <rtems_bdbuf_release+0x5c>       
                                                                      

0200bb54 <rtems_bdbuf_release_disk>: return RTEMS_SUCCESSFUL; } static void rtems_bdbuf_release_disk (rtems_disk_device *dd) {
 200bb54:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  sc = rtems_disk_release (dd);                                       
 200bb58:	7f ff dc a5 	call  2002dec <rtems_disk_release>             
 200bb5c:	90 10 00 18 	mov  %i0, %o0                                  
  if (sc != RTEMS_SUCCESSFUL)                                         
 200bb60:	80 a2 20 00 	cmp  %o0, 0                                    
 200bb64:	12 80 00 04 	bne  200bb74 <rtems_bdbuf_release_disk+0x20>   <== NEVER TAKEN
 200bb68:	11 10 80 00 	sethi  %hi(0x42000000), %o0                    
 200bb6c:	81 c7 e0 08 	ret                                            
 200bb70:	81 e8 00 00 	restore                                        
    rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_DISK_REL);   
 200bb74:	7f ff f0 55 	call  2007cc8 <rtems_fatal_error_occurred>     <== NOT EXECUTED
 200bb78:	90 12 20 1f 	or  %o0, 0x1f, %o0                             <== NOT EXECUTED
                                                                      

0200dd44 <rtems_bdbuf_release_modified>: return RTEMS_SUCCESSFUL; } rtems_status_code rtems_bdbuf_release_modified (rtems_bdbuf_buffer *bd) {
 200dd44:	9d e3 bf a0 	save  %sp, -96, %sp                            
}                                                                     
                                                                      
static rtems_status_code                                              
rtems_bdbuf_check_bd_and_lock_cache (rtems_bdbuf_buffer *bd, const char *kind)
{                                                                     
  if (!bdbuf_cache.initialised)                                       
 200dd48:	03 00 80 6a 	sethi  %hi(0x201a800), %g1                     
 200dd4c:	c2 08 62 30 	ldub  [ %g1 + 0x230 ], %g1	! 201aa30 <bdbuf_cache+0x88>
 200dd50:	80 a0 60 00 	cmp  %g1, 0                                    
 200dd54:	02 80 00 18 	be  200ddb4 <rtems_bdbuf_release_modified+0x70><== NEVER TAKEN
 200dd58:	84 10 20 16 	mov  0x16, %g2                                 
    return RTEMS_NOT_CONFIGURED;                                      
  if (bd == NULL)                                                     
 200dd5c:	80 a6 20 00 	cmp  %i0, 0                                    
 200dd60:	02 80 00 17 	be  200ddbc <rtems_bdbuf_release_modified+0x78><== NEVER TAKEN
 200dd64:	84 10 20 09 	mov  9, %g2                                    
  if (rtems_bdbuf_tracer)                                             
  {                                                                   
    printf ("bdbuf:%s: %" PRIu32 "\n", kind, bd->block);              
    rtems_bdbuf_show_users (kind, bd);                                
  }                                                                   
  rtems_bdbuf_lock_cache();                                           
 200dd68:	7f ff f6 d0 	call  200b8a8 <rtems_bdbuf_lock_cache>         
 200dd6c:	01 00 00 00 	nop                                            
                                                                      
  sc = rtems_bdbuf_check_bd_and_lock_cache (bd, "release modified");  
  if (sc != RTEMS_SUCCESSFUL)                                         
    return sc;                                                        
                                                                      
  switch (bd->state)                                                  
 200dd70:	c2 06 20 28 	ld  [ %i0 + 0x28 ], %g1                        
 200dd74:	80 a0 60 03 	cmp  %g1, 3                                    
 200dd78:	0a 80 00 06 	bcs  200dd90 <rtems_bdbuf_release_modified+0x4c><== NEVER TAKEN
 200dd7c:	80 a0 60 05 	cmp  %g1, 5                                    
 200dd80:	08 80 00 11 	bleu  200ddc4 <rtems_bdbuf_release_modified+0x80>
 200dd84:	80 a0 60 06 	cmp  %g1, 6                                    
 200dd88:	02 80 00 06 	be  200dda0 <rtems_bdbuf_release_modified+0x5c><== ALWAYS TAKEN
 200dd8c:	01 00 00 00 	nop                                            
      break;                                                          
    case RTEMS_BDBUF_STATE_ACCESS_PURGED:                             
      rtems_bdbuf_discard_buffer_after_access (bd);                   
      break;                                                          
    default:                                                          
      rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_6);
 200dd90:	d0 06 20 28 	ld  [ %i0 + 0x28 ], %o0                        <== NOT EXECUTED
 200dd94:	13 10 80 00 	sethi  %hi(0x42000000), %o1                    <== NOT EXECUTED
 200dd98:	7f ff f6 e0 	call  200b918 <rtems_bdbuf_fatal>              <== NOT EXECUTED
 200dd9c:	92 12 60 04 	or  %o1, 4, %o1	! 42000004 <RAM_END+0x3fc00004><== NOT EXECUTED
    case RTEMS_BDBUF_STATE_ACCESS_EMPTY:                              
    case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:                           
      rtems_bdbuf_add_to_modified_list_after_access (bd);             
      break;                                                          
    case RTEMS_BDBUF_STATE_ACCESS_PURGED:                             
      rtems_bdbuf_discard_buffer_after_access (bd);                   
 200dda0:	7f ff f9 9e 	call  200c418 <rtems_bdbuf_discard_buffer_after_access>
 200dda4:	90 10 00 18 	mov  %i0, %o0                                  
  }                                                                   
                                                                      
  if (rtems_bdbuf_tracer)                                             
    rtems_bdbuf_show_usage ();                                        
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
 200dda8:	7f ff f7 53 	call  200baf4 <rtems_bdbuf_unlock_cache>       
 200ddac:	01 00 00 00 	nop                                            
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 200ddb0:	84 10 20 00 	clr  %g2	! 0 <PROM_START>                      
}                                                                     
 200ddb4:	81 c7 e0 08 	ret                                            
 200ddb8:	91 e8 00 02 	restore  %g0, %g2, %o0                         
 200ddbc:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200ddc0:	91 e8 00 02 	restore  %g0, %g2, %o0                         <== NOT EXECUTED
  switch (bd->state)                                                  
  {                                                                   
    case RTEMS_BDBUF_STATE_ACCESS_CACHED:                             
    case RTEMS_BDBUF_STATE_ACCESS_EMPTY:                              
    case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:                           
      rtems_bdbuf_add_to_modified_list_after_access (bd);             
 200ddc4:	7f ff f8 0d 	call  200bdf8 <rtems_bdbuf_add_to_modified_list_after_access>
 200ddc8:	90 10 00 18 	mov  %i0, %o0                                  
      break;                                                          
 200ddcc:	30 bf ff f7 	b,a   200dda8 <rtems_bdbuf_release_modified+0x64>
                                                                      

0200bfe8 <rtems_bdbuf_remove_from_tree>: return bdbuf_cache.buffer_waiters.count; } static void rtems_bdbuf_remove_from_tree (rtems_bdbuf_buffer *bd) {
 200bfe8:	9d e3 bf 20 	save  %sp, -224, %sp                           
                       const rtems_bdbuf_buffer* node)                
{                                                                     
  dev_t             dev = node->dev;                                  
  rtems_blkdev_bnum block = node->block;                              
                                                                      
  rtems_bdbuf_buffer*  p = *root;                                     
 200bfec:	39 00 80 6a 	sethi  %hi(0x201a800), %i4                     
 200bff0:	b8 17 21 a8 	or  %i4, 0x1a8, %i4	! 201a9a8 <bdbuf_cache>    
 200bff4:	fa 07 20 40 	ld  [ %i4 + 0x40 ], %i5                        
  rtems_bdbuf_buffer*  buf_stack[RTEMS_BDBUF_AVL_MAX_HEIGHT];         
  rtems_bdbuf_buffer** buf_prev = buf_stack;                          
                                                                      
  bool modified = false;                                              
                                                                      
  memset (buf_stack, 0, sizeof(buf_stack));                           
 200bff8:	a0 07 bf 80 	add  %fp, -128, %l0                            
 */                                                                   
static int                                                            
rtems_bdbuf_avl_remove(rtems_bdbuf_buffer**      root,                
                       const rtems_bdbuf_buffer* node)                
{                                                                     
  dev_t             dev = node->dev;                                  
 200bffc:	f6 06 20 18 	ld  [ %i0 + 0x18 ], %i3                        
 200c000:	f4 06 20 1c 	ld  [ %i0 + 0x1c ], %i2                        
  rtems_blkdev_bnum block = node->block;                              
 200c004:	f2 06 20 20 	ld  [ %i0 + 0x20 ], %i1                        
  rtems_bdbuf_buffer*  buf_stack[RTEMS_BDBUF_AVL_MAX_HEIGHT];         
  rtems_bdbuf_buffer** buf_prev = buf_stack;                          
                                                                      
  bool modified = false;                                              
                                                                      
  memset (buf_stack, 0, sizeof(buf_stack));                           
 200c008:	90 10 00 10 	mov  %l0, %o0                                  
 200c00c:	92 10 20 00 	clr  %o1                                       
 200c010:	40 00 20 78 	call  20141f0 <memset>                         
 200c014:	94 10 20 80 	mov  0x80, %o2                                 
                                                                      
  while (p != NULL)                                                   
 200c018:	80 a7 60 00 	cmp  %i5, 0                                    
 200c01c:	02 80 00 24 	be  200c0ac <rtems_bdbuf_remove_from_tree+0xc4><== NEVER TAKEN
 200c020:	82 10 00 10 	mov  %l0, %g1                                  
  {                                                                   
    *buf_prev++ = p;                                                  
                                                                      
    if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))    
 200c024:	c6 07 60 18 	ld  [ %i5 + 0x18 ], %g3                        
                                                                      
  memset (buf_stack, 0, sizeof(buf_stack));                           
                                                                      
  while (p != NULL)                                                   
  {                                                                   
    *buf_prev++ = p;                                                  
 200c028:	fa 20 40 00 	st  %i5, [ %g1 ]                               
                                                                      
    if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))    
    {                                                                 
      p->avl.cache = 1;                                               
 200c02c:	9e 10 20 01 	mov  1, %o7                                    
      p = p->avl.right;                                               
    }                                                                 
    else if ((p->dev != dev) || (p->block != block))                  
    {                                                                 
      p->avl.cache = -1;                                              
 200c030:	9a 10 3f ff 	mov  -1, %o5                                   
                                                                      
  memset (buf_stack, 0, sizeof(buf_stack));                           
                                                                      
  while (p != NULL)                                                   
  {                                                                   
    *buf_prev++ = p;                                                  
 200c034:	84 00 60 04 	add  %g1, 4, %g2                               
                                                                      
    if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))    
 200c038:	80 a6 c0 03 	cmp  %i3, %g3                                  
 200c03c:	18 80 00 17 	bgu  200c098 <rtems_bdbuf_remove_from_tree+0xb0><== NEVER TAKEN
 200c040:	c8 07 60 1c 	ld  [ %i5 + 0x1c ], %g4                        
 200c044:	80 a6 c0 03 	cmp  %i3, %g3                                  
 200c048:	32 80 00 09 	bne,a   200c06c <rtems_bdbuf_remove_from_tree+0x84><== NEVER TAKEN
 200c04c:	da 2f 60 10 	stb  %o5, [ %i5 + 0x10 ]                       <== NOT EXECUTED
 200c050:	80 a6 80 04 	cmp  %i2, %g4                                  
 200c054:	38 80 00 12 	bgu,a   200c09c <rtems_bdbuf_remove_from_tree+0xb4><== NEVER TAKEN
 200c058:	de 2f 60 10 	stb  %o7, [ %i5 + 0x10 ]                       <== NOT EXECUTED
 200c05c:	80 a6 80 04 	cmp  %i2, %g4                                  
 200c060:	22 80 00 17 	be,a   200c0bc <rtems_bdbuf_remove_from_tree+0xd4><== ALWAYS TAKEN
 200c064:	c6 07 60 20 	ld  [ %i5 + 0x20 ], %g3                        
      p->avl.cache = 1;                                               
      p = p->avl.right;                                               
    }                                                                 
    else if ((p->dev != dev) || (p->block != block))                  
    {                                                                 
      p->avl.cache = -1;                                              
 200c068:	da 2f 60 10 	stb  %o5, [ %i5 + 0x10 ]                       <== NOT EXECUTED
      p = p->avl.left;                                                
 200c06c:	fa 07 60 08 	ld  [ %i5 + 8 ], %i5                           
                                                                      
  bool modified = false;                                              
                                                                      
  memset (buf_stack, 0, sizeof(buf_stack));                           
                                                                      
  while (p != NULL)                                                   
 200c070:	80 a7 60 00 	cmp  %i5, 0                                    
 200c074:	02 80 00 0e 	be  200c0ac <rtems_bdbuf_remove_from_tree+0xc4><== NEVER TAKEN
 200c078:	01 00 00 00 	nop                                            
  {                                                                   
    *buf_prev++ = p;                                                  
                                                                      
    if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))    
 200c07c:	c6 07 60 18 	ld  [ %i5 + 0x18 ], %g3                        
                                                                      
  memset (buf_stack, 0, sizeof(buf_stack));                           
                                                                      
  while (p != NULL)                                                   
  {                                                                   
    *buf_prev++ = p;                                                  
 200c080:	82 10 00 02 	mov  %g2, %g1                                  
 200c084:	fa 20 40 00 	st  %i5, [ %g1 ]                               
 200c088:	84 00 60 04 	add  %g1, 4, %g2                               
                                                                      
    if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))    
 200c08c:	80 a6 c0 03 	cmp  %i3, %g3                                  
 200c090:	08 bf ff ee 	bleu  200c048 <rtems_bdbuf_remove_from_tree+0x60><== ALWAYS TAKEN
 200c094:	c8 07 60 1c 	ld  [ %i5 + 0x1c ], %g4                        
    {                                                                 
      p->avl.cache = 1;                                               
 200c098:	de 2f 60 10 	stb  %o7, [ %i5 + 0x10 ]                       <== NOT EXECUTED
      p = p->avl.right;                                               
 200c09c:	fa 07 60 0c 	ld  [ %i5 + 0xc ], %i5                         
                                                                      
  bool modified = false;                                              
                                                                      
  memset (buf_stack, 0, sizeof(buf_stack));                           
                                                                      
  while (p != NULL)                                                   
 200c0a0:	80 a7 60 00 	cmp  %i5, 0                                    
 200c0a4:	32 bf ff f7 	bne,a   200c080 <rtems_bdbuf_remove_from_tree+0x98><== ALWAYS TAKEN
 200c0a8:	c6 07 60 18 	ld  [ %i5 + 0x18 ], %g3                        
                                                                      
static void                                                           
rtems_bdbuf_remove_from_tree (rtems_bdbuf_buffer *bd)                 
{                                                                     
  if (rtems_bdbuf_avl_remove (&bdbuf_cache.tree, bd) != 0)            
    rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_TREE_RM);  
 200c0ac:	d0 06 20 28 	ld  [ %i0 + 0x28 ], %o0                        <== NOT EXECUTED
 200c0b0:	13 10 80 00 	sethi  %hi(0x42000000), %o1                    <== NOT EXECUTED
 200c0b4:	7f ff fe 19 	call  200b918 <rtems_bdbuf_fatal>              <== NOT EXECUTED
 200c0b8:	92 12 60 09 	or  %o1, 9, %o1	! 42000009 <RAM_END+0x3fc00009><== NOT EXECUTED
                                                                      
  while (p != NULL)                                                   
  {                                                                   
    *buf_prev++ = p;                                                  
                                                                      
    if ((p->dev < dev) || ((p->dev == dev) && (p->block < block)))    
 200c0bc:	80 a6 40 03 	cmp  %i1, %g3                                  
 200c0c0:	38 bf ff f7 	bgu,a   200c09c <rtems_bdbuf_remove_from_tree+0xb4>
 200c0c4:	de 2f 60 10 	stb  %o7, [ %i5 + 0x10 ]                       
    {                                                                 
      p->avl.cache = 1;                                               
      p = p->avl.right;                                               
    }                                                                 
    else if ((p->dev != dev) || (p->block != block))                  
 200c0c8:	80 a6 40 03 	cmp  %i1, %g3                                  
 200c0cc:	32 bf ff e8 	bne,a   200c06c <rtems_bdbuf_remove_from_tree+0x84>
 200c0d0:	da 2f 60 10 	stb  %o5, [ %i5 + 0x10 ]                       
                                                                      
  memset (buf_stack, 0, sizeof(buf_stack));                           
                                                                      
  while (p != NULL)                                                   
  {                                                                   
    *buf_prev++ = p;                                                  
 200c0d4:	9e 10 00 02 	mov  %g2, %o7                                  
  }                                                                   
                                                                      
  q = p;                                                              
                                                                      
  buf_prev--;                                                         
  if (buf_prev > buf_stack)                                           
 200c0d8:	80 a0 40 10 	cmp  %g1, %l0                                  
 200c0dc:	08 80 00 03 	bleu  200c0e8 <rtems_bdbuf_remove_from_tree+0x100>
 200c0e0:	b2 10 20 00 	clr  %i1                                       
  {                                                                   
    p = *(buf_prev - 1);                                              
 200c0e4:	f2 00 bf f8 	ld  [ %g2 + -8 ], %i1                          
  {                                                                   
    p = NULL;                                                         
  }                                                                   
                                                                      
  /* at this moment q - is a node to delete, p is q's parent */       
  if (q->avl.right == NULL)                                           
 200c0e8:	f4 07 60 0c 	ld  [ %i5 + 0xc ], %i2                         
 200c0ec:	80 a6 a0 00 	cmp  %i2, 0                                    
 200c0f0:	22 80 00 ae 	be,a   200c3a8 <rtems_bdbuf_remove_from_tree+0x3c0>
 200c0f4:	c6 07 60 08 	ld  [ %i5 + 8 ], %g3                           
  {                                                                   
    rtems_bdbuf_buffer **t;                                           
                                                                      
    r = q->avl.right;                                                 
                                                                      
    if (r->avl.left == NULL)                                          
 200c0f8:	c6 06 a0 08 	ld  [ %i2 + 8 ], %g3                           
 200c0fc:	82 10 00 1a 	mov  %i2, %g1                                  
 200c100:	80 a0 e0 00 	cmp  %g3, 0                                    
 200c104:	12 80 00 06 	bne  200c11c <rtems_bdbuf_remove_from_tree+0x134><== NEVER TAKEN
 200c108:	b6 10 3f ff 	mov  -1, %i3                                   
    {                                                                 
      r->avl.left = q->avl.left;                                      
 200c10c:	10 80 00 ac 	b  200c3bc <rtems_bdbuf_remove_from_tree+0x3d4>
 200c110:	c6 07 60 08 	ld  [ %i5 + 8 ], %g3                           
    else                                                              
    {                                                                 
      t = buf_prev++;                                                 
      s = r;                                                          
                                                                      
      while (s->avl.left != NULL)                                     
 200c114:	82 10 00 03 	mov  %g3, %g1                                  <== NOT EXECUTED
 200c118:	86 10 00 04 	mov  %g4, %g3                                  <== NOT EXECUTED
 200c11c:	c8 00 e0 08 	ld  [ %g3 + 8 ], %g4                           <== NOT EXECUTED
      {                                                               
        *buf_prev++ = r = s;                                          
 200c120:	c2 20 80 00 	st  %g1, [ %g2 ]                               <== NOT EXECUTED
        s = r->avl.left;                                              
        r->avl.cache = -1;                                            
 200c124:	f6 28 60 10 	stb  %i3, [ %g1 + 0x10 ]                       <== NOT EXECUTED
    else                                                              
    {                                                                 
      t = buf_prev++;                                                 
      s = r;                                                          
                                                                      
      while (s->avl.left != NULL)                                     
 200c128:	80 a1 20 00 	cmp  %g4, 0                                    <== NOT EXECUTED
 200c12c:	12 bf ff fa 	bne  200c114 <rtems_bdbuf_remove_from_tree+0x12c><== NOT EXECUTED
 200c130:	84 00 a0 04 	add  %g2, 4, %g2                               <== NOT EXECUTED
        *buf_prev++ = r = s;                                          
        s = r->avl.left;                                              
        r->avl.cache = -1;                                            
      }                                                               
                                                                      
      s->avl.left = q->avl.left;                                      
 200c134:	f0 07 60 08 	ld  [ %i5 + 8 ], %i0                           <== NOT EXECUTED
      r->avl.left = s->avl.right;                                     
 200c138:	f6 00 e0 0c 	ld  [ %g3 + 0xc ], %i3                         <== NOT EXECUTED
      s->avl.right = q->avl.right;                                    
      s->avl.bal = q->avl.bal;                                        
 200c13c:	c8 0f 60 11 	ldub  [ %i5 + 0x11 ], %g4                      <== NOT EXECUTED
        *buf_prev++ = r = s;                                          
        s = r->avl.left;                                              
        r->avl.cache = -1;                                            
      }                                                               
                                                                      
      s->avl.left = q->avl.left;                                      
 200c140:	f0 20 e0 08 	st  %i0, [ %g3 + 8 ]                           <== NOT EXECUTED
      r->avl.left = s->avl.right;                                     
 200c144:	f6 20 60 08 	st  %i3, [ %g1 + 8 ]                           <== NOT EXECUTED
      s->avl.right = q->avl.right;                                    
 200c148:	f4 20 e0 0c 	st  %i2, [ %g3 + 0xc ]                         <== NOT EXECUTED
      s->avl.bal = q->avl.bal;                                        
      s->avl.cache = 1;                                               
 200c14c:	82 10 20 01 	mov  1, %g1                                    <== NOT EXECUTED
      }                                                               
                                                                      
      s->avl.left = q->avl.left;                                      
      r->avl.left = s->avl.right;                                     
      s->avl.right = q->avl.right;                                    
      s->avl.bal = q->avl.bal;                                        
 200c150:	c8 28 e0 11 	stb  %g4, [ %g3 + 0x11 ]                       <== NOT EXECUTED
      s->avl.cache = 1;                                               
 200c154:	c2 28 e0 10 	stb  %g1, [ %g3 + 0x10 ]                       <== NOT EXECUTED
                                                                      
      *t = q = s;                                                     
 200c158:	c6 23 ff fc 	st  %g3, [ %o7 + -4 ]                          <== NOT EXECUTED
    }                                                                 
  }                                                                   
                                                                      
  if (p != NULL)                                                      
 200c15c:	80 a6 60 00 	cmp  %i1, 0                                    
 200c160:	22 80 00 07 	be,a   200c17c <rtems_bdbuf_remove_from_tree+0x194>
 200c164:	c6 27 20 40 	st  %g3, [ %i4 + 0x40 ]                        
  {                                                                   
    if (p->avl.cache == -1)                                           
 200c168:	c2 4e 60 10 	ldsb  [ %i1 + 0x10 ], %g1                      
 200c16c:	80 a0 7f ff 	cmp  %g1, -1                                   
 200c170:	22 80 00 03 	be,a   200c17c <rtems_bdbuf_remove_from_tree+0x194>
 200c174:	c6 26 60 08 	st  %g3, [ %i1 + 8 ]                           
    {                                                                 
      p->avl.left = q;                                                
    }                                                                 
    else                                                              
    {                                                                 
      p->avl.right = q;                                               
 200c178:	c6 26 60 0c 	st  %g3, [ %i1 + 0xc ]                         
                                                                      
  modified = true;                                                    
                                                                      
  while (modified)                                                    
  {                                                                   
    if (buf_prev > buf_stack)                                         
 200c17c:	80 a0 80 10 	cmp  %g2, %l0                                  
 200c180:	08 80 00 2a 	bleu  200c228 <rtems_bdbuf_remove_from_tree+0x240>
 200c184:	b4 38 00 10 	xnor  %g0, %l0, %i2                            
      p->avl.right = q;                                               
    }                                                                 
  }                                                                   
  else                                                                
  {                                                                   
    *root = q;                                                        
 200c188:	c2 00 bf fc 	ld  [ %g2 + -4 ], %g1                          
 200c18c:	c8 08 60 10 	ldub  [ %g1 + 0x10 ], %g4                      
{                                                                     
  return bdbuf_cache.buffer_waiters.count;                            
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_remove_from_tree (rtems_bdbuf_buffer *bd)                 
 200c190:	b4 06 80 02 	add  %i2, %g2, %i2                             
 200c194:	89 29 20 18 	sll  %g4, 0x18, %g4                            
 200c198:	b4 0e bf fc 	and  %i2, -4, %i2                              
        case +1:                                                      
          p->avl.bal = 0;                                             
          break;                                                      
                                                                      
        case  0:                                                      
          p->avl.bal = -1;                                            
 200c19c:	b2 10 3f ff 	mov  -1, %i1                                   
{                                                                     
  return bdbuf_cache.buffer_waiters.count;                            
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_remove_from_tree (rtems_bdbuf_buffer *bd)                 
 200c1a0:	10 80 00 11 	b  200c1e4 <rtems_bdbuf_remove_from_tree+0x1fc>
 200c1a4:	b4 20 80 1a 	sub  %g2, %i2, %i2                             
        case +1:                                                      
          p->avl.bal = 0;                                             
          break;                                                      
                                                                      
        case  0:                                                      
          p->avl.bal = -1;                                            
 200c1a8:	86 10 00 01 	mov  %g1, %g3                                  <== NOT EXECUTED
          modified = false;                                           
 200c1ac:	ba 10 20 00 	clr  %i5                                       <== NOT EXECUTED
        default:                                                      
          break;                                                      
      }                                                               
    }                                                                 
                                                                      
    if (buf_prev > buf_stack)                                         
 200c1b0:	80 a0 80 1a 	cmp  %g2, %i2                                  
 200c1b4:	22 80 00 1d 	be,a   200c228 <rtems_bdbuf_remove_from_tree+0x240>
 200c1b8:	c6 27 20 40 	st  %g3, [ %i4 + 0x40 ]                        
    {                                                                 
      q = *(buf_prev - 1);                                            
 200c1bc:	c2 00 bf f8 	ld  [ %g2 + -8 ], %g1                          
                                                                      
      if (q->avl.cache == -1)                                         
 200c1c0:	c8 08 60 10 	ldub  [ %g1 + 0x10 ], %g4                      
 200c1c4:	89 29 20 18 	sll  %g4, 0x18, %g4                            
 200c1c8:	b7 39 20 18 	sra  %g4, 0x18, %i3                            
 200c1cc:	80 a6 ff ff 	cmp  %i3, -1                                   
 200c1d0:	02 80 00 37 	be  200c2ac <rtems_bdbuf_remove_from_tree+0x2c4><== ALWAYS TAKEN
 200c1d4:	80 8f 60 ff 	btst  0xff, %i5                                
      {                                                               
        q->avl.left = p;                                              
      }                                                               
      else                                                            
      {                                                               
        q->avl.right = p;                                             
 200c1d8:	c6 20 60 0c 	st  %g3, [ %g1 + 0xc ]                         <== NOT EXECUTED
    *root = q;                                                        
  }                                                                   
                                                                      
  modified = true;                                                    
                                                                      
  while (modified)                                                    
 200c1dc:	02 80 00 13 	be  200c228 <rtems_bdbuf_remove_from_tree+0x240><== NOT EXECUTED
 200c1e0:	84 00 bf fc 	add  %g2, -4, %g2                              <== NOT EXECUTED
    else                                                              
    {                                                                 
      break;                                                          
    }                                                                 
                                                                      
    if (p->avl.cache == -1)                                           
 200c1e4:	89 39 20 18 	sra  %g4, 0x18, %g4                            
 200c1e8:	80 a1 3f ff 	cmp  %g4, -1                                   
 200c1ec:	02 80 00 28 	be  200c28c <rtems_bdbuf_remove_from_tree+0x2a4>
 200c1f0:	c6 48 60 11 	ldsb  [ %g1 + 0x11 ], %g3                      
      }                                                               
    }                                                                 
    else                                                              
    {                                                                 
      /* rebalance right branch */                                    
      switch (p->avl.bal)                                             
 200c1f4:	80 a0 e0 00 	cmp  %g3, 0                                    
 200c1f8:	22 bf ff ec 	be,a   200c1a8 <rtems_bdbuf_remove_from_tree+0x1c0><== NEVER TAKEN
 200c1fc:	f2 28 60 11 	stb  %i1, [ %g1 + 0x11 ]                       <== NOT EXECUTED
 200c200:	80 a0 e0 01 	cmp  %g3, 1                                    
 200c204:	02 80 00 33 	be  200c2d0 <rtems_bdbuf_remove_from_tree+0x2e8><== ALWAYS TAKEN
 200c208:	80 a0 ff ff 	cmp  %g3, -1                                   
 200c20c:	22 80 00 09 	be,a   200c230 <rtems_bdbuf_remove_from_tree+0x248><== NOT EXECUTED
 200c210:	c8 00 60 08 	ld  [ %g1 + 8 ], %g4                           <== NOT EXECUTED
 200c214:	86 10 00 01 	mov  %g1, %g3                                  <== NOT EXECUTED
        default:                                                      
          break;                                                      
      }                                                               
    }                                                                 
                                                                      
    if (buf_prev > buf_stack)                                         
 200c218:	80 a0 80 1a 	cmp  %g2, %i2                                  <== NOT EXECUTED
 200c21c:	12 bf ff e8 	bne  200c1bc <rtems_bdbuf_remove_from_tree+0x1d4><== NOT EXECUTED
 200c220:	ba 10 20 01 	mov  1, %i5                                    <== NOT EXECUTED
        q->avl.right = p;                                             
      }                                                               
    }                                                                 
    else                                                              
    {                                                                 
      *root = p;                                                      
 200c224:	c6 27 20 40 	st  %g3, [ %i4 + 0x40 ]                        <== NOT EXECUTED
 200c228:	81 c7 e0 08 	ret                                            
 200c22c:	81 e8 00 00 	restore                                        
          break;                                                      
                                                                      
        case -1:                                                      
          p1 = p->avl.left;                                           
                                                                      
          if (p1->avl.bal <= 0) /* simple LL-turn */                  
 200c230:	c6 49 20 11 	ldsb  [ %g4 + 0x11 ], %g3                      <== NOT EXECUTED
 200c234:	80 a0 e0 00 	cmp  %g3, 0                                    <== NOT EXECUTED
 200c238:	04 80 00 35 	ble  200c30c <rtems_bdbuf_remove_from_tree+0x324><== NOT EXECUTED
 200c23c:	ba 10 20 01 	mov  1, %i5                                    <== NOT EXECUTED
            }                                                         
            p = p1;                                                   
          }                                                           
          else /* double LR-turn */                                   
          {                                                           
            p2 = p1->avl.right;                                       
 200c240:	c6 01 20 0c 	ld  [ %g4 + 0xc ], %g3                         <== NOT EXECUTED
            p1->avl.right = p2->avl.left;                             
            p2->avl.left = p1;                                        
            p->avl.left = p2->avl.right;                              
            p2->avl.right = p;                                        
                                                                      
            if (p2->avl.bal == -1) p->avl.bal = 1; else p->avl.bal = 0;
 200c244:	f0 48 e0 11 	ldsb  [ %g3 + 0x11 ], %i0                      <== NOT EXECUTED
          }                                                           
          else /* double LR-turn */                                   
          {                                                           
            p2 = p1->avl.right;                                       
                                                                      
            p1->avl.right = p2->avl.left;                             
 200c248:	f6 00 e0 08 	ld  [ %g3 + 8 ], %i3                           <== NOT EXECUTED
            p2->avl.left = p1;                                        
            p->avl.left = p2->avl.right;                              
            p2->avl.right = p;                                        
                                                                      
            if (p2->avl.bal == -1) p->avl.bal = 1; else p->avl.bal = 0;
 200c24c:	b0 38 00 18 	xnor  %g0, %i0, %i0                            <== NOT EXECUTED
 200c250:	80 a0 00 18 	cmp  %g0, %i0                                  <== NOT EXECUTED
 200c254:	b0 60 3f ff 	subx  %g0, -1, %i0                             <== NOT EXECUTED
 200c258:	f0 28 60 11 	stb  %i0, [ %g1 + 0x11 ]                       <== NOT EXECUTED
            if (p2->avl.bal == +1) p1->avl.bal = -1; else p1->avl.bal = 0;
 200c25c:	f0 48 e0 11 	ldsb  [ %g3 + 0x11 ], %i0                      <== NOT EXECUTED
          }                                                           
          else /* double LR-turn */                                   
          {                                                           
            p2 = p1->avl.right;                                       
                                                                      
            p1->avl.right = p2->avl.left;                             
 200c260:	f6 21 20 0c 	st  %i3, [ %g4 + 0xc ]                         <== NOT EXECUTED
            p2->avl.left = p1;                                        
            p->avl.left = p2->avl.right;                              
            p2->avl.right = p;                                        
                                                                      
            if (p2->avl.bal == -1) p->avl.bal = 1; else p->avl.bal = 0;
            if (p2->avl.bal == +1) p1->avl.bal = -1; else p1->avl.bal = 0;
 200c264:	b0 1e 20 01 	xor  %i0, 1, %i0                               <== NOT EXECUTED
          {                                                           
            p2 = p1->avl.right;                                       
                                                                      
            p1->avl.right = p2->avl.left;                             
            p2->avl.left = p1;                                        
            p->avl.left = p2->avl.right;                              
 200c268:	f6 00 e0 0c 	ld  [ %g3 + 0xc ], %i3                         <== NOT EXECUTED
          else /* double LR-turn */                                   
          {                                                           
            p2 = p1->avl.right;                                       
                                                                      
            p1->avl.right = p2->avl.left;                             
            p2->avl.left = p1;                                        
 200c26c:	c8 20 e0 08 	st  %g4, [ %g3 + 8 ]                           <== NOT EXECUTED
            p->avl.left = p2->avl.right;                              
            p2->avl.right = p;                                        
                                                                      
            if (p2->avl.bal == -1) p->avl.bal = 1; else p->avl.bal = 0;
            if (p2->avl.bal == +1) p1->avl.bal = -1; else p1->avl.bal = 0;
 200c270:	80 a0 00 18 	cmp  %g0, %i0                                  <== NOT EXECUTED
 200c274:	b0 40 3f ff 	addx  %g0, -1, %i0                             <== NOT EXECUTED
 200c278:	f0 29 20 11 	stb  %i0, [ %g4 + 0x11 ]                       <== NOT EXECUTED
          {                                                           
            p2 = p1->avl.right;                                       
                                                                      
            p1->avl.right = p2->avl.left;                             
            p2->avl.left = p1;                                        
            p->avl.left = p2->avl.right;                              
 200c27c:	f6 20 60 08 	st  %i3, [ %g1 + 8 ]                           <== NOT EXECUTED
            p2->avl.right = p;                                        
 200c280:	c2 20 e0 0c 	st  %g1, [ %g3 + 0xc ]                         <== NOT EXECUTED
                                                                      
            if (p2->avl.bal == -1) p->avl.bal = 1; else p->avl.bal = 0;
            if (p2->avl.bal == +1) p1->avl.bal = -1; else p1->avl.bal = 0;
                                                                      
            p = p2;                                                   
            p2->avl.bal = 0;                                          
 200c284:	10 bf ff cb 	b  200c1b0 <rtems_bdbuf_remove_from_tree+0x1c8><== NOT EXECUTED
 200c288:	c0 28 e0 11 	clrb  [ %g3 + 0x11 ]                           <== NOT EXECUTED
    }                                                                 
                                                                      
    if (p->avl.cache == -1)                                           
    {                                                                 
      /* rebalance left branch */                                     
      switch (p->avl.bal)                                             
 200c28c:	80 a0 e0 00 	cmp  %g3, 0                                    
 200c290:	12 80 00 0c 	bne  200c2c0 <rtems_bdbuf_remove_from_tree+0x2d8>
 200c294:	80 a0 e0 01 	cmp  %g3, 1                                    
      {                                                               
        case -1:                                                      
          p->avl.bal = 0;                                             
          break;                                                      
        case  0:                                                      
          p->avl.bal = 1;                                             
 200c298:	88 10 20 01 	mov  1, %g4                                    
 200c29c:	86 10 00 01 	mov  %g1, %g3                                  
 200c2a0:	c8 28 60 11 	stb  %g4, [ %g1 + 0x11 ]                       
          modified = false;                                           
 200c2a4:	10 bf ff c3 	b  200c1b0 <rtems_bdbuf_remove_from_tree+0x1c8>
 200c2a8:	ba 10 20 00 	clr  %i5                                       
    {                                                                 
      q = *(buf_prev - 1);                                            
                                                                      
      if (q->avl.cache == -1)                                         
      {                                                               
        q->avl.left = p;                                              
 200c2ac:	c6 20 60 08 	st  %g3, [ %g1 + 8 ]                           
    *root = q;                                                        
  }                                                                   
                                                                      
  modified = true;                                                    
                                                                      
  while (modified)                                                    
 200c2b0:	12 bf ff cd 	bne  200c1e4 <rtems_bdbuf_remove_from_tree+0x1fc><== ALWAYS TAKEN
 200c2b4:	84 00 bf fc 	add  %g2, -4, %g2                              
 200c2b8:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200c2bc:	81 e8 00 00 	restore                                        <== NOT EXECUTED
    }                                                                 
                                                                      
    if (p->avl.cache == -1)                                           
    {                                                                 
      /* rebalance left branch */                                     
      switch (p->avl.bal)                                             
 200c2c0:	02 80 00 08 	be  200c2e0 <rtems_bdbuf_remove_from_tree+0x2f8>
 200c2c4:	80 a0 ff ff 	cmp  %g3, -1                                   
 200c2c8:	32 bf ff d4 	bne,a   200c218 <rtems_bdbuf_remove_from_tree+0x230><== NEVER TAKEN
 200c2cc:	86 10 00 01 	mov  %g1, %g3                                  <== NOT EXECUTED
    {                                                                 
      /* rebalance right branch */                                    
      switch (p->avl.bal)                                             
      {                                                               
        case +1:                                                      
          p->avl.bal = 0;                                             
 200c2d0:	c0 28 60 11 	clrb  [ %g1 + 0x11 ]                           
 200c2d4:	86 10 00 01 	mov  %g1, %g3                                  
 200c2d8:	10 bf ff b6 	b  200c1b0 <rtems_bdbuf_remove_from_tree+0x1c8>
 200c2dc:	ba 10 20 01 	mov  1, %i5                                    
          p->avl.bal = 1;                                             
          modified = false;                                           
          break;                                                      
                                                                      
        case +1:                                                      
          p1 = p->avl.right;                                          
 200c2e0:	c6 00 60 0c 	ld  [ %g1 + 0xc ], %g3                         
                                                                      
          if (p1->avl.bal >= 0) /* simple RR-turn */                  
 200c2e4:	fa 48 e0 11 	ldsb  [ %g3 + 0x11 ], %i5                      
 200c2e8:	80 a7 60 00 	cmp  %i5, 0                                    
 200c2ec:	26 80 00 1b 	bl,a   200c358 <rtems_bdbuf_remove_from_tree+0x370><== NEVER TAKEN
 200c2f0:	c8 00 e0 08 	ld  [ %g3 + 8 ], %g4                           <== NOT EXECUTED
          {                                                           
            p->avl.right = p1->avl.left;                              
 200c2f4:	f6 00 e0 08 	ld  [ %g3 + 8 ], %i3                           
            p1->avl.left = p;                                         
 200c2f8:	c2 20 e0 08 	st  %g1, [ %g3 + 8 ]                           
                                                                      
            if (p1->avl.bal == 0)                                     
 200c2fc:	12 80 00 0e 	bne  200c334 <rtems_bdbuf_remove_from_tree+0x34c><== NEVER TAKEN
 200c300:	f6 20 60 0c 	st  %i3, [ %g1 + 0xc ]                         
            {                                                         
              p1->avl.bal = -1;                                       
 200c304:	10 bf ff ab 	b  200c1b0 <rtems_bdbuf_remove_from_tree+0x1c8>
 200c308:	c8 28 e0 11 	stb  %g4, [ %g3 + 0x11 ]                       
        case -1:                                                      
          p1 = p->avl.left;                                           
                                                                      
          if (p1->avl.bal <= 0) /* simple LL-turn */                  
          {                                                           
            p->avl.left = p1->avl.right;                              
 200c30c:	fa 01 20 0c 	ld  [ %g4 + 0xc ], %i5                         <== NOT EXECUTED
            p1->avl.right = p;                                        
 200c310:	c2 21 20 0c 	st  %g1, [ %g4 + 0xc ]                         <== NOT EXECUTED
            if (p1->avl.bal == 0)                                     
 200c314:	80 a0 e0 00 	cmp  %g3, 0                                    <== NOT EXECUTED
 200c318:	12 80 00 0b 	bne  200c344 <rtems_bdbuf_remove_from_tree+0x35c><== NOT EXECUTED
 200c31c:	fa 20 60 08 	st  %i5, [ %g1 + 8 ]                           <== NOT EXECUTED
            {                                                         
              p1->avl.bal = 1;                                        
 200c320:	82 10 20 01 	mov  1, %g1                                    <== NOT EXECUTED
 200c324:	86 10 00 04 	mov  %g4, %g3                                  <== NOT EXECUTED
 200c328:	c2 29 20 11 	stb  %g1, [ %g4 + 0x11 ]                       <== NOT EXECUTED
              modified = false;                                       
 200c32c:	10 bf ff a1 	b  200c1b0 <rtems_bdbuf_remove_from_tree+0x1c8><== NOT EXECUTED
 200c330:	ba 10 20 00 	clr  %i5                                       <== NOT EXECUTED
              p1->avl.bal = -1;                                       
              modified = false;                                       
            }                                                         
            else                                                      
            {                                                         
              p->avl.bal = 0;                                         
 200c334:	c0 28 60 11 	clrb  [ %g1 + 0x11 ]                           <== NOT EXECUTED
              p1->avl.bal = 0;                                        
 200c338:	c0 28 e0 11 	clrb  [ %g3 + 0x11 ]                           <== NOT EXECUTED
 200c33c:	10 bf ff 9d 	b  200c1b0 <rtems_bdbuf_remove_from_tree+0x1c8><== NOT EXECUTED
 200c340:	ba 10 20 01 	mov  1, %i5                                    <== NOT EXECUTED
              p1->avl.bal = 1;                                        
              modified = false;                                       
            }                                                         
            else                                                      
            {                                                         
              p->avl.bal = 0;                                         
 200c344:	c0 28 60 11 	clrb  [ %g1 + 0x11 ]                           <== NOT EXECUTED
              p1->avl.bal = 0;                                        
 200c348:	c0 29 20 11 	clrb  [ %g4 + 0x11 ]                           <== NOT EXECUTED
 200c34c:	86 10 00 04 	mov  %g4, %g3                                  <== NOT EXECUTED
 200c350:	10 bf ff 98 	b  200c1b0 <rtems_bdbuf_remove_from_tree+0x1c8><== NOT EXECUTED
 200c354:	ba 10 20 01 	mov  1, %i5                                    <== NOT EXECUTED
                                                                      
            if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
            if (p2->avl.bal == -1) p1->avl.bal = 1; else p1->avl.bal = 0;
                                                                      
            p = p2;                                                   
            p2->avl.bal = 0;                                          
 200c358:	ba 10 20 01 	mov  1, %i5                                    <== NOT EXECUTED
            p1->avl.left = p2->avl.right;                             
            p2->avl.right = p1;                                       
            p->avl.right = p2->avl.left;                              
            p2->avl.left = p;                                         
                                                                      
            if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
 200c35c:	f0 49 20 11 	ldsb  [ %g4 + 0x11 ], %i0                      <== NOT EXECUTED
          }                                                           
          else /* double RL-turn */                                   
          {                                                           
            p2 = p1->avl.left;                                        
                                                                      
            p1->avl.left = p2->avl.right;                             
 200c360:	f6 01 20 0c 	ld  [ %g4 + 0xc ], %i3                         <== NOT EXECUTED
            p2->avl.right = p1;                                       
            p->avl.right = p2->avl.left;                              
            p2->avl.left = p;                                         
                                                                      
            if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
 200c364:	b0 1e 20 01 	xor  %i0, 1, %i0                               <== NOT EXECUTED
 200c368:	80 a0 00 18 	cmp  %g0, %i0                                  <== NOT EXECUTED
 200c36c:	b0 40 3f ff 	addx  %g0, -1, %i0                             <== NOT EXECUTED
 200c370:	f0 28 60 11 	stb  %i0, [ %g1 + 0x11 ]                       <== NOT EXECUTED
            if (p2->avl.bal == -1) p1->avl.bal = 1; else p1->avl.bal = 0;
 200c374:	f0 49 20 11 	ldsb  [ %g4 + 0x11 ], %i0                      <== NOT EXECUTED
          }                                                           
          else /* double RL-turn */                                   
          {                                                           
            p2 = p1->avl.left;                                        
                                                                      
            p1->avl.left = p2->avl.right;                             
 200c378:	f6 20 e0 08 	st  %i3, [ %g3 + 8 ]                           <== NOT EXECUTED
            p2->avl.right = p1;                                       
            p->avl.right = p2->avl.left;                              
            p2->avl.left = p;                                         
                                                                      
            if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
            if (p2->avl.bal == -1) p1->avl.bal = 1; else p1->avl.bal = 0;
 200c37c:	b0 38 00 18 	xnor  %g0, %i0, %i0                            <== NOT EXECUTED
          {                                                           
            p2 = p1->avl.left;                                        
                                                                      
            p1->avl.left = p2->avl.right;                             
            p2->avl.right = p1;                                       
            p->avl.right = p2->avl.left;                              
 200c380:	f6 01 20 08 	ld  [ %g4 + 8 ], %i3                           <== NOT EXECUTED
          else /* double RL-turn */                                   
          {                                                           
            p2 = p1->avl.left;                                        
                                                                      
            p1->avl.left = p2->avl.right;                             
            p2->avl.right = p1;                                       
 200c384:	c6 21 20 0c 	st  %g3, [ %g4 + 0xc ]                         <== NOT EXECUTED
            p->avl.right = p2->avl.left;                              
            p2->avl.left = p;                                         
                                                                      
            if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
            if (p2->avl.bal == -1) p1->avl.bal = 1; else p1->avl.bal = 0;
 200c388:	80 a0 00 18 	cmp  %g0, %i0                                  <== NOT EXECUTED
 200c38c:	b0 60 3f ff 	subx  %g0, -1, %i0                             <== NOT EXECUTED
 200c390:	f0 28 e0 11 	stb  %i0, [ %g3 + 0x11 ]                       <== NOT EXECUTED
          {                                                           
            p2 = p1->avl.left;                                        
                                                                      
            p1->avl.left = p2->avl.right;                             
            p2->avl.right = p1;                                       
            p->avl.right = p2->avl.left;                              
 200c394:	f6 20 60 0c 	st  %i3, [ %g1 + 0xc ]                         <== NOT EXECUTED
            p2->avl.left = p;                                         
 200c398:	c2 21 20 08 	st  %g1, [ %g4 + 8 ]                           <== NOT EXECUTED
                                                                      
            if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
            if (p2->avl.bal == -1) p1->avl.bal = 1; else p1->avl.bal = 0;
                                                                      
            p = p2;                                                   
            p2->avl.bal = 0;                                          
 200c39c:	c0 29 20 11 	clrb  [ %g4 + 0x11 ]                           <== NOT EXECUTED
 200c3a0:	10 bf ff 84 	b  200c1b0 <rtems_bdbuf_remove_from_tree+0x1c8><== NOT EXECUTED
 200c3a4:	86 10 00 04 	mov  %g4, %g3                                  <== NOT EXECUTED
                                                                      
  /* at this moment q - is a node to delete, p is q's parent */       
  if (q->avl.right == NULL)                                           
  {                                                                   
    r = q->avl.left;                                                  
    if (r != NULL)                                                    
 200c3a8:	80 a0 e0 00 	cmp  %g3, 0                                    
 200c3ac:	02 bf ff 6c 	be  200c15c <rtems_bdbuf_remove_from_tree+0x174>
 200c3b0:	84 10 00 01 	mov  %g1, %g2                                  
    {                                                                 
      r->avl.bal = 0;                                                 
 200c3b4:	10 bf ff 6a 	b  200c15c <rtems_bdbuf_remove_from_tree+0x174>
 200c3b8:	c0 28 e0 11 	clrb  [ %g3 + 0x11 ]                           
    r = q->avl.right;                                                 
                                                                      
    if (r->avl.left == NULL)                                          
    {                                                                 
      r->avl.left = q->avl.left;                                      
      r->avl.bal = q->avl.bal;                                        
 200c3bc:	c2 0f 60 11 	ldub  [ %i5 + 0x11 ], %g1                      
                                                                      
    r = q->avl.right;                                                 
                                                                      
    if (r->avl.left == NULL)                                          
    {                                                                 
      r->avl.left = q->avl.left;                                      
 200c3c0:	c6 26 a0 08 	st  %g3, [ %i2 + 8 ]                           
      r->avl.bal = q->avl.bal;                                        
 200c3c4:	c2 2e a0 11 	stb  %g1, [ %i2 + 0x11 ]                       
      r->avl.cache = 1;                                               
      *buf_prev++ = q = r;                                            
 200c3c8:	f4 20 bf fc 	st  %i2, [ %g2 + -4 ]                          
                                                                      
    if (r->avl.left == NULL)                                          
    {                                                                 
      r->avl.left = q->avl.left;                                      
      r->avl.bal = q->avl.bal;                                        
      r->avl.cache = 1;                                               
 200c3cc:	82 10 20 01 	mov  1, %g1                                    
      *buf_prev++ = q = r;                                            
 200c3d0:	86 10 00 1a 	mov  %i2, %g3                                  
                                                                      
    if (r->avl.left == NULL)                                          
    {                                                                 
      r->avl.left = q->avl.left;                                      
      r->avl.bal = q->avl.bal;                                        
      r->avl.cache = 1;                                               
 200c3d4:	10 bf ff 62 	b  200c15c <rtems_bdbuf_remove_from_tree+0x174>
 200c3d8:	c2 2e a0 10 	stb  %g1, [ %i2 + 0x10 ]                       
                                                                      

0200c3dc <rtems_bdbuf_remove_from_tree_and_lru_list>: rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_TREE_RM); } static void rtems_bdbuf_remove_from_tree_and_lru_list (rtems_bdbuf_buffer *bd) {
 200c3dc:	9d e3 bf a0 	save  %sp, -96, %sp                            
  switch (bd->state)                                                  
 200c3e0:	c2 06 20 28 	ld  [ %i0 + 0x28 ], %g1                        
 200c3e4:	80 a0 60 00 	cmp  %g1, 0                                    
 200c3e8:	02 80 00 0a 	be  200c410 <rtems_bdbuf_remove_from_tree_and_lru_list+0x34>
 200c3ec:	80 a0 60 02 	cmp  %g1, 2                                    
 200c3f0:	02 80 00 06 	be  200c408 <rtems_bdbuf_remove_from_tree_and_lru_list+0x2c><== ALWAYS TAKEN
 200c3f4:	01 00 00 00 	nop                                            
      break;                                                          
    case RTEMS_BDBUF_STATE_CACHED:                                    
      rtems_bdbuf_remove_from_tree (bd);                              
      break;                                                          
    default:                                                          
      rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_10);
 200c3f8:	d0 06 20 28 	ld  [ %i0 + 0x28 ], %o0                        <== NOT EXECUTED
 200c3fc:	13 10 80 00 	sethi  %hi(0x42000000), %o1                    <== NOT EXECUTED
 200c400:	7f ff fd 46 	call  200b918 <rtems_bdbuf_fatal>              <== NOT EXECUTED
 200c404:	92 12 60 08 	or  %o1, 8, %o1	! 42000008 <RAM_END+0x3fc00008><== NOT EXECUTED
  switch (bd->state)                                                  
  {                                                                   
    case RTEMS_BDBUF_STATE_FREE:                                      
      break;                                                          
    case RTEMS_BDBUF_STATE_CACHED:                                    
      rtems_bdbuf_remove_from_tree (bd);                              
 200c408:	7f ff fe f8 	call  200bfe8 <rtems_bdbuf_remove_from_tree>   
 200c40c:	90 10 00 18 	mov  %i0, %o0                                  
 */                                                                   
RTEMS_INLINE_ROUTINE void rtems_chain_extract(                        
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Extract( the_node );                                         
 200c410:	7f ff ef ab 	call  20082bc <_Chain_Extract>                 
 200c414:	81 e8 00 00 	restore                                        
                                                                      

0200bc58 <rtems_bdbuf_restore_preemption>: return prev_mode; } static void rtems_bdbuf_restore_preemption (rtems_mode prev_mode) {
 200bc58:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  sc = rtems_task_mode (prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode); 
 200bc5c:	13 00 00 3f 	sethi  %hi(0xfc00), %o1                        
  return prev_mode;                                                   
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_restore_preemption (rtems_mode prev_mode)                 
{                                                                     
 200bc60:	f0 27 a0 44 	st  %i0, [ %fp + 0x44 ]                        
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  sc = rtems_task_mode (prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode); 
 200bc64:	90 10 00 18 	mov  %i0, %o0                                  
 200bc68:	94 07 a0 44 	add  %fp, 0x44, %o2                            
 200bc6c:	40 00 13 18 	call  20108cc <rtems_task_mode>                
 200bc70:	92 12 63 ff 	or  %o1, 0x3ff, %o1                            
  if (sc != RTEMS_SUCCESSFUL)                                         
 200bc74:	80 a2 20 00 	cmp  %o0, 0                                    
 200bc78:	12 80 00 04 	bne  200bc88 <rtems_bdbuf_restore_preemption+0x30><== NEVER TAKEN
 200bc7c:	11 10 80 00 	sethi  %hi(0x42000000), %o0                    
 200bc80:	81 c7 e0 08 	ret                                            
 200bc84:	81 e8 00 00 	restore                                        
    rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_PREEMPT_RST);
 200bc88:	7f ff f0 10 	call  2007cc8 <rtems_fatal_error_occurred>     <== NOT EXECUTED
 200bc8c:	90 12 20 11 	or  %o0, 0x11, %o0                             <== NOT EXECUTED
                                                                      

0200b92c <rtems_bdbuf_swapout_modified_processing>: rtems_chain_control* chain, rtems_chain_control* transfer, bool sync_active, bool update_timers, uint32_t timer_delta) {
 200b92c:	9d e3 bf a0 	save  %sp, -96, %sp                            
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(        
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_head( the_chain )->next;                    
 200b930:	e0 06 40 00 	ld  [ %i1 ], %l0                               
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
 200b934:	b2 06 60 04 	add  %i1, 4, %i1                               
  if (!rtems_chain_is_empty (chain))                                  
 200b938:	80 a4 00 19 	cmp  %l0, %i1                                  
 200b93c:	02 80 00 36 	be  200ba14 <rtems_bdbuf_swapout_modified_processing+0xe8>
 200b940:	80 a6 e0 00 	cmp  %i3, 0                                    
    node = node->next;                                                
                                                                      
    /*                                                                
     * A sync active with no valid dev means sync all.                
     */                                                               
    if (sync_active && (*dev == BDBUF_INVALID_DEV))                   
 200b944:	12 80 00 65 	bne  200bad8 <rtems_bdbuf_swapout_modified_processing+0x1ac>
 200b948:	a2 10 20 00 	clr  %l1                                       
       * or someone waits for a buffer written force all the timers to 0.
       *                                                              
       * @note Lots of sync requests will skew this timer. It should be based
       *       on TOD to be accurate. Does it matter ?                
       */                                                             
      if (sync_all || (sync_active && (*dev == bd->dev))              
 200b94c:	a2 0c 60 ff 	and  %l1, 0xff, %l1                            
}                                                                     
                                                                      
static bool                                                           
rtems_bdbuf_has_buffer_waiters (void)                                 
{                                                                     
  return bdbuf_cache.buffer_waiters.count;                            
 200b950:	25 00 80 6a 	sethi  %hi(0x201a800), %l2                     
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 200b954:	a8 10 20 09 	mov  9, %l4                                    
    if (sync_active && (*dev == BDBUF_INVALID_DEV))                   
      sync_all = true;                                                
    else                                                              
      sync_all = false;                                               
                                                                      
    while (!rtems_chain_is_tail (chain, node))                        
 200b958:	80 a4 00 19 	cmp  %l0, %i1                                  
 200b95c:	02 80 00 2e 	be  200ba14 <rtems_bdbuf_swapout_modified_processing+0xe8>
 200b960:	80 a4 60 00 	cmp  %l1, 0                                    
       * or someone waits for a buffer written force all the timers to 0.
       *                                                              
       * @note Lots of sync requests will skew this timer. It should be based
       *       on TOD to be accurate. Does it matter ?                
       */                                                             
      if (sync_all || (sync_active && (*dev == bd->dev))              
 200b964:	12 80 00 32 	bne  200ba2c <rtems_bdbuf_swapout_modified_processing+0x100>
 200b968:	80 a6 e0 00 	cmp  %i3, 0                                    
 200b96c:	02 80 00 08 	be  200b98c <rtems_bdbuf_swapout_modified_processing+0x60>
 200b970:	82 14 a1 a8 	or  %l2, 0x1a8, %g1                            
 200b974:	c4 06 00 00 	ld  [ %i0 ], %g2                               
 200b978:	c2 04 20 18 	ld  [ %l0 + 0x18 ], %g1                        
 200b97c:	80 a0 80 01 	cmp  %g2, %g1                                  
 200b980:	22 80 00 27 	be,a   200ba1c <rtems_bdbuf_swapout_modified_processing+0xf0>
 200b984:	c4 06 20 04 	ld  [ %i0 + 4 ], %g2                           
}                                                                     
                                                                      
static bool                                                           
rtems_bdbuf_has_buffer_waiters (void)                                 
{                                                                     
  return bdbuf_cache.buffer_waiters.count;                            
 200b988:	82 14 a1 a8 	or  %l2, 0x1a8, %g1                            
 200b98c:	c2 00 60 78 	ld  [ %g1 + 0x78 ], %g1                        
       *                                                              
       * @note Lots of sync requests will skew this timer. It should be based
       *       on TOD to be accurate. Does it matter ?                
       */                                                             
      if (sync_all || (sync_active && (*dev == bd->dev))              
          || rtems_bdbuf_has_buffer_waiters ())                       
 200b990:	80 a0 60 00 	cmp  %g1, 0                                    
 200b994:	12 80 00 26 	bne  200ba2c <rtems_bdbuf_swapout_modified_processing+0x100>
 200b998:	01 00 00 00 	nop                                            
        bd->hold_timer = 0;                                           
                                                                      
      if (bd->hold_timer)                                             
 200b99c:	c2 04 20 34 	ld  [ %l0 + 0x34 ], %g1                        
 200b9a0:	80 a0 60 00 	cmp  %g1, 0                                    
 200b9a4:	22 80 00 11 	be,a   200b9e8 <rtems_bdbuf_swapout_modified_processing+0xbc>
 200b9a8:	c2 06 00 00 	ld  [ %i0 ], %g1                               
      {                                                               
        if (update_timers)                                            
 200b9ac:	80 a7 20 00 	cmp  %i4, 0                                    
 200b9b0:	02 80 00 09 	be  200b9d4 <rtems_bdbuf_swapout_modified_processing+0xa8>
 200b9b4:	01 00 00 00 	nop                                            
        {                                                             
          if (bd->hold_timer > timer_delta)                           
 200b9b8:	c2 04 20 34 	ld  [ %l0 + 0x34 ], %g1                        
 200b9bc:	80 a0 40 1d 	cmp  %g1, %i5                                  
 200b9c0:	08 80 00 44 	bleu  200bad0 <rtems_bdbuf_swapout_modified_processing+0x1a4>
 200b9c4:	01 00 00 00 	nop                                            
            bd->hold_timer -= timer_delta;                            
 200b9c8:	c2 04 20 34 	ld  [ %l0 + 0x34 ], %g1                        
 200b9cc:	82 20 40 1d 	sub  %g1, %i5, %g1                             
 200b9d0:	c2 24 20 34 	st  %g1, [ %l0 + 0x34 ]                        
          else                                                        
            bd->hold_timer = 0;                                       
        }                                                             
                                                                      
        if (bd->hold_timer)                                           
 200b9d4:	c2 04 20 34 	ld  [ %l0 + 0x34 ], %g1                        
 200b9d8:	80 a0 60 00 	cmp  %g1, 0                                    
 200b9dc:	32 80 00 0b 	bne,a   200ba08 <rtems_bdbuf_swapout_modified_processing+0xdc>
 200b9e0:	e0 04 00 00 	ld  [ %l0 ], %l0                               
      /*                                                              
       * This assumes we can set dev_t to BDBUF_INVALID_DEV which is just an
       * assumption. Cannot use the transfer list being empty the sync dev
       * calls sets the dev to use.                                   
       */                                                             
      if (*dev == BDBUF_INVALID_DEV)                                  
 200b9e4:	c2 06 00 00 	ld  [ %i0 ], %g1                               
 200b9e8:	80 a0 7f ff 	cmp  %g1, -1                                   
 200b9ec:	02 80 00 31 	be  200bab0 <rtems_bdbuf_swapout_modified_processing+0x184>
 200b9f0:	c6 06 20 04 	ld  [ %i0 + 4 ], %g3                           
        *dev = bd->dev;                                               
                                                                      
      if (bd->dev == *dev)                                            
 200b9f4:	c4 04 20 18 	ld  [ %l0 + 0x18 ], %g2                        
 200b9f8:	80 a0 80 01 	cmp  %g2, %g1                                  
 200b9fc:	22 80 00 0e 	be,a   200ba34 <rtems_bdbuf_swapout_modified_processing+0x108><== ALWAYS TAKEN
 200ba00:	c2 04 20 1c 	ld  [ %l0 + 0x1c ], %g1                        
                                                                      
        node = next_node;                                             
      }                                                               
      else                                                            
      {                                                               
        node = node->next;                                            
 200ba04:	e0 04 00 00 	ld  [ %l0 ], %l0                               <== NOT EXECUTED
    if (sync_active && (*dev == BDBUF_INVALID_DEV))                   
      sync_all = true;                                                
    else                                                              
      sync_all = false;                                               
                                                                      
    while (!rtems_chain_is_tail (chain, node))                        
 200ba08:	80 a4 00 19 	cmp  %l0, %i1                                  
 200ba0c:	12 bf ff d6 	bne  200b964 <rtems_bdbuf_swapout_modified_processing+0x38>
 200ba10:	80 a4 60 00 	cmp  %l1, 0                                    
 200ba14:	81 c7 e0 08 	ret                                            
 200ba18:	81 e8 00 00 	restore                                        
       * or someone waits for a buffer written force all the timers to 0.
       *                                                              
       * @note Lots of sync requests will skew this timer. It should be based
       *       on TOD to be accurate. Does it matter ?                
       */                                                             
      if (sync_all || (sync_active && (*dev == bd->dev))              
 200ba1c:	c2 04 20 1c 	ld  [ %l0 + 0x1c ], %g1                        
 200ba20:	80 a0 80 01 	cmp  %g2, %g1                                  
 200ba24:	12 bf ff da 	bne  200b98c <rtems_bdbuf_swapout_modified_processing+0x60><== NEVER TAKEN
 200ba28:	82 14 a1 a8 	or  %l2, 0x1a8, %g1                            
          || rtems_bdbuf_has_buffer_waiters ())                       
        bd->hold_timer = 0;                                           
 200ba2c:	c0 24 20 34 	clr  [ %l0 + 0x34 ]                            
 200ba30:	30 bf ff db 	b,a   200b99c <rtems_bdbuf_swapout_modified_processing+0x70>
       * calls sets the dev to use.                                   
       */                                                             
      if (*dev == BDBUF_INVALID_DEV)                                  
        *dev = bd->dev;                                               
                                                                      
      if (bd->dev == *dev)                                            
 200ba34:	80 a0 40 03 	cmp  %g1, %g3                                  
 200ba38:	32 bf ff f4 	bne,a   200ba08 <rtems_bdbuf_swapout_modified_processing+0xdc><== NEVER TAKEN
 200ba3c:	e0 04 00 00 	ld  [ %l0 ], %l0                               <== NOT EXECUTED
 */                                                                   
RTEMS_INLINE_ROUTINE void rtems_chain_extract(                        
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Extract( the_node );                                         
 200ba40:	90 10 00 10 	mov  %l0, %o0                                  
      {                                                               
        rtems_chain_node* next_node = node->next;                     
 200ba44:	e6 04 00 00 	ld  [ %l0 ], %l3                               
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 200ba48:	e8 24 20 28 	st  %l4, [ %l0 + 0x28 ]                        
 200ba4c:	7f ff f2 1c 	call  20082bc <_Chain_Extract>                 
 200ba50:	01 00 00 00 	nop                                            
                                                                      
        rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_TRANSFER);       
                                                                      
        rtems_chain_extract (node);                                   
                                                                      
        tnode = tnode->previous;                                      
 200ba54:	d0 06 a0 08 	ld  [ %i2 + 8 ], %o0                           
                                                                      
        while (node && !rtems_chain_is_head (transfer, tnode))        
 200ba58:	80 a6 80 08 	cmp  %i2, %o0                                  
 200ba5c:	02 80 00 0c 	be  200ba8c <rtems_bdbuf_swapout_modified_processing+0x160>
 200ba60:	92 10 00 10 	mov  %l0, %o1                                  
 200ba64:	c4 04 20 20 	ld  [ %l0 + 0x20 ], %g2                        
        {                                                             
          rtems_bdbuf_buffer* tbd = (rtems_bdbuf_buffer*) tnode;      
                                                                      
          if (bd->block > tbd->block)                                 
 200ba68:	c2 02 20 20 	ld  [ %o0 + 0x20 ], %g1                        
 200ba6c:	80 a0 80 01 	cmp  %g2, %g1                                  
 200ba70:	18 80 00 0c 	bgu  200baa0 <rtems_bdbuf_swapout_modified_processing+0x174>
 200ba74:	92 10 00 10 	mov  %l0, %o1                                  
          {                                                           
            rtems_chain_insert (tnode, node);                         
            node = NULL;                                              
          }                                                           
          else                                                        
            tnode = tnode->previous;                                  
 200ba78:	d0 02 20 04 	ld  [ %o0 + 4 ], %o0                           
                                                                      
        rtems_chain_extract (node);                                   
                                                                      
        tnode = tnode->previous;                                      
                                                                      
        while (node && !rtems_chain_is_head (transfer, tnode))        
 200ba7c:	80 a6 80 08 	cmp  %i2, %o0                                  
 200ba80:	32 bf ff fb 	bne,a   200ba6c <rtems_bdbuf_swapout_modified_processing+0x140>
 200ba84:	c2 02 20 20 	ld  [ %o0 + 0x20 ], %g1                        
RTEMS_INLINE_ROUTINE void _Chain_Prepend(                             
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  _Chain_Insert(_Chain_Head(the_chain), the_node);                    
 200ba88:	92 10 00 10 	mov  %l0, %o1                                  
 200ba8c:	90 10 00 1a 	mov  %i2, %o0                                  
 200ba90:	40 00 14 d0 	call  2010dd0 <_Chain_Insert>                  
 200ba94:	a0 10 00 13 	mov  %l3, %l0                                  
    if (sync_active && (*dev == BDBUF_INVALID_DEV))                   
      sync_all = true;                                                
    else                                                              
      sync_all = false;                                               
                                                                      
    while (!rtems_chain_is_tail (chain, node))                        
 200ba98:	10 bf ff b1 	b  200b95c <rtems_bdbuf_swapout_modified_processing+0x30>
 200ba9c:	80 a4 00 19 	cmp  %l0, %i1                                  
RTEMS_INLINE_ROUTINE void rtems_chain_insert(                         
  rtems_chain_node *after_node,                                       
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Insert( after_node, the_node );                              
 200baa0:	40 00 14 cc 	call  2010dd0 <_Chain_Insert>                  
 200baa4:	a0 10 00 13 	mov  %l3, %l0                                  
 200baa8:	10 bf ff ad 	b  200b95c <rtems_bdbuf_swapout_modified_processing+0x30>
 200baac:	80 a4 00 19 	cmp  %l0, %i1                                  
      /*                                                              
       * This assumes we can set dev_t to BDBUF_INVALID_DEV which is just an
       * assumption. Cannot use the transfer list being empty the sync dev
       * calls sets the dev to use.                                   
       */                                                             
      if (*dev == BDBUF_INVALID_DEV)                                  
 200bab0:	80 a0 ff ff 	cmp  %g3, -1                                   
 200bab4:	32 bf ff d1 	bne,a   200b9f8 <rtems_bdbuf_swapout_modified_processing+0xcc><== NEVER TAKEN
 200bab8:	c4 04 20 18 	ld  [ %l0 + 0x18 ], %g2                        <== NOT EXECUTED
        *dev = bd->dev;                                               
 200babc:	c2 04 20 18 	ld  [ %l0 + 0x18 ], %g1                        
 200bac0:	c6 04 20 1c 	ld  [ %l0 + 0x1c ], %g3                        
 200bac4:	c2 26 00 00 	st  %g1, [ %i0 ]                               
 200bac8:	10 bf ff cb 	b  200b9f4 <rtems_bdbuf_swapout_modified_processing+0xc8>
 200bacc:	c6 26 20 04 	st  %g3, [ %i0 + 4 ]                           
        if (update_timers)                                            
        {                                                             
          if (bd->hold_timer > timer_delta)                           
            bd->hold_timer -= timer_delta;                            
          else                                                        
            bd->hold_timer = 0;                                       
 200bad0:	c0 24 20 34 	clr  [ %l0 + 0x34 ]                            
 200bad4:	30 bf ff c0 	b,a   200b9d4 <rtems_bdbuf_swapout_modified_processing+0xa8>
 * @param update_timers If true update the timers.                    
 * @param timer_delta It update_timers is true update the timers by this
 *                    amount.                                         
 */                                                                   
static void                                                           
rtems_bdbuf_swapout_modified_processing (dev_t*               dev,    
 200bad8:	c4 06 00 00 	ld  [ %i0 ], %g2                               
 200badc:	c2 06 20 04 	ld  [ %i0 + 4 ], %g1                           
 200bae0:	82 08 80 01 	and  %g2, %g1, %g1                             
 200bae4:	82 38 00 01 	xnor  %g0, %g1, %g1                            
 200bae8:	80 a0 00 01 	cmp  %g0, %g1                                  
 200baec:	10 bf ff 98 	b  200b94c <rtems_bdbuf_swapout_modified_processing+0x20>
 200baf0:	a2 60 3f ff 	subx  %g0, -1, %l1                             
                                                                      

0200ca1c <rtems_bdbuf_swapout_task>: * not this. * @return rtems_task Not used. */ static rtems_task rtems_bdbuf_swapout_task (rtems_task_argument arg) {
 200ca1c:	9d e3 bf 68 	save  %sp, -152, %sp                           
  rtems_bdbuf_swapout_transfer transfer;                              
  uint32_t                     period_in_ticks;                       
  const uint32_t               period_in_msecs = bdbuf_config.swapout_period;;
 200ca20:	27 00 80 63 	sethi  %hi(0x2018c00), %l3                     
 200ca24:	a6 14 e3 48 	or  %l3, 0x348, %l3	! 2018f48 <rtems_bdbuf_configuration>
  uint32_t                     timer_delta;                           
                                                                      
  transfer.write_req = rtems_bdbuf_swapout_writereq_alloc ();         
 200ca28:	7f ff fc ce 	call  200bd60 <rtems_bdbuf_swapout_writereq_alloc>
 200ca2c:	f6 04 e0 0c 	ld  [ %l3 + 0xc ], %i3                         
  transfer.syncing = false;                                           
                                                                      
  /*                                                                  
   * Localise the period.                                             
   */                                                                 
  period_in_ticks = RTEMS_MICROSECONDS_TO_TICKS (period_in_msecs * 1000);
 200ca30:	03 00 80 67 	sethi  %hi(0x2019c00), %g1                     
 200ca34:	d2 00 63 88 	ld  [ %g1 + 0x388 ], %o1	! 2019f88 <Configuration+0xc>
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 200ca38:	82 07 bf d4 	add  %fp, -44, %g1                             
  const uint32_t               period_in_msecs = bdbuf_config.swapout_period;;
  uint32_t                     timer_delta;                           
                                                                      
  transfer.write_req = rtems_bdbuf_swapout_writereq_alloc ();         
  rtems_chain_initialize_empty (&transfer.bds);                       
  transfer.dev = BDBUF_INVALID_DEV;                                   
 200ca3c:	05 3f ff ff 	sethi  %hi(0xfffffc00), %g2                    
 200ca40:	c2 27 bf d0 	st  %g1, [ %fp + -48 ]                         
 200ca44:	84 10 a3 ff 	or  %g2, 0x3ff, %g2                            
  transfer.syncing = false;                                           
                                                                      
  /*                                                                  
   * Localise the period.                                             
   */                                                                 
  period_in_ticks = RTEMS_MICROSECONDS_TO_TICKS (period_in_msecs * 1000);
 200ca48:	83 2e e0 02 	sll  %i3, 2, %g1                               
  const uint32_t               period_in_msecs = bdbuf_config.swapout_period;;
  uint32_t                     timer_delta;                           
                                                                      
  transfer.write_req = rtems_bdbuf_swapout_writereq_alloc ();         
  rtems_chain_initialize_empty (&transfer.bds);                       
  transfer.dev = BDBUF_INVALID_DEV;                                   
 200ca4c:	86 10 00 02 	mov  %g2, %g3                                  
  rtems_bdbuf_swapout_transfer transfer;                              
  uint32_t                     period_in_ticks;                       
  const uint32_t               period_in_msecs = bdbuf_config.swapout_period;;
  uint32_t                     timer_delta;                           
                                                                      
  transfer.write_req = rtems_bdbuf_swapout_writereq_alloc ();         
 200ca50:	d0 27 bf ec 	st  %o0, [ %fp + -20 ]                         
  rtems_chain_initialize_empty (&transfer.bds);                       
  transfer.dev = BDBUF_INVALID_DEV;                                   
 200ca54:	c4 3f bf e0 	std  %g2, [ %fp + -32 ]                        
 200ca58:	a2 07 bf d0 	add  %fp, -48, %l1                             
  head->previous = NULL;                                              
 200ca5c:	c0 27 bf d4 	clr  [ %fp + -44 ]                             
  tail->previous = head;                                              
 200ca60:	e2 27 bf d8 	st  %l1, [ %fp + -40 ]                         
  transfer.syncing = false;                                           
 200ca64:	c0 2f bf e8 	clrb  [ %fp + -24 ]                            
                                                                      
  /*                                                                  
   * Localise the period.                                             
   */                                                                 
  period_in_ticks = RTEMS_MICROSECONDS_TO_TICKS (period_in_msecs * 1000);
 200ca68:	91 2e e0 07 	sll  %i3, 7, %o0                               
 200ca6c:	90 22 00 01 	sub  %o0, %g1, %o0                             
 200ca70:	90 02 00 1b 	add  %o0, %i3, %o0                             
 200ca74:	40 00 28 de 	call  2016dec <.udiv>                          
 200ca78:	91 2a 20 03 	sll  %o0, 3, %o0                               
rtems_bdbuf_swapout_workers_open (void)                               
{                                                                     
  rtems_status_code sc;                                               
  size_t            w;                                                
                                                                      
  rtems_bdbuf_lock_cache ();                                          
 200ca7c:	7f ff fb 8b 	call  200b8a8 <rtems_bdbuf_lock_cache>         
 200ca80:	d0 27 bf cc 	st  %o0, [ %fp + -52 ]                         
                                                                      
  for (w = 0; w < bdbuf_config.swapout_workers; w++)                  
 200ca84:	e4 04 e0 14 	ld  [ %l3 + 0x14 ], %l2                        
 200ca88:	80 a4 a0 00 	cmp  %l2, 0                                    
 200ca8c:	02 80 00 34 	be  200cb5c <rtems_bdbuf_swapout_task+0x140>   <== ALWAYS TAKEN
 200ca90:	29 3f ff ff 	sethi  %hi(0xfffffc00), %l4                    
RTEMS_INLINE_ROUTINE void rtems_chain_append(                         
  rtems_chain_control *the_chain,                                     
  rtems_chain_node    *the_node                                       
)                                                                     
{                                                                     
  _Chain_Append( the_chain, the_node );                               
 200ca94:	31 00 80 6a 	sethi  %hi(0x201a800), %i0                     <== NOT EXECUTED
    worker->transfer.write_req = rtems_bdbuf_swapout_writereq_alloc ();
                                                                      
    rtems_chain_initialize_empty (&worker->transfer.bds);             
    worker->transfer.dev = BDBUF_INVALID_DEV;                         
                                                                      
    sc = rtems_task_create (rtems_build_name('B', 'D', 'o', 'a' + w), 
 200ca98:	35 10 91 1b 	sethi  %hi(0x42446c00), %i2                    <== NOT EXECUTED
    rtems_chain_append (&bdbuf_cache.swapout_workers, &worker->link); 
    worker->enabled = true;                                           
    worker->transfer.write_req = rtems_bdbuf_swapout_writereq_alloc ();
                                                                      
    rtems_chain_initialize_empty (&worker->transfer.bds);             
    worker->transfer.dev = BDBUF_INVALID_DEV;                         
 200ca9c:	a8 15 23 ff 	or  %l4, 0x3ff, %l4                            <== NOT EXECUTED
                            RTEMS_LOCAL | RTEMS_NO_FLOATING_POINT,    
                            &worker->id);                             
    if (sc != RTEMS_SUCCESSFUL)                                       
      rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_WK_CREATE);
                                                                      
    sc = rtems_task_start (worker->id,                                
 200caa0:	21 00 80 33 	sethi  %hi(0x200cc00), %l0                     <== NOT EXECUTED
 * @param arg A pointer to the global cache data. Use the global variable and
 *            not this.                                               
 * @return rtems_task Not used.                                       
 */                                                                   
static rtems_task                                                     
rtems_bdbuf_swapout_task (rtems_task_argument arg)                    
 200caa4:	a4 04 a0 61 	add  %l2, 0x61, %l2                            <== NOT EXECUTED
 200caa8:	b8 10 20 61 	mov  0x61, %i4                                 <== NOT EXECUTED
 200caac:	b0 16 21 b0 	or  %i0, 0x1b0, %i0                            <== NOT EXECUTED
    worker = malloc (sizeof (rtems_bdbuf_swapout_worker));            
    if (!worker)                                                      
      rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_NOMEM); 
                                                                      
    rtems_chain_append (&bdbuf_cache.swapout_workers, &worker->link); 
    worker->enabled = true;                                           
 200cab0:	b2 10 20 01 	mov  1, %i1                                    <== NOT EXECUTED
    worker->transfer.write_req = rtems_bdbuf_swapout_writereq_alloc ();
                                                                      
    rtems_chain_initialize_empty (&worker->transfer.bds);             
    worker->transfer.dev = BDBUF_INVALID_DEV;                         
 200cab4:	aa 10 00 14 	mov  %l4, %l5                                  <== NOT EXECUTED
                                                                      
    sc = rtems_task_create (rtems_build_name('B', 'D', 'o', 'a' + w), 
 200cab8:	b4 16 a3 00 	or  %i2, 0x300, %i2                            <== NOT EXECUTED
                            RTEMS_LOCAL | RTEMS_NO_FLOATING_POINT,    
                            &worker->id);                             
    if (sc != RTEMS_SUCCESSFUL)                                       
      rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_WK_CREATE);
                                                                      
    sc = rtems_task_start (worker->id,                                
 200cabc:	a0 14 21 c0 	or  %l0, 0x1c0, %l0                            <== NOT EXECUTED
                                                                      
  for (w = 0; w < bdbuf_config.swapout_workers; w++)                  
  {                                                                   
    rtems_bdbuf_swapout_worker* worker;                               
                                                                      
    worker = malloc (sizeof (rtems_bdbuf_swapout_worker));            
 200cac0:	7f ff dc c2 	call  2003dc8 <malloc>                         <== NOT EXECUTED
 200cac4:	90 10 20 38 	mov  0x38, %o0                                 <== NOT EXECUTED
    if (!worker)                                                      
 200cac8:	ba 92 20 00 	orcc  %o0, 0, %i5                              <== NOT EXECUTED
 200cacc:	02 80 00 b6 	be  200cda4 <rtems_bdbuf_swapout_task+0x388>   <== NOT EXECUTED
 200cad0:	92 10 00 1d 	mov  %i5, %o1                                  <== NOT EXECUTED
 200cad4:	7f ff ed ef 	call  2008290 <_Chain_Append>                  <== NOT EXECUTED
 200cad8:	90 10 00 18 	mov  %i0, %o0                                  <== NOT EXECUTED
      rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_NOMEM); 
                                                                      
    rtems_chain_append (&bdbuf_cache.swapout_workers, &worker->link); 
    worker->enabled = true;                                           
 200cadc:	f2 2f 60 0c 	stb  %i1, [ %i5 + 0xc ]                        <== NOT EXECUTED
    worker->transfer.write_req = rtems_bdbuf_swapout_writereq_alloc ();
 200cae0:	7f ff fc a0 	call  200bd60 <rtems_bdbuf_swapout_writereq_alloc><== NOT EXECUTED
 200cae4:	01 00 00 00 	nop                                            <== NOT EXECUTED
                                                                      
    rtems_chain_initialize_empty (&worker->transfer.bds);             
    worker->transfer.dev = BDBUF_INVALID_DEV;                         
                                                                      
    sc = rtems_task_create (rtems_build_name('B', 'D', 'o', 'a' + w), 
                            (bdbuf_config.swapout_priority ?          
 200cae8:	d2 04 e0 08 	ld  [ %l3 + 8 ], %o1                           <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
 200caec:	82 07 60 10 	add  %i5, 0x10, %g1                            <== NOT EXECUTED
 200caf0:	84 07 60 14 	add  %i5, 0x14, %g2                            <== NOT EXECUTED
    if (!worker)                                                      
      rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_NOMEM); 
                                                                      
    rtems_chain_append (&bdbuf_cache.swapout_workers, &worker->link); 
    worker->enabled = true;                                           
    worker->transfer.write_req = rtems_bdbuf_swapout_writereq_alloc ();
 200caf4:	d0 27 60 2c 	st  %o0, [ %i5 + 0x2c ]                        <== NOT EXECUTED
                                                                      
  head->next = tail;                                                  
 200caf8:	c4 27 60 10 	st  %g2, [ %i5 + 0x10 ]                        <== NOT EXECUTED
  head->previous = NULL;                                              
 200cafc:	c0 27 60 14 	clr  [ %i5 + 0x14 ]                            <== NOT EXECUTED
  tail->previous = head;                                              
 200cb00:	c2 27 60 18 	st  %g1, [ %i5 + 0x18 ]                        <== NOT EXECUTED
                                                                      
    rtems_chain_initialize_empty (&worker->transfer.bds);             
    worker->transfer.dev = BDBUF_INVALID_DEV;                         
 200cb04:	e8 3f 60 20 	std  %l4, [ %i5 + 0x20 ]                       <== NOT EXECUTED
                                                                      
    sc = rtems_task_create (rtems_build_name('B', 'D', 'o', 'a' + w), 
 200cb08:	80 a2 60 00 	cmp  %o1, 0                                    <== NOT EXECUTED
 200cb0c:	12 80 00 03 	bne  200cb18 <rtems_bdbuf_swapout_task+0xfc>   <== NOT EXECUTED
 200cb10:	90 17 00 1a 	or  %i4, %i2, %o0                              <== NOT EXECUTED
 200cb14:	92 10 20 0f 	mov  0xf, %o1                                  <== NOT EXECUTED
 200cb18:	15 00 00 08 	sethi  %hi(0x2000), %o2                        <== NOT EXECUTED
 200cb1c:	96 10 24 00 	mov  0x400, %o3                                <== NOT EXECUTED
 200cb20:	98 10 20 00 	clr  %o4                                       <== NOT EXECUTED
 200cb24:	7f ff eb 44 	call  2007834 <rtems_task_create>              <== NOT EXECUTED
 200cb28:	9a 07 60 08 	add  %i5, 8, %o5                               <== NOT EXECUTED
                             RTEMS_BDBUF_SWAPOUT_TASK_PRIORITY_DEFAULT),
                            SWAPOUT_TASK_STACK_SIZE,                  
                            RTEMS_PREEMPT | RTEMS_NO_TIMESLICE | RTEMS_NO_ASR,
                            RTEMS_LOCAL | RTEMS_NO_FLOATING_POINT,    
                            &worker->id);                             
    if (sc != RTEMS_SUCCESSFUL)                                       
 200cb2c:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
 200cb30:	12 80 00 9a 	bne  200cd98 <rtems_bdbuf_swapout_task+0x37c>  <== NOT EXECUTED
 200cb34:	92 10 00 10 	mov  %l0, %o1                                  <== NOT EXECUTED
      rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_WK_CREATE);
                                                                      
    sc = rtems_task_start (worker->id,                                
 200cb38:	d0 07 60 08 	ld  [ %i5 + 8 ], %o0                           <== NOT EXECUTED
 200cb3c:	7f ff eb ca 	call  2007a64 <rtems_task_start>               <== NOT EXECUTED
 200cb40:	94 10 00 1d 	mov  %i5, %o2                                  <== NOT EXECUTED
                           rtems_bdbuf_swapout_worker_task,           
                           (rtems_task_argument) worker);             
    if (sc != RTEMS_SUCCESSFUL)                                       
 200cb44:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
 200cb48:	12 80 00 9a 	bne  200cdb0 <rtems_bdbuf_swapout_task+0x394>  <== NOT EXECUTED
 200cb4c:	b8 07 20 01 	inc  %i4                                       <== NOT EXECUTED
  rtems_status_code sc;                                               
  size_t            w;                                                
                                                                      
  rtems_bdbuf_lock_cache ();                                          
                                                                      
  for (w = 0; w < bdbuf_config.swapout_workers; w++)                  
 200cb50:	80 a7 00 12 	cmp  %i4, %l2                                  <== NOT EXECUTED
 200cb54:	12 bf ff db 	bne  200cac0 <rtems_bdbuf_swapout_task+0xa4>   <== NOT EXECUTED
 200cb58:	01 00 00 00 	nop                                            <== NOT EXECUTED
    if (worker)                                                       
      transfer = &worker->transfer;                                   
  }                                                                   
                                                                      
  rtems_chain_initialize_empty (&transfer->bds);                      
  transfer->dev = BDBUF_INVALID_DEV;                                  
 200cb5c:	2d 3f ff ff 	sethi  %hi(0xfffffc00), %l6                    
 200cb60:	39 00 80 6a 	sethi  %hi(0x201a800), %i4                     
 200cb64:	ac 15 a3 ff 	or  %l6, 0x3ff, %l6                            
                           (rtems_task_argument) worker);             
    if (sc != RTEMS_SUCCESSFUL)                                       
      rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_WK_START);
  }                                                                   
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
 200cb68:	7f ff fb e3 	call  200baf4 <rtems_bdbuf_unlock_cache>       
 200cb6c:	b8 17 21 a8 	or  %i4, 0x1a8, %i4                            
    if (worker)                                                       
      transfer = &worker->transfer;                                   
  }                                                                   
                                                                      
  rtems_chain_initialize_empty (&transfer->bds);                      
  transfer->dev = BDBUF_INVALID_DEV;                                  
 200cb70:	ae 10 00 16 	mov  %l6, %l7                                  
  /*                                                                  
   * Create the worker threads.                                       
   */                                                                 
  rtems_bdbuf_swapout_workers_open ();                                
                                                                      
  while (bdbuf_cache.swapout_enabled)                                 
 200cb74:	a0 10 00 1c 	mov  %i4, %l0                                  
 */                                                                   
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(               
  rtems_chain_control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Get( the_chain );                                     
 200cb78:	aa 07 20 08 	add  %i4, 8, %l5                               
                                                                      
  /*                                                                  
   * If we have any buffers in the sync queue move them to the modified
   * list. The first sync buffer will select the device we use.       
   */                                                                 
  rtems_bdbuf_swapout_modified_processing (&transfer->dev,            
 200cb7c:	a6 07 20 5c 	add  %i4, 0x5c, %l3                            
                                           timer_delta);              
                                                                      
  /*                                                                  
   * Process the cache's modified list.                               
   */                                                                 
  rtems_bdbuf_swapout_modified_processing (&transfer->dev,            
 200cb80:	a8 07 20 50 	add  %i4, 0x50, %l4                            
  /*                                                                  
   * Create the worker threads.                                       
   */                                                                 
  rtems_bdbuf_swapout_workers_open ();                                
                                                                      
  while (bdbuf_cache.swapout_enabled)                                 
 200cb84:	c2 0f 20 04 	ldub  [ %i4 + 4 ], %g1                         
 200cb88:	80 a0 60 00 	cmp  %g1, 0                                    
 200cb8c:	02 80 00 69 	be  200cd30 <rtems_bdbuf_swapout_task+0x314>   <== NEVER TAKEN
 200cb90:	01 00 00 00 	nop                                            
                                rtems_bdbuf_swapout_transfer* transfer)
{                                                                     
  rtems_bdbuf_swapout_worker* worker;                                 
  bool                        transfered_buffers = false;             
                                                                      
  rtems_bdbuf_lock_cache ();                                          
 200cb94:	7f ff fb 45 	call  200b8a8 <rtems_bdbuf_lock_cache>         
 200cb98:	01 00 00 00 	nop                                            
   * here. We do not know the worker is the last in a sequence of sync writes
   * until after we have it running so we do not know to tell it to release the
   * lock. The simplest solution is to get the main swap out task perform all
   * sync operations.                                                 
   */                                                                 
  if (bdbuf_cache.sync_active)                                        
 200cb9c:	c2 0f 20 30 	ldub  [ %i4 + 0x30 ], %g1                      
  /*                                                                  
   * Create the worker threads.                                       
   */                                                                 
  rtems_bdbuf_swapout_workers_open ();                                
                                                                      
  while (bdbuf_cache.swapout_enabled)                                 
 200cba0:	b0 10 20 01 	mov  1, %i0                                    
   * until after we have it running so we do not know to tell it to release the
   * lock. The simplest solution is to get the main swap out task perform all
   * sync operations.                                                 
   */                                                                 
  if (bdbuf_cache.sync_active)                                        
    worker = NULL;                                                    
 200cba4:	b4 10 20 00 	clr  %i2                                       
   * here. We do not know the worker is the last in a sequence of sync writes
   * until after we have it running so we do not know to tell it to release the
   * lock. The simplest solution is to get the main swap out task perform all
   * sync operations.                                                 
   */                                                                 
  if (bdbuf_cache.sync_active)                                        
 200cba8:	80 a0 60 00 	cmp  %g1, 0                                    
 200cbac:	02 80 00 38 	be  200cc8c <rtems_bdbuf_swapout_task+0x270>   
 200cbb0:	ba 10 00 11 	mov  %l1, %i5                                  
      transfer = &worker->transfer;                                   
  }                                                                   
                                                                      
  rtems_chain_initialize_empty (&transfer->bds);                      
  transfer->dev = BDBUF_INVALID_DEV;                                  
  transfer->syncing = bdbuf_cache.sync_active;                        
 200cbb4:	c4 0f 20 30 	ldub  [ %i4 + 0x30 ], %g2                      
  /*                                                                  
   * When the sync is for a device limit the sync to that device. If the sync
   * is for a buffer handle process the devices in the order on the sync
   * list. This means the dev is BDBUF_INVALID_DEV.                   
   */                                                                 
  if (bdbuf_cache.sync_active)                                        
 200cbb8:	c2 0f 20 30 	ldub  [ %i4 + 0x30 ], %g1                      
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
 200cbbc:	b2 07 60 04 	add  %i5, 4, %i1                               
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
 200cbc0:	c0 27 60 04 	clr  [ %i5 + 4 ]                               
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 200cbc4:	f2 27 40 00 	st  %i1, [ %i5 ]                               
  head->previous = NULL;                                              
  tail->previous = head;                                              
 200cbc8:	fa 27 60 08 	st  %i5, [ %i5 + 8 ]                           
    if (worker)                                                       
      transfer = &worker->transfer;                                   
  }                                                                   
                                                                      
  rtems_chain_initialize_empty (&transfer->bds);                      
  transfer->dev = BDBUF_INVALID_DEV;                                  
 200cbcc:	ec 3f 60 10 	std  %l6, [ %i5 + 0x10 ]                       
  /*                                                                  
   * When the sync is for a device limit the sync to that device. If the sync
   * is for a buffer handle process the devices in the order on the sync
   * list. This means the dev is BDBUF_INVALID_DEV.                   
   */                                                                 
  if (bdbuf_cache.sync_active)                                        
 200cbd0:	80 a0 60 00 	cmp  %g1, 0                                    
 200cbd4:	02 80 00 04 	be  200cbe4 <rtems_bdbuf_swapout_task+0x1c8>   
 200cbd8:	c4 2f 60 18 	stb  %g2, [ %i5 + 0x18 ]                       
    transfer->dev = bdbuf_cache.sync_device;                          
 200cbdc:	c4 1c 20 38 	ldd  [ %l0 + 0x38 ], %g2                       
 200cbe0:	c4 3f 60 10 	std  %g2, [ %i5 + 0x10 ]                       
                                                                      
  /*                                                                  
   * If we have any buffers in the sync queue move them to the modified
   * list. The first sync buffer will select the device we use.       
   */                                                                 
  rtems_bdbuf_swapout_modified_processing (&transfer->dev,            
 200cbe4:	a4 07 60 10 	add  %i5, 0x10, %l2                            
 200cbe8:	96 10 20 01 	mov  1, %o3                                    
 200cbec:	98 10 20 00 	clr  %o4                                       
 200cbf0:	9a 10 00 1b 	mov  %i3, %o5                                  
 200cbf4:	90 10 00 12 	mov  %l2, %o0                                  
 200cbf8:	92 10 00 13 	mov  %l3, %o1                                  
 200cbfc:	7f ff fb 4c 	call  200b92c <rtems_bdbuf_swapout_modified_processing>
 200cc00:	94 10 00 1d 	mov  %i5, %o2                                  
                                           timer_delta);              
                                                                      
  /*                                                                  
   * Process the cache's modified list.                               
   */                                                                 
  rtems_bdbuf_swapout_modified_processing (&transfer->dev,            
 200cc04:	d6 0f 20 30 	ldub  [ %i4 + 0x30 ], %o3                      
 200cc08:	90 10 00 12 	mov  %l2, %o0                                  
 200cc0c:	92 10 00 14 	mov  %l4, %o1                                  
 200cc10:	94 10 00 1d 	mov  %i5, %o2                                  
 200cc14:	98 0e 20 01 	and  %i0, 1, %o4                               
 200cc18:	7f ff fb 45 	call  200b92c <rtems_bdbuf_swapout_modified_processing>
 200cc1c:	9a 10 00 1b 	mov  %i3, %o5                                  
  /*                                                                  
   * We have all the buffers that have been modified for this device so the
   * cache can be unlocked because the state of each buffer has been set to
   * TRANSFER.                                                        
   */                                                                 
  rtems_bdbuf_unlock_cache ();                                        
 200cc20:	7f ff fb b5 	call  200baf4 <rtems_bdbuf_unlock_cache>       
 200cc24:	01 00 00 00 	nop                                            
                                                                      
  /*                                                                  
   * If there are buffers to transfer to the media transfer them.     
   */                                                                 
  if (!rtems_chain_is_empty (&transfer->bds))                         
 200cc28:	c2 07 40 00 	ld  [ %i5 ], %g1                               
 200cc2c:	80 a0 40 19 	cmp  %g1, %i1                                  
 200cc30:	02 80 00 3a 	be  200cd18 <rtems_bdbuf_swapout_task+0x2fc>   
 200cc34:	80 a6 a0 00 	cmp  %i2, 0                                    
  {                                                                   
    if (worker)                                                       
 200cc38:	02 80 00 3a 	be  200cd20 <rtems_bdbuf_swapout_task+0x304>   <== ALWAYS TAKEN
 200cc3c:	01 00 00 00 	nop                                            
    {                                                                 
      rtems_status_code sc = rtems_event_send (worker->id,            
 200cc40:	d0 06 a0 08 	ld  [ %i2 + 8 ], %o0                           <== NOT EXECUTED
 200cc44:	7f ff e9 48 	call  2007164 <rtems_event_send>               <== NOT EXECUTED
 200cc48:	92 10 20 04 	mov  4, %o1                                    <== NOT EXECUTED
                                               RTEMS_BDBUF_SWAPOUT_SYNC);
      if (sc != RTEMS_SUCCESSFUL)                                     
 200cc4c:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
 200cc50:	12 80 00 4f 	bne  200cd8c <rtems_bdbuf_swapout_task+0x370>  <== NOT EXECUTED
 200cc54:	84 10 20 01 	mov  1, %g2                                    <== NOT EXECUTED
    }                                                                 
                                                                      
    transfered_buffers = true;                                        
  }                                                                   
                                                                      
  if (bdbuf_cache.sync_active && !transfered_buffers)                 
 200cc58:	c2 0f 20 30 	ldub  [ %i4 + 0x30 ], %g1                      
 200cc5c:	80 a0 60 00 	cmp  %g1, 0                                    
 200cc60:	02 80 00 2a 	be  200cd08 <rtems_bdbuf_swapout_task+0x2ec>   
 200cc64:	80 88 a0 ff 	btst  0xff, %g2                                
 200cc68:	02 80 00 0f 	be  200cca4 <rtems_bdbuf_swapout_task+0x288>   
 200cc6c:	b0 10 20 00 	clr  %i0                                       
                                rtems_bdbuf_swapout_transfer* transfer)
{                                                                     
  rtems_bdbuf_swapout_worker* worker;                                 
  bool                        transfered_buffers = false;             
                                                                      
  rtems_bdbuf_lock_cache ();                                          
 200cc70:	7f ff fb 0e 	call  200b8a8 <rtems_bdbuf_lock_cache>         
 200cc74:	01 00 00 00 	nop                                            
   * here. We do not know the worker is the last in a sequence of sync writes
   * until after we have it running so we do not know to tell it to release the
   * lock. The simplest solution is to get the main swap out task perform all
   * sync operations.                                                 
   */                                                                 
  if (bdbuf_cache.sync_active)                                        
 200cc78:	c2 0f 20 30 	ldub  [ %i4 + 0x30 ], %g1                      
    worker = NULL;                                                    
 200cc7c:	b4 10 20 00 	clr  %i2                                       
   * here. We do not know the worker is the last in a sequence of sync writes
   * until after we have it running so we do not know to tell it to release the
   * lock. The simplest solution is to get the main swap out task perform all
   * sync operations.                                                 
   */                                                                 
  if (bdbuf_cache.sync_active)                                        
 200cc80:	80 a0 60 00 	cmp  %g1, 0                                    
 200cc84:	12 bf ff cc 	bne  200cbb4 <rtems_bdbuf_swapout_task+0x198>  
 200cc88:	ba 10 00 11 	mov  %l1, %i5                                  
 200cc8c:	7f ff ed 95 	call  20082e0 <_Chain_Get>                     
 200cc90:	90 10 00 15 	mov  %l5, %o0                                  
    worker = NULL;                                                    
  else                                                                
  {                                                                   
    worker = (rtems_bdbuf_swapout_worker*)                            
      rtems_chain_get (&bdbuf_cache.swapout_workers);                 
    if (worker)                                                       
 200cc94:	b4 92 20 00 	orcc  %o0, 0, %i2                              
 200cc98:	32 bf ff c7 	bne,a   200cbb4 <rtems_bdbuf_swapout_task+0x198><== NEVER TAKEN
 200cc9c:	ba 06 a0 10 	add  %i2, 0x10, %i5                            <== NOT EXECUTED
 200cca0:	30 bf ff c5 	b,a   200cbb4 <rtems_bdbuf_swapout_task+0x198> 
  }                                                                   
                                                                      
  if (bdbuf_cache.sync_active && !transfered_buffers)                 
  {                                                                   
    rtems_id sync_requester;                                          
    rtems_bdbuf_lock_cache ();                                        
 200cca4:	7f ff fb 01 	call  200b8a8 <rtems_bdbuf_lock_cache>         
 200cca8:	01 00 00 00 	nop                                            
    sync_requester = bdbuf_cache.sync_requester;                      
 200ccac:	fa 04 20 34 	ld  [ %l0 + 0x34 ], %i5                        
    bdbuf_cache.sync_active = false;                                  
 200ccb0:	c0 2c 20 30 	clrb  [ %l0 + 0x30 ]                           
    bdbuf_cache.sync_requester = 0;                                   
 200ccb4:	c0 24 20 34 	clr  [ %l0 + 0x34 ]                            
    rtems_bdbuf_unlock_cache ();                                      
 200ccb8:	7f ff fb 8f 	call  200baf4 <rtems_bdbuf_unlock_cache>       
 200ccbc:	01 00 00 00 	nop                                            
    if (sync_requester)                                               
 200ccc0:	80 a7 60 00 	cmp  %i5, 0                                    
 200ccc4:	02 80 00 06 	be  200ccdc <rtems_bdbuf_swapout_task+0x2c0>   <== NEVER TAKEN
 200ccc8:	d4 07 bf cc 	ld  [ %fp + -52 ], %o2                         
      rtems_event_send (sync_requester, RTEMS_BDBUF_TRANSFER_SYNC);   
 200cccc:	90 10 00 1d 	mov  %i5, %o0                                  
 200ccd0:	7f ff e9 25 	call  2007164 <rtems_event_send>               
 200ccd4:	92 10 20 02 	mov  2, %o1                                    
       */                                                             
      update_timers = false;                                          
    }                                                                 
    while (transfered_buffers);                                       
                                                                      
    sc = rtems_event_receive (RTEMS_BDBUF_SWAPOUT_SYNC,               
 200ccd8:	d4 07 bf cc 	ld  [ %fp + -52 ], %o2                         
 200ccdc:	90 10 20 04 	mov  4, %o0                                    
 200cce0:	92 10 20 00 	clr  %o1                                       
 200cce4:	7f ff e8 bd 	call  2006fd8 <rtems_event_receive>            
 200cce8:	96 07 bf fc 	add  %fp, -4, %o3                              
                              RTEMS_EVENT_ALL | RTEMS_WAIT,           
                              period_in_ticks,                        
                              &out);                                  
                                                                      
    if ((sc != RTEMS_SUCCESSFUL) && (sc != RTEMS_TIMEOUT))            
 200ccec:	80 a2 20 06 	cmp  %o0, 6                                    
 200ccf0:	02 bf ff a5 	be  200cb84 <rtems_bdbuf_swapout_task+0x168>   
 200ccf4:	80 a2 20 00 	cmp  %o0, 0                                    
 200ccf8:	02 bf ff a3 	be  200cb84 <rtems_bdbuf_swapout_task+0x168>   <== ALWAYS TAKEN
 200ccfc:	11 10 80 00 	sethi  %hi(0x42000000), %o0                    
      rtems_fatal_error_occurred (BLKDEV_FATAL_BDBUF_SWAPOUT_RE);     
 200cd00:	7f ff eb f2 	call  2007cc8 <rtems_fatal_error_occurred>     <== NOT EXECUTED
 200cd04:	90 12 20 18 	or  %o0, 0x18, %o0	! 42000018 <RAM_END+0x3fc00018><== NOT EXECUTED
      /*                                                              
       * Extact all the buffers we find for a specific device. The device is
       * the first one we find on a modified list. Process the sync queue of
       * buffers first.                                               
       */                                                             
      if (rtems_bdbuf_swapout_processing (timer_delta,                
 200cd08:	02 bf ff f5 	be  200ccdc <rtems_bdbuf_swapout_task+0x2c0>   
 200cd0c:	d4 07 bf cc 	ld  [ %fp + -52 ], %o2                         
 200cd10:	10 bf ff d8 	b  200cc70 <rtems_bdbuf_swapout_task+0x254>    
 200cd14:	b0 10 20 00 	clr  %i0                                       
rtems_bdbuf_swapout_processing (unsigned long                 timer_delta,
                                bool                          update_timers,
                                rtems_bdbuf_swapout_transfer* transfer)
{                                                                     
  rtems_bdbuf_swapout_worker* worker;                                 
  bool                        transfered_buffers = false;             
 200cd18:	10 bf ff d0 	b  200cc58 <rtems_bdbuf_swapout_task+0x23c>    
 200cd1c:	84 10 20 00 	clr  %g2                                       
      if (sc != RTEMS_SUCCESSFUL)                                     
        rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_WAKE);
    }                                                                 
    else                                                              
    {                                                                 
      rtems_bdbuf_swapout_write (transfer);                           
 200cd20:	7f ff fe cd 	call  200c854 <rtems_bdbuf_swapout_write>      
 200cd24:	90 10 00 1d 	mov  %i5, %o0                                  
    }                                                                 
                                                                      
    transfered_buffers = true;                                        
 200cd28:	10 bf ff cc 	b  200cc58 <rtems_bdbuf_swapout_task+0x23c>    
 200cd2c:	84 10 20 01 	mov  1, %g2                                    
static void                                                           
rtems_bdbuf_swapout_workers_close (void)                              
{                                                                     
  rtems_chain_node* node;                                             
                                                                      
  rtems_bdbuf_lock_cache ();                                          
 200cd30:	7f ff fa de 	call  200b8a8 <rtems_bdbuf_lock_cache>         <== NOT EXECUTED
 200cd34:	01 00 00 00 	nop                                            <== NOT EXECUTED
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
 200cd38:	fa 04 20 08 	ld  [ %l0 + 8 ], %i5                           <== NOT EXECUTED
                                                                      
  node = rtems_chain_first (&bdbuf_cache.swapout_workers);            
  while (!rtems_chain_is_tail (&bdbuf_cache.swapout_workers, node))   
 200cd3c:	a0 04 20 0c 	add  %l0, 0xc, %l0                             <== NOT EXECUTED
 200cd40:	80 a7 40 10 	cmp  %i5, %l0                                  <== NOT EXECUTED
 200cd44:	02 80 00 0a 	be  200cd6c <rtems_bdbuf_swapout_task+0x350>   <== NOT EXECUTED
 200cd48:	01 00 00 00 	nop                                            <== NOT EXECUTED
  {                                                                   
    rtems_bdbuf_swapout_worker* worker = (rtems_bdbuf_swapout_worker*) node;
    worker->enabled = false;                                          
    rtems_event_send (worker->id, RTEMS_BDBUF_SWAPOUT_SYNC);          
 200cd4c:	d0 07 60 08 	ld  [ %i5 + 8 ], %o0                           <== NOT EXECUTED
                                                                      
  node = rtems_chain_first (&bdbuf_cache.swapout_workers);            
  while (!rtems_chain_is_tail (&bdbuf_cache.swapout_workers, node))   
  {                                                                   
    rtems_bdbuf_swapout_worker* worker = (rtems_bdbuf_swapout_worker*) node;
    worker->enabled = false;                                          
 200cd50:	c0 2f 60 0c 	clrb  [ %i5 + 0xc ]                            <== NOT EXECUTED
    rtems_event_send (worker->id, RTEMS_BDBUF_SWAPOUT_SYNC);          
 200cd54:	7f ff e9 04 	call  2007164 <rtems_event_send>               <== NOT EXECUTED
 200cd58:	92 10 20 04 	mov  4, %o1                                    <== NOT EXECUTED
rtems_bdbuf_purge_major (rtems_device_major_number major)             
{                                                                     
  dev_t dev = rtems_filesystem_make_dev_t (major, 0);                 
                                                                      
  rtems_bdbuf_purge (rtems_bdbuf_purge_compare_major, dev);           
}                                                                     
 200cd5c:	fa 07 40 00 	ld  [ %i5 ], %i5                               <== NOT EXECUTED
  rtems_chain_node* node;                                             
                                                                      
  rtems_bdbuf_lock_cache ();                                          
                                                                      
  node = rtems_chain_first (&bdbuf_cache.swapout_workers);            
  while (!rtems_chain_is_tail (&bdbuf_cache.swapout_workers, node))   
 200cd60:	80 a7 40 10 	cmp  %i5, %l0                                  <== NOT EXECUTED
 200cd64:	32 bf ff fb 	bne,a   200cd50 <rtems_bdbuf_swapout_task+0x334><== NOT EXECUTED
 200cd68:	d0 07 60 08 	ld  [ %i5 + 8 ], %o0                           <== NOT EXECUTED
    worker->enabled = false;                                          
    rtems_event_send (worker->id, RTEMS_BDBUF_SWAPOUT_SYNC);          
    node = rtems_chain_next (node);                                   
  }                                                                   
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
 200cd6c:	7f ff fb 62 	call  200baf4 <rtems_bdbuf_unlock_cache>       <== NOT EXECUTED
 200cd70:	01 00 00 00 	nop                                            <== NOT EXECUTED
      rtems_fatal_error_occurred (BLKDEV_FATAL_BDBUF_SWAPOUT_RE);     
  }                                                                   
                                                                      
  rtems_bdbuf_swapout_workers_close ();                               
                                                                      
  free (transfer.write_req);                                          
 200cd74:	7f ff db 33 	call  2003a40 <free>                           <== NOT EXECUTED
 200cd78:	d0 07 bf ec 	ld  [ %fp + -20 ], %o0                         <== NOT EXECUTED
                                                                      
  rtems_task_delete (RTEMS_SELF);                                     
 200cd7c:	7f ff ea f8 	call  200795c <rtems_task_delete>              <== NOT EXECUTED
 200cd80:	90 10 20 00 	clr  %o0                                       <== NOT EXECUTED
}                                                                     
 200cd84:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200cd88:	81 e8 00 00 	restore                                        <== NOT EXECUTED
    if (worker)                                                       
    {                                                                 
      rtems_status_code sc = rtems_event_send (worker->id,            
                                               RTEMS_BDBUF_SWAPOUT_SYNC);
      if (sc != RTEMS_SUCCESSFUL)                                     
        rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_WAKE);
 200cd8c:	11 10 80 00 	sethi  %hi(0x42000000), %o0                    <== NOT EXECUTED
 200cd90:	7f ff eb ce 	call  2007cc8 <rtems_fatal_error_occurred>     <== NOT EXECUTED
 200cd94:	90 12 20 14 	or  %o0, 0x14, %o0	! 42000014 <RAM_END+0x3fc00014><== NOT EXECUTED
                            SWAPOUT_TASK_STACK_SIZE,                  
                            RTEMS_PREEMPT | RTEMS_NO_TIMESLICE | RTEMS_NO_ASR,
                            RTEMS_LOCAL | RTEMS_NO_FLOATING_POINT,    
                            &worker->id);                             
    if (sc != RTEMS_SUCCESSFUL)                                       
      rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_WK_CREATE);
 200cd98:	11 10 80 00 	sethi  %hi(0x42000000), %o0                    <== NOT EXECUTED
 200cd9c:	7f ff eb cb 	call  2007cc8 <rtems_fatal_error_occurred>     <== NOT EXECUTED
 200cda0:	90 12 20 16 	or  %o0, 0x16, %o0	! 42000016 <RAM_END+0x3fc00016><== NOT EXECUTED
  {                                                                   
    rtems_bdbuf_swapout_worker* worker;                               
                                                                      
    worker = malloc (sizeof (rtems_bdbuf_swapout_worker));            
    if (!worker)                                                      
      rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_NOMEM); 
 200cda4:	11 10 80 00 	sethi  %hi(0x42000000), %o0                    <== NOT EXECUTED
 200cda8:	7f ff eb c8 	call  2007cc8 <rtems_fatal_error_occurred>     <== NOT EXECUTED
 200cdac:	90 12 20 15 	or  %o0, 0x15, %o0	! 42000015 <RAM_END+0x3fc00015><== NOT EXECUTED
                                                                      
    sc = rtems_task_start (worker->id,                                
                           rtems_bdbuf_swapout_worker_task,           
                           (rtems_task_argument) worker);             
    if (sc != RTEMS_SUCCESSFUL)                                       
      rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_WK_START);
 200cdb0:	11 10 80 00 	sethi  %hi(0x42000000), %o0                    <== NOT EXECUTED
 200cdb4:	7f ff eb c5 	call  2007cc8 <rtems_fatal_error_occurred>     <== NOT EXECUTED
 200cdb8:	90 12 20 17 	or  %o0, 0x17, %o0	! 42000017 <RAM_END+0x3fc00017><== NOT EXECUTED
                                                                      

0200cdc0 <rtems_bdbuf_swapout_worker_task>: * @param arg A pointer to the worker thread's private data. * @return rtems_task Not used. */ static rtems_task rtems_bdbuf_swapout_worker_task (rtems_task_argument arg) {
 200cdc0:	9d e3 bf a0 	save  %sp, -96, %sp                            <== NOT EXECUTED
  rtems_bdbuf_swapout_worker* worker = (rtems_bdbuf_swapout_worker*) arg;
                                                                      
  while (worker->enabled)                                             
 200cdc4:	c2 0e 20 0c 	ldub  [ %i0 + 0xc ], %g1                       <== NOT EXECUTED
 200cdc8:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
 200cdcc:	02 80 00 1c 	be  200ce3c <rtems_bdbuf_swapout_worker_task+0x7c><== NOT EXECUTED
 200cdd0:	b6 10 00 18 	mov  %i0, %i3                                  <== NOT EXECUTED
 200cdd4:	b4 06 20 10 	add  %i0, 0x10, %i2                            <== NOT EXECUTED
    rtems_bdbuf_swapout_write (&worker->transfer);                    
                                                                      
    rtems_bdbuf_lock_cache ();                                        
                                                                      
    rtems_chain_initialize_empty (&worker->transfer.bds);             
    worker->transfer.dev = BDBUF_INVALID_DEV;                         
 200cdd8:	39 3f ff ff 	sethi  %hi(0xfffffc00), %i4                    <== 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 );                               
 200cddc:	33 00 80 6a 	sethi  %hi(0x201a800), %i1                     <== NOT EXECUTED
 200cde0:	b8 17 23 ff 	or  %i4, 0x3ff, %i4                            <== NOT EXECUTED
 200cde4:	b0 06 20 14 	add  %i0, 0x14, %i0                            <== NOT EXECUTED
 200cde8:	ba 10 00 1c 	mov  %i4, %i5                                  <== NOT EXECUTED
 200cdec:	b2 16 61 b0 	or  %i1, 0x1b0, %i1                            <== NOT EXECUTED
{                                                                     
  rtems_bdbuf_swapout_worker* worker = (rtems_bdbuf_swapout_worker*) arg;
                                                                      
  while (worker->enabled)                                             
  {                                                                   
    rtems_bdbuf_wait_for_event (RTEMS_BDBUF_SWAPOUT_SYNC);            
 200cdf0:	7f ff fb 78 	call  200bbd0 <rtems_bdbuf_wait_for_event>     <== NOT EXECUTED
 200cdf4:	90 10 20 04 	mov  4, %o0                                    <== NOT EXECUTED
                                                                      
    rtems_bdbuf_swapout_write (&worker->transfer);                    
 200cdf8:	7f ff fe 97 	call  200c854 <rtems_bdbuf_swapout_write>      <== NOT EXECUTED
 200cdfc:	90 10 00 1a 	mov  %i2, %o0                                  <== NOT EXECUTED
                                                                      
    rtems_bdbuf_lock_cache ();                                        
 200ce00:	7f ff fa aa 	call  200b8a8 <rtems_bdbuf_lock_cache>         <== NOT EXECUTED
 200ce04:	01 00 00 00 	nop                                            <== NOT EXECUTED
 200ce08:	90 10 00 19 	mov  %i1, %o0                                  <== NOT EXECUTED
 200ce0c:	92 10 00 1b 	mov  %i3, %o1                                  <== NOT EXECUTED
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 200ce10:	f0 26 e0 10 	st  %i0, [ %i3 + 0x10 ]                        <== NOT EXECUTED
  head->previous = NULL;                                              
 200ce14:	c0 26 e0 14 	clr  [ %i3 + 0x14 ]                            <== NOT EXECUTED
  tail->previous = head;                                              
 200ce18:	f4 26 e0 18 	st  %i2, [ %i3 + 0x18 ]                        <== NOT EXECUTED
 200ce1c:	7f ff ed 1d 	call  2008290 <_Chain_Append>                  <== NOT EXECUTED
 200ce20:	f8 3e e0 20 	std  %i4, [ %i3 + 0x20 ]                       <== NOT EXECUTED
    rtems_chain_initialize_empty (&worker->transfer.bds);             
    worker->transfer.dev = BDBUF_INVALID_DEV;                         
                                                                      
    rtems_chain_append (&bdbuf_cache.swapout_workers, &worker->link); 
                                                                      
    rtems_bdbuf_unlock_cache ();                                      
 200ce24:	7f ff fb 34 	call  200baf4 <rtems_bdbuf_unlock_cache>       <== NOT EXECUTED
 200ce28:	01 00 00 00 	nop                                            <== NOT EXECUTED
static rtems_task                                                     
rtems_bdbuf_swapout_worker_task (rtems_task_argument arg)             
{                                                                     
  rtems_bdbuf_swapout_worker* worker = (rtems_bdbuf_swapout_worker*) arg;
                                                                      
  while (worker->enabled)                                             
 200ce2c:	c2 0e e0 0c 	ldub  [ %i3 + 0xc ], %g1                       <== NOT EXECUTED
 200ce30:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
 200ce34:	12 bf ff ef 	bne  200cdf0 <rtems_bdbuf_swapout_worker_task+0x30><== NOT EXECUTED
 200ce38:	01 00 00 00 	nop                                            <== NOT EXECUTED
    rtems_chain_append (&bdbuf_cache.swapout_workers, &worker->link); 
                                                                      
    rtems_bdbuf_unlock_cache ();                                      
  }                                                                   
                                                                      
  free (worker->transfer.write_req);                                  
 200ce3c:	d0 06 e0 2c 	ld  [ %i3 + 0x2c ], %o0                        <== NOT EXECUTED
 200ce40:	7f ff db 00 	call  2003a40 <free>                           <== NOT EXECUTED
 200ce44:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
  free (worker);                                                      
 200ce48:	7f ff da fe 	call  2003a40 <free>                           <== NOT EXECUTED
 200ce4c:	90 10 00 1b 	mov  %i3, %o0                                  <== NOT EXECUTED
                                                                      
  rtems_task_delete (RTEMS_SELF);                                     
 200ce50:	7f ff ea c3 	call  200795c <rtems_task_delete>              <== NOT EXECUTED
 200ce54:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

0200c854 <rtems_bdbuf_swapout_write>: * * @param transfer The transfer transaction. */ static void rtems_bdbuf_swapout_write (rtems_bdbuf_swapout_transfer* transfer) {
 200c854:	9d e3 bf a0 	save  %sp, -96, %sp                            
    printf ("bdbuf:swapout transfer: %08x\n", (unsigned) transfer->dev);
                                                                      
  /*                                                                  
   * If there are buffers to transfer to the media transfer them.     
   */                                                                 
  if (!rtems_chain_is_empty (&transfer->bds))                         
 200c858:	c2 06 00 00 	ld  [ %i0 ], %g1                               
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
 200c85c:	b6 06 20 04 	add  %i0, 4, %i3                               
 200c860:	80 a0 40 1b 	cmp  %g1, %i3                                  
 200c864:	02 80 00 65 	be  200c9f8 <rtems_bdbuf_swapout_write+0x1a4>  <== NEVER TAKEN
 200c868:	01 00 00 00 	nop                                            
                                                                      
    /*                                                                
     * Obtain the disk device. The cache's mutex has been released to avoid a
     * dead lock.                                                     
     */                                                               
    rtems_disk_device *dd = rtems_disk_obtain (transfer->dev);        
 200c86c:	d0 1e 20 10 	ldd  [ %i0 + 0x10 ], %o0                       
 200c870:	7f ff d9 40 	call  2002d70 <rtems_disk_obtain>              
 200c874:	27 00 80 68 	sethi  %hi(0x201a000), %l3                     
                                                                      
    if (dd == NULL)                                                   
      dd = &null_disk;                                                
 200c878:	a6 14 e1 78 	or  %l3, 0x178, %l3	! 201a178 <null_disk.7083> 
     * Obtain the disk device. The cache's mutex has been released to avoid a
     * dead lock.                                                     
     */                                                               
    rtems_disk_device *dd = rtems_disk_obtain (transfer->dev);        
                                                                      
    if (dd == NULL)                                                   
 200c87c:	80 a2 20 00 	cmp  %o0, 0                                    
 200c880:	02 80 00 65 	be  200ca14 <rtems_bdbuf_swapout_write+0x1c0>  
 200c884:	ba 10 00 08 	mov  %o0, %i5                                  
      dd = &null_disk;                                                
                                                                      
    bufs_per_bd = dd->block_size / bdbuf_config.buffer_min;           
 200c888:	d0 07 60 20 	ld  [ %i5 + 0x20 ], %o0                        
 200c88c:	35 00 80 63 	sethi  %hi(0x2018c00), %i2                     
 200c890:	b4 16 a3 48 	or  %i2, 0x348, %i2	! 2018f48 <rtems_bdbuf_configuration>
 200c894:	d2 06 a0 20 	ld  [ %i2 + 0x20 ], %o1                        
 200c898:	40 00 29 55 	call  2016dec <.udiv>                          
 200c89c:	b8 10 20 00 	clr  %i4                                       
     * should be possible to make this change with little effect in this
     * code. The array that is passed is broken in design and should be
     * removed. Merging members of a struct into the first member is  
     * trouble waiting to happen.                                     
     */                                                               
    transfer->write_req->status = RTEMS_RESOURCE_IN_USE;              
 200c8a0:	c2 06 20 1c 	ld  [ %i0 + 0x1c ], %g1                        
 200c8a4:	84 10 20 0c 	mov  0xc, %g2                                  
    rtems_disk_device *dd = rtems_disk_obtain (transfer->dev);        
                                                                      
    if (dd == NULL)                                                   
      dd = &null_disk;                                                
                                                                      
    bufs_per_bd = dd->block_size / bdbuf_config.buffer_min;           
 200c8a8:	a4 10 00 08 	mov  %o0, %l2                                  
     * code. The array that is passed is broken in design and should be
     * removed. Merging members of a struct into the first member is  
     * trouble waiting to happen.                                     
     */                                                               
    transfer->write_req->status = RTEMS_RESOURCE_IN_USE;              
    transfer->write_req->bufnum = 0;                                  
 200c8ac:	c0 20 60 10 	clr  [ %g1 + 0x10 ]                            
     * should be possible to make this change with little effect in this
     * code. The array that is passed is broken in design and should be
     * removed. Merging members of a struct into the first member is  
     * trouble waiting to happen.                                     
     */                                                               
    transfer->write_req->status = RTEMS_RESOURCE_IN_USE;              
 200c8b0:	c4 20 60 0c 	st  %g2, [ %g1 + 0xc ]                         
rtems_bdbuf_purge_major (rtems_device_major_number major)             
{                                                                     
  dev_t dev = rtems_filesystem_make_dev_t (major, 0);                 
                                                                      
  rtems_bdbuf_purge (rtems_bdbuf_purge_compare_major, dev);           
}                                                                     
 200c8b4:	a2 07 60 08 	add  %i5, 8, %l1                               
 200c8b8:	a0 07 60 28 	add  %i5, 0x28, %l0                            
                                                                      
      if (write)                                                      
      {                                                               
        rtems_bdbuf_execute_transfer_request (dd, transfer->write_req, false);
                                                                      
        transfer->write_req->status = RTEMS_RESOURCE_IN_USE;          
 200c8bc:	b2 10 20 0c 	mov  0xc, %i1                                  
 */                                                                   
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(               
  rtems_chain_control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Get( the_chain );                                     
 200c8c0:	7f ff ee 88 	call  20082e0 <_Chain_Get>                     
 200c8c4:	90 10 00 18 	mov  %i0, %o0                                  
     * trouble waiting to happen.                                     
     */                                                               
    transfer->write_req->status = RTEMS_RESOURCE_IN_USE;              
    transfer->write_req->bufnum = 0;                                  
                                                                      
    while ((node = rtems_chain_get(&transfer->bds)) != NULL)          
 200c8c8:	92 92 20 00 	orcc  %o0, 0, %o1                              
 200c8cc:	02 80 00 2e 	be  200c984 <rtems_bdbuf_swapout_write+0x130>  <== NEVER TAKEN
 200c8d0:	80 a7 40 13 	cmp  %i5, %l3                                  
        printf ("bdbuf:swapout write: bd:%" PRIu32 ", bufnum:%" PRIu32 " mode:%s\n",
                bd->block, transfer->write_req->bufnum,               
                dd->phys_dev->capabilities &                          
                RTEMS_BLKDEV_CAP_MULTISECTOR_CONT ? "MULIT" : "SCAT");
                                                                      
      if ((dd->phys_dev->capabilities & RTEMS_BLKDEV_CAP_MULTISECTOR_CONT) &&
 200c8d4:	c2 07 60 08 	ld  [ %i5 + 8 ], %g1                           
 200c8d8:	c2 00 60 0c 	ld  [ %g1 + 0xc ], %g1                         
 200c8dc:	80 88 60 01 	btst  1, %g1                                   
 200c8e0:	02 80 00 36 	be  200c9b8 <rtems_bdbuf_swapout_write+0x164>  <== ALWAYS TAKEN
 200c8e4:	d4 06 20 1c 	ld  [ %i0 + 0x1c ], %o2                        
          transfer->write_req->bufnum &&                              
 200c8e8:	c2 02 a0 10 	ld  [ %o2 + 0x10 ], %g1                        <== NOT EXECUTED
        printf ("bdbuf:swapout write: bd:%" PRIu32 ", bufnum:%" PRIu32 " mode:%s\n",
                bd->block, transfer->write_req->bufnum,               
                dd->phys_dev->capabilities &                          
                RTEMS_BLKDEV_CAP_MULTISECTOR_CONT ? "MULIT" : "SCAT");
                                                                      
      if ((dd->phys_dev->capabilities & RTEMS_BLKDEV_CAP_MULTISECTOR_CONT) &&
 200c8ec:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
 200c8f0:	32 80 00 39 	bne,a   200c9d4 <rtems_bdbuf_swapout_write+0x180><== NOT EXECUTED
 200c8f4:	c4 02 60 20 	ld  [ %o1 + 0x20 ], %g2                        <== NOT EXECUTED
 200c8f8:	f8 02 60 20 	ld  [ %o1 + 0x20 ], %i4                        <== NOT EXECUTED
        rtems_blkdev_sg_buffer* buf;                                  
        buf = &transfer->write_req->bufs[transfer->write_req->bufnum];
        transfer->write_req->bufnum++;                                
        buf->user   = bd;                                             
        buf->block  = bd->block;                                      
        buf->length = dd->block_size;                                 
 200c8fc:	c8 07 60 20 	ld  [ %i5 + 0x20 ], %g4                        
        buf->buffer = bd->buffer;                                     
 200c900:	c6 02 60 24 	ld  [ %o1 + 0x24 ], %g3                        
      }                                                               
      else                                                            
      {                                                               
        rtems_blkdev_sg_buffer* buf;                                  
        buf = &transfer->write_req->bufs[transfer->write_req->bufnum];
        transfer->write_req->bufnum++;                                
 200c904:	84 00 60 01 	add  %g1, 1, %g2                               
        write = true;                                                 
      }                                                               
      else                                                            
      {                                                               
        rtems_blkdev_sg_buffer* buf;                                  
        buf = &transfer->write_req->bufs[transfer->write_req->bufnum];
 200c908:	83 28 60 04 	sll  %g1, 4, %g1                               
        transfer->write_req->bufnum++;                                
 200c90c:	c4 22 a0 10 	st  %g2, [ %o2 + 0x10 ]                        
    transfer->write_req->bufnum = 0;                                  
                                                                      
    while ((node = rtems_chain_get(&transfer->bds)) != NULL)          
    {                                                                 
      rtems_bdbuf_buffer* bd = (rtems_bdbuf_buffer*) node;            
      bool                write = false;                              
 200c910:	9e 10 20 00 	clr  %o7                                       
        write = true;                                                 
      }                                                               
      else                                                            
      {                                                               
        rtems_blkdev_sg_buffer* buf;                                  
        buf = &transfer->write_req->bufs[transfer->write_req->bufnum];
 200c914:	84 00 60 18 	add  %g1, 0x18, %g2                            
 200c918:	82 02 80 02 	add  %o2, %g2, %g1                             
        transfer->write_req->bufnum++;                                
        buf->user   = bd;                                             
        buf->block  = bd->block;                                      
 200c91c:	f8 22 80 02 	st  %i4, [ %o2 + %g2 ]                         
      else                                                            
      {                                                               
        rtems_blkdev_sg_buffer* buf;                                  
        buf = &transfer->write_req->bufs[transfer->write_req->bufnum];
        transfer->write_req->bufnum++;                                
        buf->user   = bd;                                             
 200c920:	d2 20 60 0c 	st  %o1, [ %g1 + 0xc ]                         
        buf->block  = bd->block;                                      
        buf->length = dd->block_size;                                 
 200c924:	c8 20 60 04 	st  %g4, [ %g1 + 4 ]                           
        buf->buffer = bd->buffer;                                     
 200c928:	c6 20 60 08 	st  %g3, [ %g1 + 8 ]                           
      /*                                                              
       * Perform the transfer if there are no more buffers, or the transfer
       * size has reached the configured max. value.                  
       */                                                             
                                                                      
      if (rtems_chain_is_empty (&transfer->bds) ||                    
 200c92c:	c2 06 00 00 	ld  [ %i0 ], %g1                               
 200c930:	80 a6 c0 01 	cmp  %i3, %g1                                  
 200c934:	02 80 00 08 	be  200c954 <rtems_bdbuf_swapout_write+0x100>  
 200c938:	92 10 00 10 	mov  %l0, %o1                                  
 200c93c:	c4 02 a0 10 	ld  [ %o2 + 0x10 ], %g2                        
 200c940:	c2 06 a0 04 	ld  [ %i2 + 4 ], %g1                           
 200c944:	80 a0 80 01 	cmp  %g2, %g1                                  
 200c948:	0a 80 00 1f 	bcs  200c9c4 <rtems_bdbuf_swapout_write+0x170> 
 200c94c:	80 8b e0 ff 	btst  0xff, %o7                                
          (transfer->write_req->bufnum >= bdbuf_config.max_write_blocks))
        write = true;                                                 
                                                                      
      if (write)                                                      
      {                                                               
        rtems_bdbuf_execute_transfer_request (dd, transfer->write_req, false);
 200c950:	92 10 00 10 	mov  %l0, %o1                                  
 200c954:	96 10 20 00 	clr  %o3                                       
 200c958:	7f ff ff 4e 	call  200c690 <rtems_bdbuf_execute_transfer_request.isra.9>
 200c95c:	90 10 00 11 	mov  %l1, %o0                                  
                                                                      
        transfer->write_req->status = RTEMS_RESOURCE_IN_USE;          
 200c960:	c2 06 20 1c 	ld  [ %i0 + 0x1c ], %g1                        
 200c964:	90 10 00 18 	mov  %i0, %o0                                  
 200c968:	f2 20 60 0c 	st  %i1, [ %g1 + 0xc ]                         
 200c96c:	7f ff ee 5d 	call  20082e0 <_Chain_Get>                     
 200c970:	c0 20 60 10 	clr  [ %g1 + 0x10 ]                            
     * trouble waiting to happen.                                     
     */                                                               
    transfer->write_req->status = RTEMS_RESOURCE_IN_USE;              
    transfer->write_req->bufnum = 0;                                  
                                                                      
    while ((node = rtems_chain_get(&transfer->bds)) != NULL)          
 200c974:	92 92 20 00 	orcc  %o0, 0, %o1                              
 200c978:	32 bf ff d8 	bne,a   200c8d8 <rtems_bdbuf_swapout_write+0x84>
 200c97c:	c2 07 60 08 	ld  [ %i5 + 8 ], %g1                           
        transfer->write_req->status = RTEMS_RESOURCE_IN_USE;          
        transfer->write_req->bufnum = 0;                              
      }                                                               
    }                                                                 
                                                                      
    if (dd != &null_disk)                                             
 200c980:	80 a7 40 13 	cmp  %i5, %l3                                  
 200c984:	02 80 00 1d 	be  200c9f8 <rtems_bdbuf_swapout_write+0x1a4>  <== NEVER TAKEN
 200c988:	01 00 00 00 	nop                                            
    {                                                                 
      /*                                                              
       * If sync'ing and the deivce is capability of handling a sync IO control
       * call perform the call.                                       
       */                                                             
      if (transfer->syncing &&                                        
 200c98c:	c2 0e 20 18 	ldub  [ %i0 + 0x18 ], %g1                      
 200c990:	80 a0 60 00 	cmp  %g1, 0                                    
 200c994:	02 80 00 07 	be  200c9b0 <rtems_bdbuf_swapout_write+0x15c>  
 200c998:	01 00 00 00 	nop                                            
          (dd->phys_dev->capabilities & RTEMS_BLKDEV_CAP_SYNC))       
 200c99c:	d0 07 60 08 	ld  [ %i5 + 8 ], %o0                           
 200c9a0:	c2 02 20 0c 	ld  [ %o0 + 0xc ], %g1                         
    {                                                                 
      /*                                                              
       * If sync'ing and the deivce is capability of handling a sync IO control
       * call perform the call.                                       
       */                                                             
      if (transfer->syncing &&                                        
 200c9a4:	80 88 60 02 	btst  2, %g1                                   
 200c9a8:	32 80 00 16 	bne,a   200ca00 <rtems_bdbuf_swapout_write+0x1ac><== NEVER TAKEN
 200c9ac:	c2 07 60 28 	ld  [ %i5 + 0x28 ], %g1                        <== NOT EXECUTED
      {                                                               
        /* int result = */ dd->ioctl (dd->phys_dev, RTEMS_BLKDEV_REQ_SYNC, NULL);
        /* How should the error be handled ? */                       
      }                                                               
                                                                      
      rtems_disk_release (dd);                                        
 200c9b0:	7f ff d9 0f 	call  2002dec <rtems_disk_release>             
 200c9b4:	91 e8 00 1d 	restore  %g0, %i5, %o0                         
      if ((dd->phys_dev->capabilities & RTEMS_BLKDEV_CAP_MULTISECTOR_CONT) &&
          transfer->write_req->bufnum &&                              
          (bd->block != (last_block + bufs_per_bd)))                  
      {                                                               
        rtems_chain_prepend (&transfer->bds, &bd->link);              
        write = true;                                                 
 200c9b8:	f8 02 60 20 	ld  [ %o1 + 0x20 ], %i4                        
 200c9bc:	10 bf ff d0 	b  200c8fc <rtems_bdbuf_swapout_write+0xa8>    
 200c9c0:	c2 02 a0 10 	ld  [ %o2 + 0x10 ], %g1                        
                                                                      
      if (rtems_chain_is_empty (&transfer->bds) ||                    
          (transfer->write_req->bufnum >= bdbuf_config.max_write_blocks))
        write = true;                                                 
                                                                      
      if (write)                                                      
 200c9c4:	02 bf ff bf 	be  200c8c0 <rtems_bdbuf_swapout_write+0x6c>   <== ALWAYS TAKEN
 200c9c8:	92 10 00 10 	mov  %l0, %o1                                  
      {                                                               
        rtems_bdbuf_execute_transfer_request (dd, transfer->write_req, false);
 200c9cc:	10 bf ff e3 	b  200c958 <rtems_bdbuf_swapout_write+0x104>   <== NOT EXECUTED
 200c9d0:	96 10 20 00 	clr  %o3                                       <== NOT EXECUTED
                dd->phys_dev->capabilities &                          
                RTEMS_BLKDEV_CAP_MULTISECTOR_CONT ? "MULIT" : "SCAT");
                                                                      
      if ((dd->phys_dev->capabilities & RTEMS_BLKDEV_CAP_MULTISECTOR_CONT) &&
          transfer->write_req->bufnum &&                              
          (bd->block != (last_block + bufs_per_bd)))                  
 200c9d4:	86 07 00 12 	add  %i4, %l2, %g3                             <== NOT EXECUTED
                bd->block, transfer->write_req->bufnum,               
                dd->phys_dev->capabilities &                          
                RTEMS_BLKDEV_CAP_MULTISECTOR_CONT ? "MULIT" : "SCAT");
                                                                      
      if ((dd->phys_dev->capabilities & RTEMS_BLKDEV_CAP_MULTISECTOR_CONT) &&
          transfer->write_req->bufnum &&                              
 200c9d8:	80 a0 80 03 	cmp  %g2, %g3                                  <== NOT EXECUTED
 200c9dc:	22 bf ff c8 	be,a   200c8fc <rtems_bdbuf_swapout_write+0xa8><== NOT EXECUTED
 200c9e0:	b8 10 00 02 	mov  %g2, %i4                                  <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Chain_Prepend(                             
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  _Chain_Insert(_Chain_Head(the_chain), the_node);                    
 200c9e4:	40 00 10 fb 	call  2010dd0 <_Chain_Insert>                  <== NOT EXECUTED
 200c9e8:	90 10 00 18 	mov  %i0, %o0                                  <== NOT EXECUTED
 200c9ec:	d4 06 20 1c 	ld  [ %i0 + 0x1c ], %o2                        <== NOT EXECUTED
          (bd->block != (last_block + bufs_per_bd)))                  
      {                                                               
        rtems_chain_prepend (&transfer->bds, &bd->link);              
        write = true;                                                 
 200c9f0:	10 bf ff cf 	b  200c92c <rtems_bdbuf_swapout_write+0xd8>    <== NOT EXECUTED
 200c9f4:	9e 10 20 01 	mov  1, %o7                                    <== NOT EXECUTED
 200c9f8:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200c9fc:	81 e8 00 00 	restore                                        <== NOT EXECUTED
       * call perform the call.                                       
       */                                                             
      if (transfer->syncing &&                                        
          (dd->phys_dev->capabilities & RTEMS_BLKDEV_CAP_SYNC))       
      {                                                               
        /* int result = */ dd->ioctl (dd->phys_dev, RTEMS_BLKDEV_REQ_SYNC, NULL);
 200ca00:	92 10 20 02 	mov  2, %o1                                    <== NOT EXECUTED
 200ca04:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
 200ca08:	94 10 20 00 	clr  %o2                                       <== NOT EXECUTED
        /* How should the error be handled ? */                       
      }                                                               
                                                                      
      rtems_disk_release (dd);                                        
 200ca0c:	7f ff d8 f8 	call  2002dec <rtems_disk_release>             <== NOT EXECUTED
 200ca10:	91 e8 00 1d 	restore  %g0, %i5, %o0                         <== NOT EXECUTED
     * dead lock.                                                     
     */                                                               
    rtems_disk_device *dd = rtems_disk_obtain (transfer->dev);        
                                                                      
    if (dd == NULL)                                                   
      dd = &null_disk;                                                
 200ca14:	10 bf ff 9d 	b  200c888 <rtems_bdbuf_swapout_write+0x34>    
 200ca18:	ba 10 00 13 	mov  %l3, %i5                                  
                                                                      

0200bd60 <rtems_bdbuf_swapout_writereq_alloc>: * * @return rtems_blkdev_request* The write reference memory. */ static rtems_blkdev_request* rtems_bdbuf_swapout_writereq_alloc (void) {
 200bd60:	9d e3 bf a0 	save  %sp, -96, %sp                            
   * have been a rtems_chain_control. Simple, fast and less storage as the node
   * is already part of the buffer structure.                         
   */                                                                 
  rtems_blkdev_request* write_req =                                   
    malloc (sizeof (rtems_blkdev_request) +                           
            (bdbuf_config.max_write_blocks * sizeof (rtems_blkdev_sg_buffer)));
 200bd64:	03 00 80 63 	sethi  %hi(0x2018c00), %g1                     
 200bd68:	d0 00 63 4c 	ld  [ %g1 + 0x34c ], %o0	! 2018f4c <rtems_bdbuf_configuration+0x4>
 200bd6c:	91 2a 20 04 	sll  %o0, 4, %o0                               
   * @note chrisj The rtems_blkdev_request and the array at the end is a hack.
   * I am disappointment at finding code like this in RTEMS. The request should
   * have been a rtems_chain_control. Simple, fast and less storage as the node
   * is already part of the buffer structure.                         
   */                                                                 
  rtems_blkdev_request* write_req =                                   
 200bd70:	7f ff e0 16 	call  2003dc8 <malloc>                         
 200bd74:	90 02 20 18 	add  %o0, 0x18, %o0                            
    malloc (sizeof (rtems_blkdev_request) +                           
            (bdbuf_config.max_write_blocks * sizeof (rtems_blkdev_sg_buffer)));
                                                                      
  if (!write_req)                                                     
 200bd78:	ba 92 20 00 	orcc  %o0, 0, %i5                              
 200bd7c:	02 80 00 0c 	be  200bdac <rtems_bdbuf_swapout_writereq_alloc+0x4c><== NEVER TAKEN
 200bd80:	82 10 20 01 	mov  1, %g1                                    
    rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_NOMEM);   
                                                                      
  write_req->req = RTEMS_BLKDEV_REQ_WRITE;                            
 200bd84:	c2 27 40 00 	st  %g1, [ %i5 ]                               
  write_req->req_done = rtems_bdbuf_transfer_done;                    
 200bd88:	03 00 80 2e 	sethi  %hi(0x200b800), %g1                     
 200bd8c:	82 10 63 b4 	or  %g1, 0x3b4, %g1	! 200bbb4 <rtems_bdbuf_transfer_done>
  write_req->done_arg = write_req;                                    
 200bd90:	fa 27 60 08 	st  %i5, [ %i5 + 8 ]                           
                                                                      
  if (!write_req)                                                     
    rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_NOMEM);   
                                                                      
  write_req->req = RTEMS_BLKDEV_REQ_WRITE;                            
  write_req->req_done = rtems_bdbuf_transfer_done;                    
 200bd94:	c2 27 60 04 	st  %g1, [ %i5 + 4 ]                           
  write_req->done_arg = write_req;                                    
  write_req->io_task = rtems_task_self ();                            
 200bd98:	40 00 13 39 	call  2010a7c <rtems_task_self>                
 200bd9c:	b0 10 00 1d 	mov  %i5, %i0                                  
 200bda0:	d0 27 60 14 	st  %o0, [ %i5 + 0x14 ]                        
                                                                      
  return write_req;                                                   
}                                                                     
 200bda4:	81 c7 e0 08 	ret                                            
 200bda8:	81 e8 00 00 	restore                                        
  rtems_blkdev_request* write_req =                                   
    malloc (sizeof (rtems_blkdev_request) +                           
            (bdbuf_config.max_write_blocks * sizeof (rtems_blkdev_sg_buffer)));
                                                                      
  if (!write_req)                                                     
    rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_NOMEM);   
 200bdac:	11 10 80 00 	sethi  %hi(0x42000000), %o0                    <== NOT EXECUTED
 200bdb0:	7f ff ef c6 	call  2007cc8 <rtems_fatal_error_occurred>     <== NOT EXECUTED
 200bdb4:	90 12 20 15 	or  %o0, 0x15, %o0	! 42000015 <RAM_END+0x3fc00015><== NOT EXECUTED
                                                                      

0200ddd0 <rtems_bdbuf_sync>: return RTEMS_SUCCESSFUL; } rtems_status_code rtems_bdbuf_sync (rtems_bdbuf_buffer *bd) {
 200ddd0:	9d e3 bf a0 	save  %sp, -96, %sp                            
}                                                                     
                                                                      
static rtems_status_code                                              
rtems_bdbuf_check_bd_and_lock_cache (rtems_bdbuf_buffer *bd, const char *kind)
{                                                                     
  if (!bdbuf_cache.initialised)                                       
 200ddd4:	3b 00 80 6a 	sethi  %hi(0x201a800), %i5                     
 200ddd8:	ba 17 61 a8 	or  %i5, 0x1a8, %i5	! 201a9a8 <bdbuf_cache>    
 200dddc:	c2 0f 60 88 	ldub  [ %i5 + 0x88 ], %g1                      
 200dde0:	80 a0 60 00 	cmp  %g1, 0                                    
 200dde4:	02 80 00 19 	be  200de48 <rtems_bdbuf_sync+0x78>            <== NEVER TAKEN
 200dde8:	84 10 20 16 	mov  0x16, %g2                                 
    return RTEMS_NOT_CONFIGURED;                                      
  if (bd == NULL)                                                     
 200ddec:	80 a6 20 00 	cmp  %i0, 0                                    
 200ddf0:	02 80 00 18 	be  200de50 <rtems_bdbuf_sync+0x80>            <== NEVER TAKEN
 200ddf4:	84 10 20 09 	mov  9, %g2                                    
  if (rtems_bdbuf_tracer)                                             
  {                                                                   
    printf ("bdbuf:%s: %" PRIu32 "\n", kind, bd->block);              
    rtems_bdbuf_show_users (kind, bd);                                
  }                                                                   
  rtems_bdbuf_lock_cache();                                           
 200ddf8:	7f ff f6 ac 	call  200b8a8 <rtems_bdbuf_lock_cache>         
 200ddfc:	01 00 00 00 	nop                                            
                                                                      
  sc = rtems_bdbuf_check_bd_and_lock_cache (bd, "sync");              
  if (sc != RTEMS_SUCCESSFUL)                                         
    return sc;                                                        
                                                                      
  switch (bd->state)                                                  
 200de00:	c2 06 20 28 	ld  [ %i0 + 0x28 ], %g1                        
 200de04:	80 a0 60 03 	cmp  %g1, 3                                    
 200de08:	0a 80 00 07 	bcs  200de24 <rtems_bdbuf_sync+0x54>           <== NEVER TAKEN
 200de0c:	80 a0 60 05 	cmp  %g1, 5                                    
 200de10:	28 80 00 12 	bleu,a   200de58 <rtems_bdbuf_sync+0x88>       
 200de14:	82 10 20 08 	mov  8, %g1                                    
 200de18:	80 a0 60 06 	cmp  %g1, 6                                    
 200de1c:	02 80 00 06 	be  200de34 <rtems_bdbuf_sync+0x64>            <== ALWAYS TAKEN
 200de20:	01 00 00 00 	nop                                            
      break;                                                          
    case RTEMS_BDBUF_STATE_ACCESS_PURGED:                             
      rtems_bdbuf_discard_buffer_after_access (bd);                   
      break;                                                          
    default:                                                          
      rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_5);
 200de24:	d0 06 20 28 	ld  [ %i0 + 0x28 ], %o0                        <== NOT EXECUTED
 200de28:	13 10 80 00 	sethi  %hi(0x42000000), %o1                    <== NOT EXECUTED
 200de2c:	7f ff f6 bb 	call  200b918 <rtems_bdbuf_fatal>              <== NOT EXECUTED
 200de30:	92 12 60 03 	or  %o1, 3, %o1	! 42000003 <RAM_END+0x3fc00003><== NOT EXECUTED
    case RTEMS_BDBUF_STATE_ACCESS_EMPTY:                              
    case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:                           
      rtems_bdbuf_sync_after_access (bd);                             
      break;                                                          
    case RTEMS_BDBUF_STATE_ACCESS_PURGED:                             
      rtems_bdbuf_discard_buffer_after_access (bd);                   
 200de34:	7f ff f9 79 	call  200c418 <rtems_bdbuf_discard_buffer_after_access>
 200de38:	90 10 00 18 	mov  %i0, %o0                                  
  }                                                                   
                                                                      
  if (rtems_bdbuf_tracer)                                             
    rtems_bdbuf_show_usage ();                                        
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
 200de3c:	7f ff f7 2e 	call  200baf4 <rtems_bdbuf_unlock_cache>       
 200de40:	01 00 00 00 	nop                                            
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 200de44:	84 10 20 00 	clr  %g2	! 0 <PROM_START>                      
}                                                                     
 200de48:	81 c7 e0 08 	ret                                            
 200de4c:	91 e8 00 02 	restore  %g0, %g2, %o0                         
 200de50:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200de54:	91 e8 00 02 	restore  %g0, %g2, %o0                         <== NOT EXECUTED
 200de58:	90 07 60 5c 	add  %i5, 0x5c, %o0                            
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 200de5c:	c2 26 20 28 	st  %g1, [ %i0 + 0x28 ]                        
 200de60:	7f ff e9 0c 	call  2008290 <_Chain_Append>                  
 200de64:	92 10 00 18 	mov  %i0, %o1                                  
{                                                                     
  rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_SYNC);                 
                                                                      
  rtems_chain_append (&bdbuf_cache.sync, &bd->link);                  
                                                                      
  if (bd->waiters)                                                    
 200de68:	c2 06 20 2c 	ld  [ %i0 + 0x2c ], %g1                        
 200de6c:	80 a0 60 00 	cmp  %g1, 0                                    
 200de70:	12 80 00 28 	bne  200df10 <rtems_bdbuf_sync+0x140>          
 200de74:	01 00 00 00 	nop                                            
    rtems_bdbuf_wake (&bdbuf_cache.access_waiters);                   
                                                                      
  rtems_bdbuf_wake_swapper ();                                        
 200de78:	7f ff f7 42 	call  200bb80 <rtems_bdbuf_wake_swapper>       
 200de7c:	3b 00 80 6a 	sethi  %hi(0x201a800), %i5                     
      case RTEMS_BDBUF_STATE_ACCESS_PURGED:                           
        return;                                                       
      case RTEMS_BDBUF_STATE_SYNC:                                    
      case RTEMS_BDBUF_STATE_TRANSFER:                                
      case RTEMS_BDBUF_STATE_TRANSFER_PURGED:                         
        rtems_bdbuf_wait (bd, &bdbuf_cache.transfer_waiters);         
 200de80:	ba 17 62 18 	or  %i5, 0x218, %i5	! 201aa18 <bdbuf_cache+0x70>
static void                                                           
rtems_bdbuf_wait_for_sync_done (rtems_bdbuf_buffer *bd)               
{                                                                     
  while (true)                                                        
  {                                                                   
    switch (bd->state)                                                
 200de84:	c2 06 20 28 	ld  [ %i0 + 0x28 ], %g1                        
 200de88:	80 a0 60 01 	cmp  %g1, 1                                    
 200de8c:	1a 80 00 06 	bcc  200dea4 <rtems_bdbuf_sync+0xd4>           <== ALWAYS TAKEN
 200de90:	80 a0 60 07 	cmp  %g1, 7                                    
      case RTEMS_BDBUF_STATE_TRANSFER:                                
      case RTEMS_BDBUF_STATE_TRANSFER_PURGED:                         
        rtems_bdbuf_wait (bd, &bdbuf_cache.transfer_waiters);         
        break;                                                        
      default:                                                        
        rtems_bdbuf_fatal (bd->state, RTEMS_BLKDEV_FATAL_BDBUF_STATE_9);
 200de94:	d0 06 20 28 	ld  [ %i0 + 0x28 ], %o0                        <== NOT EXECUTED
 200de98:	13 10 80 00 	sethi  %hi(0x42000000), %o1                    <== NOT EXECUTED
 200de9c:	7f ff f6 9f 	call  200b918 <rtems_bdbuf_fatal>              <== NOT EXECUTED
 200dea0:	92 12 60 07 	or  %o1, 7, %o1	! 42000007 <RAM_END+0x3fc00007><== NOT EXECUTED
static void                                                           
rtems_bdbuf_wait_for_sync_done (rtems_bdbuf_buffer *bd)               
{                                                                     
  while (true)                                                        
  {                                                                   
    switch (bd->state)                                                
 200dea4:	08 80 00 07 	bleu  200dec0 <rtems_bdbuf_sync+0xf0>          
 200dea8:	80 a0 60 0a 	cmp  %g1, 0xa                                  
 200deac:	18 bf ff fa 	bgu  200de94 <rtems_bdbuf_sync+0xc4>           <== NEVER TAKEN
 200deb0:	90 10 00 18 	mov  %i0, %o0                                  
      case RTEMS_BDBUF_STATE_ACCESS_PURGED:                           
        return;                                                       
      case RTEMS_BDBUF_STATE_SYNC:                                    
      case RTEMS_BDBUF_STATE_TRANSFER:                                
      case RTEMS_BDBUF_STATE_TRANSFER_PURGED:                         
        rtems_bdbuf_wait (bd, &bdbuf_cache.transfer_waiters);         
 200deb4:	7f ff f7 98 	call  200bd14 <rtems_bdbuf_wait>               
 200deb8:	92 10 00 1d 	mov  %i5, %o1                                  
 200debc:	30 bf ff f2 	b,a   200de84 <rtems_bdbuf_sync+0xb4>          
  rtems_bdbuf_wait_for_sync_done (bd);                                
                                                                      
  /*                                                                  
   * We may have created a cached or empty buffer which may be recycled.
   */                                                                 
  if (bd->waiters == 0                                                
 200dec0:	c2 06 20 2c 	ld  [ %i0 + 0x2c ], %g1                        
 200dec4:	80 a0 60 00 	cmp  %g1, 0                                    
 200dec8:	12 bf ff dd 	bne  200de3c <rtems_bdbuf_sync+0x6c>           
 200decc:	01 00 00 00 	nop                                            
        && (bd->state == RTEMS_BDBUF_STATE_CACHED                     
 200ded0:	c2 06 20 28 	ld  [ %i0 + 0x28 ], %g1                        
 200ded4:	80 a0 60 02 	cmp  %g1, 2                                    
 200ded8:	02 80 00 06 	be  200def0 <rtems_bdbuf_sync+0x120>           
 200dedc:	01 00 00 00 	nop                                            
          || bd->state == RTEMS_BDBUF_STATE_EMPTY))                   
 200dee0:	c2 06 20 28 	ld  [ %i0 + 0x28 ], %g1                        
 200dee4:	80 a0 60 01 	cmp  %g1, 1                                    
 200dee8:	12 bf ff d5 	bne  200de3c <rtems_bdbuf_sync+0x6c>           <== NEVER TAKEN
 200deec:	01 00 00 00 	nop                                            
  {                                                                   
    if (bd->state == RTEMS_BDBUF_STATE_EMPTY)                         
 200def0:	c2 06 20 28 	ld  [ %i0 + 0x28 ], %g1                        
 200def4:	80 a0 60 01 	cmp  %g1, 1                                    
 200def8:	02 80 00 09 	be  200df1c <rtems_bdbuf_sync+0x14c>           
 200defc:	01 00 00 00 	nop                                            
    {                                                                 
      rtems_bdbuf_remove_from_tree (bd);                              
      rtems_bdbuf_make_free_and_add_to_lru_list (bd);                 
    }                                                                 
    rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);                   
 200df00:	11 00 80 6a 	sethi  %hi(0x201a800), %o0                     
 200df04:	7f ff f7 ae 	call  200bdbc <rtems_bdbuf_wake>               
 200df08:	90 12 22 20 	or  %o0, 0x220, %o0	! 201aa20 <bdbuf_cache+0x78>
 200df0c:	30 bf ff cc 	b,a   200de3c <rtems_bdbuf_sync+0x6c>          
  rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_SYNC);                 
                                                                      
  rtems_chain_append (&bdbuf_cache.sync, &bd->link);                  
                                                                      
  if (bd->waiters)                                                    
    rtems_bdbuf_wake (&bdbuf_cache.access_waiters);                   
 200df10:	7f ff f7 ab 	call  200bdbc <rtems_bdbuf_wake>               
 200df14:	90 07 60 68 	add  %i5, 0x68, %o0                            
 200df18:	30 bf ff d8 	b,a   200de78 <rtems_bdbuf_sync+0xa8>          
        && (bd->state == RTEMS_BDBUF_STATE_CACHED                     
          || bd->state == RTEMS_BDBUF_STATE_EMPTY))                   
  {                                                                   
    if (bd->state == RTEMS_BDBUF_STATE_EMPTY)                         
    {                                                                 
      rtems_bdbuf_remove_from_tree (bd);                              
 200df1c:	7f ff f8 33 	call  200bfe8 <rtems_bdbuf_remove_from_tree>   
 200df20:	90 10 00 18 	mov  %i0, %o0                                  
RTEMS_INLINE_ROUTINE void _Chain_Prepend(                             
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  _Chain_Insert(_Chain_Head(the_chain), the_node);                    
 200df24:	92 10 00 18 	mov  %i0, %o1                                  
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 200df28:	c0 26 20 28 	clr  [ %i0 + 0x28 ]                            
 200df2c:	11 00 80 6a 	sethi  %hi(0x201a800), %o0                     
 200df30:	40 00 0b a8 	call  2010dd0 <_Chain_Insert>                  
 200df34:	90 12 21 ec 	or  %o0, 0x1ec, %o0	! 201a9ec <bdbuf_cache+0x44>
    if (bd->state == RTEMS_BDBUF_STATE_EMPTY)                         
    {                                                                 
      rtems_bdbuf_remove_from_tree (bd);                              
      rtems_bdbuf_make_free_and_add_to_lru_list (bd);                 
    }                                                                 
    rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);                   
 200df38:	10 bf ff f3 	b  200df04 <rtems_bdbuf_sync+0x134>            
 200df3c:	11 00 80 6a 	sethi  %hi(0x201a800), %o0                     
                                                                      

0200df40 <rtems_bdbuf_syncdev>: return RTEMS_SUCCESSFUL; } rtems_status_code rtems_bdbuf_syncdev (dev_t dev) {
 200df40:	9d e3 bf 98 	save  %sp, -104, %sp                           
                         rtems_blkdev_bnum  *media_block_ptr,         
                         size_t             *bds_per_group_ptr)       
{                                                                     
  rtems_disk_device *dd = NULL;                                       
                                                                      
  if (!bdbuf_cache.initialised)                                       
 200df44:	37 00 80 6a 	sethi  %hi(0x201a800), %i3                     
 200df48:	b6 16 e1 a8 	or  %i3, 0x1a8, %i3	! 201a9a8 <bdbuf_cache>    
 200df4c:	c2 0e e0 88 	ldub  [ %i3 + 0x88 ], %g1                      
                                                                      
rtems_status_code                                                     
rtems_bdbuf_syncdev (dev_t dev)                                       
{                                                                     
  rtems_status_code  sc = RTEMS_SUCCESSFUL;                           
  rtems_disk_device *dd = NULL;                                       
 200df50:	c0 27 bf fc 	clr  [ %fp + -4 ]                              
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_bdbuf_syncdev (dev_t dev)                                       
{                                                                     
 200df54:	b8 10 00 18 	mov  %i0, %i4                                  
 200df58:	ba 10 00 19 	mov  %i1, %i5                                  
                         rtems_blkdev_bnum  *media_block_ptr,         
                         size_t             *bds_per_group_ptr)       
{                                                                     
  rtems_disk_device *dd = NULL;                                       
                                                                      
  if (!bdbuf_cache.initialised)                                       
 200df5c:	80 a0 60 00 	cmp  %g1, 0                                    
 200df60:	02 80 00 20 	be  200dfe0 <rtems_bdbuf_syncdev+0xa0>         <== NEVER TAKEN
 200df64:	b0 10 20 16 	mov  0x16, %i0                                 
 200df68:	90 10 00 1c 	mov  %i4, %o0                                  
 200df6c:	92 10 00 19 	mov  %i1, %o1                                  
 200df70:	94 10 20 00 	clr  %o2                                       
 200df74:	96 07 bf fc 	add  %fp, -4, %o3                              
 200df78:	98 10 20 00 	clr  %o4                                       
 200df7c:	7f ff f7 df 	call  200bef8 <rtems_bdbuf_obtain_disk.part.8> 
 200df80:	9a 10 20 00 	clr  %o5                                       
                                                                      
  if (rtems_bdbuf_tracer)                                             
    printf ("bdbuf:syncdev: %08x\n", (unsigned) dev);                 
                                                                      
  sc = rtems_bdbuf_obtain_disk (dev, 0, &dd, NULL, NULL);             
  if (sc != RTEMS_SUCCESSFUL)                                         
 200df84:	b0 92 20 00 	orcc  %o0, 0, %i0                              
 200df88:	12 80 00 16 	bne  200dfe0 <rtems_bdbuf_syncdev+0xa0>        <== NEVER TAKEN
 200df8c:	01 00 00 00 	nop                                            
   * Take the sync lock before locking the cache. Once we have the sync lock we
   * can lock the cache. If another thread has the sync lock it will cause this
   * thread to block until it owns the sync lock then it can own the cache. The
   * sync lock can only be obtained with the cache unlocked.          
   */                                                                 
  rtems_bdbuf_lock_sync ();                                           
 200df90:	7f ff f6 54 	call  200b8e0 <rtems_bdbuf_lock_sync>          
 200df94:	01 00 00 00 	nop                                            
  rtems_bdbuf_lock_cache ();                                          
 200df98:	7f ff f6 44 	call  200b8a8 <rtems_bdbuf_lock_cache>         
 200df9c:	01 00 00 00 	nop                                            
   * out task know the id of the requester to wake when done.         
   *                                                                  
   * The swap out task will negate the sync active flag when no more buffers
   * for the device are held on the "modified for sync" queues.       
   */                                                                 
  bdbuf_cache.sync_active    = true;                                  
 200dfa0:	82 10 20 01 	mov  1, %g1	! 1 <PROM_START+0x1>               
 200dfa4:	c2 2e e0 30 	stb  %g1, [ %i3 + 0x30 ]                       
  bdbuf_cache.sync_requester = rtems_task_self ();                    
 200dfa8:	40 00 0a b5 	call  2010a7c <rtems_task_self>                
 200dfac:	01 00 00 00 	nop                                            
 200dfb0:	d0 26 e0 34 	st  %o0, [ %i3 + 0x34 ]                        
  bdbuf_cache.sync_device    = dev;                                   
 200dfb4:	f8 3e e0 38 	std  %i4, [ %i3 + 0x38 ]                       
                                                                      
  rtems_bdbuf_wake_swapper ();                                        
 200dfb8:	7f ff f6 f2 	call  200bb80 <rtems_bdbuf_wake_swapper>       
 200dfbc:	01 00 00 00 	nop                                            
  rtems_bdbuf_unlock_cache ();                                        
 200dfc0:	7f ff f6 cd 	call  200baf4 <rtems_bdbuf_unlock_cache>       
 200dfc4:	01 00 00 00 	nop                                            
  rtems_bdbuf_wait_for_event (RTEMS_BDBUF_TRANSFER_SYNC);             
 200dfc8:	7f ff f7 02 	call  200bbd0 <rtems_bdbuf_wait_for_event>     
 200dfcc:	90 10 20 02 	mov  2, %o0	! 2 <PROM_START+0x2>               
  rtems_bdbuf_unlock_sync ();                                         
 200dfd0:	7f ff f6 d5 	call  200bb24 <rtems_bdbuf_unlock_sync>        
 200dfd4:	01 00 00 00 	nop                                            
  rtems_bdbuf_release_disk (dd);                                      
 200dfd8:	7f ff f6 df 	call  200bb54 <rtems_bdbuf_release_disk>       
 200dfdc:	d0 07 bf fc 	ld  [ %fp + -4 ], %o0                          
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 200dfe0:	81 c7 e0 08 	ret                                            
 200dfe4:	81 e8 00 00 	restore                                        
                                                                      

0200baf4 <rtems_bdbuf_unlock_cache>: /** * Unlock the cache. */ static void rtems_bdbuf_unlock_cache (void) {
 200baf4:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_bdbuf_unlock (bdbuf_cache.lock, RTEMS_BLKDEV_FATAL_BDBUF_CACHE_UNLOCK);
 200baf8:	03 00 80 6a 	sethi  %hi(0x201a800), %g1                     
 * @param fatal_error_code The error code if the call fails.          
 */                                                                   
static void                                                           
rtems_bdbuf_unlock (rtems_id lock, uint32_t fatal_error_code)         
{                                                                     
  rtems_status_code sc = rtems_semaphore_release (lock);              
 200bafc:	7f ff ef 23 	call  2007788 <rtems_semaphore_release>        
 200bb00:	d0 00 61 d0 	ld  [ %g1 + 0x1d0 ], %o0	! 201a9d0 <bdbuf_cache+0x28>
  if (sc != RTEMS_SUCCESSFUL)                                         
 200bb04:	80 a2 20 00 	cmp  %o0, 0                                    
 200bb08:	12 80 00 04 	bne  200bb18 <rtems_bdbuf_unlock_cache+0x24>   <== NEVER TAKEN
 200bb0c:	11 10 80 00 	sethi  %hi(0x42000000), %o0                    
 200bb10:	81 c7 e0 08 	ret                                            
 200bb14:	81 e8 00 00 	restore                                        
    rtems_fatal_error_occurred (fatal_error_code);                    
 200bb18:	7f ff f0 6c 	call  2007cc8 <rtems_fatal_error_occurred>     <== NOT EXECUTED
 200bb1c:	90 12 20 0e 	or  %o0, 0xe, %o0                              <== NOT EXECUTED
                                                                      

0200bb24 <rtems_bdbuf_unlock_sync>: /** * Unlock the cache's sync lock. Any blocked writers are woken. */ static void rtems_bdbuf_unlock_sync (void) {
 200bb24:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_bdbuf_unlock (bdbuf_cache.sync_lock,                          
 200bb28:	03 00 80 6a 	sethi  %hi(0x201a800), %g1                     
 * @param fatal_error_code The error code if the call fails.          
 */                                                                   
static void                                                           
rtems_bdbuf_unlock (rtems_id lock, uint32_t fatal_error_code)         
{                                                                     
  rtems_status_code sc = rtems_semaphore_release (lock);              
 200bb2c:	7f ff ef 17 	call  2007788 <rtems_semaphore_release>        
 200bb30:	d0 00 61 d4 	ld  [ %g1 + 0x1d4 ], %o0	! 201a9d4 <bdbuf_cache+0x2c>
  if (sc != RTEMS_SUCCESSFUL)                                         
 200bb34:	80 a2 20 00 	cmp  %o0, 0                                    
 200bb38:	12 80 00 04 	bne  200bb48 <rtems_bdbuf_unlock_sync+0x24>    <== NEVER TAKEN
 200bb3c:	11 10 80 00 	sethi  %hi(0x42000000), %o0                    
 200bb40:	81 c7 e0 08 	ret                                            
 200bb44:	81 e8 00 00 	restore                                        
    rtems_fatal_error_occurred (fatal_error_code);                    
 200bb48:	7f ff f0 60 	call  2007cc8 <rtems_fatal_error_occurred>     <== NOT EXECUTED
 200bb4c:	90 12 20 0c 	or  %o0, 0xc, %o0                              <== NOT EXECUTED
                                                                      

0200bbd0 <rtems_bdbuf_wait_for_event>: return RTEMS_UNSATISFIED; } static void rtems_bdbuf_wait_for_event (rtems_event_set event) {
 200bbd0:	9d e3 bf 98 	save  %sp, -104, %sp                           
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_event_set   out = 0;                                          
                                                                      
  sc = rtems_event_receive (event,                                    
 200bbd4:	92 10 20 00 	clr  %o1                                       
                                                                      
static void                                                           
rtems_bdbuf_wait_for_event (rtems_event_set event)                    
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_event_set   out = 0;                                          
 200bbd8:	c0 27 bf fc 	clr  [ %fp + -4 ]                              
                                                                      
  sc = rtems_event_receive (event,                                    
 200bbdc:	90 10 00 18 	mov  %i0, %o0                                  
 200bbe0:	94 10 20 00 	clr  %o2                                       
 200bbe4:	7f ff ec fd 	call  2006fd8 <rtems_event_receive>            
 200bbe8:	96 07 bf fc 	add  %fp, -4, %o3                              
                            RTEMS_EVENT_ALL | RTEMS_WAIT,             
                            RTEMS_NO_TIMEOUT,                         
                            &out);                                    
                                                                      
  if (sc != RTEMS_SUCCESSFUL || out != event)                         
 200bbec:	80 a2 20 00 	cmp  %o0, 0                                    
 200bbf0:	12 80 00 07 	bne  200bc0c <rtems_bdbuf_wait_for_event+0x3c> <== NEVER TAKEN
 200bbf4:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 200bbf8:	80 a0 40 18 	cmp  %g1, %i0                                  
 200bbfc:	12 80 00 05 	bne  200bc10 <rtems_bdbuf_wait_for_event+0x40> <== NEVER TAKEN
 200bc00:	11 10 80 00 	sethi  %hi(0x42000000), %o0                    
 200bc04:	81 c7 e0 08 	ret                                            
 200bc08:	81 e8 00 00 	restore                                        
    rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_WAIT_EVNT);  
 200bc0c:	11 10 80 00 	sethi  %hi(0x42000000), %o0                    <== NOT EXECUTED
 200bc10:	7f ff f0 2e 	call  2007cc8 <rtems_fatal_error_occurred>     <== NOT EXECUTED
 200bc14:	90 12 20 1a 	or  %o0, 0x1a, %o0	! 4200001a <RAM_END+0x3fc0001a><== NOT EXECUTED
                                                                      

0200bdbc <rtems_bdbuf_wake>: * Wake a blocked resource. The resource has a counter that lets us know if * there are any waiters. */ static void rtems_bdbuf_wake (const rtems_bdbuf_waiters *waiters) {
 200bdbc:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (waiters->count > 0)                                             
 200bdc0:	c2 06 00 00 	ld  [ %i0 ], %g1                               
 200bdc4:	80 a0 60 00 	cmp  %g1, 0                                    
 200bdc8:	12 80 00 04 	bne  200bdd8 <rtems_bdbuf_wake+0x1c>           
 200bdcc:	01 00 00 00 	nop                                            
 200bdd0:	81 c7 e0 08 	ret                                            
 200bdd4:	81 e8 00 00 	restore                                        
  {                                                                   
    sc = rtems_semaphore_flush (waiters->sema);                       
 200bdd8:	40 00 12 90 	call  2010818 <rtems_semaphore_flush>          
 200bddc:	d0 06 20 04 	ld  [ %i0 + 4 ], %o0                           
    if (sc != RTEMS_SUCCESSFUL)                                       
 200bde0:	80 a2 20 00 	cmp  %o0, 0                                    
 200bde4:	02 bf ff fb 	be  200bdd0 <rtems_bdbuf_wake+0x14>            <== ALWAYS TAKEN
 200bde8:	11 10 80 00 	sethi  %hi(0x42000000), %o0                    
      rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_CACHE_WAKE);
 200bdec:	7f ff ef b7 	call  2007cc8 <rtems_fatal_error_occurred>     <== NOT EXECUTED
 200bdf0:	90 12 20 13 	or  %o0, 0x13, %o0	! 42000013 <RAM_END+0x3fc00013><== NOT EXECUTED
                                                                      

0200bb80 <rtems_bdbuf_wake_swapper>: } } static void rtems_bdbuf_wake_swapper (void) {
 200bb80:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_status_code sc = rtems_event_send (bdbuf_cache.swapout,       
 200bb84:	03 00 80 6a 	sethi  %hi(0x201a800), %g1                     
 200bb88:	d0 00 61 a8 	ld  [ %g1 + 0x1a8 ], %o0	! 201a9a8 <bdbuf_cache>
 200bb8c:	7f ff ed 76 	call  2007164 <rtems_event_send>               
 200bb90:	92 10 20 04 	mov  4, %o1                                    
                                           RTEMS_BDBUF_SWAPOUT_SYNC); 
  if (sc != RTEMS_SUCCESSFUL)                                         
 200bb94:	80 a2 20 00 	cmp  %o0, 0                                    
 200bb98:	12 80 00 04 	bne  200bba8 <rtems_bdbuf_wake_swapper+0x28>   <== NEVER TAKEN
 200bb9c:	11 10 80 00 	sethi  %hi(0x42000000), %o0                    
 200bba0:	81 c7 e0 08 	ret                                            
 200bba4:	81 e8 00 00 	restore                                        
    rtems_fatal_error_occurred (RTEMS_BLKDEV_FATAL_BDBUF_SO_WAKE);    
 200bba8:	7f ff f0 48 	call  2007cc8 <rtems_fatal_error_occurred>     <== NOT EXECUTED
 200bbac:	90 12 20 14 	or  %o0, 0x14, %o0                             <== NOT EXECUTED
                                                                      

0200e260 <rtems_blkdev_generic_ioctl>: rtems_device_driver rtems_blkdev_generic_ioctl( rtems_device_major_number major __attribute__((unused)), rtems_device_minor_number minor __attribute__((unused)), void * arg) {
 200e260:	9d e3 bf a0 	save  %sp, -96, %sp                            
    rtems_libio_ioctl_args_t *args = arg;                             
    rtems_libio_t *iop = args->iop;                                   
    rtems_disk_device *dd = iop->data1;                               
 200e264:	c2 06 80 00 	ld  [ %i2 ], %g1                               
    int rc;                                                           
                                                                      
    switch (args->command)                                            
 200e268:	d2 06 a0 04 	ld  [ %i2 + 4 ], %o1                           
 200e26c:	05 10 01 10 	sethi  %hi(0x40044000), %g2                    
    rtems_device_minor_number minor __attribute__((unused)),          
    void                    * arg)                                    
{                                                                     
    rtems_libio_ioctl_args_t *args = arg;                             
    rtems_libio_t *iop = args->iop;                                   
    rtems_disk_device *dd = iop->data1;                               
 200e270:	c6 00 60 38 	ld  [ %g1 + 0x38 ], %g3                        
    int rc;                                                           
                                                                      
    switch (args->command)                                            
 200e274:	82 10 a2 03 	or  %g2, 0x203, %g1                            
 200e278:	80 a2 40 01 	cmp  %o1, %g1                                  
 200e27c:	22 80 00 3c 	be,a   200e36c <rtems_blkdev_generic_ioctl+0x10c><== NEVER TAKEN
 200e280:	c4 00 e0 20 	ld  [ %g3 + 0x20 ], %g2                        <== NOT EXECUTED
 200e284:	08 80 00 16 	bleu  200e2dc <rtems_blkdev_generic_ioctl+0x7c><== NEVER TAKEN
 200e288:	03 08 00 10 	sethi  %hi(0x20004000), %g1                    
 200e28c:	03 20 01 10 	sethi  %hi(0x80044000), %g1                    
 200e290:	82 10 62 04 	or  %g1, 0x204, %g1	! 80044204 <RAM_END+0x7dc44204>
 200e294:	80 a2 40 01 	cmp  %o1, %g1                                  
 200e298:	02 80 00 22 	be  200e320 <rtems_blkdev_generic_ioctl+0xc0>  <== ALWAYS TAKEN
 200e29c:	03 30 06 10 	sethi  %hi(0xc0184000), %g1                    
 200e2a0:	82 10 62 01 	or  %g1, 0x201, %g1	! c0184201 <RAM_END+0xbdd84201><== NOT EXECUTED
 200e2a4:	80 a2 40 01 	cmp  %o1, %g1                                  <== NOT EXECUTED
 200e2a8:	02 80 00 1a 	be  200e310 <rtems_blkdev_generic_ioctl+0xb0>  <== NOT EXECUTED
 200e2ac:	84 10 a2 05 	or  %g2, 0x205, %g2                            <== NOT EXECUTED
 200e2b0:	80 a2 40 02 	cmp  %o1, %g2                                  <== NOT EXECUTED
 200e2b4:	22 80 00 21 	be,a   200e338 <rtems_blkdev_generic_ioctl+0xd8><== NOT EXECUTED
 200e2b8:	c4 00 e0 1c 	ld  [ %g3 + 0x1c ], %g2                        <== NOT EXECUTED
             */                                                       
            args->ioctl_return = (uint32_t) -1;                       
            break;                                                    
                                                                      
        default:                                                      
            args->ioctl_return = (uint32_t) dd->ioctl(dd->phys_dev,   
 200e2bc:	c2 00 e0 28 	ld  [ %g3 + 0x28 ], %g1                        <== NOT EXECUTED
 200e2c0:	d0 00 e0 08 	ld  [ %g3 + 8 ], %o0                           <== NOT EXECUTED
 200e2c4:	d4 06 a0 08 	ld  [ %i2 + 8 ], %o2                           <== NOT EXECUTED
 200e2c8:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
 200e2cc:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
 200e2d0:	d0 26 a0 0c 	st  %o0, [ %i2 + 0xc ]                         <== NOT EXECUTED
                                                      args->buffer);  
            break;                                                    
    }                                                                 
                                                                      
    return RTEMS_SUCCESSFUL;                                          
}                                                                     
 200e2d4:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200e2d8:	81 e8 00 00 	restore                                        <== NOT EXECUTED
    rtems_libio_ioctl_args_t *args = arg;                             
    rtems_libio_t *iop = args->iop;                                   
    rtems_disk_device *dd = iop->data1;                               
    int rc;                                                           
                                                                      
    switch (args->command)                                            
 200e2dc:	82 10 62 06 	or  %g1, 0x206, %g1                            <== NOT EXECUTED
 200e2e0:	80 a2 40 01 	cmp  %o1, %g1                                  <== NOT EXECUTED
 200e2e4:	02 80 00 1a 	be  200e34c <rtems_blkdev_generic_ioctl+0xec>  <== NOT EXECUTED
 200e2e8:	84 10 a2 02 	or  %g2, 0x202, %g2                            <== NOT EXECUTED
 200e2ec:	80 a2 40 02 	cmp  %o1, %g2                                  <== NOT EXECUTED
 200e2f0:	32 bf ff f4 	bne,a   200e2c0 <rtems_blkdev_generic_ioctl+0x60><== NOT EXECUTED
 200e2f4:	c2 00 e0 28 	ld  [ %g3 + 0x28 ], %g1                        <== NOT EXECUTED
    {                                                                 
        case RTEMS_BLKIO_GETMEDIABLKSIZE:                             
            *((uint32_t *) args->buffer) = dd->media_block_size;      
 200e2f8:	c4 00 e0 24 	ld  [ %g3 + 0x24 ], %g2                        <== NOT EXECUTED
 200e2fc:	c2 06 a0 08 	ld  [ %i2 + 8 ], %g1                           <== NOT EXECUTED
 200e300:	c4 20 40 00 	st  %g2, [ %g1 ]                               <== NOT EXECUTED
            args->ioctl_return = 0;                                   
 200e304:	c0 26 a0 0c 	clr  [ %i2 + 0xc ]                             <== NOT EXECUTED
                                                      args->buffer);  
            break;                                                    
    }                                                                 
                                                                      
    return RTEMS_SUCCESSFUL;                                          
}                                                                     
 200e308:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200e30c:	91 e8 20 00 	restore  %g0, 0, %o0                           <== NOT EXECUTED
        case RTEMS_BLKIO_REQUEST:                                     
            /*                                                        
             * It is not allowed to directly access the driver circumventing
             * the cache.                                             
             */                                                       
            args->ioctl_return = (uint32_t) -1;                       
 200e310:	82 10 3f ff 	mov  -1, %g1                                   <== NOT EXECUTED
 200e314:	c2 26 a0 0c 	st  %g1, [ %i2 + 0xc ]                         <== NOT EXECUTED
                                                      args->buffer);  
            break;                                                    
    }                                                                 
                                                                      
    return RTEMS_SUCCESSFUL;                                          
}                                                                     
 200e318:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200e31c:	91 e8 20 00 	restore  %g0, 0, %o0                           <== NOT EXECUTED
            *((uint32_t *) args->buffer) = dd->block_size;            
            args->ioctl_return = 0;                                   
            break;                                                    
                                                                      
        case RTEMS_BLKIO_SETBLKSIZE:                                  
            dd->block_size = *((uint32_t *) args->buffer);            
 200e320:	c2 06 a0 08 	ld  [ %i2 + 8 ], %g1                           
 200e324:	c2 00 40 00 	ld  [ %g1 ], %g1                               
 200e328:	c2 20 e0 20 	st  %g1, [ %g3 + 0x20 ]                        
            args->ioctl_return = 0;                                   
 200e32c:	c0 26 a0 0c 	clr  [ %i2 + 0xc ]                             
                                                      args->buffer);  
            break;                                                    
    }                                                                 
                                                                      
    return RTEMS_SUCCESSFUL;                                          
}                                                                     
 200e330:	81 c7 e0 08 	ret                                            
 200e334:	91 e8 20 00 	restore  %g0, 0, %o0                           
            dd->block_size = *((uint32_t *) args->buffer);            
            args->ioctl_return = 0;                                   
            break;                                                    
                                                                      
        case RTEMS_BLKIO_GETSIZE:                                     
            *((rtems_blkdev_bnum *) args->buffer) = dd->size;         
 200e338:	c2 06 a0 08 	ld  [ %i2 + 8 ], %g1                           <== NOT EXECUTED
 200e33c:	c4 20 40 00 	st  %g2, [ %g1 ]                               <== NOT EXECUTED
            args->ioctl_return = 0;                                   
 200e340:	c0 26 a0 0c 	clr  [ %i2 + 0xc ]                             <== NOT EXECUTED
                                                      args->buffer);  
            break;                                                    
    }                                                                 
                                                                      
    return RTEMS_SUCCESSFUL;                                          
}                                                                     
 200e344:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200e348:	91 e8 20 00 	restore  %g0, 0, %o0                           <== NOT EXECUTED
            *((rtems_blkdev_bnum *) args->buffer) = dd->size;         
            args->ioctl_return = 0;                                   
            break;                                                    
                                                                      
        case RTEMS_BLKIO_SYNCDEV:                                     
            rc = rtems_bdbuf_syncdev(dd->dev);                        
 200e34c:	d0 18 c0 00 	ldd  [ %g3 ], %o0                              <== NOT EXECUTED
 200e350:	7f ff fe fc 	call  200df40 <rtems_bdbuf_syncdev>            <== NOT EXECUTED
 200e354:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
            args->ioctl_return = (uint32_t) (rc == RTEMS_SUCCESSFUL ? 0 : -1);
 200e358:	80 a0 00 08 	cmp  %g0, %o0                                  <== NOT EXECUTED
 200e35c:	82 60 20 00 	subx  %g0, 0, %g1                              <== NOT EXECUTED
 200e360:	c2 26 a0 0c 	st  %g1, [ %i2 + 0xc ]                         <== NOT EXECUTED
                                                      args->buffer);  
            break;                                                    
    }                                                                 
                                                                      
    return RTEMS_SUCCESSFUL;                                          
}                                                                     
 200e364:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200e368:	81 e8 00 00 	restore                                        <== NOT EXECUTED
            *((uint32_t *) args->buffer) = dd->media_block_size;      
            args->ioctl_return = 0;                                   
            break;                                                    
                                                                      
        case RTEMS_BLKIO_GETBLKSIZE:                                  
            *((uint32_t *) args->buffer) = dd->block_size;            
 200e36c:	c2 06 a0 08 	ld  [ %i2 + 8 ], %g1                           <== NOT EXECUTED
 200e370:	c4 20 40 00 	st  %g2, [ %g1 ]                               <== NOT EXECUTED
            args->ioctl_return = 0;                                   
 200e374:	c0 26 a0 0c 	clr  [ %i2 + 0xc ]                             <== NOT EXECUTED
                                                      args->buffer);  
            break;                                                    
    }                                                                 
                                                                      
    return RTEMS_SUCCESSFUL;                                          
}                                                                     
 200e378:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200e37c:	91 e8 20 00 	restore  %g0, 0, %o0                           <== NOT EXECUTED
                                                                      

0200e020 <rtems_blkdev_generic_read>: rtems_device_driver rtems_blkdev_generic_read( rtems_device_major_number major __attribute__((unused)), rtems_device_minor_number minor __attribute__((unused)), void * arg) {
 200e020:	9d e3 bf 98 	save  %sp, -104, %sp                           <== NOT EXECUTED
    rtems_status_code rc = RTEMS_SUCCESSFUL;                          
    rtems_libio_rw_args_t *args = arg;                                
    rtems_libio_t *iop = args->iop;                                   
    rtems_disk_device *dd = iop->data1;                               
 200e024:	c2 06 80 00 	ld  [ %i2 ], %g1                               <== NOT EXECUTED
    uint32_t block_size = dd->block_size;                             
    char *buf = args->buffer;                                         
    uint32_t count = args->count;                                     
 200e028:	f6 06 a0 14 	ld  [ %i2 + 0x14 ], %i3                        <== NOT EXECUTED
    void                    * arg)                                    
{                                                                     
    rtems_status_code rc = RTEMS_SUCCESSFUL;                          
    rtems_libio_rw_args_t *args = arg;                                
    rtems_libio_t *iop = args->iop;                                   
    rtems_disk_device *dd = iop->data1;                               
 200e02c:	c2 00 60 38 	ld  [ %g1 + 0x38 ], %g1                        <== NOT EXECUTED
    uint32_t block_size = dd->block_size;                             
    char *buf = args->buffer;                                         
 200e030:	f2 06 a0 10 	ld  [ %i2 + 0x10 ], %i1                        <== NOT EXECUTED
{                                                                     
    rtems_status_code rc = RTEMS_SUCCESSFUL;                          
    rtems_libio_rw_args_t *args = arg;                                
    rtems_libio_t *iop = args->iop;                                   
    rtems_disk_device *dd = iop->data1;                               
    uint32_t block_size = dd->block_size;                             
 200e034:	e6 00 60 20 	ld  [ %g1 + 0x20 ], %l3                        <== NOT EXECUTED
    char *buf = args->buffer;                                         
    uint32_t count = args->count;                                     
    rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
    uint32_t blkofs = (uint32_t) (args->offset % block_size);         
    dev_t dev = dd->dev;                                              
 200e038:	f8 18 40 00 	ldd  [ %g1 ], %i4                              <== NOT EXECUTED
                                                                      
    args->bytes_moved = 0;                                            
 200e03c:	c0 26 a0 1c 	clr  [ %i2 + 0x1c ]                            <== NOT EXECUTED
    rtems_libio_t *iop = args->iop;                                   
    rtems_disk_device *dd = iop->data1;                               
    uint32_t block_size = dd->block_size;                             
    char *buf = args->buffer;                                         
    uint32_t count = args->count;                                     
    rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
 200e040:	e0 1e a0 08 	ldd  [ %i2 + 8 ], %l0                          <== NOT EXECUTED
    uint32_t blkofs = (uint32_t) (args->offset % block_size);         
    dev_t dev = dd->dev;                                              
                                                                      
    args->bytes_moved = 0;                                            
                                                                      
    while (count > 0)                                                 
 200e044:	80 a6 e0 00 	cmp  %i3, 0                                    <== NOT EXECUTED
 200e048:	02 80 00 2e 	be  200e100 <rtems_blkdev_generic_read+0xe0>   <== NOT EXECUTED
 200e04c:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
    rtems_libio_t *iop = args->iop;                                   
    rtems_disk_device *dd = iop->data1;                               
    uint32_t block_size = dd->block_size;                             
    char *buf = args->buffer;                                         
    uint32_t count = args->count;                                     
    rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
 200e050:	94 10 20 00 	clr  %o2                                       <== NOT EXECUTED
 200e054:	96 10 00 13 	mov  %l3, %o3                                  <== NOT EXECUTED
 200e058:	90 10 00 10 	mov  %l0, %o0                                  <== NOT EXECUTED
 200e05c:	40 00 24 ee 	call  2017414 <__divdi3>                       <== NOT EXECUTED
 200e060:	92 10 00 11 	mov  %l1, %o1                                  <== NOT EXECUTED
    uint32_t blkofs = (uint32_t) (args->offset % block_size);         
 200e064:	90 10 00 10 	mov  %l0, %o0                                  <== NOT EXECUTED
    rtems_libio_t *iop = args->iop;                                   
    rtems_disk_device *dd = iop->data1;                               
    uint32_t block_size = dd->block_size;                             
    char *buf = args->buffer;                                         
    uint32_t count = args->count;                                     
    rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
 200e068:	a4 10 00 09 	mov  %o1, %l2                                  <== NOT EXECUTED
    uint32_t blkofs = (uint32_t) (args->offset % block_size);         
 200e06c:	94 10 20 00 	clr  %o2                                       <== NOT EXECUTED
 200e070:	92 10 00 11 	mov  %l1, %o1                                  <== NOT EXECUTED
 200e074:	40 00 25 ce 	call  20177ac <__moddi3>                       <== NOT EXECUTED
 200e078:	96 10 00 13 	mov  %l3, %o3                                  <== NOT EXECUTED
 200e07c:	10 80 00 18 	b  200e0dc <rtems_blkdev_generic_read+0xbc>    <== NOT EXECUTED
 200e080:	a0 10 00 09 	mov  %o1, %l0                                  <== NOT EXECUTED
        uint32_t            copy;                                     
                                                                      
        rc = rtems_bdbuf_read(dev, block, &diskbuf);                  
        if (rc != RTEMS_SUCCESSFUL)                                   
            break;                                                    
        copy = block_size - blkofs;                                   
 200e084:	a2 24 c0 10 	sub  %l3, %l0, %l1                             <== NOT EXECUTED
 200e088:	80 a4 40 1b 	cmp  %l1, %i3                                  <== NOT EXECUTED
 200e08c:	08 80 00 03 	bleu  200e098 <rtems_blkdev_generic_read+0x78> <== NOT EXECUTED
 200e090:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          <== NOT EXECUTED
 200e094:	a2 10 00 1b 	mov  %i3, %l1                                  <== NOT EXECUTED
        if (copy > count)                                             
            copy = count;                                             
        memcpy(buf, (char *)diskbuf->buffer + blkofs, copy);          
 200e098:	d2 00 60 24 	ld  [ %g1 + 0x24 ], %o1                        <== NOT EXECUTED
 200e09c:	94 10 00 11 	mov  %l1, %o2                                  <== NOT EXECUTED
 200e0a0:	40 00 18 18 	call  2014100 <memcpy>                         <== NOT EXECUTED
 200e0a4:	92 02 40 10 	add  %o1, %l0, %o1                             <== NOT EXECUTED
        rc = rtems_bdbuf_release(diskbuf);                            
 200e0a8:	d0 07 bf fc 	ld  [ %fp + -4 ], %o0                          <== NOT EXECUTED
 200e0ac:	7f ff fe ec 	call  200dc5c <rtems_bdbuf_release>            <== NOT EXECUTED
 200e0b0:	b2 06 40 11 	add  %i1, %l1, %i1                             <== NOT EXECUTED
        args->bytes_moved += copy;                                    
 200e0b4:	c2 06 a0 1c 	ld  [ %i2 + 0x1c ], %g1                        <== NOT EXECUTED
            break;                                                    
        copy = block_size - blkofs;                                   
        if (copy > count)                                             
            copy = count;                                             
        memcpy(buf, (char *)diskbuf->buffer + blkofs, copy);          
        rc = rtems_bdbuf_release(diskbuf);                            
 200e0b8:	b0 10 00 08 	mov  %o0, %i0                                  <== NOT EXECUTED
        args->bytes_moved += copy;                                    
 200e0bc:	82 00 40 11 	add  %g1, %l1, %g1                             <== NOT EXECUTED
        if (rc != RTEMS_SUCCESSFUL)                                   
 200e0c0:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
 200e0c4:	12 80 00 0f 	bne  200e100 <rtems_blkdev_generic_read+0xe0>  <== NOT EXECUTED
 200e0c8:	c2 26 a0 1c 	st  %g1, [ %i2 + 0x1c ]                        <== NOT EXECUTED
    uint32_t blkofs = (uint32_t) (args->offset % block_size);         
    dev_t dev = dd->dev;                                              
                                                                      
    args->bytes_moved = 0;                                            
                                                                      
    while (count > 0)                                                 
 200e0cc:	b6 a6 c0 11 	subcc  %i3, %l1, %i3                           <== NOT EXECUTED
 200e0d0:	02 80 00 0c 	be  200e100 <rtems_blkdev_generic_read+0xe0>   <== NOT EXECUTED
 200e0d4:	a4 04 a0 01 	inc  %l2                                       <== NOT EXECUTED
        args->bytes_moved += copy;                                    
        if (rc != RTEMS_SUCCESSFUL)                                   
            break;                                                    
        count -= copy;                                                
        buf += copy;                                                  
        blkofs = 0;                                                   
 200e0d8:	a0 10 20 00 	clr  %l0                                       <== NOT EXECUTED
    while (count > 0)                                                 
    {                                                                 
        rtems_bdbuf_buffer *diskbuf;                                  
        uint32_t            copy;                                     
                                                                      
        rc = rtems_bdbuf_read(dev, block, &diskbuf);                  
 200e0dc:	94 10 00 12 	mov  %l2, %o2                                  <== NOT EXECUTED
 200e0e0:	96 07 bf fc 	add  %fp, -4, %o3                              <== NOT EXECUTED
 200e0e4:	90 10 00 1c 	mov  %i4, %o0                                  <== NOT EXECUTED
 200e0e8:	7f ff fe 25 	call  200d97c <rtems_bdbuf_read>               <== NOT EXECUTED
 200e0ec:	92 10 00 1d 	mov  %i5, %o1                                  <== NOT EXECUTED
 200e0f0:	b0 10 00 08 	mov  %o0, %i0                                  <== NOT EXECUTED
        if (rc != RTEMS_SUCCESSFUL)                                   
 200e0f4:	80 a6 20 00 	cmp  %i0, 0                                    <== NOT EXECUTED
 200e0f8:	02 bf ff e3 	be  200e084 <rtems_blkdev_generic_read+0x64>   <== NOT EXECUTED
 200e0fc:	90 10 00 19 	mov  %i1, %o0                                  <== NOT EXECUTED
        blkofs = 0;                                                   
        block++;                                                      
    }                                                                 
                                                                      
    return rc;                                                        
}                                                                     
 200e100:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200e104:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

0200e108 <rtems_blkdev_generic_write>: rtems_device_driver rtems_blkdev_generic_write( rtems_device_major_number major __attribute__((unused)), rtems_device_minor_number minor __attribute__((unused)), void * arg) {
 200e108:	9d e3 bf 98 	save  %sp, -104, %sp                           <== NOT EXECUTED
    rtems_status_code rc = RTEMS_SUCCESSFUL;                          
    rtems_libio_rw_args_t *args = arg;                                
    rtems_libio_t *iop = args->iop;                                   
    rtems_disk_device *dd = iop->data1;                               
 200e10c:	c2 06 80 00 	ld  [ %i2 ], %g1                               <== NOT EXECUTED
    uint32_t block_size = dd->block_size;                             
    char *buf = args->buffer;                                         
    uint32_t count = args->count;                                     
 200e110:	f6 06 a0 14 	ld  [ %i2 + 0x14 ], %i3                        <== NOT EXECUTED
    void                    * arg)                                    
{                                                                     
    rtems_status_code rc = RTEMS_SUCCESSFUL;                          
    rtems_libio_rw_args_t *args = arg;                                
    rtems_libio_t *iop = args->iop;                                   
    rtems_disk_device *dd = iop->data1;                               
 200e114:	c2 00 60 38 	ld  [ %g1 + 0x38 ], %g1                        <== NOT EXECUTED
    uint32_t block_size = dd->block_size;                             
    char *buf = args->buffer;                                         
 200e118:	f2 06 a0 10 	ld  [ %i2 + 0x10 ], %i1                        <== NOT EXECUTED
{                                                                     
    rtems_status_code rc = RTEMS_SUCCESSFUL;                          
    rtems_libio_rw_args_t *args = arg;                                
    rtems_libio_t *iop = args->iop;                                   
    rtems_disk_device *dd = iop->data1;                               
    uint32_t block_size = dd->block_size;                             
 200e11c:	e6 00 60 20 	ld  [ %g1 + 0x20 ], %l3                        <== NOT EXECUTED
    char *buf = args->buffer;                                         
    uint32_t count = args->count;                                     
    rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
    uint32_t blkofs = (uint32_t) (args->offset % block_size);         
    dev_t dev = dd->dev;                                              
 200e120:	f8 18 40 00 	ldd  [ %g1 ], %i4                              <== NOT EXECUTED
                                                                      
    args->bytes_moved = 0;                                            
 200e124:	c0 26 a0 1c 	clr  [ %i2 + 0x1c ]                            <== NOT EXECUTED
    rtems_libio_t *iop = args->iop;                                   
    rtems_disk_device *dd = iop->data1;                               
    uint32_t block_size = dd->block_size;                             
    char *buf = args->buffer;                                         
    uint32_t count = args->count;                                     
    rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
 200e128:	e0 1e a0 08 	ldd  [ %i2 + 8 ], %l0                          <== NOT EXECUTED
    uint32_t blkofs = (uint32_t) (args->offset % block_size);         
    dev_t dev = dd->dev;                                              
                                                                      
    args->bytes_moved = 0;                                            
                                                                      
    while (count > 0)                                                 
 200e12c:	80 a6 e0 00 	cmp  %i3, 0                                    <== NOT EXECUTED
 200e130:	02 80 00 38 	be  200e210 <rtems_blkdev_generic_write+0x108> <== NOT EXECUTED
 200e134:	90 10 20 00 	clr  %o0                                       <== NOT EXECUTED
    rtems_libio_t *iop = args->iop;                                   
    rtems_disk_device *dd = iop->data1;                               
    uint32_t block_size = dd->block_size;                             
    char *buf = args->buffer;                                         
    uint32_t count = args->count;                                     
    rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
 200e138:	94 10 20 00 	clr  %o2                                       <== NOT EXECUTED
 200e13c:	96 10 00 13 	mov  %l3, %o3                                  <== NOT EXECUTED
 200e140:	90 10 00 10 	mov  %l0, %o0                                  <== NOT EXECUTED
 200e144:	40 00 24 b4 	call  2017414 <__divdi3>                       <== NOT EXECUTED
 200e148:	92 10 00 11 	mov  %l1, %o1                                  <== NOT EXECUTED
    uint32_t blkofs = (uint32_t) (args->offset % block_size);         
 200e14c:	90 10 00 10 	mov  %l0, %o0                                  <== NOT EXECUTED
    rtems_libio_t *iop = args->iop;                                   
    rtems_disk_device *dd = iop->data1;                               
    uint32_t block_size = dd->block_size;                             
    char *buf = args->buffer;                                         
    uint32_t count = args->count;                                     
    rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
 200e150:	a4 10 00 09 	mov  %o1, %l2                                  <== NOT EXECUTED
    uint32_t blkofs = (uint32_t) (args->offset % block_size);         
 200e154:	94 10 20 00 	clr  %o2                                       <== NOT EXECUTED
 200e158:	92 10 00 11 	mov  %l1, %o1                                  <== NOT EXECUTED
 200e15c:	40 00 25 94 	call  20177ac <__moddi3>                       <== NOT EXECUTED
 200e160:	96 10 00 13 	mov  %l3, %o3                                  <== NOT EXECUTED
 200e164:	10 80 00 20 	b  200e1e4 <rtems_blkdev_generic_write+0xdc>   <== NOT EXECUTED
 200e168:	a0 10 00 09 	mov  %o1, %l0                                  <== NOT EXECUTED
    while (count > 0)                                                 
    {                                                                 
        rtems_bdbuf_buffer *diskbuf;                                  
        uint32_t            copy;                                     
                                                                      
        if ((blkofs == 0) && (count >= block_size))                   
 200e16c:	12 80 00 22 	bne  200e1f4 <rtems_blkdev_generic_write+0xec> <== NOT EXECUTED
 200e170:	92 10 00 1d 	mov  %i5, %o1                                  <== NOT EXECUTED
            rc = rtems_bdbuf_get(dev, block, &diskbuf);               
 200e174:	90 10 00 1c 	mov  %i4, %o0                                  <== NOT EXECUTED
 200e178:	94 10 00 12 	mov  %l2, %o2                                  <== NOT EXECUTED
 200e17c:	7f ff fd cb 	call  200d8a8 <rtems_bdbuf_get>                <== NOT EXECUTED
 200e180:	96 07 bf fc 	add  %fp, -4, %o3                              <== NOT EXECUTED
        else                                                          
            rc = rtems_bdbuf_read(dev, block, &diskbuf);              
        if (rc != RTEMS_SUCCESSFUL)                                   
 200e184:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
 200e188:	12 80 00 22 	bne  200e210 <rtems_blkdev_generic_write+0x108><== NOT EXECUTED
 200e18c:	92 10 00 19 	mov  %i1, %o1                                  <== NOT EXECUTED
            break;                                                    
                                                                      
        copy = block_size - blkofs;                                   
 200e190:	a2 24 c0 10 	sub  %l3, %l0, %l1                             <== NOT EXECUTED
 200e194:	80 a4 40 1b 	cmp  %l1, %i3                                  <== NOT EXECUTED
 200e198:	08 80 00 03 	bleu  200e1a4 <rtems_blkdev_generic_write+0x9c><== NOT EXECUTED
 200e19c:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          <== NOT EXECUTED
 200e1a0:	a2 10 00 1b 	mov  %i3, %l1                                  <== NOT EXECUTED
        if (copy > count)                                             
            copy = count;                                             
        memcpy((char *)diskbuf->buffer + blkofs, buf, copy);          
 200e1a4:	d0 00 60 24 	ld  [ %g1 + 0x24 ], %o0                        <== NOT EXECUTED
 200e1a8:	94 10 00 11 	mov  %l1, %o2                                  <== NOT EXECUTED
 200e1ac:	40 00 17 d5 	call  2014100 <memcpy>                         <== NOT EXECUTED
 200e1b0:	90 02 00 10 	add  %o0, %l0, %o0                             <== NOT EXECUTED
        args->bytes_moved += copy;                                    
 200e1b4:	c2 06 a0 1c 	ld  [ %i2 + 0x1c ], %g1                        <== NOT EXECUTED
                                                                      
        rc = rtems_bdbuf_release_modified(diskbuf);                   
 200e1b8:	d0 07 bf fc 	ld  [ %fp + -4 ], %o0                          <== NOT EXECUTED
                                                                      
        copy = block_size - blkofs;                                   
        if (copy > count)                                             
            copy = count;                                             
        memcpy((char *)diskbuf->buffer + blkofs, buf, copy);          
        args->bytes_moved += copy;                                    
 200e1bc:	82 00 40 11 	add  %g1, %l1, %g1                             <== NOT EXECUTED
        rc = rtems_bdbuf_release_modified(diskbuf);                   
        if (rc != RTEMS_SUCCESSFUL)                                   
            break;                                                    
                                                                      
        count -= copy;                                                
        buf += copy;                                                  
 200e1c0:	b2 06 40 11 	add  %i1, %l1, %i1                             <== NOT EXECUTED
        if (copy > count)                                             
            copy = count;                                             
        memcpy((char *)diskbuf->buffer + blkofs, buf, copy);          
        args->bytes_moved += copy;                                    
                                                                      
        rc = rtems_bdbuf_release_modified(diskbuf);                   
 200e1c4:	7f ff fe e0 	call  200dd44 <rtems_bdbuf_release_modified>   <== NOT EXECUTED
 200e1c8:	c2 26 a0 1c 	st  %g1, [ %i2 + 0x1c ]                        <== NOT EXECUTED
        if (rc != RTEMS_SUCCESSFUL)                                   
 200e1cc:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
 200e1d0:	12 80 00 10 	bne  200e210 <rtems_blkdev_generic_write+0x108><== NOT EXECUTED
 200e1d4:	b6 a6 c0 11 	subcc  %i3, %l1, %i3                           <== NOT EXECUTED
    uint32_t blkofs = (uint32_t) (args->offset % block_size);         
    dev_t dev = dd->dev;                                              
                                                                      
    args->bytes_moved = 0;                                            
                                                                      
    while (count > 0)                                                 
 200e1d8:	02 80 00 0e 	be  200e210 <rtems_blkdev_generic_write+0x108> <== NOT EXECUTED
 200e1dc:	a4 04 a0 01 	inc  %l2                                       <== NOT EXECUTED
        if (rc != RTEMS_SUCCESSFUL)                                   
            break;                                                    
                                                                      
        count -= copy;                                                
        buf += copy;                                                  
        blkofs = 0;                                                   
 200e1e0:	a0 10 20 00 	clr  %l0                                       <== NOT EXECUTED
    while (count > 0)                                                 
    {                                                                 
        rtems_bdbuf_buffer *diskbuf;                                  
        uint32_t            copy;                                     
                                                                      
        if ((blkofs == 0) && (count >= block_size))                   
 200e1e4:	80 a6 c0 13 	cmp  %i3, %l3                                  <== NOT EXECUTED
 200e1e8:	1a bf ff e1 	bcc  200e16c <rtems_blkdev_generic_write+0x64> <== NOT EXECUTED
 200e1ec:	80 a4 20 00 	cmp  %l0, 0                                    <== NOT EXECUTED
            rc = rtems_bdbuf_get(dev, block, &diskbuf);               
        else                                                          
            rc = rtems_bdbuf_read(dev, block, &diskbuf);              
 200e1f0:	92 10 00 1d 	mov  %i5, %o1                                  <== NOT EXECUTED
 200e1f4:	94 10 00 12 	mov  %l2, %o2                                  <== NOT EXECUTED
 200e1f8:	96 07 bf fc 	add  %fp, -4, %o3                              <== NOT EXECUTED
 200e1fc:	7f ff fd e0 	call  200d97c <rtems_bdbuf_read>               <== NOT EXECUTED
 200e200:	90 10 00 1c 	mov  %i4, %o0                                  <== NOT EXECUTED
        if (rc != RTEMS_SUCCESSFUL)                                   
 200e204:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
 200e208:	02 bf ff e2 	be  200e190 <rtems_blkdev_generic_write+0x88>  <== NOT EXECUTED
 200e20c:	92 10 00 19 	mov  %i1, %o1                                  <== NOT EXECUTED
        blkofs = 0;                                                   
        block++;                                                      
    }                                                                 
                                                                      
    return rc;                                                        
}                                                                     
 200e210:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200e214:	91 e8 00 08 	restore  %g0, %o0, %o0                         <== NOT EXECUTED
                                                                      

0200e380 <rtems_blkdev_ioctl>: int rtems_blkdev_ioctl(rtems_disk_device *dd, uint32_t req, void *argp) {
 200e380:	9d e3 bf a0 	save  %sp, -96, %sp                            
    size_t            *arg_size = argp;                               
    int                rc = 0;                                        
                                                                      
    switch (req)                                                      
 200e384:	03 10 01 10 	sethi  %hi(0x40044000), %g1                    
 200e388:	84 10 62 03 	or  %g1, 0x203, %g2	! 40044203 <RAM_END+0x3dc44203>
 200e38c:	80 a6 40 02 	cmp  %i1, %g2                                  
 200e390:	22 80 00 1f 	be,a   200e40c <rtems_blkdev_ioctl+0x8c>       <== NEVER TAKEN
 200e394:	c4 06 20 20 	ld  [ %i0 + 0x20 ], %g2                        <== NOT EXECUTED
 200e398:	38 80 00 0d 	bgu,a   200e3cc <rtems_blkdev_ioctl+0x4c>      <== NEVER TAKEN
 200e39c:	82 10 62 05 	or  %g1, 0x205, %g1                            <== NOT EXECUTED
 200e3a0:	82 10 62 02 	or  %g1, 0x202, %g1                            
 200e3a4:	80 a6 40 01 	cmp  %i1, %g1                                  
 200e3a8:	22 80 00 1d 	be,a   200e41c <rtems_blkdev_ioctl+0x9c>       <== NEVER TAKEN
 200e3ac:	c4 06 20 24 	ld  [ %i0 + 0x24 ], %g2                        <== NOT EXECUTED
        case RTEMS_BLKIO_GETSIZE:                                     
            *arg_size = dd->size;                                     
            break;                                                    
                                                                      
        default:                                                      
            errno = EINVAL;                                           
 200e3b0:	40 00 15 12 	call  20137f8 <__errno>                        
 200e3b4:	01 00 00 00 	nop                                            
            rc = -1;                                                  
 200e3b8:	82 10 3f ff 	mov  -1, %g1	! ffffffff <RAM_END+0xfdbfffff>   
        case RTEMS_BLKIO_GETSIZE:                                     
            *arg_size = dd->size;                                     
            break;                                                    
                                                                      
        default:                                                      
            errno = EINVAL;                                           
 200e3bc:	84 10 20 16 	mov  0x16, %g2                                 
 200e3c0:	c4 22 00 00 	st  %g2, [ %o0 ]                               
            rc = -1;                                                  
            break;                                                    
    }                                                                 
                                                                      
    return rc;                                                        
}                                                                     
 200e3c4:	81 c7 e0 08 	ret                                            
 200e3c8:	91 e8 00 01 	restore  %g0, %g1, %o0                         
rtems_blkdev_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)   
{                                                                     
    size_t            *arg_size = argp;                               
    int                rc = 0;                                        
                                                                      
    switch (req)                                                      
 200e3cc:	80 a6 40 01 	cmp  %i1, %g1                                  <== NOT EXECUTED
 200e3d0:	02 80 00 0a 	be  200e3f8 <rtems_blkdev_ioctl+0x78>          <== NOT EXECUTED
 200e3d4:	03 20 01 10 	sethi  %hi(0x80044000), %g1                    <== NOT EXECUTED
 200e3d8:	82 10 62 04 	or  %g1, 0x204, %g1	! 80044204 <RAM_END+0x7dc44204><== NOT EXECUTED
 200e3dc:	80 a6 40 01 	cmp  %i1, %g1                                  <== NOT EXECUTED
 200e3e0:	12 bf ff f4 	bne  200e3b0 <rtems_blkdev_ioctl+0x30>         <== NOT EXECUTED
 200e3e4:	82 10 20 00 	clr  %g1                                       <== NOT EXECUTED
        case RTEMS_BLKIO_GETBLKSIZE:                                  
            *arg_size = dd->block_size;                               
            break;                                                    
                                                                      
        case RTEMS_BLKIO_SETBLKSIZE:                                  
            dd->block_size = *arg_size;                               
 200e3e8:	c4 06 80 00 	ld  [ %i2 ], %g2                               <== NOT EXECUTED
 200e3ec:	c4 26 20 20 	st  %g2, [ %i0 + 0x20 ]                        <== NOT EXECUTED
            rc = -1;                                                  
            break;                                                    
    }                                                                 
                                                                      
    return rc;                                                        
}                                                                     
 200e3f0:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200e3f4:	91 e8 00 01 	restore  %g0, %g1, %o0                         <== NOT EXECUTED
        case RTEMS_BLKIO_SETBLKSIZE:                                  
            dd->block_size = *arg_size;                               
            break;                                                    
                                                                      
        case RTEMS_BLKIO_GETSIZE:                                     
            *arg_size = dd->size;                                     
 200e3f8:	c4 06 20 1c 	ld  [ %i0 + 0x1c ], %g2                        <== NOT EXECUTED
                                                                      
int                                                                   
rtems_blkdev_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)   
{                                                                     
    size_t            *arg_size = argp;                               
    int                rc = 0;                                        
 200e3fc:	82 10 20 00 	clr  %g1                                       <== NOT EXECUTED
        case RTEMS_BLKIO_SETBLKSIZE:                                  
            dd->block_size = *arg_size;                               
            break;                                                    
                                                                      
        case RTEMS_BLKIO_GETSIZE:                                     
            *arg_size = dd->size;                                     
 200e400:	c4 26 80 00 	st  %g2, [ %i2 ]                               <== NOT EXECUTED
            rc = -1;                                                  
            break;                                                    
    }                                                                 
                                                                      
    return rc;                                                        
}                                                                     
 200e404:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200e408:	91 e8 00 01 	restore  %g0, %g1, %o0                         <== NOT EXECUTED
                                                                      
int                                                                   
rtems_blkdev_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)   
{                                                                     
    size_t            *arg_size = argp;                               
    int                rc = 0;                                        
 200e40c:	82 10 20 00 	clr  %g1                                       <== NOT EXECUTED
        case RTEMS_BLKIO_GETMEDIABLKSIZE:                             
            *arg_size = dd->media_block_size;                         
            break;                                                    
                                                                      
        case RTEMS_BLKIO_GETBLKSIZE:                                  
            *arg_size = dd->block_size;                               
 200e410:	c4 26 80 00 	st  %g2, [ %i2 ]                               <== NOT EXECUTED
            rc = -1;                                                  
            break;                                                    
    }                                                                 
                                                                      
    return rc;                                                        
}                                                                     
 200e414:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200e418:	91 e8 00 01 	restore  %g0, %g1, %o0                         <== NOT EXECUTED
                                                                      
int                                                                   
rtems_blkdev_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)   
{                                                                     
    size_t            *arg_size = argp;                               
    int                rc = 0;                                        
 200e41c:	82 10 20 00 	clr  %g1                                       <== NOT EXECUTED
                                                                      
    switch (req)                                                      
    {                                                                 
        case RTEMS_BLKIO_GETMEDIABLKSIZE:                             
            *arg_size = dd->media_block_size;                         
 200e420:	c4 26 80 00 	st  %g2, [ %i2 ]                               <== NOT EXECUTED
            rc = -1;                                                  
            break;                                                    
    }                                                                 
                                                                      
    return rc;                                                        
}                                                                     
 200e424:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200e428:	91 e8 00 01 	restore  %g0, %g1, %o0                         <== NOT EXECUTED
                                                                      

020024f0 <rtems_bsp_cmdline_get_param>: const char *rtems_bsp_cmdline_get_param( const char *name, char *value, size_t length ) {
 20024f0:	9d e3 bf a0 	save  %sp, -96, %sp                            
  const char *p;                                                      
                                                                      
  if ( !name )                                                        
 20024f4:	80 a6 20 00 	cmp  %i0, 0                                    
 20024f8:	02 80 00 35 	be  20025cc <rtems_bsp_cmdline_get_param+0xdc> 
 20024fc:	80 a6 60 00 	cmp  %i1, 0                                    
    return NULL;                                                      
                                                                      
  if ( !value )                                                       
 2002500:	02 80 00 31 	be  20025c4 <rtems_bsp_cmdline_get_param+0xd4> 
 2002504:	80 a6 a0 00 	cmp  %i2, 0                                    
    return NULL;                                                      
                                                                      
  if ( !length )                                                      
 2002508:	22 80 00 32 	be,a   20025d0 <rtems_bsp_cmdline_get_param+0xe0>
 200250c:	b2 10 20 00 	clr  %i1                                       
    return NULL;                                                      
                                                                      
  value[0] = '\0';                                                    
 2002510:	c0 2e 40 00 	clrb  [ %i1 ]                                  
                                                                      
  p = rtems_bsp_cmdline_get_param_raw( name );                        
 2002514:	40 00 00 31 	call  20025d8 <rtems_bsp_cmdline_get_param_raw>
 2002518:	90 10 00 18 	mov  %i0, %o0                                  
                                                                      
  if ( !p )                                                           
 200251c:	80 a2 20 00 	cmp  %o0, 0                                    
 2002520:	22 80 00 2c 	be,a   20025d0 <rtems_bsp_cmdline_get_param+0xe0>
 2002524:	b2 10 20 00 	clr  %i1                                       
  int         i;                                                      
  int         quotes;                                                 
  const char *p = start;                                              
                                                                      
  quotes=0;                                                           
  for (i=0 ; *p && i<length-1; ) {                                    
 2002528:	c6 0a 00 00 	ldub  [ %o0 ], %g3                             
 200252c:	85 28 e0 18 	sll  %g3, 0x18, %g2                            
 2002530:	80 a0 a0 00 	cmp  %g2, 0                                    
 2002534:	02 80 00 24 	be  20025c4 <rtems_bsp_cmdline_get_param+0xd4> <== NEVER TAKEN
 2002538:	b4 86 bf ff 	addcc  %i2, -1, %i2                            
 200253c:	02 80 00 22 	be  20025c4 <rtems_bsp_cmdline_get_param+0xd4> <== NEVER TAKEN
 2002540:	88 10 20 00 	clr  %g4                                       
 2002544:	82 10 20 00 	clr  %g1                                       
 2002548:	10 80 00 12 	b  2002590 <rtems_bsp_cmdline_get_param+0xa0>  
 200254c:	b0 10 20 00 	clr  %i0                                       
    if ( *p == '\"' ) {                                               
      quotes++;                                                       
    } else if ( ((quotes % 2) == 0) && *p == ' ' )                    
 2002550:	32 80 00 06 	bne,a   2002568 <rtems_bsp_cmdline_get_param+0x78>
 2002554:	c6 2e 40 04 	stb  %g3, [ %i1 + %g4 ]                        
 2002558:	80 a0 a0 20 	cmp  %g2, 0x20                                 
 200255c:	02 80 00 1a 	be  20025c4 <rtems_bsp_cmdline_get_param+0xd4> 
 2002560:	01 00 00 00 	nop                                            
      break;                                                          
    value[i++] = *p++;                                                
 2002564:	c6 2e 40 04 	stb  %g3, [ %i1 + %g4 ]                        
 2002568:	82 00 60 01 	inc  %g1                                       
    value[i] = '\0';                                                  
 200256c:	c0 2e 40 01 	clrb  [ %i1 + %g1 ]                            
  int         i;                                                      
  int         quotes;                                                 
  const char *p = start;                                              
                                                                      
  quotes=0;                                                           
  for (i=0 ; *p && i<length-1; ) {                                    
 2002570:	c6 0a 20 01 	ldub  [ %o0 + 1 ], %g3                         
 2002574:	85 28 e0 18 	sll  %g3, 0x18, %g2                            
 2002578:	80 a0 a0 00 	cmp  %g2, 0                                    
 200257c:	02 80 00 12 	be  20025c4 <rtems_bsp_cmdline_get_param+0xd4> 
 2002580:	88 10 00 01 	mov  %g1, %g4                                  
 2002584:	80 a6 80 01 	cmp  %i2, %g1                                  
 2002588:	08 80 00 0f 	bleu  20025c4 <rtems_bsp_cmdline_get_param+0xd4>
 200258c:	90 02 20 01 	inc  %o0                                       
    if ( *p == '\"' ) {                                               
 2002590:	85 38 a0 18 	sra  %g2, 0x18, %g2                            
 2002594:	80 a0 a0 22 	cmp  %g2, 0x22                                 
 2002598:	12 bf ff ee 	bne  2002550 <rtems_bsp_cmdline_get_param+0x60>
 200259c:	80 8e 20 01 	btst  1, %i0                                   
      quotes++;                                                       
    } else if ( ((quotes % 2) == 0) && *p == ' ' )                    
      break;                                                          
    value[i++] = *p++;                                                
 20025a0:	c6 2e 40 04 	stb  %g3, [ %i1 + %g4 ]                        
 20025a4:	82 00 60 01 	inc  %g1                                       
    value[i] = '\0';                                                  
 20025a8:	c0 2e 40 01 	clrb  [ %i1 + %g1 ]                            
  int         i;                                                      
  int         quotes;                                                 
  const char *p = start;                                              
                                                                      
  quotes=0;                                                           
  for (i=0 ; *p && i<length-1; ) {                                    
 20025ac:	c6 0a 20 01 	ldub  [ %o0 + 1 ], %g3                         
    if ( *p == '\"' ) {                                               
      quotes++;                                                       
 20025b0:	b0 06 20 01 	inc  %i0                                       
  int         i;                                                      
  int         quotes;                                                 
  const char *p = start;                                              
                                                                      
  quotes=0;                                                           
  for (i=0 ; *p && i<length-1; ) {                                    
 20025b4:	85 28 e0 18 	sll  %g3, 0x18, %g2                            
 20025b8:	80 a0 a0 00 	cmp  %g2, 0                                    
 20025bc:	12 bf ff f2 	bne  2002584 <rtems_bsp_cmdline_get_param+0x94><== ALWAYS TAKEN
 20025c0:	88 10 00 01 	mov  %g1, %g4                                  
    return NULL;                                                      
                                                                      
  copy_string( p, value, length );                                    
                                                                      
  return value;                                                       
}                                                                     
 20025c4:	81 c7 e0 08 	ret                                            
 20025c8:	91 e8 00 19 	restore  %g0, %i1, %o0                         
  value[0] = '\0';                                                    
                                                                      
  p = rtems_bsp_cmdline_get_param_raw( name );                        
                                                                      
  if ( !p )                                                           
    return NULL;                                                      
 20025cc:	b2 10 20 00 	clr  %i1                                       
                                                                      
  copy_string( p, value, length );                                    
                                                                      
  return value;                                                       
}                                                                     
 20025d0:	81 c7 e0 08 	ret                                            
 20025d4:	91 e8 00 19 	restore  %g0, %i1, %o0                         
                                                                      

02007174 <rtems_chain_get_with_wait>: rtems_chain_control *chain, rtems_event_set events, rtems_interval timeout, rtems_chain_node **node_ptr ) {
 2007174:	9d e3 bf 98 	save  %sp, -104, %sp                           
 2007178:	ba 10 00 18 	mov  %i0, %i5                                  
 */                                                                   
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(               
  rtems_chain_control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Get( the_chain );                                     
 200717c:	40 00 01 a0 	call  20077fc <_Chain_Get>                     
 2007180:	90 10 00 1d 	mov  %i5, %o0                                  
  while (                                                             
    sc == RTEMS_SUCCESSFUL                                            
      && (node = rtems_chain_get( chain )) == NULL                    
  ) {                                                                 
    rtems_event_set out;                                              
    sc = rtems_event_receive(                                         
 2007184:	92 10 20 00 	clr  %o1                                       
 2007188:	b8 10 00 08 	mov  %o0, %i4                                  
 200718c:	94 10 00 1a 	mov  %i2, %o2                                  
 2007190:	90 10 00 19 	mov  %i1, %o0                                  
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_chain_node *node = NULL;                                      
                                                                      
  while (                                                             
    sc == RTEMS_SUCCESSFUL                                            
      && (node = rtems_chain_get( chain )) == NULL                    
 2007194:	80 a7 20 00 	cmp  %i4, 0                                    
 2007198:	12 80 00 0a 	bne  20071c0 <rtems_chain_get_with_wait+0x4c>  
 200719c:	96 07 bf fc 	add  %fp, -4, %o3                              
  ) {                                                                 
    rtems_event_set out;                                              
    sc = rtems_event_receive(                                         
 20071a0:	7f ff fc f4 	call  2006570 <rtems_event_receive>            
 20071a4:	01 00 00 00 	nop                                            
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_chain_node *node = NULL;                                      
                                                                      
  while (                                                             
 20071a8:	80 a2 20 00 	cmp  %o0, 0                                    
 20071ac:	02 bf ff f4 	be  200717c <rtems_chain_get_with_wait+0x8>    <== NEVER TAKEN
 20071b0:	b0 10 00 08 	mov  %o0, %i0                                  
      timeout,                                                        
      &out                                                            
    );                                                                
  }                                                                   
                                                                      
  *node_ptr = node;                                                   
 20071b4:	f8 26 c0 00 	st  %i4, [ %i3 ]                               
                                                                      
  return sc;                                                          
}                                                                     
 20071b8:	81 c7 e0 08 	ret                                            
 20071bc:	81 e8 00 00 	restore                                        
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_chain_node *node = NULL;                                      
                                                                      
  while (                                                             
    sc == RTEMS_SUCCESSFUL                                            
      && (node = rtems_chain_get( chain )) == NULL                    
 20071c0:	90 10 20 00 	clr  %o0                                       
      timeout,                                                        
      &out                                                            
    );                                                                
  }                                                                   
                                                                      
  *node_ptr = node;                                                   
 20071c4:	f8 26 c0 00 	st  %i4, [ %i3 ]                               
                                                                      
  return sc;                                                          
}                                                                     
 20071c8:	81 c7 e0 08 	ret                                            
 20071cc:	91 e8 00 08 	restore  %g0, %o0, %o0                         
                                                                      

0200306c <rtems_cpu_usage_report_with_plugin>: */ void rtems_cpu_usage_report_with_plugin( void *context, rtems_printk_plugin_t print ) {
 200306c:	9d e3 bf 58 	save  %sp, -168, %sp                           
    Timestamp_Control  uptime, total, ran, uptime_at_last_reset;      
  #else                                                               
    uint32_t           total_units = 0;                               
  #endif                                                              
                                                                      
  if ( !print )                                                       
 2003070:	80 a6 60 00 	cmp  %i1, 0                                    
 2003074:	02 80 00 75 	be  2003248 <rtems_cpu_usage_report_with_plugin+0x1dc><== NEVER TAKEN
 2003078:	03 00 80 82 	sethi  %hi(0x2020800), %g1                     
   *  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__                          
    _Timestamp_Set_to_zero( &total );                                 
    uptime_at_last_reset = CPU_usage_Uptime_at_last_reset;            
 200307c:	c4 00 62 90 	ld  [ %g1 + 0x290 ], %g2	! 2020a90 <CPU_usage_Uptime_at_last_reset>
 2003080:	86 10 62 90 	or  %g1, 0x290, %g3                            
 2003084:	c2 00 e0 04 	ld  [ %g3 + 4 ], %g1                           
   *  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__                          
    _Timestamp_Set_to_zero( &total );                                 
 2003088:	c0 27 bf d0 	clr  [ %fp + -48 ]                             
 200308c:	c0 27 bf d4 	clr  [ %fp + -44 ]                             
    uptime_at_last_reset = CPU_usage_Uptime_at_last_reset;            
 2003090:	c4 27 bf e0 	st  %g2, [ %fp + -32 ]                         
 2003094:	c2 27 bf e4 	st  %g1, [ %fp + -28 ]                         
        }                                                             
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  (*print)(                                                           
 2003098:	90 10 00 18 	mov  %i0, %o0                                  
 200309c:	13 00 80 75 	sethi  %hi(0x201d400), %o1                     
 20030a0:	21 00 80 81 	sethi  %hi(0x2020400), %l0                     
 20030a4:	92 12 62 28 	or  %o1, 0x228, %o1                            
 20030a8:	a0 14 20 2c 	or  %l0, 0x2c, %l0                             
        if ( !the_thread )                                            
          continue;                                                   
                                                                      
        rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
                                                                      
        (*print)(                                                     
 20030ac:	35 00 80 75 	sethi  %hi(0x201d400), %i2                     
        }                                                             
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  (*print)(                                                           
 20030b0:	9f c6 40 00 	call  %i1                                      
 20030b4:	37 00 80 75 	sethi  %hi(0x201d400), %i3                     
#endif                                                                
                                                                      
/*                                                                    
 *  rtems_cpu_usage_report                                            
 */                                                                   
void rtems_cpu_usage_report_with_plugin(                              
 20030b8:	a2 04 20 0c 	add  %l0, 0xc, %l1                             
        if ( !the_thread )                                            
          continue;                                                   
                                                                      
        rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
                                                                      
        (*print)(                                                     
 20030bc:	b4 16 a3 a0 	or  %i2, 0x3a0, %i2                            
                                                                      
          /*                                                          
           * Print the information                                    
           */                                                         
                                                                      
          (*print)( context,                                          
 20030c0:	b6 16 e3 b8 	or  %i3, 0x3b8, %i3                            
    #if !defined(RTEMS_POSIX_API) || defined(RTEMS_DEBUG)             
      if ( !_Objects_Information_table[ api_index ] )                 
        continue;                                                     
    #endif                                                            
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
 20030c4:	c2 04 00 00 	ld  [ %l0 ], %g1                               
 20030c8:	f8 00 60 04 	ld  [ %g1 + 4 ], %i4                           
    if ( information ) {                                              
 20030cc:	80 a7 20 00 	cmp  %i4, 0                                    
 20030d0:	22 80 00 51 	be,a   2003214 <rtems_cpu_usage_report_with_plugin+0x1a8><== NEVER TAKEN
 20030d4:	a0 04 20 04 	add  %l0, 4, %l0                               <== NOT EXECUTED
      for ( i=1 ; i <= information->maximum ; i++ ) {                 
 20030d8:	c2 17 20 10 	lduh  [ %i4 + 0x10 ], %g1                      
 20030dc:	86 90 60 00 	orcc  %g1, 0, %g3                              
 20030e0:	02 80 00 4c 	be  2003210 <rtems_cpu_usage_report_with_plugin+0x1a4>
 20030e4:	ba 10 20 01 	mov  1, %i5                                    
        the_thread = (Thread_Control *)information->local_table[ i ]; 
 20030e8:	10 80 00 1f 	b  2003164 <rtems_cpu_usage_report_with_plugin+0xf8>
 20030ec:	c4 07 20 1c 	ld  [ %i4 + 0x1c ], %g2                        
            Timestamp_Control used;                                   
            _TOD_Get_uptime( &uptime );                               
            _Timestamp_Subtract( &last, &uptime, &used );             
            _Timestamp_Add_to( &ran, &used );                         
          } else {                                                    
            _TOD_Get_uptime( &uptime );                               
 20030f0:	40 00 17 6f 	call  2008eac <_TOD_Get_uptime>                
 20030f4:	90 10 00 13 	mov  %l3, %o0                                  
          }                                                           
          _Timestamp_Subtract( &uptime_at_last_reset, &uptime, &total );
 20030f8:	90 07 bf e0 	add  %fp, -32, %o0                             
 20030fc:	92 10 00 13 	mov  %l3, %o1                                  
 2003100:	40 00 22 26 	call  200b998 <_Timespec_Subtract>             
 2003104:	94 07 bf d0 	add  %fp, -48, %o2                             
          _Timestamp_Divide( &ran, &total, &ival, &fval );            
 2003108:	94 07 bf f8 	add  %fp, -8, %o2                              
 200310c:	96 07 bf fc 	add  %fp, -4, %o3                              
 2003110:	90 10 00 14 	mov  %l4, %o0                                  
 2003114:	40 00 21 88 	call  200b734 <_Timespec_Divide>               
 2003118:	92 07 bf d0 	add  %fp, -48, %o1                             
                                                                      
          /*                                                          
           * Print the information                                    
           */                                                         
                                                                      
          (*print)( context,                                          
 200311c:	d0 07 bf dc 	ld  [ %fp + -36 ], %o0                         
 2003120:	40 00 5d ae 	call  201a7d8 <.udiv>                          
 2003124:	92 10 23 e8 	mov  0x3e8, %o1                                
 2003128:	e4 07 bf d8 	ld  [ %fp + -40 ], %l2                         
 200312c:	d8 1f bf f8 	ldd  [ %fp + -8 ], %o4                         
 2003130:	96 10 00 08 	mov  %o0, %o3                                  
 2003134:	92 10 00 1b 	mov  %i3, %o1                                  
 2003138:	90 10 00 18 	mov  %i0, %o0                                  
 200313c:	9f c6 40 00 	call  %i1                                      
 2003140:	94 10 00 12 	mov  %l2, %o2                                  
 2003144:	c6 17 20 10 	lduh  [ %i4 + 0x10 ], %g3                      
        continue;                                                     
    #endif                                                            
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
    if ( information ) {                                              
      for ( i=1 ; i <= information->maximum ; i++ ) {                 
 2003148:	ba 07 60 01 	inc  %i5                                       
 200314c:	83 28 e0 10 	sll  %g3, 0x10, %g1                            
 2003150:	83 30 60 10 	srl  %g1, 0x10, %g1                            
 2003154:	80 a0 40 1d 	cmp  %g1, %i5                                  
 2003158:	2a 80 00 2f 	bcs,a   2003214 <rtems_cpu_usage_report_with_plugin+0x1a8>
 200315c:	a0 04 20 04 	add  %l0, 4, %l0                               
        the_thread = (Thread_Control *)information->local_table[ i ]; 
 2003160:	c4 07 20 1c 	ld  [ %i4 + 0x1c ], %g2                        
 2003164:	83 2f 60 02 	sll  %i5, 2, %g1                               
 2003168:	e4 00 80 01 	ld  [ %g2 + %g1 ], %l2                         
                                                                      
        if ( !the_thread )                                            
          continue;                                                   
                                                                      
        rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
 200316c:	94 07 bf b8 	add  %fp, -72, %o2                             
 2003170:	92 10 20 0d 	mov  0xd, %o1                                  
    information = _Objects_Information_table[ api_index ][ 1 ];       
    if ( information ) {                                              
      for ( i=1 ; i <= information->maximum ; i++ ) {                 
        the_thread = (Thread_Control *)information->local_table[ i ]; 
                                                                      
        if ( !the_thread )                                            
 2003174:	80 a4 a0 00 	cmp  %l2, 0                                    
 2003178:	02 bf ff f4 	be  2003148 <rtems_cpu_usage_report_with_plugin+0xdc><== NEVER TAKEN
 200317c:	a6 07 bf c8 	add  %fp, -56, %l3                             
          continue;                                                   
                                                                      
        rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
 2003180:	d0 04 a0 08 	ld  [ %l2 + 8 ], %o0                           
 2003184:	40 00 12 0a 	call  20079ac <rtems_object_get_name>          
 2003188:	a8 07 bf d8 	add  %fp, -40, %l4                             
                                                                      
        (*print)(                                                     
 200318c:	d4 04 a0 08 	ld  [ %l2 + 8 ], %o2                           
 2003190:	90 10 00 18 	mov  %i0, %o0                                  
 2003194:	92 10 00 1a 	mov  %i2, %o1                                  
 2003198:	9f c6 40 00 	call  %i1                                      
 200319c:	96 07 bf b8 	add  %fp, -72, %o3                             
    Thread_Control    *the_thread,                                    
    Timestamp_Control *time_of_context_switch                         
  )                                                                   
  {                                                                   
    #ifndef RTEMS_SMP                                                 
      if ( _Thread_Executing->Object.id == the_thread->Object.id ) {  
 20031a0:	03 00 80 82 	sethi  %hi(0x2020800), %g1                     
 20031a4:	82 10 62 38 	or  %g1, 0x238, %g1	! 2020a38 <_Per_CPU_Information>
 20031a8:	c4 00 60 0c 	ld  [ %g1 + 0xc ], %g2                         
                                                                      
          /*                                                          
           * If this is the currently executing thread, account for time
           * since the last context switch.                           
           */                                                         
          ran = the_thread->cpu_time_used;                            
 20031ac:	de 04 a0 84 	ld  [ %l2 + 0x84 ], %o7                        
 20031b0:	c8 04 a0 88 	ld  [ %l2 + 0x88 ], %g4                        
    Thread_Control    *the_thread,                                    
    Timestamp_Control *time_of_context_switch                         
  )                                                                   
  {                                                                   
    #ifndef RTEMS_SMP                                                 
      if ( _Thread_Executing->Object.id == the_thread->Object.id ) {  
 20031b4:	c6 04 a0 08 	ld  [ %l2 + 8 ], %g3                           
 20031b8:	c4 00 a0 08 	ld  [ %g2 + 8 ], %g2                           
                                                                      
          /*                                                          
           * If this is the currently executing thread, account for time
           * since the last context switch.                           
           */                                                         
          ran = the_thread->cpu_time_used;                            
 20031bc:	de 27 bf d8 	st  %o7, [ %fp + -40 ]                         
    Thread_Control    *the_thread,                                    
    Timestamp_Control *time_of_context_switch                         
  )                                                                   
  {                                                                   
    #ifndef RTEMS_SMP                                                 
      if ( _Thread_Executing->Object.id == the_thread->Object.id ) {  
 20031c0:	80 a0 c0 02 	cmp  %g3, %g2                                  
 20031c4:	12 bf ff cb 	bne  20030f0 <rtems_cpu_usage_report_with_plugin+0x84>
 20031c8:	c8 27 bf dc 	st  %g4, [ %fp + -36 ]                         
        *time_of_context_switch = _Thread_Time_of_last_context_switch;
 20031cc:	c4 00 60 1c 	ld  [ %g1 + 0x1c ], %g2                        
 20031d0:	c2 00 60 20 	ld  [ %g1 + 0x20 ], %g1                        
           * since the last context switch.                           
           */                                                         
          ran = the_thread->cpu_time_used;                            
          if ( is_executing_on_a_core( the_thread, &last ) ) {        
            Timestamp_Control used;                                   
            _TOD_Get_uptime( &uptime );                               
 20031d4:	a6 07 bf c8 	add  %fp, -56, %l3                             
    Timestamp_Control *time_of_context_switch                         
  )                                                                   
  {                                                                   
    #ifndef RTEMS_SMP                                                 
      if ( _Thread_Executing->Object.id == the_thread->Object.id ) {  
        *time_of_context_switch = _Thread_Time_of_last_context_switch;
 20031d8:	c4 27 bf e8 	st  %g2, [ %fp + -24 ]                         
           * since the last context switch.                           
           */                                                         
          ran = the_thread->cpu_time_used;                            
          if ( is_executing_on_a_core( the_thread, &last ) ) {        
            Timestamp_Control used;                                   
            _TOD_Get_uptime( &uptime );                               
 20031dc:	90 10 00 13 	mov  %l3, %o0                                  
 20031e0:	40 00 17 33 	call  2008eac <_TOD_Get_uptime>                
 20031e4:	c2 27 bf ec 	st  %g1, [ %fp + -20 ]                         
            _Timestamp_Subtract( &last, &uptime, &used );             
 20031e8:	90 07 bf e8 	add  %fp, -24, %o0                             
 20031ec:	92 10 00 13 	mov  %l3, %o1                                  
 20031f0:	40 00 21 ea 	call  200b998 <_Timespec_Subtract>             
 20031f4:	94 07 bf f0 	add  %fp, -16, %o2                             
            _Timestamp_Add_to( &ran, &used );                         
 20031f8:	a8 07 bf d8 	add  %fp, -40, %l4                             
 20031fc:	92 07 bf f0 	add  %fp, -16, %o1                             
 2003200:	40 00 21 34 	call  200b6d0 <_Timespec_Add_to>               
 2003204:	90 10 00 14 	mov  %l4, %o0                                  
          } else {                                                    
            _TOD_Get_uptime( &uptime );                               
          }                                                           
          _Timestamp_Subtract( &uptime_at_last_reset, &uptime, &total );
 2003208:	10 bf ff bd 	b  20030fc <rtems_cpu_usage_report_with_plugin+0x90>
 200320c:	90 07 bf e0 	add  %fp, -32, %o0                             
        continue;                                                     
    #endif                                                            
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
    if ( information ) {                                              
      for ( i=1 ; i <= information->maximum ; i++ ) {                 
 2003210:	a0 04 20 04 	add  %l0, 4, %l0                               
       " ID         | NAME                                   | TICKS         | PERCENT\n"
     #endif                                                           
     "------------+----------------------------------------+---------------+---------\n"
  );                                                                  
                                                                      
  for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
 2003214:	80 a4 00 11 	cmp  %l0, %l1                                  
 2003218:	32 bf ff ac 	bne,a   20030c8 <rtems_cpu_usage_report_with_plugin+0x5c>
 200321c:	c2 04 00 00 	ld  [ %l0 ], %g1                               
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    (*print)(                                                         
 2003220:	d0 07 bf d4 	ld  [ %fp + -44 ], %o0                         
 2003224:	fa 07 bf d0 	ld  [ %fp + -48 ], %i5                         
 2003228:	40 00 5d 6c 	call  201a7d8 <.udiv>                          
 200322c:	92 10 23 e8 	mov  0x3e8, %o1                                
 2003230:	13 00 80 75 	sethi  %hi(0x201d400), %o1                     
 2003234:	96 10 00 08 	mov  %o0, %o3                                  
 2003238:	94 10 00 1d 	mov  %i5, %o2                                  
 200323c:	90 10 00 18 	mov  %i0, %o0                                  
 2003240:	9f c6 40 00 	call  %i1                                      
 2003244:	92 12 63 d0 	or  %o1, 0x3d0, %o1                            
 2003248:	81 c7 e0 08 	ret                                            
 200324c:	81 e8 00 00 	restore                                        
                                                                      

0200f8ac <rtems_deviceio_errno>: [RTEMS_IO_ERROR] = EIO, [RTEMS_PROXY_BLOCKING] = EIO }; int rtems_deviceio_errno(rtems_status_code sc) {
 200f8ac:	9d e3 bf a0 	save  %sp, -96, %sp                            
  if (sc == RTEMS_SUCCESSFUL) {                                       
 200f8b0:	80 a6 20 00 	cmp  %i0, 0                                    
 200f8b4:	12 80 00 04 	bne  200f8c4 <rtems_deviceio_errno+0x18>       
 200f8b8:	82 10 20 00 	clr  %g1                                       
                                                                      
    errno = eno;                                                      
                                                                      
    return -1;                                                        
  }                                                                   
}                                                                     
 200f8bc:	81 c7 e0 08 	ret                                            
 200f8c0:	91 e8 00 01 	restore  %g0, %g1, %o0                         
  if (sc == RTEMS_SUCCESSFUL) {                                       
    return 0;                                                         
  } else {                                                            
    int eno = EINVAL;                                                 
                                                                      
    if ((unsigned) sc <= RTEMS_STATUS_CODES_LAST) {                   
 200f8c4:	80 a6 20 1c 	cmp  %i0, 0x1c                                 
 200f8c8:	18 80 00 06 	bgu  200f8e0 <rtems_deviceio_errno+0x34>       <== NEVER TAKEN
 200f8cc:	ba 10 20 16 	mov  0x16, %i5                                 
      eno = status_code_to_errno [sc];                                
 200f8d0:	b1 2e 20 02 	sll  %i0, 2, %i0                               
 200f8d4:	03 00 80 6f 	sethi  %hi(0x201bc00), %g1                     
 200f8d8:	82 10 62 f0 	or  %g1, 0x2f0, %g1	! 201bef0 <status_code_to_errno>
 200f8dc:	fa 00 40 18 	ld  [ %g1 + %i0 ], %i5                         
    }                                                                 
                                                                      
    errno = eno;                                                      
 200f8e0:	40 00 00 30 	call  200f9a0 <__errno>                        
 200f8e4:	01 00 00 00 	nop                                            
                                                                      
    return -1;                                                        
 200f8e8:	82 10 3f ff 	mov  -1, %g1	! ffffffff <RAM_END+0xfdbfffff>   
 200f8ec:	10 bf ff f4 	b  200f8bc <rtems_deviceio_errno+0x10>         
 200f8f0:	fa 22 00 00 	st  %i5, [ %o0 ]                               
                                                                      

02002aac <rtems_disk_create_log>: dev_t phys, rtems_blkdev_bnum begin_block, rtems_blkdev_bnum block_count, const char *name ) {
 2002aac:	9d e3 bf 90 	save  %sp, -112, %sp                           
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_disk_device *physical_disk = NULL;                            
  rtems_disk_device *dd = NULL;                                       
  rtems_blkdev_bnum end_block = begin_block + block_count;            
                                                                      
  sc = disk_lock();                                                   
 2002ab0:	7f ff ff 43 	call  20027bc <disk_lock>                      
 2002ab4:	c0 27 bf fc 	clr  [ %fp + -4 ]                              
  if (sc != RTEMS_SUCCESSFUL) {                                       
 2002ab8:	80 a2 20 00 	cmp  %o0, 0                                    
 2002abc:	22 80 00 04 	be,a   2002acc <rtems_disk_create_log+0x20>    <== ALWAYS TAKEN
 2002ac0:	90 10 00 1a 	mov  %i2, %o0                                  
  ++physical_disk->uses;                                              
                                                                      
  disk_unlock();                                                      
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 2002ac4:	81 c7 e0 08 	ret                                            
 2002ac8:	91 e8 00 08 	restore  %g0, %o0, %o0                         
  sc = disk_lock();                                                   
  if (sc != RTEMS_SUCCESSFUL) {                                       
    return sc;                                                        
  }                                                                   
                                                                      
  physical_disk = get_disk_entry(phys, true);                         
 2002acc:	92 10 00 1b 	mov  %i3, %o1                                  
 2002ad0:	7f ff ff 00 	call  20026d0 <get_disk_entry>                 
 2002ad4:	94 10 20 01 	mov  1, %o2                                    
  if (physical_disk == NULL || !is_physical_disk(physical_disk)) {    
 2002ad8:	b4 92 20 00 	orcc  %o0, 0, %i2                              
 2002adc:	02 80 00 06 	be  2002af4 <rtems_disk_create_log+0x48>       
 2002ae0:	01 00 00 00 	nop                                            
 2002ae4:	c2 06 a0 08 	ld  [ %i2 + 8 ], %g1                           
 2002ae8:	80 a6 80 01 	cmp  %i2, %g1                                  
 2002aec:	02 80 00 07 	be  2002b08 <rtems_disk_create_log+0x5c>       
 2002af0:	82 07 40 1c 	add  %i5, %i4, %g1                             
    disk_unlock();                                                    
 2002af4:	7f ff ff 41 	call  20027f8 <disk_unlock>                    
 2002af8:	01 00 00 00 	nop                                            
                                                                      
    return RTEMS_INVALID_ID;                                          
 2002afc:	90 10 20 04 	mov  4, %o0	! 4 <PROM_START+0x4>               
  ++physical_disk->uses;                                              
                                                                      
  disk_unlock();                                                      
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 2002b00:	81 c7 e0 08 	ret                                            
 2002b04:	91 e8 00 08 	restore  %g0, %o0, %o0                         
    disk_unlock();                                                    
                                                                      
    return RTEMS_INVALID_ID;                                          
  }                                                                   
                                                                      
  if (                                                                
 2002b08:	80 a7 00 01 	cmp  %i4, %g1                                  
 2002b0c:	1a 80 00 07 	bcc  2002b28 <rtems_disk_create_log+0x7c>      
 2002b10:	c4 06 a0 1c 	ld  [ %i2 + 0x1c ], %g2                        
 2002b14:	80 a7 00 02 	cmp  %i4, %g2                                  
 2002b18:	1a 80 00 04 	bcc  2002b28 <rtems_disk_create_log+0x7c>      <== NEVER TAKEN
 2002b1c:	80 a0 40 02 	cmp  %g1, %g2                                  
    begin_block >= physical_disk->size                                
      || end_block <= begin_block                                     
      || end_block > physical_disk->size                              
 2002b20:	08 80 00 06 	bleu  2002b38 <rtems_disk_create_log+0x8c>     
 2002b24:	d4 07 a0 5c 	ld  [ %fp + 0x5c ], %o2                        
  ) {                                                                 
    disk_unlock();                                                    
 2002b28:	7f ff ff 34 	call  20027f8 <disk_unlock>                    
 2002b2c:	01 00 00 00 	nop                                            
                                                                      
    return RTEMS_INVALID_NUMBER;                                      
 2002b30:	10 bf ff e5 	b  2002ac4 <rtems_disk_create_log+0x18>        
 2002b34:	90 10 20 0a 	mov  0xa, %o0	! a <PROM_START+0xa>             
  }                                                                   
                                                                      
  sc = create_disk(dev, name, &dd);                                   
 2002b38:	90 10 00 18 	mov  %i0, %o0                                  
 2002b3c:	92 10 00 19 	mov  %i1, %o1                                  
 2002b40:	7f ff ff 3d 	call  2002834 <create_disk>                    
 2002b44:	96 07 bf fc 	add  %fp, -4, %o3                              
  if (sc != RTEMS_SUCCESSFUL) {                                       
 2002b48:	80 a2 20 00 	cmp  %o0, 0                                    
 2002b4c:	12 80 00 0e 	bne  2002b84 <rtems_disk_create_log+0xd8>      
 2002b50:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
  }                                                                   
                                                                      
  dd->phys_dev = physical_disk;                                       
  dd->start = begin_block;                                            
  dd->size = block_count;                                             
  dd->block_size = dd->media_block_size = physical_disk->block_size;  
 2002b54:	c4 06 a0 20 	ld  [ %i2 + 0x20 ], %g2                        
  dd->ioctl = physical_disk->ioctl;                                   
  dd->driver_data = physical_disk->driver_data;                       
                                                                      
  ++physical_disk->uses;                                              
 2002b58:	c6 06 a0 14 	ld  [ %i2 + 0x14 ], %g3                        
                                                                      
  dd->phys_dev = physical_disk;                                       
  dd->start = begin_block;                                            
  dd->size = block_count;                                             
  dd->block_size = dd->media_block_size = physical_disk->block_size;  
  dd->ioctl = physical_disk->ioctl;                                   
 2002b5c:	de 06 a0 28 	ld  [ %i2 + 0x28 ], %o7                        
  dd->driver_data = physical_disk->driver_data;                       
 2002b60:	c8 06 a0 2c 	ld  [ %i2 + 0x2c ], %g4                        
    return sc;                                                        
  }                                                                   
                                                                      
  dd->phys_dev = physical_disk;                                       
  dd->start = begin_block;                                            
  dd->size = block_count;                                             
 2002b64:	f8 38 60 18 	std  %i4, [ %g1 + 0x18 ]                       
  dd->block_size = dd->media_block_size = physical_disk->block_size;  
  dd->ioctl = physical_disk->ioctl;                                   
  dd->driver_data = physical_disk->driver_data;                       
                                                                      
  ++physical_disk->uses;                                              
 2002b68:	86 00 e0 01 	inc  %g3                                       
    disk_unlock();                                                    
                                                                      
    return sc;                                                        
  }                                                                   
                                                                      
  dd->phys_dev = physical_disk;                                       
 2002b6c:	f4 20 60 08 	st  %i2, [ %g1 + 8 ]                           
  dd->start = begin_block;                                            
  dd->size = block_count;                                             
  dd->block_size = dd->media_block_size = physical_disk->block_size;  
 2002b70:	c4 20 60 24 	st  %g2, [ %g1 + 0x24 ]                        
 2002b74:	c4 20 60 20 	st  %g2, [ %g1 + 0x20 ]                        
  dd->ioctl = physical_disk->ioctl;                                   
 2002b78:	de 20 60 28 	st  %o7, [ %g1 + 0x28 ]                        
  dd->driver_data = physical_disk->driver_data;                       
 2002b7c:	c8 20 60 2c 	st  %g4, [ %g1 + 0x2c ]                        
                                                                      
  ++physical_disk->uses;                                              
 2002b80:	c6 26 a0 14 	st  %g3, [ %i2 + 0x14 ]                        
                                                                      
  disk_unlock();                                                      
 2002b84:	7f ff ff 1d 	call  20027f8 <disk_unlock>                    
 2002b88:	d0 27 bf f4 	st  %o0, [ %fp + -12 ]                         
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 2002b8c:	10 bf ff ce 	b  2002ac4 <rtems_disk_create_log+0x18>        
 2002b90:	d0 07 bf f4 	ld  [ %fp + -12 ], %o0                         
                                                                      

020029f4 <rtems_disk_create_phys>: rtems_blkdev_bnum block_count, rtems_block_device_ioctl handler, void *driver_data, const char *name ) {
 20029f4:	9d e3 bf 98 	save  %sp, -104, %sp                           
  rtems_disk_device *dd = NULL;                                       
 20029f8:	c0 27 bf fc 	clr  [ %fp + -4 ]                              
  rtems_blkdev_bnum block_count,                                      
  rtems_block_device_ioctl handler,                                   
  void *driver_data,                                                  
  const char *name                                                    
)                                                                     
{                                                                     
 20029fc:	a0 10 00 18 	mov  %i0, %l0                                  
  rtems_disk_device *dd = NULL;                                       
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (handler == NULL) {                                              
 2002a00:	80 a7 20 00 	cmp  %i4, 0                                    
 2002a04:	02 80 00 21 	be  2002a88 <rtems_disk_create_phys+0x94>      
 2002a08:	b0 10 20 09 	mov  9, %i0                                    
    return RTEMS_INVALID_ADDRESS;                                     
  }                                                                   
                                                                      
  if (block_size == 0) {                                              
 2002a0c:	80 a6 a0 00 	cmp  %i2, 0                                    
 2002a10:	02 80 00 1e 	be  2002a88 <rtems_disk_create_phys+0x94>      
 2002a14:	b0 10 20 0a 	mov  0xa, %i0                                  
    return RTEMS_INVALID_NUMBER;                                      
  }                                                                   
                                                                      
  sc = disk_lock();                                                   
 2002a18:	7f ff ff 69 	call  20027bc <disk_lock>                      
 2002a1c:	01 00 00 00 	nop                                            
  if (sc != RTEMS_SUCCESSFUL) {                                       
 2002a20:	b0 92 20 00 	orcc  %o0, 0, %i0                              
 2002a24:	12 80 00 19 	bne  2002a88 <rtems_disk_create_phys+0x94>     <== NEVER TAKEN
 2002a28:	d4 07 a0 5c 	ld  [ %fp + 0x5c ], %o2                        
    return sc;                                                        
  }                                                                   
                                                                      
  sc = create_disk(dev, name, &dd);                                   
 2002a2c:	90 10 00 10 	mov  %l0, %o0                                  
 2002a30:	92 10 00 19 	mov  %i1, %o1                                  
 2002a34:	7f ff ff 80 	call  2002834 <create_disk>                    
 2002a38:	96 07 bf fc 	add  %fp, -4, %o3                              
  if (sc != RTEMS_SUCCESSFUL) {                                       
 2002a3c:	b0 92 20 00 	orcc  %o0, 0, %i0                              
 2002a40:	12 80 00 17 	bne  2002a9c <rtems_disk_create_phys+0xa8>     
 2002a44:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
  dd->size = block_count;                                             
  dd->block_size = dd->media_block_size = block_size;                 
  dd->ioctl = handler;                                                
  dd->driver_data = driver_data;                                      
                                                                      
  if ((*handler)(dd, RTEMS_BLKIO_CAPABILITIES, &dd->capabilities) < 0) {
 2002a48:	13 08 00 10 	sethi  %hi(0x20004000), %o1                    
 2002a4c:	90 10 00 01 	mov  %g1, %o0                                  
    disk_unlock();                                                    
                                                                      
    return sc;                                                        
  }                                                                   
                                                                      
  dd->phys_dev = dd;                                                  
 2002a50:	c2 20 60 08 	st  %g1, [ %g1 + 8 ]                           
  dd->start = 0;                                                      
 2002a54:	c0 20 60 18 	clr  [ %g1 + 0x18 ]                            
  dd->size = block_count;                                             
 2002a58:	f6 20 60 1c 	st  %i3, [ %g1 + 0x1c ]                        
  dd->block_size = dd->media_block_size = block_size;                 
 2002a5c:	f4 20 60 24 	st  %i2, [ %g1 + 0x24 ]                        
 2002a60:	f4 20 60 20 	st  %i2, [ %g1 + 0x20 ]                        
  dd->ioctl = handler;                                                
  dd->driver_data = driver_data;                                      
 2002a64:	f8 38 60 28 	std  %i4, [ %g1 + 0x28 ]                       
                                                                      
  if ((*handler)(dd, RTEMS_BLKIO_CAPABILITIES, &dd->capabilities) < 0) {
 2002a68:	92 12 62 08 	or  %o1, 0x208, %o1                            
 2002a6c:	9f c7 00 00 	call  %i4                                      
 2002a70:	94 00 60 0c 	add  %g1, 0xc, %o2                             
 2002a74:	80 a2 20 00 	cmp  %o0, 0                                    
 2002a78:	06 80 00 06 	bl  2002a90 <rtems_disk_create_phys+0x9c>      <== ALWAYS TAKEN
 2002a7c:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
    dd->capabilities = 0;                                             
  }                                                                   
                                                                      
  disk_unlock();                                                      
 2002a80:	7f ff ff 5e 	call  20027f8 <disk_unlock>                    <== NOT EXECUTED
 2002a84:	01 00 00 00 	nop                                            <== NOT EXECUTED
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 2002a88:	81 c7 e0 08 	ret                                            
 2002a8c:	81 e8 00 00 	restore                                        
                                                                      
  if ((*handler)(dd, RTEMS_BLKIO_CAPABILITIES, &dd->capabilities) < 0) {
    dd->capabilities = 0;                                             
  }                                                                   
                                                                      
  disk_unlock();                                                      
 2002a90:	7f ff ff 5a 	call  20027f8 <disk_unlock>                    
 2002a94:	c0 20 60 0c 	clr  [ %g1 + 0xc ]                             
 2002a98:	30 80 00 03 	b,a   2002aa4 <rtems_disk_create_phys+0xb0>    
    return sc;                                                        
  }                                                                   
                                                                      
  sc = create_disk(dev, name, &dd);                                   
  if (sc != RTEMS_SUCCESSFUL) {                                       
    disk_unlock();                                                    
 2002a9c:	7f ff ff 57 	call  20027f8 <disk_unlock>                    
 2002aa0:	01 00 00 00 	nop                                            
                                                                      
    return sc;                                                        
 2002aa4:	81 c7 e0 08 	ret                                            
 2002aa8:	81 e8 00 00 	restore                                        
                                                                      

02002b94 <rtems_disk_delete>: } } rtems_status_code rtems_disk_delete(dev_t dev) {
 2002b94:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_disk_device *dd = NULL;                                       
                                                                      
  sc = disk_lock();                                                   
 2002b98:	7f ff ff 09 	call  20027bc <disk_lock>                      
 2002b9c:	01 00 00 00 	nop                                            
  if (sc != RTEMS_SUCCESSFUL) {                                       
 2002ba0:	b6 92 20 00 	orcc  %o0, 0, %i3                              
 2002ba4:	02 80 00 04 	be  2002bb4 <rtems_disk_delete+0x20>           <== ALWAYS TAKEN
 2002ba8:	90 10 00 18 	mov  %i0, %o0                                  
  rtems_disk_cleanup(dd);                                             
                                                                      
  disk_unlock();                                                      
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 2002bac:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 2002bb0:	91 e8 00 1b 	restore  %g0, %i3, %o0                         <== NOT EXECUTED
  sc = disk_lock();                                                   
  if (sc != RTEMS_SUCCESSFUL) {                                       
    return sc;                                                        
  }                                                                   
                                                                      
  dd = get_disk_entry(dev, true);                                     
 2002bb4:	92 10 00 19 	mov  %i1, %o1                                  
 2002bb8:	7f ff fe c6 	call  20026d0 <get_disk_entry>                 
 2002bbc:	94 10 20 01 	mov  1, %o2                                    
  if (dd == NULL) {                                                   
 2002bc0:	82 92 20 00 	orcc  %o0, 0, %g1                              
 2002bc4:	02 80 00 5a 	be  2002d2c <rtems_disk_delete+0x198>          <== NEVER TAKEN
 2002bc8:	84 10 20 01 	mov  1, %g2                                    
}                                                                     
                                                                      
static void                                                           
rtems_disk_cleanup(rtems_disk_device *disk_to_remove)                 
{                                                                     
  rtems_disk_device *const physical_disk = disk_to_remove->phys_dev;  
 2002bcc:	f2 00 60 08 	ld  [ %g1 + 8 ], %i1                           
    disk_unlock();                                                    
                                                                      
    return RTEMS_INVALID_ID;                                          
  }                                                                   
                                                                      
  dd->deleted = true;                                                 
 2002bd0:	c4 28 60 30 	stb  %g2, [ %g1 + 0x30 ]                       
{                                                                     
  rtems_disk_device *const physical_disk = disk_to_remove->phys_dev;  
  rtems_device_major_number major = 0;                                
  rtems_device_minor_number minor = 0;                                
                                                                      
  if (physical_disk->deleted) {                                       
 2002bd4:	c4 0e 60 30 	ldub  [ %i1 + 0x30 ], %g2                      
 2002bd8:	80 a0 a0 00 	cmp  %g2, 0                                    
 2002bdc:	22 80 00 43 	be,a   2002ce8 <rtems_disk_delete+0x154>       
 2002be0:	c4 00 60 14 	ld  [ %g1 + 0x14 ], %g2                        
    dev_t dev = physical_disk->dev;                                   
    unsigned deleted_count = 0;                                       
                                                                      
    for (major = 0; major < disktab_size; ++major) {                  
 2002be4:	27 00 80 6a 	sethi  %hi(0x201a800), %l3                     
 2002be8:	c2 04 e0 90 	ld  [ %l3 + 0x90 ], %g1	! 201a890 <disktab_size>
  rtems_disk_device *const physical_disk = disk_to_remove->phys_dev;  
  rtems_device_major_number major = 0;                                
  rtems_device_minor_number minor = 0;                                
                                                                      
  if (physical_disk->deleted) {                                       
    dev_t dev = physical_disk->dev;                                   
 2002bec:	f8 1e 40 00 	ldd  [ %i1 ], %i4                              
    unsigned deleted_count = 0;                                       
                                                                      
    for (major = 0; major < disktab_size; ++major) {                  
 2002bf0:	80 a0 60 00 	cmp  %g1, 0                                    
 2002bf4:	02 80 00 34 	be  2002cc4 <rtems_disk_delete+0x130>          <== NEVER TAKEN
 2002bf8:	a4 10 20 00 	clr  %l2                                       
 2002bfc:	29 00 80 6a 	sethi  %hi(0x201a800), %l4                     
 2002c00:	a4 10 00 1b 	mov  %i3, %l2                                  
 2002c04:	a0 10 20 00 	clr  %l0                                       
 2002c08:	a8 15 20 94 	or  %l4, 0x94, %l4                             
 2002c0c:	a6 14 e0 90 	or  %l3, 0x90, %l3                             
          if (dd->uses == 0) {                                        
            ++deleted_count;                                          
            dtab->minor [minor] = NULL;                               
            free_disk_device(dd);                                     
          } else {                                                    
            dd->deleted = true;                                       
 2002c10:	a2 10 20 01 	mov  1, %l1                                    
  if (physical_disk->deleted) {                                       
    dev_t dev = physical_disk->dev;                                   
    unsigned deleted_count = 0;                                       
                                                                      
    for (major = 0; major < disktab_size; ++major) {                  
      rtems_disk_device_table *dtab = disktab + major;                
 2002c14:	f4 05 00 00 	ld  [ %l4 ], %i2                               
 2002c18:	83 2c 20 03 	sll  %l0, 3, %g1                               
 2002c1c:	b4 06 80 01 	add  %i2, %g1, %i2                             
                                                                      
      for (minor = 0; minor < dtab->size; ++minor) {                  
 2002c20:	de 06 a0 04 	ld  [ %i2 + 4 ], %o7                           
 2002c24:	80 a3 e0 00 	cmp  %o7, 0                                    
 2002c28:	22 80 00 23 	be,a   2002cb4 <rtems_disk_delete+0x120>       
 2002c2c:	c2 04 c0 00 	ld  [ %l3 ], %g1                               
 2002c30:	10 80 00 06 	b  2002c48 <rtems_disk_delete+0xb4>            
 2002c34:	b0 10 20 00 	clr  %i0                                       
 2002c38:	b0 06 20 01 	inc  %i0                                       
 2002c3c:	80 a6 00 0f 	cmp  %i0, %o7                                  
 2002c40:	3a 80 00 1d 	bcc,a   2002cb4 <rtems_disk_delete+0x120>      
 2002c44:	c2 04 c0 00 	ld  [ %l3 ], %g1                               
        rtems_disk_device *dd = dtab->minor [minor];                  
 2002c48:	c8 06 80 00 	ld  [ %i2 ], %g4                               
 2002c4c:	83 2e 20 02 	sll  %i0, 2, %g1                               
 2002c50:	d0 01 00 01 	ld  [ %g4 + %g1 ], %o0                         
                                                                      
        if (dd != NULL && dd->phys_dev->dev == dev && dd != physical_disk) {
 2002c54:	80 a2 20 00 	cmp  %o0, 0                                    
 2002c58:	02 bf ff f8 	be  2002c38 <rtems_disk_delete+0xa4>           
 2002c5c:	80 a6 40 08 	cmp  %i1, %o0                                  
 2002c60:	22 bf ff f7 	be,a   2002c3c <rtems_disk_delete+0xa8>        
 2002c64:	b0 06 20 01 	inc  %i0                                       
 2002c68:	c4 02 20 08 	ld  [ %o0 + 8 ], %g2                           
 2002c6c:	c4 18 80 00 	ldd  [ %g2 ], %g2                              
 2002c70:	84 1f 00 02 	xor  %i4, %g2, %g2                             
 2002c74:	86 1f 40 03 	xor  %i5, %g3, %g3                             
 2002c78:	80 90 80 03 	orcc  %g2, %g3, %g0                            
 2002c7c:	32 bf ff f0 	bne,a   2002c3c <rtems_disk_delete+0xa8>       <== NEVER TAKEN
 2002c80:	b0 06 20 01 	inc  %i0                                       <== NOT EXECUTED
          if (dd->uses == 0) {                                        
 2002c84:	c4 02 20 14 	ld  [ %o0 + 0x14 ], %g2                        
 2002c88:	80 a0 a0 00 	cmp  %g2, 0                                    
 2002c8c:	32 bf ff eb 	bne,a   2002c38 <rtems_disk_delete+0xa4>       
 2002c90:	e2 2a 20 30 	stb  %l1, [ %o0 + 0x30 ]                       
            ++deleted_count;                                          
            dtab->minor [minor] = NULL;                               
            free_disk_device(dd);                                     
 2002c94:	7f ff fe b4 	call  2002764 <free_disk_device>               
 2002c98:	c0 21 00 01 	clr  [ %g4 + %g1 ]                             
 2002c9c:	de 06 a0 04 	ld  [ %i2 + 4 ], %o7                           
    unsigned deleted_count = 0;                                       
                                                                      
    for (major = 0; major < disktab_size; ++major) {                  
      rtems_disk_device_table *dtab = disktab + major;                
                                                                      
      for (minor = 0; minor < dtab->size; ++minor) {                  
 2002ca0:	b0 06 20 01 	inc  %i0                                       
 2002ca4:	80 a6 00 0f 	cmp  %i0, %o7                                  
 2002ca8:	0a bf ff e8 	bcs  2002c48 <rtems_disk_delete+0xb4>          <== ALWAYS TAKEN
 2002cac:	a4 04 a0 01 	inc  %l2                                       
                                                                      
  if (physical_disk->deleted) {                                       
    dev_t dev = physical_disk->dev;                                   
    unsigned deleted_count = 0;                                       
                                                                      
    for (major = 0; major < disktab_size; ++major) {                  
 2002cb0:	c2 04 c0 00 	ld  [ %l3 ], %g1                               <== NOT EXECUTED
 2002cb4:	a0 04 20 01 	inc  %l0                                       
 2002cb8:	80 a4 00 01 	cmp  %l0, %g1                                  
 2002cbc:	2a bf ff d7 	bcs,a   2002c18 <rtems_disk_delete+0x84>       
 2002cc0:	f4 05 00 00 	ld  [ %l4 ], %i2                               
          }                                                           
        }                                                             
      }                                                               
    }                                                                 
                                                                      
    physical_disk->uses -= deleted_count;                             
 2002cc4:	c2 06 60 14 	ld  [ %i1 + 0x14 ], %g1                        
 2002cc8:	a4 20 40 12 	sub  %g1, %l2, %l2                             
    if (physical_disk->uses == 0) {                                   
 2002ccc:	80 a4 a0 00 	cmp  %l2, 0                                    
 2002cd0:	02 80 00 1b 	be  2002d3c <rtems_disk_delete+0x1a8>          
 2002cd4:	e4 26 60 14 	st  %l2, [ %i1 + 0x14 ]                        
  }                                                                   
                                                                      
  dd->deleted = true;                                                 
  rtems_disk_cleanup(dd);                                             
                                                                      
  disk_unlock();                                                      
 2002cd8:	7f ff fe c8 	call  20027f8 <disk_unlock>                    
 2002cdc:	b0 10 00 1b 	mov  %i3, %i0                                  
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 2002ce0:	81 c7 e0 08 	ret                                            
 2002ce4:	81 e8 00 00 	restore                                        
      rtems_filesystem_split_dev_t(physical_disk->dev, major, minor); 
      disktab [major].minor [minor] = NULL;                           
      free_disk_device(physical_disk);                                
    }                                                                 
  } else {                                                            
    if (disk_to_remove->uses == 0) {                                  
 2002ce8:	80 a0 a0 00 	cmp  %g2, 0                                    
 2002cec:	12 bf ff fb 	bne  2002cd8 <rtems_disk_delete+0x144>         <== NEVER TAKEN
 2002cf0:	07 00 80 6a 	sethi  %hi(0x201a800), %g3                     
      --physical_disk->uses;                                          
      rtems_filesystem_split_dev_t(disk_to_remove->dev, major, minor);
 2002cf4:	c4 00 40 00 	ld  [ %g1 ], %g2                               
      disktab [major].minor [minor] = NULL;                           
 2002cf8:	c8 00 e0 94 	ld  [ %g3 + 0x94 ], %g4                        
      free_disk_device(physical_disk);                                
    }                                                                 
  } else {                                                            
    if (disk_to_remove->uses == 0) {                                  
      --physical_disk->uses;                                          
      rtems_filesystem_split_dev_t(disk_to_remove->dev, major, minor);
 2002cfc:	c2 00 60 04 	ld  [ %g1 + 4 ], %g1                           
      disktab [major].minor [minor] = NULL;                           
      free_disk_device(physical_disk);                                
    }                                                                 
  } else {                                                            
    if (disk_to_remove->uses == 0) {                                  
      --physical_disk->uses;                                          
 2002d00:	c6 06 60 14 	ld  [ %i1 + 0x14 ], %g3                        
      rtems_filesystem_split_dev_t(disk_to_remove->dev, major, minor);
      disktab [major].minor [minor] = NULL;                           
 2002d04:	85 28 a0 03 	sll  %g2, 3, %g2                               
 2002d08:	c4 01 00 02 	ld  [ %g4 + %g2 ], %g2                         
      disktab [major].minor [minor] = NULL;                           
      free_disk_device(physical_disk);                                
    }                                                                 
  } else {                                                            
    if (disk_to_remove->uses == 0) {                                  
      --physical_disk->uses;                                          
 2002d0c:	86 00 ff ff 	add  %g3, -1, %g3                              
      rtems_filesystem_split_dev_t(disk_to_remove->dev, major, minor);
      disktab [major].minor [minor] = NULL;                           
 2002d10:	83 28 60 02 	sll  %g1, 2, %g1                               
      disktab [major].minor [minor] = NULL;                           
      free_disk_device(physical_disk);                                
    }                                                                 
  } else {                                                            
    if (disk_to_remove->uses == 0) {                                  
      --physical_disk->uses;                                          
 2002d14:	c6 26 60 14 	st  %g3, [ %i1 + 0x14 ]                        
      rtems_filesystem_split_dev_t(disk_to_remove->dev, major, minor);
      disktab [major].minor [minor] = NULL;                           
      free_disk_device(disk_to_remove);                               
 2002d18:	7f ff fe 93 	call  2002764 <free_disk_device>               
 2002d1c:	c0 20 80 01 	clr  [ %g2 + %g1 ]                             
  }                                                                   
                                                                      
  dd->deleted = true;                                                 
  rtems_disk_cleanup(dd);                                             
                                                                      
  disk_unlock();                                                      
 2002d20:	7f ff fe b6 	call  20027f8 <disk_unlock>                    
 2002d24:	b0 10 00 1b 	mov  %i3, %i0                                  
 2002d28:	30 bf ff ee 	b,a   2002ce0 <rtems_disk_delete+0x14c>        
    return sc;                                                        
  }                                                                   
                                                                      
  dd = get_disk_entry(dev, true);                                     
  if (dd == NULL) {                                                   
    disk_unlock();                                                    
 2002d2c:	7f ff fe b3 	call  20027f8 <disk_unlock>                    <== NOT EXECUTED
 2002d30:	b6 10 20 04 	mov  4, %i3                                    <== NOT EXECUTED
  rtems_disk_cleanup(dd);                                             
                                                                      
  disk_unlock();                                                      
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 2002d34:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 2002d38:	91 e8 00 1b 	restore  %g0, %i3, %o0                         <== NOT EXECUTED
      }                                                               
    }                                                                 
                                                                      
    physical_disk->uses -= deleted_count;                             
    if (physical_disk->uses == 0) {                                   
      rtems_filesystem_split_dev_t(physical_disk->dev, major, minor); 
 2002d3c:	c4 06 40 00 	ld  [ %i1 ], %g2                               
      disktab [major].minor [minor] = NULL;                           
 2002d40:	03 00 80 6a 	sethi  %hi(0x201a800), %g1                     
 2002d44:	c6 00 60 94 	ld  [ %g1 + 0x94 ], %g3	! 201a894 <disktab>    
      }                                                               
    }                                                                 
                                                                      
    physical_disk->uses -= deleted_count;                             
    if (physical_disk->uses == 0) {                                   
      rtems_filesystem_split_dev_t(physical_disk->dev, major, minor); 
 2002d48:	c2 06 60 04 	ld  [ %i1 + 4 ], %g1                           
      disktab [major].minor [minor] = NULL;                           
 2002d4c:	85 28 a0 03 	sll  %g2, 3, %g2                               
 2002d50:	c4 00 c0 02 	ld  [ %g3 + %g2 ], %g2                         
 2002d54:	83 28 60 02 	sll  %g1, 2, %g1                               
      free_disk_device(physical_disk);                                
 2002d58:	90 10 00 19 	mov  %i1, %o0                                  
 2002d5c:	7f ff fe 82 	call  2002764 <free_disk_device>               
 2002d60:	c0 20 80 01 	clr  [ %g2 + %g1 ]                             
  }                                                                   
                                                                      
  dd->deleted = true;                                                 
  rtems_disk_cleanup(dd);                                             
                                                                      
  disk_unlock();                                                      
 2002d64:	7f ff fe a5 	call  20027f8 <disk_unlock>                    
 2002d68:	b0 10 00 1b 	mov  %i3, %i0                                  
 2002d6c:	30 bf ff dd 	b,a   2002ce0 <rtems_disk_delete+0x14c>        
                                                                      

02002ffc <rtems_disk_io_done>: return RTEMS_SUCCESSFUL; } rtems_status_code rtems_disk_io_done(void) {
 2002ffc:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_device_major_number major = 0;                                
  rtems_device_minor_number minor = 0;                                
                                                                      
  for (major = 0; major < disktab_size; ++major) {                    
 2003000:	39 00 80 6a 	sethi  %hi(0x201a800), %i4                     
 2003004:	c2 07 20 90 	ld  [ %i4 + 0x90 ], %g1	! 201a890 <disktab_size>
 2003008:	3b 00 80 6a 	sethi  %hi(0x201a800), %i5                     
 200300c:	80 a0 60 00 	cmp  %g1, 0                                    
 2003010:	02 80 00 1f 	be  200308c <rtems_disk_io_done+0x90>          <== NEVER TAKEN
 2003014:	f6 07 60 94 	ld  [ %i5 + 0x94 ], %i3                        
 2003018:	b2 10 20 00 	clr  %i1                                       
 200301c:	b0 17 20 90 	or  %i4, 0x90, %i0                             
    rtems_disk_device_table *dtab = disktab + major;                  
 2003020:	83 2e 60 03 	sll  %i1, 3, %g1                               
 2003024:	b4 06 c0 01 	add  %i3, %g1, %i2                             
                                                                      
    for (minor = 0; minor < dtab->size; ++minor) {                    
 2003028:	c4 06 a0 04 	ld  [ %i2 + 4 ], %g2                           
 200302c:	80 a0 a0 00 	cmp  %g2, 0                                    
 2003030:	02 80 00 10 	be  2003070 <rtems_disk_io_done+0x74>          
 2003034:	c6 06 c0 01 	ld  [ %i3 + %g1 ], %g3                         
 2003038:	b6 10 20 00 	clr  %i3                                       
      rtems_disk_device *dd = dtab->minor [minor];                    
 200303c:	83 2e e0 02 	sll  %i3, 2, %g1                               
 2003040:	c2 00 c0 01 	ld  [ %g3 + %g1 ], %g1                         
                                                                      
      if (dd != NULL) {                                               
 2003044:	90 90 60 00 	orcc  %g1, 0, %o0                              
 2003048:	02 80 00 06 	be  2003060 <rtems_disk_io_done+0x64>          <== ALWAYS TAKEN
 200304c:	b6 06 e0 01 	inc  %i3                                       
        free_disk_device(dd);                                         
 2003050:	7f ff fd c5 	call  2002764 <free_disk_device>               <== NOT EXECUTED
 2003054:	01 00 00 00 	nop                                            <== NOT EXECUTED
 2003058:	c4 06 a0 04 	ld  [ %i2 + 4 ], %g2                           <== NOT EXECUTED
 200305c:	c6 06 80 00 	ld  [ %i2 ], %g3                               <== NOT EXECUTED
  rtems_device_minor_number minor = 0;                                
                                                                      
  for (major = 0; major < disktab_size; ++major) {                    
    rtems_disk_device_table *dtab = disktab + major;                  
                                                                      
    for (minor = 0; minor < dtab->size; ++minor) {                    
 2003060:	80 a0 80 1b 	cmp  %g2, %i3                                  
 2003064:	18 bf ff f7 	bgu  2003040 <rtems_disk_io_done+0x44>         
 2003068:	83 2e e0 02 	sll  %i3, 2, %g1                               
 200306c:	f6 07 60 94 	ld  [ %i5 + 0x94 ], %i3                        
                                                                      
      if (dd != NULL) {                                               
        free_disk_device(dd);                                         
      }                                                               
    }                                                                 
    free(dtab->minor);                                                
 2003070:	40 00 02 74 	call  2003a40 <free>                           
 2003074:	90 10 00 03 	mov  %g3, %o0                                  
rtems_disk_io_done(void)                                              
{                                                                     
  rtems_device_major_number major = 0;                                
  rtems_device_minor_number minor = 0;                                
                                                                      
  for (major = 0; major < disktab_size; ++major) {                    
 2003078:	c2 06 00 00 	ld  [ %i0 ], %g1                               
 200307c:	b2 06 60 01 	inc  %i1                                       
 2003080:	80 a0 40 19 	cmp  %g1, %i1                                  
 2003084:	18 bf ff e8 	bgu  2003024 <rtems_disk_io_done+0x28>         
 2003088:	83 2e 60 03 	sll  %i1, 3, %g1                               
        free_disk_device(dd);                                         
      }                                                               
    }                                                                 
    free(dtab->minor);                                                
  }                                                                   
  free(disktab);                                                      
 200308c:	40 00 02 6d 	call  2003a40 <free>                           
 2003090:	90 10 00 1b 	mov  %i3, %o0                                  
                                                                      
  rtems_semaphore_delete(diskdevs_mutex);                             
 2003094:	37 00 80 6a 	sethi  %hi(0x201a800), %i3                     
 2003098:	d0 06 e0 8c 	ld  [ %i3 + 0x8c ], %o0	! 201a88c <diskdevs_mutex>
 200309c:	40 00 11 3a 	call  2007584 <rtems_semaphore_delete>         
 20030a0:	b0 10 20 00 	clr  %i0                                       
                                                                      
  diskdevs_mutex = RTEMS_ID_NONE;                                     
 20030a4:	c0 26 e0 8c 	clr  [ %i3 + 0x8c ]                            
  disktab = NULL;                                                     
 20030a8:	c0 27 60 94 	clr  [ %i5 + 0x94 ]                            
  disktab_size = 0;                                                   
 20030ac:	c0 27 20 90 	clr  [ %i4 + 0x90 ]                            
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 20030b0:	81 c7 e0 08 	ret                                            
 20030b4:	81 e8 00 00 	restore                                        
                                                                      

02002f50 <rtems_disk_io_initialize>: } } rtems_status_code rtems_disk_io_initialize(void) {
 2002f50:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_device_major_number size = DISKTAB_INITIAL_SIZE;              
                                                                      
  if (disktab_size > 0) {                                             
 2002f54:	3b 00 80 6a 	sethi  %hi(0x201a800), %i5                     
 2002f58:	c2 07 60 90 	ld  [ %i5 + 0x90 ], %g1	! 201a890 <disktab_size>
 2002f5c:	80 a0 60 00 	cmp  %g1, 0                                    
 2002f60:	12 80 00 19 	bne  2002fc4 <rtems_disk_io_initialize+0x74>   <== NEVER TAKEN
 2002f64:	b0 10 20 00 	clr  %i0                                       
    return RTEMS_SUCCESSFUL;                                          
  }                                                                   
                                                                      
  disktab = calloc(size, sizeof(rtems_disk_device_table));            
 2002f68:	90 10 20 08 	mov  8, %o0                                    
 2002f6c:	92 10 20 08 	mov  8, %o1                                    
 2002f70:	40 00 02 41 	call  2003874 <calloc>                         
 2002f74:	39 00 80 6a 	sethi  %hi(0x201a800), %i4                     
 2002f78:	d0 27 20 94 	st  %o0, [ %i4 + 0x94 ]	! 201a894 <disktab>    
  if (disktab == NULL) {                                              
 2002f7c:	80 a2 20 00 	cmp  %o0, 0                                    
 2002f80:	02 80 00 11 	be  2002fc4 <rtems_disk_io_initialize+0x74>    <== NEVER TAKEN
 2002f84:	b0 10 20 1a 	mov  0x1a, %i0                                 
    return RTEMS_NO_MEMORY;                                           
  }                                                                   
                                                                      
  diskdevs_protected = false;                                         
 2002f88:	03 00 80 6a 	sethi  %hi(0x201a800), %g1                     
  sc = rtems_semaphore_create(                                        
 2002f8c:	11 11 11 11 	sethi  %hi(0x44444400), %o0                    
  disktab = calloc(size, sizeof(rtems_disk_device_table));            
  if (disktab == NULL) {                                              
    return RTEMS_NO_MEMORY;                                           
  }                                                                   
                                                                      
  diskdevs_protected = false;                                         
 2002f90:	c0 28 60 88 	clrb  [ %g1 + 0x88 ]                           
  sc = rtems_semaphore_create(                                        
 2002f94:	90 12 21 56 	or  %o0, 0x156, %o0                            
 2002f98:	92 10 20 01 	mov  1, %o1                                    
 2002f9c:	94 10 20 10 	mov  0x10, %o2                                 
 2002fa0:	96 10 20 00 	clr  %o3                                       
 2002fa4:	37 00 80 6a 	sethi  %hi(0x201a800), %i3                     
 2002fa8:	40 00 11 07 	call  20073c4 <rtems_semaphore_create>         
 2002fac:	98 16 e0 8c 	or  %i3, 0x8c, %o4	! 201a88c <diskdevs_mutex>  
    RTEMS_FIFO | RTEMS_BINARY_SEMAPHORE | RTEMS_NO_INHERIT_PRIORITY   
      | RTEMS_NO_PRIORITY_CEILING | RTEMS_LOCAL,                      
    0,                                                                
    &diskdevs_mutex                                                   
  );                                                                  
  if (sc != RTEMS_SUCCESSFUL) {                                       
 2002fb0:	80 a2 20 00 	cmp  %o0, 0                                    
 2002fb4:	02 80 00 06 	be  2002fcc <rtems_disk_io_initialize+0x7c>    <== ALWAYS TAKEN
 2002fb8:	01 00 00 00 	nop                                            
  }                                                                   
                                                                      
  sc = rtems_bdbuf_init();                                            
  if (sc != RTEMS_SUCCESSFUL) {                                       
    rtems_semaphore_delete(diskdevs_mutex);                           
    free(disktab);                                                    
 2002fbc:	40 00 02 a1 	call  2003a40 <free>                           <== NOT EXECUTED
 2002fc0:	d0 07 20 94 	ld  [ %i4 + 0x94 ], %o0                        <== NOT EXECUTED
                                                                      
    return RTEMS_UNSATISFIED;                                         
 2002fc4:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 2002fc8:	81 e8 00 00 	restore                                        <== NOT EXECUTED
    free(disktab);                                                    
                                                                      
    return RTEMS_NO_MEMORY;                                           
  }                                                                   
                                                                      
  sc = rtems_bdbuf_init();                                            
 2002fcc:	40 00 29 39 	call  200d4b0 <rtems_bdbuf_init>               
 2002fd0:	01 00 00 00 	nop                                            
  if (sc != RTEMS_SUCCESSFUL) {                                       
 2002fd4:	80 a2 20 00 	cmp  %o0, 0                                    
 2002fd8:	12 80 00 05 	bne  2002fec <rtems_disk_io_initialize+0x9c>   <== NEVER TAKEN
 2002fdc:	82 10 20 08 	mov  8, %g1                                    
    free(disktab);                                                    
                                                                      
    return RTEMS_UNSATISFIED;                                         
  }                                                                   
                                                                      
  disktab_size = size;                                                
 2002fe0:	c2 27 60 90 	st  %g1, [ %i5 + 0x90 ]                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 2002fe4:	81 c7 e0 08 	ret                                            
 2002fe8:	91 e8 20 00 	restore  %g0, 0, %o0                           
    return RTEMS_NO_MEMORY;                                           
  }                                                                   
                                                                      
  sc = rtems_bdbuf_init();                                            
  if (sc != RTEMS_SUCCESSFUL) {                                       
    rtems_semaphore_delete(diskdevs_mutex);                           
 2002fec:	d0 06 e0 8c 	ld  [ %i3 + 0x8c ], %o0                        <== NOT EXECUTED
 2002ff0:	40 00 11 65 	call  2007584 <rtems_semaphore_delete>         <== NOT EXECUTED
 2002ff4:	b0 10 20 0d 	mov  0xd, %i0                                  <== NOT EXECUTED
 2002ff8:	30 bf ff f1 	b,a   2002fbc <rtems_disk_io_initialize+0x6c>  <== NOT EXECUTED
                                                                      

02002e40 <rtems_disk_next>: rtems_disk_device * rtems_disk_next(dev_t dev) {
 2002e40:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_disk_device_table *dtab = NULL;                               
  rtems_device_major_number major = 0;                                
  rtems_device_minor_number minor = 0;                                
                                                                      
  if (dev != (dev_t) -1) {                                            
 2002e44:	80 a6 3f ff 	cmp  %i0, -1                                   
 2002e48:	02 80 00 39 	be  2002f2c <rtems_disk_next+0xec>             
 2002e4c:	80 a6 7f ff 	cmp  %i1, -1                                   
    rtems_filesystem_split_dev_t(dev, major, minor);                  
                                                                      
    /* If minor wraps around */                                       
    if ((minor + 1) < minor) {                                        
 2002e50:	ba 06 60 01 	add  %i1, 1, %i5                               
 2002e54:	80 a7 40 19 	cmp  %i5, %i1                                  
 2002e58:	0a 80 00 2a 	bcs  2002f00 <rtems_disk_next+0xc0>            <== NEVER TAKEN
 2002e5c:	b8 10 00 18 	mov  %i0, %i4                                  
    } else {                                                          
      ++minor;                                                        
    }                                                                 
  }                                                                   
                                                                      
  sc = disk_lock();                                                   
 2002e60:	7f ff fe 57 	call  20027bc <disk_lock>                      
 2002e64:	b0 10 20 00 	clr  %i0                                       
  if (sc != RTEMS_SUCCESSFUL) {                                       
 2002e68:	80 a2 20 00 	cmp  %o0, 0                                    
 2002e6c:	12 80 00 1b 	bne  2002ed8 <rtems_disk_next+0x98>            <== NEVER TAKEN
 2002e70:	03 00 80 6a 	sethi  %hi(0x201a800), %g1                     
    return NULL;                                                      
  }                                                                   
                                                                      
  if (major >= disktab_size) {                                        
 2002e74:	c8 00 60 90 	ld  [ %g1 + 0x90 ], %g4	! 201a890 <disktab_size>
 2002e78:	80 a7 00 04 	cmp  %i4, %g4                                  
 2002e7c:	1a 80 00 31 	bcc  2002f40 <rtems_disk_next+0x100>           <== NEVER TAKEN
 2002e80:	03 00 80 6a 	sethi  %hi(0x201a800), %g1                     
    disk_unlock();                                                    
                                                                      
    return NULL;                                                      
  }                                                                   
                                                                      
  dtab = disktab + major;                                             
 2002e84:	c6 00 60 94 	ld  [ %g1 + 0x94 ], %g3	! 201a894 <disktab>    
 2002e88:	b1 2f 20 03 	sll  %i4, 3, %i0                               
 2002e8c:	c2 00 c0 18 	ld  [ %g3 + %i0 ], %g1                         
 2002e90:	b0 00 c0 18 	add  %g3, %i0, %i0                             
  while (true) {                                                      
    if (dtab->minor == NULL || minor >= dtab->size) {                 
 2002e94:	80 a0 60 00 	cmp  %g1, 0                                    
 2002e98:	02 80 00 12 	be  2002ee0 <rtems_disk_next+0xa0>             
 2002e9c:	b7 2f 60 02 	sll  %i5, 2, %i3                               
 2002ea0:	c4 06 20 04 	ld  [ %i0 + 4 ], %g2                           
 2002ea4:	80 a7 40 02 	cmp  %i5, %g2                                  
 2002ea8:	3a 80 00 0f 	bcc,a   2002ee4 <rtems_disk_next+0xa4>         
 2002eac:	b8 07 20 01 	inc  %i4                                       
         disk_unlock();                                               
                                                                      
         return NULL;                                                 
       }                                                              
       dtab = disktab + major;                                        
    } else if (dtab->minor [minor] == NULL) {                         
 2002eb0:	c4 00 40 1b 	ld  [ %g1 + %i3 ], %g2                         
 2002eb4:	80 a0 a0 00 	cmp  %g2, 0                                    
 2002eb8:	02 bf ff f7 	be  2002e94 <rtems_disk_next+0x54>             
 2002ebc:	ba 07 60 01 	inc  %i5                                       
      ++minor;                                                        
    } else {                                                          
      ++dtab->minor [minor]->uses;                                    
 2002ec0:	c2 00 a0 14 	ld  [ %g2 + 0x14 ], %g1                        
 2002ec4:	82 00 60 01 	inc  %g1                                       
      disk_unlock();                                                  
 2002ec8:	7f ff fe 4c 	call  20027f8 <disk_unlock>                    
 2002ecc:	c2 20 a0 14 	st  %g1, [ %g2 + 0x14 ]                        
                                                                      
      return dtab->minor [minor];                                     
 2002ed0:	c2 06 00 00 	ld  [ %i0 ], %g1                               
 2002ed4:	f0 00 40 1b 	ld  [ %g1 + %i3 ], %i0                         
    }                                                                 
  }                                                                   
}                                                                     
 2002ed8:	81 c7 e0 08 	ret                                            
 2002edc:	81 e8 00 00 	restore                                        
                                                                      
  dtab = disktab + major;                                             
  while (true) {                                                      
    if (dtab->minor == NULL || minor >= dtab->size) {                 
       minor = 0;                                                     
       ++major;                                                       
 2002ee0:	b8 07 20 01 	inc  %i4                                       
       if (major >= disktab_size) {                                   
 2002ee4:	80 a1 00 1c 	cmp  %g4, %i4                                  
 2002ee8:	08 80 00 0d 	bleu  2002f1c <rtems_disk_next+0xdc>           
 2002eec:	83 2f 20 03 	sll  %i4, 3, %g1                               
  }                                                                   
                                                                      
  dtab = disktab + major;                                             
  while (true) {                                                      
    if (dtab->minor == NULL || minor >= dtab->size) {                 
       minor = 0;                                                     
 2002ef0:	ba 10 20 00 	clr  %i5                                       
       if (major >= disktab_size) {                                   
         disk_unlock();                                               
                                                                      
         return NULL;                                                 
       }                                                              
       dtab = disktab + major;                                        
 2002ef4:	b0 00 c0 01 	add  %g3, %g1, %i0                             
 2002ef8:	10 bf ff e7 	b  2002e94 <rtems_disk_next+0x54>              
 2002efc:	c2 00 c0 01 	ld  [ %g3 + %g1 ], %g1                         
    rtems_filesystem_split_dev_t(dev, major, minor);                  
                                                                      
    /* If minor wraps around */                                       
    if ((minor + 1) < minor) {                                        
      /* If major wraps around */                                     
      if ((major + 1) < major) {                                      
 2002f00:	82 06 20 01 	add  %i0, 1, %g1                               <== NOT EXECUTED
 2002f04:	80 a0 40 1c 	cmp  %g1, %i4                                  <== NOT EXECUTED
 2002f08:	0a bf ff f4 	bcs  2002ed8 <rtems_disk_next+0x98>            <== NOT EXECUTED
 2002f0c:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
 2002f10:	b8 10 00 01 	mov  %g1, %i4                                  <== NOT EXECUTED
        return NULL;                                                  
      }                                                               
      ++major;                                                        
      minor = 0;                                                      
 2002f14:	10 bf ff d3 	b  2002e60 <rtems_disk_next+0x20>              <== NOT EXECUTED
 2002f18:	ba 10 20 00 	clr  %i5                                       <== NOT EXECUTED
  while (true) {                                                      
    if (dtab->minor == NULL || minor >= dtab->size) {                 
       minor = 0;                                                     
       ++major;                                                       
       if (major >= disktab_size) {                                   
         disk_unlock();                                               
 2002f1c:	7f ff fe 37 	call  20027f8 <disk_unlock>                    
 2002f20:	b0 10 20 00 	clr  %i0                                       
                                                                      
         return NULL;                                                 
 2002f24:	81 c7 e0 08 	ret                                            
 2002f28:	81 e8 00 00 	restore                                        
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_disk_device_table *dtab = NULL;                               
  rtems_device_major_number major = 0;                                
  rtems_device_minor_number minor = 0;                                
                                                                      
  if (dev != (dev_t) -1) {                                            
 2002f2c:	32 bf ff ca 	bne,a   2002e54 <rtems_disk_next+0x14>         <== NEVER TAKEN
 2002f30:	ba 06 60 01 	add  %i1, 1, %i5                               <== NOT EXECUTED
rtems_disk_next(dev_t dev)                                            
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_disk_device_table *dtab = NULL;                               
  rtems_device_major_number major = 0;                                
  rtems_device_minor_number minor = 0;                                
 2002f34:	ba 10 20 00 	clr  %i5                                       
rtems_disk_device *                                                   
rtems_disk_next(dev_t dev)                                            
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_disk_device_table *dtab = NULL;                               
  rtems_device_major_number major = 0;                                
 2002f38:	10 bf ff ca 	b  2002e60 <rtems_disk_next+0x20>              
 2002f3c:	b8 10 20 00 	clr  %i4                                       
  if (sc != RTEMS_SUCCESSFUL) {                                       
    return NULL;                                                      
  }                                                                   
                                                                      
  if (major >= disktab_size) {                                        
    disk_unlock();                                                    
 2002f40:	7f ff fe 2e 	call  20027f8 <disk_unlock>                    <== NOT EXECUTED
 2002f44:	01 00 00 00 	nop                                            <== NOT EXECUTED
                                                                      
    return NULL;                                                      
 2002f48:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 2002f4c:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

02002d70 <rtems_disk_obtain>: return RTEMS_SUCCESSFUL; } rtems_disk_device * rtems_disk_obtain(dev_t dev) {
 2002d70:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_disk_device *dd = NULL;                                       
  rtems_interrupt_level level;                                        
                                                                      
  rtems_interrupt_disable(level);                                     
 2002d74:	7f ff fd e6 	call  200250c <sparc_disable_interrupts>       
 2002d78:	b8 10 00 18 	mov  %i0, %i4                                  
 2002d7c:	b6 10 00 08 	mov  %o0, %i3                                  
  if (!diskdevs_protected) {                                          
 2002d80:	03 00 80 6a 	sethi  %hi(0x201a800), %g1                     
 2002d84:	c2 08 60 88 	ldub  [ %g1 + 0x88 ], %g1	! 201a888 <diskdevs_protected>
 2002d88:	80 a0 60 00 	cmp  %g1, 0                                    
 2002d8c:	22 80 00 10 	be,a   2002dcc <rtems_disk_obtain+0x5c>        <== ALWAYS TAKEN
 2002d90:	90 10 00 18 	mov  %i0, %o0                                  
    /* Frequent and quickest case */                                  
    dd = get_disk_entry(dev, false);                                  
    rtems_interrupt_enable(level);                                    
  } else {                                                            
    rtems_interrupt_enable(level);                                    
 2002d94:	7f ff fd e2 	call  200251c <sparc_enable_interrupts>        <== NOT EXECUTED
 2002d98:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
                                                                      
    sc = disk_lock();                                                 
 2002d9c:	7f ff fe 88 	call  20027bc <disk_lock>                      <== NOT EXECUTED
 2002da0:	01 00 00 00 	nop                                            <== NOT EXECUTED
    if (sc == RTEMS_SUCCESSFUL) {                                     
 2002da4:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
 2002da8:	12 80 00 07 	bne  2002dc4 <rtems_disk_obtain+0x54>          <== NOT EXECUTED
 2002dac:	90 10 00 1c 	mov  %i4, %o0                                  <== NOT EXECUTED
      dd = get_disk_entry(dev, false);                                
 2002db0:	92 10 00 19 	mov  %i1, %o1                                  <== NOT EXECUTED
 2002db4:	7f ff fe 47 	call  20026d0 <get_disk_entry>                 <== NOT EXECUTED
 2002db8:	94 10 20 00 	clr  %o2                                       <== NOT EXECUTED
      disk_unlock();                                                  
 2002dbc:	7f ff fe 8f 	call  20027f8 <disk_unlock>                    <== NOT EXECUTED
 2002dc0:	b0 10 00 08 	mov  %o0, %i0                                  <== NOT EXECUTED
    }                                                                 
  }                                                                   
                                                                      
  return dd;                                                          
}                                                                     
 2002dc4:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 2002dc8:	81 e8 00 00 	restore                                        <== NOT EXECUTED
  rtems_interrupt_level level;                                        
                                                                      
  rtems_interrupt_disable(level);                                     
  if (!diskdevs_protected) {                                          
    /* Frequent and quickest case */                                  
    dd = get_disk_entry(dev, false);                                  
 2002dcc:	92 10 00 19 	mov  %i1, %o1                                  
 2002dd0:	7f ff fe 40 	call  20026d0 <get_disk_entry>                 
 2002dd4:	94 10 20 00 	clr  %o2                                       
 2002dd8:	b0 10 00 08 	mov  %o0, %i0                                  
    rtems_interrupt_enable(level);                                    
 2002ddc:	7f ff fd d0 	call  200251c <sparc_enable_interrupts>        
 2002de0:	90 10 00 1b 	mov  %i3, %o0                                  
 2002de4:	81 c7 e0 08 	ret                                            
 2002de8:	81 e8 00 00 	restore                                        
                                                                      

0200c2b8 <rtems_filesystem_get_mount_handler>: rtems_filesystem_fsmount_me_t rtems_filesystem_get_mount_handler( const char *type ) {
 200c2b8:	9d e3 bf 98 	save  %sp, -104, %sp                           
  find_arg fa = {                                                     
 200c2bc:	f0 27 bf f8 	st  %i0, [ %fp + -8 ]                          
 200c2c0:	c0 27 bf fc 	clr  [ %fp + -4 ]                              
                                                                      
rtems_filesystem_fsmount_me_t                                         
rtems_filesystem_get_mount_handler(                                   
  const char *type                                                    
)                                                                     
{                                                                     
 200c2c4:	82 10 00 18 	mov  %i0, %g1                                  
  find_arg fa = {                                                     
    .type = type,                                                     
    .mount_h = NULL                                                   
  };                                                                  
                                                                      
  if ( type != NULL ) {                                               
 200c2c8:	80 a0 60 00 	cmp  %g1, 0                                    
 200c2cc:	02 80 00 07 	be  200c2e8 <rtems_filesystem_get_mount_handler+0x30><== NEVER TAKEN
 200c2d0:	b0 10 20 00 	clr  %i0                                       
    rtems_filesystem_iterate( find_handler, &fa );                    
 200c2d4:	92 07 bf f8 	add  %fp, -8, %o1                              
 200c2d8:	11 00 80 30 	sethi  %hi(0x200c000), %o0                     
 200c2dc:	7f ff ff c2 	call  200c1e4 <rtems_filesystem_iterate>       
 200c2e0:	90 12 21 b0 	or  %o0, 0x1b0, %o0	! 200c1b0 <find_handler>   
 200c2e4:	f0 07 bf fc 	ld  [ %fp + -4 ], %i0                          
  }                                                                   
                                                                      
  return fa.mount_h;                                                  
}                                                                     
 200c2e8:	81 c7 e0 08 	ret                                            
 200c2ec:	81 e8 00 00 	restore                                        
                                                                      

020029b4 <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 ) {
 20029b4:	9d e3 bf 88 	save  %sp, -120, %sp                           
                                                                      
  /*                                                                  
   *  Set the default umask to "022".                                 
   */                                                                 
                                                                      
  rtems_filesystem_umask = 022;                                       
 20029b8:	3b 00 80 73 	sethi  %hi(0x201cc00), %i5                     
 20029bc:	c2 07 62 74 	ld  [ %i5 + 0x274 ], %g1	! 201ce74 <rtems_current_user_env>
 20029c0:	84 10 20 12 	mov  0x12, %g2                                 
 20029c4:	c4 20 60 2c 	st  %g2, [ %g1 + 0x2c ]                        
                                                                      
  /*                                                                  
   *  mount the first filesystem.                                     
   */                                                                 
  if ( rtems_filesystem_mount_table_size == 0 )                       
 20029c8:	03 00 80 6b 	sethi  %hi(0x201ac00), %g1                     
 20029cc:	c2 00 61 f8 	ld  [ %g1 + 0x1f8 ], %g1	! 201adf8 <rtems_filesystem_mount_table_size>
 20029d0:	80 a0 60 00 	cmp  %g1, 0                                    
 20029d4:	02 80 00 39 	be  2002ab8 <rtems_filesystem_initialize+0x104><== NEVER TAKEN
 20029d8:	03 00 80 73 	sethi  %hi(0x201cc00), %g1                     
    rtems_fatal_error_occurred( 0xABCD0001 );                         
                                                                      
  mt = &rtems_filesystem_mount_table[0];                              
 20029dc:	c2 00 61 88 	ld  [ %g1 + 0x188 ], %g1	! 201cd88 <rtems_filesystem_mount_table>
                                                                      
  status = mount( mt->device, mt->mount_point, mt->type, mt->fsoptions, NULL );
 20029e0:	98 10 20 00 	clr  %o4                                       
 20029e4:	d0 00 60 08 	ld  [ %g1 + 8 ], %o0                           
 20029e8:	d2 00 60 0c 	ld  [ %g1 + 0xc ], %o1                         
 20029ec:	d4 00 40 00 	ld  [ %g1 ], %o2                               
 20029f0:	40 00 02 d3 	call  200353c <mount>                          
 20029f4:	d6 00 60 04 	ld  [ %g1 + 4 ], %o3                           
  if ( status == -1 )                                                 
 20029f8:	80 a2 3f ff 	cmp  %o0, -1                                   
 20029fc:	02 80 00 34 	be  2002acc <rtems_filesystem_initialize+0x118><== NEVER TAKEN
 2002a00:	c2 07 62 74 	ld  [ %i5 + 0x274 ], %g1                       
   *       gonna hit performance.                                     
   *                                                                  
   *       Till Straumann, 10/25/2002                                 
   */                                                                 
  /* Clone the root pathloc */                                        
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
 2002a04:	39 00 80 6c 	sethi  %hi(0x201b000), %i4                     
 2002a08:	92 10 20 01 	mov  1, %o1                                    
 2002a0c:	94 10 20 00 	clr  %o2                                       
 2002a10:	96 07 bf ec 	add  %fp, -20, %o3                             
 2002a14:	98 10 20 00 	clr  %o4                                       
                                                                      
  status = mount( mt->device, mt->mount_point, mt->type, mt->fsoptions, NULL );
  if ( status == -1 )                                                 
    rtems_fatal_error_occurred( 0xABCD0002 );                         
                                                                      
  rtems_filesystem_link_counts = 0;                                   
 2002a18:	c0 30 60 30 	clrh  [ %g1 + 0x30 ]                           
   *       gonna hit performance.                                     
   *                                                                  
   *       Till Straumann, 10/25/2002                                 
   */                                                                 
  /* Clone the root pathloc */                                        
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
 2002a1c:	40 00 00 fc 	call  2002e0c <rtems_filesystem_evaluate_path> 
 2002a20:	90 17 23 20 	or  %i4, 0x320, %o0                            
  rtems_filesystem_root        = loc;                                 
 2002a24:	c2 07 62 74 	ld  [ %i5 + 0x274 ], %g1                       
 2002a28:	c4 07 bf ec 	ld  [ %fp + -20 ], %g2                         
  /* One more clone for the current node */                           
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
 2002a2c:	92 10 20 01 	mov  1, %o1                                    
   *                                                                  
   *       Till Straumann, 10/25/2002                                 
   */                                                                 
  /* Clone the root pathloc */                                        
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
  rtems_filesystem_root        = loc;                                 
 2002a30:	c4 20 60 18 	st  %g2, [ %g1 + 0x18 ]                        
 2002a34:	c4 07 bf f0 	ld  [ %fp + -16 ], %g2                         
  /* One more clone for the current node */                           
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
 2002a38:	94 10 20 00 	clr  %o2                                       
   *                                                                  
   *       Till Straumann, 10/25/2002                                 
   */                                                                 
  /* Clone the root pathloc */                                        
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
  rtems_filesystem_root        = loc;                                 
 2002a3c:	c4 20 60 1c 	st  %g2, [ %g1 + 0x1c ]                        
 2002a40:	c4 07 bf f4 	ld  [ %fp + -12 ], %g2                         
  /* One more clone for the current node */                           
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
 2002a44:	96 07 bf ec 	add  %fp, -20, %o3                             
   *                                                                  
   *       Till Straumann, 10/25/2002                                 
   */                                                                 
  /* Clone the root pathloc */                                        
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
  rtems_filesystem_root        = loc;                                 
 2002a48:	c4 20 60 20 	st  %g2, [ %g1 + 0x20 ]                        
 2002a4c:	c4 07 bf f8 	ld  [ %fp + -8 ], %g2                          
  /* One more clone for the current node */                           
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
 2002a50:	98 10 20 00 	clr  %o4                                       
   *                                                                  
   *       Till Straumann, 10/25/2002                                 
   */                                                                 
  /* Clone the root pathloc */                                        
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
  rtems_filesystem_root        = loc;                                 
 2002a54:	c4 20 60 24 	st  %g2, [ %g1 + 0x24 ]                        
 2002a58:	c4 07 bf fc 	ld  [ %fp + -4 ], %g2                          
  /* One more clone for the current node */                           
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
 2002a5c:	90 17 23 20 	or  %i4, 0x320, %o0                            
 2002a60:	40 00 00 eb 	call  2002e0c <rtems_filesystem_evaluate_path> 
 2002a64:	c4 20 60 28 	st  %g2, [ %g1 + 0x28 ]                        
  rtems_filesystem_current     = loc;                                 
 2002a68:	c2 07 62 74 	ld  [ %i5 + 0x274 ], %g1                       
 2002a6c:	c4 07 bf ec 	ld  [ %fp + -20 ], %g2                         
   *                                                                  
   *  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);                                      
 2002a70:	92 10 21 ff 	mov  0x1ff, %o1                                
  /* Clone the root pathloc */                                        
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
  rtems_filesystem_root        = loc;                                 
  /* One more clone for the current node */                           
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
  rtems_filesystem_current     = loc;                                 
 2002a74:	c4 20 60 04 	st  %g2, [ %g1 + 4 ]                           
 2002a78:	c4 07 bf f0 	ld  [ %fp + -16 ], %g2                         
   *                                                                  
   *  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);                                      
 2002a7c:	11 00 80 6c 	sethi  %hi(0x201b000), %o0                     
  /* Clone the root pathloc */                                        
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
  rtems_filesystem_root        = loc;                                 
  /* One more clone for the current node */                           
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
  rtems_filesystem_current     = loc;                                 
 2002a80:	c4 20 60 08 	st  %g2, [ %g1 + 8 ]                           
 2002a84:	c4 07 bf f4 	ld  [ %fp + -12 ], %g2                         
   *                                                                  
   *  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);                                      
 2002a88:	90 12 23 28 	or  %o0, 0x328, %o0                            
  /* Clone the root pathloc */                                        
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
  rtems_filesystem_root        = loc;                                 
  /* One more clone for the current node */                           
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
  rtems_filesystem_current     = loc;                                 
 2002a8c:	c4 20 60 0c 	st  %g2, [ %g1 + 0xc ]                         
 2002a90:	c4 07 bf f8 	ld  [ %fp + -8 ], %g2                          
 2002a94:	c4 20 60 10 	st  %g2, [ %g1 + 0x10 ]                        
 2002a98:	c4 07 bf fc 	ld  [ %fp + -4 ], %g2                          
   *                                                                  
   *  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);                                      
 2002a9c:	40 00 02 48 	call  20033bc <mkdir>                          
 2002aa0:	c4 20 60 14 	st  %g2, [ %g1 + 0x14 ]                        
  if ( status != 0 )                                                  
 2002aa4:	80 a2 20 00 	cmp  %o0, 0                                    
 2002aa8:	12 80 00 07 	bne  2002ac4 <rtems_filesystem_initialize+0x110><== NEVER TAKEN
 2002aac:	11 2a f3 40 	sethi  %hi(0xabcd0000), %o0                    
 2002ab0:	81 c7 e0 08 	ret                                            
 2002ab4:	81 e8 00 00 	restore                                        
                                                                      
  /*                                                                  
   *  mount the first filesystem.                                     
   */                                                                 
  if ( rtems_filesystem_mount_table_size == 0 )                       
    rtems_fatal_error_occurred( 0xABCD0001 );                         
 2002ab8:	11 2a f3 40 	sethi  %hi(0xabcd0000), %o0                    <== NOT EXECUTED
 2002abc:	40 00 11 65 	call  2007050 <rtems_fatal_error_occurred>     <== NOT EXECUTED
 2002ac0:	90 12 20 01 	or  %o0, 1, %o0	! abcd0001 <RAM_END+0xa98d0001><== NOT EXECUTED
   *        created that way by the IMFS.                             
   */                                                                 
                                                                      
  status = mkdir( "/dev", 0777);                                      
  if ( status != 0 )                                                  
    rtems_fatal_error_occurred( 0xABCD0003 );                         
 2002ac4:	40 00 11 63 	call  2007050 <rtems_fatal_error_occurred>     <== NOT EXECUTED
 2002ac8:	90 12 20 03 	or  %o0, 3, %o0                                <== NOT EXECUTED
                                                                      
  mt = &rtems_filesystem_mount_table[0];                              
                                                                      
  status = mount( mt->device, mt->mount_point, mt->type, mt->fsoptions, NULL );
  if ( status == -1 )                                                 
    rtems_fatal_error_occurred( 0xABCD0002 );                         
 2002acc:	11 2a f3 40 	sethi  %hi(0xabcd0000), %o0                    <== NOT EXECUTED
 2002ad0:	40 00 11 60 	call  2007050 <rtems_fatal_error_occurred>     <== NOT EXECUTED
 2002ad4:	90 12 20 02 	or  %o0, 2, %o0	! abcd0002 <RAM_END+0xa98d0002><== NOT EXECUTED
                                                                      

0200c1e4 <rtems_filesystem_iterate>: bool rtems_filesystem_iterate( rtems_per_filesystem_routine routine, void *routine_arg ) {
 200c1e4:	9d e3 bf a0 	save  %sp, -96, %sp                            
  const rtems_filesystem_table_t *table_entry = &rtems_filesystem_table [0];
  rtems_chain_node *node = NULL;                                      
  bool stop = false;                                                  
                                                                      
  while ( table_entry->type && !stop ) {                              
 200c1e8:	37 00 80 6b 	sethi  %hi(0x201ac00), %i3                     
 200c1ec:	c2 06 e2 0c 	ld  [ %i3 + 0x20c ], %g1	! 201ae0c <rtems_filesystem_table>
                                                                      
bool rtems_filesystem_iterate(                                        
  rtems_per_filesystem_routine routine,                               
  void *routine_arg                                                   
)                                                                     
{                                                                     
 200c1f0:	ba 10 00 18 	mov  %i0, %i5                                  
  const rtems_filesystem_table_t *table_entry = &rtems_filesystem_table [0];
  rtems_chain_node *node = NULL;                                      
  bool stop = false;                                                  
                                                                      
  while ( table_entry->type && !stop ) {                              
 200c1f4:	80 a0 60 00 	cmp  %g1, 0                                    
 200c1f8:	02 80 00 13 	be  200c244 <rtems_filesystem_iterate+0x60>    <== NEVER TAKEN
 200c1fc:	b6 16 e2 0c 	or  %i3, 0x20c, %i3                            
 200c200:	b8 10 00 1b 	mov  %i3, %i4                                  
 200c204:	10 80 00 05 	b  200c218 <rtems_filesystem_iterate+0x34>     
 200c208:	b4 06 e0 08 	add  %i3, 8, %i2                               
 200c20c:	b0 8a 20 ff 	andcc  %o0, 0xff, %i0                          
 200c210:	12 80 00 28 	bne  200c2b0 <rtems_filesystem_iterate+0xcc>   
 200c214:	01 00 00 00 	nop                                            
    stop = (*routine)( table_entry, routine_arg );                    
 200c218:	90 10 00 1c 	mov  %i4, %o0                                  
 200c21c:	9f c7 40 00 	call  %i5                                      
 200c220:	92 10 00 19 	mov  %i1, %o1                                  
  rtems_filesystem_table_t entry;                                     
} filesystem_node;                                                    
                                                                      
static RTEMS_CHAIN_DEFINE_EMPTY(filesystem_chain);                    
                                                                      
bool rtems_filesystem_iterate(                                        
 200c224:	82 27 00 1b 	sub  %i4, %i3, %g1                             
{                                                                     
  const rtems_filesystem_table_t *table_entry = &rtems_filesystem_table [0];
  rtems_chain_node *node = NULL;                                      
  bool stop = false;                                                  
                                                                      
  while ( table_entry->type && !stop ) {                              
 200c228:	c2 06 80 01 	ld  [ %i2 + %g1 ], %g1                         
 200c22c:	80 a0 60 00 	cmp  %g1, 0                                    
 200c230:	12 bf ff f7 	bne  200c20c <rtems_filesystem_iterate+0x28>   
 200c234:	b8 07 20 08 	add  %i4, 8, %i4                               
    stop = (*routine)( table_entry, routine_arg );                    
    ++table_entry;                                                    
  }                                                                   
                                                                      
  if ( !stop ) {                                                      
 200c238:	b0 8a 20 ff 	andcc  %o0, 0xff, %i0                          
 200c23c:	12 80 00 1d 	bne  200c2b0 <rtems_filesystem_iterate+0xcc>   
 200c240:	01 00 00 00 	nop                                            
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 );
 200c244:	39 00 80 76 	sethi  %hi(0x201d800), %i4                     
 200c248:	d0 07 20 0c 	ld  [ %i4 + 0xc ], %o0	! 201d80c <rtems_libio_semaphore>
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
 200c24c:	35 00 80 73 	sethi  %hi(0x201cc00), %i2                     
 200c250:	92 10 20 00 	clr  %o1                                       
 200c254:	7f ff e9 bb 	call  2006940 <rtems_semaphore_obtain>         
 200c258:	94 10 20 00 	clr  %o2                                       
 200c25c:	f6 06 a2 7c 	ld  [ %i2 + 0x27c ], %i3                       
 200c260:	b4 16 a2 7c 	or  %i2, 0x27c, %i2                            
    rtems_libio_lock();                                               
    for (                                                             
 200c264:	b4 06 a0 04 	add  %i2, 4, %i2                               
 200c268:	80 a6 c0 1a 	cmp  %i3, %i2                                  
 200c26c:	12 80 00 05 	bne  200c280 <rtems_filesystem_iterate+0x9c>   
 200c270:	b0 10 20 00 	clr  %i0                                       
 200c274:	30 80 00 0b 	b,a   200c2a0 <rtems_filesystem_iterate+0xbc>  
      node = rtems_chain_first( &filesystem_chain );                  
      !rtems_chain_is_tail( &filesystem_chain, node ) && !stop;       
 200c278:	12 80 00 0a 	bne  200c2a0 <rtems_filesystem_iterate+0xbc>   <== NEVER TAKEN
 200c27c:	01 00 00 00 	nop                                            
      node = rtems_chain_next( node )                                 
    ) {                                                               
      const filesystem_node *fsn = (filesystem_node *) node;          
                                                                      
      stop = (*routine)( &fsn->entry, routine_arg );                  
 200c280:	90 06 e0 08 	add  %i3, 8, %o0                               
 200c284:	9f c7 40 00 	call  %i5                                      
 200c288:	92 10 00 19 	mov  %i1, %o1                                  
    }                                                                 
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  rtems_set_errno_and_return_minus_one( ENOENT );                     
}                                                                     
 200c28c:	f6 06 c0 00 	ld  [ %i3 ], %i3                               
    ++table_entry;                                                    
  }                                                                   
                                                                      
  if ( !stop ) {                                                      
    rtems_libio_lock();                                               
    for (                                                             
 200c290:	80 a6 c0 1a 	cmp  %i3, %i2                                  
 200c294:	32 bf ff f9 	bne,a   200c278 <rtems_filesystem_iterate+0x94>
 200c298:	b0 8a 20 ff 	andcc  %o0, 0xff, %i0                          
 200c29c:	b0 0a 20 ff 	and  %o0, 0xff, %i0                            
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
 200c2a0:	7f ff e9 f2 	call  2006a68 <rtems_semaphore_release>        
 200c2a4:	d0 07 20 0c 	ld  [ %i4 + 0xc ], %o0                         
    }                                                                 
    rtems_libio_unlock();                                             
  }                                                                   
                                                                      
  return stop;                                                        
}                                                                     
 200c2a8:	81 c7 e0 08 	ret                                            
 200c2ac:	81 e8 00 00 	restore                                        
 200c2b0:	81 c7 e0 08 	ret                                            
 200c2b4:	81 e8 00 00 	restore                                        
                                                                      

020034c8 <rtems_filesystem_mount_iterate>: bool rtems_filesystem_mount_iterate( rtems_per_filesystem_mount_routine routine, void *routine_arg ) {
 20034c8:	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 );
 20034cc:	3b 00 80 76 	sethi  %hi(0x201d800), %i5                     
 20034d0:	d0 07 60 0c 	ld  [ %i5 + 0xc ], %o0	! 201d80c <rtems_libio_semaphore>
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
 20034d4:	37 00 80 73 	sethi  %hi(0x201cc00), %i3                     
 20034d8:	92 10 20 00 	clr  %o1                                       
 20034dc:	40 00 0d 19 	call  2006940 <rtems_semaphore_obtain>         
 20034e0:	94 10 20 00 	clr  %o2                                       
 20034e4:	f8 06 e2 54 	ld  [ %i3 + 0x254 ], %i4                       
 20034e8:	b4 10 00 18 	mov  %i0, %i2                                  
 20034ec:	b6 16 e2 54 	or  %i3, 0x254, %i3                            
  rtems_chain_node *node = NULL;                                      
  bool stop = false;                                                  
                                                                      
  rtems_libio_lock();                                                 
  for (                                                               
 20034f0:	b6 06 e0 04 	add  %i3, 4, %i3                               
 20034f4:	80 a7 00 1b 	cmp  %i4, %i3                                  
 20034f8:	12 80 00 05 	bne  200350c <rtems_filesystem_mount_iterate+0x44><== ALWAYS TAKEN
 20034fc:	b0 10 20 00 	clr  %i0                                       
 2003500:	30 80 00 0b 	b,a   200352c <rtems_filesystem_mount_iterate+0x64><== NOT EXECUTED
    node = rtems_chain_first( &mount_chain );                         
    !rtems_chain_is_tail( &mount_chain, node ) && !stop;              
 2003504:	12 80 00 0a 	bne  200352c <rtems_filesystem_mount_iterate+0x64><== NEVER TAKEN
 2003508:	01 00 00 00 	nop                                            
    node = rtems_chain_next( node )                                   
  ) {                                                                 
    const rtems_filesystem_mount_table_entry_t *mt_entry =            
      (rtems_filesystem_mount_table_entry_t *) node;                  
                                                                      
    stop = (*routine)( mt_entry, routine_arg );                       
 200350c:	90 10 00 1c 	mov  %i4, %o0                                  
 2003510:	9f c6 80 00 	call  %i2                                      
 2003514:	92 10 00 19 	mov  %i1, %o1                                  
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  return stop;                                                        
}                                                                     
 2003518:	f8 07 00 00 	ld  [ %i4 ], %i4                               
{                                                                     
  rtems_chain_node *node = NULL;                                      
  bool stop = false;                                                  
                                                                      
  rtems_libio_lock();                                                 
  for (                                                               
 200351c:	80 a7 00 1b 	cmp  %i4, %i3                                  
 2003520:	32 bf ff f9 	bne,a   2003504 <rtems_filesystem_mount_iterate+0x3c>
 2003524:	b0 8a 20 ff 	andcc  %o0, 0xff, %i0                          
 2003528:	b0 0a 20 ff 	and  %o0, 0xff, %i0                            
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
 200352c:	40 00 0d 4f 	call  2006a68 <rtems_semaphore_release>        
 2003530:	d0 07 60 0c 	ld  [ %i5 + 0xc ], %o0                         
    stop = (*routine)( mt_entry, routine_arg );                       
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  return stop;                                                        
}                                                                     
 2003534:	81 c7 e0 08 	ret                                            
 2003538:	81 e8 00 00 	restore                                        
                                                                      

02002e84 <rtems_filesystem_prefix_separators>: int rtems_filesystem_prefix_separators( const char *pathname, int pathnamelen ) {
 2002e84:	9d e3 bf a0 	save  %sp, -96, %sp                            
  /*                                                                  
   * Eat any separators at start of the path.                         
   */                                                                 
  int stripped = 0;                                                   
  while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) )
 2002e88:	80 a6 60 00 	cmp  %i1, 0                                    
 2002e8c:	02 80 00 17 	be  2002ee8 <rtems_filesystem_prefix_separators+0x64><== NEVER TAKEN
 2002e90:	d0 0e 00 00 	ldub  [ %i0 ], %o0                             
 2002e94:	91 2a 20 18 	sll  %o0, 0x18, %o0                            
 2002e98:	ba 10 00 18 	mov  %i0, %i5                                  
 2002e9c:	80 a2 20 00 	cmp  %o0, 0                                    
 2002ea0:	12 80 00 0b 	bne  2002ecc <rtems_filesystem_prefix_separators+0x48><== ALWAYS TAKEN
 2002ea4:	b0 10 20 00 	clr  %i0                                       
 2002ea8:	30 80 00 11 	b,a   2002eec <rtems_filesystem_prefix_separators+0x68><== NOT EXECUTED
  {                                                                   
    pathname++;                                                       
    pathnamelen--;                                                    
    stripped++;                                                       
 2002eac:	b0 06 20 01 	inc  %i0                                       
{                                                                     
  /*                                                                  
   * Eat any separators at start of the path.                         
   */                                                                 
  int stripped = 0;                                                   
  while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) )
 2002eb0:	80 a6 40 18 	cmp  %i1, %i0                                  
 2002eb4:	02 80 00 0b 	be  2002ee0 <rtems_filesystem_prefix_separators+0x5c><== NEVER TAKEN
 2002eb8:	ba 07 60 01 	inc  %i5                                       
 2002ebc:	91 2a 20 18 	sll  %o0, 0x18, %o0                            
 2002ec0:	80 a2 20 00 	cmp  %o0, 0                                    
 2002ec4:	02 80 00 0a 	be  2002eec <rtems_filesystem_prefix_separators+0x68><== NEVER TAKEN
 2002ec8:	01 00 00 00 	nop                                            
 2002ecc:	40 00 04 0e 	call  2003f04 <rtems_filesystem_is_separator>  
 2002ed0:	91 3a 20 18 	sra  %o0, 0x18, %o0                            
 2002ed4:	80 a2 20 00 	cmp  %o0, 0                                    
 2002ed8:	32 bf ff f5 	bne,a   2002eac <rtems_filesystem_prefix_separators+0x28>
 2002edc:	d0 0f 60 01 	ldub  [ %i5 + 1 ], %o0                         
 2002ee0:	81 c7 e0 08 	ret                                            
 2002ee4:	81 e8 00 00 	restore                                        
)                                                                     
{                                                                     
  /*                                                                  
   * Eat any separators at start of the path.                         
   */                                                                 
  int stripped = 0;                                                   
 2002ee8:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
    pathname++;                                                       
    pathnamelen--;                                                    
    stripped++;                                                       
  }                                                                   
  return stripped;                                                    
}                                                                     
 2002eec:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 2002ef0:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

0200c3b8 <rtems_filesystem_unregister>: int rtems_filesystem_unregister( const char *type ) {
 200c3b8:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_chain_node *node = NULL;                                      
                                                                      
  if ( type == NULL ) {                                               
 200c3bc:	80 a6 20 00 	cmp  %i0, 0                                    
 200c3c0:	02 80 00 29 	be  200c464 <rtems_filesystem_unregister+0xac> 
 200c3c4:	3b 00 80 76 	sethi  %hi(0x201d800), %i5                     
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 );
 200c3c8:	d0 07 60 0c 	ld  [ %i5 + 0xc ], %o0	! 201d80c <rtems_libio_semaphore>
 200c3cc:	37 00 80 73 	sethi  %hi(0x201cc00), %i3                     
 200c3d0:	92 10 20 00 	clr  %o1                                       
 200c3d4:	7f ff e9 5b 	call  2006940 <rtems_semaphore_obtain>         
 200c3d8:	94 10 20 00 	clr  %o2                                       
 200c3dc:	f8 06 e2 7c 	ld  [ %i3 + 0x27c ], %i4                       
 200c3e0:	b6 16 e2 7c 	or  %i3, 0x27c, %i3                            
    rtems_set_errno_and_return_minus_one( EINVAL );                   
  }                                                                   
                                                                      
  rtems_libio_lock();                                                 
  for (                                                               
 200c3e4:	b6 06 e0 04 	add  %i3, 4, %i3                               
 200c3e8:	80 a7 00 1b 	cmp  %i4, %i3                                  
 200c3ec:	32 80 00 08 	bne,a   200c40c <rtems_filesystem_unregister+0x54>
 200c3f0:	d0 07 20 08 	ld  [ %i4 + 8 ], %o0                           
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
 200c3f4:	10 80 00 14 	b  200c444 <rtems_filesystem_unregister+0x8c>  
 200c3f8:	d0 07 60 0c 	ld  [ %i5 + 0xc ], %o0                         
 200c3fc:	80 a7 00 1b 	cmp  %i4, %i3                                  
 200c400:	02 80 00 11 	be  200c444 <rtems_filesystem_unregister+0x8c> <== ALWAYS TAKEN
 200c404:	d0 07 60 0c 	ld  [ %i5 + 0xc ], %o0                         
    !rtems_chain_is_tail( &filesystem_chain, node );                  
    node = rtems_chain_next( node )                                   
  ) {                                                                 
    filesystem_node *fsn = (filesystem_node *) node;                  
                                                                      
    if ( strcmp( fsn->entry.type, type ) == 0 ) {                     
 200c408:	d0 07 20 08 	ld  [ %i4 + 8 ], %o0                           <== NOT EXECUTED
 200c40c:	40 00 11 0c 	call  201083c <strcmp>                         
 200c410:	92 10 00 18 	mov  %i0, %o1                                  
 200c414:	80 a2 20 00 	cmp  %o0, 0                                    
 200c418:	32 bf ff f9 	bne,a   200c3fc <rtems_filesystem_unregister+0x44>
 200c41c:	f8 07 00 00 	ld  [ %i4 ], %i4                               
 */                                                                   
RTEMS_INLINE_ROUTINE void rtems_chain_extract(                        
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Extract( the_node );                                         
 200c420:	7f ff ec 02 	call  2007428 <_Chain_Extract>                 
 200c424:	90 10 00 1c 	mov  %i4, %o0                                  
      rtems_chain_extract( node );                                    
      free( fsn );                                                    
 200c428:	7f ff da ba 	call  2002f10 <free>                           
 200c42c:	90 10 00 1c 	mov  %i4, %o0                                  
 200c430:	d0 07 60 0c 	ld  [ %i5 + 0xc ], %o0                         
 200c434:	7f ff e9 8d 	call  2006a68 <rtems_semaphore_release>        
 200c438:	b0 10 20 00 	clr  %i0                                       
 200c43c:	81 c7 e0 08 	ret                                            
 200c440:	81 e8 00 00 	restore                                        
 200c444:	7f ff e9 89 	call  2006a68 <rtems_semaphore_release>        
 200c448:	b0 10 3f ff 	mov  -1, %i0                                   
      return 0;                                                       
    }                                                                 
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  rtems_set_errno_and_return_minus_one( ENOENT );                     
 200c44c:	40 00 0d 55 	call  200f9a0 <__errno>                        
 200c450:	01 00 00 00 	nop                                            
 200c454:	82 10 20 02 	mov  2, %g1	! 2 <PROM_START+0x2>               
 200c458:	c2 22 00 00 	st  %g1, [ %o0 ]                               
}                                                                     
 200c45c:	81 c7 e0 08 	ret                                            
 200c460:	81 e8 00 00 	restore                                        
)                                                                     
{                                                                     
  rtems_chain_node *node = NULL;                                      
                                                                      
  if ( type == NULL ) {                                               
    rtems_set_errno_and_return_minus_one( EINVAL );                   
 200c464:	40 00 0d 4f 	call  200f9a0 <__errno>                        
 200c468:	b0 10 3f ff 	mov  -1, %i0                                   
 200c46c:	82 10 20 16 	mov  0x16, %g1                                 
 200c470:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200c474:	81 c7 e0 08 	ret                                            
 200c478:	81 e8 00 00 	restore                                        
                                                                      

020034b8 <rtems_gxx_key_create>: int rtems_gxx_key_create (__gthread_key_t *key, void (*dtor) (void *)) {
 20034b8:	9d e3 bf a0 	save  %sp, -96, %sp                            
   * pointer to the buffer that will hold the value of the key itself.
   * We have to to this, because the others functions on this interface
   * deal with the value of the key, as used with the POSIX API.      
   */                                                                 
   /* Do not pull your hair, trust me this works. :-) */              
  __gthread_key_t new_key = (__gthread_key_t) malloc( sizeof( *new_key ) );
 20034bc:	40 00 01 1d 	call  2003930 <malloc>                         
 20034c0:	90 10 20 08 	mov  8, %o0                                    
  *key = new_key;                                                     
  new_key->val  = NULL;                                               
 20034c4:	c0 22 00 00 	clr  [ %o0 ]                                   
   * We have to to this, because the others functions on this interface
   * deal with the value of the key, as used with the POSIX API.      
   */                                                                 
   /* Do not pull your hair, trust me this works. :-) */              
  __gthread_key_t new_key = (__gthread_key_t) malloc( sizeof( *new_key ) );
  *key = new_key;                                                     
 20034c8:	d0 26 00 00 	st  %o0, [ %i0 ]                               
   * pointer to the buffer that will hold the value of the key itself.
   * We have to to this, because the others functions on this interface
   * deal with the value of the key, as used with the POSIX API.      
   */                                                                 
   /* Do not pull your hair, trust me this works. :-) */              
  __gthread_key_t new_key = (__gthread_key_t) malloc( sizeof( *new_key ) );
 20034cc:	ba 10 00 08 	mov  %o0, %i5                                  
  }                                                                   
  return 0;                                                           
}                                                                     
                                                                      
int rtems_gxx_key_create (__gthread_key_t *key, void (*dtor) (void *))
{                                                                     
 20034d0:	94 10 00 19 	mov  %i1, %o2                                  
   */                                                                 
   /* Do not pull your hair, trust me this works. :-) */              
  __gthread_key_t new_key = (__gthread_key_t) malloc( sizeof( *new_key ) );
  *key = new_key;                                                     
  new_key->val  = NULL;                                               
  new_key->dtor = dtor;                                               
 20034d4:	f2 27 60 04 	st  %i1, [ %i5 + 4 ]                           
      "gxx_wrappers: create key=%x, dtor=%x, new_key=%x\n", key, dtor, new_key
    );                                                                
  #endif                                                              
                                                                      
  /* register with RTEMS the buffer that will hold the key values */  
  status = rtems_task_variable_add( RTEMS_SELF, (void **)new_key, dtor );
 20034d8:	90 10 20 00 	clr  %o0                                       
 20034dc:	92 10 00 1d 	mov  %i5, %o1                                  
 20034e0:	40 00 10 24 	call  2007570 <rtems_task_variable_add>        
 20034e4:	b0 10 20 00 	clr  %i0                                       
  if ( status == RTEMS_SUCCESSFUL )                                   
 20034e8:	80 a2 20 00 	cmp  %o0, 0                                    
 20034ec:	02 80 00 04 	be  20034fc <rtems_gxx_key_create+0x44>        <== ALWAYS TAKEN
 20034f0:	90 10 00 1d 	mov  %i5, %o0                                  
    return 0;                                                         
                                                                      
  free( new_key );                                                    
 20034f4:	7f ff ff 89 	call  2003318 <free>                           <== NOT EXECUTED
 20034f8:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
  return -1;                                                          
}                                                                     
 20034fc:	81 c7 e0 08 	ret                                            
 2003500:	81 e8 00 00 	restore                                        
                                                                      

02003510 <rtems_gxx_key_delete>: int rtems_gxx_key_delete (__gthread_key_t key) {
 2003510:	9d e3 bf a0 	save  %sp, -96, %sp                            
  #ifdef DEBUG_GXX_WRAPPERS                                           
    printk( "gxx_wrappers: delete key=%x\n", key );                   
  #endif                                                              
                                                                      
  /* register with RTEMS the buffer that will hold the key values */  
  status = rtems_task_variable_delete( RTEMS_SELF, (void **)key );    
 2003514:	90 10 20 00 	clr  %o0                                       
 2003518:	40 00 10 47 	call  2007634 <rtems_task_variable_delete>     
 200351c:	92 10 00 18 	mov  %i0, %o1                                  
  if ( status == RTEMS_SUCCESSFUL ) {                                 
 2003520:	80 a2 20 00 	cmp  %o0, 0                                    
 2003524:	12 80 00 06 	bne  200353c <rtems_gxx_key_delete+0x2c>       <== NEVER TAKEN
 2003528:	80 a6 20 00 	cmp  %i0, 0                                    
    /* Hmm - hopefully all tasks using this key have gone away... */  
    if ( key ) free( *(void **)key );                                 
 200352c:	02 80 00 04 	be  200353c <rtems_gxx_key_delete+0x2c>        <== NEVER TAKEN
 2003530:	01 00 00 00 	nop                                            
 2003534:	7f ff ff 79 	call  2003318 <free>                           
 2003538:	d0 06 00 00 	ld  [ %i0 ], %o0                               
    return 0;                                                         
  }                                                                   
  key = NULL;                                                         
  return 0;                                                           
}                                                                     
 200353c:	81 c7 e0 08 	ret                                            
 2003540:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      

02003448 <rtems_gxx_once>: /* uncomment this if you need to debug this interface */ /*#define DEBUG_GXX_WRAPPERS 1*/ int rtems_gxx_once(__gthread_once_t *once, void (*func) (void)) {
 2003448:	9d e3 bf 98 	save  %sp, -104, %sp                           
  #ifdef DEBUG_GXX_WRAPPERS                                           
    printk( "gxx_wrappers: once=%x, func=%x\n", *once, func );        
  #endif                                                              
                                                                      
  if ( *(volatile __gthread_once_t *)once == 0 ) {                    
 200344c:	c2 06 00 00 	ld  [ %i0 ], %g1                               
 2003450:	80 a0 60 00 	cmp  %g1, 0                                    
 2003454:	02 80 00 04 	be  2003464 <rtems_gxx_once+0x1c>              
 2003458:	92 10 21 00 	mov  0x100, %o1                                
    rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode);         
    if ( o == 0 )                                                     
      (*func)();                                                      
  }                                                                   
  return 0;                                                           
}                                                                     
 200345c:	81 c7 e0 08 	ret                                            
 2003460:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      
  if ( *(volatile __gthread_once_t *)once == 0 ) {                    
    rtems_mode saveMode;                                              
    __gthread_once_t o;                                               
                                                                      
    rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &saveMode); 
 2003464:	94 07 bf fc 	add  %fp, -4, %o2                              
 2003468:	40 00 0f bb 	call  2007354 <rtems_task_mode>                
 200346c:	90 10 21 00 	mov  0x100, %o0                                
    if ( (o = *(volatile __gthread_once_t *)once) == 0 ) {            
 2003470:	c2 06 00 00 	ld  [ %i0 ], %g1                               
      *(volatile __gthread_once_t *)once = 1;                         
    }                                                                 
    rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode);         
 2003474:	d0 07 bf fc 	ld  [ %fp + -4 ], %o0                          
 2003478:	92 10 21 00 	mov  0x100, %o1                                
  if ( *(volatile __gthread_once_t *)once == 0 ) {                    
    rtems_mode saveMode;                                              
    __gthread_once_t o;                                               
                                                                      
    rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &saveMode); 
    if ( (o = *(volatile __gthread_once_t *)once) == 0 ) {            
 200347c:	80 a0 60 00 	cmp  %g1, 0                                    
 2003480:	12 80 00 0a 	bne  20034a8 <rtems_gxx_once+0x60>             <== NEVER TAKEN
 2003484:	94 07 bf fc 	add  %fp, -4, %o2                              
      *(volatile __gthread_once_t *)once = 1;                         
 2003488:	82 10 20 01 	mov  1, %g1                                    
 200348c:	c2 26 00 00 	st  %g1, [ %i0 ]                               
    }                                                                 
    rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode);         
 2003490:	40 00 0f b1 	call  2007354 <rtems_task_mode>                
 2003494:	b0 10 20 00 	clr  %i0                                       
    if ( o == 0 )                                                     
      (*func)();                                                      
 2003498:	9f c6 40 00 	call  %i1                                      
 200349c:	01 00 00 00 	nop                                            
  }                                                                   
  return 0;                                                           
}                                                                     
 20034a0:	81 c7 e0 08 	ret                                            
 20034a4:	81 e8 00 00 	restore                                        
                                                                      
    rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &saveMode); 
    if ( (o = *(volatile __gthread_once_t *)once) == 0 ) {            
      *(volatile __gthread_once_t *)once = 1;                         
    }                                                                 
    rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode);         
 20034a8:	40 00 0f ab 	call  2007354 <rtems_task_mode>                <== NOT EXECUTED
 20034ac:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
    if ( o == 0 )                                                     
      (*func)();                                                      
  }                                                                   
  return 0;                                                           
}                                                                     
 20034b0:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 20034b4:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

020035ac <rtems_gxx_setspecific>: #endif return p; } int rtems_gxx_setspecific(__gthread_key_t key, const void *ptr) {
 20035ac:	9d e3 bf a0 	save  %sp, -96, %sp                            
      rtems_task_self()                                               
      );                                                              
  #endif                                                              
                                                                      
  /* register with RTEMS the buffer that will hold the key values */  
  status = rtems_task_variable_add( RTEMS_SELF, (void **)key, key->dtor );
 20035b0:	d4 06 20 04 	ld  [ %i0 + 4 ], %o2                           
 20035b4:	92 10 00 18 	mov  %i0, %o1                                  
  #endif                                                              
  return p;                                                           
}                                                                     
                                                                      
int rtems_gxx_setspecific(__gthread_key_t key, const void *ptr)       
{                                                                     
 20035b8:	ba 10 00 18 	mov  %i0, %i5                                  
      rtems_task_self()                                               
      );                                                              
  #endif                                                              
                                                                      
  /* register with RTEMS the buffer that will hold the key values */  
  status = rtems_task_variable_add( RTEMS_SELF, (void **)key, key->dtor );
 20035bc:	90 10 20 00 	clr  %o0                                       
 20035c0:	40 00 0f ec 	call  2007570 <rtems_task_variable_add>        
 20035c4:	b0 10 3f ff 	mov  -1, %i0                                   
  if ( status == RTEMS_SUCCESSFUL ) {                                 
 20035c8:	80 a2 20 00 	cmp  %o0, 0                                    
 20035cc:	12 80 00 04 	bne  20035dc <rtems_gxx_setspecific+0x30>      <== NEVER TAKEN
 20035d0:	01 00 00 00 	nop                                            
    /* now let's set the proper value */                              
    key->val =  (void *)ptr;                                          
 20035d4:	f2 27 40 00 	st  %i1, [ %i5 ]                               
    return 0;                                                         
 20035d8:	b0 10 20 00 	clr  %i0                                       
  }                                                                   
  return -1;                                                          
}                                                                     
 20035dc:	81 c7 e0 08 	ret                                            
 20035e0:	81 e8 00 00 	restore                                        
                                                                      

020076b0 <rtems_heap_allocate_aligned_with_boundary>: void *rtems_heap_allocate_aligned_with_boundary( size_t size, uintptr_t alignment, uintptr_t boundary ) {
 20076b0:	9d e3 bf a0 	save  %sp, -96, %sp                            
  if (                                                                
 20076b4:	03 00 80 91 	sethi  %hi(0x2024400), %g1                     
 20076b8:	c2 00 63 24 	ld  [ %g1 + 0x324 ], %g1	! 2024724 <_System_state_Current>
void *rtems_heap_allocate_aligned_with_boundary(                      
  size_t size,                                                        
  uintptr_t alignment,                                                
  uintptr_t boundary                                                  
)                                                                     
{                                                                     
 20076bc:	b8 10 00 18 	mov  %i0, %i4                                  
 20076c0:	ba 10 00 19 	mov  %i1, %i5                                  
  if (                                                                
 20076c4:	80 a0 60 03 	cmp  %g1, 3                                    
 20076c8:	02 80 00 08 	be  20076e8 <rtems_heap_allocate_aligned_with_boundary+0x38><== ALWAYS TAKEN
 20076cc:	b6 10 00 1a 	mov  %i2, %i3                                  
      && !malloc_is_system_state_OK()                                 
  ) {                                                                 
    return NULL;                                                      
  }                                                                   
                                                                      
  malloc_deferred_frees_process();                                    
 20076d0:	7f ff fb 9f 	call  200654c <malloc_deferred_frees_process>  
 20076d4:	b2 10 00 1c 	mov  %i4, %i1                                  
                                                                      
  /* FIXME: Statistics, boundary checks */                            
                                                                      
  return _Protected_heap_Allocate_aligned_with_boundary(              
 20076d8:	03 00 80 8c 	sethi  %hi(0x2023000), %g1                     
 20076dc:	f0 00 60 74 	ld  [ %g1 + 0x74 ], %i0	! 2023074 <RTEMS_Malloc_Heap>
 20076e0:	40 00 16 1f 	call  200cf5c <_Protected_heap_Allocate_aligned_with_boundary>
 20076e4:	95 e8 00 1d 	restore  %g0, %i5, %o2                         
  uintptr_t boundary                                                  
)                                                                     
{                                                                     
  if (                                                                
    _System_state_Is_up( _System_state_Get() )                        
      && !malloc_is_system_state_OK()                                 
 20076e8:	7f ff fb 87 	call  2006504 <malloc_is_system_state_OK>      
 20076ec:	01 00 00 00 	nop                                            
 20076f0:	80 8a 20 ff 	btst  0xff, %o0                                
 20076f4:	12 bf ff f7 	bne  20076d0 <rtems_heap_allocate_aligned_with_boundary+0x20>
 20076f8:	b0 10 20 00 	clr  %i0                                       
    RTEMS_Malloc_Heap,                                                
    size,                                                             
    alignment,                                                        
    boundary                                                          
  );                                                                  
}                                                                     
 20076fc:	81 c7 e0 08 	ret                                            
 2007700:	81 e8 00 00 	restore                                        
                                                                      

0200291c <rtems_io_lookup_name>: rtems_status_code rtems_io_lookup_name( const char *name, rtems_driver_name_t *device_info ) {
 200291c:	9d e3 bf 88 	save  %sp, -120, %sp                           
  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(                            
 2002920:	40 00 39 b8 	call  2011000 <strlen>                         
 2002924:	90 10 00 18 	mov  %i0, %o0                                  
 2002928:	94 10 20 00 	clr  %o2                                       
 200292c:	92 10 00 08 	mov  %o0, %o1                                  
 2002930:	96 07 bf ec 	add  %fp, -20, %o3                             
 2002934:	98 10 20 01 	mov  1, %o4                                    
 2002938:	40 00 01 35 	call  2002e0c <rtems_filesystem_evaluate_path> 
 200293c:	90 10 00 18 	mov  %i0, %o0                                  
      name, strlen( name ), 0x00, &loc, true );                       
  the_jnode = loc.node_access;                                        
                                                                      
  node_type = (*loc.ops->node_type_h)( &loc );                        
 2002940:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
  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(                            
 2002944:	b8 10 00 08 	mov  %o0, %i4                                  
      name, strlen( name ), 0x00, &loc, true );                       
  the_jnode = loc.node_access;                                        
                                                                      
  node_type = (*loc.ops->node_type_h)( &loc );                        
 2002948:	c2 00 60 10 	ld  [ %g1 + 0x10 ], %g1                        
  int                                result;                          
  rtems_filesystem_node_types_t      node_type;                       
                                                                      
  result = rtems_filesystem_evaluate_path(                            
      name, strlen( name ), 0x00, &loc, true );                       
  the_jnode = loc.node_access;                                        
 200294c:	fa 07 bf ec 	ld  [ %fp + -20 ], %i5                         
                                                                      
  node_type = (*loc.ops->node_type_h)( &loc );                        
 2002950:	9f c0 40 00 	call  %g1                                      
 2002954:	90 07 bf ec 	add  %fp, -20, %o0                             
                                                                      
  if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) {      
 2002958:	80 a2 20 02 	cmp  %o0, 2                                    
 200295c:	02 80 00 07 	be  2002978 <rtems_io_lookup_name+0x5c>        
 2002960:	80 a7 20 00 	cmp  %i4, 0                                    
    rtems_filesystem_freenode( &loc );                                
 2002964:	90 07 bf ec 	add  %fp, -20, %o0                             
 2002968:	40 00 01 63 	call  2002ef4 <rtems_filesystem_freenode>      
 200296c:	b0 10 20 0d 	mov  0xd, %i0                                  
    return RTEMS_UNSATISFIED;                                         
 2002970:	81 c7 e0 08 	ret                                            
 2002974:	81 e8 00 00 	restore                                        
      name, strlen( name ), 0x00, &loc, true );                       
  the_jnode = loc.node_access;                                        
                                                                      
  node_type = (*loc.ops->node_type_h)( &loc );                        
                                                                      
  if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) {      
 2002978:	12 bf ff fc 	bne  2002968 <rtems_io_lookup_name+0x4c>       <== NEVER TAKEN
 200297c:	90 07 bf ec 	add  %fp, -20, %o0                             
    rtems_filesystem_freenode( &loc );                                
    return RTEMS_UNSATISFIED;                                         
  }                                                                   
                                                                      
  device_info->device_name        = (char *) name;                    
 2002980:	f0 26 40 00 	st  %i0, [ %i1 ]                               
  device_info->device_name_length = strlen( name );                   
 2002984:	40 00 39 9f 	call  2011000 <strlen>                         
 2002988:	90 10 00 18 	mov  %i0, %o0                                  
 200298c:	d0 26 60 04 	st  %o0, [ %i1 + 4 ]                           
  device_info->major              = the_jnode->info.device.major;     
 2002990:	c2 07 60 50 	ld  [ %i5 + 0x50 ], %g1                        
  device_info->minor              = the_jnode->info.device.minor;     
                                                                      
  rtems_filesystem_freenode( &loc );                                  
 2002994:	90 07 bf ec 	add  %fp, -20, %o0                             
    return RTEMS_UNSATISFIED;                                         
  }                                                                   
                                                                      
  device_info->device_name        = (char *) name;                    
  device_info->device_name_length = strlen( name );                   
  device_info->major              = the_jnode->info.device.major;     
 2002998:	c2 26 60 08 	st  %g1, [ %i1 + 8 ]                           
  device_info->minor              = the_jnode->info.device.minor;     
 200299c:	c2 07 60 54 	ld  [ %i5 + 0x54 ], %g1                        
                                                                      
  rtems_filesystem_freenode( &loc );                                  
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 20029a0:	b0 10 20 00 	clr  %i0                                       
  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 );                                  
 20029a4:	40 00 01 54 	call  2002ef4 <rtems_filesystem_freenode>      
 20029a8:	c2 26 60 0c 	st  %g1, [ %i1 + 0xc ]                         
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 20029ac:	81 c7 e0 08 	ret                                            
 20029b0:	81 e8 00 00 	restore                                        
                                                                      

02007e00 <rtems_io_register_driver>: rtems_status_code rtems_io_register_driver( rtems_device_major_number major, const rtems_driver_address_table *driver_table, rtems_device_major_number *registered_major ) {
 2007e00:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_device_major_number major_limit = _IO_Number_of_drivers;      
                                                                      
  if ( rtems_interrupt_is_in_progress() )                             
 2007e04:	03 00 80 6c 	sethi  %hi(0x201b000), %g1                     
 2007e08:	c4 00 62 b0 	ld  [ %g1 + 0x2b0 ], %g2	! 201b2b0 <_Per_CPU_Information+0x8>
rtems_status_code rtems_io_register_driver(                           
  rtems_device_major_number         major,                            
  const rtems_driver_address_table *driver_table,                     
  rtems_device_major_number        *registered_major                  
)                                                                     
{                                                                     
 2007e0c:	86 10 00 19 	mov  %i1, %g3                                  
  rtems_device_major_number major_limit = _IO_Number_of_drivers;      
 2007e10:	03 00 80 6d 	sethi  %hi(0x201b400), %g1                     
                                                                      
  if ( rtems_interrupt_is_in_progress() )                             
    return RTEMS_CALLED_FROM_ISR;                                     
 2007e14:	88 10 20 12 	mov  0x12, %g4                                 
  rtems_device_major_number        *registered_major                  
)                                                                     
{                                                                     
  rtems_device_major_number major_limit = _IO_Number_of_drivers;      
                                                                      
  if ( rtems_interrupt_is_in_progress() )                             
 2007e18:	80 a0 a0 00 	cmp  %g2, 0                                    
 2007e1c:	02 80 00 04 	be  2007e2c <rtems_io_register_driver+0x2c>    
 2007e20:	de 00 62 e4 	ld  [ %g1 + 0x2e4 ], %o7                       
  _IO_Driver_address_table [major] = *driver_table;                   
                                                                      
  _Thread_Enable_dispatch();                                          
                                                                      
  return rtems_io_initialize( major, 0, NULL );                       
}                                                                     
 2007e24:	81 c7 e0 08 	ret                                            
 2007e28:	91 e8 00 04 	restore  %g0, %g4, %o0                         
  rtems_device_major_number major_limit = _IO_Number_of_drivers;      
                                                                      
  if ( rtems_interrupt_is_in_progress() )                             
    return RTEMS_CALLED_FROM_ISR;                                     
                                                                      
  if ( registered_major == NULL )                                     
 2007e2c:	80 a6 a0 00 	cmp  %i2, 0                                    
 2007e30:	02 80 00 40 	be  2007f30 <rtems_io_register_driver+0x130>   
 2007e34:	80 a6 60 00 	cmp  %i1, 0                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  /* Set it to an invalid value */                                    
  *registered_major = major_limit;                                    
                                                                      
  if ( driver_table == NULL )                                         
 2007e38:	02 80 00 3e 	be  2007f30 <rtems_io_register_driver+0x130>   
 2007e3c:	de 26 80 00 	st  %o7, [ %i2 ]                               
                                                                      
static inline bool rtems_io_is_empty_table(                           
  const rtems_driver_address_table *table                             
)                                                                     
{                                                                     
  return table->initialization_entry == NULL && table->open_entry == NULL;
 2007e40:	c4 06 40 00 	ld  [ %i1 ], %g2                               
 2007e44:	80 a0 a0 00 	cmp  %g2, 0                                    
 2007e48:	22 80 00 37 	be,a   2007f24 <rtems_io_register_driver+0x124>
 2007e4c:	c4 06 60 04 	ld  [ %i1 + 4 ], %g2                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( rtems_io_is_empty_table( driver_table ) )                      
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( major >= major_limit )                                         
 2007e50:	80 a3 c0 18 	cmp  %o7, %i0                                  
 2007e54:	08 bf ff f4 	bleu  2007e24 <rtems_io_register_driver+0x24>  
 2007e58:	88 10 20 0a 	mov  0xa, %g4                                  
   *                                                                  
   * This rountine increments the thread dispatch level               
   */                                                                 
  RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
  {                                                                   
    _Thread_Dispatch_disable_level++;                                 
 2007e5c:	05 00 80 6b 	sethi  %hi(0x201ac00), %g2                     
 2007e60:	c8 00 a1 70 	ld  [ %g2 + 0x170 ], %g4	! 201ad70 <_Thread_Dispatch_disable_level>
 2007e64:	88 01 20 01 	inc  %g4                                       
 2007e68:	c8 20 a1 70 	st  %g4, [ %g2 + 0x170 ]                       
    return _Thread_Dispatch_disable_level;                            
 2007e6c:	c4 00 a1 70 	ld  [ %g2 + 0x170 ], %g2                       
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  if ( major == 0 ) {                                                 
 2007e70:	80 a6 20 00 	cmp  %i0, 0                                    
 2007e74:	12 80 00 32 	bne  2007f3c <rtems_io_register_driver+0x13c>  
 2007e78:	1f 00 80 6d 	sethi  %hi(0x201b400), %o7                     
                                                                      
static rtems_status_code rtems_io_obtain_major_number(                
  rtems_device_major_number *major                                    
)                                                                     
{                                                                     
  rtems_device_major_number n = _IO_Number_of_drivers;                
 2007e7c:	c8 00 62 e4 	ld  [ %g1 + 0x2e4 ], %g4                       
  rtems_device_major_number m = 0;                                    
                                                                      
  /* major is error checked by caller */                              
                                                                      
  for ( m = 0; m < n; ++m ) {                                         
 2007e80:	80 a1 20 00 	cmp  %g4, 0                                    
 2007e84:	02 80 00 45 	be  2007f98 <rtems_io_register_driver+0x198>   <== NEVER TAKEN
 2007e88:	c2 03 e2 e8 	ld  [ %o7 + 0x2e8 ], %g1                       
                                                                      
static inline bool rtems_io_is_empty_table(                           
  const rtems_driver_address_table *table                             
)                                                                     
{                                                                     
  return table->initialization_entry == NULL && table->open_entry == NULL;
 2007e8c:	10 80 00 06 	b  2007ea4 <rtems_io_register_driver+0xa4>     
 2007e90:	c4 00 40 00 	ld  [ %g1 ], %g2                               
  rtems_device_major_number n = _IO_Number_of_drivers;                
  rtems_device_major_number m = 0;                                    
                                                                      
  /* major is error checked by caller */                              
                                                                      
  for ( m = 0; m < n; ++m ) {                                         
 2007e94:	80 a6 00 04 	cmp  %i0, %g4                                  
 2007e98:	02 80 00 35 	be  2007f6c <rtems_io_register_driver+0x16c>   
 2007e9c:	82 00 60 18 	add  %g1, 0x18, %g1                            
                                                                      
static inline bool rtems_io_is_empty_table(                           
  const rtems_driver_address_table *table                             
)                                                                     
{                                                                     
  return table->initialization_entry == NULL && table->open_entry == NULL;
 2007ea0:	c4 00 40 00 	ld  [ %g1 ], %g2                               
 2007ea4:	80 a0 a0 00 	cmp  %g2, 0                                    
 2007ea8:	32 bf ff fb 	bne,a   2007e94 <rtems_io_register_driver+0x94>
 2007eac:	b0 06 20 01 	inc  %i0                                       
 2007eb0:	c4 00 60 04 	ld  [ %g1 + 4 ], %g2                           
 2007eb4:	80 a0 a0 00 	cmp  %g2, 0                                    
 2007eb8:	32 bf ff f7 	bne,a   2007e94 <rtems_io_register_driver+0x94>
 2007ebc:	b0 06 20 01 	inc  %i0                                       
    if ( rtems_io_is_empty_table( table ) )                           
      break;                                                          
  }                                                                   
                                                                      
  /* Assigns invalid value in case of failure */                      
  *major = m;                                                         
 2007ec0:	f0 26 80 00 	st  %i0, [ %i2 ]                               
 2007ec4:	83 2e 20 03 	sll  %i0, 3, %g1                               
                                                                      
  if ( m != n )                                                       
 2007ec8:	80 a1 00 18 	cmp  %g4, %i0                                  
 2007ecc:	02 80 00 29 	be  2007f70 <rtems_io_register_driver+0x170>   <== NEVER TAKEN
 2007ed0:	9b 2e 20 05 	sll  %i0, 5, %o5                               
    }                                                                 
                                                                      
    *registered_major = major;                                        
  }                                                                   
                                                                      
  _IO_Driver_address_table [major] = *driver_table;                   
 2007ed4:	c8 00 c0 00 	ld  [ %g3 ], %g4                               
 2007ed8:	c4 03 e2 e8 	ld  [ %o7 + 0x2e8 ], %g2                       
 2007edc:	82 23 40 01 	sub  %o5, %g1, %g1                             
 2007ee0:	c8 20 80 01 	st  %g4, [ %g2 + %g1 ]                         
 2007ee4:	c8 00 e0 04 	ld  [ %g3 + 4 ], %g4                           
 2007ee8:	82 00 80 01 	add  %g2, %g1, %g1                             
 2007eec:	c8 20 60 04 	st  %g4, [ %g1 + 4 ]                           
 2007ef0:	c4 00 e0 08 	ld  [ %g3 + 8 ], %g2                           
                                                                      
  _Thread_Enable_dispatch();                                          
                                                                      
  return rtems_io_initialize( major, 0, NULL );                       
 2007ef4:	b2 10 20 00 	clr  %i1                                       
    }                                                                 
                                                                      
    *registered_major = major;                                        
  }                                                                   
                                                                      
  _IO_Driver_address_table [major] = *driver_table;                   
 2007ef8:	c4 20 60 08 	st  %g2, [ %g1 + 8 ]                           
 2007efc:	c4 00 e0 0c 	ld  [ %g3 + 0xc ], %g2                         
                                                                      
  _Thread_Enable_dispatch();                                          
                                                                      
  return rtems_io_initialize( major, 0, NULL );                       
 2007f00:	b4 10 20 00 	clr  %i2                                       
    }                                                                 
                                                                      
    *registered_major = major;                                        
  }                                                                   
                                                                      
  _IO_Driver_address_table [major] = *driver_table;                   
 2007f04:	c4 20 60 0c 	st  %g2, [ %g1 + 0xc ]                         
 2007f08:	c4 00 e0 10 	ld  [ %g3 + 0x10 ], %g2                        
 2007f0c:	c4 20 60 10 	st  %g2, [ %g1 + 0x10 ]                        
 2007f10:	c4 00 e0 14 	ld  [ %g3 + 0x14 ], %g2                        
                                                                      
  _Thread_Enable_dispatch();                                          
 2007f14:	40 00 08 42 	call  200a01c <_Thread_Enable_dispatch>        
 2007f18:	c4 20 60 14 	st  %g2, [ %g1 + 0x14 ]                        
                                                                      
  return rtems_io_initialize( major, 0, NULL );                       
 2007f1c:	40 00 23 95 	call  2010d70 <rtems_io_initialize>            
 2007f20:	81 e8 00 00 	restore                                        
                                                                      
static inline bool rtems_io_is_empty_table(                           
  const rtems_driver_address_table *table                             
)                                                                     
{                                                                     
  return table->initialization_entry == NULL && table->open_entry == NULL;
 2007f24:	80 a0 a0 00 	cmp  %g2, 0                                    
 2007f28:	12 bf ff cb 	bne  2007e54 <rtems_io_register_driver+0x54>   
 2007f2c:	80 a3 c0 18 	cmp  %o7, %i0                                  
                                                                      
  if ( driver_table == NULL )                                         
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( rtems_io_is_empty_table( driver_table ) )                      
    return RTEMS_INVALID_ADDRESS;                                     
 2007f30:	88 10 20 09 	mov  9, %g4                                    
  _IO_Driver_address_table [major] = *driver_table;                   
                                                                      
  _Thread_Enable_dispatch();                                          
                                                                      
  return rtems_io_initialize( major, 0, NULL );                       
}                                                                     
 2007f34:	81 c7 e0 08 	ret                                            
 2007f38:	91 e8 00 04 	restore  %g0, %g4, %o0                         
      _Thread_Enable_dispatch();                                      
      return sc;                                                      
    }                                                                 
    major = *registered_major;                                        
  } else {                                                            
    rtems_driver_address_table *const table = _IO_Driver_address_table + major;
 2007f3c:	c8 03 e2 e8 	ld  [ %o7 + 0x2e8 ], %g4                       
 2007f40:	83 2e 20 03 	sll  %i0, 3, %g1                               
 2007f44:	9b 2e 20 05 	sll  %i0, 5, %o5                               
 2007f48:	84 23 40 01 	sub  %o5, %g1, %g2                             
                                                                      
static inline bool rtems_io_is_empty_table(                           
  const rtems_driver_address_table *table                             
)                                                                     
{                                                                     
  return table->initialization_entry == NULL && table->open_entry == NULL;
 2007f4c:	d8 01 00 02 	ld  [ %g4 + %g2 ], %o4                         
 2007f50:	80 a3 20 00 	cmp  %o4, 0                                    
 2007f54:	02 80 00 0b 	be  2007f80 <rtems_io_register_driver+0x180>   
 2007f58:	84 01 00 02 	add  %g4, %g2, %g2                             
    major = *registered_major;                                        
  } else {                                                            
    rtems_driver_address_table *const table = _IO_Driver_address_table + major;
                                                                      
    if ( !rtems_io_is_empty_table( table ) ) {                        
      _Thread_Enable_dispatch();                                      
 2007f5c:	40 00 08 30 	call  200a01c <_Thread_Enable_dispatch>        
 2007f60:	01 00 00 00 	nop                                            
      return RTEMS_RESOURCE_IN_USE;                                   
 2007f64:	10 bf ff b0 	b  2007e24 <rtems_io_register_driver+0x24>     
 2007f68:	88 10 20 0c 	mov  0xc, %g4	! c <PROM_START+0xc>             
    if ( rtems_io_is_empty_table( table ) )                           
      break;                                                          
  }                                                                   
                                                                      
  /* Assigns invalid value in case of failure */                      
  *major = m;                                                         
 2007f6c:	f0 26 80 00 	st  %i0, [ %i2 ]                               
                                                                      
  if ( major == 0 ) {                                                 
    rtems_status_code sc = rtems_io_obtain_major_number( registered_major );
                                                                      
    if ( sc != RTEMS_SUCCESSFUL ) {                                   
      _Thread_Enable_dispatch();                                      
 2007f70:	40 00 08 2b 	call  200a01c <_Thread_Enable_dispatch>        
 2007f74:	01 00 00 00 	nop                                            
      return sc;                                                      
 2007f78:	10 bf ff ab 	b  2007e24 <rtems_io_register_driver+0x24>     
 2007f7c:	88 10 20 05 	mov  5, %g4	! 5 <PROM_START+0x5>               
                                                                      
static inline bool rtems_io_is_empty_table(                           
  const rtems_driver_address_table *table                             
)                                                                     
{                                                                     
  return table->initialization_entry == NULL && table->open_entry == NULL;
 2007f80:	c4 00 a0 04 	ld  [ %g2 + 4 ], %g2                           
 2007f84:	80 a0 a0 00 	cmp  %g2, 0                                    
 2007f88:	12 bf ff f5 	bne  2007f5c <rtems_io_register_driver+0x15c>  
 2007f8c:	01 00 00 00 	nop                                            
    if ( !rtems_io_is_empty_table( table ) ) {                        
      _Thread_Enable_dispatch();                                      
      return RTEMS_RESOURCE_IN_USE;                                   
    }                                                                 
                                                                      
    *registered_major = major;                                        
 2007f90:	10 bf ff d1 	b  2007ed4 <rtems_io_register_driver+0xd4>     
 2007f94:	f0 26 80 00 	st  %i0, [ %i2 ]                               
    if ( rtems_io_is_empty_table( table ) )                           
      break;                                                          
  }                                                                   
                                                                      
  /* Assigns invalid value in case of failure */                      
  *major = m;                                                         
 2007f98:	10 bf ff f6 	b  2007f70 <rtems_io_register_driver+0x170>    <== NOT EXECUTED
 2007f9c:	c0 26 80 00 	clr  [ %i2 ]                                   <== NOT EXECUTED
                                                                      

02009578 <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) {
 2009578:	9d e3 bf a0 	save  %sp, -96, %sp                            
  uint32_t             i;                                             
  uint32_t             api_index;                                     
  Thread_Control      *the_thread;                                    
  Objects_Information *information;                                   
                                                                      
  if ( !routine )                                                     
 200957c:	80 a6 20 00 	cmp  %i0, 0                                    
 2009580:	02 80 00 20 	be  2009600 <rtems_iterate_over_all_threads+0x88><== NEVER TAKEN
 2009584:	37 00 80 81 	sethi  %hi(0x2020400), %i3                     
 2009588:	b6 16 e0 2c 	or  %i3, 0x2c, %i3	! 202042c <_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) 
 200958c:	b4 06 e0 0c 	add  %i3, 0xc, %i2                             
    #if !defined(RTEMS_POSIX_API) || defined(RTEMS_DEBUG)             
      if ( !_Objects_Information_table[ api_index ] )                 
        continue;                                                     
    #endif                                                            
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
 2009590:	c2 06 c0 00 	ld  [ %i3 ], %g1                               
 2009594:	f8 00 60 04 	ld  [ %g1 + 4 ], %i4                           
    if ( !information )                                               
 2009598:	80 a7 20 00 	cmp  %i4, 0                                    
 200959c:	22 80 00 16 	be,a   20095f4 <rtems_iterate_over_all_threads+0x7c>
 20095a0:	b6 06 e0 04 	add  %i3, 4, %i3                               
      continue;                                                       
                                                                      
    for ( i=1 ; i <= information->maximum ; i++ ) {                   
 20095a4:	c2 17 20 10 	lduh  [ %i4 + 0x10 ], %g1                      
 20095a8:	84 90 60 00 	orcc  %g1, 0, %g2                              
 20095ac:	22 80 00 12 	be,a   20095f4 <rtems_iterate_over_all_threads+0x7c>
 20095b0:	b6 06 e0 04 	add  %i3, 4, %i3                               
 20095b4:	ba 10 20 01 	mov  1, %i5                                    
      the_thread = (Thread_Control *)information->local_table[ i ];   
 20095b8:	c6 07 20 1c 	ld  [ %i4 + 0x1c ], %g3                        
 20095bc:	83 2f 60 02 	sll  %i5, 2, %g1                               
 20095c0:	c2 00 c0 01 	ld  [ %g3 + %g1 ], %g1                         
                                                                      
      if ( !the_thread )                                              
 20095c4:	90 90 60 00 	orcc  %g1, 0, %o0                              
 20095c8:	02 80 00 05 	be  20095dc <rtems_iterate_over_all_threads+0x64>
 20095cc:	ba 07 60 01 	inc  %i5                                       
	continue;                                                            
                                                                      
      (*routine)(the_thread);                                         
 20095d0:	9f c6 00 00 	call  %i0                                      
 20095d4:	01 00 00 00 	nop                                            
 20095d8:	c4 17 20 10 	lduh  [ %i4 + 0x10 ], %g2                      
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
    if ( !information )                                               
      continue;                                                       
                                                                      
    for ( i=1 ; i <= information->maximum ; i++ ) {                   
 20095dc:	83 28 a0 10 	sll  %g2, 0x10, %g1                            
 20095e0:	83 30 60 10 	srl  %g1, 0x10, %g1                            
 20095e4:	80 a0 40 1d 	cmp  %g1, %i5                                  
 20095e8:	3a bf ff f5 	bcc,a   20095bc <rtems_iterate_over_all_threads+0x44>
 20095ec:	c6 07 20 1c 	ld  [ %i4 + 0x1c ], %g3                        
 20095f0:	b6 06 e0 04 	add  %i3, 4, %i3                               
  Objects_Information *information;                                   
                                                                      
  if ( !routine )                                                     
    return;                                                           
                                                                      
  for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
 20095f4:	80 a6 c0 1a 	cmp  %i3, %i2                                  
 20095f8:	32 bf ff e7 	bne,a   2009594 <rtems_iterate_over_all_threads+0x1c>
 20095fc:	c2 06 c0 00 	ld  [ %i3 ], %g1                               
 2009600:	81 c7 e0 08 	ret                                            
 2009604:	81 e8 00 00 	restore                                        
                                                                      

0200c040 <rtems_libio_free>: */ void rtems_libio_free( rtems_libio_t *iop ) {
 200c040:	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 );
 200c044:	39 00 80 76 	sethi  %hi(0x201d800), %i4                     
 200c048:	d0 07 20 0c 	ld  [ %i4 + 0xc ], %o0	! 201d80c <rtems_libio_semaphore>
 200c04c:	92 10 20 00 	clr  %o1                                       
 200c050:	7f ff ea 3c 	call  2006940 <rtems_semaphore_obtain>         
 200c054:	94 10 20 00 	clr  %o2                                       
  rtems_libio_lock();                                                 
                                                                      
    if (iop->sem)                                                     
 200c058:	d0 06 20 30 	ld  [ %i0 + 0x30 ], %o0                        
 200c05c:	80 a2 20 00 	cmp  %o0, 0                                    
 200c060:	02 80 00 04 	be  200c070 <rtems_libio_free+0x30>            <== NEVER TAKEN
 200c064:	ba 10 00 18 	mov  %i0, %i5                                  
      rtems_semaphore_delete(iop->sem);                               
 200c068:	7f ff e9 ff 	call  2006864 <rtems_semaphore_delete>         
 200c06c:	01 00 00 00 	nop                                            
                                                                      
    iop->flags &= ~LIBIO_FLAGS_OPEN;                                  
 200c070:	c4 07 60 18 	ld  [ %i5 + 0x18 ], %g2                        
    iop->data1 = rtems_libio_iop_freelist;                            
 200c074:	03 00 80 76 	sethi  %hi(0x201d800), %g1                     
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
 200c078:	f0 07 20 0c 	ld  [ %i4 + 0xc ], %i0                         
 200c07c:	c6 00 60 08 	ld  [ %g1 + 8 ], %g3                           
  rtems_libio_lock();                                                 
                                                                      
    if (iop->sem)                                                     
      rtems_semaphore_delete(iop->sem);                               
                                                                      
    iop->flags &= ~LIBIO_FLAGS_OPEN;                                  
 200c080:	84 08 be ff 	and  %g2, -257, %g2                            
    iop->data1 = rtems_libio_iop_freelist;                            
 200c084:	c6 27 60 38 	st  %g3, [ %i5 + 0x38 ]                        
  rtems_libio_lock();                                                 
                                                                      
    if (iop->sem)                                                     
      rtems_semaphore_delete(iop->sem);                               
                                                                      
    iop->flags &= ~LIBIO_FLAGS_OPEN;                                  
 200c088:	c4 27 60 18 	st  %g2, [ %i5 + 0x18 ]                        
    iop->data1 = rtems_libio_iop_freelist;                            
    rtems_libio_iop_freelist = iop;                                   
 200c08c:	fa 20 60 08 	st  %i5, [ %g1 + 8 ]                           
 200c090:	7f ff ea 76 	call  2006a68 <rtems_semaphore_release>        
 200c094:	81 e8 00 00 	restore                                        
                                                                      

02003040 <rtems_libio_init>: * * Called by BSP startup code to initialize the libio subsystem. */ void rtems_libio_init( void ) {
 2003040:	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)                                  
 2003044:	03 00 80 73 	sethi  %hi(0x201cc00), %g1                     
 2003048:	fa 00 61 90 	ld  [ %g1 + 0x190 ], %i5	! 201cd90 <rtems_libio_number_iops>
 200304c:	80 a7 60 00 	cmp  %i5, 0                                    
 2003050:	02 80 00 19 	be  20030b4 <rtems_libio_init+0x74>            <== NEVER TAKEN
 2003054:	92 10 20 01 	mov  1, %o1                                    
    {                                                                 
        rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops,
 2003058:	90 10 00 1d 	mov  %i5, %o0                                  
 200305c:	7f ff fe a0 	call  2002adc <calloc>                         
 2003060:	92 10 20 40 	mov  0x40, %o1                                 
 2003064:	03 00 80 76 	sethi  %hi(0x201d800), %g1                     
                                                    sizeof(rtems_libio_t));
        if (rtems_libio_iops == NULL)                                 
 2003068:	80 a2 20 00 	cmp  %o0, 0                                    
 200306c:	02 80 00 26 	be  2003104 <rtems_libio_init+0xc4>            
 2003070:	d0 20 60 04 	st  %o0, [ %g1 + 4 ]                           
            rtems_fatal_error_occurred(RTEMS_NO_MEMORY);              
                                                                      
        iop = rtems_libio_iop_freelist = rtems_libio_iops;            
 2003074:	03 00 80 76 	sethi  %hi(0x201d800), %g1                     
        for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++)  
 2003078:	80 a7 60 01 	cmp  %i5, 1                                    
 200307c:	08 80 00 0c 	bleu  20030ac <rtems_libio_init+0x6c>          <== NEVER TAKEN
 2003080:	d0 20 60 08 	st  %o0, [ %g1 + 8 ]                           
 2003084:	82 10 00 08 	mov  %o0, %g1                                  
 2003088:	84 10 20 01 	mov  1, %g2                                    
          iop->data1 = iop + 1;                                       
 200308c:	82 00 60 40 	add  %g1, 0x40, %g1                            
 2003090:	84 00 a0 01 	inc  %g2                                       
                                                    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++)  
 2003094:	80 a0 80 1d 	cmp  %g2, %i5                                  
 2003098:	12 bf ff fd 	bne  200308c <rtems_libio_init+0x4c>           
 200309c:	c2 20 7f f8 	st  %g1, [ %g1 + -8 ]                          
 *  rtems_libio_init                                                  
 *                                                                    
 *  Called by BSP startup code to initialize the libio subsystem.     
 */                                                                   
                                                                      
void rtems_libio_init( void )                                         
 20030a0:	84 00 bf ff 	add  %g2, -1, %g2                              
 20030a4:	85 28 a0 06 	sll  %g2, 6, %g2                               
                                                    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++)  
 20030a8:	90 02 00 02 	add  %o0, %g2, %o0                             
          iop->data1 = iop + 1;                                       
        iop->data1 = NULL;                                            
 20030ac:	c0 22 20 38 	clr  [ %o0 + 0x38 ]                            
  /*                                                                  
   *  Create the binary semaphore used to provide mutual exclusion    
   *  on the IOP Table.                                               
   */                                                                 
                                                                      
  rc = rtems_semaphore_create(                                        
 20030b0:	92 10 20 01 	mov  1, %o1                                    
 20030b4:	11 13 10 92 	sethi  %hi(0x4c424800), %o0                    
 20030b8:	94 10 20 54 	mov  0x54, %o2                                 
 20030bc:	90 12 21 4f 	or  %o0, 0x14f, %o0                            
 20030c0:	96 10 20 00 	clr  %o3                                       
 20030c4:	19 00 80 76 	sethi  %hi(0x201d800), %o4                     
 20030c8:	40 00 0d 77 	call  20066a4 <rtems_semaphore_create>         
 20030cc:	98 13 20 0c 	or  %o4, 0xc, %o4	! 201d80c <rtems_libio_semaphore>
    1,                                                                
    RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, 
    RTEMS_NO_PRIORITY,                                                
    &rtems_libio_semaphore                                            
  );                                                                  
  if ( rc != RTEMS_SUCCESSFUL )                                       
 20030d0:	80 a2 20 00 	cmp  %o0, 0                                    
 20030d4:	12 80 00 0a 	bne  20030fc <rtems_libio_init+0xbc>           <== NEVER TAKEN
 20030d8:	03 00 80 73 	sethi  %hi(0x201cc00), %g1                     
                                                                      
  /*                                                                  
   *  Initialize the base file system infrastructure.                 
   */                                                                 
                                                                      
  if (rtems_fs_init_helper)                                           
 20030dc:	c2 00 61 94 	ld  [ %g1 + 0x194 ], %g1	! 201cd94 <rtems_fs_init_helper>
 20030e0:	80 a0 60 00 	cmp  %g1, 0                                    
 20030e4:	02 80 00 04 	be  20030f4 <rtems_libio_init+0xb4>            <== NEVER TAKEN
 20030e8:	01 00 00 00 	nop                                            
     (* rtems_fs_init_helper)();                                      
 20030ec:	9f c0 40 00 	call  %g1                                      
 20030f0:	01 00 00 00 	nop                                            
 20030f4:	81 c7 e0 08 	ret                                            
 20030f8:	81 e8 00 00 	restore                                        
    RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, 
    RTEMS_NO_PRIORITY,                                                
    &rtems_libio_semaphore                                            
  );                                                                  
  if ( rc != RTEMS_SUCCESSFUL )                                       
    rtems_fatal_error_occurred( rc );                                 
 20030fc:	40 00 0f d5 	call  2007050 <rtems_fatal_error_occurred>     <== NOT EXECUTED
 2003100:	01 00 00 00 	nop                                            <== NOT EXECUTED
    if (rtems_libio_number_iops > 0)                                  
    {                                                                 
        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);              
 2003104:	40 00 0f d3 	call  2007050 <rtems_fatal_error_occurred>     
 2003108:	90 10 20 1a 	mov  0x1a, %o0	! 1a <PROM_START+0x1a>          
                                                                      

0200c124 <rtems_libio_is_file_open>: */ int rtems_libio_is_file_open( void *node_access ) {
 200c124:	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 );
 200c128:	3b 00 80 76 	sethi  %hi(0x201d800), %i5                     
 200c12c:	d0 07 60 0c 	ld  [ %i5 + 0xc ], %o0	! 201d80c <rtems_libio_semaphore>
 200c130:	92 10 20 00 	clr  %o1                                       
 200c134:	7f ff ea 03 	call  2006940 <rtems_semaphore_obtain>         
 200c138:	94 10 20 00 	clr  %o2                                       
                                                                      
  /*                                                                  
   *  Look for any active file descriptor entry.                      
   */                                                                 
                                                                      
 for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){
 200c13c:	03 00 80 73 	sethi  %hi(0x201cc00), %g1                     
 200c140:	c2 00 61 90 	ld  [ %g1 + 0x190 ], %g1	! 201cd90 <rtems_libio_number_iops>
 200c144:	05 00 80 76 	sethi  %hi(0x201d800), %g2                     
int rtems_libio_is_file_open(                                         
  void         *node_access                                           
)                                                                     
{                                                                     
  rtems_libio_t     *iop;                                             
  int                result=0;                                        
 200c148:	b8 10 20 00 	clr  %i4                                       
                                                                      
  /*                                                                  
   *  Look for any active file descriptor entry.                      
   */                                                                 
                                                                      
 for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){
 200c14c:	80 a0 60 00 	cmp  %g1, 0                                    
 200c150:	02 80 00 0f 	be  200c18c <rtems_libio_is_file_open+0x68>    <== NEVER TAKEN
 200c154:	c4 00 a0 04 	ld  [ %g2 + 4 ], %g2                           
 200c158:	86 10 20 00 	clr  %g3                                       
    if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) {                       
 200c15c:	c8 00 a0 18 	ld  [ %g2 + 0x18 ], %g4                        
 200c160:	80 89 21 00 	btst  0x100, %g4                               
 200c164:	02 80 00 06 	be  200c17c <rtems_libio_is_file_open+0x58>    
 200c168:	86 00 e0 01 	inc  %g3                                       
       /*                                                             
        *  Check if this node is under the file system that we        
        *  are trying to dismount.                                    
        */                                                            
                                                                      
       if ( iop->pathinfo.node_access == node_access ) {              
 200c16c:	c8 00 a0 1c 	ld  [ %g2 + 0x1c ], %g4                        
 200c170:	80 a1 00 18 	cmp  %g4, %i0                                  
 200c174:	02 80 00 0b 	be  200c1a0 <rtems_libio_is_file_open+0x7c>    
 200c178:	d0 07 60 0c 	ld  [ %i5 + 0xc ], %o0                         
                                                                      
  /*                                                                  
   *  Look for any active file descriptor entry.                      
   */                                                                 
                                                                      
 for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){
 200c17c:	80 a0 c0 01 	cmp  %g3, %g1                                  
 200c180:	12 bf ff f7 	bne  200c15c <rtems_libio_is_file_open+0x38>   
 200c184:	84 00 a0 40 	add  %g2, 0x40, %g2                            
int rtems_libio_is_file_open(                                         
  void         *node_access                                           
)                                                                     
{                                                                     
  rtems_libio_t     *iop;                                             
  int                result=0;                                        
 200c188:	b8 10 20 00 	clr  %i4                                       
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
 200c18c:	d0 07 60 0c 	ld  [ %i5 + 0xc ], %o0                         
 200c190:	7f ff ea 36 	call  2006a68 <rtems_semaphore_release>        
 200c194:	b0 10 00 1c 	mov  %i4, %i0                                  
  }                                                                   
                                                                      
  rtems_libio_unlock();                                               
                                                                      
  return result;                                                      
}                                                                     
 200c198:	81 c7 e0 08 	ret                                            
 200c19c:	81 e8 00 00 	restore                                        
 200c1a0:	7f ff ea 32 	call  2006a68 <rtems_semaphore_release>        
 200c1a4:	b8 10 20 01 	mov  1, %i4                                    
 200c1a8:	81 c7 e0 08 	ret                                            
 200c1ac:	91 e8 00 1c 	restore  %g0, %i4, %o0                         
                                                                      

0200c098 <rtems_libio_is_open_files_in_fs>: */ int rtems_libio_is_open_files_in_fs( rtems_filesystem_mount_table_entry_t * fs_mt_entry ) {
 200c098:	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 );
 200c09c:	3b 00 80 76 	sethi  %hi(0x201d800), %i5                     
 200c0a0:	d0 07 60 0c 	ld  [ %i5 + 0xc ], %o0	! 201d80c <rtems_libio_semaphore>
 200c0a4:	92 10 20 00 	clr  %o1                                       
 200c0a8:	7f ff ea 26 	call  2006940 <rtems_semaphore_obtain>         
 200c0ac:	94 10 20 00 	clr  %o2                                       
                                                                      
  /*                                                                  
   *  Look for any active file descriptor entry.                      
   */                                                                 
                                                                      
  for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){
 200c0b0:	03 00 80 73 	sethi  %hi(0x201cc00), %g1                     
 200c0b4:	c2 00 61 90 	ld  [ %g1 + 0x190 ], %g1	! 201cd90 <rtems_libio_number_iops>
 200c0b8:	05 00 80 76 	sethi  %hi(0x201d800), %g2                     
int rtems_libio_is_open_files_in_fs(                                  
  rtems_filesystem_mount_table_entry_t * fs_mt_entry                  
)                                                                     
{                                                                     
  rtems_libio_t     *iop;                                             
  int                result = 0;                                      
 200c0bc:	b8 10 20 00 	clr  %i4                                       
                                                                      
  /*                                                                  
   *  Look for any active file descriptor entry.                      
   */                                                                 
                                                                      
  for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){
 200c0c0:	80 a0 60 00 	cmp  %g1, 0                                    
 200c0c4:	02 80 00 0f 	be  200c100 <rtems_libio_is_open_files_in_fs+0x68><== NEVER TAKEN
 200c0c8:	c4 00 a0 04 	ld  [ %g2 + 4 ], %g2                           
 200c0cc:	86 10 20 00 	clr  %g3                                       
                                                                      
    if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) {                       
 200c0d0:	c8 00 a0 18 	ld  [ %g2 + 0x18 ], %g4                        
 200c0d4:	80 89 21 00 	btst  0x100, %g4                               
 200c0d8:	02 80 00 06 	be  200c0f0 <rtems_libio_is_open_files_in_fs+0x58>
 200c0dc:	86 00 e0 01 	inc  %g3                                       
       /*                                                             
        *  Check if this node is under the file system that we        
        *  are trying to dismount.                                    
        */                                                            
                                                                      
       if ( iop->pathinfo.mt_entry == fs_mt_entry ) {                 
 200c0e0:	c8 00 a0 2c 	ld  [ %g2 + 0x2c ], %g4                        
 200c0e4:	80 a1 00 18 	cmp  %g4, %i0                                  
 200c0e8:	02 80 00 0b 	be  200c114 <rtems_libio_is_open_files_in_fs+0x7c>
 200c0ec:	d0 07 60 0c 	ld  [ %i5 + 0xc ], %o0                         
                                                                      
  /*                                                                  
   *  Look for any active file descriptor entry.                      
   */                                                                 
                                                                      
  for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){
 200c0f0:	80 a0 c0 01 	cmp  %g3, %g1                                  
 200c0f4:	12 bf ff f7 	bne  200c0d0 <rtems_libio_is_open_files_in_fs+0x38>
 200c0f8:	84 00 a0 40 	add  %g2, 0x40, %g2                            
int rtems_libio_is_open_files_in_fs(                                  
  rtems_filesystem_mount_table_entry_t * fs_mt_entry                  
)                                                                     
{                                                                     
  rtems_libio_t     *iop;                                             
  int                result = 0;                                      
 200c0fc:	b8 10 20 00 	clr  %i4                                       
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
 200c100:	d0 07 60 0c 	ld  [ %i5 + 0xc ], %o0                         
 200c104:	7f ff ea 59 	call  2006a68 <rtems_semaphore_release>        
 200c108:	b0 10 00 1c 	mov  %i4, %i0                                  
  }                                                                   
                                                                      
  rtems_libio_unlock();                                               
                                                                      
  return result;                                                      
}                                                                     
 200c10c:	81 c7 e0 08 	ret                                            
 200c110:	81 e8 00 00 	restore                                        
 200c114:	7f ff ea 55 	call  2006a68 <rtems_semaphore_release>        
 200c118:	b8 10 20 01 	mov  1, %i4                                    
 200c11c:	81 c7 e0 08 	ret                                            
 200c120:	91 e8 00 1c 	restore  %g0, %i4, %o0                         
                                                                      

02004004 <rtems_libio_set_private_env>: } } rtems_status_code rtems_libio_set_private_env(void) {
 2004004:	9d e3 bf 78 	save  %sp, -136, %sp                           
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_id task_id = rtems_task_self();                               
 2004008:	40 00 0c 28 	call  20070a8 <rtems_task_self>                
 200400c:	3b 00 80 56 	sethi  %hi(0x2015800), %i5                     
 2004010:	b8 10 00 08 	mov  %o0, %i4                                  
  rtems_filesystem_location_info_t root_loc;                          
  rtems_filesystem_location_info_t current_loc;                       
  rtems_user_env_t *new_env = NULL;                                   
  int rv = 0;                                                         
                                                                      
  rv = rtems_filesystem_evaluate_path("/", 1, 0, &root_loc, 0);       
 2004014:	92 10 20 01 	mov  1, %o1                                    
 2004018:	90 17 60 78 	or  %i5, 0x78, %o0                             
 200401c:	94 10 20 00 	clr  %o2                                       
 2004020:	96 07 bf d8 	add  %fp, -40, %o3                             
 2004024:	98 10 20 00 	clr  %o4                                       
 2004028:	7f ff fb 3f 	call  2002d24 <rtems_filesystem_evaluate_path> 
 200402c:	b0 10 20 1a 	mov  0x1a, %i0                                 
  if (rv != 0)                                                        
 2004030:	80 a2 20 00 	cmp  %o0, 0                                    
 2004034:	12 80 00 43 	bne  2004140 <rtems_libio_set_private_env+0x13c><== NEVER TAKEN
 2004038:	90 17 60 78 	or  %i5, 0x78, %o0                             
    goto error_0;                                                     
                                                                      
  rv = rtems_filesystem_evaluate_path("/", 1, 0, ¤t_loc, 0);    
 200403c:	92 10 20 01 	mov  1, %o1                                    
 2004040:	94 10 20 00 	clr  %o2                                       
 2004044:	96 07 bf ec 	add  %fp, -20, %o3                             
 2004048:	7f ff fb 37 	call  2002d24 <rtems_filesystem_evaluate_path> 
 200404c:	98 10 20 00 	clr  %o4                                       
  if (rv != 0)                                                        
 2004050:	80 a2 20 00 	cmp  %o0, 0                                    
 2004054:	12 80 00 38 	bne  2004134 <rtems_libio_set_private_env+0x130><== NEVER TAKEN
 2004058:	35 00 80 59 	sethi  %hi(0x2016400), %i2                     
   * Bharath: I'm not sure if the check can be reduced to             
   * if( rtems_current_user_env->task_id != task_id ) {               
   */                                                                 
                                                                      
  if (                                                                
    rtems_current_user_env == &rtems_global_user_env                  
 200405c:	fa 06 a2 0c 	ld  [ %i2 + 0x20c ], %i5	! 201660c <rtems_current_user_env>
  /*                                                                  
   * Bharath: I'm not sure if the check can be reduced to             
   * if( rtems_current_user_env->task_id != task_id ) {               
   */                                                                 
                                                                      
  if (                                                                
 2004060:	37 00 80 5b 	sethi  %hi(0x2016c00), %i3                     
 2004064:	b6 16 e3 c4 	or  %i3, 0x3c4, %i3	! 2016fc4 <rtems_global_user_env>
 2004068:	80 a7 40 1b 	cmp  %i5, %i3                                  
 200406c:	02 80 00 06 	be  2004084 <rtems_libio_set_private_env+0x80> 
 2004070:	01 00 00 00 	nop                                            
    rtems_current_user_env == &rtems_global_user_env                  
      || rtems_current_user_env->task_id != task_id                   
 2004074:	c2 07 40 00 	ld  [ %i5 ], %g1                               
 2004078:	80 a0 40 1c 	cmp  %g1, %i4                                  
 200407c:	02 80 00 10 	be  20040bc <rtems_libio_set_private_env+0xb8> 
 2004080:	90 10 00 1d 	mov  %i5, %o0                                  
  ) {                                                                 
    new_env = malloc(sizeof(rtems_user_env_t));                       
 2004084:	7f ff fc fb 	call  2003470 <malloc>                         
 2004088:	90 10 20 48 	mov  0x48, %o0                                 
    if (new_env == NULL)                                              
 200408c:	ba 92 20 00 	orcc  %o0, 0, %i5                              
 2004090:	02 80 00 27 	be  200412c <rtems_libio_set_private_env+0x128>
 2004094:	90 10 20 00 	clr  %o0                                       
                                                                      
    #ifdef HAVE_USERENV_REFCNT                                        
      new_env->refcnt = 1;                                            
    #endif                                                            
                                                                      
    sc = rtems_task_variable_add(                                     
 2004098:	92 16 a2 0c 	or  %i2, 0x20c, %o1                            
 200409c:	15 00 80 0f 	sethi  %hi(0x2003c00), %o2                     
 20040a0:	40 00 0c 21 	call  2007124 <rtems_task_variable_add>        
 20040a4:	94 12 a3 cc 	or  %o2, 0x3cc, %o2	! 2003fcc <free_user_env>  
      RTEMS_SELF,                                                     
      (void*)&rtems_current_user_env,                                 
      (void(*)(void *))free_user_env                                  
    );                                                                
    if (sc != RTEMS_SUCCESSFUL)                                       
 20040a8:	80 a2 20 00 	cmp  %o0, 0                                    
 20040ac:	12 80 00 1e 	bne  2004124 <rtems_libio_set_private_env+0x120>
 20040b0:	03 00 80 59 	sethi  %hi(0x2016400), %g1                     
      goto error_3;                                                   
                                                                      
    rtems_current_user_env = new_env;                                 
 20040b4:	fa 20 62 0c 	st  %i5, [ %g1 + 0x20c ]	! 201660c <rtems_current_user_env>
  }                                                                   
                                                                      
  /* Inherit the global values */                                     
  *rtems_current_user_env = rtems_global_user_env;                    
 20040b8:	90 10 00 1d 	mov  %i5, %o0                                  
 20040bc:	92 10 00 1b 	mov  %i3, %o1                                  
 20040c0:	40 00 30 81 	call  20102c4 <memcpy>                         
 20040c4:	94 10 20 48 	mov  0x48, %o2                                 
   * Clone the pathlocs. In contrast to most other code we must _not_ free the
   * original locs because what we are trying to do here is forking off clones.
   * The reason is a pathloc can be allocated by the file system and needs to
   * be freed when deleting the environment.                          
   */                                                                 
  rtems_filesystem_root = root_loc;                                   
 20040c8:	c2 07 bf d8 	ld  [ %fp + -40 ], %g1                         
  }                                                                   
                                                                      
  /* Inherit the global values */                                     
  *rtems_current_user_env = rtems_global_user_env;                    
                                                                      
  rtems_current_user_env->task_id = task_id;                          
 20040cc:	f8 27 40 00 	st  %i4, [ %i5 ]                               
   * Clone the pathlocs. In contrast to most other code we must _not_ free the
   * original locs because what we are trying to do here is forking off clones.
   * The reason is a pathloc can be allocated by the file system and needs to
   * be freed when deleting the environment.                          
   */                                                                 
  rtems_filesystem_root = root_loc;                                   
 20040d0:	c2 27 60 18 	st  %g1, [ %i5 + 0x18 ]                        
 20040d4:	c2 07 bf dc 	ld  [ %fp + -36 ], %g1                         
 20040d8:	c2 27 60 1c 	st  %g1, [ %i5 + 0x1c ]                        
 20040dc:	c2 07 bf e0 	ld  [ %fp + -32 ], %g1                         
 20040e0:	c2 27 60 20 	st  %g1, [ %i5 + 0x20 ]                        
 20040e4:	c2 07 bf e4 	ld  [ %fp + -28 ], %g1                         
 20040e8:	c2 27 60 24 	st  %g1, [ %i5 + 0x24 ]                        
 20040ec:	c2 07 bf e8 	ld  [ %fp + -24 ], %g1                         
 20040f0:	c2 27 60 28 	st  %g1, [ %i5 + 0x28 ]                        
  rtems_filesystem_current = current_loc;                             
 20040f4:	c2 07 bf ec 	ld  [ %fp + -20 ], %g1                         
 20040f8:	c2 27 60 04 	st  %g1, [ %i5 + 4 ]                           
 20040fc:	c2 07 bf f0 	ld  [ %fp + -16 ], %g1                         
 2004100:	c2 27 60 08 	st  %g1, [ %i5 + 8 ]                           
 2004104:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         
 2004108:	c2 27 60 0c 	st  %g1, [ %i5 + 0xc ]                         
 200410c:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
 2004110:	c2 27 60 10 	st  %g1, [ %i5 + 0x10 ]                        
 2004114:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 2004118:	c2 27 60 14 	st  %g1, [ %i5 + 0x14 ]                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 200411c:	81 c7 e0 08 	ret                                            
 2004120:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      
error_3:                                                              
  free(new_env);                                                      
 2004124:	7f ff fb 41 	call  2002e28 <free>                           
 2004128:	90 10 00 1d 	mov  %i5, %o0                                  
                                                                      
error_2:                                                              
  rtems_filesystem_freenode(¤t_loc);                            
 200412c:	7f ff fb 38 	call  2002e0c <rtems_filesystem_freenode>      
 2004130:	90 07 bf ec 	add  %fp, -20, %o0                             
                                                                      
error_1:                                                              
  rtems_filesystem_freenode(&root_loc);                               
 2004134:	90 07 bf d8 	add  %fp, -40, %o0                             
 2004138:	7f ff fb 35 	call  2002e0c <rtems_filesystem_freenode>      
 200413c:	b0 10 20 1a 	mov  0x1a, %i0                                 
                                                                      
error_0:                                                              
  return RTEMS_NO_MEMORY;                                             
}                                                                     
 2004140:	81 c7 e0 08 	ret                                            
 2004144:	81 e8 00 00 	restore                                        
                                                                      

02004148 <rtems_libio_share_private_env>: * b) mutex access to rtems_filesystem_current, rtems_filesytem_root * while changing any of those (chdir(), chroot()). */ rtems_status_code rtems_libio_share_private_env(rtems_id task_id) {
 2004148:	9d e3 bf 98 	save  %sp, -104, %sp                           
  rtems_id           current_task_id;                                 
                                                                      
  /*                                                                  
   * get current task id                                              
   */                                                                 
  current_task_id = rtems_task_self();                                
 200414c:	40 00 0b d7 	call  20070a8 <rtems_task_self>                
 2004150:	b6 10 20 00 	clr  %i3                                       
  /*                                                                  
   * If this was an attempt to share the task with self,              
   * if somebody wanted to do it... Lets tell them, its shared        
   */                                                                 
                                                                      
  if( task_id == current_task_id )                                    
 2004154:	80 a6 00 08 	cmp  %i0, %o0                                  
 2004158:	02 80 00 10 	be  2004198 <rtems_libio_share_private_env+0x50><== NEVER TAKEN
 200415c:	ba 10 00 08 	mov  %o0, %i5                                  
    return RTEMS_SUCCESSFUL;                                          
  /*                                                                  
   * Try to get the requested user environment                        
   */                                                                 
  sc = rtems_task_variable_get(                                       
 2004160:	90 10 00 18 	mov  %i0, %o0                                  
 2004164:	39 00 80 59 	sethi  %hi(0x2016400), %i4                     
 2004168:	94 07 bf fc 	add  %fp, -4, %o2                              
 200416c:	40 00 0c 1f 	call  20071e8 <rtems_task_variable_get>        
 2004170:	92 17 22 0c 	or  %i4, 0x20c, %o1                            
	 (void*)&shared_user_env );                                          
                                                                      
  /*                                                                  
   * If it was not successful, return the error code                  
   */                                                                 
    if (sc != RTEMS_SUCCESSFUL)                                       
 2004174:	b6 92 20 00 	orcc  %o0, 0, %i3                              
 2004178:	12 80 00 09 	bne  200419c <rtems_libio_share_private_env+0x54>
 200417c:	b0 10 00 1b 	mov  %i3, %i0                                  
     * If we have a current environment in place, we need to          
     * free it, since we will be sharing the variable with the        
     * shared_user_env                                                
     */                                                               
                                                                      
  if (rtems_current_user_env->task_id==current_task_id) {             
 2004180:	d0 07 22 0c 	ld  [ %i4 + 0x20c ], %o0                       
 2004184:	c2 02 00 00 	ld  [ %o0 ], %g1                               
 2004188:	80 a0 40 1d 	cmp  %g1, %i5                                  
 200418c:	02 80 00 06 	be  20041a4 <rtems_libio_share_private_env+0x5c>
 2004190:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
    rtems_user_env_t  *tmp = rtems_current_user_env;                  
    free_user_env( tmp );                                             
  }                                                                   
                                                                      
  /* the current_user_env is the same pointer that remote env */      
  rtems_current_user_env = shared_user_env;                           
 2004194:	c2 27 22 0c 	st  %g1, [ %i4 + 0x20c ]                       
#ifdef HAVE_USERENV_REFCNT                                            
  rtems_current_user_env->refcnt++;                                   
#endif                                                                
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 2004198:	b0 10 00 1b 	mov  %i3, %i0                                  
 200419c:	81 c7 e0 08 	ret                                            
 20041a0:	81 e8 00 00 	restore                                        
     * shared_user_env                                                
     */                                                               
                                                                      
  if (rtems_current_user_env->task_id==current_task_id) {             
    rtems_user_env_t  *tmp = rtems_current_user_env;                  
    free_user_env( tmp );                                             
 20041a4:	7f ff ff 8a 	call  2003fcc <free_user_env>                  
 20041a8:	b0 10 00 1b 	mov  %i3, %i0                                  
  }                                                                   
                                                                      
  /* the current_user_env is the same pointer that remote env */      
  rtems_current_user_env = shared_user_env;                           
 20041ac:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 20041b0:	c2 27 22 0c 	st  %g1, [ %i4 + 0x20c ]                       
 20041b4:	81 c7 e0 08 	ret                                            
 20041b8:	81 e8 00 00 	restore                                        
                                                                      

0200bf44 <rtems_libio_to_fcntl_flags>: uint32_t flags ) { uint32_t fcntl_flags = 0; if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) {
 200bf44:	84 0a 20 06 	and  %o0, 6, %g2                               
 200bf48:	80 a0 a0 06 	cmp  %g2, 6                                    
 200bf4c:	02 80 00 05 	be  200bf60 <rtems_libio_to_fcntl_flags+0x1c>  
 200bf50:	82 10 20 02 	mov  2, %g1                                    
    fcntl_flags |= O_RDWR;                                            
  } else if ( (flags & LIBIO_FLAGS_READ) == LIBIO_FLAGS_READ) {       
 200bf54:	80 8a 20 02 	btst  2, %o0                                   
 200bf58:	02 80 00 0e 	be  200bf90 <rtems_libio_to_fcntl_flags+0x4c>  <== NEVER TAKEN
 200bf5c:	82 10 20 00 	clr  %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 ) {     
 200bf60:	80 8a 20 01 	btst  1, %o0                                   
 200bf64:	02 80 00 04 	be  200bf74 <rtems_libio_to_fcntl_flags+0x30>  
 200bf68:	80 8a 22 00 	btst  0x200, %o0                               
    fcntl_flags |= O_NONBLOCK;                                        
 200bf6c:	05 00 00 10 	sethi  %hi(0x4000), %g2                        
 200bf70:	82 10 40 02 	or  %g1, %g2, %g1                              
  }                                                                   
                                                                      
  if ( (flags & LIBIO_FLAGS_APPEND) == LIBIO_FLAGS_APPEND ) {         
 200bf74:	32 80 00 02 	bne,a   200bf7c <rtems_libio_to_fcntl_flags+0x38>
 200bf78:	82 10 60 08 	or  %g1, 8, %g1                                
    fcntl_flags |= O_APPEND;                                          
  }                                                                   
                                                                      
  if ( (flags & LIBIO_FLAGS_CREATE) == LIBIO_FLAGS_CREATE ) {         
 200bf7c:	80 8a 24 00 	btst  0x400, %o0                               
 200bf80:	32 80 00 02 	bne,a   200bf88 <rtems_libio_to_fcntl_flags+0x44>
 200bf84:	82 10 62 00 	or  %g1, 0x200, %g1                            
    fcntl_flags |= O_CREAT;                                           
  }                                                                   
                                                                      
  return fcntl_flags;                                                 
}                                                                     
 200bf88:	81 c3 e0 08 	retl                                           
 200bf8c:	90 10 00 01 	mov  %g1, %o0                                  
                                                                      
  if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 
    fcntl_flags |= O_RDWR;                                            
  } else if ( (flags & LIBIO_FLAGS_READ) == LIBIO_FLAGS_READ) {       
    fcntl_flags |= O_RDONLY;                                          
  } else if ( (flags & LIBIO_FLAGS_WRITE) == LIBIO_FLAGS_WRITE) {     
 200bf90:	82 0a 20 04 	and  %o0, 4, %g1                               <== NOT EXECUTED
)                                                                     
{                                                                     
  uint32_t   fcntl_flags = 0;                                         
                                                                      
  if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 
    fcntl_flags |= O_RDWR;                                            
 200bf94:	80 a0 00 01 	cmp  %g0, %g1                                  <== NOT EXECUTED
 200bf98:	10 bf ff f2 	b  200bf60 <rtems_libio_to_fcntl_flags+0x1c>   <== NOT EXECUTED
 200bf9c:	82 40 20 00 	addx  %g0, 0, %g1                              <== NOT EXECUTED
                                                                      

02006908 <rtems_malloc_statistics_at_free>: * size and thus we skip updating the statistics. */ static void rtems_malloc_statistics_at_free( void *pointer ) {
 2006908:	9d e3 bf 98 	save  %sp, -104, %sp                           
  uintptr_t size;                                                     
                                                                      
  if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) {
 200690c:	03 00 80 8c 	sethi  %hi(0x2023000), %g1                     
 2006910:	d0 00 60 74 	ld  [ %g1 + 0x74 ], %o0	! 2023074 <RTEMS_Malloc_Heap>
 2006914:	92 10 00 18 	mov  %i0, %o1                                  
 2006918:	40 00 19 bb 	call  200d004 <_Protected_heap_Get_block_size> 
 200691c:	94 07 bf fc 	add  %fp, -4, %o2                              
 2006920:	80 8a 20 ff 	btst  0xff, %o0                                
 2006924:	02 80 00 08 	be  2006944 <rtems_malloc_statistics_at_free+0x3c><== NEVER TAKEN
 2006928:	c4 07 bf fc 	ld  [ %fp + -4 ], %g2                          
    MSBUMP(lifetime_freed, size);                                     
 200692c:	03 00 80 91 	sethi  %hi(0x2024400), %g1                     
 2006930:	82 10 60 28 	or  %g1, 0x28, %g1	! 2024428 <rtems_malloc_statistics>
 2006934:	d8 18 60 28 	ldd  [ %g1 + 0x28 ], %o4                       
 2006938:	86 83 40 02 	addcc  %o5, %g2, %g3                           
 200693c:	84 43 20 00 	addx  %o4, 0, %g2                              
 2006940:	c4 38 60 28 	std  %g2, [ %g1 + 0x28 ]                       
 2006944:	81 c7 e0 08 	ret                                            
 2006948:	81 e8 00 00 	restore                                        
                                                                      

0200694c <rtems_malloc_statistics_at_malloc>: } static void rtems_malloc_statistics_at_malloc( void *pointer ) {
 200694c:	9d e3 bf 98 	save  %sp, -104, %sp                           
  uintptr_t actual_size = 0;                                          
  uint32_t current_depth;                                             
  rtems_malloc_statistics_t *s = &rtems_malloc_statistics;            
                                                                      
  if ( !pointer )                                                     
 2006950:	80 a6 20 00 	cmp  %i0, 0                                    
 2006954:	02 80 00 14 	be  20069a4 <rtems_malloc_statistics_at_malloc+0x58><== NEVER TAKEN
 2006958:	c0 27 bf fc 	clr  [ %fp + -4 ]                              
    return;                                                           
                                                                      
  _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size);
 200695c:	03 00 80 8c 	sethi  %hi(0x2023000), %g1                     
 2006960:	d0 00 60 74 	ld  [ %g1 + 0x74 ], %o0	! 2023074 <RTEMS_Malloc_Heap>
 2006964:	92 10 00 18 	mov  %i0, %o1                                  
 2006968:	40 00 19 a7 	call  200d004 <_Protected_heap_Get_block_size> 
 200696c:	94 07 bf fc 	add  %fp, -4, %o2                              
                                                                      
  MSBUMP(lifetime_allocated, actual_size);                            
 2006970:	c4 07 bf fc 	ld  [ %fp + -4 ], %g2                          
 2006974:	03 00 80 91 	sethi  %hi(0x2024400), %g1                     
 2006978:	82 10 60 28 	or  %g1, 0x28, %g1	! 2024428 <rtems_malloc_statistics>
 200697c:	d8 18 60 20 	ldd  [ %g1 + 0x20 ], %o4                       
                                                                      
  current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed);
 2006980:	f0 00 60 2c 	ld  [ %g1 + 0x2c ], %i0                        
  if (current_depth > s->max_depth)                                   
 2006984:	c8 00 60 18 	ld  [ %g1 + 0x18 ], %g4                        
  if ( !pointer )                                                     
    return;                                                           
                                                                      
  _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size);
                                                                      
  MSBUMP(lifetime_allocated, actual_size);                            
 2006988:	86 83 40 02 	addcc  %o5, %g2, %g3                           
 200698c:	84 43 20 00 	addx  %o4, 0, %g2                              
 2006990:	c4 38 60 20 	std  %g2, [ %g1 + 0x20 ]                       
                                                                      
  current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed);
 2006994:	84 20 c0 18 	sub  %g3, %i0, %g2                             
  if (current_depth > s->max_depth)                                   
 2006998:	80 a0 80 04 	cmp  %g2, %g4                                  
 200699c:	38 80 00 02 	bgu,a   20069a4 <rtems_malloc_statistics_at_malloc+0x58>
 20069a0:	c4 20 60 18 	st  %g2, [ %g1 + 0x18 ]                        
 20069a4:	81 c7 e0 08 	ret                                            
 20069a8:	81 e8 00 00 	restore                                        
                                                                      

0200fd88 <rtems_memalign>: int rtems_memalign( void **pointer, size_t alignment, size_t size ) {
 200fd88:	9d e3 bf a0 	save  %sp, -96, %sp                            
 200fd8c:	ba 10 00 18 	mov  %i0, %i5                                  
  void *return_this;                                                  
                                                                      
  /*                                                                  
   *  Parameter error checks                                          
   */                                                                 
  if ( !pointer )                                                     
 200fd90:	80 a7 60 00 	cmp  %i5, 0                                    
 200fd94:	02 80 00 22 	be  200fe1c <rtems_memalign+0x94>              
 200fd98:	b0 10 20 16 	mov  0x16, %i0                                 
  *pointer = NULL;                                                    
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if not in correct system state.
   */                                                                 
  if ( _System_state_Is_up(_System_state_Get()) &&                    
 200fd9c:	03 00 80 6b 	sethi  %hi(0x201ac00), %g1                     
 200fda0:	c2 00 62 c4 	ld  [ %g1 + 0x2c4 ], %g1	! 201aec4 <_System_state_Current>
 200fda4:	80 a0 60 03 	cmp  %g1, 3                                    
 200fda8:	02 80 00 18 	be  200fe08 <rtems_memalign+0x80>              <== ALWAYS TAKEN
 200fdac:	c0 27 40 00 	clr  [ %i5 ]                                   
    return EINVAL;                                                    
                                                                      
  /*                                                                  
   *  If some free's have been deferred, then do them now.            
   */                                                                 
  malloc_deferred_frees_process();                                    
 200fdb0:	7f ff cf b6 	call  2003c88 <malloc_deferred_frees_process>  
 200fdb4:	b0 10 20 0c 	mov  0xc, %i0                                  
  Heap_Control *heap,                                                 
  uintptr_t size,                                                     
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return                                                              
 200fdb8:	03 00 80 68 	sethi  %hi(0x201a000), %g1                     
 200fdbc:	d0 00 60 48 	ld  [ %g1 + 0x48 ], %o0	! 201a048 <RTEMS_Malloc_Heap>
 200fdc0:	94 10 00 19 	mov  %i1, %o2                                  
 200fdc4:	92 10 00 1a 	mov  %i2, %o1                                  
 200fdc8:	7f ff e5 af 	call  2009484 <_Protected_heap_Allocate_aligned_with_boundary>
 200fdcc:	96 10 20 00 	clr  %o3                                       
  return_this = _Protected_heap_Allocate_aligned(                     
    RTEMS_Malloc_Heap,                                                
    size,                                                             
    alignment                                                         
  );                                                                  
  if ( !return_this )                                                 
 200fdd0:	80 a2 20 00 	cmp  %o0, 0                                    
 200fdd4:	02 80 00 12 	be  200fe1c <rtems_memalign+0x94>              
 200fdd8:	b2 10 00 08 	mov  %o0, %i1                                  
    return ENOMEM;                                                    
                                                                      
  /*                                                                  
   *  If configured, update the more involved statistics              
   */                                                                 
  if ( rtems_malloc_statistics_helpers )                              
 200fddc:	03 00 80 6a 	sethi  %hi(0x201a800), %g1                     
 200fde0:	c2 00 60 74 	ld  [ %g1 + 0x74 ], %g1	! 201a874 <rtems_malloc_statistics_helpers>
 200fde4:	80 a0 60 00 	cmp  %g1, 0                                    
 200fde8:	22 80 00 06 	be,a   200fe00 <rtems_memalign+0x78>           
 200fdec:	f2 27 40 00 	st  %i1, [ %i5 ]                               
    (*rtems_malloc_statistics_helpers->at_malloc)(pointer);           
 200fdf0:	c2 00 60 04 	ld  [ %g1 + 4 ], %g1                           
 200fdf4:	9f c0 40 00 	call  %g1                                      
 200fdf8:	90 10 00 1d 	mov  %i5, %o0                                  
                                                                      
  *pointer = return_this;                                             
 200fdfc:	f2 27 40 00 	st  %i1, [ %i5 ]                               
  return 0;                                                           
}                                                                     
 200fe00:	81 c7 e0 08 	ret                                            
 200fe04:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if not in correct system state.
   */                                                                 
  if ( _System_state_Is_up(_System_state_Get()) &&                    
       !malloc_is_system_state_OK() )                                 
 200fe08:	7f ff cf 8e 	call  2003c40 <malloc_is_system_state_OK>      
 200fe0c:	01 00 00 00 	nop                                            
  *pointer = NULL;                                                    
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if not in correct system state.
   */                                                                 
  if ( _System_state_Is_up(_System_state_Get()) &&                    
 200fe10:	80 8a 20 ff 	btst  0xff, %o0                                
 200fe14:	12 bf ff e7 	bne  200fdb0 <rtems_memalign+0x28>             <== ALWAYS TAKEN
 200fe18:	01 00 00 00 	nop                                            
  if ( rtems_malloc_statistics_helpers )                              
    (*rtems_malloc_statistics_helpers->at_malloc)(pointer);           
                                                                      
  *pointer = return_this;                                             
  return 0;                                                           
}                                                                     
 200fe1c:	81 c7 e0 08 	ret                                            
 200fe20:	81 e8 00 00 	restore                                        
                                                                      

0200e470 <rtems_mkdir>: return (retval); } int rtems_mkdir(const char *path, mode_t mode) {
 200e470:	9d e3 bf 58 	save  %sp, -168, %sp                           
  int success = 0;                                                    
  char *dup_path = strdup(path);                                      
 200e474:	90 10 00 18 	mov  %i0, %o0                                  
 200e478:	40 00 0e ed 	call  201202c <strdup>                         
 200e47c:	b0 10 3f ff 	mov  -1, %i0                                   
                                                                      
  if (dup_path != NULL) {                                             
 200e480:	80 a2 20 00 	cmp  %o0, 0                                    
 200e484:	02 80 00 2e 	be  200e53c <rtems_mkdir+0xcc>                 <== NEVER TAKEN
 200e488:	ba 10 00 08 	mov  %o0, %i5                                  
  char *p;                                                            
                                                                      
  p = path;                                                           
  oumask = 0;                                                         
  retval = 1;                                                         
  if (p[0] == '/')    /* Skip leading '/'. */                         
 200e48c:	c2 0a 00 00 	ldub  [ %o0 ], %g1                             
 200e490:	83 28 60 18 	sll  %g1, 0x18, %g1                            
 200e494:	85 38 60 18 	sra  %g1, 0x18, %g2                            
 200e498:	80 a0 a0 2f 	cmp  %g2, 0x2f                                 
 200e49c:	02 80 00 58 	be  200e5fc <rtems_mkdir+0x18c>                
 200e4a0:	b8 10 00 08 	mov  %o0, %i4                                  
    ++p;                                                              
  for (first = 1, last = 0; !last ; ++p) {                            
    if (p[0] == '\0')                                                 
 200e4a4:	83 38 60 18 	sra  %g1, 0x18, %g1                            
  char *p;                                                            
                                                                      
  p = path;                                                           
  oumask = 0;                                                         
  retval = 1;                                                         
  if (p[0] == '/')    /* Skip leading '/'. */                         
 200e4a8:	b4 10 20 00 	clr  %i2                                       
 200e4ac:	84 10 20 01 	mov  1, %g2                                    
        retval = 0;                                                   
        break;                                                        
      }                                                               
    }                                                                 
    if (!last)                                                        
        *p = '/';                                                     
 200e4b0:	b0 10 20 2f 	mov  0x2f, %i0                                 
    if (mkdir(path, last ? omode : S_IRWXU | S_IRWXG | S_IRWXO) < 0) {
      if (errno == EEXIST || errno == EISDIR) {                       
        if (stat(path, &sb) < 0) {                                    
          retval = 0;                                                 
          break;                                                      
        } else if (!S_ISDIR(sb.st_mode)) {                            
 200e4b4:	23 00 00 3c 	sethi  %hi(0xf000), %l1                        
  oumask = 0;                                                         
  retval = 1;                                                         
  if (p[0] == '/')    /* Skip leading '/'. */                         
    ++p;                                                              
  for (first = 1, last = 0; !last ; ++p) {                            
    if (p[0] == '\0')                                                 
 200e4b8:	80 a0 60 00 	cmp  %g1, 0                                    
 200e4bc:	02 80 00 0b 	be  200e4e8 <rtems_mkdir+0x78>                 <== NEVER TAKEN
 200e4c0:	21 00 00 10 	sethi  %hi(0x4000), %l0                        
      last = 1;                                                       
    else if (p[0] != '/')                                             
 200e4c4:	80 a0 60 2f 	cmp  %g1, 0x2f                                 
 200e4c8:	22 80 00 49 	be,a   200e5ec <rtems_mkdir+0x17c>             
 200e4cc:	c2 4f 20 01 	ldsb  [ %i4 + 1 ], %g1                         
        retval = 0;                                                   
        break;                                                        
      }                                                               
    }                                                                 
    if (!last)                                                        
        *p = '/';                                                     
 200e4d0:	c2 0f 20 01 	ldub  [ %i4 + 1 ], %g1                         
 200e4d4:	83 28 60 18 	sll  %g1, 0x18, %g1                            
  oumask = 0;                                                         
  retval = 1;                                                         
  if (p[0] == '/')    /* Skip leading '/'. */                         
    ++p;                                                              
  for (first = 1, last = 0; !last ; ++p) {                            
    if (p[0] == '\0')                                                 
 200e4d8:	83 38 60 18 	sra  %g1, 0x18, %g1                            
 200e4dc:	80 a0 60 00 	cmp  %g1, 0                                    
 200e4e0:	12 bf ff f9 	bne  200e4c4 <rtems_mkdir+0x54>                
 200e4e4:	b8 07 20 01 	inc  %i4                                       
      last = 1;                                                       
    else if (p[0] != '/')                                             
      continue;                                                       
    *p = '\0';                                                        
 200e4e8:	c0 2f 00 00 	clrb  [ %i4 ]                                  
 200e4ec:	b6 10 20 01 	mov  1, %i3                                    
    if (!last && p[1] == '\0')                                        
      last = 1;                                                       
    if (first) {                                                      
 200e4f0:	80 a0 a0 00 	cmp  %g2, 0                                    
 200e4f4:	12 80 00 37 	bne  200e5d0 <rtems_mkdir+0x160>               
 200e4f8:	01 00 00 00 	nop                                            
      oumask = umask(0);                                              
      numask = oumask & ~(S_IWUSR | S_IXUSR);                         
      (void)umask(numask);                                            
      first = 0;                                                      
    }                                                                 
    if (last)                                                         
 200e4fc:	80 a6 e0 00 	cmp  %i3, 0                                    
 200e500:	12 80 00 13 	bne  200e54c <rtems_mkdir+0xdc>                
 200e504:	92 10 21 ff 	mov  0x1ff, %o1                                
      (void)umask(oumask);                                            
    if (mkdir(path, last ? omode : S_IRWXU | S_IRWXG | S_IRWXO) < 0) {
 200e508:	7f ff d8 c5 	call  200481c <mkdir>                          
 200e50c:	90 10 00 1d 	mov  %i5, %o0                                  
 200e510:	80 a2 20 00 	cmp  %o0, 0                                    
 200e514:	06 80 00 16 	bl  200e56c <rtems_mkdir+0xfc>                 
 200e518:	80 a6 e0 00 	cmp  %i3, 0                                    
      } else {                                                        
        retval = 0;                                                   
        break;                                                        
      }                                                               
    }                                                                 
    if (!last)                                                        
 200e51c:	22 80 00 0a 	be,a   200e544 <rtems_mkdir+0xd4>              
 200e520:	f0 2f 00 00 	stb  %i0, [ %i4 ]                              
 200e524:	b8 10 20 01 	mov  1, %i4                                    
  int success = 0;                                                    
  char *dup_path = strdup(path);                                      
                                                                      
  if (dup_path != NULL) {                                             
    success = build(dup_path, mode);                                  
    free(dup_path);                                                   
 200e528:	7f ff d6 da 	call  2004090 <free>                           
 200e52c:	90 10 00 1d 	mov  %i5, %o0                                  
  }                                                                   
                                                                      
  return success != 0 ? 0 : -1;                                       
 200e530:	80 a7 20 00 	cmp  %i4, 0                                    
 200e534:	02 80 00 48 	be  200e654 <rtems_mkdir+0x1e4>                <== NEVER TAKEN
 200e538:	b0 10 20 00 	clr  %i0                                       
}                                                                     
 200e53c:	81 c7 e0 08 	ret                                            
 200e540:	81 e8 00 00 	restore                                        
        retval = 0;                                                   
        break;                                                        
      }                                                               
    }                                                                 
    if (!last)                                                        
        *p = '/';                                                     
 200e544:	10 bf ff e3 	b  200e4d0 <rtems_mkdir+0x60>                  
 200e548:	84 10 20 00 	clr  %g2                                       
      numask = oumask & ~(S_IWUSR | S_IXUSR);                         
      (void)umask(numask);                                            
      first = 0;                                                      
    }                                                                 
    if (last)                                                         
      (void)umask(oumask);                                            
 200e54c:	40 00 00 7d 	call  200e740 <umask>                          
 200e550:	90 10 00 1a 	mov  %i2, %o0                                  
    if (mkdir(path, last ? omode : S_IRWXU | S_IRWXG | S_IRWXO) < 0) {
 200e554:	92 10 00 19 	mov  %i1, %o1                                  
 200e558:	7f ff d8 b1 	call  200481c <mkdir>                          
 200e55c:	90 10 00 1d 	mov  %i5, %o0                                  
 200e560:	80 a2 20 00 	cmp  %o0, 0                                    
 200e564:	16 bf ff ee 	bge  200e51c <rtems_mkdir+0xac>                
 200e568:	80 a6 e0 00 	cmp  %i3, 0                                    
      if (errno == EEXIST || errno == EISDIR) {                       
 200e56c:	40 00 0b 22 	call  20111f4 <__errno>                        
 200e570:	01 00 00 00 	nop                                            
 200e574:	c2 02 00 00 	ld  [ %o0 ], %g1                               
 200e578:	80 a0 60 11 	cmp  %g1, 0x11                                 
 200e57c:	02 80 00 08 	be  200e59c <rtems_mkdir+0x12c>                
 200e580:	90 10 00 1d 	mov  %i5, %o0                                  
 200e584:	40 00 0b 1c 	call  20111f4 <__errno>                        
 200e588:	01 00 00 00 	nop                                            
 200e58c:	c2 02 00 00 	ld  [ %o0 ], %g1                               
 200e590:	80 a0 60 15 	cmp  %g1, 0x15                                 
 200e594:	12 80 00 32 	bne  200e65c <rtems_mkdir+0x1ec>               <== ALWAYS TAKEN
 200e598:	90 10 00 1d 	mov  %i5, %o0                                  
        if (stat(path, &sb) < 0) {                                    
 200e59c:	40 00 00 34 	call  200e66c <stat>                           
 200e5a0:	92 07 bf b8 	add  %fp, -72, %o1                             
 200e5a4:	80 a2 20 00 	cmp  %o0, 0                                    
 200e5a8:	06 80 00 2d 	bl  200e65c <rtems_mkdir+0x1ec>                <== NEVER TAKEN
 200e5ac:	c2 07 bf c4 	ld  [ %fp + -60 ], %g1                         
          retval = 0;                                                 
          break;                                                      
        } else if (!S_ISDIR(sb.st_mode)) {                            
 200e5b0:	82 08 40 11 	and  %g1, %l1, %g1                             
 200e5b4:	80 a0 40 10 	cmp  %g1, %l0                                  
 200e5b8:	12 80 00 15 	bne  200e60c <rtems_mkdir+0x19c>               
 200e5bc:	80 a6 e0 00 	cmp  %i3, 0                                    
          else                                                        
            errno = ENOTDIR;                                          
          retval = 0;                                                 
          break;                                                      
        }                                                             
        if (last)                                                     
 200e5c0:	22 bf ff e1 	be,a   200e544 <rtems_mkdir+0xd4>              
 200e5c4:	f0 2f 00 00 	stb  %i0, [ %i4 ]                              
          retval = 2;                                                 
 200e5c8:	10 bf ff d8 	b  200e528 <rtems_mkdir+0xb8>                  
 200e5cc:	b8 10 20 02 	mov  2, %i4                                    
       *    mkdir [-m mode] dir                                       
       *                                                              
       * We change the user's umask and then restore it,              
       * instead of doing chmod's.                                    
       */                                                             
      oumask = umask(0);                                              
 200e5d0:	40 00 00 5c 	call  200e740 <umask>                          
 200e5d4:	90 10 20 00 	clr  %o0                                       
 200e5d8:	b4 10 00 08 	mov  %o0, %i2                                  
      numask = oumask & ~(S_IWUSR | S_IXUSR);                         
      (void)umask(numask);                                            
 200e5dc:	40 00 00 59 	call  200e740 <umask>                          
 200e5e0:	90 0a 3f 3f 	and  %o0, -193, %o0                            
      first = 0;                                                      
    }                                                                 
    if (last)                                                         
 200e5e4:	10 bf ff c7 	b  200e500 <rtems_mkdir+0x90>                  
 200e5e8:	80 a6 e0 00 	cmp  %i3, 0                                    
  for (first = 1, last = 0; !last ; ++p) {                            
    if (p[0] == '\0')                                                 
      last = 1;                                                       
    else if (p[0] != '/')                                             
      continue;                                                       
    *p = '\0';                                                        
 200e5ec:	c0 2f 00 00 	clrb  [ %i4 ]                                  
    if (!last && p[1] == '\0')                                        
 200e5f0:	80 a0 00 01 	cmp  %g0, %g1                                  
 200e5f4:	10 bf ff bf 	b  200e4f0 <rtems_mkdir+0x80>                  
 200e5f8:	b6 60 3f ff 	subx  %g0, -1, %i3                             
                                                                      
  p = path;                                                           
  oumask = 0;                                                         
  retval = 1;                                                         
  if (p[0] == '/')    /* Skip leading '/'. */                         
    ++p;                                                              
 200e5fc:	c2 0a 20 01 	ldub  [ %o0 + 1 ], %g1                         
 200e600:	b8 02 20 01 	add  %o0, 1, %i4                               
 200e604:	10 bf ff a8 	b  200e4a4 <rtems_mkdir+0x34>                  
 200e608:	83 28 60 18 	sll  %g1, 0x18, %g1                            
      if (errno == EEXIST || errno == EISDIR) {                       
        if (stat(path, &sb) < 0) {                                    
          retval = 0;                                                 
          break;                                                      
        } else if (!S_ISDIR(sb.st_mode)) {                            
          if (last)                                                   
 200e60c:	02 80 00 0a 	be  200e634 <rtems_mkdir+0x1c4>                
 200e610:	01 00 00 00 	nop                                            
            errno = EEXIST;                                           
 200e614:	40 00 0a f8 	call  20111f4 <__errno>                        
 200e618:	b0 10 3f ff 	mov  -1, %i0	! ffffffff <RAM_END+0xfdbfffff>   
 200e61c:	82 10 20 11 	mov  0x11, %g1                                 
 200e620:	c2 22 00 00 	st  %g1, [ %o0 ]                               
  int success = 0;                                                    
  char *dup_path = strdup(path);                                      
                                                                      
  if (dup_path != NULL) {                                             
    success = build(dup_path, mode);                                  
    free(dup_path);                                                   
 200e624:	7f ff d6 9b 	call  2004090 <free>                           
 200e628:	90 10 00 1d 	mov  %i5, %o0                                  
 200e62c:	81 c7 e0 08 	ret                                            
 200e630:	81 e8 00 00 	restore                                        
          break;                                                      
        } else if (!S_ISDIR(sb.st_mode)) {                            
          if (last)                                                   
            errno = EEXIST;                                           
          else                                                        
            errno = ENOTDIR;                                          
 200e634:	40 00 0a f0 	call  20111f4 <__errno>                        
 200e638:	01 00 00 00 	nop                                            
 200e63c:	82 10 20 14 	mov  0x14, %g1	! 14 <PROM_START+0x14>          
 200e640:	c2 22 00 00 	st  %g1, [ %o0 ]                               
    }                                                                 
    if (!last)                                                        
        *p = '/';                                                     
  }                                                                   
  if (!first && !last)                                                
    (void)umask(oumask);                                              
 200e644:	40 00 00 3f 	call  200e740 <umask>                          
 200e648:	90 10 00 1a 	mov  %i2, %o0                                  
  int success = 0;                                                    
  char *dup_path = strdup(path);                                      
                                                                      
  if (dup_path != NULL) {                                             
    success = build(dup_path, mode);                                  
    free(dup_path);                                                   
 200e64c:	7f ff d6 91 	call  2004090 <free>                           
 200e650:	90 10 00 1d 	mov  %i5, %o0                                  
  }                                                                   
                                                                      
  return success != 0 ? 0 : -1;                                       
}                                                                     
 200e654:	81 c7 e0 08 	ret                                            
 200e658:	91 e8 3f ff 	restore  %g0, -1, %o0                          
      }                                                               
    }                                                                 
    if (!last)                                                        
        *p = '/';                                                     
  }                                                                   
  if (!first && !last)                                                
 200e65c:	80 a6 e0 00 	cmp  %i3, 0                                    
 200e660:	02 bf ff f9 	be  200e644 <rtems_mkdir+0x1d4>                <== NEVER TAKEN
 200e664:	01 00 00 00 	nop                                            
 200e668:	30 bf ff f9 	b,a   200e64c <rtems_mkdir+0x1dc>              
                                                                      

020081b8 <rtems_object_get_class_information>: rtems_status_code rtems_object_get_class_information( int the_api, int the_class, rtems_object_api_class_information *info ) {
 20081b8:	9d e3 bf a0 	save  %sp, -96, %sp                            
 20081bc:	90 10 00 18 	mov  %i0, %o0                                  
  int                  i;                                             
                                                                      
  /*                                                                  
   * Validate parameters and look up information structure.           
   */                                                                 
  if ( !info )                                                        
 20081c0:	80 a6 a0 00 	cmp  %i2, 0                                    
 20081c4:	02 80 00 21 	be  2008248 <rtems_object_get_class_information+0x90>
 20081c8:	b0 10 20 09 	mov  9, %i0                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  obj_info = _Objects_Get_information( the_api, the_class );          
 20081cc:	93 2e 60 10 	sll  %i1, 0x10, %o1                            
  if ( !obj_info )                                                    
    return RTEMS_INVALID_NUMBER;                                      
 20081d0:	b0 10 20 0a 	mov  0xa, %i0                                  
   * Validate parameters and look up information structure.           
   */                                                                 
  if ( !info )                                                        
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  obj_info = _Objects_Get_information( the_api, the_class );          
 20081d4:	40 00 07 7d 	call  2009fc8 <_Objects_Get_information>       
 20081d8:	93 32 60 10 	srl  %o1, 0x10, %o1                            
  if ( !obj_info )                                                    
 20081dc:	80 a2 20 00 	cmp  %o0, 0                                    
 20081e0:	02 80 00 1a 	be  2008248 <rtems_object_get_class_information+0x90>
 20081e4:	01 00 00 00 	nop                                            
                                                                      
  /*                                                                  
   * Return information about this object class to the user.          
   */                                                                 
  info->minimum_id  = obj_info->minimum_id;                           
  info->maximum_id  = obj_info->maximum_id;                           
 20081e8:	c4 02 20 0c 	ld  [ %o0 + 0xc ], %g2                         
  info->auto_extend = obj_info->auto_extend;                          
  info->maximum     = obj_info->maximum;                              
 20081ec:	c8 12 20 10 	lduh  [ %o0 + 0x10 ], %g4                      
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  /*                                                                  
   * Return information about this object class to the user.          
   */                                                                 
  info->minimum_id  = obj_info->minimum_id;                           
 20081f0:	c6 02 20 08 	ld  [ %o0 + 8 ], %g3                           
  info->maximum_id  = obj_info->maximum_id;                           
  info->auto_extend = obj_info->auto_extend;                          
 20081f4:	c2 0a 20 12 	ldub  [ %o0 + 0x12 ], %g1                      
                                                                      
  /*                                                                  
   * Return information about this object class to the user.          
   */                                                                 
  info->minimum_id  = obj_info->minimum_id;                           
  info->maximum_id  = obj_info->maximum_id;                           
 20081f8:	c4 26 a0 04 	st  %g2, [ %i2 + 4 ]                           
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  /*                                                                  
   * Return information about this object class to the user.          
   */                                                                 
  info->minimum_id  = obj_info->minimum_id;                           
 20081fc:	c6 26 80 00 	st  %g3, [ %i2 ]                               
  info->maximum_id  = obj_info->maximum_id;                           
  info->auto_extend = obj_info->auto_extend;                          
 2008200:	c2 2e a0 0c 	stb  %g1, [ %i2 + 0xc ]                        
  info->maximum     = obj_info->maximum;                              
 2008204:	c8 26 a0 08 	st  %g4, [ %i2 + 8 ]                           
                                                                      
  for ( unallocated=0, i=1 ; i <= info->maximum ; i++ )               
 2008208:	80 a1 20 00 	cmp  %g4, 0                                    
 200820c:	02 80 00 0d 	be  2008240 <rtems_object_get_class_information+0x88><== NEVER TAKEN
 2008210:	84 10 20 00 	clr  %g2                                       
 2008214:	de 02 20 1c 	ld  [ %o0 + 0x1c ], %o7                        
 2008218:	86 10 20 01 	mov  1, %g3                                    
 200821c:	82 10 20 01 	mov  1, %g1                                    
    if ( !obj_info->local_table[i] )                                  
 2008220:	87 28 e0 02 	sll  %g3, 2, %g3                               
 2008224:	c6 03 c0 03 	ld  [ %o7 + %g3 ], %g3                         
  info->minimum_id  = obj_info->minimum_id;                           
  info->maximum_id  = obj_info->maximum_id;                           
  info->auto_extend = obj_info->auto_extend;                          
  info->maximum     = obj_info->maximum;                              
                                                                      
  for ( unallocated=0, i=1 ; i <= info->maximum ; i++ )               
 2008228:	82 00 60 01 	inc  %g1                                       
    if ( !obj_info->local_table[i] )                                  
      unallocated++;                                                  
 200822c:	80 a0 00 03 	cmp  %g0, %g3                                  
 2008230:	84 60 bf ff 	subx  %g2, -1, %g2                             
  info->minimum_id  = obj_info->minimum_id;                           
  info->maximum_id  = obj_info->maximum_id;                           
  info->auto_extend = obj_info->auto_extend;                          
  info->maximum     = obj_info->maximum;                              
                                                                      
  for ( unallocated=0, i=1 ; i <= info->maximum ; i++ )               
 2008234:	80 a1 00 01 	cmp  %g4, %g1                                  
 2008238:	1a bf ff fa 	bcc  2008220 <rtems_object_get_class_information+0x68>
 200823c:	86 10 00 01 	mov  %g1, %g3                                  
    if ( !obj_info->local_table[i] )                                  
      unallocated++;                                                  
                                                                      
  info->unallocated = unallocated;                                    
 2008240:	c4 26 a0 10 	st  %g2, [ %i2 + 0x10 ]                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 2008244:	b0 10 20 00 	clr  %i0                                       
}                                                                     
 2008248:	81 c7 e0 08 	ret                                            
 200824c:	81 e8 00 00 	restore                                        
                                                                      

02013dbc <rtems_partition_create>: uint32_t length, uint32_t buffer_size, rtems_attribute attribute_set, rtems_id *id ) {
 2013dbc:	9d e3 bf a0 	save  %sp, -96, %sp                            
  register Partition_Control *the_partition;                          
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
 2013dc0:	80 a6 20 00 	cmp  %i0, 0                                    
 2013dc4:	12 80 00 04 	bne  2013dd4 <rtems_partition_create+0x18>     
 2013dc8:	82 10 20 03 	mov  3, %g1                                    
    );                                                                
#endif                                                                
                                                                      
  _Thread_Enable_dispatch();                                          
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 2013dcc:	81 c7 e0 08 	ret                                            
 2013dd0:	91 e8 00 01 	restore  %g0, %g1, %o0                         
  register Partition_Control *the_partition;                          
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
    return RTEMS_INVALID_NAME;                                        
                                                                      
  if ( !starting_address )                                            
 2013dd4:	80 a6 60 00 	cmp  %i1, 0                                    
 2013dd8:	02 bf ff fd 	be  2013dcc <rtems_partition_create+0x10>      
 2013ddc:	82 10 20 09 	mov  9, %g1                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !id )                                                          
 2013de0:	80 a7 60 00 	cmp  %i5, 0                                    
 2013de4:	02 bf ff fa 	be  2013dcc <rtems_partition_create+0x10>      <== NEVER TAKEN
 2013de8:	80 a6 e0 00 	cmp  %i3, 0                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( length == 0 || buffer_size == 0 || length < buffer_size ||     
 2013dec:	02 bf ff f8 	be  2013dcc <rtems_partition_create+0x10>      
 2013df0:	82 10 20 08 	mov  8, %g1                                    
 2013df4:	80 a6 a0 00 	cmp  %i2, 0                                    
 2013df8:	02 bf ff f5 	be  2013dcc <rtems_partition_create+0x10>      
 2013dfc:	80 a6 80 1b 	cmp  %i2, %i3                                  
 2013e00:	0a bf ff f3 	bcs  2013dcc <rtems_partition_create+0x10>     
 2013e04:	80 8e e0 07 	btst  7, %i3                                   
 2013e08:	12 bf ff f1 	bne  2013dcc <rtems_partition_create+0x10>     
 2013e0c:	80 8e 60 07 	btst  7, %i1                                   
         !_Partition_Is_buffer_size_aligned( buffer_size ) )          
    return RTEMS_INVALID_SIZE;                                        
                                                                      
  if ( !_Addresses_Is_aligned( starting_address ) )                   
 2013e10:	12 bf ff ef 	bne  2013dcc <rtems_partition_create+0x10>     
 2013e14:	82 10 20 09 	mov  9, %g1                                    
   *                                                                  
   * This rountine increments the thread dispatch level               
   */                                                                 
  RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
  {                                                                   
    _Thread_Dispatch_disable_level++;                                 
 2013e18:	03 00 80 ed 	sethi  %hi(0x203b400), %g1                     
 2013e1c:	c4 00 62 60 	ld  [ %g1 + 0x260 ], %g2	! 203b660 <_Thread_Dispatch_disable_level>
 2013e20:	84 00 a0 01 	inc  %g2                                       
 2013e24:	c4 20 62 60 	st  %g2, [ %g1 + 0x260 ]                       
    return _Thread_Dispatch_disable_level;                            
 2013e28:	c2 00 62 60 	ld  [ %g1 + 0x260 ], %g1                       
 *  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 );
 2013e2c:	23 00 80 ed 	sethi  %hi(0x203b400), %l1                     
 2013e30:	40 00 13 57 	call  2018b8c <_Objects_Allocate>              
 2013e34:	90 14 60 74 	or  %l1, 0x74, %o0	! 203b474 <_Partition_Information>
                                                                      
  _Thread_Disable_dispatch();               /* prevents deletion */   
                                                                      
  the_partition = _Partition_Allocate();                              
                                                                      
  if ( !the_partition ) {                                             
 2013e38:	a0 92 20 00 	orcc  %o0, 0, %l0                              
 2013e3c:	02 80 00 1a 	be  2013ea4 <rtems_partition_create+0xe8>      
 2013e40:	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;               
 2013e44:	f8 24 20 1c 	st  %i4, [ %l0 + 0x1c ]                        
    _Thread_Enable_dispatch();                                        
    return RTEMS_TOO_MANY;                                            
  }                                                                   
#endif                                                                
                                                                      
  the_partition->starting_address      = starting_address;            
 2013e48:	f2 24 20 10 	st  %i1, [ %l0 + 0x10 ]                        
  the_partition->length                = length;                      
 2013e4c:	f4 24 20 14 	st  %i2, [ %l0 + 0x14 ]                        
  the_partition->buffer_size           = buffer_size;                 
 2013e50:	f6 24 20 18 	st  %i3, [ %l0 + 0x18 ]                        
  the_partition->attribute_set         = attribute_set;               
  the_partition->number_of_used_blocks = 0;                           
 2013e54:	c0 24 20 20 	clr  [ %l0 + 0x20 ]                            
                                                                      
  _Chain_Initialize( &the_partition->Memory, starting_address,        
                        length / buffer_size, buffer_size );          
 2013e58:	40 00 5c 07 	call  202ae74 <.udiv>                          
 2013e5c:	90 10 00 1a 	mov  %i2, %o0                                  
  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,        
 2013e60:	92 10 00 19 	mov  %i1, %o1                                  
                        length / buffer_size, buffer_size );          
 2013e64:	94 10 00 08 	mov  %o0, %o2                                  
  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,        
 2013e68:	96 10 00 1b 	mov  %i3, %o3                                  
 2013e6c:	b8 04 20 24 	add  %l0, 0x24, %i4                            
 2013e70:	40 00 0c e0 	call  20171f0 <_Chain_Initialize>              
 2013e74:	90 10 00 1c 	mov  %i4, %o0                                  
  Objects_Information *information,                                   
  Objects_Control     *the_object,                                    
  Objects_Name         name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
 2013e78:	c4 14 20 0a 	lduh  [ %l0 + 0xa ], %g2                       
    );                                                                
#endif                                                                
                                                                      
  _Thread_Enable_dispatch();                                          
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 2013e7c:	a2 14 60 74 	or  %l1, 0x74, %l1                             
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 2013e80:	c6 04 60 1c 	ld  [ %l1 + 0x1c ], %g3                        
  Objects_Information *information,                                   
  Objects_Control     *the_object,                                    
  Objects_Name         name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
 2013e84:	c2 04 20 08 	ld  [ %l0 + 8 ], %g1                           
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 2013e88:	85 28 a0 02 	sll  %g2, 2, %g2                               
 2013e8c:	e0 20 c0 02 	st  %l0, [ %g3 + %g2 ]                         
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  the_object->name = name;                                            
 2013e90:	f0 24 20 0c 	st  %i0, [ %l0 + 0xc ]                         
      name,                                                           
      0                  /* Not used */                               
    );                                                                
#endif                                                                
                                                                      
  _Thread_Enable_dispatch();                                          
 2013e94:	40 00 18 90 	call  201a0d4 <_Thread_Enable_dispatch>        
 2013e98:	c2 27 40 00 	st  %g1, [ %i5 ]                               
  return RTEMS_SUCCESSFUL;                                            
 2013e9c:	10 bf ff cc 	b  2013dcc <rtems_partition_create+0x10>       
 2013ea0:	82 10 20 00 	clr  %g1                                       
  _Thread_Disable_dispatch();               /* prevents deletion */   
                                                                      
  the_partition = _Partition_Allocate();                              
                                                                      
  if ( !the_partition ) {                                             
    _Thread_Enable_dispatch();                                        
 2013ea4:	40 00 18 8c 	call  201a0d4 <_Thread_Enable_dispatch>        
 2013ea8:	01 00 00 00 	nop                                            
    return RTEMS_TOO_MANY;                                            
 2013eac:	10 bf ff c8 	b  2013dcc <rtems_partition_create+0x10>       
 2013eb0:	82 10 20 05 	mov  5, %g1	! 5 <PROM_START+0x5>               
                                                                      

020075f0 <rtems_rate_monotonic_period>: rtems_status_code rtems_rate_monotonic_period( rtems_id id, rtems_interval length ) {
 20075f0:	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 *)                                   
 20075f4:	11 00 80 7d 	sethi  %hi(0x201f400), %o0                     
 20075f8:	92 10 00 18 	mov  %i0, %o1                                  
 20075fc:	90 12 22 d4 	or  %o0, 0x2d4, %o0                            
 2007600:	40 00 09 78 	call  2009be0 <_Objects_Get>                   
 2007604:	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 ) {                                               
 2007608:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 200760c:	80 a0 60 00 	cmp  %g1, 0                                    
 2007610:	12 80 00 0d 	bne  2007644 <rtems_rate_monotonic_period+0x54>
 2007614:	ba 10 00 08 	mov  %o0, %i5                                  
    case OBJECTS_LOCAL:                                               
      if ( !_Thread_Is_executing( the_period->owner ) ) {             
 2007618:	c4 02 20 40 	ld  [ %o0 + 0x40 ], %g2                        
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing (                      
  const Thread_Control *the_thread                                    
)                                                                     
{                                                                     
  return ( the_thread == _Thread_Executing );                         
 200761c:	39 00 80 7f 	sethi  %hi(0x201fc00), %i4                     
 2007620:	b8 17 21 78 	or  %i4, 0x178, %i4	! 201fd78 <_Per_CPU_Information>
 2007624:	c2 07 20 0c 	ld  [ %i4 + 0xc ], %g1                         
 2007628:	80 a0 80 01 	cmp  %g2, %g1                                  
 200762c:	02 80 00 08 	be  200764c <rtems_rate_monotonic_period+0x5c> 
 2007630:	80 a6 60 00 	cmp  %i1, 0                                    
        _Thread_Enable_dispatch();                                    
 2007634:	40 00 0d 62 	call  200abbc <_Thread_Enable_dispatch>        
 2007638:	b0 10 20 17 	mov  0x17, %i0                                 
        return RTEMS_NOT_OWNER_OF_RESOURCE;                           
 200763c:	81 c7 e0 08 	ret                                            
 2007640:	81 e8 00 00 	restore                                        
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 2007644:	81 c7 e0 08 	ret                                            
 2007648:	91 e8 20 04 	restore  %g0, 4, %o0                           
      if ( !_Thread_Is_executing( the_period->owner ) ) {             
        _Thread_Enable_dispatch();                                    
        return RTEMS_NOT_OWNER_OF_RESOURCE;                           
      }                                                               
                                                                      
      if ( length == RTEMS_PERIOD_STATUS ) {                          
 200764c:	12 80 00 0e 	bne  2007684 <rtems_rate_monotonic_period+0x94>
 2007650:	01 00 00 00 	nop                                            
        switch ( the_period->state ) {                                
 2007654:	c2 02 20 38 	ld  [ %o0 + 0x38 ], %g1                        
 2007658:	80 a0 60 04 	cmp  %g1, 4                                    
 200765c:	18 80 00 06 	bgu  2007674 <rtems_rate_monotonic_period+0x84><== NEVER TAKEN
 2007660:	b0 10 20 00 	clr  %i0                                       
 2007664:	83 28 60 02 	sll  %g1, 2, %g1                               
 2007668:	05 00 80 75 	sethi  %hi(0x201d400), %g2                     
 200766c:	84 10 a0 c4 	or  %g2, 0xc4, %g2	! 201d4c4 <CSWTCH.2>        
 2007670:	f0 00 80 01 	ld  [ %g2 + %g1 ], %i0                         
                                                                      
        the_period->state = RATE_MONOTONIC_ACTIVE;                    
        the_period->next_length = length;                             
                                                                      
        _Watchdog_Insert_ticks( &the_period->Timer, length );         
        _Thread_Enable_dispatch();                                    
 2007674:	40 00 0d 52 	call  200abbc <_Thread_Enable_dispatch>        
 2007678:	01 00 00 00 	nop                                            
        return RTEMS_TIMEOUT;                                         
 200767c:	81 c7 e0 08 	ret                                            
 2007680:	81 e8 00 00 	restore                                        
        }                                                             
        _Thread_Enable_dispatch();                                    
        return( return_value );                                       
      }                                                               
                                                                      
      _ISR_Disable( level );                                          
 2007684:	7f ff ed e8 	call  2002e24 <sparc_disable_interrupts>       
 2007688:	01 00 00 00 	nop                                            
 200768c:	b4 10 00 08 	mov  %o0, %i2                                  
      if ( the_period->state == RATE_MONOTONIC_INACTIVE ) {           
 2007690:	f6 07 60 38 	ld  [ %i5 + 0x38 ], %i3                        
 2007694:	80 a6 e0 00 	cmp  %i3, 0                                    
 2007698:	02 80 00 14 	be  20076e8 <rtems_rate_monotonic_period+0xf8> 
 200769c:	80 a6 e0 02 	cmp  %i3, 2                                    
        _Watchdog_Insert_ticks( &the_period->Timer, length );         
        _Thread_Enable_dispatch();                                    
        return RTEMS_SUCCESSFUL;                                      
      }                                                               
                                                                      
      if ( the_period->state == RATE_MONOTONIC_ACTIVE ) {             
 20076a0:	02 80 00 29 	be  2007744 <rtems_rate_monotonic_period+0x154>
 20076a4:	80 a6 e0 04 	cmp  %i3, 4                                    
                                                                      
        _Thread_Enable_dispatch();                                    
        return RTEMS_SUCCESSFUL;                                      
      }                                                               
                                                                      
      if ( the_period->state == RATE_MONOTONIC_EXPIRED ) {            
 20076a8:	12 bf ff e5 	bne  200763c <rtems_rate_monotonic_period+0x4c><== NEVER TAKEN
 20076ac:	b0 10 20 04 	mov  4, %i0                                    
        /*                                                            
         *  Update statistics from the concluding period              
         */                                                           
        _Rate_monotonic_Update_statistics( the_period );              
 20076b0:	7f ff ff 92 	call  20074f8 <_Rate_monotonic_Update_statistics>
 20076b4:	90 10 00 1d 	mov  %i5, %o0                                  
                                                                      
        _ISR_Enable( level );                                         
 20076b8:	7f ff ed df 	call  2002e34 <sparc_enable_interrupts>        
 20076bc:	90 10 00 1a 	mov  %i2, %o0                                  
                                                                      
        the_period->state = RATE_MONOTONIC_ACTIVE;                    
 20076c0:	82 10 20 02 	mov  2, %g1                                    
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 20076c4:	92 07 60 10 	add  %i5, 0x10, %o1                            
 20076c8:	11 00 80 7e 	sethi  %hi(0x201f800), %o0                     
        the_period->next_length = length;                             
 20076cc:	f2 27 60 3c 	st  %i1, [ %i5 + 0x3c ]                        
 20076d0:	90 12 20 fc 	or  %o0, 0xfc, %o0                             
         */                                                           
        _Rate_monotonic_Update_statistics( the_period );              
                                                                      
        _ISR_Enable( level );                                         
                                                                      
        the_period->state = RATE_MONOTONIC_ACTIVE;                    
 20076d4:	c2 27 60 38 	st  %g1, [ %i5 + 0x38 ]                        
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
 20076d8:	f2 27 60 1c 	st  %i1, [ %i5 + 0x1c ]                        
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 20076dc:	40 00 11 5d 	call  200bc50 <_Watchdog_Insert>               
 20076e0:	b0 10 20 06 	mov  6, %i0                                    
 20076e4:	30 bf ff e4 	b,a   2007674 <rtems_rate_monotonic_period+0x84>
        return( return_value );                                       
      }                                                               
                                                                      
      _ISR_Disable( level );                                          
      if ( the_period->state == RATE_MONOTONIC_INACTIVE ) {           
        _ISR_Enable( level );                                         
 20076e8:	7f ff ed d3 	call  2002e34 <sparc_enable_interrupts>        
 20076ec:	01 00 00 00 	nop                                            
                                                                      
        /*                                                            
         *  Baseline statistics information for the beginning of a period.
         */                                                           
        _Rate_monotonic_Initiate_statistics( the_period );            
 20076f0:	7f ff ff 68 	call  2007490 <_Rate_monotonic_Initiate_statistics>
 20076f4:	90 10 00 1d 	mov  %i5, %o0                                  
                                                                      
        the_period->state = RATE_MONOTONIC_ACTIVE;                    
 20076f8:	82 10 20 02 	mov  2, %g1                                    
 20076fc:	92 07 60 10 	add  %i5, 0x10, %o1                            
 2007700:	c2 27 60 38 	st  %g1, [ %i5 + 0x38 ]                        
 2007704:	11 00 80 7e 	sethi  %hi(0x201f800), %o0                     
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
 2007708:	03 00 80 1e 	sethi  %hi(0x2007800), %g1                     
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 200770c:	90 12 20 fc 	or  %o0, 0xfc, %o0                             
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
 2007710:	82 10 62 98 	or  %g1, 0x298, %g1                            
  the_watchdog->id        = id;                                       
 2007714:	f0 27 60 30 	st  %i0, [ %i5 + 0x30 ]                        
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
 2007718:	c2 27 60 2c 	st  %g1, [ %i5 + 0x2c ]                        
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
 200771c:	c0 27 60 18 	clr  [ %i5 + 0x18 ]                            
  the_watchdog->routine   = routine;                                  
  the_watchdog->id        = id;                                       
  the_watchdog->user_data = user_data;                                
 2007720:	c0 27 60 34 	clr  [ %i5 + 0x34 ]                            
          _Rate_monotonic_Timeout,                                    
          id,                                                         
          NULL                                                        
        );                                                            
                                                                      
        the_period->next_length = length;                             
 2007724:	f2 27 60 3c 	st  %i1, [ %i5 + 0x3c ]                        
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
 2007728:	f2 27 60 1c 	st  %i1, [ %i5 + 0x1c ]                        
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 200772c:	40 00 11 49 	call  200bc50 <_Watchdog_Insert>               
 2007730:	b0 10 20 00 	clr  %i0                                       
                                                                      
        _Watchdog_Insert_ticks( &the_period->Timer, length );         
        _Thread_Enable_dispatch();                                    
 2007734:	40 00 0d 22 	call  200abbc <_Thread_Enable_dispatch>        
 2007738:	01 00 00 00 	nop                                            
        return RTEMS_SUCCESSFUL;                                      
 200773c:	81 c7 e0 08 	ret                                            
 2007740:	81 e8 00 00 	restore                                        
                                                                      
      if ( the_period->state == RATE_MONOTONIC_ACTIVE ) {             
        /*                                                            
         *  Update statistics from the concluding period.             
         */                                                           
        _Rate_monotonic_Update_statistics( the_period );              
 2007744:	7f ff ff 6d 	call  20074f8 <_Rate_monotonic_Update_statistics>
 2007748:	90 10 00 1d 	mov  %i5, %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;         
 200774c:	82 10 20 01 	mov  1, %g1                                    
        the_period->next_length = length;                             
 2007750:	f2 27 60 3c 	st  %i1, [ %i5 + 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;         
 2007754:	c2 27 60 38 	st  %g1, [ %i5 + 0x38 ]                        
        the_period->next_length = length;                             
                                                                      
        _ISR_Enable( level );                                         
 2007758:	7f ff ed b7 	call  2002e34 <sparc_enable_interrupts>        
 200775c:	90 10 00 1a 	mov  %i2, %o0                                  
                                                                      
        _Thread_Executing->Wait.id = the_period->Object.id;           
 2007760:	c2 07 20 0c 	ld  [ %i4 + 0xc ], %g1                         
 2007764:	c4 07 60 08 	ld  [ %i5 + 8 ], %g2                           
        _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
 2007768:	90 10 00 01 	mov  %g1, %o0                                  
 200776c:	13 00 00 10 	sethi  %hi(0x4000), %o1                        
 2007770:	40 00 0f 6f 	call  200b52c <_Thread_Set_state>              
 2007774:	c4 20 60 20 	st  %g2, [ %g1 + 0x20 ]                        
                                                                      
        /*                                                            
         *  Did the watchdog timer expire while we were actually blocking
         *  on it?                                                    
         */                                                           
        _ISR_Disable( level );                                        
 2007778:	7f ff ed ab 	call  2002e24 <sparc_disable_interrupts>       
 200777c:	01 00 00 00 	nop                                            
          local_state = the_period->state;                            
 2007780:	f4 07 60 38 	ld  [ %i5 + 0x38 ], %i2                        
          the_period->state = RATE_MONOTONIC_ACTIVE;                  
 2007784:	f6 27 60 38 	st  %i3, [ %i5 + 0x38 ]                        
        _ISR_Enable( level );                                         
 2007788:	7f ff ed ab 	call  2002e34 <sparc_enable_interrupts>        
 200778c:	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 )   
 2007790:	80 a6 a0 03 	cmp  %i2, 3                                    
 2007794:	22 80 00 06 	be,a   20077ac <rtems_rate_monotonic_period+0x1bc>
 2007798:	d0 07 20 0c 	ld  [ %i4 + 0xc ], %o0                         
          _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
                                                                      
        _Thread_Enable_dispatch();                                    
 200779c:	40 00 0d 08 	call  200abbc <_Thread_Enable_dispatch>        
 20077a0:	b0 10 20 00 	clr  %i0                                       
        return RTEMS_SUCCESSFUL;                                      
 20077a4:	81 c7 e0 08 	ret                                            
 20077a8:	81 e8 00 00 	restore                                        
        /*                                                            
         *  If it did, then we want to unblock ourself and continue as
         *  if nothing happen.  The period was reset in the timeout routine.
         */                                                           
        if ( local_state == RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING )   
          _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
 20077ac:	40 00 0c 12 	call  200a7f4 <_Thread_Clear_state>            
 20077b0:	13 00 00 10 	sethi  %hi(0x4000), %o1                        
 20077b4:	30 bf ff fa 	b,a   200779c <rtems_rate_monotonic_period+0x1ac>
                                                                      

020077b8 <rtems_rate_monotonic_report_statistics_with_plugin>: */ void rtems_rate_monotonic_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) {
 20077b8:	9d e3 bf 38 	save  %sp, -200, %sp                           
  rtems_id                               id;                          
  rtems_rate_monotonic_period_statistics the_stats;                   
  rtems_rate_monotonic_period_status     the_status;                  
  char                                   name[5];                     
                                                                      
  if ( !print )                                                       
 20077bc:	80 a6 60 00 	cmp  %i1, 0                                    
 20077c0:	02 80 00 48 	be  20078e0 <rtems_rate_monotonic_report_statistics_with_plugin+0x128><== NEVER TAKEN
 20077c4:	90 10 00 18 	mov  %i0, %o0                                  
    return;                                                           
                                                                      
  (*print)( context, "Period information by period\n" );              
 20077c8:	13 00 80 75 	sethi  %hi(0x201d400), %o1                     
 20077cc:	9f c6 40 00 	call  %i1                                      
 20077d0:	92 12 60 d8 	or  %o1, 0xd8, %o1	! 201d4d8 <CSWTCH.2+0x14>   
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    (*print)( context, "--- CPU times are in seconds ---\n" );        
 20077d4:	90 10 00 18 	mov  %i0, %o0                                  
 20077d8:	13 00 80 75 	sethi  %hi(0x201d400), %o1                     
 20077dc:	9f c6 40 00 	call  %i1                                      
 20077e0:	92 12 60 f8 	or  %o1, 0xf8, %o1	! 201d4f8 <CSWTCH.2+0x34>   
    (*print)( context, "--- Wall times are in seconds ---\n" );       
 20077e4:	90 10 00 18 	mov  %i0, %o0                                  
 20077e8:	13 00 80 75 	sethi  %hi(0x201d400), %o1                     
 20077ec:	9f c6 40 00 	call  %i1                                      
 20077f0:	92 12 61 20 	or  %o1, 0x120, %o1	! 201d520 <CSWTCH.2+0x5c>  
  Be sure to test the various cases.                                  
  (*print)( context,"\                                                
1234567890123456789012345678901234567890123456789012345678901234567890123456789\
\n");                                                                 
*/                                                                    
  (*print)( context, "   ID     OWNER COUNT MISSED     "              
 20077f4:	90 10 00 18 	mov  %i0, %o0                                  
 20077f8:	13 00 80 75 	sethi  %hi(0x201d400), %o1                     
 20077fc:	9f c6 40 00 	call  %i1                                      
 2007800:	92 12 61 48 	or  %o1, 0x148, %o1	! 201d548 <CSWTCH.2+0x84>  
       #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                     
          "          "                                                
       #endif                                                         
          "   WALL TIME\n"                                            
  );                                                                  
  (*print)( context, "                               "                
 2007804:	90 10 00 18 	mov  %i0, %o0                                  
 2007808:	13 00 80 75 	sethi  %hi(0x201d400), %o1                     
 200780c:	9f c6 40 00 	call  %i1                                      
 2007810:	92 12 61 98 	or  %o1, 0x198, %o1	! 201d598 <CSWTCH.2+0xd4>  
                                                                      
  /*                                                                  
   * 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 ;                   
 2007814:	39 00 80 7d 	sethi  %hi(0x201f400), %i4                     
 2007818:	b8 17 22 d4 	or  %i4, 0x2d4, %i4	! 201f6d4 <_Rate_monotonic_Information>
 200781c:	fa 07 20 08 	ld  [ %i4 + 8 ], %i5                           
 2007820:	c2 07 20 0c 	ld  [ %i4 + 0xc ], %g1                         
 2007824:	80 a7 40 01 	cmp  %i5, %g1                                  
 2007828:	18 80 00 2e 	bgu  20078e0 <rtems_rate_monotonic_report_statistics_with_plugin+0x128><== NEVER TAKEN
 200782c:	35 00 80 75 	sethi  %hi(0x201d400), %i2                     
      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,                                              
 2007830:	23 00 80 75 	sethi  %hi(0x201d400), %l1                     
      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,                                              
 2007834:	21 00 80 75 	sethi  %hi(0x201d400), %l0                     
                                                                      
    /*                                                                
     *  If the count is zero, don't print statistics                  
     */                                                               
    if (the_stats.count == 0) {                                       
      (*print)( context, "\n" );                                      
 2007838:	37 00 80 71 	sethi  %hi(0x201c400), %i3                     
    rtems_object_get_name( the_status.owner, sizeof(name), name );    
                                                                      
    /*                                                                
     *  Print part of report line that is not dependent on granularity
     */                                                               
    (*print)( context,                                                
 200783c:	b4 16 a1 e8 	or  %i2, 0x1e8, %i2                            
      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,                                              
 2007840:	a2 14 62 00 	or  %l1, 0x200, %l1                            
      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,                                              
 2007844:	a0 14 22 20 	or  %l0, 0x220, %l0                            
                                                                      
    /*                                                                
     *  If the count is zero, don't print statistics                  
     */                                                               
    if (the_stats.count == 0) {                                       
      (*print)( context, "\n" );                                      
 2007848:	10 80 00 06 	b  2007860 <rtems_rate_monotonic_report_statistics_with_plugin+0xa8>
 200784c:	b6 16 e3 58 	or  %i3, 0x358, %i3                            
   * 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++ ) {                                                      
 2007850:	ba 07 60 01 	inc  %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 ;                   
 2007854:	80 a0 40 1d 	cmp  %g1, %i5                                  
 2007858:	0a 80 00 22 	bcs  20078e0 <rtems_rate_monotonic_report_statistics_with_plugin+0x128>
 200785c:	01 00 00 00 	nop                                            
        id <= _Rate_monotonic_Information.maximum_id ;                
        id++ ) {                                                      
    status = rtems_rate_monotonic_get_statistics( id, &the_stats );   
 2007860:	90 10 00 1d 	mov  %i5, %o0                                  
 2007864:	40 00 1b cd 	call  200e798 <rtems_rate_monotonic_get_statistics>
 2007868:	92 07 bf a0 	add  %fp, -96, %o1                             
    if ( status != RTEMS_SUCCESSFUL )                                 
 200786c:	80 a2 20 00 	cmp  %o0, 0                                    
 2007870:	32 bf ff f8 	bne,a   2007850 <rtems_rate_monotonic_report_statistics_with_plugin+0x98>
 2007874:	c2 07 20 0c 	ld  [ %i4 + 0xc ], %g1                         
    #if defined(RTEMS_DEBUG)                                          
      status = rtems_rate_monotonic_get_status( id, &the_status );    
      if ( status != RTEMS_SUCCESSFUL )                               
        continue;                                                     
    #else                                                             
      (void) rtems_rate_monotonic_get_status( id, &the_status );      
 2007878:	92 07 bf d8 	add  %fp, -40, %o1                             
 200787c:	40 00 1b f6 	call  200e854 <rtems_rate_monotonic_get_status>
 2007880:	90 10 00 1d 	mov  %i5, %o0                                  
    #endif                                                            
                                                                      
    rtems_object_get_name( the_status.owner, sizeof(name), name );    
 2007884:	d0 07 bf d8 	ld  [ %fp + -40 ], %o0                         
 2007888:	92 10 20 05 	mov  5, %o1                                    
 200788c:	40 00 00 b4 	call  2007b5c <rtems_object_get_name>          
 2007890:	94 07 bf f8 	add  %fp, -8, %o2                              
                                                                      
    /*                                                                
     *  Print part of report line that is not dependent on granularity
     */                                                               
    (*print)( context,                                                
 2007894:	d8 1f bf a0 	ldd  [ %fp + -96 ], %o4                        
 2007898:	92 10 00 1a 	mov  %i2, %o1                                  
 200789c:	94 10 00 1d 	mov  %i5, %o2                                  
 20078a0:	90 10 00 18 	mov  %i0, %o0                                  
 20078a4:	9f c6 40 00 	call  %i1                                      
 20078a8:	96 07 bf f8 	add  %fp, -8, %o3                              
    );                                                                
                                                                      
    /*                                                                
     *  If the count is zero, don't print statistics                  
     */                                                               
    if (the_stats.count == 0) {                                       
 20078ac:	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 );
 20078b0:	94 07 bf f0 	add  %fp, -16, %o2                             
 20078b4:	90 07 bf b8 	add  %fp, -72, %o0                             
    );                                                                
                                                                      
    /*                                                                
     *  If the count is zero, don't print statistics                  
     */                                                               
    if (the_stats.count == 0) {                                       
 20078b8:	80 a0 60 00 	cmp  %g1, 0                                    
 20078bc:	12 80 00 0b 	bne  20078e8 <rtems_rate_monotonic_report_statistics_with_plugin+0x130>
 20078c0:	92 10 00 1b 	mov  %i3, %o1                                  
      (*print)( context, "\n" );                                      
 20078c4:	9f c6 40 00 	call  %i1                                      
 20078c8:	90 10 00 18 	mov  %i0, %o0                                  
                                                                      
  /*                                                                  
   * 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 ;                   
 20078cc:	c2 07 20 0c 	ld  [ %i4 + 0xc ], %g1                         
        id <= _Rate_monotonic_Information.maximum_id ;                
        id++ ) {                                                      
 20078d0:	ba 07 60 01 	inc  %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 ;                   
 20078d4:	80 a0 40 1d 	cmp  %g1, %i5                                  
 20078d8:	1a bf ff e3 	bcc  2007864 <rtems_rate_monotonic_report_statistics_with_plugin+0xac><== ALWAYS TAKEN
 20078dc:	90 10 00 1d 	mov  %i5, %o0                                  
 20078e0:	81 c7 e0 08 	ret                                            
 20078e4:	81 e8 00 00 	restore                                        
      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 );
 20078e8:	40 00 0f 9e 	call  200b760 <_Timespec_Divide_by_integer>    
 20078ec:	92 10 00 01 	mov  %g1, %o1                                  
      (*print)( context,                                              
 20078f0:	d0 07 bf ac 	ld  [ %fp + -84 ], %o0                         
 20078f4:	40 00 49 f7 	call  201a0d0 <.div>                           
 20078f8:	92 10 23 e8 	mov  0x3e8, %o1                                
 20078fc:	aa 10 00 08 	mov  %o0, %l5                                  
 2007900:	d0 07 bf b4 	ld  [ %fp + -76 ], %o0                         
 2007904:	40 00 49 f3 	call  201a0d0 <.div>                           
 2007908:	92 10 23 e8 	mov  0x3e8, %o1                                
 200790c:	c2 07 bf f0 	ld  [ %fp + -16 ], %g1                         
 2007910:	a6 10 00 08 	mov  %o0, %l3                                  
 2007914:	d0 07 bf f4 	ld  [ %fp + -12 ], %o0                         
 2007918:	e4 07 bf a8 	ld  [ %fp + -88 ], %l2                         
 200791c:	e8 07 bf b0 	ld  [ %fp + -80 ], %l4                         
 2007920:	c2 23 a0 5c 	st  %g1, [ %sp + 0x5c ]                        
 2007924:	40 00 49 eb 	call  201a0d0 <.div>                           
 2007928:	92 10 23 e8 	mov  0x3e8, %o1                                
 200792c:	96 10 00 15 	mov  %l5, %o3                                  
 2007930:	98 10 00 14 	mov  %l4, %o4                                  
 2007934:	9a 10 00 13 	mov  %l3, %o5                                  
 2007938:	d0 23 a0 60 	st  %o0, [ %sp + 0x60 ]                        
 200793c:	92 10 00 11 	mov  %l1, %o1                                  
 2007940:	94 10 00 12 	mov  %l2, %o2                                  
 2007944:	9f c6 40 00 	call  %i1                                      
 2007948:	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);
 200794c:	d2 07 bf a0 	ld  [ %fp + -96 ], %o1                         
 2007950:	94 07 bf f0 	add  %fp, -16, %o2                             
 2007954:	40 00 0f 83 	call  200b760 <_Timespec_Divide_by_integer>    
 2007958:	90 07 bf d0 	add  %fp, -48, %o0                             
      (*print)( context,                                              
 200795c:	d0 07 bf c4 	ld  [ %fp + -60 ], %o0                         
 2007960:	40 00 49 dc 	call  201a0d0 <.div>                           
 2007964:	92 10 23 e8 	mov  0x3e8, %o1                                
 2007968:	a8 10 00 08 	mov  %o0, %l4                                  
 200796c:	d0 07 bf cc 	ld  [ %fp + -52 ], %o0                         
 2007970:	40 00 49 d8 	call  201a0d0 <.div>                           
 2007974:	92 10 23 e8 	mov  0x3e8, %o1                                
 2007978:	c2 07 bf f0 	ld  [ %fp + -16 ], %g1                         
 200797c:	a4 10 00 08 	mov  %o0, %l2                                  
 2007980:	d0 07 bf f4 	ld  [ %fp + -12 ], %o0                         
 2007984:	ea 07 bf c0 	ld  [ %fp + -64 ], %l5                         
 2007988:	e6 07 bf c8 	ld  [ %fp + -56 ], %l3                         
 200798c:	92 10 23 e8 	mov  0x3e8, %o1                                
 2007990:	40 00 49 d0 	call  201a0d0 <.div>                           
 2007994:	c2 23 a0 5c 	st  %g1, [ %sp + 0x5c ]                        
 2007998:	92 10 00 10 	mov  %l0, %o1                                  
 200799c:	d0 23 a0 60 	st  %o0, [ %sp + 0x60 ]                        
 20079a0:	94 10 00 15 	mov  %l5, %o2                                  
 20079a4:	90 10 00 18 	mov  %i0, %o0                                  
 20079a8:	96 10 00 14 	mov  %l4, %o3                                  
 20079ac:	98 10 00 13 	mov  %l3, %o4                                  
 20079b0:	9f c6 40 00 	call  %i1                                      
 20079b4:	9a 10 00 12 	mov  %l2, %o5                                  
                                                                      
  /*                                                                  
   * 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 ;                   
 20079b8:	10 bf ff a6 	b  2007850 <rtems_rate_monotonic_report_statistics_with_plugin+0x98>
 20079bc:	c2 07 20 0c 	ld  [ %i4 + 0xc ], %g1                         
                                                                      

020079d8 <rtems_rate_monotonic_reset_all_statistics>: /* * rtems_rate_monotonic_reset_all_statistics */ void rtems_rate_monotonic_reset_all_statistics( void ) {
 20079d8:	9d e3 bf a0 	save  %sp, -96, %sp                            
   *                                                                  
   * This rountine increments the thread dispatch level               
   */                                                                 
  RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
  {                                                                   
    _Thread_Dispatch_disable_level++;                                 
 20079dc:	03 00 80 7e 	sethi  %hi(0x201f800), %g1                     
 20079e0:	c4 00 60 40 	ld  [ %g1 + 0x40 ], %g2	! 201f840 <_Thread_Dispatch_disable_level>
 20079e4:	84 00 a0 01 	inc  %g2                                       
 20079e8:	c4 20 60 40 	st  %g2, [ %g1 + 0x40 ]                        
    return _Thread_Dispatch_disable_level;                            
 20079ec:	c2 00 60 40 	ld  [ %g1 + 0x40 ], %g1                        
                                                                      
    /*                                                                
     * Cycle through all possible ids and try to reset each one.  If it
     * is a period that is inactive, we just get an error back.  No big deal.
     */                                                               
    for ( id=_Rate_monotonic_Information.minimum_id ;                 
 20079f0:	39 00 80 7d 	sethi  %hi(0x201f400), %i4                     
 20079f4:	b8 17 22 d4 	or  %i4, 0x2d4, %i4	! 201f6d4 <_Rate_monotonic_Information>
 20079f8:	fa 07 20 08 	ld  [ %i4 + 8 ], %i5                           
 20079fc:	c2 07 20 0c 	ld  [ %i4 + 0xc ], %g1                         
 2007a00:	80 a7 40 01 	cmp  %i5, %g1                                  
 2007a04:	18 80 00 09 	bgu  2007a28 <rtems_rate_monotonic_reset_all_statistics+0x50><== NEVER TAKEN
 2007a08:	01 00 00 00 	nop                                            
          id <= _Rate_monotonic_Information.maximum_id ;              
          id++ ) {                                                    
      (void) rtems_rate_monotonic_reset_statistics( id );             
 2007a0c:	40 00 00 09 	call  2007a30 <rtems_rate_monotonic_reset_statistics>
 2007a10:	90 10 00 1d 	mov  %i5, %o0                                  
                                                                      
    /*                                                                
     * Cycle through all possible ids and try to reset each one.  If it
     * is a period that is inactive, we just get an error back.  No big deal.
     */                                                               
    for ( id=_Rate_monotonic_Information.minimum_id ;                 
 2007a14:	c2 07 20 0c 	ld  [ %i4 + 0xc ], %g1                         
          id <= _Rate_monotonic_Information.maximum_id ;              
          id++ ) {                                                    
 2007a18:	ba 07 60 01 	inc  %i5                                       
                                                                      
    /*                                                                
     * Cycle through all possible ids and try to reset each one.  If it
     * is a period that is inactive, we just get an error back.  No big deal.
     */                                                               
    for ( id=_Rate_monotonic_Information.minimum_id ;                 
 2007a1c:	80 a0 40 1d 	cmp  %g1, %i5                                  
 2007a20:	1a bf ff fb 	bcc  2007a0c <rtems_rate_monotonic_reset_all_statistics+0x34>
 2007a24:	01 00 00 00 	nop                                            
    }                                                                 
                                                                      
  /*                                                                  
   *  Done so exit thread dispatching disabled critical section.      
   */                                                                 
  _Thread_Enable_dispatch();                                          
 2007a28:	40 00 0c 65 	call  200abbc <_Thread_Enable_dispatch>        
 2007a2c:	81 e8 00 00 	restore                                        
                                                                      

02015378 <rtems_signal_send>: rtems_status_code rtems_signal_send( rtems_id id, rtems_signal_set signal_set ) {
 2015378:	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 )                                                  
 201537c:	80 a6 60 00 	cmp  %i1, 0                                    
 2015380:	12 80 00 04 	bne  2015390 <rtems_signal_send+0x18>          
 2015384:	82 10 20 0a 	mov  0xa, %g1                                  
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 2015388:	81 c7 e0 08 	ret                                            
 201538c:	91 e8 00 01 	restore  %g0, %g1, %o0                         
  ASR_Information         *asr;                                       
                                                                      
  if ( !signal_set )                                                  
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 2015390:	90 10 00 18 	mov  %i0, %o0                                  
 2015394:	40 00 13 5d 	call  201a108 <_Thread_Get>                    
 2015398:	92 07 bf fc 	add  %fp, -4, %o1                              
  switch ( location ) {                                               
 201539c:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 20153a0:	80 a0 60 00 	cmp  %g1, 0                                    
 20153a4:	12 80 00 20 	bne  2015424 <rtems_signal_send+0xac>          
 20153a8:	b8 10 00 08 	mov  %o0, %i4                                  
                                                                      
    case OBJECTS_LOCAL:                                               
      api = the_thread->API_Extensions[ THREAD_API_RTEMS ];           
 20153ac:	fa 02 21 58 	ld  [ %o0 + 0x158 ], %i5                       
      asr = &api->Signal;                                             
                                                                      
      if ( ! _ASR_Is_null_handler( asr->handler ) ) {                 
 20153b0:	c2 07 60 0c 	ld  [ %i5 + 0xc ], %g1                         
 20153b4:	80 a0 60 00 	cmp  %g1, 0                                    
 20153b8:	02 80 00 1e 	be  2015430 <rtems_signal_send+0xb8>           
 20153bc:	01 00 00 00 	nop                                            
        if ( asr->is_enabled ) {                                      
 20153c0:	c2 0f 60 08 	ldub  [ %i5 + 8 ], %g1                         
 20153c4:	80 a0 60 00 	cmp  %g1, 0                                    
 20153c8:	02 80 00 1e 	be  2015440 <rtems_signal_send+0xc8>           
 20153cc:	01 00 00 00 	nop                                            
  rtems_signal_set *signal_set                                        
)                                                                     
{                                                                     
  ISR_Level              _level;                                      
                                                                      
  _ISR_Disable( _level );                                             
 20153d0:	7f ff e6 bf 	call  200eecc <sparc_disable_interrupts>       
 20153d4:	01 00 00 00 	nop                                            
    *signal_set |= signals;                                           
 20153d8:	c2 07 60 14 	ld  [ %i5 + 0x14 ], %g1                        
 20153dc:	b2 10 40 19 	or  %g1, %i1, %i1                              
 20153e0:	f2 27 60 14 	st  %i1, [ %i5 + 0x14 ]                        
  _ISR_Enable( _level );                                              
 20153e4:	7f ff e6 be 	call  200eedc <sparc_enable_interrupts>        
 20153e8:	01 00 00 00 	nop                                            
          _ASR_Post_signals( signal_set, &asr->signals_posted );      
                                                                      
          if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
 20153ec:	03 00 80 ee 	sethi  %hi(0x203b800), %g1                     
 20153f0:	82 10 63 a0 	or  %g1, 0x3a0, %g1	! 203bba0 <_Per_CPU_Information>
 20153f4:	c4 00 60 08 	ld  [ %g1 + 8 ], %g2                           
 20153f8:	80 a0 a0 00 	cmp  %g2, 0                                    
 20153fc:	02 80 00 06 	be  2015414 <rtems_signal_send+0x9c>           
 2015400:	01 00 00 00 	nop                                            
 2015404:	c4 00 60 0c 	ld  [ %g1 + 0xc ], %g2                         
 2015408:	80 a7 00 02 	cmp  %i4, %g2                                  
 201540c:	02 80 00 15 	be  2015460 <rtems_signal_send+0xe8>           <== ALWAYS TAKEN
 2015410:	84 10 20 01 	mov  1, %g2                                    
            _Thread_Dispatch_necessary = true;                        
        } else {                                                      
          _ASR_Post_signals( signal_set, &asr->signals_pending );     
        }                                                             
        _Thread_Enable_dispatch();                                    
 2015414:	40 00 13 30 	call  201a0d4 <_Thread_Enable_dispatch>        
 2015418:	01 00 00 00 	nop                                            
        return RTEMS_SUCCESSFUL;                                      
 201541c:	10 bf ff db 	b  2015388 <rtems_signal_send+0x10>            
 2015420:	82 10 20 00 	clr  %g1	! 0 <PROM_START>                      
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 2015424:	82 10 20 04 	mov  4, %g1                                    
}                                                                     
 2015428:	81 c7 e0 08 	ret                                            
 201542c:	91 e8 00 01 	restore  %g0, %g1, %o0                         
          _ASR_Post_signals( signal_set, &asr->signals_pending );     
        }                                                             
        _Thread_Enable_dispatch();                                    
        return RTEMS_SUCCESSFUL;                                      
      }                                                               
      _Thread_Enable_dispatch();                                      
 2015430:	40 00 13 29 	call  201a0d4 <_Thread_Enable_dispatch>        
 2015434:	01 00 00 00 	nop                                            
      return RTEMS_NOT_DEFINED;                                       
 2015438:	10 bf ff d4 	b  2015388 <rtems_signal_send+0x10>            
 201543c:	82 10 20 0b 	mov  0xb, %g1	! b <PROM_START+0xb>             
  rtems_signal_set *signal_set                                        
)                                                                     
{                                                                     
  ISR_Level              _level;                                      
                                                                      
  _ISR_Disable( _level );                                             
 2015440:	7f ff e6 a3 	call  200eecc <sparc_disable_interrupts>       
 2015444:	01 00 00 00 	nop                                            
    *signal_set |= signals;                                           
 2015448:	c2 07 60 18 	ld  [ %i5 + 0x18 ], %g1                        
 201544c:	b2 10 40 19 	or  %g1, %i1, %i1                              
 2015450:	f2 27 60 18 	st  %i1, [ %i5 + 0x18 ]                        
  _ISR_Enable( _level );                                              
 2015454:	7f ff e6 a2 	call  200eedc <sparc_enable_interrupts>        
 2015458:	01 00 00 00 	nop                                            
 201545c:	30 bf ff ee 	b,a   2015414 <rtems_signal_send+0x9c>         
      if ( ! _ASR_Is_null_handler( asr->handler ) ) {                 
        if ( asr->is_enabled ) {                                      
          _ASR_Post_signals( signal_set, &asr->signals_posted );      
                                                                      
          if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
            _Thread_Dispatch_necessary = true;                        
 2015460:	c4 28 60 18 	stb  %g2, [ %g1 + 0x18 ]                       
 2015464:	30 bf ff ec 	b,a   2015414 <rtems_signal_send+0x9c>         
                                                                      

02002a3c <rtems_stack_checker_begin_extension>: Thread_Control *the_thread ) { Stack_check_Control *the_pattern; if ( the_thread->Object.id == 0 ) /* skip system tasks */
 2002a3c:	c2 02 20 08 	ld  [ %o0 + 8 ], %g1                           
 2002a40:	80 a0 60 00 	cmp  %g1, 0                                    
 2002a44:	02 80 00 0c 	be  2002a74 <rtems_stack_checker_begin_extension+0x38><== NEVER TAKEN
 2002a48:	05 00 80 66 	sethi  %hi(0x2019800), %g2                     
    return;                                                           
                                                                      
  the_pattern = Stack_check_Get_pattern_area(&the_thread->Start.Initial_stack);
                                                                      
  *the_pattern = Stack_check_Pattern;                                 
 2002a4c:	c2 02 20 bc 	ld  [ %o0 + 0xbc ], %g1                        
 2002a50:	c6 00 a3 54 	ld  [ %g2 + 0x354 ], %g3                       
 2002a54:	84 10 a3 54 	or  %g2, 0x354, %g2                            
 2002a58:	c6 20 60 08 	st  %g3, [ %g1 + 8 ]                           
 2002a5c:	c6 00 a0 04 	ld  [ %g2 + 4 ], %g3                           
 2002a60:	c6 20 60 0c 	st  %g3, [ %g1 + 0xc ]                         
 2002a64:	c6 00 a0 08 	ld  [ %g2 + 8 ], %g3                           
 2002a68:	c6 20 60 10 	st  %g3, [ %g1 + 0x10 ]                        
 2002a6c:	c4 00 a0 0c 	ld  [ %g2 + 0xc ], %g2                         
 2002a70:	c4 20 60 14 	st  %g2, [ %g1 + 0x14 ]                        
 2002a74:	81 c3 e0 08 	retl                                           
                                                                      

02002a0c <rtems_stack_checker_create_extension>: */ bool rtems_stack_checker_create_extension( Thread_Control *running __attribute__((unused)), Thread_Control *the_thread ) {
 2002a0c:	9d e3 bf a0 	save  %sp, -96, %sp                            
  Stack_check_Initialize();                                           
 2002a10:	7f ff ff d9 	call  2002974 <Stack_check_Initialize>         
 2002a14:	01 00 00 00 	nop                                            
                                                                      
  if (the_thread)                                                     
 2002a18:	80 a6 60 00 	cmp  %i1, 0                                    
 2002a1c:	02 80 00 06 	be  2002a34 <rtems_stack_checker_create_extension+0x28><== NEVER TAKEN
 2002a20:	01 00 00 00 	nop                                            
    Stack_check_Dope_stack(&the_thread->Start.Initial_stack);         
 2002a24:	d0 06 60 bc 	ld  [ %i1 + 0xbc ], %o0                        
 2002a28:	d4 06 60 b8 	ld  [ %i1 + 0xb8 ], %o2                        
 2002a2c:	40 00 40 3e 	call  2012b24 <memset>                         
 2002a30:	92 10 20 a5 	mov  0xa5, %o1                                 
                                                                      
  return true;                                                        
}                                                                     
 2002a34:	81 c7 e0 08 	ret                                            
 2002a38:	91 e8 20 01 	restore  %g0, 1, %o0                           
                                                                      

02002b90 <rtems_stack_checker_is_blown>: /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) {
 2002b90:	9d e3 bf a0 	save  %sp, -96, %sp                            
  Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; 
 2002b94:	39 00 80 68 	sethi  %hi(0x201a000), %i4                     
 2002b98:	b8 17 22 d8 	or  %i4, 0x2d8, %i4	! 201a2d8 <_Per_CPU_Information>
 2002b9c:	c2 07 20 0c 	ld  [ %i4 + 0xc ], %g1                         
)                                                                     
{                                                                     
  #if defined(__GNUC__)                                               
    void *sp = __builtin_frame_address(0);                            
                                                                      
    if ( sp < the_stack->area ) {                                     
 2002ba0:	d0 00 60 bc 	ld  [ %g1 + 0xbc ], %o0                        
 2002ba4:	80 a7 80 08 	cmp  %fp, %o0                                  
 2002ba8:	0a 80 00 06 	bcs  2002bc0 <rtems_stack_checker_is_blown+0x30><== NEVER TAKEN
 2002bac:	ba 10 20 00 	clr  %i5                                       
      return false;                                                   
    }                                                                 
    if ( sp > (the_stack->area + the_stack->size) ) {                 
 2002bb0:	c2 00 60 b8 	ld  [ %g1 + 0xb8 ], %g1                        
 2002bb4:	82 02 00 01 	add  %o0, %g1, %g1                             
}                                                                     
                                                                      
/*                                                                    
 *  Check if blown                                                    
 */                                                                   
bool rtems_stack_checker_is_blown( void )                             
 2002bb8:	80 a0 40 1e 	cmp  %g1, %fp                                  
 2002bbc:	ba 60 3f ff 	subx  %g0, -1, %i5                             
                                                                      
  /*                                                                  
   * The stack checker must be initialized before the pattern is there
   * to check.                                                        
   */                                                                 
  if ( Stack_check_Initialized ) {                                    
 2002bc0:	03 00 80 66 	sethi  %hi(0x2019800), %g1                     
 2002bc4:	c2 00 60 bc 	ld  [ %g1 + 0xbc ], %g1	! 20198bc <Stack_check_Initialized>
 2002bc8:	80 a0 60 00 	cmp  %g1, 0                                    
 2002bcc:	02 80 00 09 	be  2002bf0 <rtems_stack_checker_is_blown+0x60><== NEVER TAKEN
 2002bd0:	92 10 20 01 	mov  1, %o1                                    
    pattern_ok = (!memcmp(                                            
 2002bd4:	90 02 20 08 	add  %o0, 8, %o0                               
 2002bd8:	94 10 20 10 	mov  0x10, %o2                                 
 2002bdc:	13 00 80 66 	sethi  %hi(0x2019800), %o1                     
 2002be0:	40 00 3f 67 	call  201297c <memcmp>                         
 2002be4:	92 12 63 54 	or  %o1, 0x354, %o1	! 2019b54 <Stack_check_Pattern>
 2002be8:	80 a0 00 08 	cmp  %g0, %o0                                  
 2002bec:	92 60 3f ff 	subx  %g0, -1, %o1                             
                                                                      
                                                                      
  /*                                                                  
   * Let's report as much as we can.                                  
   */                                                                 
  if ( !sp_ok || !pattern_ok ) {                                      
 2002bf0:	80 8f 60 ff 	btst  0xff, %i5                                
 2002bf4:	22 80 00 07 	be,a   2002c10 <rtems_stack_checker_is_blown+0x80><== NEVER TAKEN
 2002bf8:	92 0a 60 ff 	and  %o1, 0xff, %o1                            <== NOT EXECUTED
 2002bfc:	92 8a 60 ff 	andcc  %o1, 0xff, %o1                          
 2002c00:	02 80 00 04 	be  2002c10 <rtems_stack_checker_is_blown+0x80><== NEVER TAKEN
 2002c04:	b0 10 20 00 	clr  %i0                                       
                                                                      
  /*                                                                  
   * The Stack Pointer and the Pattern Area are OK so return false.   
   */                                                                 
  return false;                                                       
}                                                                     
 2002c08:	81 c7 e0 08 	ret                                            
 2002c0c:	81 e8 00 00 	restore                                        
                                                                      
  /*                                                                  
   * Let's report as much as we can.                                  
   */                                                                 
  if ( !sp_ok || !pattern_ok ) {                                      
    Stack_check_report_blown_task( _Thread_Executing, pattern_ok );   
 2002c10:	7f ff ff 9b 	call  2002a7c <Stack_check_report_blown_task>  <== NOT EXECUTED
 2002c14:	d0 07 20 0c 	ld  [ %i4 + 0xc ], %o0                         <== NOT EXECUTED
                                                                      

02002c1c <rtems_stack_checker_report_usage_with_plugin>: void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) {
 2002c1c:	9d e3 bf a0 	save  %sp, -96, %sp                            
  if ( !print )                                                       
 2002c20:	80 a6 60 00 	cmp  %i1, 0                                    
 2002c24:	02 80 00 14 	be  2002c74 <rtems_stack_checker_report_usage_with_plugin+0x58><== NEVER TAKEN
 2002c28:	39 00 80 66 	sethi  %hi(0x2019800), %i4                     
    return;                                                           
                                                                      
  print_context = context;                                            
  print_handler = print;                                              
 2002c2c:	3b 00 80 66 	sethi  %hi(0x2019800), %i5                     
)                                                                     
{                                                                     
  if ( !print )                                                       
    return;                                                           
                                                                      
  print_context = context;                                            
 2002c30:	f0 27 20 c4 	st  %i0, [ %i4 + 0xc4 ]                        
  print_handler = print;                                              
 2002c34:	f2 27 60 c0 	st  %i1, [ %i5 + 0xc0 ]                        
                                                                      
  (*print)( context, "Stack usage by thread\n");                      
 2002c38:	90 10 00 18 	mov  %i0, %o0                                  
 2002c3c:	13 00 80 60 	sethi  %hi(0x2018000), %o1                     
 2002c40:	9f c6 40 00 	call  %i1                                      
 2002c44:	92 12 63 48 	or  %o1, 0x348, %o1	! 2018348 <rtems_filesystem_table+0x534>
  (*print)( context,                                                  
 2002c48:	90 10 00 18 	mov  %i0, %o0                                  
 2002c4c:	13 00 80 60 	sethi  %hi(0x2018000), %o1                     
 2002c50:	9f c6 40 00 	call  %i1                                      
 2002c54:	92 12 63 60 	or  %o1, 0x360, %o1	! 2018360 <rtems_filesystem_table+0x54c>
"    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 );   
 2002c58:	11 00 80 09 	sethi  %hi(0x2002400), %o0                     
 2002c5c:	40 00 1e 23 	call  200a4e8 <rtems_iterate_over_all_threads> 
 2002c60:	90 12 23 d4 	or  %o0, 0x3d4, %o0	! 20027d4 <Stack_check_Dump_threads_usage>
                                                                      
  #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE)                          
    /* dump interrupt stack info if any */                            
    Stack_check_Dump_threads_usage((Thread_Control *) -1);            
 2002c64:	7f ff fe dc 	call  20027d4 <Stack_check_Dump_threads_usage> 
 2002c68:	90 10 3f ff 	mov  -1, %o0                                   
  #endif                                                              
                                                                      
  print_context = NULL;                                               
 2002c6c:	c0 27 20 c4 	clr  [ %i4 + 0xc4 ]                            
  print_handler = NULL;                                               
 2002c70:	c0 27 60 c0 	clr  [ %i5 + 0xc0 ]                            
 2002c74:	81 c7 e0 08 	ret                                            
 2002c78:	81 e8 00 00 	restore                                        
                                                                      

02002b24 <rtems_stack_checker_switch_extension>: */ void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) {
 2002b24:	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 = Stack_check_Get_pattern_area(the_stack);                  
 2002b28:	c2 06 20 bc 	ld  [ %i0 + 0xbc ], %g1                        
  /*                                                                  
   *  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,                                     
 2002b2c:	13 00 80 66 	sethi  %hi(0x2019800), %o1                     
  Stack_Control *the_stack = &running->Start.Initial_stack;           
  void          *pattern;                                             
  bool           sp_ok;                                               
  bool           pattern_ok = true;                                   
                                                                      
  pattern = Stack_check_Get_pattern_area(the_stack);                  
 2002b30:	90 00 60 08 	add  %g1, 8, %o0                               
  /*                                                                  
   *  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,                                     
 2002b34:	94 10 20 10 	mov  0x10, %o2                                 
)                                                                     
{                                                                     
  #if defined(__GNUC__)                                               
    void *sp = __builtin_frame_address(0);                            
                                                                      
    if ( sp < the_stack->area ) {                                     
 2002b38:	80 a7 80 01 	cmp  %fp, %g1                                  
 2002b3c:	0a 80 00 07 	bcs  2002b58 <rtems_stack_checker_switch_extension+0x34><== NEVER TAKEN
 2002b40:	92 12 63 54 	or  %o1, 0x354, %o1                            
      return false;                                                   
    }                                                                 
    if ( sp > (the_stack->area + the_stack->size) ) {                 
 2002b44:	c4 06 20 b8 	ld  [ %i0 + 0xb8 ], %g2                        
 2002b48:	82 00 40 02 	add  %g1, %g2, %g1                             
 2002b4c:	80 a7 80 01 	cmp  %fp, %g1                                  
 2002b50:	08 80 00 09 	bleu  2002b74 <rtems_stack_checker_switch_extension+0x50><== ALWAYS TAKEN
 2002b54:	01 00 00 00 	nop                                            
  /*                                                                  
   *  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,                                     
 2002b58:	40 00 3f 89 	call  201297c <memcmp>                         <== NOT EXECUTED
 2002b5c:	01 00 00 00 	nop                                            <== NOT EXECUTED
 2002b60:	80 a0 00 08 	cmp  %g0, %o0                                  <== NOT EXECUTED
 2002b64:	92 60 3f ff 	subx  %g0, -1, %o1                             <== NOT EXECUTED
            (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES));
                                                                      
  if ( !sp_ok || !pattern_ok ) {                                      
    Stack_check_report_blown_task( running, pattern_ok );             
 2002b68:	90 10 00 18 	mov  %i0, %o0                                  
 2002b6c:	7f ff ff c4 	call  2002a7c <Stack_check_report_blown_task>  
 2002b70:	92 0a 60 01 	and  %o1, 1, %o1                               
  /*                                                                  
   *  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,                                     
 2002b74:	40 00 3f 82 	call  201297c <memcmp>                         
 2002b78:	01 00 00 00 	nop                                            
            (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES));
                                                                      
  if ( !sp_ok || !pattern_ok ) {                                      
 2002b7c:	80 a2 20 00 	cmp  %o0, 0                                    
 2002b80:	12 bf ff fa 	bne  2002b68 <rtems_stack_checker_switch_extension+0x44>
 2002b84:	92 10 20 00 	clr  %o1                                       
 2002b88:	81 c7 e0 08 	ret                                            
 2002b8c:	81 e8 00 00 	restore                                        
                                                                      

0200c93c <rtems_string_to_int>: const char *s, int *n, char **endptr, int base ) {
 200c93c:	9d e3 bf 98 	save  %sp, -104, %sp                           
 200c940:	ba 10 00 18 	mov  %i0, %i5                                  
  long result;                                                        
  char *end;                                                          
                                                                      
  if ( !n )                                                           
 200c944:	80 a6 60 00 	cmp  %i1, 0                                    
 200c948:	02 80 00 1f 	be  200c9c4 <rtems_string_to_int+0x88>         
 200c94c:	b0 10 20 09 	mov  9, %i0                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
 200c950:	40 00 0d 7b 	call  200ff3c <__errno>                        
 200c954:	01 00 00 00 	nop                                            
 200c958:	c0 22 00 00 	clr  [ %o0 ]                                   
  *n = 0;                                                             
                                                                      
  result = strtol( s, &end, base );                                   
 200c95c:	94 10 00 1b 	mov  %i3, %o2                                  
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
 200c960:	c0 26 40 00 	clr  [ %i1 ]                                   
                                                                      
  result = strtol( s, &end, base );                                   
 200c964:	90 10 00 1d 	mov  %i5, %o0                                  
 200c968:	40 00 19 73 	call  2012f34 <strtol>                         
 200c96c:	92 07 bf fc 	add  %fp, -4, %o1                              
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
 200c970:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
  errno = 0;                                                          
  *n = 0;                                                             
                                                                      
  result = strtol( s, &end, base );                                   
                                                                      
  if ( endptr )                                                       
 200c974:	80 a6 a0 00 	cmp  %i2, 0                                    
 200c978:	02 80 00 03 	be  200c984 <rtems_string_to_int+0x48>         
 200c97c:	b6 10 00 08 	mov  %o0, %i3                                  
    *endptr = end;                                                    
 200c980:	c2 26 80 00 	st  %g1, [ %i2 ]                               
                                                                      
  if ( end == s )                                                     
 200c984:	80 a7 40 01 	cmp  %i5, %g1                                  
 200c988:	02 80 00 0f 	be  200c9c4 <rtems_string_to_int+0x88>         
 200c98c:	b0 10 20 0b 	mov  0xb, %i0                                  
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 200c990:	40 00 0d 6b 	call  200ff3c <__errno>                        
 200c994:	01 00 00 00 	nop                                            
 200c998:	c2 02 00 00 	ld  [ %o0 ], %g1                               
 200c99c:	80 a0 60 22 	cmp  %g1, 0x22                                 
 200c9a0:	02 80 00 05 	be  200c9b4 <rtems_string_to_int+0x78>         
 200c9a4:	03 20 00 00 	sethi  %hi(0x80000000), %g1                    
    errno = ERANGE;                                                   
    return RTEMS_INVALID_NUMBER;                                      
  }                                                                   
#endif                                                                
                                                                      
  *n = result;                                                        
 200c9a8:	f6 26 40 00 	st  %i3, [ %i1 ]                               
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 200c9ac:	81 c7 e0 08 	ret                                            
 200c9b0:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
    (( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
 200c9b4:	82 38 40 1b 	xnor  %g1, %i3, %g1                            
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 200c9b8:	80 a0 60 00 	cmp  %g1, 0                                    
 200c9bc:	12 80 00 04 	bne  200c9cc <rtems_string_to_int+0x90>        
 200c9c0:	b0 10 20 0a 	mov  0xa, %i0                                  
#endif                                                                
                                                                      
  *n = result;                                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 200c9c4:	81 c7 e0 08 	ret                                            
 200c9c8:	81 e8 00 00 	restore                                        
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 200c9cc:	80 a6 e0 00 	cmp  %i3, 0                                    
 200c9d0:	02 bf ff fd 	be  200c9c4 <rtems_string_to_int+0x88>         <== NEVER TAKEN
 200c9d4:	03 20 00 00 	sethi  %hi(0x80000000), %g1                    
    (( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
 200c9d8:	80 a6 c0 01 	cmp  %i3, %g1                                  
 200c9dc:	32 bf ff f4 	bne,a   200c9ac <rtems_string_to_int+0x70>     <== NEVER TAKEN
 200c9e0:	f6 26 40 00 	st  %i3, [ %i1 ]                               <== NOT EXECUTED
 200c9e4:	30 bf ff f8 	b,a   200c9c4 <rtems_string_to_int+0x88>       
                                                                      

0200cac0 <rtems_string_to_long>: const char *s, long *n, char **endptr, int base ) {
 200cac0:	9d e3 bf 98 	save  %sp, -104, %sp                           
 200cac4:	ba 10 00 18 	mov  %i0, %i5                                  
  long result;                                                        
  char *end;                                                          
                                                                      
  if ( !n )                                                           
 200cac8:	80 a6 60 00 	cmp  %i1, 0                                    
 200cacc:	02 80 00 1f 	be  200cb48 <rtems_string_to_long+0x88>        
 200cad0:	b0 10 20 09 	mov  9, %i0                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
 200cad4:	40 00 0d 1a 	call  200ff3c <__errno>                        
 200cad8:	01 00 00 00 	nop                                            
 200cadc:	c0 22 00 00 	clr  [ %o0 ]                                   
  *n = 0;                                                             
                                                                      
  result = strtol( s, &end, base );                                   
 200cae0:	94 10 00 1b 	mov  %i3, %o2                                  
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
 200cae4:	c0 26 40 00 	clr  [ %i1 ]                                   
                                                                      
  result = strtol( s, &end, base );                                   
 200cae8:	90 10 00 1d 	mov  %i5, %o0                                  
 200caec:	40 00 19 12 	call  2012f34 <strtol>                         
 200caf0:	92 07 bf fc 	add  %fp, -4, %o1                              
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
 200caf4:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
  errno = 0;                                                          
  *n = 0;                                                             
                                                                      
  result = strtol( s, &end, base );                                   
                                                                      
  if ( endptr )                                                       
 200caf8:	80 a6 a0 00 	cmp  %i2, 0                                    
 200cafc:	02 80 00 03 	be  200cb08 <rtems_string_to_long+0x48>        
 200cb00:	b6 10 00 08 	mov  %o0, %i3                                  
    *endptr = end;                                                    
 200cb04:	c2 26 80 00 	st  %g1, [ %i2 ]                               
                                                                      
  if ( end == s )                                                     
 200cb08:	80 a7 40 01 	cmp  %i5, %g1                                  
 200cb0c:	02 80 00 0f 	be  200cb48 <rtems_string_to_long+0x88>        
 200cb10:	b0 10 20 0b 	mov  0xb, %i0                                  
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 200cb14:	40 00 0d 0a 	call  200ff3c <__errno>                        
 200cb18:	01 00 00 00 	nop                                            
 200cb1c:	c2 02 00 00 	ld  [ %o0 ], %g1                               
 200cb20:	80 a0 60 22 	cmp  %g1, 0x22                                 
 200cb24:	02 80 00 05 	be  200cb38 <rtems_string_to_long+0x78>        
 200cb28:	03 20 00 00 	sethi  %hi(0x80000000), %g1                    
    (( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
 200cb2c:	f6 26 40 00 	st  %i3, [ %i1 ]                               
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 200cb30:	81 c7 e0 08 	ret                                            
 200cb34:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
    (( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
 200cb38:	82 38 40 1b 	xnor  %g1, %i3, %g1                            
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 200cb3c:	80 a0 60 00 	cmp  %g1, 0                                    
 200cb40:	12 80 00 04 	bne  200cb50 <rtems_string_to_long+0x90>       
 200cb44:	b0 10 20 0a 	mov  0xa, %i0                                  
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 200cb48:	81 c7 e0 08 	ret                                            
 200cb4c:	81 e8 00 00 	restore                                        
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 200cb50:	80 a6 e0 00 	cmp  %i3, 0                                    
 200cb54:	02 bf ff fd 	be  200cb48 <rtems_string_to_long+0x88>        <== NEVER TAKEN
 200cb58:	03 20 00 00 	sethi  %hi(0x80000000), %g1                    
    (( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
 200cb5c:	80 a6 c0 01 	cmp  %i3, %g1                                  
 200cb60:	32 bf ff f4 	bne,a   200cb30 <rtems_string_to_long+0x70>    <== NEVER TAKEN
 200cb64:	f6 26 40 00 	st  %i3, [ %i1 ]                               <== NOT EXECUTED
 200cb68:	30 bf ff f8 	b,a   200cb48 <rtems_string_to_long+0x88>      
                                                                      

0200c9e8 <rtems_string_to_long_long>: const char *s, long long *n, char **endptr, int base ) {
 200c9e8:	9d e3 bf 98 	save  %sp, -104, %sp                           
  long long result;                                                   
  char *end;                                                          
                                                                      
  if ( !n )                                                           
 200c9ec:	80 a6 60 00 	cmp  %i1, 0                                    
 200c9f0:	02 80 00 1c 	be  200ca60 <rtems_string_to_long_long+0x78>   
 200c9f4:	82 10 20 09 	mov  9, %g1                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
 200c9f8:	40 00 0d 51 	call  200ff3c <__errno>                        
 200c9fc:	01 00 00 00 	nop                                            
 200ca00:	c0 22 00 00 	clr  [ %o0 ]                                   
  *n = 0;                                                             
 200ca04:	c0 26 40 00 	clr  [ %i1 ]                                   
 200ca08:	c0 26 60 04 	clr  [ %i1 + 4 ]                               
                                                                      
  result = strtoll( s, &end, base );                                  
 200ca0c:	90 10 00 18 	mov  %i0, %o0                                  
 200ca10:	92 07 bf fc 	add  %fp, -4, %o1                              
 200ca14:	40 00 19 51 	call  2012f58 <strtoll>                        
 200ca18:	94 10 00 1b 	mov  %i3, %o2                                  
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
 200ca1c:	c4 07 bf fc 	ld  [ %fp + -4 ], %g2                          
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
                                                                      
  result = strtoll( s, &end, base );                                  
 200ca20:	b8 10 00 08 	mov  %o0, %i4                                  
                                                                      
  if ( endptr )                                                       
 200ca24:	80 a6 a0 00 	cmp  %i2, 0                                    
 200ca28:	02 80 00 03 	be  200ca34 <rtems_string_to_long_long+0x4c>   
 200ca2c:	ba 10 00 09 	mov  %o1, %i5                                  
    *endptr = end;                                                    
 200ca30:	c4 26 80 00 	st  %g2, [ %i2 ]                               
                                                                      
  if ( end == s )                                                     
 200ca34:	80 a6 00 02 	cmp  %i0, %g2                                  
 200ca38:	02 80 00 0a 	be  200ca60 <rtems_string_to_long_long+0x78>   
 200ca3c:	82 10 20 0b 	mov  0xb, %g1                                  
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 200ca40:	40 00 0d 3f 	call  200ff3c <__errno>                        
 200ca44:	01 00 00 00 	nop                                            
 200ca48:	c2 02 00 00 	ld  [ %o0 ], %g1                               
 200ca4c:	80 a0 60 22 	cmp  %g1, 0x22                                 
 200ca50:	02 80 00 06 	be  200ca68 <rtems_string_to_long_long+0x80>   
 200ca54:	05 1f ff ff 	sethi  %hi(0x7ffffc00), %g2                    
    (( result == 0 ) || ( result == LONG_LONG_MAX ) || ( result == LONG_LONG_MIN )))
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
 200ca58:	f8 3e 40 00 	std  %i4, [ %i1 ]                              
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 200ca5c:	82 10 20 00 	clr  %g1                                       
}                                                                     
 200ca60:	81 c7 e0 08 	ret                                            
 200ca64:	91 e8 00 01 	restore  %g0, %g1, %o0                         
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
    (( result == 0 ) || ( result == LONG_LONG_MAX ) || ( result == LONG_LONG_MIN )))
 200ca68:	07 3f ff ff 	sethi  %hi(0xfffffc00), %g3                    
 200ca6c:	84 10 a3 ff 	or  %g2, 0x3ff, %g2                            
 200ca70:	86 10 e3 ff 	or  %g3, 0x3ff, %g3                            
 200ca74:	84 1f 00 02 	xor  %i4, %g2, %g2                             
 200ca78:	86 1f 40 03 	xor  %i5, %g3, %g3                             
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 200ca7c:	80 90 80 03 	orcc  %g2, %g3, %g0                            
 200ca80:	12 80 00 04 	bne  200ca90 <rtems_string_to_long_long+0xa8>  
 200ca84:	80 97 00 1d 	orcc  %i4, %i5, %g0                            
    (( result == 0 ) || ( result == LONG_LONG_MAX ) || ( result == LONG_LONG_MIN )))
      return RTEMS_INVALID_NUMBER;                                    
 200ca88:	10 bf ff f6 	b  200ca60 <rtems_string_to_long_long+0x78>    
 200ca8c:	82 10 20 0a 	mov  0xa, %g1                                  
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 200ca90:	02 bf ff f4 	be  200ca60 <rtems_string_to_long_long+0x78>   <== NEVER TAKEN
 200ca94:	82 10 20 0a 	mov  0xa, %g1                                  
    (( result == 0 ) || ( result == LONG_LONG_MAX ) || ( result == LONG_LONG_MIN )))
 200ca98:	03 20 00 00 	sethi  %hi(0x80000000), %g1                    
 200ca9c:	80 a7 00 01 	cmp  %i4, %g1                                  
 200caa0:	32 bf ff ef 	bne,a   200ca5c <rtems_string_to_long_long+0x74><== NEVER TAKEN
 200caa4:	f8 3e 40 00 	std  %i4, [ %i1 ]                              <== NOT EXECUTED
 200caa8:	80 a7 60 00 	cmp  %i5, 0                                    
 200caac:	22 bf ff ed 	be,a   200ca60 <rtems_string_to_long_long+0x78><== ALWAYS TAKEN
 200cab0:	82 10 20 0a 	mov  0xa, %g1                                  
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
 200cab4:	f8 3e 40 00 	std  %i4, [ %i1 ]                              <== NOT EXECUTED
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 200cab8:	10 bf ff ea 	b  200ca60 <rtems_string_to_long_long+0x78>    <== NOT EXECUTED
 200cabc:	82 10 20 00 	clr  %g1                                       <== NOT EXECUTED
                                                                      

0200cb7c <rtems_string_to_unsigned_char>: const char *s, unsigned char *n, char **endptr, int base ) {
 200cb7c:	9d e3 bf 98 	save  %sp, -104, %sp                           
 200cb80:	ba 10 00 18 	mov  %i0, %i5                                  
  unsigned long result;                                               
  char *end;                                                          
                                                                      
  if ( !n )                                                           
 200cb84:	80 a6 60 00 	cmp  %i1, 0                                    
 200cb88:	02 80 00 22 	be  200cc10 <rtems_string_to_unsigned_char+0x94>
 200cb8c:	b0 10 20 09 	mov  9, %i0                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
 200cb90:	40 00 0c eb 	call  200ff3c <__errno>                        
 200cb94:	01 00 00 00 	nop                                            
 200cb98:	c0 22 00 00 	clr  [ %o0 ]                                   
  *n = 0;                                                             
                                                                      
  result = strtoul( s, &end, base );                                  
 200cb9c:	94 10 00 1b 	mov  %i3, %o2                                  
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
 200cba0:	c0 2e 40 00 	clrb  [ %i1 ]                                  
                                                                      
  result = strtoul( s, &end, base );                                  
 200cba4:	90 10 00 1d 	mov  %i5, %o0                                  
 200cba8:	40 00 1a 3c 	call  2013498 <strtoul>                        
 200cbac:	92 07 bf fc 	add  %fp, -4, %o1                              
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
 200cbb0:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
  errno = 0;                                                          
  *n = 0;                                                             
                                                                      
  result = strtoul( s, &end, base );                                  
                                                                      
  if ( endptr )                                                       
 200cbb4:	80 a6 a0 00 	cmp  %i2, 0                                    
 200cbb8:	02 80 00 03 	be  200cbc4 <rtems_string_to_unsigned_char+0x48>
 200cbbc:	b6 10 00 08 	mov  %o0, %i3                                  
    *endptr = end;                                                    
 200cbc0:	c2 26 80 00 	st  %g1, [ %i2 ]                               
                                                                      
  if ( end == s )                                                     
 200cbc4:	80 a7 40 01 	cmp  %i5, %g1                                  
 200cbc8:	02 80 00 12 	be  200cc10 <rtems_string_to_unsigned_char+0x94>
 200cbcc:	b0 10 20 0b 	mov  0xb, %i0                                  
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 200cbd0:	40 00 0c db 	call  200ff3c <__errno>                        
 200cbd4:	01 00 00 00 	nop                                            
 200cbd8:	c2 02 00 00 	ld  [ %o0 ], %g1                               
 200cbdc:	80 a0 60 22 	cmp  %g1, 0x22                                 
 200cbe0:	02 80 00 0e 	be  200cc18 <rtems_string_to_unsigned_char+0x9c>
 200cbe4:	82 06 ff ff 	add  %i3, -1, %g1                              
    (( result == 0 ) || ( result == ULONG_MAX )))                     
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
#if (UCHAR_MAX < ULONG_MAX)                                           
  if ( result > UCHAR_MAX ) {                                         
 200cbe8:	80 a6 e0 ff 	cmp  %i3, 0xff                                 
 200cbec:	18 80 00 05 	bgu  200cc00 <rtems_string_to_unsigned_char+0x84>
 200cbf0:	01 00 00 00 	nop                                            
    errno = ERANGE;                                                   
    return RTEMS_INVALID_NUMBER;                                      
  }                                                                   
#endif                                                                
                                                                      
  *n = result;                                                        
 200cbf4:	f6 2e 40 00 	stb  %i3, [ %i1 ]                              
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 200cbf8:	81 c7 e0 08 	ret                                            
 200cbfc:	91 e8 20 00 	restore  %g0, 0, %o0                           
    (( result == 0 ) || ( result == ULONG_MAX )))                     
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
#if (UCHAR_MAX < ULONG_MAX)                                           
  if ( result > UCHAR_MAX ) {                                         
    errno = ERANGE;                                                   
 200cc00:	40 00 0c cf 	call  200ff3c <__errno>                        
 200cc04:	b0 10 20 0a 	mov  0xa, %i0                                  
 200cc08:	82 10 20 22 	mov  0x22, %g1                                 
 200cc0c:	c2 22 00 00 	st  %g1, [ %o0 ]                               
    return RTEMS_INVALID_NUMBER;                                      
 200cc10:	81 c7 e0 08 	ret                                            
 200cc14:	81 e8 00 00 	restore                                        
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 200cc18:	80 a0 7f fd 	cmp  %g1, -3                                   
 200cc1c:	08 bf ff f3 	bleu  200cbe8 <rtems_string_to_unsigned_char+0x6c><== NEVER TAKEN
 200cc20:	b0 10 20 0a 	mov  0xa, %i0                                  
#endif                                                                
                                                                      
  *n = result;                                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 200cc24:	81 c7 e0 08 	ret                                            
 200cc28:	81 e8 00 00 	restore                                        
                                                                      

0200cc2c <rtems_string_to_unsigned_int>: const char *s, unsigned int *n, char **endptr, int base ) {
 200cc2c:	9d e3 bf 98 	save  %sp, -104, %sp                           
 200cc30:	ba 10 00 18 	mov  %i0, %i5                                  
  unsigned long result;                                               
  char *end;                                                          
                                                                      
  if ( !n )                                                           
 200cc34:	80 a6 60 00 	cmp  %i1, 0                                    
 200cc38:	02 80 00 1e 	be  200ccb0 <rtems_string_to_unsigned_int+0x84>
 200cc3c:	b0 10 20 09 	mov  9, %i0                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
 200cc40:	40 00 0c bf 	call  200ff3c <__errno>                        
 200cc44:	01 00 00 00 	nop                                            
 200cc48:	c0 22 00 00 	clr  [ %o0 ]                                   
  *n = 0;                                                             
                                                                      
  result = strtoul( s, &end, base );                                  
 200cc4c:	94 10 00 1b 	mov  %i3, %o2                                  
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
 200cc50:	c0 26 40 00 	clr  [ %i1 ]                                   
                                                                      
  result = strtoul( s, &end, base );                                  
 200cc54:	90 10 00 1d 	mov  %i5, %o0                                  
 200cc58:	40 00 1a 10 	call  2013498 <strtoul>                        
 200cc5c:	92 07 bf fc 	add  %fp, -4, %o1                              
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
 200cc60:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
  errno = 0;                                                          
  *n = 0;                                                             
                                                                      
  result = strtoul( s, &end, base );                                  
                                                                      
  if ( endptr )                                                       
 200cc64:	80 a6 a0 00 	cmp  %i2, 0                                    
 200cc68:	02 80 00 03 	be  200cc74 <rtems_string_to_unsigned_int+0x48>
 200cc6c:	b6 10 00 08 	mov  %o0, %i3                                  
    *endptr = end;                                                    
 200cc70:	c2 26 80 00 	st  %g1, [ %i2 ]                               
                                                                      
  if ( end == s )                                                     
 200cc74:	80 a7 40 01 	cmp  %i5, %g1                                  
 200cc78:	02 80 00 0e 	be  200ccb0 <rtems_string_to_unsigned_int+0x84>
 200cc7c:	b0 10 20 0b 	mov  0xb, %i0                                  
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 200cc80:	40 00 0c af 	call  200ff3c <__errno>                        
 200cc84:	01 00 00 00 	nop                                            
 200cc88:	c2 02 00 00 	ld  [ %o0 ], %g1                               
 200cc8c:	80 a0 60 22 	cmp  %g1, 0x22                                 
 200cc90:	02 80 00 05 	be  200cca4 <rtems_string_to_unsigned_int+0x78>
 200cc94:	82 06 ff ff 	add  %i3, -1, %g1                              
    errno = ERANGE;                                                   
    return RTEMS_INVALID_NUMBER;                                      
  }                                                                   
#endif                                                                
                                                                      
  *n = result;                                                        
 200cc98:	f6 26 40 00 	st  %i3, [ %i1 ]                               
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 200cc9c:	81 c7 e0 08 	ret                                            
 200cca0:	91 e8 20 00 	restore  %g0, 0, %o0                           
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 200cca4:	80 a0 7f fd 	cmp  %g1, -3                                   
 200cca8:	08 bf ff fc 	bleu  200cc98 <rtems_string_to_unsigned_int+0x6c><== NEVER TAKEN
 200ccac:	b0 10 20 0a 	mov  0xa, %i0                                  
#endif                                                                
                                                                      
  *n = result;                                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 200ccb0:	81 c7 e0 08 	ret                                            
 200ccb4:	81 e8 00 00 	restore                                        
                                                                      

0200cd58 <rtems_string_to_unsigned_long>: const char *s, unsigned long *n, char **endptr, int base ) {
 200cd58:	9d e3 bf 98 	save  %sp, -104, %sp                           
 200cd5c:	ba 10 00 18 	mov  %i0, %i5                                  
  unsigned long result;                                               
  char *end;                                                          
                                                                      
  if ( !n )                                                           
 200cd60:	80 a6 60 00 	cmp  %i1, 0                                    
 200cd64:	02 80 00 1e 	be  200cddc <rtems_string_to_unsigned_long+0x84>
 200cd68:	b0 10 20 09 	mov  9, %i0                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
 200cd6c:	40 00 0c 74 	call  200ff3c <__errno>                        
 200cd70:	01 00 00 00 	nop                                            
 200cd74:	c0 22 00 00 	clr  [ %o0 ]                                   
  *n = 0;                                                             
                                                                      
  result = strtoul( s, &end, base );                                  
 200cd78:	94 10 00 1b 	mov  %i3, %o2                                  
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
 200cd7c:	c0 26 40 00 	clr  [ %i1 ]                                   
                                                                      
  result = strtoul( s, &end, base );                                  
 200cd80:	90 10 00 1d 	mov  %i5, %o0                                  
 200cd84:	40 00 19 c5 	call  2013498 <strtoul>                        
 200cd88:	92 07 bf fc 	add  %fp, -4, %o1                              
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
 200cd8c:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
  errno = 0;                                                          
  *n = 0;                                                             
                                                                      
  result = strtoul( s, &end, base );                                  
                                                                      
  if ( endptr )                                                       
 200cd90:	80 a6 a0 00 	cmp  %i2, 0                                    
 200cd94:	02 80 00 03 	be  200cda0 <rtems_string_to_unsigned_long+0x48>
 200cd98:	b6 10 00 08 	mov  %o0, %i3                                  
    *endptr = end;                                                    
 200cd9c:	c2 26 80 00 	st  %g1, [ %i2 ]                               
                                                                      
  if ( end == s )                                                     
 200cda0:	80 a7 40 01 	cmp  %i5, %g1                                  
 200cda4:	02 80 00 0e 	be  200cddc <rtems_string_to_unsigned_long+0x84>
 200cda8:	b0 10 20 0b 	mov  0xb, %i0                                  
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 200cdac:	40 00 0c 64 	call  200ff3c <__errno>                        
 200cdb0:	01 00 00 00 	nop                                            
 200cdb4:	c2 02 00 00 	ld  [ %o0 ], %g1                               
 200cdb8:	80 a0 60 22 	cmp  %g1, 0x22                                 
 200cdbc:	02 80 00 05 	be  200cdd0 <rtems_string_to_unsigned_long+0x78>
 200cdc0:	82 06 ff ff 	add  %i3, -1, %g1                              
    (( result == 0 ) || ( result == ULONG_MAX )))                     
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
 200cdc4:	f6 26 40 00 	st  %i3, [ %i1 ]                               
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 200cdc8:	81 c7 e0 08 	ret                                            
 200cdcc:	91 e8 20 00 	restore  %g0, 0, %o0                           
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 200cdd0:	80 a0 7f fd 	cmp  %g1, -3                                   
 200cdd4:	08 bf ff fc 	bleu  200cdc4 <rtems_string_to_unsigned_long+0x6c><== NEVER TAKEN
 200cdd8:	b0 10 20 0a 	mov  0xa, %i0                                  
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 200cddc:	81 c7 e0 08 	ret                                            
 200cde0:	81 e8 00 00 	restore                                        
                                                                      

0200ccb8 <rtems_string_to_unsigned_long_long>: const char *s, unsigned long long *n, char **endptr, int base ) {
 200ccb8:	9d e3 bf 98 	save  %sp, -104, %sp                           
  unsigned long long result;                                          
  char *end;                                                          
                                                                      
  if ( !n )                                                           
 200ccbc:	80 a6 60 00 	cmp  %i1, 0                                    
 200ccc0:	02 80 00 1c 	be  200cd30 <rtems_string_to_unsigned_long_long+0x78>
 200ccc4:	82 10 20 09 	mov  9, %g1                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
 200ccc8:	40 00 0c 9d 	call  200ff3c <__errno>                        
 200cccc:	01 00 00 00 	nop                                            
 200ccd0:	c0 22 00 00 	clr  [ %o0 ]                                   
  *n = 0;                                                             
 200ccd4:	c0 26 40 00 	clr  [ %i1 ]                                   
 200ccd8:	c0 26 60 04 	clr  [ %i1 + 4 ]                               
                                                                      
  result = strtoull( s, &end, base );                                 
 200ccdc:	90 10 00 18 	mov  %i0, %o0                                  
 200cce0:	92 07 bf fc 	add  %fp, -4, %o1                              
 200cce4:	40 00 19 f6 	call  20134bc <strtoull>                       
 200cce8:	94 10 00 1b 	mov  %i3, %o2                                  
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
 200ccec:	c4 07 bf fc 	ld  [ %fp + -4 ], %g2                          
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
                                                                      
  result = strtoull( s, &end, base );                                 
 200ccf0:	b8 10 00 08 	mov  %o0, %i4                                  
                                                                      
  if ( endptr )                                                       
 200ccf4:	80 a6 a0 00 	cmp  %i2, 0                                    
 200ccf8:	02 80 00 03 	be  200cd04 <rtems_string_to_unsigned_long_long+0x4c>
 200ccfc:	ba 10 00 09 	mov  %o1, %i5                                  
    *endptr = end;                                                    
 200cd00:	c4 26 80 00 	st  %g2, [ %i2 ]                               
                                                                      
  if ( end == s )                                                     
 200cd04:	80 a6 00 02 	cmp  %i0, %g2                                  
 200cd08:	02 80 00 0a 	be  200cd30 <rtems_string_to_unsigned_long_long+0x78>
 200cd0c:	82 10 20 0b 	mov  0xb, %g1                                  
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 200cd10:	40 00 0c 8b 	call  200ff3c <__errno>                        
 200cd14:	01 00 00 00 	nop                                            
 200cd18:	c2 02 00 00 	ld  [ %o0 ], %g1                               
 200cd1c:	80 a0 60 22 	cmp  %g1, 0x22                                 
 200cd20:	02 80 00 06 	be  200cd38 <rtems_string_to_unsigned_long_long+0x80>
 200cd24:	86 87 7f ff 	addcc  %i5, -1, %g3                            
    (( result == 0 ) || ( result == ULONG_LONG_MAX )))                
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
 200cd28:	f8 3e 40 00 	std  %i4, [ %i1 ]                              
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 200cd2c:	82 10 20 00 	clr  %g1                                       
}                                                                     
 200cd30:	81 c7 e0 08 	ret                                            
 200cd34:	91 e8 00 01 	restore  %g0, %g1, %o0                         
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
    (( result == 0 ) || ( result == ULONG_LONG_MAX )))                
 200cd38:	84 47 3f ff 	addx  %i4, -1, %g2                             
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 200cd3c:	80 a0 bf ff 	cmp  %g2, -1                                   
 200cd40:	12 bf ff fa 	bne  200cd28 <rtems_string_to_unsigned_long_long+0x70><== NEVER TAKEN
 200cd44:	80 a0 ff fd 	cmp  %g3, -3                                   
 200cd48:	18 bf ff fa 	bgu  200cd30 <rtems_string_to_unsigned_long_long+0x78><== ALWAYS TAKEN
 200cd4c:	82 10 20 0a 	mov  0xa, %g1                                  
    (( result == 0 ) || ( result == ULONG_LONG_MAX )))                
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
 200cd50:	10 bf ff f7 	b  200cd2c <rtems_string_to_unsigned_long_long+0x74><== NOT EXECUTED
 200cd54:	f8 3e 40 00 	std  %i4, [ %i1 ]                              <== NOT EXECUTED
                                                                      

02002690 <rtems_tarfs_load>: int rtems_tarfs_load( char *mountpoint, uint8_t *tar_image, size_t tar_size ) {
 2002690:	9d e3 be 10 	save  %sp, -496, %sp                           
   int                              offset;                           
   unsigned long                    nblocks;                          
   IMFS_jnode_t                    *node;                             
   int                              status;                           
                                                                      
   status = rtems_filesystem_evaluate_path(                           
 2002694:	40 00 47 95 	call  20144e8 <strlen>                         
 2002698:	90 10 00 18 	mov  %i0, %o0                                  
int rtems_tarfs_load(                                                 
  char    *mountpoint,                                                
  uint8_t *tar_image,                                                 
  size_t   tar_size                                                   
)                                                                     
{                                                                     
 200269c:	ba 10 00 18 	mov  %i0, %i5                                  
   int                              offset;                           
   unsigned long                    nblocks;                          
   IMFS_jnode_t                    *node;                             
   int                              status;                           
                                                                      
   status = rtems_filesystem_evaluate_path(                           
 20026a0:	92 10 00 08 	mov  %o0, %o1                                  
 20026a4:	94 10 20 00 	clr  %o2                                       
 20026a8:	90 10 00 18 	mov  %i0, %o0                                  
 20026ac:	96 07 bf d4 	add  %fp, -44, %o3                             
 20026b0:	40 00 02 e6 	call  2003248 <rtems_filesystem_evaluate_path> 
 20026b4:	98 10 20 00 	clr  %o4                                       
      strlen(mountpoint),                                             
      0,                                                              
      &root_loc,                                                      
      0                                                               
   );                                                                 
   if (status != 0)                                                   
 20026b8:	b0 92 20 00 	orcc  %o0, 0, %i0                              
 20026bc:	12 80 00 75 	bne  2002890 <rtems_tarfs_load+0x200>          
 20026c0:	c2 07 bf e0 	ld  [ %fp + -32 ], %g1                         
     return -1;                                                       
                                                                      
   if (root_loc.ops != &IMFS_ops && root_loc.ops != &fifoIMFS_ops)    
 20026c4:	05 00 80 80 	sethi  %hi(0x2020000), %g2                     
 20026c8:	84 10 a0 a8 	or  %g2, 0xa8, %g2	! 20200a8 <IMFS_ops>        
 20026cc:	80 a0 40 02 	cmp  %g1, %g2                                  
 20026d0:	02 80 00 06 	be  20026e8 <rtems_tarfs_load+0x58>            
 20026d4:	05 00 80 82 	sethi  %hi(0x2020800), %g2                     
 20026d8:	84 10 a1 64 	or  %g2, 0x164, %g2	! 2020964 <fifoIMFS_ops>   
 20026dc:	80 a0 40 02 	cmp  %g1, %g2                                  
 20026e0:	12 80 00 6a 	bne  2002888 <rtems_tarfs_load+0x1f8>          <== ALWAYS TAKEN
 20026e4:	01 00 00 00 	nop                                            
 20026e8:	a6 10 20 00 	clr  %l3	! 0 <PROM_START>                      
    /*                                                                
     * Read a header.                                                 
     */                                                               
    hdr_ptr = (char *) &tar_image[offset];                            
    offset += 512;                                                    
    if (strncmp(&hdr_ptr[257], "ustar", 5))                           
 20026ec:	21 00 80 80 	sethi  %hi(0x2020000), %l0                     
   /*                                                                 
    * Create an IMFS node structure pointing to tar image memory.     
    */                                                                
   offset = 0;                                                        
   while (1) {                                                        
    if (offset + 512 > tar_size)                                      
 20026f0:	b8 04 e2 00 	add  %l3, 0x200, %i4                           
    /*                                                                
     * Read a header.                                                 
     */                                                               
    hdr_ptr = (char *) &tar_image[offset];                            
    offset += 512;                                                    
    if (strncmp(&hdr_ptr[257], "ustar", 5))                           
 20026f4:	a0 14 20 f0 	or  %l0, 0xf0, %l0                             
    else if (linkflag == REGTYPE) {                                   
      const char  *name;                                              
                                                                      
      loc = root_loc;                                                 
      if (IMFS_evaluate_for_make(filename, &loc, &name) == 0) {       
        node = IMFS_create_node(                                      
 20026f8:	25 00 00 20 	sethi  %hi(0x8000), %l2                        
   /*                                                                 
    * Create an IMFS node structure pointing to tar image memory.     
    */                                                                
   offset = 0;                                                        
   while (1) {                                                        
    if (offset + 512 > tar_size)                                      
 20026fc:	80 a7 00 1a 	cmp  %i4, %i2                                  
 2002700:	18 80 00 29 	bgu  20027a4 <rtems_tarfs_load+0x114>          <== NEVER TAKEN
 2002704:	a2 10 20 2f 	mov  0x2f, %l1                                 
      break;                                                          
                                                                      
    /*                                                                
     * Read a header.                                                 
     */                                                               
    hdr_ptr = (char *) &tar_image[offset];                            
 2002708:	a6 06 40 13 	add  %i1, %l3, %l3                             
    offset += 512;                                                    
    if (strncmp(&hdr_ptr[257], "ustar", 5))                           
 200270c:	92 10 00 10 	mov  %l0, %o1                                  
 2002710:	90 04 e1 01 	add  %l3, 0x101, %o0                           
 2002714:	40 00 47 a6 	call  20145ac <strncmp>                        
 2002718:	94 10 20 05 	mov  5, %o2                                    
 200271c:	80 a2 20 00 	cmp  %o0, 0                                    
 2002720:	12 80 00 21 	bne  20027a4 <rtems_tarfs_load+0x114>          
 2002724:	94 10 20 63 	mov  0x63, %o2                                 
      break;                                                          
                                                                      
    strncpy(filename, hdr_ptr, MAX_NAME_FIELD_SIZE);                  
 2002728:	92 10 00 13 	mov  %l3, %o1                                  
 200272c:	40 00 47 f5 	call  2014700 <strncpy>                        
 2002730:	90 07 bf 70 	add  %fp, -144, %o0                            
    filename[MAX_NAME_FIELD_SIZE] = '\0';                             
                                                                      
    linkflag   = hdr_ptr[156];                                        
    file_mode  = _rtems_octal2ulong(&hdr_ptr[100], 8);                
 2002734:	92 10 20 08 	mov  8, %o1                                    
    offset += 512;                                                    
    if (strncmp(&hdr_ptr[257], "ustar", 5))                           
      break;                                                          
                                                                      
    strncpy(filename, hdr_ptr, MAX_NAME_FIELD_SIZE);                  
    filename[MAX_NAME_FIELD_SIZE] = '\0';                             
 2002738:	c0 2f bf d3 	clrb  [ %fp + -45 ]                            
                                                                      
    linkflag   = hdr_ptr[156];                                        
 200273c:	ea 0c e0 9c 	ldub  [ %l3 + 0x9c ], %l5                      
    file_mode  = _rtems_octal2ulong(&hdr_ptr[100], 8);                
 2002740:	40 00 21 c6 	call  200ae58 <_rtems_octal2ulong>             
 2002744:	90 04 e0 64 	add  %l3, 0x64, %o0                            
    file_size  = _rtems_octal2ulong(&hdr_ptr[124], 12);               
 2002748:	92 10 20 0c 	mov  0xc, %o1                                  
                                                                      
    strncpy(filename, hdr_ptr, MAX_NAME_FIELD_SIZE);                  
    filename[MAX_NAME_FIELD_SIZE] = '\0';                             
                                                                      
    linkflag   = hdr_ptr[156];                                        
    file_mode  = _rtems_octal2ulong(&hdr_ptr[100], 8);                
 200274c:	a8 10 00 08 	mov  %o0, %l4                                  
    file_size  = _rtems_octal2ulong(&hdr_ptr[124], 12);               
 2002750:	40 00 21 c2 	call  200ae58 <_rtems_octal2ulong>             
 2002754:	90 04 e0 7c 	add  %l3, 0x7c, %o0                            
    hdr_chksum = _rtems_octal2ulong(&hdr_ptr[148], 8);                
 2002758:	92 10 20 08 	mov  8, %o1                                    
    strncpy(filename, hdr_ptr, MAX_NAME_FIELD_SIZE);                  
    filename[MAX_NAME_FIELD_SIZE] = '\0';                             
                                                                      
    linkflag   = hdr_ptr[156];                                        
    file_mode  = _rtems_octal2ulong(&hdr_ptr[100], 8);                
    file_size  = _rtems_octal2ulong(&hdr_ptr[124], 12);               
 200275c:	b6 10 00 08 	mov  %o0, %i3                                  
    hdr_chksum = _rtems_octal2ulong(&hdr_ptr[148], 8);                
 2002760:	40 00 21 be 	call  200ae58 <_rtems_octal2ulong>             
 2002764:	90 04 e0 94 	add  %l3, 0x94, %o0                            
 2002768:	ac 10 00 08 	mov  %o0, %l6                                  
                                                                      
    if (_rtems_tar_header_checksum(hdr_ptr) != hdr_chksum)            
 200276c:	40 00 23 0d 	call  200b3a0 <_rtems_tar_header_checksum>     
 2002770:	90 10 00 13 	mov  %l3, %o0                                  
 2002774:	80 a2 00 16 	cmp  %o0, %l6                                  
 2002778:	12 80 00 0b 	bne  20027a4 <rtems_tarfs_load+0x114>          <== NEVER TAKEN
 200277c:	aa 0d 60 ff 	and  %l5, 0xff, %l5                            
     * Generate an IMFS node depending on the file type.              
     * - For directories, just create directories as usual.  IMFS     
     *   will take care of the rest.                                  
     * - For files, create a file node with special tarfs properties. 
     */                                                               
    if (linkflag == DIRTYPE) {                                        
 2002780:	80 a5 60 35 	cmp  %l5, 0x35                                 
 2002784:	02 80 00 20 	be  2002804 <rtems_tarfs_load+0x174>           
 2002788:	80 a5 60 30 	cmp  %l5, 0x30                                 
     *        IMFS_create_node 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.                              
     */                                                               
    else if (linkflag == REGTYPE) {                                   
 200278c:	02 80 00 08 	be  20027ac <rtems_tarfs_load+0x11c>           
 2002790:	a6 10 00 1c 	mov  %i4, %l3                                  
   /*                                                                 
    * Create an IMFS node structure pointing to tar image memory.     
    */                                                                
   offset = 0;                                                        
   while (1) {                                                        
    if (offset + 512 > tar_size)                                      
 2002794:	b8 04 e2 00 	add  %l3, 0x200, %i4                           
 2002798:	80 a7 00 1a 	cmp  %i4, %i2                                  
 200279c:	08 bf ff dc 	bleu  200270c <rtems_tarfs_load+0x7c>          <== ALWAYS TAKEN
 20027a0:	a6 06 40 13 	add  %i1, %l3, %l3                             
      nblocks = (((file_size) + 511) & ~511) / 512;                   
      offset += 512 * nblocks;                                        
    }                                                                 
  }                                                                   
  return status;                                                      
}                                                                     
 20027a4:	81 c7 e0 08 	ret                                            
 20027a8:	81 e8 00 00 	restore                                        
     *        should not have this path.                              
     */                                                               
    else if (linkflag == REGTYPE) {                                   
      const char  *name;                                              
                                                                      
      loc = root_loc;                                                 
 20027ac:	c2 07 bf d4 	ld  [ %fp + -44 ], %g1                         
      if (IMFS_evaluate_for_make(filename, &loc, &name) == 0) {       
 20027b0:	90 07 bf 70 	add  %fp, -144, %o0                            
     *        should not have this path.                              
     */                                                               
    else if (linkflag == REGTYPE) {                                   
      const char  *name;                                              
                                                                      
      loc = root_loc;                                                 
 20027b4:	c2 27 bf e8 	st  %g1, [ %fp + -24 ]                         
 20027b8:	c2 07 bf d8 	ld  [ %fp + -40 ], %g1                         
      if (IMFS_evaluate_for_make(filename, &loc, &name) == 0) {       
 20027bc:	92 07 bf e8 	add  %fp, -24, %o1                             
     *        should not have this path.                              
     */                                                               
    else if (linkflag == REGTYPE) {                                   
      const char  *name;                                              
                                                                      
      loc = root_loc;                                                 
 20027c0:	c2 27 bf ec 	st  %g1, [ %fp + -20 ]                         
 20027c4:	c2 07 bf dc 	ld  [ %fp + -36 ], %g1                         
      if (IMFS_evaluate_for_make(filename, &loc, &name) == 0) {       
 20027c8:	94 07 bf fc 	add  %fp, -4, %o2                              
     *        should not have this path.                              
     */                                                               
    else if (linkflag == REGTYPE) {                                   
      const char  *name;                                              
                                                                      
      loc = root_loc;                                                 
 20027cc:	c2 27 bf f0 	st  %g1, [ %fp + -16 ]                         
 20027d0:	c2 07 bf e0 	ld  [ %fp + -32 ], %g1                         
 20027d4:	c2 27 bf f4 	st  %g1, [ %fp + -12 ]                         
 20027d8:	c2 07 bf e4 	ld  [ %fp + -28 ], %g1                         
      if (IMFS_evaluate_for_make(filename, &loc, &name) == 0) {       
 20027dc:	40 00 25 9e 	call  200be54 <IMFS_evaluate_for_make>         
 20027e0:	c2 27 bf f8 	st  %g1, [ %fp + -8 ]                          
 20027e4:	80 a2 20 00 	cmp  %o0, 0                                    
 20027e8:	02 80 00 1d 	be  200285c <rtems_tarfs_load+0x1cc>           <== ALWAYS TAKEN
 20027ec:	d4 07 bf fc 	ld  [ %fp + -4 ], %o2                          
        );                                                            
        node->info.linearfile.size   = file_size;                     
        node->info.linearfile.direct = &tar_image[offset];            
      }                                                               
                                                                      
      nblocks = (((file_size) + 511) & ~511) / 512;                   
 20027f0:	b6 06 e1 ff 	add  %i3, 0x1ff, %i3                           
      offset += 512 * nblocks;                                        
 20027f4:	b6 0e fe 00 	and  %i3, -512, %i3                            
 20027f8:	b8 06 c0 1c 	add  %i3, %i4, %i4                             
      0                                                               
   );                                                                 
   if (status != 0)                                                   
     return -1;                                                       
                                                                      
   if (root_loc.ops != &IMFS_ops && root_loc.ops != &fifoIMFS_ops)    
 20027fc:	10 bf ff e6 	b  2002794 <rtems_tarfs_load+0x104>            
 2002800:	a6 10 00 1c 	mov  %i4, %l3                                  
     * - For directories, just create directories as usual.  IMFS     
     *   will take care of the rest.                                  
     * - For files, create a file node with special tarfs properties. 
     */                                                               
    if (linkflag == DIRTYPE) {                                        
      strcpy(full_filename, mountpoint);                              
 2002804:	92 10 00 1d 	mov  %i5, %o1                                  
 2002808:	40 00 45 74 	call  2013dd8 <strcpy>                         
 200280c:	90 07 be 70 	add  %fp, -400, %o0                            
      if (full_filename[strlen(full_filename)-1] != '/')              
 2002810:	40 00 47 36 	call  20144e8 <strlen>                         
 2002814:	90 07 be 70 	add  %fp, -400, %o0                            
 2002818:	82 07 80 08 	add  %fp, %o0, %g1                             
 200281c:	c2 48 7e 6f 	ldsb  [ %g1 + -401 ], %g1                      
 2002820:	80 a0 60 2f 	cmp  %g1, 0x2f                                 
 2002824:	02 80 00 05 	be  2002838 <rtems_tarfs_load+0x1a8>           <== ALWAYS TAKEN
 2002828:	82 07 be 70 	add  %fp, -400, %g1                            
        strcat(full_filename, "/");                                   
 200282c:	e2 28 40 08 	stb  %l1, [ %g1 + %o0 ]                        <== NOT EXECUTED
 2002830:	90 00 40 08 	add  %g1, %o0, %o0                             <== NOT EXECUTED
 2002834:	c0 2a 20 01 	clrb  [ %o0 + 1 ]                              <== NOT EXECUTED
      strcat(full_filename, filename);                                
 2002838:	92 07 bf 70 	add  %fp, -144, %o1                            
 200283c:	40 00 45 13 	call  2013c88 <strcat>                         
 2002840:	90 07 be 70 	add  %fp, -400, %o0                            
      mkdir(full_filename, S_IRWXU | S_IRWXG | S_IRWXO);              
 2002844:	90 07 be 70 	add  %fp, -400, %o0                            
 2002848:	92 10 21 ff 	mov  0x1ff, %o1                                
 200284c:	40 00 04 d9 	call  2003bb0 <mkdir>                          
 2002850:	a6 10 00 1c 	mov  %i4, %l3                                  
   /*                                                                 
    * Create an IMFS node structure pointing to tar image memory.     
    */                                                                
   offset = 0;                                                        
   while (1) {                                                        
    if (offset + 512 > tar_size)                                      
 2002854:	10 bf ff d1 	b  2002798 <rtems_tarfs_load+0x108>            
 2002858:	b8 04 e2 00 	add  %l3, 0x200, %i4                           
      loc = root_loc;                                                 
      if (IMFS_evaluate_for_make(filename, &loc, &name) == 0) {       
        node = IMFS_create_node(                                      
          &loc,                                                       
          IMFS_LINEAR_FILE, (char *)name,                             
          (file_mode & (S_IRWXU | S_IRWXG | S_IRWXO)) | S_IFREG,      
 200285c:	96 0d 21 ff 	and  %l4, 0x1ff, %o3                           
    else if (linkflag == REGTYPE) {                                   
      const char  *name;                                              
                                                                      
      loc = root_loc;                                                 
      if (IMFS_evaluate_for_make(filename, &loc, &name) == 0) {       
        node = IMFS_create_node(                                      
 2002860:	90 07 bf e8 	add  %fp, -24, %o0                             
 2002864:	92 10 20 06 	mov  6, %o1                                    
 2002868:	96 12 c0 12 	or  %o3, %l2, %o3                              
 200286c:	40 00 23 52 	call  200b5b4 <IMFS_create_node>               
 2002870:	98 10 20 00 	clr  %o4                                       
          IMFS_LINEAR_FILE, (char *)name,                             
          (file_mode & (S_IRWXU | S_IRWXG | S_IRWXO)) | S_IFREG,      
          NULL                                                        
        );                                                            
        node->info.linearfile.size   = file_size;                     
        node->info.linearfile.direct = &tar_image[offset];            
 2002874:	82 06 40 1c 	add  %i1, %i4, %g1                             
          &loc,                                                       
          IMFS_LINEAR_FILE, (char *)name,                             
          (file_mode & (S_IRWXU | S_IRWXG | S_IRWXO)) | S_IFREG,      
          NULL                                                        
        );                                                            
        node->info.linearfile.size   = file_size;                     
 2002878:	c0 22 20 50 	clr  [ %o0 + 0x50 ]                            
 200287c:	f6 22 20 54 	st  %i3, [ %o0 + 0x54 ]                        
        node->info.linearfile.direct = &tar_image[offset];            
 2002880:	10 bf ff dc 	b  20027f0 <rtems_tarfs_load+0x160>            
 2002884:	c2 22 20 58 	st  %g1, [ %o0 + 0x58 ]                        
      nblocks = (((file_size) + 511) & ~511) / 512;                   
      offset += 512 * nblocks;                                        
    }                                                                 
  }                                                                   
  return status;                                                      
}                                                                     
 2002888:	81 c7 e0 08 	ret                                            
 200288c:	91 e8 3f ff 	restore  %g0, -1, %o0                          
      0,                                                              
      &root_loc,                                                      
      0                                                               
   );                                                                 
   if (status != 0)                                                   
     return -1;                                                       
 2002890:	81 c7 e0 08 	ret                                            
 2002894:	91 e8 3f ff 	restore  %g0, -1, %o0                          
                                                                      

0200f374 <rtems_task_mode>: rtems_status_code rtems_task_mode( rtems_mode mode_set, rtems_mode mask, rtems_mode *previous_mode_set ) {
 200f374:	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 )                                           
 200f378:	80 a6 a0 00 	cmp  %i2, 0                                    
 200f37c:	02 80 00 3b 	be  200f468 <rtems_task_mode+0xf4>             
 200f380:	82 10 20 09 	mov  9, %g1                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  executing     = _Thread_Executing;                                  
 200f384:	21 00 80 77 	sethi  %hi(0x201dc00), %l0                     
 200f388:	a0 14 23 08 	or  %l0, 0x308, %l0	! 201df08 <_Per_CPU_Information>
 200f38c:	fa 04 20 0c 	ld  [ %l0 + 0xc ], %i5                         
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
  asr = &api->Signal;                                                 
                                                                      
  old_mode  = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
 200f390:	c4 0f 60 74 	ldub  [ %i5 + 0x74 ], %g2                      
                                                                      
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
 200f394:	c2 07 60 7c 	ld  [ %i5 + 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;
 200f398:	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 ];                
 200f39c:	f8 07 61 58 	ld  [ %i5 + 0x158 ], %i4                       
  asr = &api->Signal;                                                 
                                                                      
  old_mode  = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
 200f3a0:	b6 60 3f ff 	subx  %g0, -1, %i3                             
                                                                      
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
 200f3a4:	80 a0 60 00 	cmp  %g1, 0                                    
 200f3a8:	12 80 00 40 	bne  200f4a8 <rtems_task_mode+0x134>           
 200f3ac:	b7 2e e0 08 	sll  %i3, 8, %i3                               
    old_mode |= RTEMS_NO_TIMESLICE;                                   
  else                                                                
    old_mode |= RTEMS_TIMESLICE;                                      
                                                                      
  old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;           
 200f3b0:	c2 0f 20 08 	ldub  [ %i4 + 8 ], %g1                         
 200f3b4:	80 a0 00 01 	cmp  %g0, %g1                                  
  old_mode |= _ISR_Get_level();                                       
 200f3b8:	7f ff ed 4c 	call  200a8e8 <_CPU_ISR_Get_level>             
 200f3bc:	a2 60 3f ff 	subx  %g0, -1, %l1                             
  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;           
 200f3c0:	a3 2c 60 0a 	sll  %l1, 0xa, %l1                             
 200f3c4:	a2 14 40 08 	or  %l1, %o0, %l1                              
  old_mode |= _ISR_Get_level();                                       
 200f3c8:	b6 14 40 1b 	or  %l1, %i3, %i3                              
  *previous_mode_set = old_mode;                                      
                                                                      
  /*                                                                  
   *  These are generic thread scheduling characteristics.            
   */                                                                 
  if ( mask & RTEMS_PREEMPT_MASK )                                    
 200f3cc:	80 8e 61 00 	btst  0x100, %i1                               
 200f3d0:	02 80 00 06 	be  200f3e8 <rtems_task_mode+0x74>             
 200f3d4:	f6 26 80 00 	st  %i3, [ %i2 ]                               
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Modes_Is_preempt (                         
  Modes_Control mode_set                                              
)                                                                     
{                                                                     
   return (mode_set & RTEMS_PREEMPT_MASK) == RTEMS_PREEMPT;           
 200f3d8:	82 0e 21 00 	and  %i0, 0x100, %g1                           
    executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false;
 200f3dc:	80 a0 00 01 	cmp  %g0, %g1                                  
 200f3e0:	82 60 3f ff 	subx  %g0, -1, %g1                             
 200f3e4:	c2 2f 60 74 	stb  %g1, [ %i5 + 0x74 ]                       
                                                                      
  if ( mask & RTEMS_TIMESLICE_MASK ) {                                
 200f3e8:	80 8e 62 00 	btst  0x200, %i1                               
 200f3ec:	12 80 00 21 	bne  200f470 <rtems_task_mode+0xfc>            
 200f3f0:	80 8e 22 00 	btst  0x200, %i0                               
  }                                                                   
                                                                      
  /*                                                                  
   *  Set the new interrupt level                                     
   */                                                                 
  if ( mask & RTEMS_INTERRUPT_MASK )                                  
 200f3f4:	80 8e 60 0f 	btst  0xf, %i1                                 
 200f3f8:	12 80 00 27 	bne  200f494 <rtems_task_mode+0x120>           
 200f3fc:	01 00 00 00 	nop                                            
   *  This is specific to the RTEMS API                               
   */                                                                 
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
                                                                      
  if ( mask & RTEMS_ASR_MASK ) {                                      
 200f400:	80 8e 64 00 	btst  0x400, %i1                               
 200f404:	02 80 00 14 	be  200f454 <rtems_task_mode+0xe0>             
 200f408:	86 10 20 00 	clr  %g3                                       
    is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true;
    if ( is_asr_enabled != asr->is_enabled ) {                        
 200f40c:	c4 0f 20 08 	ldub  [ %i4 + 8 ], %g2                         
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Modes_Is_asr_disabled (                    
  Modes_Control mode_set                                              
)                                                                     
{                                                                     
   return (mode_set & RTEMS_ASR_MASK) == RTEMS_NO_ASR;                
 200f410:	b0 0e 24 00 	and  %i0, 0x400, %i0                           
 *  Output:                                                           
 *    *previous_mode_set - previous mode set                          
 *     always return RTEMS_SUCCESSFUL;                                
 */                                                                   
                                                                      
rtems_status_code rtems_task_mode(                                    
 200f414:	80 a0 00 18 	cmp  %g0, %i0                                  
 200f418:	82 60 3f ff 	subx  %g0, -1, %g1                             
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
                                                                      
  if ( mask & RTEMS_ASR_MASK ) {                                      
    is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true;
    if ( is_asr_enabled != asr->is_enabled ) {                        
 200f41c:	80 a0 80 01 	cmp  %g2, %g1                                  
 200f420:	22 80 00 0e 	be,a   200f458 <rtems_task_mode+0xe4>          
 200f424:	03 00 80 76 	sethi  %hi(0x201d800), %g1                     
)                                                                     
{                                                                     
  rtems_signal_set _signals;                                          
  ISR_Level        _level;                                            
                                                                      
  _ISR_Disable( _level );                                             
 200f428:	7f ff cb 6f 	call  20021e4 <sparc_disable_interrupts>       
 200f42c:	c2 2f 20 08 	stb  %g1, [ %i4 + 8 ]                          
    _signals                     = information->signals_pending;      
 200f430:	c4 07 20 18 	ld  [ %i4 + 0x18 ], %g2                        
    information->signals_pending = information->signals_posted;       
 200f434:	c2 07 20 14 	ld  [ %i4 + 0x14 ], %g1                        
    information->signals_posted  = _signals;                          
 200f438:	c4 27 20 14 	st  %g2, [ %i4 + 0x14 ]                        
  rtems_signal_set _signals;                                          
  ISR_Level        _level;                                            
                                                                      
  _ISR_Disable( _level );                                             
    _signals                     = information->signals_pending;      
    information->signals_pending = information->signals_posted;       
 200f43c:	c2 27 20 18 	st  %g1, [ %i4 + 0x18 ]                        
    information->signals_posted  = _signals;                          
  _ISR_Enable( _level );                                              
 200f440:	7f ff cb 6d 	call  20021f4 <sparc_enable_interrupts>        
 200f444:	01 00 00 00 	nop                                            
      asr->is_enabled = is_asr_enabled;                               
      _ASR_Swap_signals( asr );                                       
      if ( _ASR_Are_signals_pending( asr ) ) {                        
 200f448:	c2 07 20 14 	ld  [ %i4 + 0x14 ], %g1                        
                                                                      
  /*                                                                  
   *  This is specific to the RTEMS API                               
   */                                                                 
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
 200f44c:	80 a0 00 01 	cmp  %g0, %g1                                  
 200f450:	86 40 20 00 	addx  %g0, 0, %g3                              
        needs_asr_dispatching = true;                                 
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if ( _System_state_Is_up( _System_state_Get() ) ) {                 
 200f454:	03 00 80 76 	sethi  %hi(0x201d800), %g1                     
 200f458:	c4 00 63 24 	ld  [ %g1 + 0x324 ], %g2	! 201db24 <_System_state_Current>
 200f45c:	80 a0 a0 03 	cmp  %g2, 3                                    
 200f460:	02 80 00 1f 	be  200f4dc <rtems_task_mode+0x168>            
 200f464:	82 10 20 00 	clr  %g1                                       
     if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) )
      _Thread_Dispatch();                                             
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 200f468:	81 c7 e0 08 	ret                                            
 200f46c:	91 e8 00 01 	restore  %g0, %g1, %o0                         
   */                                                                 
  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) ) {                            
 200f470:	22 bf ff e1 	be,a   200f3f4 <rtems_task_mode+0x80>          
 200f474:	c0 27 60 7c 	clr  [ %i5 + 0x7c ]                            
      executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
      executing->cpu_time_budget  = _Thread_Ticks_per_timeslice;      
 200f478:	03 00 80 76 	sethi  %hi(0x201d800), %g1                     
 200f47c:	c2 00 61 34 	ld  [ %g1 + 0x134 ], %g1	! 201d934 <_Thread_Ticks_per_timeslice>
  }                                                                   
                                                                      
  /*                                                                  
   *  Set the new interrupt level                                     
   */                                                                 
  if ( mask & RTEMS_INTERRUPT_MASK )                                  
 200f480:	80 8e 60 0f 	btst  0xf, %i1                                 
    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;
      executing->cpu_time_budget  = _Thread_Ticks_per_timeslice;      
 200f484:	c2 27 60 78 	st  %g1, [ %i5 + 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;
 200f488:	82 10 20 01 	mov  1, %g1                                    
  }                                                                   
                                                                      
  /*                                                                  
   *  Set the new interrupt level                                     
   */                                                                 
  if ( mask & RTEMS_INTERRUPT_MASK )                                  
 200f48c:	02 bf ff dd 	be  200f400 <rtems_task_mode+0x8c>             
 200f490:	c2 27 60 7c 	st  %g1, [ %i5 + 0x7c ]                        
 */                                                                   
RTEMS_INLINE_ROUTINE ISR_Level _Modes_Get_interrupt_level (           
  Modes_Control mode_set                                              
)                                                                     
{                                                                     
  return ( mode_set & RTEMS_INTERRUPT_MASK );                         
 200f494:	90 0e 20 0f 	and  %i0, 0xf, %o0                             
 */                                                                   
RTEMS_INLINE_ROUTINE void _Modes_Set_interrupt_level (                
  Modes_Control mode_set                                              
)                                                                     
{                                                                     
  _ISR_Set_level( _Modes_Get_interrupt_level( mode_set ) );           
 200f498:	7f ff cb 57 	call  20021f4 <sparc_enable_interrupts>        
 200f49c:	91 2a 20 08 	sll  %o0, 8, %o0                               
   *  This is specific to the RTEMS API                               
   */                                                                 
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
                                                                      
  if ( mask & RTEMS_ASR_MASK ) {                                      
 200f4a0:	10 bf ff d9 	b  200f404 <rtems_task_mode+0x90>              
 200f4a4:	80 8e 64 00 	btst  0x400, %i1                               
  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;           
 200f4a8:	c2 0f 20 08 	ldub  [ %i4 + 8 ], %g1                         
  old_mode  = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
                                                                      
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
    old_mode |= RTEMS_NO_TIMESLICE;                                   
  else                                                                
    old_mode |= RTEMS_TIMESLICE;                                      
 200f4ac:	b6 16 e2 00 	or  %i3, 0x200, %i3                            
                                                                      
  old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;           
 200f4b0:	80 a0 00 01 	cmp  %g0, %g1                                  
  old_mode |= _ISR_Get_level();                                       
 200f4b4:	7f ff ed 0d 	call  200a8e8 <_CPU_ISR_Get_level>             
 200f4b8:	a2 60 3f ff 	subx  %g0, -1, %l1                             
  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;           
 200f4bc:	a3 2c 60 0a 	sll  %l1, 0xa, %l1                             
 200f4c0:	a2 14 40 08 	or  %l1, %o0, %l1                              
  old_mode |= _ISR_Get_level();                                       
 200f4c4:	b6 14 40 1b 	or  %l1, %i3, %i3                              
  *previous_mode_set = old_mode;                                      
                                                                      
  /*                                                                  
   *  These are generic thread scheduling characteristics.            
   */                                                                 
  if ( mask & RTEMS_PREEMPT_MASK )                                    
 200f4c8:	80 8e 61 00 	btst  0x100, %i1                               
 200f4cc:	02 bf ff c7 	be  200f3e8 <rtems_task_mode+0x74>             
 200f4d0:	f6 26 80 00 	st  %i3, [ %i2 ]                               
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Modes_Is_preempt (                         
  Modes_Control mode_set                                              
)                                                                     
{                                                                     
   return (mode_set & RTEMS_PREEMPT_MASK) == RTEMS_PREEMPT;           
 200f4d4:	10 bf ff c2 	b  200f3dc <rtems_task_mode+0x68>              
 200f4d8:	82 0e 21 00 	and  %i0, 0x100, %g1                           
{                                                                     
  Thread_Control     *executing;                                      
                                                                      
  executing = _Thread_Executing;                                      
                                                                      
  if ( are_signals_pending ||                                         
 200f4dc:	80 88 e0 ff 	btst  0xff, %g3                                
 200f4e0:	12 80 00 0a 	bne  200f508 <rtems_task_mode+0x194>           
 200f4e4:	c4 04 20 0c 	ld  [ %l0 + 0xc ], %g2                         
 200f4e8:	c6 04 20 10 	ld  [ %l0 + 0x10 ], %g3                        
 200f4ec:	80 a0 80 03 	cmp  %g2, %g3                                  
 200f4f0:	02 bf ff de 	be  200f468 <rtems_task_mode+0xf4>             
 200f4f4:	01 00 00 00 	nop                                            
       (!_Thread_Is_heir( executing ) && executing->is_preemptible) ) {
 200f4f8:	c4 08 a0 74 	ldub  [ %g2 + 0x74 ], %g2                      
 200f4fc:	80 a0 a0 00 	cmp  %g2, 0                                    
 200f500:	02 bf ff da 	be  200f468 <rtems_task_mode+0xf4>             <== NEVER TAKEN
 200f504:	01 00 00 00 	nop                                            
    _Thread_Dispatch_necessary = true;                                
 200f508:	82 10 20 01 	mov  1, %g1	! 1 <PROM_START+0x1>               
 200f50c:	c2 2c 20 18 	stb  %g1, [ %l0 + 0x18 ]                       
    }                                                                 
  }                                                                   
                                                                      
  if ( _System_state_Is_up( _System_state_Get() ) ) {                 
     if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) )
      _Thread_Dispatch();                                             
 200f510:	7f ff e7 4c 	call  2009240 <_Thread_Dispatch>               
 200f514:	01 00 00 00 	nop                                            
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 200f518:	82 10 20 00 	clr  %g1	! 0 <PROM_START>                      
}                                                                     
 200f51c:	81 c7 e0 08 	ret                                            
 200f520:	91 e8 00 01 	restore  %g0, %g1, %o0                         
                                                                      

0200b1e4 <rtems_task_set_priority>: rtems_status_code rtems_task_set_priority( rtems_id id, rtems_task_priority new_priority, rtems_task_priority *old_priority ) {
 200b1e4:	9d e3 bf 98 	save  %sp, -104, %sp                           
  register Thread_Control *the_thread;                                
  Objects_Locations        location;                                  
                                                                      
  if ( new_priority != RTEMS_CURRENT_PRIORITY &&                      
 200b1e8:	80 a6 60 00 	cmp  %i1, 0                                    
 200b1ec:	02 80 00 07 	be  200b208 <rtems_task_set_priority+0x24>     
 200b1f0:	90 10 00 18 	mov  %i0, %o0                                  
RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid (            
  rtems_task_priority the_priority                                    
)                                                                     
{                                                                     
  return (  ( the_priority >= RTEMS_MINIMUM_PRIORITY ) &&             
            ( the_priority <= RTEMS_MAXIMUM_PRIORITY ) );             
 200b1f4:	03 00 80 6a 	sethi  %hi(0x201a800), %g1                     
 200b1f8:	c2 08 60 8c 	ldub  [ %g1 + 0x8c ], %g1	! 201a88c <rtems_maximum_priority>
 */                                                                   
RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid (            
  rtems_task_priority the_priority                                    
)                                                                     
{                                                                     
  return (  ( the_priority >= RTEMS_MINIMUM_PRIORITY ) &&             
 200b1fc:	80 a6 40 01 	cmp  %i1, %g1                                  
 200b200:	18 80 00 1c 	bgu  200b270 <rtems_task_set_priority+0x8c>    
 200b204:	b0 10 20 13 	mov  0x13, %i0                                 
       !_RTEMS_tasks_Priority_is_valid( new_priority ) )              
    return RTEMS_INVALID_PRIORITY;                                    
                                                                      
  if ( !old_priority )                                                
 200b208:	80 a6 a0 00 	cmp  %i2, 0                                    
 200b20c:	02 80 00 19 	be  200b270 <rtems_task_set_priority+0x8c>     
 200b210:	b0 10 20 09 	mov  9, %i0                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 200b214:	40 00 0a 13 	call  200da60 <_Thread_Get>                    
 200b218:	92 07 bf fc 	add  %fp, -4, %o1                              
  switch ( location ) {                                               
 200b21c:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 200b220:	80 a0 60 00 	cmp  %g1, 0                                    
 200b224:	12 80 00 13 	bne  200b270 <rtems_task_set_priority+0x8c>    
 200b228:	b0 10 20 04 	mov  4, %i0                                    
                                                                      
    case OBJECTS_LOCAL:                                               
      /* XXX need helper to "convert" from core priority */           
      *old_priority = the_thread->current_priority;                   
 200b22c:	c2 02 20 14 	ld  [ %o0 + 0x14 ], %g1                        
      if ( new_priority != RTEMS_CURRENT_PRIORITY ) {                 
 200b230:	80 a6 60 00 	cmp  %i1, 0                                    
 200b234:	02 80 00 0d 	be  200b268 <rtems_task_set_priority+0x84>     
 200b238:	c2 26 80 00 	st  %g1, [ %i2 ]                               
        the_thread->real_priority = new_priority;                     
        if ( the_thread->resource_count == 0 ||                       
 200b23c:	c2 02 20 1c 	ld  [ %o0 + 0x1c ], %g1                        
 200b240:	80 a0 60 00 	cmp  %g1, 0                                    
 200b244:	02 80 00 06 	be  200b25c <rtems_task_set_priority+0x78>     
 200b248:	f2 22 20 18 	st  %i1, [ %o0 + 0x18 ]                        
 200b24c:	c2 02 20 14 	ld  [ %o0 + 0x14 ], %g1                        
 200b250:	80 a6 40 01 	cmp  %i1, %g1                                  
 200b254:	1a 80 00 05 	bcc  200b268 <rtems_task_set_priority+0x84>    <== ALWAYS TAKEN
 200b258:	01 00 00 00 	nop                                            
             the_thread->current_priority > new_priority )            
          _Thread_Change_priority( the_thread, new_priority, false ); 
 200b25c:	92 10 00 19 	mov  %i1, %o1                                  
 200b260:	40 00 08 b6 	call  200d538 <_Thread_Change_priority>        
 200b264:	94 10 20 00 	clr  %o2                                       
      }                                                               
      _Thread_Enable_dispatch();                                      
 200b268:	40 00 09 f1 	call  200da2c <_Thread_Enable_dispatch>        
 200b26c:	b0 10 20 00 	clr  %i0                                       
      return RTEMS_SUCCESSFUL;                                        
 200b270:	81 c7 e0 08 	ret                                            
 200b274:	81 e8 00 00 	restore                                        
                                                                      

02007634 <rtems_task_variable_delete>: rtems_status_code rtems_task_variable_delete( rtems_id tid, void **ptr ) {
 2007634:	9d e3 bf 98 	save  %sp, -104, %sp                           
  Thread_Control        *the_thread;                                  
  Objects_Locations      location;                                    
  rtems_task_variable_t *tvp, *prev;                                  
                                                                      
  if ( !ptr )                                                         
 2007638:	80 a6 60 00 	cmp  %i1, 0                                    
 200763c:	02 80 00 1e 	be  20076b4 <rtems_task_variable_delete+0x80>  
 2007640:	82 10 20 09 	mov  9, %g1                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  prev = NULL;                                                        
                                                                      
  the_thread = _Thread_Get (tid, &location);                          
 2007644:	90 10 00 18 	mov  %i0, %o0                                  
 2007648:	40 00 09 96 	call  2009ca0 <_Thread_Get>                    
 200764c:	92 07 bf fc 	add  %fp, -4, %o1                              
  switch (location) {                                                 
 2007650:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 2007654:	80 a0 60 00 	cmp  %g1, 0                                    
 2007658:	12 80 00 19 	bne  20076bc <rtems_task_variable_delete+0x88> 
 200765c:	82 10 20 04 	mov  4, %g1                                    
                                                                      
    case OBJECTS_LOCAL:                                               
      tvp = the_thread->task_variables;                               
 2007660:	c2 02 21 64 	ld  [ %o0 + 0x164 ], %g1                       
      while (tvp) {                                                   
 2007664:	80 a0 60 00 	cmp  %g1, 0                                    
 2007668:	02 80 00 10 	be  20076a8 <rtems_task_variable_delete+0x74>  
 200766c:	01 00 00 00 	nop                                            
        if (tvp->ptr == ptr) {                                        
 2007670:	c4 00 60 04 	ld  [ %g1 + 4 ], %g2                           
 2007674:	80 a0 80 19 	cmp  %g2, %i1                                  
 2007678:	32 80 00 09 	bne,a   200769c <rtems_task_variable_delete+0x68>
 200767c:	d2 00 40 00 	ld  [ %g1 ], %o1                               
          if (prev)                                                   
            prev->next = tvp->next;                                   
          else                                                        
            the_thread->task_variables = (rtems_task_variable_t *)tvp->next;
 2007680:	10 80 00 18 	b  20076e0 <rtems_task_variable_delete+0xac>   
 2007684:	c4 00 40 00 	ld  [ %g1 ], %g2                               
  switch (location) {                                                 
                                                                      
    case OBJECTS_LOCAL:                                               
      tvp = the_thread->task_variables;                               
      while (tvp) {                                                   
        if (tvp->ptr == ptr) {                                        
 2007688:	80 a0 80 19 	cmp  %g2, %i1                                  
 200768c:	22 80 00 0e 	be,a   20076c4 <rtems_task_variable_delete+0x90>
 2007690:	c4 02 40 00 	ld  [ %o1 ], %g2                               
 2007694:	82 10 00 09 	mov  %o1, %g1                                  
          _RTEMS_Tasks_Invoke_task_variable_dtor( the_thread, tvp );  
          _Thread_Enable_dispatch();                                  
          return RTEMS_SUCCESSFUL;                                    
        }                                                             
        prev = tvp;                                                   
        tvp = (rtems_task_variable_t *)tvp->next;                     
 2007698:	d2 00 40 00 	ld  [ %g1 ], %o1                               
  the_thread = _Thread_Get (tid, &location);                          
  switch (location) {                                                 
                                                                      
    case OBJECTS_LOCAL:                                               
      tvp = the_thread->task_variables;                               
      while (tvp) {                                                   
 200769c:	80 a2 60 00 	cmp  %o1, 0                                    
 20076a0:	32 bf ff fa 	bne,a   2007688 <rtems_task_variable_delete+0x54><== ALWAYS TAKEN
 20076a4:	c4 02 60 04 	ld  [ %o1 + 4 ], %g2                           
          return RTEMS_SUCCESSFUL;                                    
        }                                                             
        prev = tvp;                                                   
        tvp = (rtems_task_variable_t *)tvp->next;                     
      }                                                               
      _Thread_Enable_dispatch();                                      
 20076a8:	40 00 09 71 	call  2009c6c <_Thread_Enable_dispatch>        
 20076ac:	01 00 00 00 	nop                                            
      return RTEMS_INVALID_ADDRESS;                                   
 20076b0:	82 10 20 09 	mov  9, %g1	! 9 <PROM_START+0x9>               
    case OBJECTS_ERROR:                                               
        break;                                                        
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 20076b4:	81 c7 e0 08 	ret                                            
 20076b8:	91 e8 00 01 	restore  %g0, %g1, %o0                         
 20076bc:	81 c7 e0 08 	ret                                            
 20076c0:	91 e8 00 01 	restore  %g0, %g1, %o0                         
    case OBJECTS_LOCAL:                                               
      tvp = the_thread->task_variables;                               
      while (tvp) {                                                   
        if (tvp->ptr == ptr) {                                        
          if (prev)                                                   
            prev->next = tvp->next;                                   
 20076c4:	c4 20 40 00 	st  %g2, [ %g1 ]                               
          else                                                        
            the_thread->task_variables = (rtems_task_variable_t *)tvp->next;
                                                                      
          _RTEMS_Tasks_Invoke_task_variable_dtor( the_thread, tvp );  
 20076c8:	40 00 00 2d 	call  200777c <_RTEMS_Tasks_Invoke_task_variable_dtor>
 20076cc:	01 00 00 00 	nop                                            
          _Thread_Enable_dispatch();                                  
 20076d0:	40 00 09 67 	call  2009c6c <_Thread_Enable_dispatch>        
 20076d4:	01 00 00 00 	nop                                            
          return RTEMS_SUCCESSFUL;                                    
 20076d8:	10 bf ff f7 	b  20076b4 <rtems_task_variable_delete+0x80>   
 20076dc:	82 10 20 00 	clr  %g1	! 0 <PROM_START>                      
      while (tvp) {                                                   
        if (tvp->ptr == ptr) {                                        
          if (prev)                                                   
            prev->next = tvp->next;                                   
          else                                                        
            the_thread->task_variables = (rtems_task_variable_t *)tvp->next;
 20076e0:	92 10 00 01 	mov  %g1, %o1                                  
 20076e4:	10 bf ff f9 	b  20076c8 <rtems_task_variable_delete+0x94>   
 20076e8:	c4 22 21 64 	st  %g2, [ %o0 + 0x164 ]                       
                                                                      

020076ec <rtems_task_variable_get>: rtems_status_code rtems_task_variable_get( rtems_id tid, void **ptr, void **result ) {
 20076ec:	9d e3 bf 98 	save  %sp, -104, %sp                           
 20076f0:	90 10 00 18 	mov  %i0, %o0                                  
  Thread_Control        *the_thread;                                  
  Objects_Locations      location;                                    
  rtems_task_variable_t *tvp;                                         
                                                                      
  if ( !ptr )                                                         
 20076f4:	80 a6 60 00 	cmp  %i1, 0                                    
 20076f8:	02 80 00 1b 	be  2007764 <rtems_task_variable_get+0x78>     
 20076fc:	b0 10 20 09 	mov  9, %i0                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !result )                                                      
 2007700:	80 a6 a0 00 	cmp  %i2, 0                                    
 2007704:	02 80 00 1c 	be  2007774 <rtems_task_variable_get+0x88>     
 2007708:	01 00 00 00 	nop                                            
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  the_thread = _Thread_Get (tid, &location);                          
 200770c:	40 00 09 65 	call  2009ca0 <_Thread_Get>                    
 2007710:	92 07 bf fc 	add  %fp, -4, %o1                              
  switch (location) {                                                 
 2007714:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 2007718:	80 a0 60 00 	cmp  %g1, 0                                    
 200771c:	12 80 00 12 	bne  2007764 <rtems_task_variable_get+0x78>    
 2007720:	b0 10 20 04 	mov  4, %i0                                    
                                                                      
    case OBJECTS_LOCAL:                                               
      /*                                                              
       *  Figure out if the variable is in this task's list.          
       */                                                             
      tvp = the_thread->task_variables;                               
 2007724:	c2 02 21 64 	ld  [ %o0 + 0x164 ], %g1                       
      while (tvp) {                                                   
 2007728:	80 a0 60 00 	cmp  %g1, 0                                    
 200772c:	32 80 00 07 	bne,a   2007748 <rtems_task_variable_get+0x5c> 
 2007730:	c4 00 60 04 	ld  [ %g1 + 4 ], %g2                           
 2007734:	30 80 00 0e 	b,a   200776c <rtems_task_variable_get+0x80>   
 2007738:	80 a0 60 00 	cmp  %g1, 0                                    
 200773c:	02 80 00 0c 	be  200776c <rtems_task_variable_get+0x80>     <== NEVER TAKEN
 2007740:	01 00 00 00 	nop                                            
        if (tvp->ptr == ptr) {                                        
 2007744:	c4 00 60 04 	ld  [ %g1 + 4 ], %g2                           
 2007748:	80 a0 80 19 	cmp  %g2, %i1                                  
 200774c:	32 bf ff fb 	bne,a   2007738 <rtems_task_variable_get+0x4c> 
 2007750:	c2 00 40 00 	ld  [ %g1 ], %g1                               
	  /*                                                                 
	   * Should this return the current (i.e not the                     
	   * saved) value if `tid' is the current task?                      
	   */                                                                
          *result = tvp->tval;                                        
 2007754:	c2 00 60 0c 	ld  [ %g1 + 0xc ], %g1                         
          _Thread_Enable_dispatch();                                  
          return RTEMS_SUCCESSFUL;                                    
 2007758:	b0 10 20 00 	clr  %i0                                       
	  /*                                                                 
	   * Should this return the current (i.e not the                     
	   * saved) value if `tid' is the current task?                      
	   */                                                                
          *result = tvp->tval;                                        
          _Thread_Enable_dispatch();                                  
 200775c:	40 00 09 44 	call  2009c6c <_Thread_Enable_dispatch>        
 2007760:	c2 26 80 00 	st  %g1, [ %i2 ]                               
          return RTEMS_SUCCESSFUL;                                    
 2007764:	81 c7 e0 08 	ret                                            
 2007768:	81 e8 00 00 	restore                                        
        }                                                             
        tvp = (rtems_task_variable_t *)tvp->next;                     
      }                                                               
      _Thread_Enable_dispatch();                                      
 200776c:	40 00 09 40 	call  2009c6c <_Thread_Enable_dispatch>        
 2007770:	b0 10 20 09 	mov  9, %i0                                    
      return RTEMS_INVALID_ADDRESS;                                   
 2007774:	81 c7 e0 08 	ret                                            
 2007778:	81 e8 00 00 	restore                                        
                                                                      

02005830 <rtems_termios_baud_to_index>: #include <rtems/termiostypes.h> int rtems_termios_baud_to_index( rtems_termios_baud_t termios_baud ) {
 2005830:	82 10 00 08 	mov  %o0, %g1                                  
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
 2005834:	80 a0 60 09 	cmp  %g1, 9                                    
 2005838:	02 80 00 2d 	be  20058ec <rtems_termios_baud_to_index+0xbc> 
 200583c:	90 10 20 09 	mov  9, %o0                                    
 2005840:	80 a0 60 09 	cmp  %g1, 9                                    
 2005844:	04 80 00 1a 	ble  20058ac <rtems_termios_baud_to_index+0x7c>
 2005848:	80 a0 60 04 	cmp  %g1, 4                                    
 200584c:	80 a0 60 0e 	cmp  %g1, 0xe                                  
 2005850:	02 80 00 27 	be  20058ec <rtems_termios_baud_to_index+0xbc> 
 2005854:	90 10 20 0e 	mov  0xe, %o0                                  
 2005858:	80 a0 60 0e 	cmp  %g1, 0xe                                  
 200585c:	04 80 00 26 	ble  20058f4 <rtems_termios_baud_to_index+0xc4>
 2005860:	80 a0 60 0b 	cmp  %g1, 0xb                                  
 2005864:	05 00 00 04 	sethi  %hi(0x1000), %g2                        
 2005868:	86 10 a0 02 	or  %g2, 2, %g3	! 1002 <PROM_START+0x1002>     
 200586c:	80 a0 40 03 	cmp  %g1, %g3                                  
 2005870:	02 80 00 1f 	be  20058ec <rtems_termios_baud_to_index+0xbc> 
 2005874:	90 10 20 11 	mov  0x11, %o0                                 
 2005878:	80 a0 40 03 	cmp  %g1, %g3                                  
 200587c:	04 80 00 38 	ble  200595c <rtems_termios_baud_to_index+0x12c>
 2005880:	80 a0 60 0f 	cmp  %g1, 0xf                                  
 2005884:	86 10 a0 03 	or  %g2, 3, %g3                                
 2005888:	80 a0 40 03 	cmp  %g1, %g3                                  
 200588c:	02 80 00 18 	be  20058ec <rtems_termios_baud_to_index+0xbc> 
 2005890:	90 10 20 12 	mov  0x12, %o0                                 
 2005894:	84 10 a0 04 	or  %g2, 4, %g2                                
 2005898:	80 a0 40 02 	cmp  %g1, %g2                                  
 200589c:	02 80 00 14 	be  20058ec <rtems_termios_baud_to_index+0xbc> <== ALWAYS TAKEN
 20058a0:	90 10 20 13 	mov  0x13, %o0                                 
    case B460800:   baud_index = 19;  break;                          
    default:        baud_index = -1;  break;                          
  }                                                                   
                                                                      
  return baud_index;                                                  
}                                                                     
 20058a4:	81 c3 e0 08 	retl                                           
 20058a8:	90 10 3f ff 	mov  -1, %o0                                   
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
 20058ac:	02 80 00 10 	be  20058ec <rtems_termios_baud_to_index+0xbc> 
 20058b0:	90 10 20 04 	mov  4, %o0                                    
 20058b4:	80 a0 60 04 	cmp  %g1, 4                                    
 20058b8:	14 80 00 1c 	bg  2005928 <rtems_termios_baud_to_index+0xf8> 
 20058bc:	80 a0 60 06 	cmp  %g1, 6                                    
 20058c0:	80 a0 60 01 	cmp  %g1, 1                                    
 20058c4:	02 80 00 0a 	be  20058ec <rtems_termios_baud_to_index+0xbc> 
 20058c8:	90 10 20 01 	mov  1, %o0                                    
 20058cc:	80 a0 60 01 	cmp  %g1, 1                                    
 20058d0:	04 80 00 2b 	ble  200597c <rtems_termios_baud_to_index+0x14c>
 20058d4:	80 a0 60 02 	cmp  %g1, 2                                    
 20058d8:	02 80 00 05 	be  20058ec <rtems_termios_baud_to_index+0xbc> 
 20058dc:	90 10 20 02 	mov  2, %o0                                    
 20058e0:	80 a0 60 03 	cmp  %g1, 3                                    
 20058e4:	12 bf ff f0 	bne  20058a4 <rtems_termios_baud_to_index+0x74><== NEVER TAKEN
 20058e8:	90 10 20 03 	mov  3, %o0                                    
 20058ec:	81 c3 e0 08 	retl                                           
 20058f0:	01 00 00 00 	nop                                            
 20058f4:	02 bf ff fe 	be  20058ec <rtems_termios_baud_to_index+0xbc> 
 20058f8:	90 10 20 0b 	mov  0xb, %o0	! b <PROM_START+0xb>             
 20058fc:	80 a0 60 0b 	cmp  %g1, 0xb                                  
 2005900:	06 bf ff fb 	bl  20058ec <rtems_termios_baud_to_index+0xbc> 
 2005904:	90 10 20 0a 	mov  0xa, %o0                                  
 2005908:	80 a0 60 0c 	cmp  %g1, 0xc                                  
 200590c:	02 bf ff f8 	be  20058ec <rtems_termios_baud_to_index+0xbc> 
 2005910:	90 10 20 0c 	mov  0xc, %o0                                  
 2005914:	80 a0 60 0d 	cmp  %g1, 0xd                                  
 2005918:	12 bf ff e3 	bne  20058a4 <rtems_termios_baud_to_index+0x74><== NEVER TAKEN
 200591c:	90 10 20 0d 	mov  0xd, %o0                                  
 2005920:	81 c3 e0 08 	retl                                           
 2005924:	01 00 00 00 	nop                                            
 2005928:	02 bf ff f1 	be  20058ec <rtems_termios_baud_to_index+0xbc> 
 200592c:	90 10 20 06 	mov  6, %o0	! 6 <PROM_START+0x6>               
 2005930:	80 a0 60 06 	cmp  %g1, 6                                    
 2005934:	06 bf ff ee 	bl  20058ec <rtems_termios_baud_to_index+0xbc> 
 2005938:	90 10 20 05 	mov  5, %o0                                    
 200593c:	80 a0 60 07 	cmp  %g1, 7                                    
 2005940:	02 bf ff eb 	be  20058ec <rtems_termios_baud_to_index+0xbc> 
 2005944:	90 10 20 07 	mov  7, %o0                                    
 2005948:	80 a0 60 08 	cmp  %g1, 8                                    
 200594c:	12 bf ff d6 	bne  20058a4 <rtems_termios_baud_to_index+0x74><== NEVER TAKEN
 2005950:	90 10 20 08 	mov  8, %o0                                    
 2005954:	81 c3 e0 08 	retl                                           
 2005958:	01 00 00 00 	nop                                            
 200595c:	02 bf ff e4 	be  20058ec <rtems_termios_baud_to_index+0xbc> 
 2005960:	90 10 20 0f 	mov  0xf, %o0	! f <PROM_START+0xf>             
 2005964:	84 10 a0 01 	or  %g2, 1, %g2                                
 2005968:	80 a0 40 02 	cmp  %g1, %g2                                  
 200596c:	12 bf ff ce 	bne  20058a4 <rtems_termios_baud_to_index+0x74><== NEVER TAKEN
 2005970:	90 10 20 10 	mov  0x10, %o0                                 
 2005974:	81 c3 e0 08 	retl                                           
 2005978:	01 00 00 00 	nop                                            
 200597c:	80 a0 60 00 	cmp  %g1, 0                                    
 2005980:	12 bf ff c9 	bne  20058a4 <rtems_termios_baud_to_index+0x74>
 2005984:	90 10 20 00 	clr  %o0                                       
    case B460800:   baud_index = 19;  break;                          
    default:        baud_index = -1;  break;                          
  }                                                                   
                                                                      
  return baud_index;                                                  
}                                                                     
 2005988:	81 c3 e0 08 	retl                                           
                                                                      

0200441c <rtems_termios_close>: } } rtems_status_code rtems_termios_close (void *arg) {
 200441c:	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(                                        
 2004420:	39 00 80 76 	sethi  %hi(0x201d800), %i4                     
                                                                      
rtems_status_code                                                     
rtems_termios_close (void *arg)                                       
{                                                                     
  rtems_libio_open_close_args_t *args = arg;                          
  struct rtems_termios_tty *tty = args->iop->data1;                   
 2004424:	c2 06 00 00 	ld  [ %i0 ], %g1                               
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain(                                        
 2004428:	d0 07 20 50 	ld  [ %i4 + 0x50 ], %o0                        
                                                                      
rtems_status_code                                                     
rtems_termios_close (void *arg)                                       
{                                                                     
  rtems_libio_open_close_args_t *args = arg;                          
  struct rtems_termios_tty *tty = args->iop->data1;                   
 200442c:	fa 00 60 38 	ld  [ %g1 + 0x38 ], %i5                        
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain(                                        
 2004430:	92 10 20 00 	clr  %o1                                       
 2004434:	40 00 09 43 	call  2006940 <rtems_semaphore_obtain>         
 2004438:	94 10 20 00 	clr  %o2                                       
    rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);            
  if (sc != RTEMS_SUCCESSFUL)                                         
 200443c:	80 a2 20 00 	cmp  %o0, 0                                    
 2004440:	12 80 00 6f 	bne  20045fc <rtems_termios_close+0x1e0>       <== NEVER TAKEN
 2004444:	01 00 00 00 	nop                                            
    rtems_fatal_error_occurred (sc);                                  
  if (--tty->refcount == 0) {                                         
 2004448:	c2 07 60 08 	ld  [ %i5 + 8 ], %g1                           
 200444c:	82 00 7f ff 	add  %g1, -1, %g1                              
 2004450:	80 a0 60 00 	cmp  %g1, 0                                    
 2004454:	12 80 00 39 	bne  2004538 <rtems_termios_close+0x11c>       
 2004458:	c2 27 60 08 	st  %g1, [ %i5 + 8 ]                           
    if (rtems_termios_linesw[tty->t_line].l_close != NULL) {          
 200445c:	c4 07 60 cc 	ld  [ %i5 + 0xcc ], %g2                        
 2004460:	03 00 80 75 	sethi  %hi(0x201d400), %g1                     
 2004464:	85 28 a0 05 	sll  %g2, 5, %g2                               
 2004468:	82 10 61 80 	or  %g1, 0x180, %g1                            
 200446c:	82 00 40 02 	add  %g1, %g2, %g1                             
 2004470:	c2 00 60 04 	ld  [ %g1 + 4 ], %g1                           
 2004474:	80 a0 60 00 	cmp  %g1, 0                                    
 2004478:	22 80 00 45 	be,a   200458c <rtems_termios_close+0x170>     
 200447c:	d0 07 60 18 	ld  [ %i5 + 0x18 ], %o0                        
      /*                                                              
       * call discipline-specific close                               
       */                                                             
      sc = rtems_termios_linesw[tty->t_line].l_close(tty);            
 2004480:	9f c0 40 00 	call  %g1                                      
 2004484:	90 10 00 1d 	mov  %i5, %o0                                  
      }                                                               
      drainOutput (tty);                                              
      rtems_semaphore_release (tty->osem);                            
    }                                                                 
                                                                      
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
 2004488:	c2 07 60 b4 	ld  [ %i5 + 0xb4 ], %g1                        
 200448c:	80 a0 60 02 	cmp  %g1, 2                                    
 2004490:	22 80 00 50 	be,a   20045d0 <rtems_termios_close+0x1b4>     <== NEVER TAKEN
 2004494:	d0 07 60 c4 	ld  [ %i5 + 0xc4 ], %o0                        <== NOT EXECUTED
        rtems_fatal_error_occurred (sc);                              
      sc = rtems_event_send( tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT );
      if (sc != RTEMS_SUCCESSFUL)                                     
        rtems_fatal_error_occurred (sc);                              
    }                                                                 
    if (tty->device.lastClose)                                        
 2004498:	c2 07 60 9c 	ld  [ %i5 + 0x9c ], %g1                        
 200449c:	80 a0 60 00 	cmp  %g1, 0                                    
 20044a0:	22 80 00 07 	be,a   20044bc <rtems_termios_close+0xa0>      <== ALWAYS TAKEN
 20044a4:	c2 07 40 00 	ld  [ %i5 ], %g1                               
       (*tty->device.lastClose)(tty->major, tty->minor, arg);         
 20044a8:	d0 07 60 0c 	ld  [ %i5 + 0xc ], %o0                         <== NOT EXECUTED
 20044ac:	d2 07 60 10 	ld  [ %i5 + 0x10 ], %o1                        <== NOT EXECUTED
 20044b0:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
 20044b4:	94 10 00 18 	mov  %i0, %o2                                  <== NOT EXECUTED
    if (tty->forw == NULL) {                                          
 20044b8:	c2 07 40 00 	ld  [ %i5 ], %g1                               <== NOT EXECUTED
 20044bc:	80 a0 60 00 	cmp  %g1, 0                                    
 20044c0:	02 80 00 2c 	be  2004570 <rtems_termios_close+0x154>        
 20044c4:	c4 07 60 04 	ld  [ %i5 + 4 ], %g2                           
      rtems_termios_ttyTail = tty->back;                              
      if ( rtems_termios_ttyTail != NULL ) {                          
        rtems_termios_ttyTail->forw = NULL;                           
      }                                                               
    } else {                                                          
      tty->forw->back = tty->back;                                    
 20044c8:	c4 20 60 04 	st  %g2, [ %g1 + 4 ]                           
 20044cc:	c4 07 60 04 	ld  [ %i5 + 4 ], %g2                           
    }                                                                 
                                                                      
    if (tty->back == NULL) {                                          
 20044d0:	80 a0 a0 00 	cmp  %g2, 0                                    
 20044d4:	22 80 00 22 	be,a   200455c <rtems_termios_close+0x140>     <== ALWAYS TAKEN
 20044d8:	05 00 80 76 	sethi  %hi(0x201d800), %g2                     
      rtems_termios_ttyHead = tty->forw;                              
      if ( rtems_termios_ttyHead != NULL ) {                          
        rtems_termios_ttyHead->back = NULL;                           
      }                                                               
    } else {                                                          
      tty->back->forw = tty->forw;                                    
 20044dc:	c2 20 80 00 	st  %g1, [ %g2 ]                               <== NOT EXECUTED
    }                                                                 
                                                                      
    rtems_semaphore_delete (tty->isem);                               
 20044e0:	40 00 08 e1 	call  2006864 <rtems_semaphore_delete>         
 20044e4:	d0 07 60 14 	ld  [ %i5 + 0x14 ], %o0                        
    rtems_semaphore_delete (tty->osem);                               
 20044e8:	40 00 08 df 	call  2006864 <rtems_semaphore_delete>         
 20044ec:	d0 07 60 18 	ld  [ %i5 + 0x18 ], %o0                        
    rtems_semaphore_delete (tty->rawOutBuf.Semaphore);                
 20044f0:	40 00 08 dd 	call  2006864 <rtems_semaphore_delete>         
 20044f4:	d0 07 60 8c 	ld  [ %i5 + 0x8c ], %o0                        
    if ((tty->device.pollRead == NULL) ||                             
 20044f8:	c2 07 60 a0 	ld  [ %i5 + 0xa0 ], %g1                        
 20044fc:	80 a0 60 00 	cmp  %g1, 0                                    
 2004500:	02 80 00 13 	be  200454c <rtems_termios_close+0x130>        
 2004504:	01 00 00 00 	nop                                            
 2004508:	c2 07 60 b4 	ld  [ %i5 + 0xb4 ], %g1                        
 200450c:	80 a0 60 02 	cmp  %g1, 2                                    
 2004510:	02 80 00 0f 	be  200454c <rtems_termios_close+0x130>        
 2004514:	01 00 00 00 	nop                                            
        (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN))    
      rtems_semaphore_delete (tty->rawInBuf.Semaphore);               
    free (tty->rawInBuf.theBuf);                                      
 2004518:	7f ff fa 7e 	call  2002f10 <free>                           
 200451c:	d0 07 60 58 	ld  [ %i5 + 0x58 ], %o0                        
    free (tty->rawOutBuf.theBuf);                                     
 2004520:	7f ff fa 7c 	call  2002f10 <free>                           
 2004524:	d0 07 60 7c 	ld  [ %i5 + 0x7c ], %o0                        
    free (tty->cbuf);                                                 
 2004528:	7f ff fa 7a 	call  2002f10 <free>                           
 200452c:	d0 07 60 1c 	ld  [ %i5 + 0x1c ], %o0                        
    free (tty);                                                       
 2004530:	7f ff fa 78 	call  2002f10 <free>                           
 2004534:	90 10 00 1d 	mov  %i5, %o0                                  
  }                                                                   
  rtems_semaphore_release (rtems_termios_ttyMutex);                   
 2004538:	d0 07 20 50 	ld  [ %i4 + 0x50 ], %o0                        
 200453c:	40 00 09 4b 	call  2006a68 <rtems_semaphore_release>        
 2004540:	b0 10 20 00 	clr  %i0                                       
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 2004544:	81 c7 e0 08 	ret                                            
 2004548:	81 e8 00 00 	restore                                        
    rtems_semaphore_delete (tty->isem);                               
    rtems_semaphore_delete (tty->osem);                               
    rtems_semaphore_delete (tty->rawOutBuf.Semaphore);                
    if ((tty->device.pollRead == NULL) ||                             
        (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN))    
      rtems_semaphore_delete (tty->rawInBuf.Semaphore);               
 200454c:	40 00 08 c6 	call  2006864 <rtems_semaphore_delete>         
 2004550:	d0 07 60 68 	ld  [ %i5 + 0x68 ], %o0                        
 2004554:	30 bf ff f1 	b,a   2004518 <rtems_termios_close+0xfc>       
    } else {                                                          
      tty->forw->back = tty->back;                                    
    }                                                                 
                                                                      
    if (tty->back == NULL) {                                          
      rtems_termios_ttyHead = tty->forw;                              
 2004558:	05 00 80 76 	sethi  %hi(0x201d800), %g2                     
      if ( rtems_termios_ttyHead != NULL ) {                          
 200455c:	80 a0 60 00 	cmp  %g1, 0                                    
 2004560:	02 bf ff e0 	be  20044e0 <rtems_termios_close+0xc4>         
 2004564:	c2 20 a0 58 	st  %g1, [ %g2 + 0x58 ]                        
        rtems_termios_ttyHead->back = NULL;                           
 2004568:	10 bf ff de 	b  20044e0 <rtems_termios_close+0xc4>          
 200456c:	c0 20 60 04 	clr  [ %g1 + 4 ]                               
        rtems_fatal_error_occurred (sc);                              
    }                                                                 
    if (tty->device.lastClose)                                        
       (*tty->device.lastClose)(tty->major, tty->minor, arg);         
    if (tty->forw == NULL) {                                          
      rtems_termios_ttyTail = tty->back;                              
 2004570:	07 00 80 76 	sethi  %hi(0x201d800), %g3                     
      if ( rtems_termios_ttyTail != NULL ) {                          
 2004574:	80 a0 a0 00 	cmp  %g2, 0                                    
 2004578:	02 bf ff f8 	be  2004558 <rtems_termios_close+0x13c>        <== ALWAYS TAKEN
 200457c:	c4 20 e0 54 	st  %g2, [ %g3 + 0x54 ]                        
        rtems_termios_ttyTail->forw = NULL;                           
 2004580:	c0 20 80 00 	clr  [ %g2 ]                                   <== NOT EXECUTED
 2004584:	10 bf ff d6 	b  20044dc <rtems_termios_close+0xc0>          <== NOT EXECUTED
 2004588:	c2 07 40 00 	ld  [ %i5 ], %g1                               <== NOT EXECUTED
      sc = rtems_termios_linesw[tty->t_line].l_close(tty);            
    } else {                                                          
      /*                                                              
       * default: just flush output buffer                            
       */                                                             
      sc = rtems_semaphore_obtain(tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
 200458c:	92 10 20 00 	clr  %o1                                       
 2004590:	40 00 08 ec 	call  2006940 <rtems_semaphore_obtain>         
 2004594:	94 10 20 00 	clr  %o2                                       
      if (sc != RTEMS_SUCCESSFUL) {                                   
 2004598:	80 a2 20 00 	cmp  %o0, 0                                    
 200459c:	12 80 00 18 	bne  20045fc <rtems_termios_close+0x1e0>       <== NEVER TAKEN
 20045a0:	01 00 00 00 	nop                                            
drainOutput (struct rtems_termios_tty *tty)                           
{                                                                     
  rtems_interrupt_level level;                                        
  rtems_status_code sc;                                               
                                                                      
  if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) {           
 20045a4:	c2 07 60 b4 	ld  [ %i5 + 0xb4 ], %g1                        
 20045a8:	80 a0 60 00 	cmp  %g1, 0                                    
 20045ac:	12 80 00 16 	bne  2004604 <rtems_termios_close+0x1e8>       
 20045b0:	01 00 00 00 	nop                                            
      sc = rtems_semaphore_obtain(tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
      if (sc != RTEMS_SUCCESSFUL) {                                   
        rtems_fatal_error_occurred (sc);                              
      }                                                               
      drainOutput (tty);                                              
      rtems_semaphore_release (tty->osem);                            
 20045b4:	40 00 09 2d 	call  2006a68 <rtems_semaphore_release>        
 20045b8:	d0 07 60 18 	ld  [ %i5 + 0x18 ], %o0                        
    }                                                                 
                                                                      
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
 20045bc:	c2 07 60 b4 	ld  [ %i5 + 0xb4 ], %g1                        
 20045c0:	80 a0 60 02 	cmp  %g1, 2                                    
 20045c4:	32 bf ff b6 	bne,a   200449c <rtems_termios_close+0x80>     
 20045c8:	c2 07 60 9c 	ld  [ %i5 + 0x9c ], %g1                        
      /*                                                              
       * send "terminate" to I/O tasks                                
       */                                                             
      sc = rtems_event_send( tty->rxTaskId, TERMIOS_RX_TERMINATE_EVENT );
 20045cc:	d0 07 60 c4 	ld  [ %i5 + 0xc4 ], %o0                        
 20045d0:	40 00 07 9d 	call  2006444 <rtems_event_send>               
 20045d4:	92 10 20 01 	mov  1, %o1                                    
      if (sc != RTEMS_SUCCESSFUL)                                     
 20045d8:	80 a2 20 00 	cmp  %o0, 0                                    
 20045dc:	12 80 00 08 	bne  20045fc <rtems_termios_close+0x1e0>       <== NEVER TAKEN
 20045e0:	01 00 00 00 	nop                                            
        rtems_fatal_error_occurred (sc);                              
      sc = rtems_event_send( tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT );
 20045e4:	d0 07 60 c8 	ld  [ %i5 + 0xc8 ], %o0                        
 20045e8:	40 00 07 97 	call  2006444 <rtems_event_send>               
 20045ec:	92 10 20 01 	mov  1, %o1                                    
      if (sc != RTEMS_SUCCESSFUL)                                     
 20045f0:	80 a2 20 00 	cmp  %o0, 0                                    
 20045f4:	22 bf ff aa 	be,a   200449c <rtems_termios_close+0x80>      <== ALWAYS TAKEN
 20045f8:	c2 07 60 9c 	ld  [ %i5 + 0x9c ], %g1                        
        rtems_fatal_error_occurred (sc);                              
 20045fc:	40 00 0a 95 	call  2007050 <rtems_fatal_error_occurred>     <== NOT EXECUTED
 2004600:	01 00 00 00 	nop                                            <== NOT EXECUTED
drainOutput (struct rtems_termios_tty *tty)                           
{                                                                     
  rtems_interrupt_level level;                                        
  rtems_status_code sc;                                               
                                                                      
  if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) {           
 2004604:	7f ff fe 5d 	call  2003f78 <drainOutput.part.0>             
 2004608:	90 10 00 1d 	mov  %i5, %o0                                  
 200460c:	30 bf ff ea 	b,a   20045b4 <rtems_termios_close+0x198>      
                                                                      

02005ce4 <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) {
 2005ce4:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_status_code sc;                                               
                                                                      
  /*                                                                  
   * sum up character count already sent                              
   */                                                                 
  tty->t_dqlen += len;                                                
 2005ce8:	c4 06 20 90 	ld  [ %i0 + 0x90 ], %g2                        
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {      
 2005cec:	c2 06 20 b4 	ld  [ %i0 + 0xb4 ], %g1                        
  rtems_status_code sc;                                               
                                                                      
  /*                                                                  
   * sum up character count already sent                              
   */                                                                 
  tty->t_dqlen += len;                                                
 2005cf0:	84 00 80 19 	add  %g2, %i1, %g2                             
 2005cf4:	c4 26 20 90 	st  %g2, [ %i0 + 0x90 ]                        
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {      
 2005cf8:	80 a0 60 02 	cmp  %g1, 2                                    
 2005cfc:	02 80 00 10 	be  2005d3c <rtems_termios_dequeue_characters+0x58>
 2005d00:	90 10 00 18 	mov  %i0, %o0                                  
    if (sc != RTEMS_SUCCESSFUL)                                       
      rtems_fatal_error_occurred (sc);                                
    return 0; /* nothing to output in IRQ... */                       
  }                                                                   
                                                                      
  if (tty->t_line == PPPDISC ) {                                      
 2005d04:	c2 06 20 cc 	ld  [ %i0 + 0xcc ], %g1                        
 2005d08:	80 a0 60 05 	cmp  %g1, 5                                    
 2005d0c:	02 80 00 04 	be  2005d1c <rtems_termios_dequeue_characters+0x38>
 2005d10:	03 00 80 75 	sethi  %hi(0x201d400), %g1                     
      rtems_termios_linesw[tty->t_line].l_start(tty);                 
    }                                                                 
    return 0; /* nothing to output in IRQ... */                       
  }                                                                   
                                                                      
  return rtems_termios_refill_transmitter(tty);                       
 2005d14:	7f ff ff 58 	call  2005a74 <rtems_termios_refill_transmitter>
 2005d18:	81 e8 00 00 	restore                                        
                                                                      
  if (tty->t_line == PPPDISC ) {                                      
    /*                                                                
     * call any line discipline start function                        
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_start != NULL) {          
 2005d1c:	c2 00 62 34 	ld  [ %g1 + 0x234 ], %g1                       
 2005d20:	80 a0 60 00 	cmp  %g1, 0                                    
 2005d24:	02 80 00 04 	be  2005d34 <rtems_termios_dequeue_characters+0x50><== NEVER TAKEN
 2005d28:	01 00 00 00 	nop                                            
      rtems_termios_linesw[tty->t_line].l_start(tty);                 
 2005d2c:	9f c0 40 00 	call  %g1                                      
 2005d30:	01 00 00 00 	nop                                            
    }                                                                 
    return 0; /* nothing to output in IRQ... */                       
  }                                                                   
                                                                      
  return rtems_termios_refill_transmitter(tty);                       
}                                                                     
 2005d34:	81 c7 e0 08 	ret                                            
 2005d38:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {      
    /*                                                                
     * send wake up to transmitter task                               
     */                                                               
    sc = rtems_event_send(tty->txTaskId, TERMIOS_TX_START_EVENT);     
 2005d3c:	d0 06 20 c8 	ld  [ %i0 + 0xc8 ], %o0                        
 2005d40:	40 00 01 c1 	call  2006444 <rtems_event_send>               
 2005d44:	92 10 20 02 	mov  2, %o1                                    
    if (sc != RTEMS_SUCCESSFUL)                                       
 2005d48:	80 a2 20 00 	cmp  %o0, 0                                    
 2005d4c:	02 bf ff fa 	be  2005d34 <rtems_termios_dequeue_characters+0x50><== ALWAYS TAKEN
 2005d50:	01 00 00 00 	nop                                            
      rtems_fatal_error_occurred (sc);                                
 2005d54:	40 00 04 bf 	call  2007050 <rtems_fatal_error_occurred>     <== NOT EXECUTED
                                                                      

020056dc <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, const char *buf, int len) {
 20056dc:	9d e3 bf a0 	save  %sp, -96, %sp                            
  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) {             
 20056e0:	c2 06 20 cc 	ld  [ %i0 + 0xcc ], %g1                        
 20056e4:	39 00 80 75 	sethi  %hi(0x201d400), %i4                     
 20056e8:	83 28 60 05 	sll  %g1, 5, %g1                               
 20056ec:	b8 17 21 80 	or  %i4, 0x180, %i4                            
 20056f0:	82 07 00 01 	add  %i4, %g1, %g1                             
 20056f4:	c2 00 60 10 	ld  [ %g1 + 0x10 ], %g1                        
 20056f8:	80 a0 60 00 	cmp  %g1, 0                                    
 20056fc:	02 80 00 27 	be  2005798 <rtems_termios_enqueue_raw_characters+0xbc>
 2005700:	ba 10 00 18 	mov  %i0, %i5                                  
    while (len--) {                                                   
 2005704:	80 a6 a0 00 	cmp  %i2, 0                                    
 2005708:	22 80 00 10 	be,a   2005748 <rtems_termios_enqueue_raw_characters+0x6c><== NEVER TAKEN
 200570c:	c2 07 60 e4 	ld  [ %i5 + 0xe4 ], %g1                        <== NOT EXECUTED
 * NOTE: This routine runs in the context of the                      
 *       device receive interrupt handler.                            
 * Returns the number of characters dropped because of overflow.      
 */                                                                   
int                                                                   
rtems_termios_enqueue_raw_characters (void *ttyp, const char *buf, int len)
 2005710:	b4 06 bf ff 	add  %i2, -1, %i2                              
 2005714:	10 80 00 06 	b  200572c <rtems_termios_enqueue_raw_characters+0x50>
 2005718:	b6 10 20 00 	clr  %i3                                       
  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--) {                                                   
 200571c:	b6 06 e0 01 	inc  %i3                                       
 2005720:	83 28 60 05 	sll  %g1, 5, %g1                               
 2005724:	82 07 00 01 	add  %i4, %g1, %g1                             
 2005728:	c2 00 60 10 	ld  [ %g1 + 0x10 ], %g1                        
      c = *buf++;                                                     
      rtems_termios_linesw[tty->t_line].l_rint(c,tty);                
 200572c:	d0 4e 40 1b 	ldsb  [ %i1 + %i3 ], %o0                       
 2005730:	9f c0 40 00 	call  %g1                                      
 2005734:	92 10 00 1d 	mov  %i5, %o1                                  
  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--) {                                                   
 2005738:	80 a6 c0 1a 	cmp  %i3, %i2                                  
 200573c:	32 bf ff f8 	bne,a   200571c <rtems_termios_enqueue_raw_characters+0x40>
 2005740:	c2 07 60 cc 	ld  [ %i5 + 0xcc ], %g1                        
    }                                                                 
                                                                      
    /*                                                                
     * check to see if rcv wakeup callback was set                    
     */                                                               
    if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 
 2005744:	c2 07 60 e4 	ld  [ %i5 + 0xe4 ], %g1                        
 2005748:	80 a0 60 00 	cmp  %g1, 0                                    
 200574c:	12 80 00 0b 	bne  2005778 <rtems_termios_enqueue_raw_characters+0x9c><== NEVER TAKEN
 2005750:	b0 10 20 00 	clr  %i0                                       
 2005754:	c2 07 60 dc 	ld  [ %i5 + 0xdc ], %g1                        
 2005758:	80 a0 60 00 	cmp  %g1, 0                                    
 200575c:	02 80 00 0d 	be  2005790 <rtems_termios_enqueue_raw_characters+0xb4>
 2005760:	01 00 00 00 	nop                                            
      (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg);     
 2005764:	d2 07 60 e0 	ld  [ %i5 + 0xe0 ], %o1                        
 2005768:	9f c0 40 00 	call  %g1                                      
 200576c:	90 07 60 30 	add  %i5, 0x30, %o0                            
      tty->tty_rcvwakeup = 1;                                         
 2005770:	82 10 20 01 	mov  1, %g1                                    
 2005774:	c2 27 60 e4 	st  %g1, [ %i5 + 0xe4 ]                        
 2005778:	81 c7 e0 08 	ret                                            
 200577c:	81 e8 00 00 	restore                                        
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  tty->rawInBufDropped += dropped;                                    
  rtems_semaphore_release (tty->rawInBuf.Semaphore);                  
 2005780:	d0 07 60 68 	ld  [ %i5 + 0x68 ], %o0                        
        }                                                             
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  tty->rawInBufDropped += dropped;                                    
 2005784:	82 00 40 18 	add  %g1, %i0, %g1                             
  rtems_semaphore_release (tty->rawInBuf.Semaphore);                  
 2005788:	40 00 04 b8 	call  2006a68 <rtems_semaphore_release>        
 200578c:	c2 27 60 78 	st  %g1, [ %i5 + 0x78 ]                        
  return dropped;                                                     
}                                                                     
 2005790:	81 c7 e0 08 	ret                                            
 2005794:	81 e8 00 00 	restore                                        
 * NOTE: This routine runs in the context of the                      
 *       device receive interrupt handler.                            
 * Returns the number of characters dropped because of overflow.      
 */                                                                   
int                                                                   
rtems_termios_enqueue_raw_characters (void *ttyp, const char *buf, int len)
 2005798:	b4 06 40 1a 	add  %i1, %i2, %i2                             
 200579c:	a0 10 20 00 	clr  %l0                                       
 20057a0:	b0 10 20 00 	clr  %i0                                       
                                                                      
        /*                                                            
         * 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); 
 20057a4:	a4 07 60 30 	add  %i5, 0x30, %l2                            
          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,                          
 20057a8:	a6 07 60 4a 	add  %i5, 0x4a, %l3                            
      tty->tty_rcvwakeup = 1;                                         
        }                                                             
    return 0;                                                         
  }                                                                   
                                                                      
  while (len--) {                                                     
 20057ac:	80 a6 40 1a 	cmp  %i1, %i2                                  
 20057b0:	22 bf ff f4 	be,a   2005780 <rtems_termios_enqueue_raw_characters+0xa4>
 20057b4:	c2 07 60 78 	ld  [ %i5 + 0x78 ], %g1                        
    c = *buf++;                                                       
    /* FIXME: implement IXANY: any character restarts output */       
    /* if incoming XON/XOFF controls outgoing stream: */              
    if (tty->flow_ctrl & FL_MDXON) {                                  
 20057b8:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        
        }                                                             
    return 0;                                                         
  }                                                                   
                                                                      
  while (len--) {                                                     
    c = *buf++;                                                       
 20057bc:	f8 0e 40 00 	ldub  [ %i1 ], %i4                             
    /* FIXME: implement IXANY: any character restarts output */       
    /* if incoming XON/XOFF controls outgoing stream: */              
    if (tty->flow_ctrl & FL_MDXON) {                                  
 20057c0:	80 88 62 00 	btst  0x200, %g1                               
 20057c4:	02 80 00 0b 	be  20057f0 <rtems_termios_enqueue_raw_characters+0x114>
 20057c8:	b2 06 60 01 	inc  %i1                                       
      /* if received char is V_STOP and V_START (both are equal value) */
      if (c == tty->termios.c_cc[VSTOP]) {                            
 20057cc:	c4 0f 60 4a 	ldub  [ %i5 + 0x4a ], %g2                      
 20057d0:	83 2f 20 18 	sll  %i4, 0x18, %g1                            
 20057d4:	83 38 60 18 	sra  %g1, 0x18, %g1                            
 20057d8:	80 a0 40 02 	cmp  %g1, %g2                                  
 20057dc:	02 80 00 54 	be  200592c <rtems_termios_enqueue_raw_characters+0x250>
 20057e0:	c4 0f 60 49 	ldub  [ %i5 + 0x49 ], %g2                      
          /* stop output                             */               
          tty->flow_ctrl |= FL_ORCVXOF;                               
        }                                                             
        flow_rcv = true;                                              
      }                                                               
      else if (c == tty->termios.c_cc[VSTART]) {                      
 20057e4:	80 a0 40 02 	cmp  %g1, %g2                                  
 20057e8:	02 80 00 59 	be  200594c <rtems_termios_enqueue_raw_characters+0x270><== NEVER TAKEN
 20057ec:	01 00 00 00 	nop                                            
        /* restart output  */                                         
        tty->flow_ctrl &= ~FL_ORCVXOF;                                
        flow_rcv = true;                                              
      }                                                               
    }                                                                 
    if (flow_rcv) {                                                   
 20057f0:	80 8c 20 ff 	btst  0xff, %l0                                
 20057f4:	02 80 00 15 	be  2005848 <rtems_termios_enqueue_raw_characters+0x16c><== ALWAYS TAKEN
 20057f8:	01 00 00 00 	nop                                            
      /* restart output according to FL_ORCVXOF flag */               
      if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) {   
 20057fc:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        
 2005800:	82 08 60 30 	and  %g1, 0x30, %g1                            
 2005804:	80 a0 60 20 	cmp  %g1, 0x20                                 
 2005808:	12 bf ff ea 	bne  20057b0 <rtems_termios_enqueue_raw_characters+0xd4><== ALWAYS TAKEN
 200580c:	80 a6 40 1a 	cmp  %i1, %i2                                  
        /* disable interrupts    */                                   
        rtems_interrupt_disable(level);                               
 2005810:	7f ff f2 75 	call  20021e4 <sparc_disable_interrupts>       <== NOT EXECUTED
 2005814:	01 00 00 00 	nop                                            <== NOT EXECUTED
 2005818:	b8 10 00 08 	mov  %o0, %i4                                  <== NOT EXECUTED
        tty->flow_ctrl &= ~FL_OSTOP;                                  
 200581c:	c4 07 60 b8 	ld  [ %i5 + 0xb8 ], %g2                        <== NOT EXECUTED
        /* check for chars in output buffer (or rob_state?) */        
        if (tty->rawOutBufState != rob_idle) {                        
 2005820:	c2 07 60 94 	ld  [ %i5 + 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;                                  
 2005824:	84 08 bf df 	and  %g2, -33, %g2                             <== NOT EXECUTED
 2005828:	c4 27 60 b8 	st  %g2, [ %i5 + 0xb8 ]                        <== NOT EXECUTED
        /* check for chars in output buffer (or rob_state?) */        
        if (tty->rawOutBufState != rob_idle) {                        
 200582c:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
 2005830:	12 80 00 4f 	bne  200596c <rtems_termios_enqueue_raw_characters+0x290><== NOT EXECUTED
 2005834:	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);
        }                                                             
        /* reenable interrupts */                                     
        rtems_interrupt_enable(level);                                
 2005838:	7f ff f2 6f 	call  20021f4 <sparc_enable_interrupts>        <== NOT EXECUTED
 200583c:	90 10 00 1c 	mov  %i4, %o0                                  <== NOT EXECUTED
      tty->tty_rcvwakeup = 1;                                         
        }                                                             
    return 0;                                                         
  }                                                                   
                                                                      
  while (len--) {                                                     
 2005840:	10 bf ff dc 	b  20057b0 <rtems_termios_enqueue_raw_characters+0xd4><== NOT EXECUTED
 2005844:	80 a6 40 1a 	cmp  %i1, %i2                                  <== NOT EXECUTED
        }                                                             
        /* reenable interrupts */                                     
        rtems_interrupt_enable(level);                                
      }                                                               
    } else {                                                          
      newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size;        
 2005848:	d0 07 60 60 	ld  [ %i5 + 0x60 ], %o0                        
 200584c:	d2 07 60 64 	ld  [ %i5 + 0x64 ], %o1                        
 2005850:	40 00 4c 7a 	call  2018a38 <.urem>                          
 2005854:	90 02 20 01 	inc  %o0                                       
      /* if chars_in_buffer > highwater                */             
      rtems_interrupt_disable(level);                                 
 2005858:	7f ff f2 63 	call  20021e4 <sparc_disable_interrupts>       
 200585c:	b6 10 00 08 	mov  %o0, %i3                                  
 2005860:	a2 10 00 08 	mov  %o0, %l1                                  
      if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size)       
 2005864:	c2 07 60 5c 	ld  [ %i5 + 0x5c ], %g1                        
 2005868:	d0 07 60 64 	ld  [ %i5 + 0x64 ], %o0                        
            % tty->rawInBuf.Size) > tty->highwater) &&                
 200586c:	d2 07 60 64 	ld  [ %i5 + 0x64 ], %o1                        
      }                                                               
    } 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)       
 2005870:	90 22 00 01 	sub  %o0, %g1, %o0                             
            % tty->rawInBuf.Size) > tty->highwater) &&                
 2005874:	40 00 4c 71 	call  2018a38 <.urem>                          
 2005878:	90 02 00 1b 	add  %o0, %i3, %o0                             
      }                                                               
    } 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)       
 200587c:	c2 07 60 c0 	ld  [ %i5 + 0xc0 ], %g1                        
 2005880:	80 a2 00 01 	cmp  %o0, %g1                                  
 2005884:	08 80 00 13 	bleu  20058d0 <rtems_termios_enqueue_raw_characters+0x1f4><== ALWAYS TAKEN
 2005888:	01 00 00 00 	nop                                            
            % tty->rawInBuf.Size) > tty->highwater) &&                
          !(tty->flow_ctrl & FL_IREQXOF)) {                           
 200588c:	c2 07 60 b8 	ld  [ %i5 + 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)       
            % tty->rawInBuf.Size) > tty->highwater) &&                
 2005890:	80 88 60 01 	btst  1, %g1                                   <== NOT EXECUTED
 2005894:	12 80 00 0f 	bne  20058d0 <rtems_termios_enqueue_raw_characters+0x1f4><== NOT EXECUTED
 2005898:	01 00 00 00 	nop                                            <== NOT EXECUTED
          !(tty->flow_ctrl & FL_IREQXOF)) {                           
        /* incoming data stream should be stopped */                  
        tty->flow_ctrl |= FL_IREQXOF;                                 
 200589c:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        <== NOT EXECUTED
 20058a0:	82 10 60 01 	or  %g1, 1, %g1                                <== NOT EXECUTED
 20058a4:	c2 27 60 b8 	st  %g1, [ %i5 + 0xb8 ]                        <== NOT EXECUTED
        if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF))                
 20058a8:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        <== NOT EXECUTED
 20058ac:	82 08 64 02 	and  %g1, 0x402, %g1                           <== NOT EXECUTED
 20058b0:	80 a0 64 00 	cmp  %g1, 0x400                                <== NOT EXECUTED
            ==                (FL_MDXOF             ) ) {             
          if ((tty->flow_ctrl & FL_OSTOP) ||                          
 20058b4:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        <== NOT EXECUTED
      if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size)       
            % tty->rawInBuf.Size) > tty->highwater) &&                
          !(tty->flow_ctrl & FL_IREQXOF)) {                           
        /* incoming data stream should be stopped */                  
        tty->flow_ctrl |= FL_IREQXOF;                                 
        if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF))                
 20058b8:	02 80 00 35 	be  200598c <rtems_termios_enqueue_raw_characters+0x2b0><== NOT EXECUTED
 20058bc:	80 88 60 20 	btst  0x20, %g1                                <== NOT EXECUTED
            /*    call write function here                 */         
            tty->flow_ctrl |= FL_ISNTXOF;                             
            (*tty->device.write)(tty->minor,                          
                (void *)&(tty->termios.c_cc[VSTOP]), 1);              
          }                                                           
        } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS) ) {
 20058c0:	82 08 61 04 	and  %g1, 0x104, %g1                           <== NOT EXECUTED
 20058c4:	80 a0 61 00 	cmp  %g1, 0x100                                <== NOT EXECUTED
 20058c8:	02 80 00 40 	be  20059c8 <rtems_termios_enqueue_raw_characters+0x2ec><== NOT EXECUTED
 20058cc:	01 00 00 00 	nop                                            <== NOT EXECUTED
          }                                                           
        }                                                             
      }                                                               
                                                                      
      /* reenable interrupts */                                       
      rtems_interrupt_enable(level);                                  
 20058d0:	7f ff f2 49 	call  20021f4 <sparc_enable_interrupts>        
 20058d4:	90 10 00 11 	mov  %l1, %o0                                  
                                                                      
      if (newTail == tty->rawInBuf.Head) {                            
 20058d8:	c2 07 60 5c 	ld  [ %i5 + 0x5c ], %g1                        
 20058dc:	80 a0 40 1b 	cmp  %g1, %i3                                  
 20058e0:	22 bf ff b3 	be,a   20057ac <rtems_termios_enqueue_raw_characters+0xd0><== NEVER TAKEN
 20058e4:	b0 06 20 01 	inc  %i0                                       <== NOT EXECUTED
        dropped++;                                                    
      } else {                                                        
        tty->rawInBuf.theBuf[newTail] = c;                            
 20058e8:	c2 07 60 58 	ld  [ %i5 + 0x58 ], %g1                        
 20058ec:	f8 28 40 1b 	stb  %i4, [ %g1 + %i3 ]                        
        tty->rawInBuf.Tail = newTail;                                 
                                                                      
        /*                                                            
         * check to see if rcv wakeup callback was set                
         */                                                           
        if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) {
 20058f0:	c2 07 60 e4 	ld  [ %i5 + 0xe4 ], %g1                        
                                                                      
      if (newTail == tty->rawInBuf.Head) {                            
        dropped++;                                                    
      } else {                                                        
        tty->rawInBuf.theBuf[newTail] = c;                            
        tty->rawInBuf.Tail = newTail;                                 
 20058f4:	f6 27 60 60 	st  %i3, [ %i5 + 0x60 ]                        
                                                                      
        /*                                                            
         * check to see if rcv wakeup callback was set                
         */                                                           
        if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) {
 20058f8:	80 a0 60 00 	cmp  %g1, 0                                    
 20058fc:	12 bf ff ad 	bne  20057b0 <rtems_termios_enqueue_raw_characters+0xd4><== NEVER TAKEN
 2005900:	80 a6 40 1a 	cmp  %i1, %i2                                  
 2005904:	c2 07 60 dc 	ld  [ %i5 + 0xdc ], %g1                        
 2005908:	80 a0 60 00 	cmp  %g1, 0                                    
 200590c:	02 bf ff a9 	be  20057b0 <rtems_termios_enqueue_raw_characters+0xd4><== ALWAYS TAKEN
 2005910:	80 a6 40 1a 	cmp  %i1, %i2                                  
          (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 
 2005914:	d2 07 60 e0 	ld  [ %i5 + 0xe0 ], %o1                        <== NOT EXECUTED
 2005918:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
 200591c:	90 10 00 12 	mov  %l2, %o0                                  <== NOT EXECUTED
          tty->tty_rcvwakeup = 1;                                     
 2005920:	82 10 20 01 	mov  1, %g1                                    <== NOT EXECUTED
 2005924:	10 bf ff a2 	b  20057ac <rtems_termios_enqueue_raw_characters+0xd0><== NOT EXECUTED
 2005928:	c2 27 60 e4 	st  %g1, [ %i5 + 0xe4 ]                        <== NOT EXECUTED
    /* FIXME: implement IXANY: any character restarts output */       
    /* if incoming XON/XOFF controls outgoing stream: */              
    if (tty->flow_ctrl & FL_MDXON) {                                  
      /* if received char is V_STOP and V_START (both are equal value) */
      if (c == tty->termios.c_cc[VSTOP]) {                            
        if (c == tty->termios.c_cc[VSTART]) {                         
 200592c:	80 a0 40 02 	cmp  %g1, %g2                                  
          /* received VSTOP and VSTART==VSTOP? */                     
          /* then toggle "stop output" status  */                     
          tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF;               
 2005930:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        
    /* FIXME: implement IXANY: any character restarts output */       
    /* if incoming XON/XOFF controls outgoing stream: */              
    if (tty->flow_ctrl & FL_MDXON) {                                  
      /* if received char is V_STOP and V_START (both are equal value) */
      if (c == tty->termios.c_cc[VSTOP]) {                            
        if (c == tty->termios.c_cc[VSTART]) {                         
 2005934:	22 80 00 0b 	be,a   2005960 <rtems_termios_enqueue_raw_characters+0x284><== NEVER TAKEN
 2005938:	82 18 60 10 	xor  %g1, 0x10, %g1                            <== NOT EXECUTED
          tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF;               
        }                                                             
        else {                                                        
          /* VSTOP received (other code than VSTART) */               
          /* stop output                             */               
          tty->flow_ctrl |= FL_ORCVXOF;                               
 200593c:	82 10 60 10 	or  %g1, 0x10, %g1                             
 * NOTE: This routine runs in the context of the                      
 *       device receive interrupt handler.                            
 * Returns the number of characters dropped because of overflow.      
 */                                                                   
int                                                                   
rtems_termios_enqueue_raw_characters (void *ttyp, const char *buf, int len)
 2005940:	a0 10 20 01 	mov  1, %l0                                    
          tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF;               
        }                                                             
        else {                                                        
          /* VSTOP received (other code than VSTART) */               
          /* stop output                             */               
          tty->flow_ctrl |= FL_ORCVXOF;                               
 2005944:	c2 27 60 b8 	st  %g1, [ %i5 + 0xb8 ]                        
 2005948:	30 bf ff ad 	b,a   20057fc <rtems_termios_enqueue_raw_characters+0x120>
        flow_rcv = true;                                              
      }                                                               
      else if (c == tty->termios.c_cc[VSTART]) {                      
        /* VSTART received */                                         
        /* restart output  */                                         
        tty->flow_ctrl &= ~FL_ORCVXOF;                                
 200594c:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        <== NOT EXECUTED
 * NOTE: This routine runs in the context of the                      
 *       device receive interrupt handler.                            
 * Returns the number of characters dropped because of overflow.      
 */                                                                   
int                                                                   
rtems_termios_enqueue_raw_characters (void *ttyp, const char *buf, int len)
 2005950:	a0 10 20 01 	mov  1, %l0                                    <== NOT EXECUTED
        flow_rcv = true;                                              
      }                                                               
      else if (c == tty->termios.c_cc[VSTART]) {                      
        /* VSTART received */                                         
        /* restart output  */                                         
        tty->flow_ctrl &= ~FL_ORCVXOF;                                
 2005954:	82 08 7f ef 	and  %g1, -17, %g1                             <== NOT EXECUTED
 2005958:	c2 27 60 b8 	st  %g1, [ %i5 + 0xb8 ]                        <== NOT EXECUTED
 200595c:	30 bf ff a8 	b,a   20057fc <rtems_termios_enqueue_raw_characters+0x120><== NOT EXECUTED
 * NOTE: This routine runs in the context of the                      
 *       device receive interrupt handler.                            
 * Returns the number of characters dropped because of overflow.      
 */                                                                   
int                                                                   
rtems_termios_enqueue_raw_characters (void *ttyp, const char *buf, int len)
 2005960:	a0 10 20 01 	mov  1, %l0                                    <== NOT EXECUTED
      /* if received char is V_STOP and V_START (both are equal value) */
      if (c == tty->termios.c_cc[VSTOP]) {                            
        if (c == tty->termios.c_cc[VSTART]) {                         
          /* received VSTOP and VSTART==VSTOP? */                     
          /* then toggle "stop output" status  */                     
          tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF;               
 2005964:	c2 27 60 b8 	st  %g1, [ %i5 + 0xb8 ]                        <== NOT EXECUTED
 2005968:	30 bf ff a5 	b,a   20057fc <rtems_termios_enqueue_raw_characters+0x120><== NOT EXECUTED
        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, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1);
 200596c:	c4 07 60 84 	ld  [ %i5 + 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)(                                       
 2005970:	d2 07 60 7c 	ld  [ %i5 + 0x7c ], %o1                        <== NOT EXECUTED
 2005974:	c2 07 60 a4 	ld  [ %i5 + 0xa4 ], %g1                        <== NOT EXECUTED
 2005978:	d0 07 60 10 	ld  [ %i5 + 0x10 ], %o0                        <== NOT EXECUTED
 200597c:	92 02 40 02 	add  %o1, %g2, %o1                             <== NOT EXECUTED
 2005980:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
 2005984:	94 10 20 01 	mov  1, %o2                                    <== NOT EXECUTED
 2005988:	30 bf ff ac 	b,a   2005838 <rtems_termios_enqueue_raw_characters+0x15c><== NOT EXECUTED
          !(tty->flow_ctrl & FL_IREQXOF)) {                           
        /* incoming data stream should be stopped */                  
        tty->flow_ctrl |= FL_IREQXOF;                                 
        if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF))                
            ==                (FL_MDXOF             ) ) {             
          if ((tty->flow_ctrl & FL_OSTOP) ||                          
 200598c:	12 80 00 06 	bne  20059a4 <rtems_termios_enqueue_raw_characters+0x2c8><== NOT EXECUTED
 2005990:	01 00 00 00 	nop                                            <== NOT EXECUTED
 2005994:	c2 07 60 94 	ld  [ %i5 + 0x94 ], %g1                        <== NOT EXECUTED
 2005998:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
 200599c:	12 bf ff cd 	bne  20058d0 <rtems_termios_enqueue_raw_characters+0x1f4><== NOT EXECUTED
 20059a0:	01 00 00 00 	nop                                            <== NOT EXECUTED
              (tty->rawOutBufState == rob_idle)) {                    
            /* if tx is stopped due to XOFF or out of data */         
            /*    call write function here                 */         
            tty->flow_ctrl |= FL_ISNTXOF;                             
 20059a4:	c4 07 60 b8 	ld  [ %i5 + 0xb8 ], %g2                        <== NOT EXECUTED
            (*tty->device.write)(tty->minor,                          
 20059a8:	c2 07 60 a4 	ld  [ %i5 + 0xa4 ], %g1                        <== NOT EXECUTED
 20059ac:	d0 07 60 10 	ld  [ %i5 + 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;                             
 20059b0:	84 10 a0 02 	or  %g2, 2, %g2                                <== NOT EXECUTED
            (*tty->device.write)(tty->minor,                          
 20059b4:	92 10 00 13 	mov  %l3, %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;                             
 20059b8:	c4 27 60 b8 	st  %g2, [ %i5 + 0xb8 ]                        <== NOT EXECUTED
            (*tty->device.write)(tty->minor,                          
 20059bc:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
 20059c0:	94 10 20 01 	mov  1, %o2                                    <== NOT EXECUTED
 20059c4:	30 bf ff c3 	b,a   20058d0 <rtems_termios_enqueue_raw_characters+0x1f4><== NOT EXECUTED
                (void *)&(tty->termios.c_cc[VSTOP]), 1);              
          }                                                           
        } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS) ) {
          tty->flow_ctrl |= FL_IRTSOFF;                               
 20059c8:	c4 07 60 b8 	ld  [ %i5 + 0xb8 ], %g2                        <== NOT EXECUTED
          /* deactivate RTS line */                                   
          if (tty->device.stopRemoteTx != NULL) {                     
 20059cc:	c2 07 60 ac 	ld  [ %i5 + 0xac ], %g1                        <== NOT EXECUTED
            tty->flow_ctrl |= FL_ISNTXOF;                             
            (*tty->device.write)(tty->minor,                          
                (void *)&(tty->termios.c_cc[VSTOP]), 1);              
          }                                                           
        } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS) ) {
          tty->flow_ctrl |= FL_IRTSOFF;                               
 20059d0:	84 10 a0 04 	or  %g2, 4, %g2                                <== NOT EXECUTED
 20059d4:	c4 27 60 b8 	st  %g2, [ %i5 + 0xb8 ]                        <== NOT EXECUTED
          /* deactivate RTS line */                                   
          if (tty->device.stopRemoteTx != NULL) {                     
 20059d8:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
 20059dc:	02 bf ff bd 	be  20058d0 <rtems_termios_enqueue_raw_characters+0x1f4><== NOT EXECUTED
 20059e0:	01 00 00 00 	nop                                            <== NOT EXECUTED
            tty->device.stopRemoteTx(tty->minor);                     
 20059e4:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
 20059e8:	d0 07 60 10 	ld  [ %i5 + 0x10 ], %o0                        <== NOT EXECUTED
 20059ec:	30 bf ff b9 	b,a   20058d0 <rtems_termios_enqueue_raw_characters+0x1f4><== NOT EXECUTED
                                                                      

02004630 <rtems_termios_ioctl>: } } rtems_status_code rtems_termios_ioctl (void *arg) {
 2004630:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_libio_ioctl_args_t *args = arg;                               
  struct rtems_termios_tty *tty = args->iop->data1;                   
 2004634:	c2 06 00 00 	ld  [ %i0 ], %g1                               
  struct ttywakeup         *wakeup = (struct ttywakeup *)args->buffer;
 2004638:	f6 06 20 08 	ld  [ %i0 + 8 ], %i3                           
                                                                      
rtems_status_code                                                     
rtems_termios_ioctl (void *arg)                                       
{                                                                     
  rtems_libio_ioctl_args_t *args = arg;                               
  struct rtems_termios_tty *tty = args->iop->data1;                   
 200463c:	fa 00 60 38 	ld  [ %g1 + 0x38 ], %i5                        
  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);
 2004640:	92 10 20 00 	clr  %o1                                       
 2004644:	d0 07 60 18 	ld  [ %i5 + 0x18 ], %o0                        
 2004648:	94 10 20 00 	clr  %o2                                       
 200464c:	40 00 08 bd 	call  2006940 <rtems_semaphore_obtain>         
 2004650:	c0 26 20 0c 	clr  [ %i0 + 0xc ]                             
  if (sc != RTEMS_SUCCESSFUL) {                                       
 2004654:	b8 92 20 00 	orcc  %o0, 0, %i4                              
 2004658:	32 80 00 1a 	bne,a   20046c0 <rtems_termios_ioctl+0x90>     <== NEVER TAKEN
 200465c:	f8 26 20 0c 	st  %i4, [ %i0 + 0xc ]                         <== NOT EXECUTED
    args->ioctl_return = sc;                                          
    return sc;                                                        
  }                                                                   
  switch (args->command) {                                            
 2004660:	c2 06 20 04 	ld  [ %i0 + 4 ], %g1                           
 2004664:	80 a0 60 04 	cmp  %g1, 4                                    
 2004668:	22 80 00 10 	be,a   20046a8 <rtems_termios_ioctl+0x78>      
 200466c:	c2 06 c0 00 	ld  [ %i3 ], %g1                               
 2004670:	18 80 00 16 	bgu  20046c8 <rtems_termios_ioctl+0x98>        
 2004674:	05 10 01 19 	sethi  %hi(0x40046400), %g2                    
 2004678:	80 a0 60 02 	cmp  %g1, 2                                    
 200467c:	22 80 00 2a 	be,a   2004724 <rtems_termios_ioctl+0xf4>      
 2004680:	d2 06 20 08 	ld  [ %i0 + 8 ], %o1                           
 2004684:	08 80 00 99 	bleu  20048e8 <rtems_termios_ioctl+0x2b8>      
 2004688:	80 a0 60 01 	cmp  %g1, 1                                    
drainOutput (struct rtems_termios_tty *tty)                           
{                                                                     
  rtems_interrupt_level level;                                        
  rtems_status_code sc;                                               
                                                                      
  if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) {           
 200468c:	c2 07 60 b4 	ld  [ %i5 + 0xb4 ], %g1                        
 2004690:	80 a0 60 00 	cmp  %g1, 0                                    
 2004694:	02 80 00 08 	be  20046b4 <rtems_termios_ioctl+0x84>         <== ALWAYS TAKEN
 2004698:	01 00 00 00 	nop                                            
 200469c:	7f ff fe 37 	call  2003f78 <drainOutput.part.0>             <== NOT EXECUTED
 20046a0:	90 10 00 1d 	mov  %i5, %o0                                  <== NOT EXECUTED
 20046a4:	30 80 00 04 	b,a   20046b4 <rtems_termios_ioctl+0x84>       <== NOT EXECUTED
  case RTEMS_IO_SNDWAKEUP:                                            
    tty->tty_snd = *wakeup;                                           
    break;                                                            
                                                                      
  case RTEMS_IO_RCVWAKEUP:                                            
    tty->tty_rcv = *wakeup;                                           
 20046a8:	c2 27 60 dc 	st  %g1, [ %i5 + 0xdc ]                        
 20046ac:	c2 06 e0 04 	ld  [ %i3 + 4 ], %g1                           
 20046b0:	c2 27 60 e0 	st  %g1, [ %i5 + 0xe0 ]                        
      *(int *)args->buffer = tty->ccount - tty->cindex + rawnc;       
    }                                                                 
    break;                                                            
  }                                                                   
                                                                      
  rtems_semaphore_release (tty->osem);                                
 20046b4:	40 00 08 ed 	call  2006a68 <rtems_semaphore_release>        
 20046b8:	d0 07 60 18 	ld  [ %i5 + 0x18 ], %o0                        
  args->ioctl_return = sc;                                            
 20046bc:	f8 26 20 0c 	st  %i4, [ %i0 + 0xc ]                         
  return sc;                                                          
}                                                                     
 20046c0:	81 c7 e0 08 	ret                                            
 20046c4:	91 e8 00 1c 	restore  %g0, %i4, %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) {                                            
 20046c8:	84 10 a2 7f 	or  %g2, 0x27f, %g2                            
 20046cc:	80 a0 40 02 	cmp  %g1, %g2                                  
 20046d0:	02 80 00 7a 	be  20048b8 <rtems_termios_ioctl+0x288>        <== NEVER TAKEN
 20046d4:	01 00 00 00 	nop                                            
 20046d8:	18 80 00 8b 	bgu  2004904 <rtems_termios_ioctl+0x2d4>       
 20046dc:	05 10 01 1d 	sethi  %hi(0x40047400), %g2                    
 20046e0:	80 a0 60 05 	cmp  %g1, 5                                    
 20046e4:	22 80 00 ac 	be,a   2004994 <rtems_termios_ioctl+0x364>     
 20046e8:	c2 06 c0 00 	ld  [ %i3 ], %g1                               
  default:                                                            
    if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) {          
 20046ec:	c4 07 60 cc 	ld  [ %i5 + 0xcc ], %g2                        
 20046f0:	03 00 80 75 	sethi  %hi(0x201d400), %g1                     
 20046f4:	85 28 a0 05 	sll  %g2, 5, %g2                               
 20046f8:	82 10 61 80 	or  %g1, 0x180, %g1                            
 20046fc:	82 00 40 02 	add  %g1, %g2, %g1                             
 2004700:	c2 00 60 18 	ld  [ %g1 + 0x18 ], %g1                        
 2004704:	80 a0 60 00 	cmp  %g1, 0                                    
 2004708:	02 bf ff eb 	be  20046b4 <rtems_termios_ioctl+0x84>         <== NEVER TAKEN
 200470c:	b8 10 20 0a 	mov  0xa, %i4                                  
      sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args);       
 2004710:	90 10 00 1d 	mov  %i5, %o0                                  
 2004714:	9f c0 40 00 	call  %g1                                      
 2004718:	92 10 00 18 	mov  %i0, %o1                                  
 200471c:	10 bf ff e6 	b  20046b4 <rtems_termios_ioctl+0x84>          
 2004720:	b8 10 00 08 	mov  %o0, %i4                                  
  case RTEMS_IO_GET_ATTRIBUTES:                                       
    *(struct termios *)args->buffer = tty->termios;                   
    break;                                                            
                                                                      
  case RTEMS_IO_SET_ATTRIBUTES:                                       
    tty->termios = *(struct termios *)args->buffer;                   
 2004724:	b6 07 60 30 	add  %i5, 0x30, %i3                            
 2004728:	94 10 20 24 	mov  0x24, %o2                                 
 200472c:	40 00 2e f9 	call  2010310 <memcpy>                         
 2004730:	90 10 00 1b 	mov  %i3, %o0                                  
  /*                                                                  
   * check for flow control options to be switched off                
   */                                                                 
                                                                      
  /* check for outgoing XON/XOFF flow control switched off */         
  if (( tty->flow_ctrl & FL_MDXON) &&                                 
 2004734:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        
 2004738:	80 88 62 00 	btst  0x200, %g1                               
 200473c:	02 80 00 19 	be  20047a0 <rtems_termios_ioctl+0x170>        
 2004740:	01 00 00 00 	nop                                            
      !(tty->termios.c_iflag & IXON)) {                               
 2004744:	c2 07 60 30 	ld  [ %i5 + 0x30 ], %g1                        
  /*                                                                  
   * check for flow control options to be switched off                
   */                                                                 
                                                                      
  /* check for outgoing XON/XOFF flow control switched off */         
  if (( tty->flow_ctrl & FL_MDXON) &&                                 
 2004748:	80 88 64 00 	btst  0x400, %g1                               
 200474c:	12 80 00 15 	bne  20047a0 <rtems_termios_ioctl+0x170>       
 2004750:	01 00 00 00 	nop                                            
      !(tty->termios.c_iflag & IXON)) {                               
    /* clear related flags in flow_ctrl */                            
    tty->flow_ctrl &= ~(FL_MDXON | FL_ORCVXOF);                       
 2004754:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        
 2004758:	82 08 7d ef 	and  %g1, -529, %g1                            
 200475c:	c2 27 60 b8 	st  %g1, [ %i5 + 0xb8 ]                        
                                                                      
    /* has output been stopped due to received XOFF? */               
    if (tty->flow_ctrl & FL_OSTOP) {                                  
 2004760:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        
 2004764:	80 88 60 20 	btst  0x20, %g1                                
 2004768:	02 80 00 0e 	be  20047a0 <rtems_termios_ioctl+0x170>        <== ALWAYS TAKEN
 200476c:	01 00 00 00 	nop                                            
      /* disable interrupts    */                                     
      rtems_interrupt_disable(level);                                 
 2004770:	7f ff f6 9d 	call  20021e4 <sparc_disable_interrupts>       <== NOT EXECUTED
 2004774:	01 00 00 00 	nop                                            <== NOT EXECUTED
 2004778:	b4 10 00 08 	mov  %o0, %i2                                  <== NOT EXECUTED
      tty->flow_ctrl &= ~FL_OSTOP;                                    
 200477c:	c4 07 60 b8 	ld  [ %i5 + 0xb8 ], %g2                        <== NOT EXECUTED
      /* check for chars in output buffer (or rob_state?) */          
      if (tty->rawOutBufState != rob_idle) {                          
 2004780:	c2 07 60 94 	ld  [ %i5 + 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;                                    
 2004784:	84 08 bf df 	and  %g2, -33, %g2                             <== NOT EXECUTED
 2004788:	c4 27 60 b8 	st  %g2, [ %i5 + 0xb8 ]                        <== NOT EXECUTED
      /* check for chars in output buffer (or rob_state?) */          
      if (tty->rawOutBufState != rob_idle) {                          
 200478c:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
 2004790:	12 80 00 a4 	bne  2004a20 <rtems_termios_ioctl+0x3f0>       <== NOT EXECUTED
 2004794:	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); 
      }                                                               
      /* reenable interrupts */                                       
      rtems_interrupt_enable(level);                                  
 2004798:	7f ff f6 97 	call  20021f4 <sparc_enable_interrupts>        <== NOT EXECUTED
 200479c:	90 10 00 1a 	mov  %i2, %o0                                  <== NOT EXECUTED
    }                                                                 
  }                                                                   
  /* check for incoming XON/XOFF flow control switched off */         
  if (( tty->flow_ctrl & FL_MDXOF) && !(tty->termios.c_iflag & IXOFF)) {
 20047a0:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        
 20047a4:	80 88 64 00 	btst  0x400, %g1                               
 20047a8:	02 80 00 0c 	be  20047d8 <rtems_termios_ioctl+0x1a8>        
 20047ac:	03 00 00 04 	sethi  %hi(0x1000), %g1                        
 20047b0:	c4 07 60 30 	ld  [ %i5 + 0x30 ], %g2                        
 20047b4:	80 88 80 01 	btst  %g2, %g1                                 
 20047b8:	12 80 00 08 	bne  20047d8 <rtems_termios_ioctl+0x1a8>       <== NEVER TAKEN
 20047bc:	01 00 00 00 	nop                                            
    /* clear related flags in flow_ctrl */                            
    tty->flow_ctrl &= ~(FL_MDXOF);                                    
 20047c0:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        
 20047c4:	82 08 7b ff 	and  %g1, -1025, %g1                           
 20047c8:	c2 27 60 b8 	st  %g1, [ %i5 + 0xb8 ]                        
    /* FIXME: what happens, if we had sent XOFF but not yet XON? */   
    tty->flow_ctrl &= ~(FL_ISNTXOF);                                  
 20047cc:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        
 20047d0:	82 08 7f fd 	and  %g1, -3, %g1                              
 20047d4:	c2 27 60 b8 	st  %g1, [ %i5 + 0xb8 ]                        
  }                                                                   
                                                                      
  /* check for incoming RTS/CTS flow control switched off */          
  if (( tty->flow_ctrl & FL_MDRTS) && !(tty->termios.c_cflag & CRTSCTS)) {
 20047d8:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        
 20047dc:	80 88 61 00 	btst  0x100, %g1                               
 20047e0:	02 80 00 16 	be  2004838 <rtems_termios_ioctl+0x208>        <== ALWAYS TAKEN
 20047e4:	c4 07 60 38 	ld  [ %i5 + 0x38 ], %g2                        
 20047e8:	80 a0 a0 00 	cmp  %g2, 0                                    <== NOT EXECUTED
 20047ec:	06 80 00 82 	bl  20049f4 <rtems_termios_ioctl+0x3c4>        <== NOT EXECUTED
 20047f0:	01 00 00 00 	nop                                            <== NOT EXECUTED
    /* clear related flags in flow_ctrl */                            
    tty->flow_ctrl &= ~(FL_MDRTS);                                    
 20047f4:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        <== NOT EXECUTED
 20047f8:	82 08 7e ff 	and  %g1, -257, %g1                            <== NOT EXECUTED
 20047fc:	c2 27 60 b8 	st  %g1, [ %i5 + 0xb8 ]                        <== NOT EXECUTED
                                                                      
    /* restart remote Tx, if it was stopped */                        
    if ((tty->flow_ctrl & FL_IRTSOFF) && (tty->device.startRemoteTx != NULL)) {
 2004800:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        <== NOT EXECUTED
 2004804:	80 88 60 04 	btst  4, %g1                                   <== NOT EXECUTED
 2004808:	02 80 00 09 	be  200482c <rtems_termios_ioctl+0x1fc>        <== NOT EXECUTED
 200480c:	01 00 00 00 	nop                                            <== NOT EXECUTED
 2004810:	c2 07 60 b0 	ld  [ %i5 + 0xb0 ], %g1                        <== NOT EXECUTED
 2004814:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
 2004818:	02 80 00 05 	be  200482c <rtems_termios_ioctl+0x1fc>        <== NOT EXECUTED
 200481c:	01 00 00 00 	nop                                            <== NOT EXECUTED
      tty->device.startRemoteTx(tty->minor);                          
 2004820:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
 2004824:	d0 07 60 10 	ld  [ %i5 + 0x10 ], %o0                        <== NOT EXECUTED
 2004828:	c4 07 60 38 	ld  [ %i5 + 0x38 ], %g2                        <== NOT EXECUTED
    }                                                                 
    tty->flow_ctrl &= ~(FL_IRTSOFF);                                  
 200482c:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        <== NOT EXECUTED
 2004830:	82 08 7f fb 	and  %g1, -5, %g1                              <== NOT EXECUTED
 2004834:	c2 27 60 b8 	st  %g1, [ %i5 + 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) {                               
 2004838:	80 a0 a0 00 	cmp  %g2, 0                                    
 200483c:	06 80 00 6e 	bl  20049f4 <rtems_termios_ioctl+0x3c4>        <== NEVER TAKEN
 2004840:	01 00 00 00 	nop                                            
    tty->flow_ctrl |= FL_MDRTS;                                       
  }                                                                   
  /* check for incoming XON/XOF flow control switched on */           
  if (tty->termios.c_iflag & IXOFF) {                                 
 2004844:	c2 07 60 30 	ld  [ %i5 + 0x30 ], %g1                        
 2004848:	05 00 00 04 	sethi  %hi(0x1000), %g2                        
 200484c:	80 88 40 02 	btst  %g1, %g2                                 
 2004850:	02 80 00 06 	be  2004868 <rtems_termios_ioctl+0x238>        
 2004854:	80 88 64 00 	btst  0x400, %g1                               
    tty->flow_ctrl |= FL_MDXOF;                                       
 2004858:	c4 07 60 b8 	ld  [ %i5 + 0xb8 ], %g2                        
 200485c:	84 10 a4 00 	or  %g2, 0x400, %g2                            
 2004860:	c4 27 60 b8 	st  %g2, [ %i5 + 0xb8 ]                        
  }                                                                   
  /* check for outgoing XON/XOF flow control switched on */           
  if (tty->termios.c_iflag & IXON) {                                  
 2004864:	80 88 64 00 	btst  0x400, %g1                               
 2004868:	22 80 00 06 	be,a   2004880 <rtems_termios_ioctl+0x250>     
 200486c:	c2 07 60 3c 	ld  [ %i5 + 0x3c ], %g1                        
    tty->flow_ctrl |= FL_MDXON;                                       
 2004870:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        
 2004874:	82 10 62 00 	or  %g1, 0x200, %g1                            
 2004878:	c2 27 60 b8 	st  %g1, [ %i5 + 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) {                              
 200487c:	c2 07 60 3c 	ld  [ %i5 + 0x3c ], %g1                        
 2004880:	80 88 60 02 	btst  2, %g1                                   
 2004884:	02 80 00 48 	be  20049a4 <rtems_termios_ioctl+0x374>        
 2004888:	01 00 00 00 	nop                                            
          tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;      
        else                                                          
          tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks;       
      } else {                                                        
        if (tty->termios.c_cc[VMIN]) {                                
          tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                 
 200488c:	c0 27 60 6c 	clr  [ %i5 + 0x6c ]                            
          tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;           
 2004890:	c0 27 60 70 	clr  [ %i5 + 0x70 ]                            
          tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;      
 2004894:	c0 27 60 74 	clr  [ %i5 + 0x74 ]                            
        } else {                                                      
          tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT;              
        }                                                             
      }                                                               
    }                                                                 
    if (tty->device.setAttributes)                                    
 2004898:	c2 07 60 a8 	ld  [ %i5 + 0xa8 ], %g1                        
 200489c:	80 a0 60 00 	cmp  %g1, 0                                    
 20048a0:	02 bf ff 85 	be  20046b4 <rtems_termios_ioctl+0x84>         <== NEVER TAKEN
 20048a4:	01 00 00 00 	nop                                            
      (*tty->device.setAttributes)(tty->minor, &tty->termios);        
 20048a8:	d0 07 60 10 	ld  [ %i5 + 0x10 ], %o0                        
 20048ac:	9f c0 40 00 	call  %g1                                      
 20048b0:	92 10 00 1b 	mov  %i3, %o1                                  
 20048b4:	30 bf ff 80 	b,a   20046b4 <rtems_termios_ioctl+0x84>       
  case TIOCGETD:                                                      
    *(int*)(args->buffer)=tty->t_line;                                
    break;                                                            
#endif                                                                
   case FIONREAD: {                                                   
      int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head;            
 20048b8:	c4 07 60 60 	ld  [ %i5 + 0x60 ], %g2                        <== NOT EXECUTED
 20048bc:	c2 07 60 5c 	ld  [ %i5 + 0x5c ], %g1                        <== NOT EXECUTED
      if ( rawnc < 0 )                                                
 20048c0:	82 a0 80 01 	subcc  %g2, %g1, %g1                           <== NOT EXECUTED
 20048c4:	0c 80 00 49 	bneg  20049e8 <rtems_termios_ioctl+0x3b8>      <== NOT EXECUTED
 20048c8:	01 00 00 00 	nop                                            <== NOT EXECUTED
        rawnc += tty->rawInBuf.Size;                                  
      /* Half guess that this is the right operation */               
      *(int *)args->buffer = tty->ccount - tty->cindex + rawnc;       
 20048cc:	c8 07 60 20 	ld  [ %i5 + 0x20 ], %g4                        <== NOT EXECUTED
 20048d0:	c4 07 60 24 	ld  [ %i5 + 0x24 ], %g2                        <== NOT EXECUTED
 20048d4:	c6 06 20 08 	ld  [ %i0 + 8 ], %g3                           <== NOT EXECUTED
 20048d8:	84 21 00 02 	sub  %g4, %g2, %g2                             <== NOT EXECUTED
 20048dc:	82 00 80 01 	add  %g2, %g1, %g1                             <== NOT EXECUTED
    }                                                                 
    break;                                                            
 20048e0:	10 bf ff 75 	b  20046b4 <rtems_termios_ioctl+0x84>          <== NOT EXECUTED
 20048e4:	c2 20 c0 00 	st  %g1, [ %g3 ]                               <== 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) {                                            
 20048e8:	32 bf ff 82 	bne,a   20046f0 <rtems_termios_ioctl+0xc0>     <== NEVER TAKEN
 20048ec:	c4 07 60 cc 	ld  [ %i5 + 0xcc ], %g2                        <== NOT EXECUTED
      sc = RTEMS_INVALID_NUMBER;                                      
    }                                                                 
    break;                                                            
                                                                      
  case RTEMS_IO_GET_ATTRIBUTES:                                       
    *(struct termios *)args->buffer = tty->termios;                   
 20048f0:	d0 06 20 08 	ld  [ %i0 + 8 ], %o0                           
 20048f4:	92 07 60 30 	add  %i5, 0x30, %o1                            
 20048f8:	40 00 2e 86 	call  2010310 <memcpy>                         
 20048fc:	94 10 20 24 	mov  0x24, %o2                                 
    break;                                                            
 2004900:	30 bf ff 6d 	b,a   20046b4 <rtems_termios_ioctl+0x84>       
  sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
  if (sc != RTEMS_SUCCESSFUL) {                                       
    args->ioctl_return = sc;                                          
    return sc;                                                        
  }                                                                   
  switch (args->command) {                                            
 2004904:	84 10 a0 1a 	or  %g2, 0x1a, %g2                             
 2004908:	80 a0 40 02 	cmp  %g1, %g2                                  
 200490c:	02 80 00 1e 	be  2004984 <rtems_termios_ioctl+0x354>        
 2004910:	05 20 01 1d 	sethi  %hi(0x80047400), %g2                    
 2004914:	84 10 a0 1b 	or  %g2, 0x1b, %g2	! 8004741b <RAM_END+0x7dc4741b>
 2004918:	80 a0 40 02 	cmp  %g1, %g2                                  
 200491c:	32 bf ff 75 	bne,a   20046f0 <rtems_termios_ioctl+0xc0>     <== NEVER TAKEN
 2004920:	c4 07 60 cc 	ld  [ %i5 + 0xcc ], %g2                        <== NOT EXECUTED
#if 1 /* FIXME */                                                     
  case TIOCSETD:                                                      
    /*                                                                
     * close old line discipline                                      
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_close != NULL) {          
 2004924:	c2 07 60 cc 	ld  [ %i5 + 0xcc ], %g1                        
 2004928:	37 00 80 75 	sethi  %hi(0x201d400), %i3                     
 200492c:	83 28 60 05 	sll  %g1, 5, %g1                               
 2004930:	b6 16 e1 80 	or  %i3, 0x180, %i3                            
 2004934:	82 06 c0 01 	add  %i3, %g1, %g1                             
 2004938:	c2 00 60 04 	ld  [ %g1 + 4 ], %g1                           
 200493c:	80 a0 60 00 	cmp  %g1, 0                                    
 2004940:	22 80 00 06 	be,a   2004958 <rtems_termios_ioctl+0x328>     
 2004944:	c2 06 20 08 	ld  [ %i0 + 8 ], %g1                           
      sc = rtems_termios_linesw[tty->t_line].l_close(tty);            
 2004948:	9f c0 40 00 	call  %g1                                      
 200494c:	90 10 00 1d 	mov  %i5, %o0                                  
 2004950:	b8 10 00 08 	mov  %o0, %i4                                  
    }                                                                 
    tty->t_line=*(int*)(args->buffer);                                
 2004954:	c2 06 20 08 	ld  [ %i0 + 8 ], %g1                           
 2004958:	c4 00 40 00 	ld  [ %g1 ], %g2                               
    tty->t_sc = NULL; /* ensure that no more valid data */            
 200495c:	c0 27 60 d0 	clr  [ %i5 + 0xd0 ]                            
    /*                                                                
     * open new line discipline                                       
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_open != NULL) {           
 2004960:	83 28 a0 05 	sll  %g2, 5, %g1                               
 2004964:	c2 06 c0 01 	ld  [ %i3 + %g1 ], %g1                         
 2004968:	80 a0 60 00 	cmp  %g1, 0                                    
 200496c:	02 bf ff 52 	be  20046b4 <rtems_termios_ioctl+0x84>         
 2004970:	c4 27 60 cc 	st  %g2, [ %i5 + 0xcc ]                        
      sc = rtems_termios_linesw[tty->t_line].l_open(tty);             
 2004974:	9f c0 40 00 	call  %g1                                      
 2004978:	90 10 00 1d 	mov  %i5, %o0                                  
 200497c:	10 bf ff 4e 	b  20046b4 <rtems_termios_ioctl+0x84>          
 2004980:	b8 10 00 08 	mov  %o0, %i4                                  
    }                                                                 
    break;                                                            
  case TIOCGETD:                                                      
    *(int*)(args->buffer)=tty->t_line;                                
 2004984:	c4 07 60 cc 	ld  [ %i5 + 0xcc ], %g2                        
 2004988:	c2 06 20 08 	ld  [ %i0 + 8 ], %g1                           
    break;                                                            
 200498c:	10 bf ff 4a 	b  20046b4 <rtems_termios_ioctl+0x84>          
 2004990:	c4 20 40 00 	st  %g2, [ %g1 ]                               
  case RTEMS_IO_TCDRAIN:                                              
    drainOutput (tty);                                                
    break;                                                            
                                                                      
  case RTEMS_IO_SNDWAKEUP:                                            
    tty->tty_snd = *wakeup;                                           
 2004994:	c2 27 60 d4 	st  %g1, [ %i5 + 0xd4 ]                        
 2004998:	c2 06 e0 04 	ld  [ %i3 + 4 ], %g1                           
    break;                                                            
 200499c:	10 bf ff 46 	b  20046b4 <rtems_termios_ioctl+0x84>          
 20049a0:	c2 27 60 d8 	st  %g1, [ %i5 + 0xd8 ]                        
      tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                     
      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;          
 20049a4:	40 00 06 1a 	call  200620c <rtems_clock_get_ticks_per_second>
 20049a8:	f4 0f 60 46 	ldub  [ %i5 + 0x46 ], %i2                      
    if (tty->termios.c_lflag & ICANON) {                              
      tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                     
      tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;               
      tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;          
    } else {                                                          
      tty->vtimeTicks = tty->termios.c_cc[VTIME] *                    
 20049ac:	40 00 4f 3d 	call  20186a0 <.umul>                          
 20049b0:	92 10 00 1a 	mov  %i2, %o1                                  
                    rtems_clock_get_ticks_per_second() / 10;          
 20049b4:	40 00 4f 75 	call  2018788 <.udiv>                          
 20049b8:	92 10 20 0a 	mov  0xa, %o1                                  
      if (tty->termios.c_cc[VTIME]) {                                 
 20049bc:	c2 0f 60 46 	ldub  [ %i5 + 0x46 ], %g1                      
    if (tty->termios.c_lflag & ICANON) {                              
      tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                     
      tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;               
      tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;          
    } else {                                                          
      tty->vtimeTicks = tty->termios.c_cc[VTIME] *                    
 20049c0:	d0 27 60 54 	st  %o0, [ %i5 + 0x54 ]                        
                    rtems_clock_get_ticks_per_second() / 10;          
      if (tty->termios.c_cc[VTIME]) {                                 
 20049c4:	80 a0 60 00 	cmp  %g1, 0                                    
 20049c8:	02 80 00 10 	be  2004a08 <rtems_termios_ioctl+0x3d8>        
 20049cc:	c2 0f 60 47 	ldub  [ %i5 + 0x47 ], %g1                      
        tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                   
 20049d0:	c0 27 60 6c 	clr  [ %i5 + 0x6c ]                            
        tty->rawInBufSemaphoreTimeout = tty->vtimeTicks;              
        if (tty->termios.c_cc[VMIN])                                  
 20049d4:	80 a0 60 00 	cmp  %g1, 0                                    
 20049d8:	12 bf ff af 	bne  2004894 <rtems_termios_ioctl+0x264>       
 20049dc:	d0 27 60 70 	st  %o0, [ %i5 + 0x70 ]                        
          tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;      
        else                                                          
          tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks;       
 20049e0:	10 bf ff ae 	b  2004898 <rtems_termios_ioctl+0x268>         
 20049e4:	d0 27 60 74 	st  %o0, [ %i5 + 0x74 ]                        
    break;                                                            
#endif                                                                
   case FIONREAD: {                                                   
      int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head;            
      if ( rawnc < 0 )                                                
        rawnc += tty->rawInBuf.Size;                                  
 20049e8:	c4 07 60 64 	ld  [ %i5 + 0x64 ], %g2                        <== NOT EXECUTED
 20049ec:	10 bf ff b8 	b  20048cc <rtems_termios_ioctl+0x29c>         <== NOT EXECUTED
 20049f0:	82 00 40 02 	add  %g1, %g2, %g1                             <== 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) {                               
    tty->flow_ctrl |= FL_MDRTS;                                       
 20049f4:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        <== NOT EXECUTED
 20049f8:	82 10 61 00 	or  %g1, 0x100, %g1                            <== NOT EXECUTED
 20049fc:	c2 27 60 b8 	st  %g1, [ %i5 + 0xb8 ]                        <== NOT EXECUTED
  }                                                                   
  /* check for incoming XON/XOF flow control switched on */           
  if (tty->termios.c_iflag & IXOFF) {                                 
 2004a00:	10 bf ff 92 	b  2004848 <rtems_termios_ioctl+0x218>         <== NOT EXECUTED
 2004a04:	c2 07 60 30 	ld  [ %i5 + 0x30 ], %g1                        <== NOT EXECUTED
        if (tty->termios.c_cc[VMIN])                                  
          tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;      
        else                                                          
          tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks;       
      } else {                                                        
        if (tty->termios.c_cc[VMIN]) {                                
 2004a08:	80 a0 60 00 	cmp  %g1, 0                                    
 2004a0c:	32 bf ff a1 	bne,a   2004890 <rtems_termios_ioctl+0x260>    <== NEVER TAKEN
 2004a10:	c0 27 60 6c 	clr  [ %i5 + 0x6c ]                            <== NOT EXECUTED
          tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                 
          tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;           
          tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;      
        } else {                                                      
          tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT;              
 2004a14:	82 10 20 01 	mov  1, %g1                                    
 2004a18:	10 bf ff a0 	b  2004898 <rtems_termios_ioctl+0x268>         
 2004a1c:	c2 27 60 6c 	st  %g1, [ %i5 + 0x6c ]                        
      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, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); 
 2004a20:	c4 07 60 84 	ld  [ %i5 + 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)(                                         
 2004a24:	d2 07 60 7c 	ld  [ %i5 + 0x7c ], %o1                        <== NOT EXECUTED
 2004a28:	c2 07 60 a4 	ld  [ %i5 + 0xa4 ], %g1                        <== NOT EXECUTED
 2004a2c:	d0 07 60 10 	ld  [ %i5 + 0x10 ], %o0                        <== NOT EXECUTED
 2004a30:	92 02 40 02 	add  %o1, %g2, %o1                             <== NOT EXECUTED
 2004a34:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
 2004a38:	94 10 20 01 	mov  1, %o2                                    <== NOT EXECUTED
 2004a3c:	30 bf ff 57 	b,a   2004798 <rtems_termios_ioctl+0x168>      <== NOT EXECUTED
                                                                      

02003ff4 <rtems_termios_open>: rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) {
 2003ff4:	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(                                        
 2003ff8:	39 00 80 76 	sethi  %hi(0x201d800), %i4                     
 2003ffc:	d0 07 20 50 	ld  [ %i4 + 0x50 ], %o0	! 201d850 <rtems_termios_ttyMutex>
 2004000:	92 10 20 00 	clr  %o1                                       
 2004004:	40 00 0a 4f 	call  2006940 <rtems_semaphore_obtain>         
 2004008:	94 10 20 00 	clr  %o2                                       
    rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);            
  if (sc != RTEMS_SUCCESSFUL)                                         
 200400c:	ba 92 20 00 	orcc  %o0, 0, %i5                              
 2004010:	12 80 00 27 	bne  20040ac <rtems_termios_open+0xb8>         <== NEVER TAKEN
 2004014:	25 00 80 76 	sethi  %hi(0x201d800), %l2                     
    return sc;                                                        
                                                                      
  for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { 
 2004018:	e2 04 a0 58 	ld  [ %l2 + 0x58 ], %l1	! 201d858 <rtems_termios_ttyHead>
 200401c:	80 a4 60 00 	cmp  %l1, 0                                    
 2004020:	02 80 00 34 	be  20040f0 <rtems_termios_open+0xfc>          
 2004024:	a0 10 00 11 	mov  %l1, %l0                                  
    if ((tty->major == major) && (tty->minor == minor))               
 2004028:	10 80 00 06 	b  2004040 <rtems_termios_open+0x4c>           
 200402c:	c2 04 20 0c 	ld  [ %l0 + 0xc ], %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) { 
 2004030:	80 a4 20 00 	cmp  %l0, 0                                    
 2004034:	02 80 00 30 	be  20040f4 <rtems_termios_open+0x100>         <== ALWAYS TAKEN
 2004038:	90 10 20 01 	mov  1, %o0                                    
    if ((tty->major == major) && (tty->minor == minor))               
 200403c:	c2 04 20 0c 	ld  [ %l0 + 0xc ], %g1                         <== NOT EXECUTED
 2004040:	80 a0 40 18 	cmp  %g1, %i0                                  
 2004044:	32 bf ff fb 	bne,a   2004030 <rtems_termios_open+0x3c>      
 2004048:	e0 04 00 00 	ld  [ %l0 ], %l0                               
 200404c:	c2 04 20 10 	ld  [ %l0 + 0x10 ], %g1                        
 2004050:	80 a0 40 19 	cmp  %g1, %i1                                  
 2004054:	32 bf ff f7 	bne,a   2004030 <rtems_termios_open+0x3c>      <== NEVER TAKEN
 2004058:	e0 04 00 00 	ld  [ %l0 ], %l0                               <== NOT EXECUTED
     */                                                               
    if (c++ == 'z')                                                   
      c = 'a';                                                        
                                                                      
  }                                                                   
  args->iop->data1 = tty;                                             
 200405c:	c4 06 80 00 	ld  [ %i2 ], %g2                               
  if (!tty->refcount++) {                                             
 2004060:	c2 04 20 08 	ld  [ %l0 + 8 ], %g1                           
     */                                                               
    if (c++ == 'z')                                                   
      c = 'a';                                                        
                                                                      
  }                                                                   
  args->iop->data1 = tty;                                             
 2004064:	e0 20 a0 38 	st  %l0, [ %g2 + 0x38 ]                        
  if (!tty->refcount++) {                                             
 2004068:	84 00 60 01 	add  %g1, 1, %g2                               
 200406c:	80 a0 60 00 	cmp  %g1, 0                                    
 2004070:	12 80 00 0d 	bne  20040a4 <rtems_termios_open+0xb0>         
 2004074:	c4 24 20 08 	st  %g2, [ %l0 + 8 ]                           
    if (tty->device.firstOpen)                                        
 2004078:	c2 04 20 98 	ld  [ %l0 + 0x98 ], %g1                        
 200407c:	80 a0 60 00 	cmp  %g1, 0                                    
 2004080:	02 80 00 05 	be  2004094 <rtems_termios_open+0xa0>          
 2004084:	90 10 00 18 	mov  %i0, %o0                                  
      (*tty->device.firstOpen)(major, minor, arg);                    
 2004088:	92 10 00 19 	mov  %i1, %o1                                  
 200408c:	9f c0 40 00 	call  %g1                                      
 2004090:	94 10 00 1a 	mov  %i2, %o2                                  
                                                                      
    /*                                                                
     * start I/O tasks, if needed                                     
     */                                                               
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
 2004094:	c2 04 20 b4 	ld  [ %l0 + 0xb4 ], %g1                        
 2004098:	80 a0 60 02 	cmp  %g1, 2                                    
 200409c:	22 80 00 06 	be,a   20040b4 <rtems_termios_open+0xc0>       
 20040a0:	d0 04 20 c4 	ld  [ %l0 + 0xc4 ], %o0                        
        tty->txTaskId, rtems_termios_txdaemon, (rtems_task_argument)tty);
      if (sc != RTEMS_SUCCESSFUL)                                     
        rtems_fatal_error_occurred (sc);                              
    }                                                                 
  }                                                                   
  rtems_semaphore_release (rtems_termios_ttyMutex);                   
 20040a4:	40 00 0a 71 	call  2006a68 <rtems_semaphore_release>        
 20040a8:	d0 07 20 50 	ld  [ %i4 + 0x50 ], %o0                        
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 20040ac:	81 c7 e0 08 	ret                                            
 20040b0:	91 e8 00 1d 	restore  %g0, %i5, %o0                         
                                                                      
    /*                                                                
     * start I/O tasks, if needed                                     
     */                                                               
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
      sc = rtems_task_start(                                          
 20040b4:	94 10 00 10 	mov  %l0, %o2                                  
 20040b8:	13 00 80 16 	sethi  %hi(0x2005800), %o1                     
 20040bc:	40 00 0b 3a 	call  2006da4 <rtems_task_start>               
 20040c0:	92 12 61 f0 	or  %o1, 0x1f0, %o1	! 20059f0 <rtems_termios_rxdaemon>
        tty->rxTaskId, rtems_termios_rxdaemon, (rtems_task_argument)tty);
      if (sc != RTEMS_SUCCESSFUL)                                     
 20040c4:	80 a2 20 00 	cmp  %o0, 0                                    
 20040c8:	12 80 00 ba 	bne  20043b0 <rtems_termios_open+0x3bc>        <== NEVER TAKEN
 20040cc:	94 10 00 10 	mov  %l0, %o2                                  
        rtems_fatal_error_occurred (sc);                              
                                                                      
      sc = rtems_task_start(                                          
 20040d0:	d0 04 20 c8 	ld  [ %l0 + 0xc8 ], %o0                        
 20040d4:	13 00 80 17 	sethi  %hi(0x2005c00), %o1                     
 20040d8:	40 00 0b 33 	call  2006da4 <rtems_task_start>               
 20040dc:	92 12 60 74 	or  %o1, 0x74, %o1	! 2005c74 <rtems_termios_txdaemon>
        tty->txTaskId, rtems_termios_txdaemon, (rtems_task_argument)tty);
      if (sc != RTEMS_SUCCESSFUL)                                     
 20040e0:	80 a2 20 00 	cmp  %o0, 0                                    
 20040e4:	02 bf ff f0 	be  20040a4 <rtems_termios_open+0xb0>          <== ALWAYS TAKEN
 20040e8:	01 00 00 00 	nop                                            
 20040ec:	30 80 00 b1 	b,a   20043b0 <rtems_termios_open+0x3bc>       <== NOT EXECUTED
    static char c = 'a';                                              
                                                                      
    /*                                                                
     * Create a new device                                            
     */                                                               
    tty = calloc (1, sizeof (struct rtems_termios_tty));              
 20040f0:	90 10 20 01 	mov  1, %o0	! 1 <PROM_START+0x1>               
 20040f4:	7f ff fa 7a 	call  2002adc <calloc>                         
 20040f8:	92 10 20 e8 	mov  0xe8, %o1                                 
    if (tty == NULL) {                                                
 20040fc:	a0 92 20 00 	orcc  %o0, 0, %l0                              
 2004100:	02 80 00 9d 	be  2004374 <rtems_termios_open+0x380>         
 2004104:	03 00 80 73 	sethi  %hi(0x201cc00), %g1                     
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
    /*                                                                
     * allocate raw input buffer                                      
     */                                                               
    tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE;                       
 2004108:	c2 00 62 64 	ld  [ %g1 + 0x264 ], %g1	! 201ce64 <rtems_termios_raw_input_size>
 200410c:	c2 24 20 64 	st  %g1, [ %l0 + 0x64 ]                        
    tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size);               
 2004110:	d0 04 20 64 	ld  [ %l0 + 0x64 ], %o0                        
 2004114:	7f ff fc 61 	call  2003298 <malloc>                         
 2004118:	01 00 00 00 	nop                                            
 200411c:	d0 24 20 58 	st  %o0, [ %l0 + 0x58 ]                        
    if (tty->rawInBuf.theBuf == NULL) {                               
 2004120:	80 a2 20 00 	cmp  %o0, 0                                    
 2004124:	02 80 00 92 	be  200436c <rtems_termios_open+0x378>         
 2004128:	a6 10 00 08 	mov  %o0, %l3                                  
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
    /*                                                                
     * allocate raw output buffer                                     
     */                                                               
    tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE;                     
 200412c:	03 00 80 73 	sethi  %hi(0x201cc00), %g1                     
 2004130:	c2 00 62 68 	ld  [ %g1 + 0x268 ], %g1	! 201ce68 <rtems_termios_raw_output_size>
 2004134:	c2 24 20 88 	st  %g1, [ %l0 + 0x88 ]                        
    tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size);             
 2004138:	d0 04 20 88 	ld  [ %l0 + 0x88 ], %o0                        
 200413c:	7f ff fc 57 	call  2003298 <malloc>                         
 2004140:	01 00 00 00 	nop                                            
 2004144:	d0 24 20 7c 	st  %o0, [ %l0 + 0x7c ]                        
    if (tty->rawOutBuf.theBuf == NULL) {                              
 2004148:	80 a2 20 00 	cmp  %o0, 0                                    
 200414c:	02 80 00 86 	be  2004364 <rtems_termios_open+0x370>         
 2004150:	a8 10 00 08 	mov  %o0, %l4                                  
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
    /*                                                                
     * allocate cooked buffer                                         
     */                                                               
    tty->cbuf  = malloc (CBUFSIZE);                                   
 2004154:	03 00 80 73 	sethi  %hi(0x201cc00), %g1                     
 2004158:	7f ff fc 50 	call  2003298 <malloc>                         
 200415c:	d0 00 62 6c 	ld  [ %g1 + 0x26c ], %o0	! 201ce6c <rtems_termios_cbufsize>
    if (tty->cbuf == NULL) {                                          
 2004160:	80 a2 20 00 	cmp  %o0, 0                                    
 2004164:	02 80 00 7e 	be  200435c <rtems_termios_open+0x368>         <== NEVER TAKEN
 2004168:	d0 24 20 1c 	st  %o0, [ %l0 + 0x1c ]                        
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
    /*                                                                
     * Initialize wakeup callbacks                                    
     */                                                               
    tty->tty_snd.sw_pfn = NULL;                                       
 200416c:	c0 24 20 d4 	clr  [ %l0 + 0xd4 ]                            
    tty->tty_snd.sw_arg = NULL;                                       
 2004170:	c0 24 20 d8 	clr  [ %l0 + 0xd8 ]                            
    tty->tty_rcv.sw_pfn = NULL;                                       
 2004174:	c0 24 20 dc 	clr  [ %l0 + 0xdc ]                            
    tty->tty_rcv.sw_arg = NULL;                                       
 2004178:	c0 24 20 e0 	clr  [ %l0 + 0xe0 ]                            
    tty->tty_rcvwakeup  = 0;                                          
 200417c:	c0 24 20 e4 	clr  [ %l0 + 0xe4 ]                            
                                                                      
    /*                                                                
     * link tty                                                       
     */                                                               
    tty->forw = rtems_termios_ttyHead;                                
 2004180:	e2 24 00 00 	st  %l1, [ %l0 ]                               
    tty->back = NULL;                                                 
    if (rtems_termios_ttyHead != NULL)                                
 2004184:	80 a4 60 00 	cmp  %l1, 0                                    
 2004188:	02 80 00 03 	be  2004194 <rtems_termios_open+0x1a0>         
 200418c:	c0 24 20 04 	clr  [ %l0 + 4 ]                               
      rtems_termios_ttyHead->back = tty;                              
 2004190:	e0 24 60 04 	st  %l0, [ %l1 + 4 ]                           
    rtems_termios_ttyHead = tty;                                      
    if (rtems_termios_ttyTail == NULL)                                
 2004194:	03 00 80 76 	sethi  %hi(0x201d800), %g1                     
 2004198:	c4 00 60 54 	ld  [ %g1 + 0x54 ], %g2	! 201d854 <rtems_termios_ttyTail>
 200419c:	80 a0 a0 00 	cmp  %g2, 0                                    
 20041a0:	02 80 00 9d 	be  2004414 <rtems_termios_open+0x420>         
 20041a4:	e0 24 a0 58 	st  %l0, [ %l2 + 0x58 ]                        
                                                                      
    /*                                                                
     * Set up mutex semaphores                                        
     */                                                               
    sc = rtems_semaphore_create (                                     
      rtems_build_name ('T', 'R', 'i', c),                            
 20041a8:	23 00 80 73 	sethi  %hi(0x201cc00), %l1                     
 20041ac:	d0 4c 62 70 	ldsb  [ %l1 + 0x270 ], %o0	! 201ce70 <c.6478>  
    tty->major = major;                                               
                                                                      
    /*                                                                
     * Set up mutex semaphores                                        
     */                                                               
    sc = rtems_semaphore_create (                                     
 20041b0:	03 15 14 9a 	sethi  %hi(0x54526800), %g1                    
 20041b4:	82 10 61 00 	or  %g1, 0x100, %g1	! 54526900 <RAM_END+0x52126900>
      rtems_termios_ttyHead->back = tty;                              
    rtems_termios_ttyHead = tty;                                      
    if (rtems_termios_ttyTail == NULL)                                
      rtems_termios_ttyTail = tty;                                    
                                                                      
    tty->minor = minor;                                               
 20041b8:	f2 24 20 10 	st  %i1, [ %l0 + 0x10 ]                        
    tty->major = major;                                               
 20041bc:	f0 24 20 0c 	st  %i0, [ %l0 + 0xc ]                         
                                                                      
    /*                                                                
     * Set up mutex semaphores                                        
     */                                                               
    sc = rtems_semaphore_create (                                     
 20041c0:	92 10 20 01 	mov  1, %o1                                    
 20041c4:	94 10 20 54 	mov  0x54, %o2                                 
 20041c8:	90 12 00 01 	or  %o0, %g1, %o0                              
 20041cc:	96 10 20 00 	clr  %o3                                       
 20041d0:	40 00 09 35 	call  20066a4 <rtems_semaphore_create>         
 20041d4:	98 04 20 14 	add  %l0, 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)                                       
 20041d8:	80 a2 20 00 	cmp  %o0, 0                                    
 20041dc:	12 80 00 75 	bne  20043b0 <rtems_termios_open+0x3bc>        
 20041e0:	03 15 14 9b 	sethi  %hi(0x54526c00), %g1                    
      rtems_fatal_error_occurred (sc);                                
    sc = rtems_semaphore_create (                                     
      rtems_build_name ('T', 'R', 'o', c),                            
 20041e4:	d0 4c 62 70 	ldsb  [ %l1 + 0x270 ], %o0                     
      RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY,
      RTEMS_NO_PRIORITY,                                              
      &tty->isem);                                                    
    if (sc != RTEMS_SUCCESSFUL)                                       
      rtems_fatal_error_occurred (sc);                                
    sc = rtems_semaphore_create (                                     
 20041e8:	82 10 63 00 	or  %g1, 0x300, %g1                            
 20041ec:	92 10 20 01 	mov  1, %o1                                    
 20041f0:	94 10 20 54 	mov  0x54, %o2                                 
 20041f4:	90 12 00 01 	or  %o0, %g1, %o0                              
 20041f8:	96 10 20 00 	clr  %o3                                       
 20041fc:	40 00 09 2a 	call  20066a4 <rtems_semaphore_create>         
 2004200:	98 04 20 18 	add  %l0, 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)                                       
 2004204:	80 a2 20 00 	cmp  %o0, 0                                    
 2004208:	12 80 00 6a 	bne  20043b0 <rtems_termios_open+0x3bc>        
 200420c:	03 15 14 9e 	sethi  %hi(0x54527800), %g1                    
      rtems_fatal_error_occurred (sc);                                
    sc = rtems_semaphore_create (                                     
      rtems_build_name ('T', 'R', 'x', c),                            
 2004210:	d0 4c 62 70 	ldsb  [ %l1 + 0x270 ], %o0                     
      RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY,
      RTEMS_NO_PRIORITY,                                              
      &tty->osem);                                                    
    if (sc != RTEMS_SUCCESSFUL)                                       
      rtems_fatal_error_occurred (sc);                                
    sc = rtems_semaphore_create (                                     
 2004214:	92 10 20 00 	clr  %o1                                       
 2004218:	90 12 00 01 	or  %o0, %g1, %o0                              
 200421c:	94 10 20 20 	mov  0x20, %o2                                 
 2004220:	96 10 20 00 	clr  %o3                                       
 2004224:	40 00 09 20 	call  20066a4 <rtems_semaphore_create>         
 2004228:	98 04 20 8c 	add  %l0, 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)                                       
 200422c:	80 a2 20 00 	cmp  %o0, 0                                    
 2004230:	12 80 00 60 	bne  20043b0 <rtems_termios_open+0x3bc>        
 2004234:	92 10 00 1b 	mov  %i3, %o1                                  
      rtems_fatal_error_occurred (sc);                                
    tty->rawOutBufState = rob_idle;                                   
 2004238:	c0 24 20 94 	clr  [ %l0 + 0x94 ]                            
                                                                      
    /*                                                                
     * Set callbacks                                                  
     */                                                               
    tty->device = *callbacks;                                         
 200423c:	90 04 20 98 	add  %l0, 0x98, %o0                            
 2004240:	40 00 30 34 	call  2010310 <memcpy>                         
 2004244:	94 10 20 20 	mov  0x20, %o2                                 
                                                                      
    /*                                                                
     * Create I/O tasks                                               
     */                                                               
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
 2004248:	c2 04 20 b4 	ld  [ %l0 + 0xb4 ], %g1                        
 200424c:	80 a0 60 02 	cmp  %g1, 2                                    
 2004250:	02 80 00 5a 	be  20043b8 <rtems_termios_open+0x3c4>         
 2004254:	d0 4c 62 70 	ldsb  [ %l1 + 0x270 ], %o0                     
           &tty->rxTaskId);                                           
      if (sc != RTEMS_SUCCESSFUL)                                     
        rtems_fatal_error_occurred (sc);                              
                                                                      
    }                                                                 
    if ((tty->device.pollRead == NULL) ||                             
 2004258:	c2 04 20 a0 	ld  [ %l0 + 0xa0 ], %g1                        
 200425c:	80 a0 60 00 	cmp  %g1, 0                                    
 2004260:	02 80 00 49 	be  2004384 <rtems_termios_open+0x390>         
 2004264:	d0 4c 62 70 	ldsb  [ %l1 + 0x270 ], %o0                     
 2004268:	c2 04 20 b4 	ld  [ %l0 + 0xb4 ], %g1                        
 200426c:	80 a0 60 02 	cmp  %g1, 2                                    
 2004270:	02 80 00 46 	be  2004388 <rtems_termios_open+0x394>         
 2004274:	03 15 14 9c 	sethi  %hi(0x54527000), %g1                    
    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;                                               
 2004278:	c0 24 20 b8 	clr  [ %l0 + 0xb8 ]                            
    /*                                                                
     * set low/highwater mark for XON/XOFF support                    
     */                                                               
    tty->lowwater  = tty->rawInBuf.Size * 1/2;                        
 200427c:	c8 04 20 64 	ld  [ %l0 + 0x64 ], %g4                        
    tty->highwater = tty->rawInBuf.Size * 3/4;                        
 2004280:	c4 04 20 64 	ld  [ %l0 + 0x64 ], %g2                        
    /*                                                                
     * Bump name characer                                             
     */                                                               
    if (c++ == 'z')                                                   
 2004284:	c2 0c 62 70 	ldub  [ %l1 + 0x270 ], %g1                     
    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;                        
 2004288:	b7 28 a0 01 	sll  %g2, 1, %i3                               
 200428c:	84 06 c0 02 	add  %i3, %g2, %g2                             
    }                                                                 
                                                                      
    /*                                                                
     * Set default parameters                                         
     */                                                               
    tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;           
 2004290:	37 00 00 09 	sethi  %hi(0x2400), %i3                        
 2004294:	b6 16 e1 02 	or  %i3, 0x102, %i3	! 2502 <PROM_START+0x2502> 
 2004298:	f6 24 20 30 	st  %i3, [ %l0 + 0x30 ]                        
    tty->termios.c_oflag = OPOST | ONLCR | XTABS;                     
 200429c:	37 00 00 06 	sethi  %hi(0x1800), %i3                        
 20042a0:	b6 16 e0 05 	or  %i3, 5, %i3	! 1805 <PROM_START+0x1805>     
 20042a4:	f6 24 20 34 	st  %i3, [ %l0 + 0x34 ]                        
    tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL;              
 20042a8:	b6 10 28 bd 	mov  0x8bd, %i3                                
 20042ac:	f6 24 20 38 	st  %i3, [ %l0 + 0x38 ]                        
    tty->termios.c_lflag =                                            
 20042b0:	37 00 00 20 	sethi  %hi(0x8000), %i3                        
 20042b4:	b6 16 e2 3b 	or  %i3, 0x23b, %i3	! 823b <PROM_START+0x823b> 
 20042b8:	f6 24 20 3c 	st  %i3, [ %l0 + 0x3c ]                        
       ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL;       
                                                                      
    tty->termios.c_cc[VINTR] = '\003';                                
 20042bc:	b6 10 20 03 	mov  3, %i3                                    
 20042c0:	f6 2c 20 41 	stb  %i3, [ %l0 + 0x41 ]                       
    tty->termios.c_cc[VQUIT] = '\034';                                
 20042c4:	b6 10 20 1c 	mov  0x1c, %i3                                 
 20042c8:	f6 2c 20 42 	stb  %i3, [ %l0 + 0x42 ]                       
    tty->termios.c_cc[VERASE] = '\177';                               
 20042cc:	b6 10 20 7f 	mov  0x7f, %i3                                 
 20042d0:	f6 2c 20 43 	stb  %i3, [ %l0 + 0x43 ]                       
    tty->termios.c_cc[VKILL] = '\025';                                
 20042d4:	b6 10 20 15 	mov  0x15, %i3                                 
 20042d8:	f6 2c 20 44 	stb  %i3, [ %l0 + 0x44 ]                       
    tty->termios.c_cc[VEOF] = '\004';                                 
 20042dc:	b6 10 20 04 	mov  4, %i3                                    
 20042e0:	f6 2c 20 45 	stb  %i3, [ %l0 + 0x45 ]                       
    tty->termios.c_cc[VEOL] = '\000';                                 
    tty->termios.c_cc[VEOL2] = '\000';                                
    tty->termios.c_cc[VSTART] = '\021';                               
 20042e4:	b6 10 20 11 	mov  0x11, %i3                                 
 20042e8:	f6 2c 20 49 	stb  %i3, [ %l0 + 0x49 ]                       
    tty->termios.c_cc[VSTOP] = '\023';                                
 20042ec:	b6 10 20 13 	mov  0x13, %i3                                 
 20042f0:	f6 2c 20 4a 	stb  %i3, [ %l0 + 0x4a ]                       
    tty->termios.c_cc[VSUSP] = '\032';                                
 20042f4:	b6 10 20 1a 	mov  0x1a, %i3                                 
 20042f8:	f6 2c 20 4b 	stb  %i3, [ %l0 + 0x4b ]                       
    tty->termios.c_cc[VREPRINT] = '\022';                             
 20042fc:	b6 10 20 12 	mov  0x12, %i3                                 
 2004300:	f6 2c 20 4d 	stb  %i3, [ %l0 + 0x4d ]                       
    tty->termios.c_cc[VDISCARD] = '\017';                             
 2004304:	b6 10 20 0f 	mov  0xf, %i3                                  
 2004308:	f6 2c 20 4e 	stb  %i3, [ %l0 + 0x4e ]                       
    tty->termios.c_cc[VWERASE] = '\027';                              
 200430c:	b6 10 20 17 	mov  0x17, %i3                                 
    tty->lowwater  = tty->rawInBuf.Size * 1/2;                        
    tty->highwater = tty->rawInBuf.Size * 3/4;                        
    /*                                                                
     * Bump name characer                                             
     */                                                               
    if (c++ == 'z')                                                   
 2004310:	86 00 60 01 	add  %g1, 1, %g3                               
    /* 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;                        
 2004314:	89 31 20 01 	srl  %g4, 1, %g4                               
    tty->highwater = tty->rawInBuf.Size * 3/4;                        
 2004318:	85 30 a0 02 	srl  %g2, 2, %g2                               
    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';                              
 200431c:	f6 2c 20 4f 	stb  %i3, [ %l0 + 0x4f ]                       
    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';                                 
 2004320:	c0 2c 20 4c 	clrb  [ %l0 + 0x4c ]                           
    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';                               
 2004324:	b6 10 20 16 	mov  0x16, %i3                                 
    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';                                 
    tty->termios.c_cc[VEOL2] = '\000';                                
 2004328:	c0 2c 20 51 	clrb  [ %l0 + 0x51 ]                           
    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';                               
 200432c:	f6 2c 20 50 	stb  %i3, [ %l0 + 0x50 ]                       
    /* 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;                        
 2004330:	c8 24 20 bc 	st  %g4, [ %l0 + 0xbc ]                        
    tty->highwater = tty->rawInBuf.Size * 3/4;                        
 2004334:	c4 24 20 c0 	st  %g2, [ %l0 + 0xc0 ]                        
    /*                                                                
     * Bump name characer                                             
     */                                                               
    if (c++ == 'z')                                                   
 2004338:	83 28 60 18 	sll  %g1, 0x18, %g1                            
 200433c:	83 38 60 18 	sra  %g1, 0x18, %g1                            
 2004340:	80 a0 60 7a 	cmp  %g1, 0x7a                                 
 2004344:	12 bf ff 46 	bne  200405c <rtems_termios_open+0x68>         
 2004348:	c6 2c 62 70 	stb  %g3, [ %l1 + 0x270 ]                      
      c = 'a';                                                        
 200434c:	84 10 20 61 	mov  0x61, %g2                                 
 2004350:	03 00 80 73 	sethi  %hi(0x201cc00), %g1                     
 2004354:	10 bf ff 42 	b  200405c <rtems_termios_open+0x68>           
 2004358:	c4 28 62 70 	stb  %g2, [ %g1 + 0x270 ]	! 201ce70 <c.6478>   
    /*                                                                
     * allocate cooked buffer                                         
     */                                                               
    tty->cbuf  = malloc (CBUFSIZE);                                   
    if (tty->cbuf == NULL) {                                          
            free((void *)(tty->rawOutBuf.theBuf));                    
 200435c:	7f ff fa ed 	call  2002f10 <free>                           <== NOT EXECUTED
 2004360:	90 10 00 14 	mov  %l4, %o0                                  <== NOT EXECUTED
            free((void *)(tty->rawInBuf.theBuf));                     
 2004364:	7f ff fa eb 	call  2002f10 <free>                           
 2004368:	90 10 00 13 	mov  %l3, %o0                                  
            free(tty);                                                
 200436c:	7f ff fa e9 	call  2002f10 <free>                           
 2004370:	90 10 00 10 	mov  %l0, %o0                                  
      rtems_semaphore_release (rtems_termios_ttyMutex);               
 2004374:	d0 07 20 50 	ld  [ %i4 + 0x50 ], %o0                        
 2004378:	40 00 09 bc 	call  2006a68 <rtems_semaphore_release>        
 200437c:	ba 10 20 1a 	mov  0x1a, %i5                                 
      return RTEMS_NO_MEMORY;                                         
 2004380:	30 bf ff 4b 	b,a   20040ac <rtems_termios_open+0xb8>        
        rtems_fatal_error_occurred (sc);                              
                                                                      
    }                                                                 
    if ((tty->device.pollRead == NULL) ||                             
        (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){   
      sc = rtems_semaphore_create (                                   
 2004384:	03 15 14 9c 	sethi  %hi(0x54527000), %g1                    
 2004388:	82 10 62 00 	or  %g1, 0x200, %g1	! 54527200 <RAM_END+0x52127200>
 200438c:	92 10 20 00 	clr  %o1                                       
 2004390:	94 10 20 24 	mov  0x24, %o2                                 
 2004394:	90 12 00 01 	or  %o0, %g1, %o0                              
 2004398:	96 10 20 00 	clr  %o3                                       
 200439c:	40 00 08 c2 	call  20066a4 <rtems_semaphore_create>         
 20043a0:	98 04 20 68 	add  %l0, 0x68, %o4                            
        rtems_build_name ('T', 'R', 'r', c),                          
        0,                                                            
        RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_PRIORITY,               
        RTEMS_NO_PRIORITY,                                            
        &tty->rawInBuf.Semaphore);                                    
      if (sc != RTEMS_SUCCESSFUL)                                     
 20043a4:	80 a2 20 00 	cmp  %o0, 0                                    
 20043a8:	02 bf ff b4 	be  2004278 <rtems_termios_open+0x284>         <== ALWAYS TAKEN
 20043ac:	01 00 00 00 	nop                                            
        rtems_fatal_error_occurred (sc);                              
                                                                      
      sc = rtems_task_start(                                          
        tty->txTaskId, rtems_termios_txdaemon, (rtems_task_argument)tty);
      if (sc != RTEMS_SUCCESSFUL)                                     
        rtems_fatal_error_occurred (sc);                              
 20043b0:	40 00 0b 28 	call  2007050 <rtems_fatal_error_occurred>     
 20043b4:	01 00 00 00 	nop                                            
                                                                      
    /*                                                                
     * Create I/O tasks                                               
     */                                                               
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
      sc = rtems_task_create (                                        
 20043b8:	03 15 1e 15 	sethi  %hi(0x54785400), %g1                    
 20043bc:	92 10 20 0a 	mov  0xa, %o1                                  
 20043c0:	90 12 00 01 	or  %o0, %g1, %o0                              
 20043c4:	94 10 24 00 	mov  0x400, %o2                                
 20043c8:	96 10 25 00 	mov  0x500, %o3                                
 20043cc:	98 10 20 00 	clr  %o4                                       
 20043d0:	40 00 09 d1 	call  2006b14 <rtems_task_create>              
 20043d4:	9a 04 20 c8 	add  %l0, 0xc8, %o5                            
           TERMIOS_TXTASK_STACKSIZE,                                  
           RTEMS_NO_PREEMPT | RTEMS_NO_TIMESLICE |                    
           RTEMS_NO_ASR,                                              
           RTEMS_NO_FLOATING_POINT | RTEMS_LOCAL,                     
           &tty->txTaskId);                                           
      if (sc != RTEMS_SUCCESSFUL)                                     
 20043d8:	80 a2 20 00 	cmp  %o0, 0                                    
 20043dc:	12 bf ff f5 	bne  20043b0 <rtems_termios_open+0x3bc>        <== NEVER TAKEN
 20043e0:	03 14 9e 15 	sethi  %hi(0x52785400), %g1                    
        rtems_fatal_error_occurred (sc);                              
      sc = rtems_task_create (                                        
                                   rtems_build_name ('R', 'x', 'T', c),
 20043e4:	d0 4c 62 70 	ldsb  [ %l1 + 0x270 ], %o0                     
           RTEMS_NO_ASR,                                              
           RTEMS_NO_FLOATING_POINT | RTEMS_LOCAL,                     
           &tty->txTaskId);                                           
      if (sc != RTEMS_SUCCESSFUL)                                     
        rtems_fatal_error_occurred (sc);                              
      sc = rtems_task_create (                                        
 20043e8:	92 10 20 09 	mov  9, %o1                                    
 20043ec:	90 12 00 01 	or  %o0, %g1, %o0                              
 20043f0:	94 10 24 00 	mov  0x400, %o2                                
 20043f4:	96 10 25 00 	mov  0x500, %o3                                
 20043f8:	98 10 20 00 	clr  %o4                                       
 20043fc:	40 00 09 c6 	call  2006b14 <rtems_task_create>              
 2004400:	9a 04 20 c4 	add  %l0, 0xc4, %o5                            
           TERMIOS_RXTASK_STACKSIZE,                                  
           RTEMS_NO_PREEMPT | RTEMS_NO_TIMESLICE |                    
           RTEMS_NO_ASR,                                              
           RTEMS_NO_FLOATING_POINT | RTEMS_LOCAL,                     
           &tty->rxTaskId);                                           
      if (sc != RTEMS_SUCCESSFUL)                                     
 2004404:	80 a2 20 00 	cmp  %o0, 0                                    
 2004408:	22 bf ff 95 	be,a   200425c <rtems_termios_open+0x268>      <== ALWAYS TAKEN
 200440c:	c2 04 20 a0 	ld  [ %l0 + 0xa0 ], %g1                        
 2004410:	30 bf ff e8 	b,a   20043b0 <rtems_termios_open+0x3bc>       <== NOT EXECUTED
    tty->back = NULL;                                                 
    if (rtems_termios_ttyHead != NULL)                                
      rtems_termios_ttyHead->back = tty;                              
    rtems_termios_ttyHead = tty;                                      
    if (rtems_termios_ttyTail == NULL)                                
      rtems_termios_ttyTail = tty;                                    
 2004414:	10 bf ff 65 	b  20041a8 <rtems_termios_open+0x1b4>          
 2004418:	e0 20 60 54 	st  %l0, [ %g1 + 0x54 ]                        
                                                                      

02004a40 <rtems_termios_puts>: * Send characters to device-specific code */ void rtems_termios_puts ( const void *_buf, int len, struct rtems_termios_tty *tty) {
 2004a40:	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) {           
 2004a44:	c2 06 a0 b4 	ld  [ %i2 + 0xb4 ], %g1                        
 2004a48:	80 a0 60 00 	cmp  %g1, 0                                    
 2004a4c:	22 80 00 44 	be,a   2004b5c <rtems_termios_puts+0x11c>      
 2004a50:	c2 06 a0 a4 	ld  [ %i2 + 0xa4 ], %g1                        
    (*tty->device.write)(tty->minor, buf, len);                       
    return;                                                           
  }                                                                   
  newHead = tty->rawOutBuf.Head;                                      
 2004a54:	e0 06 a0 80 	ld  [ %i2 + 0x80 ], %l0                        
  while (len) {                                                       
 2004a58:	80 a6 60 00 	cmp  %i1, 0                                    
 2004a5c:	02 80 00 35 	be  2004b30 <rtems_termios_puts+0xf0>          <== NEVER TAKEN
 2004a60:	b6 10 20 02 	mov  2, %i3                                    
      (char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1);         
      } else {                                                        
        /* remember that output has been stopped due to flow ctrl*/   
        tty->flow_ctrl |= FL_OSTOP;                                   
      }                                                               
      tty->rawOutBufState = rob_busy;                                 
 2004a64:	a2 10 20 01 	mov  1, %l1                                    
     *  len -= ncopy                                                  
     *                                                                
     * To minimize latency, the memcpy should be done                 
     * with interrupts enabled.                                       
     */                                                               
    newHead = (newHead + 1) % tty->rawOutBuf.Size;                    
 2004a68:	d2 06 a0 88 	ld  [ %i2 + 0x88 ], %o1                        
 2004a6c:	40 00 4f f3 	call  2018a38 <.urem>                          
 2004a70:	90 04 20 01 	add  %l0, 1, %o0                               
    rtems_interrupt_disable (level);                                  
 2004a74:	7f ff f5 dc 	call  20021e4 <sparc_disable_interrupts>       
 2004a78:	a0 10 00 08 	mov  %o0, %l0                                  
 2004a7c:	ba 10 00 08 	mov  %o0, %i5                                  
    while (newHead == tty->rawOutBuf.Tail) {                          
 2004a80:	f8 06 a0 84 	ld  [ %i2 + 0x84 ], %i4                        
 2004a84:	80 a7 00 10 	cmp  %i4, %l0                                  
 2004a88:	32 80 00 14 	bne,a   2004ad8 <rtems_termios_puts+0x98>      
 2004a8c:	c6 0e 00 00 	ldub  [ %i0 ], %g3                             
      tty->rawOutBufState = rob_wait;                                 
 2004a90:	f6 26 a0 94 	st  %i3, [ %i2 + 0x94 ]                        
      rtems_interrupt_enable (level);                                 
 2004a94:	7f ff f5 d8 	call  20021f4 <sparc_enable_interrupts>        
 2004a98:	90 10 00 1d 	mov  %i5, %o0                                  
      sc = rtems_semaphore_obtain(                                    
 2004a9c:	d0 06 a0 8c 	ld  [ %i2 + 0x8c ], %o0                        
 2004aa0:	92 10 20 00 	clr  %o1                                       
 2004aa4:	40 00 07 a7 	call  2006940 <rtems_semaphore_obtain>         
 2004aa8:	94 10 20 00 	clr  %o2                                       
        tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);      
      if (sc != RTEMS_SUCCESSFUL)                                     
 2004aac:	80 a2 20 00 	cmp  %o0, 0                                    
 2004ab0:	12 80 00 31 	bne  2004b74 <rtems_termios_puts+0x134>        <== NEVER TAKEN
 2004ab4:	01 00 00 00 	nop                                            
        rtems_fatal_error_occurred (sc);                              
      rtems_interrupt_disable (level);                                
 2004ab8:	7f ff f5 cb 	call  20021e4 <sparc_disable_interrupts>       
 2004abc:	01 00 00 00 	nop                                            
 2004ac0:	ba 10 00 08 	mov  %o0, %i5                                  
     * 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) {                          
 2004ac4:	c2 06 a0 84 	ld  [ %i2 + 0x84 ], %g1                        
 2004ac8:	80 a0 40 1c 	cmp  %g1, %i4                                  
 2004acc:	22 bf ff f2 	be,a   2004a94 <rtems_termios_puts+0x54>       <== NEVER TAKEN
 2004ad0:	f6 26 a0 94 	st  %i3, [ %i2 + 0x94 ]                        <== NOT EXECUTED
        tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);      
      if (sc != RTEMS_SUCCESSFUL)                                     
        rtems_fatal_error_occurred (sc);                              
      rtems_interrupt_disable (level);                                
    }                                                                 
    tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++;              
 2004ad4:	c6 0e 00 00 	ldub  [ %i0 ], %g3                             
 2004ad8:	c2 06 a0 80 	ld  [ %i2 + 0x80 ], %g1                        
 2004adc:	c4 06 a0 7c 	ld  [ %i2 + 0x7c ], %g2                        
 2004ae0:	b0 06 20 01 	inc  %i0                                       
 2004ae4:	c6 28 80 01 	stb  %g3, [ %g2 + %g1 ]                        
    tty->rawOutBuf.Head = newHead;                                    
    if (tty->rawOutBufState == rob_idle) {                            
 2004ae8:	c2 06 a0 94 	ld  [ %i2 + 0x94 ], %g1                        
      if (sc != RTEMS_SUCCESSFUL)                                     
        rtems_fatal_error_occurred (sc);                              
      rtems_interrupt_disable (level);                                
    }                                                                 
    tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++;              
    tty->rawOutBuf.Head = newHead;                                    
 2004aec:	e0 26 a0 80 	st  %l0, [ %i2 + 0x80 ]                        
    if (tty->rawOutBufState == rob_idle) {                            
 2004af0:	80 a0 60 00 	cmp  %g1, 0                                    
 2004af4:	12 80 00 0a 	bne  2004b1c <rtems_termios_puts+0xdc>         
 2004af8:	01 00 00 00 	nop                                            
      /* check, whether XOFF has been received */                     
      if (!(tty->flow_ctrl & FL_ORCVXOF)) {                           
 2004afc:	c2 06 a0 b8 	ld  [ %i2 + 0xb8 ], %g1                        
 2004b00:	80 88 60 10 	btst  0x10, %g1                                
 2004b04:	02 80 00 0d 	be  2004b38 <rtems_termios_puts+0xf8>          <== ALWAYS TAKEN
 2004b08:	01 00 00 00 	nop                                            
        (*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;                                   
 2004b0c:	c2 06 a0 b8 	ld  [ %i2 + 0xb8 ], %g1                        <== NOT EXECUTED
 2004b10:	82 10 60 20 	or  %g1, 0x20, %g1                             <== NOT EXECUTED
 2004b14:	c2 26 a0 b8 	st  %g1, [ %i2 + 0xb8 ]                        <== NOT EXECUTED
      }                                                               
      tty->rawOutBufState = rob_busy;                                 
 2004b18:	e2 26 a0 94 	st  %l1, [ %i2 + 0x94 ]                        <== NOT EXECUTED
    }                                                                 
    rtems_interrupt_enable (level);                                   
 2004b1c:	7f ff f5 b6 	call  20021f4 <sparc_enable_interrupts>        
 2004b20:	90 10 00 1d 	mov  %i5, %o0                                  
  if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {           
    (*tty->device.write)(tty->minor, buf, len);                       
    return;                                                           
  }                                                                   
  newHead = tty->rawOutBuf.Head;                                      
  while (len) {                                                       
 2004b24:	b2 86 7f ff 	addcc  %i1, -1, %i1                            
 2004b28:	12 bf ff d0 	bne  2004a68 <rtems_termios_puts+0x28>         
 2004b2c:	01 00 00 00 	nop                                            
 2004b30:	81 c7 e0 08 	ret                                            
 2004b34:	81 e8 00 00 	restore                                        
    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,                              
      (char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1);         
 2004b38:	c4 06 a0 84 	ld  [ %i2 + 0x84 ], %g2                        
    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,                              
 2004b3c:	d2 06 a0 7c 	ld  [ %i2 + 0x7c ], %o1                        
 2004b40:	c2 06 a0 a4 	ld  [ %i2 + 0xa4 ], %g1                        
 2004b44:	d0 06 a0 10 	ld  [ %i2 + 0x10 ], %o0                        
 2004b48:	92 02 40 02 	add  %o1, %g2, %o1                             
 2004b4c:	9f c0 40 00 	call  %g1                                      
 2004b50:	94 10 20 01 	mov  1, %o2                                    
      (char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1);         
      } else {                                                        
        /* remember that output has been stopped due to flow ctrl*/   
        tty->flow_ctrl |= FL_OSTOP;                                   
      }                                                               
      tty->rawOutBufState = rob_busy;                                 
 2004b54:	10 bf ff f2 	b  2004b1c <rtems_termios_puts+0xdc>           
 2004b58:	e2 26 a0 94 	st  %l1, [ %i2 + 0x94 ]                        
  unsigned int newHead;                                               
  rtems_interrupt_level level;                                        
  rtems_status_code sc;                                               
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {           
    (*tty->device.write)(tty->minor, buf, len);                       
 2004b5c:	d0 06 a0 10 	ld  [ %i2 + 0x10 ], %o0                        
 2004b60:	92 10 00 18 	mov  %i0, %o1                                  
 2004b64:	9f c0 40 00 	call  %g1                                      
 2004b68:	94 10 00 19 	mov  %i1, %o2                                  
    return;                                                           
 2004b6c:	81 c7 e0 08 	ret                                            
 2004b70:	81 e8 00 00 	restore                                        
      tty->rawOutBufState = rob_wait;                                 
      rtems_interrupt_enable (level);                                 
      sc = rtems_semaphore_obtain(                                    
        tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);      
      if (sc != RTEMS_SUCCESSFUL)                                     
        rtems_fatal_error_occurred (sc);                              
 2004b74:	40 00 09 37 	call  2007050 <rtems_fatal_error_occurred>     <== NOT EXECUTED
                                                                      

020052d0 <rtems_termios_read>: return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) {
 20052d0:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_libio_rw_args_t *args = arg;                                  
  struct rtems_termios_tty *tty = args->iop->data1;                   
 20052d4:	c2 06 00 00 	ld  [ %i0 ], %g1                               
  uint32_t   count = args->count;                                     
 20052d8:	f4 06 20 14 	ld  [ %i0 + 0x14 ], %i2                        
                                                                      
rtems_status_code                                                     
rtems_termios_read (void *arg)                                        
{                                                                     
  rtems_libio_rw_args_t *args = arg;                                  
  struct rtems_termios_tty *tty = args->iop->data1;                   
 20052dc:	fa 00 60 38 	ld  [ %g1 + 0x38 ], %i5                        
  uint32_t   count = args->count;                                     
  char      *buffer = args->buffer;                                   
 20052e0:	e4 06 20 10 	ld  [ %i0 + 0x10 ], %l2                        
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
 20052e4:	d0 07 60 14 	ld  [ %i5 + 0x14 ], %o0                        
 20052e8:	92 10 20 00 	clr  %o1                                       
 20052ec:	40 00 05 95 	call  2006940 <rtems_semaphore_obtain>         
 20052f0:	94 10 20 00 	clr  %o2                                       
  if (sc != RTEMS_SUCCESSFUL)                                         
 20052f4:	a0 92 20 00 	orcc  %o0, 0, %l0                              
 20052f8:	12 80 00 10 	bne  2005338 <rtems_termios_read+0x68>         <== NEVER TAKEN
 20052fc:	03 00 80 75 	sethi  %hi(0x201d400), %g1                     
    return sc;                                                        
                                                                      
  if (rtems_termios_linesw[tty->t_line].l_read != NULL) {             
 2005300:	c4 07 60 cc 	ld  [ %i5 + 0xcc ], %g2                        
 2005304:	85 28 a0 05 	sll  %g2, 5, %g2                               
 2005308:	82 10 61 80 	or  %g1, 0x180, %g1                            
 200530c:	82 00 40 02 	add  %g1, %g2, %g1                             
 2005310:	c2 00 60 08 	ld  [ %g1 + 8 ], %g1                           
 2005314:	80 a0 60 00 	cmp  %g1, 0                                    
 2005318:	02 80 00 0a 	be  2005340 <rtems_termios_read+0x70>          
 200531c:	90 10 00 1d 	mov  %i5, %o0                                  
    sc = rtems_termios_linesw[tty->t_line].l_read(tty,args);          
 2005320:	9f c0 40 00 	call  %g1                                      
 2005324:	92 10 00 18 	mov  %i0, %o1                                  
 2005328:	a0 10 00 08 	mov  %o0, %l0                                  
    tty->tty_rcvwakeup = 0;                                           
    rtems_semaphore_release (tty->isem);                              
 200532c:	d0 07 60 14 	ld  [ %i5 + 0x14 ], %o0                        
 2005330:	40 00 05 ce 	call  2006a68 <rtems_semaphore_release>        
 2005334:	c0 27 60 e4 	clr  [ %i5 + 0xe4 ]                            
  }                                                                   
  args->bytes_moved = args->count - count;                            
  tty->tty_rcvwakeup = 0;                                             
  rtems_semaphore_release (tty->isem);                                
  return sc;                                                          
}                                                                     
 2005338:	81 c7 e0 08 	ret                                            
 200533c:	91 e8 00 10 	restore  %g0, %l0, %o0                         
    tty->tty_rcvwakeup = 0;                                           
    rtems_semaphore_release (tty->isem);                              
    return sc;                                                        
  }                                                                   
                                                                      
  if (tty->cindex == tty->ccount) {                                   
 2005340:	c4 07 60 24 	ld  [ %i5 + 0x24 ], %g2                        
 2005344:	c2 07 60 20 	ld  [ %i5 + 0x20 ], %g1                        
 2005348:	80 a0 80 01 	cmp  %g2, %g1                                  
 200534c:	22 80 00 20 	be,a   20053cc <rtems_termios_read+0xfc>       <== ALWAYS TAKEN
 2005350:	c4 07 60 28 	ld  [ %i5 + 0x28 ], %g2                        
      sc = fillBufferQueue (tty);                                     
                                                                      
    if (sc != RTEMS_SUCCESSFUL)                                       
      tty->cindex = tty->ccount = 0;                                  
  }                                                                   
  while (count && (tty->cindex < tty->ccount)) {                      
 2005354:	80 a6 a0 00 	cmp  %i2, 0                                    
 2005358:	22 80 00 15 	be,a   20053ac <rtems_termios_read+0xdc>       <== NEVER TAKEN
 200535c:	c2 06 20 14 	ld  [ %i0 + 0x14 ], %g1                        <== NOT EXECUTED
 2005360:	c2 07 60 24 	ld  [ %i5 + 0x24 ], %g1                        
 2005364:	c4 07 60 20 	ld  [ %i5 + 0x20 ], %g2                        
 2005368:	80 a0 40 02 	cmp  %g1, %g2                                  
 200536c:	36 80 00 10 	bge,a   20053ac <rtems_termios_read+0xdc>      <== NEVER TAKEN
 2005370:	c2 06 20 14 	ld  [ %i0 + 0x14 ], %g1                        <== NOT EXECUTED
 2005374:	10 80 00 06 	b  200538c <rtems_termios_read+0xbc>           
 2005378:	a4 24 80 01 	sub  %l2, %g1, %l2                             
 200537c:	c4 07 60 20 	ld  [ %i5 + 0x20 ], %g2                        
 2005380:	80 a0 80 01 	cmp  %g2, %g1                                  
 2005384:	24 80 00 0a 	ble,a   20053ac <rtems_termios_read+0xdc>      
 2005388:	c2 06 20 14 	ld  [ %i0 + 0x14 ], %g1                        
    *buffer++ = tty->cbuf[tty->cindex++];                             
 200538c:	c4 07 60 1c 	ld  [ %i5 + 0x1c ], %g2                        
      sc = fillBufferQueue (tty);                                     
                                                                      
    if (sc != RTEMS_SUCCESSFUL)                                       
      tty->cindex = tty->ccount = 0;                                  
  }                                                                   
  while (count && (tty->cindex < tty->ccount)) {                      
 2005390:	b4 86 bf ff 	addcc  %i2, -1, %i2                            
    *buffer++ = tty->cbuf[tty->cindex++];                             
 2005394:	c4 08 80 01 	ldub  [ %g2 + %g1 ], %g2                       
 2005398:	c4 2c 80 01 	stb  %g2, [ %l2 + %g1 ]                        
 200539c:	82 00 60 01 	inc  %g1                                       
      sc = fillBufferQueue (tty);                                     
                                                                      
    if (sc != RTEMS_SUCCESSFUL)                                       
      tty->cindex = tty->ccount = 0;                                  
  }                                                                   
  while (count && (tty->cindex < tty->ccount)) {                      
 20053a0:	12 bf ff f7 	bne  200537c <rtems_termios_read+0xac>         
 20053a4:	c2 27 60 24 	st  %g1, [ %i5 + 0x24 ]                        
    *buffer++ = tty->cbuf[tty->cindex++];                             
    count--;                                                          
  }                                                                   
  args->bytes_moved = args->count - count;                            
 20053a8:	c2 06 20 14 	ld  [ %i0 + 0x14 ], %g1                        
  tty->tty_rcvwakeup = 0;                                             
  rtems_semaphore_release (tty->isem);                                
 20053ac:	d0 07 60 14 	ld  [ %i5 + 0x14 ], %o0                        
  }                                                                   
  while (count && (tty->cindex < tty->ccount)) {                      
    *buffer++ = tty->cbuf[tty->cindex++];                             
    count--;                                                          
  }                                                                   
  args->bytes_moved = args->count - count;                            
 20053b0:	b4 20 40 1a 	sub  %g1, %i2, %i2                             
 20053b4:	f4 26 20 1c 	st  %i2, [ %i0 + 0x1c ]                        
  tty->tty_rcvwakeup = 0;                                             
 20053b8:	c0 27 60 e4 	clr  [ %i5 + 0xe4 ]                            
  rtems_semaphore_release (tty->isem);                                
 20053bc:	40 00 05 ab 	call  2006a68 <rtems_semaphore_release>        
 20053c0:	b0 10 00 10 	mov  %l0, %i0                                  
  return sc;                                                          
}                                                                     
 20053c4:	81 c7 e0 08 	ret                                            
 20053c8:	81 e8 00 00 	restore                                        
  }                                                                   
                                                                      
  if (tty->cindex == tty->ccount) {                                   
    tty->cindex = tty->ccount = 0;                                    
    tty->read_start_column = tty->column;                             
    if (tty->device.pollRead != NULL &&                               
 20053cc:	c2 07 60 a0 	ld  [ %i5 + 0xa0 ], %g1                        
    rtems_semaphore_release (tty->isem);                              
    return sc;                                                        
  }                                                                   
                                                                      
  if (tty->cindex == tty->ccount) {                                   
    tty->cindex = tty->ccount = 0;                                    
 20053d0:	c0 27 60 20 	clr  [ %i5 + 0x20 ]                            
 20053d4:	c0 27 60 24 	clr  [ %i5 + 0x24 ]                            
    tty->read_start_column = tty->column;                             
    if (tty->device.pollRead != NULL &&                               
 20053d8:	80 a0 60 00 	cmp  %g1, 0                                    
 20053dc:	02 80 00 06 	be  20053f4 <rtems_termios_read+0x124>         
 20053e0:	c4 27 60 2c 	st  %g2, [ %i5 + 0x2c ]                        
 20053e4:	c4 07 60 b4 	ld  [ %i5 + 0xb4 ], %g2                        
 20053e8:	80 a0 a0 00 	cmp  %g2, 0                                    
 20053ec:	22 80 00 73 	be,a   20055b8 <rtems_termios_read+0x2e8>      
 20053f0:	c4 07 60 3c 	ld  [ %i5 + 0x3c ], %g2                        
 * Fill the input buffer from the raw input queue                     
 */                                                                   
static rtems_status_code                                              
fillBufferQueue (struct rtems_termios_tty *tty)                       
{                                                                     
  rtems_interval timeout = tty->rawInBufSemaphoreFirstTimeout;        
 20053f4:	f8 07 60 74 	ld  [ %i5 + 0x74 ], %i4                        
  rtems_status_code sc;                                               
  int               wait = (int)1;                                    
 20053f8:	b6 10 20 01 	mov  1, %i3                                    
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
                       (tty->ccount < (CBUFSIZE-1))) {                
 20053fc:	23 00 80 73 	sethi  %hi(0x201cc00), %l1                     
        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)(                                       
 2005400:	a6 07 60 49 	add  %i5, 0x49, %l3                            
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
 2005404:	c4 07 60 5c 	ld  [ %i5 + 0x5c ], %g2                        
 2005408:	c2 07 60 60 	ld  [ %i5 + 0x60 ], %g1                        
 200540c:	80 a0 80 01 	cmp  %g2, %g1                                  
 2005410:	02 80 00 51 	be  2005554 <rtems_termios_read+0x284>         
 2005414:	c4 04 62 6c 	ld  [ %l1 + 0x26c ], %g2                       
 2005418:	c2 07 60 20 	ld  [ %i5 + 0x20 ], %g1                        
                       (tty->ccount < (CBUFSIZE-1))) {                
 200541c:	84 00 bf ff 	add  %g2, -1, %g2                              
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
 2005420:	80 a0 80 01 	cmp  %g2, %g1                                  
 2005424:	14 80 00 14 	bg  2005474 <rtems_termios_read+0x1a4>         <== ALWAYS TAKEN
 2005428:	b2 14 62 6c 	or  %l1, 0x26c, %i1                            
    }                                                                 
                                                                      
    /*                                                                
     * Wait for characters                                            
     */                                                               
    if ( wait ) {                                                     
 200542c:	10 80 00 4b 	b  2005558 <rtems_termios_read+0x288>          <== NOT EXECUTED
 2005430:	80 a6 e0 00 	cmp  %i3, 0                                    <== NOT EXECUTED
        }                                                             
      }                                                               
                                                                      
      /* continue processing new character */                         
      if (tty->termios.c_lflag & ICANON) {                            
        if (siproc (c, tty))                                          
 2005434:	7f ff ff 62 	call  20051bc <siproc>                         
 2005438:	01 00 00 00 	nop                                            
          wait = 0;                                                   
 200543c:	80 a0 00 08 	cmp  %g0, %o0                                  
 2005440:	82 40 3f ff 	addx  %g0, -1, %g1                             
 2005444:	b6 0e c0 01 	and  %i3, %g1, %i3                             
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
 2005448:	c4 07 60 5c 	ld  [ %i5 + 0x5c ], %g2                        
 200544c:	c2 07 60 60 	ld  [ %i5 + 0x60 ], %g1                        
 2005450:	80 a0 80 01 	cmp  %g2, %g1                                  
 2005454:	02 80 00 40 	be  2005554 <rtems_termios_read+0x284>         
 2005458:	f8 07 60 70 	ld  [ %i5 + 0x70 ], %i4                        
                       (tty->ccount < (CBUFSIZE-1))) {                
 200545c:	c2 06 40 00 	ld  [ %i1 ], %g1                               
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
 2005460:	c4 07 60 20 	ld  [ %i5 + 0x20 ], %g2                        
                       (tty->ccount < (CBUFSIZE-1))) {                
 2005464:	82 00 7f ff 	add  %g1, -1, %g1                              
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
 2005468:	80 a0 80 01 	cmp  %g2, %g1                                  
 200546c:	16 80 00 3b 	bge  2005558 <rtems_termios_read+0x288>        <== NEVER TAKEN
 2005470:	80 a6 e0 00 	cmp  %i3, 0                                    
                       (tty->ccount < (CBUFSIZE-1))) {                
      unsigned char c;                                                
      unsigned int newHead;                                           
                                                                      
      newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size;        
 2005474:	d0 07 60 5c 	ld  [ %i5 + 0x5c ], %o0                        
 2005478:	d2 07 60 64 	ld  [ %i5 + 0x64 ], %o1                        
 200547c:	40 00 4d 6f 	call  2018a38 <.urem>                          
 2005480:	90 02 20 01 	inc  %o0                                       
      c = tty->rawInBuf.theBuf[newHead];                              
 2005484:	c2 07 60 58 	ld  [ %i5 + 0x58 ], %g1                        
 2005488:	f8 08 40 08 	ldub  [ %g1 + %o0 ], %i4                       
      tty->rawInBuf.Head = newHead;                                   
 200548c:	d0 27 60 5c 	st  %o0, [ %i5 + 0x5c ]                        
      if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size)             
 2005490:	c2 07 60 60 	ld  [ %i5 + 0x60 ], %g1                        
 2005494:	c4 07 60 64 	ld  [ %i5 + 0x64 ], %g2                        
          % tty->rawInBuf.Size)                                       
 2005498:	d2 07 60 64 	ld  [ %i5 + 0x64 ], %o1                        
      unsigned int newHead;                                           
                                                                      
      newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size;        
      c = tty->rawInBuf.theBuf[newHead];                              
      tty->rawInBuf.Head = newHead;                                   
      if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size)             
 200549c:	82 00 80 01 	add  %g2, %g1, %g1                             
          % tty->rawInBuf.Size)                                       
 20054a0:	40 00 4d 66 	call  2018a38 <.urem>                          
 20054a4:	90 20 40 08 	sub  %g1, %o0, %o0                             
      unsigned int newHead;                                           
                                                                      
      newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size;        
      c = tty->rawInBuf.theBuf[newHead];                              
      tty->rawInBuf.Head = newHead;                                   
      if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size)             
 20054a8:	c2 07 60 bc 	ld  [ %i5 + 0xbc ], %g1                        
 20054ac:	80 a2 00 01 	cmp  %o0, %g1                                  
 20054b0:	3a 80 00 18 	bcc,a   2005510 <rtems_termios_read+0x240>     <== NEVER TAKEN
 20054b4:	c2 07 60 3c 	ld  [ %i5 + 0x3c ], %g1                        <== NOT EXECUTED
          % tty->rawInBuf.Size)                                       
         < tty->lowwater) {                                           
        tty->flow_ctrl &= ~FL_IREQXOF;                                
 20054b8:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        
 20054bc:	82 08 7f fe 	and  %g1, -2, %g1                              
 20054c0:	c2 27 60 b8 	st  %g1, [ %i5 + 0xb8 ]                        
        /* if tx stopped and XON should be sent... */                 
        if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF))               
 20054c4:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        
 20054c8:	82 08 62 02 	and  %g1, 0x202, %g1                           
 20054cc:	80 a0 62 02 	cmp  %g1, 0x202                                
 20054d0:	22 80 00 2c 	be,a   2005580 <rtems_termios_read+0x2b0>      <== NEVER TAKEN
 20054d4:	c2 07 60 94 	ld  [ %i5 + 0x94 ], %g1                        <== NOT EXECUTED
            && ((tty->rawOutBufState == rob_idle)                     
          || (tty->flow_ctrl & FL_OSTOP))) {                          
          /* XON should be sent now... */                             
          (*tty->device.write)(                                       
            tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1);     
        } else if (tty->flow_ctrl & FL_MDRTS) {                       
 20054d8:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        
 20054dc:	80 88 61 00 	btst  0x100, %g1                               
 20054e0:	22 80 00 0c 	be,a   2005510 <rtems_termios_read+0x240>      <== ALWAYS TAKEN
 20054e4:	c2 07 60 3c 	ld  [ %i5 + 0x3c ], %g1                        
          tty->flow_ctrl &= ~FL_IRTSOFF;                              
 20054e8:	c4 07 60 b8 	ld  [ %i5 + 0xb8 ], %g2                        <== NOT EXECUTED
          /* activate RTS line */                                     
          if (tty->device.startRemoteTx != NULL) {                    
 20054ec:	c2 07 60 b0 	ld  [ %i5 + 0xb0 ], %g1                        <== NOT EXECUTED
          || (tty->flow_ctrl & FL_OSTOP))) {                          
          /* XON should be sent now... */                             
          (*tty->device.write)(                                       
            tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1);     
        } else if (tty->flow_ctrl & FL_MDRTS) {                       
          tty->flow_ctrl &= ~FL_IRTSOFF;                              
 20054f0:	84 08 bf fb 	and  %g2, -5, %g2                              <== NOT EXECUTED
 20054f4:	c4 27 60 b8 	st  %g2, [ %i5 + 0xb8 ]                        <== NOT EXECUTED
          /* activate RTS line */                                     
          if (tty->device.startRemoteTx != NULL) {                    
 20054f8:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
 20054fc:	22 80 00 05 	be,a   2005510 <rtems_termios_read+0x240>      <== NOT EXECUTED
 2005500:	c2 07 60 3c 	ld  [ %i5 + 0x3c ], %g1                        <== NOT EXECUTED
            tty->device.startRemoteTx(tty->minor);                    
 2005504:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
 2005508:	d0 07 60 10 	ld  [ %i5 + 0x10 ], %o0                        <== NOT EXECUTED
          }                                                           
        }                                                             
      }                                                               
                                                                      
      /* continue processing new character */                         
      if (tty->termios.c_lflag & ICANON) {                            
 200550c:	c2 07 60 3c 	ld  [ %i5 + 0x3c ], %g1                        <== NOT EXECUTED
        if (siproc (c, tty))                                          
 2005510:	90 0f 20 ff 	and  %i4, 0xff, %o0                            
          }                                                           
        }                                                             
      }                                                               
                                                                      
      /* continue processing new character */                         
      if (tty->termios.c_lflag & ICANON) {                            
 2005514:	80 88 60 02 	btst  2, %g1                                   
 2005518:	12 bf ff c7 	bne  2005434 <rtems_termios_read+0x164>        <== ALWAYS TAKEN
 200551c:	92 10 00 1d 	mov  %i5, %o1                                  
        if (siproc (c, tty))                                          
          wait = 0;                                                   
      } else {                                                        
        siproc (c, tty);                                              
 2005520:	7f ff ff 27 	call  20051bc <siproc>                         <== NOT EXECUTED
 2005524:	01 00 00 00 	nop                                            <== NOT EXECUTED
        if (tty->ccount >= tty->termios.c_cc[VMIN])                   
 2005528:	c2 0f 60 47 	ldub  [ %i5 + 0x47 ], %g1                      <== NOT EXECUTED
 200552c:	c4 07 60 20 	ld  [ %i5 + 0x20 ], %g2                        <== NOT EXECUTED
 2005530:	80 a0 80 01 	cmp  %g2, %g1                                  <== NOT EXECUTED
 2005534:	06 bf ff c5 	bl  2005448 <rtems_termios_read+0x178>         <== NOT EXECUTED
 2005538:	01 00 00 00 	nop                                            <== NOT EXECUTED
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
 200553c:	c4 07 60 5c 	ld  [ %i5 + 0x5c ], %g2                        <== NOT EXECUTED
 2005540:	c2 07 60 60 	ld  [ %i5 + 0x60 ], %g1                        <== NOT EXECUTED
        if (siproc (c, tty))                                          
          wait = 0;                                                   
      } else {                                                        
        siproc (c, tty);                                              
        if (tty->ccount >= tty->termios.c_cc[VMIN])                   
          wait = 0;                                                   
 2005544:	b6 10 20 00 	clr  %i3                                       <== NOT EXECUTED
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
 2005548:	80 a0 80 01 	cmp  %g2, %g1                                  <== NOT EXECUTED
 200554c:	12 bf ff c4 	bne  200545c <rtems_termios_read+0x18c>        <== NOT EXECUTED
 2005550:	f8 07 60 70 	ld  [ %i5 + 0x70 ], %i4                        <== NOT EXECUTED
    }                                                                 
                                                                      
    /*                                                                
     * Wait for characters                                            
     */                                                               
    if ( wait ) {                                                     
 2005554:	80 a6 e0 00 	cmp  %i3, 0                                    
 2005558:	02 bf ff 80 	be  2005358 <rtems_termios_read+0x88>          
 200555c:	80 a6 a0 00 	cmp  %i2, 0                                    
      sc = rtems_semaphore_obtain(                                    
 2005560:	d0 07 60 68 	ld  [ %i5 + 0x68 ], %o0                        
 2005564:	d2 07 60 6c 	ld  [ %i5 + 0x6c ], %o1                        
 2005568:	40 00 04 f6 	call  2006940 <rtems_semaphore_obtain>         
 200556c:	94 10 00 1c 	mov  %i4, %o2                                  
        tty->rawInBuf.Semaphore, tty->rawInBufSemaphoreOptions, timeout);
      if (sc != RTEMS_SUCCESSFUL)                                     
 2005570:	80 a2 20 00 	cmp  %o0, 0                                    
 2005574:	02 bf ff a4 	be  2005404 <rtems_termios_read+0x134>         <== ALWAYS TAKEN
 2005578:	80 a6 a0 00 	cmp  %i2, 0                                    
 200557c:	30 bf ff 77 	b,a   2005358 <rtems_termios_read+0x88>        <== NOT EXECUTED
         < tty->lowwater) {                                           
        tty->flow_ctrl &= ~FL_IREQXOF;                                
        /* if tx stopped and XON should be sent... */                 
        if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF))               
             ==                (FL_MDXON | FL_ISNTXOF))               
            && ((tty->rawOutBufState == rob_idle)                     
 2005580:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
 2005584:	22 80 00 07 	be,a   20055a0 <rtems_termios_read+0x2d0>      <== NOT EXECUTED
 2005588:	c2 07 60 a4 	ld  [ %i5 + 0xa4 ], %g1                        <== NOT EXECUTED
          || (tty->flow_ctrl & FL_OSTOP))) {                          
 200558c:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        <== NOT EXECUTED
 2005590:	80 88 60 20 	btst  0x20, %g1                                <== NOT EXECUTED
 2005594:	02 bf ff d1 	be  20054d8 <rtems_termios_read+0x208>         <== NOT EXECUTED
 2005598:	01 00 00 00 	nop                                            <== NOT EXECUTED
          /* XON should be sent now... */                             
          (*tty->device.write)(                                       
 200559c:	c2 07 60 a4 	ld  [ %i5 + 0xa4 ], %g1                        <== NOT EXECUTED
 20055a0:	d0 07 60 10 	ld  [ %i5 + 0x10 ], %o0                        <== NOT EXECUTED
 20055a4:	92 10 00 13 	mov  %l3, %o1                                  <== NOT EXECUTED
 20055a8:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
 20055ac:	94 10 20 01 	mov  1, %o2                                    <== NOT EXECUTED
          }                                                           
        }                                                             
      }                                                               
                                                                      
      /* continue processing new character */                         
      if (tty->termios.c_lflag & ICANON) {                            
 20055b0:	10 bf ff d8 	b  2005510 <rtems_termios_read+0x240>          <== NOT EXECUTED
 20055b4:	c2 07 60 3c 	ld  [ %i5 + 0x3c ], %g1                        <== NOT EXECUTED
static rtems_status_code                                              
fillBufferPoll (struct rtems_termios_tty *tty)                        
{                                                                     
  int n;                                                              
                                                                      
  if (tty->termios.c_lflag & ICANON) {                                
 20055b8:	80 88 a0 02 	btst  2, %g2                                   
 20055bc:	02 80 00 0e 	be  20055f4 <rtems_termios_read+0x324>         
 20055c0:	01 00 00 00 	nop                                            
    for (;;) {                                                        
      n = (*tty->device.pollRead)(tty->minor);                        
 20055c4:	9f c0 40 00 	call  %g1                                      
 20055c8:	d0 07 60 10 	ld  [ %i5 + 0x10 ], %o0                        
      if (n < 0) {                                                    
 20055cc:	80 a2 20 00 	cmp  %o0, 0                                    
 20055d0:	06 80 00 3a 	bl  20056b8 <rtems_termios_read+0x3e8>         
 20055d4:	90 0a 20 ff 	and  %o0, 0xff, %o0                            
        rtems_task_wake_after (1);                                    
      } else {                                                        
        if  (siproc (n, tty))                                         
 20055d8:	7f ff fe f9 	call  20051bc <siproc>                         
 20055dc:	92 10 00 1d 	mov  %i5, %o1                                  
 20055e0:	80 a2 20 00 	cmp  %o0, 0                                    
 20055e4:	12 bf ff 5d 	bne  2005358 <rtems_termios_read+0x88>         
 20055e8:	80 a6 a0 00 	cmp  %i2, 0                                    
static rtems_status_code                                              
fillBufferPoll (struct rtems_termios_tty *tty)                        
{                                                                     
  int n;                                                              
                                                                      
  if (tty->termios.c_lflag & ICANON) {                                
 20055ec:	10 bf ff f6 	b  20055c4 <rtems_termios_read+0x2f4>          
 20055f0:	c2 07 60 a0 	ld  [ %i5 + 0xa0 ], %g1                        
      }                                                               
    }                                                                 
  } else {                                                            
    rtems_interval then, now;                                         
                                                                      
    then = rtems_clock_get_ticks_since_boot();                        
 20055f4:	40 00 03 0e 	call  200622c <rtems_clock_get_ticks_since_boot>
 20055f8:	01 00 00 00 	nop                                            
 20055fc:	b8 10 00 08 	mov  %o0, %i4                                  
    for (;;) {                                                        
      n = (*tty->device.pollRead)(tty->minor);                        
 2005600:	c2 07 60 a0 	ld  [ %i5 + 0xa0 ], %g1                        
 2005604:	9f c0 40 00 	call  %g1                                      
 2005608:	d0 07 60 10 	ld  [ %i5 + 0x10 ], %o0                        
      if (n < 0) {                                                    
 200560c:	80 a2 20 00 	cmp  %o0, 0                                    
 2005610:	06 80 00 10 	bl  2005650 <rtems_termios_read+0x380>         
 2005614:	90 0a 20 ff 	and  %o0, 0xff, %o0                            
            break;                                                    
          }                                                           
        }                                                             
        rtems_task_wake_after (1);                                    
      } else {                                                        
        siproc (n, tty);                                              
 2005618:	7f ff fe e9 	call  20051bc <siproc>                         
 200561c:	92 10 00 1d 	mov  %i5, %o1                                  
        if (tty->ccount >= tty->termios.c_cc[VMIN])                   
 2005620:	c2 0f 60 47 	ldub  [ %i5 + 0x47 ], %g1                      
 2005624:	c4 07 60 20 	ld  [ %i5 + 0x20 ], %g2                        
 2005628:	80 a0 80 01 	cmp  %g2, %g1                                  
 200562c:	16 bf ff 4a 	bge  2005354 <rtems_termios_read+0x84>         
 2005630:	80 a0 60 00 	cmp  %g1, 0                                    
          break;                                                      
        if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME])      
 2005634:	22 bf ff f4 	be,a   2005604 <rtems_termios_read+0x334>      <== NEVER TAKEN
 2005638:	c2 07 60 a0 	ld  [ %i5 + 0xa0 ], %g1                        <== NOT EXECUTED
 200563c:	c2 0f 60 46 	ldub  [ %i5 + 0x46 ], %g1                      
 2005640:	80 a0 60 00 	cmp  %g1, 0                                    
 2005644:	22 bf ff f0 	be,a   2005604 <rtems_termios_read+0x334>      <== NEVER TAKEN
 2005648:	c2 07 60 a0 	ld  [ %i5 + 0xa0 ], %g1                        <== NOT EXECUTED
 200564c:	30 bf ff ea 	b,a   20055f4 <rtems_termios_read+0x324>       
                                                                      
    then = rtems_clock_get_ticks_since_boot();                        
    for (;;) {                                                        
      n = (*tty->device.pollRead)(tty->minor);                        
      if (n < 0) {                                                    
        if (tty->termios.c_cc[VMIN]) {                                
 2005650:	c2 0f 60 47 	ldub  [ %i5 + 0x47 ], %g1                      
 2005654:	80 a0 60 00 	cmp  %g1, 0                                    
 2005658:	02 80 00 0d 	be  200568c <rtems_termios_read+0x3bc>         <== NEVER TAKEN
 200565c:	c2 0f 60 46 	ldub  [ %i5 + 0x46 ], %g1                      
          if (tty->termios.c_cc[VTIME] && tty->ccount) {              
 2005660:	80 a0 60 00 	cmp  %g1, 0                                    
 2005664:	02 80 00 06 	be  200567c <rtems_termios_read+0x3ac>         <== NEVER TAKEN
 2005668:	01 00 00 00 	nop                                            
 200566c:	c2 07 60 20 	ld  [ %i5 + 0x20 ], %g1                        
 2005670:	80 a0 60 00 	cmp  %g1, 0                                    
 2005674:	12 80 00 09 	bne  2005698 <rtems_termios_read+0x3c8>        
 2005678:	01 00 00 00 	nop                                            
          now = rtems_clock_get_ticks_since_boot();                   
          if ((now - then) > tty->vtimeTicks) {                       
            break;                                                    
          }                                                           
        }                                                             
        rtems_task_wake_after (1);                                    
 200567c:	40 00 05 e5 	call  2006e10 <rtems_task_wake_after>          
 2005680:	90 10 20 01 	mov  1, %o0	! 1 <PROM_START+0x1>               
  } else {                                                            
    rtems_interval then, now;                                         
                                                                      
    then = rtems_clock_get_ticks_since_boot();                        
    for (;;) {                                                        
      n = (*tty->device.pollRead)(tty->minor);                        
 2005684:	10 bf ff e0 	b  2005604 <rtems_termios_read+0x334>          
 2005688:	c2 07 60 a0 	ld  [ %i5 + 0xa0 ], %g1                        
            if ((now - then) > tty->vtimeTicks) {                     
              break;                                                  
            }                                                         
          }                                                           
        } else {                                                      
          if (!tty->termios.c_cc[VTIME])                              
 200568c:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
 2005690:	02 bf ff 32 	be  2005358 <rtems_termios_read+0x88>          <== NOT EXECUTED
 2005694:	80 a6 a0 00 	cmp  %i2, 0                                    <== NOT EXECUTED
            break;                                                    
          now = rtems_clock_get_ticks_since_boot();                   
 2005698:	40 00 02 e5 	call  200622c <rtems_clock_get_ticks_since_boot>
 200569c:	01 00 00 00 	nop                                            
          if ((now - then) > tty->vtimeTicks) {                       
 20056a0:	c2 07 60 54 	ld  [ %i5 + 0x54 ], %g1                        
 20056a4:	90 22 00 1c 	sub  %o0, %i4, %o0                             
 20056a8:	80 a2 00 01 	cmp  %o0, %g1                                  
 20056ac:	08 bf ff f4 	bleu  200567c <rtems_termios_read+0x3ac>       
 20056b0:	80 a6 a0 00 	cmp  %i2, 0                                    
 20056b4:	30 bf ff 29 	b,a   2005358 <rtems_termios_read+0x88>        
                                                                      
  if (tty->termios.c_lflag & ICANON) {                                
    for (;;) {                                                        
      n = (*tty->device.pollRead)(tty->minor);                        
      if (n < 0) {                                                    
        rtems_task_wake_after (1);                                    
 20056b8:	40 00 05 d6 	call  2006e10 <rtems_task_wake_after>          
 20056bc:	90 10 20 01 	mov  1, %o0                                    
static rtems_status_code                                              
fillBufferPoll (struct rtems_termios_tty *tty)                        
{                                                                     
  int n;                                                              
                                                                      
  if (tty->termios.c_lflag & ICANON) {                                
 20056c0:	10 bf ff c1 	b  20055c4 <rtems_termios_read+0x2f4>          
 20056c4:	c2 07 60 a0 	ld  [ %i5 + 0xa0 ], %g1                        
                                                                      

02005a74 <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) {
 2005a74:	9d e3 bf a0 	save  %sp, -96, %sp                            
  int nToSend;                                                        
  rtems_interrupt_level level;                                        
  int len;                                                            
                                                                      
  /* check for XOF/XON to send */                                     
  if ((tty->flow_ctrl & (FL_MDXOF | FL_IREQXOF | FL_ISNTXOF))         
 2005a78:	c2 06 20 b8 	ld  [ %i0 + 0xb8 ], %g1                        
 2005a7c:	82 08 64 03 	and  %g1, 0x403, %g1                           
 2005a80:	80 a0 64 01 	cmp  %g1, 0x401                                
 2005a84:	02 80 00 44 	be  2005b94 <rtems_termios_refill_transmitter+0x120><== NEVER TAKEN
 2005a88:	ba 10 00 18 	mov  %i0, %i5                                  
    tty->flow_ctrl |= FL_ISNTXOF;                                     
    rtems_interrupt_enable(level);                                    
                                                                      
    nToSend = 1;                                                      
                                                                      
  } else if ((tty->flow_ctrl & (FL_IREQXOF | FL_ISNTXOF)) == FL_ISNTXOF) {
 2005a8c:	c2 06 20 b8 	ld  [ %i0 + 0xb8 ], %g1                        
 2005a90:	82 08 60 03 	and  %g1, 3, %g1                               
 2005a94:	80 a0 60 02 	cmp  %g1, 2                                    
 2005a98:	22 80 00 50 	be,a   2005bd8 <rtems_termios_refill_transmitter+0x164><== NEVER TAKEN
 2005a9c:	c2 06 20 a4 	ld  [ %i0 + 0xa4 ], %g1                        <== NOT EXECUTED
    tty->flow_ctrl &= ~FL_ISNTXOF;                                    
    rtems_interrupt_enable(level);                                    
                                                                      
    nToSend = 1;                                                      
  } else {                                                            
    if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) {               
 2005aa0:	c4 06 20 80 	ld  [ %i0 + 0x80 ], %g2                        
 2005aa4:	c2 06 20 84 	ld  [ %i0 + 0x84 ], %g1                        
 2005aa8:	80 a0 80 01 	cmp  %g2, %g1                                  
 2005aac:	22 80 00 30 	be,a   2005b6c <rtems_termios_refill_transmitter+0xf8>
 2005ab0:	c2 06 20 94 	ld  [ %i0 + 0x94 ], %g1                        
        rtems_semaphore_release (tty->rawOutBuf.Semaphore);           
      }                                                               
      return 0;                                                       
    }                                                                 
                                                                      
    rtems_interrupt_disable(level);                                   
 2005ab4:	7f ff f1 cc 	call  20021e4 <sparc_disable_interrupts>       
 2005ab8:	01 00 00 00 	nop                                            
    len = tty->t_dqlen;                                               
 2005abc:	f8 06 20 90 	ld  [ %i0 + 0x90 ], %i4                        
    tty->t_dqlen = 0;                                                 
 2005ac0:	c0 26 20 90 	clr  [ %i0 + 0x90 ]                            
    rtems_interrupt_enable(level);                                    
 2005ac4:	7f ff f1 cc 	call  20021f4 <sparc_enable_interrupts>        
 2005ac8:	01 00 00 00 	nop                                            
                                                                      
    newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size;      
 2005acc:	d0 06 20 84 	ld  [ %i0 + 0x84 ], %o0                        
 2005ad0:	d2 06 20 88 	ld  [ %i0 + 0x88 ], %o1                        
 2005ad4:	40 00 4b d9 	call  2018a38 <.urem>                          
 2005ad8:	90 07 00 08 	add  %i4, %o0, %o0                             
    tty->rawOutBuf.Tail = newTail;                                    
    if (tty->rawOutBufState == rob_wait) {                            
 2005adc:	c2 06 20 94 	ld  [ %i0 + 0x94 ], %g1                        
    len = tty->t_dqlen;                                               
    tty->t_dqlen = 0;                                                 
    rtems_interrupt_enable(level);                                    
                                                                      
    newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size;      
    tty->rawOutBuf.Tail = newTail;                                    
 2005ae0:	d0 27 60 84 	st  %o0, [ %i5 + 0x84 ]                        
    if (tty->rawOutBufState == rob_wait) {                            
 2005ae4:	80 a0 60 02 	cmp  %g1, 2                                    
 2005ae8:	02 80 00 55 	be  2005c3c <rtems_termios_refill_transmitter+0x1c8>
 2005aec:	b8 10 00 08 	mov  %o0, %i4                                  
       * wake up any pending writer task                              
       */                                                             
      rtems_semaphore_release (tty->rawOutBuf.Semaphore);             
    }                                                                 
                                                                      
    if (newTail == tty->rawOutBuf.Head) {                             
 2005af0:	c2 07 60 80 	ld  [ %i5 + 0x80 ], %g1                        
 2005af4:	80 a0 40 1c 	cmp  %g1, %i4                                  
 2005af8:	22 80 00 48 	be,a   2005c18 <rtems_termios_refill_transmitter+0x1a4>
 2005afc:	c2 07 60 d4 	ld  [ %i5 + 0xd4 ], %g1                        
      if ( tty->tty_snd.sw_pfn != NULL) {                             
        (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg);   
      }                                                               
    }                                                                 
    /* check, whether output should stop due to received XOFF */      
    else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF))               
 2005b00:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        
 2005b04:	82 08 62 10 	and  %g1, 0x210, %g1                           
 2005b08:	80 a0 62 10 	cmp  %g1, 0x210                                
 2005b0c:	02 80 00 4f 	be  2005c48 <rtems_termios_refill_transmitter+0x1d4><== NEVER TAKEN
 2005b10:	01 00 00 00 	nop                                            
      nToSend = 0;                                                    
    } else {                                                          
      /*                                                              
       * Buffer not empty, start tranmitter                           
       */                                                             
      if (newTail > tty->rawOutBuf.Head)                              
 2005b14:	c2 07 60 80 	ld  [ %i5 + 0x80 ], %g1                        
 2005b18:	80 a7 00 01 	cmp  %i4, %g1                                  
 2005b1c:	18 80 00 1b 	bgu  2005b88 <rtems_termios_refill_transmitter+0x114>
 2005b20:	01 00 00 00 	nop                                            
        nToSend = tty->rawOutBuf.Size - newTail;                      
      else                                                            
        nToSend = tty->rawOutBuf.Head - newTail;                      
 2005b24:	f0 07 60 80 	ld  [ %i5 + 0x80 ], %i0                        
 2005b28:	b0 26 00 1c 	sub  %i0, %i4, %i0                             
      /* 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)) {                   
 2005b2c:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        
 2005b30:	80 88 66 00 	btst  0x600, %g1                               
 2005b34:	02 80 00 04 	be  2005b44 <rtems_termios_refill_transmitter+0xd0>
 2005b38:	94 10 00 18 	mov  %i0, %o2                                  
 2005b3c:	94 10 20 01 	mov  1, %o2                                    
        nToSend = 1;                                                  
 2005b40:	b0 10 20 01 	mov  1, %i0                                    
      }                                                               
      tty->rawOutBufState = rob_busy; /*apm*/                         
      (*tty->device.write)(                                           
 2005b44:	d2 07 60 7c 	ld  [ %i5 + 0x7c ], %o1                        
 2005b48:	c2 07 60 a4 	ld  [ %i5 + 0xa4 ], %g1                        
 2005b4c:	d0 07 60 10 	ld  [ %i5 + 0x10 ], %o0                        
      /* 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*/                         
 2005b50:	84 10 20 01 	mov  1, %g2                                    
      (*tty->device.write)(                                           
 2005b54:	92 02 40 1c 	add  %o1, %i4, %o1                             
 2005b58:	9f c0 40 00 	call  %g1                                      
 2005b5c:	c4 27 60 94 	st  %g2, [ %i5 + 0x94 ]                        
        tty->minor, &tty->rawOutBuf.theBuf[newTail], nToSend);        
    }                                                                 
    tty->rawOutBuf.Tail = newTail; /*apm*/                            
 2005b60:	f8 27 60 84 	st  %i4, [ %i5 + 0x84 ]                        
  }                                                                   
  return nToSend;                                                     
}                                                                     
 2005b64:	81 c7 e0 08 	ret                                            
 2005b68:	81 e8 00 00 	restore                                        
  } else {                                                            
    if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) {               
      /*                                                              
       * buffer was empty                                             
       */                                                             
      if (tty->rawOutBufState == rob_wait) {                          
 2005b6c:	80 a0 60 02 	cmp  %g1, 2                                    
 2005b70:	12 bf ff fd 	bne  2005b64 <rtems_termios_refill_transmitter+0xf0><== ALWAYS TAKEN
 2005b74:	b0 10 20 00 	clr  %i0                                       
        /*                                                            
         * this should never happen...                                
         */                                                           
        rtems_semaphore_release (tty->rawOutBuf.Semaphore);           
 2005b78:	40 00 03 bc 	call  2006a68 <rtems_semaphore_release>        <== NOT EXECUTED
 2005b7c:	d0 07 60 8c 	ld  [ %i5 + 0x8c ], %o0                        <== NOT EXECUTED
 2005b80:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 2005b84:	81 e8 00 00 	restore                                        <== NOT EXECUTED
    } else {                                                          
      /*                                                              
       * Buffer not empty, start tranmitter                           
       */                                                             
      if (newTail > tty->rawOutBuf.Head)                              
        nToSend = tty->rawOutBuf.Size - newTail;                      
 2005b88:	f0 07 60 88 	ld  [ %i5 + 0x88 ], %i0                        
 2005b8c:	10 bf ff e8 	b  2005b2c <rtems_termios_refill_transmitter+0xb8>
 2005b90:	b0 26 00 1c 	sub  %i0, %i4, %i0                             
                                                                      
  /* check for XOF/XON to send */                                     
  if ((tty->flow_ctrl & (FL_MDXOF | FL_IREQXOF | FL_ISNTXOF))         
      == (FL_MDXOF | FL_IREQXOF)) {                                   
    /* XOFF should be sent now... */                                  
    (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTOP]), 1);
 2005b94:	c2 06 20 a4 	ld  [ %i0 + 0xa4 ], %g1                        <== NOT EXECUTED
 2005b98:	d0 06 20 10 	ld  [ %i0 + 0x10 ], %o0                        <== NOT EXECUTED
 2005b9c:	92 06 20 4a 	add  %i0, 0x4a, %o1                            <== NOT EXECUTED
 2005ba0:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
 2005ba4:	94 10 20 01 	mov  1, %o2                                    <== NOT EXECUTED
                                                                      
    rtems_interrupt_disable(level);                                   
 2005ba8:	7f ff f1 8f 	call  20021e4 <sparc_disable_interrupts>       <== NOT EXECUTED
 2005bac:	01 00 00 00 	nop                                            <== NOT EXECUTED
    tty->t_dqlen--;                                                   
 2005bb0:	c4 06 20 90 	ld  [ %i0 + 0x90 ], %g2                        <== NOT EXECUTED
    tty->flow_ctrl |= FL_ISNTXOF;                                     
 2005bb4:	c2 06 20 b8 	ld  [ %i0 + 0xb8 ], %g1                        <== NOT EXECUTED
      == (FL_MDXOF | FL_IREQXOF)) {                                   
    /* XOFF should be sent now... */                                  
    (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTOP]), 1);
                                                                      
    rtems_interrupt_disable(level);                                   
    tty->t_dqlen--;                                                   
 2005bb8:	84 00 bf ff 	add  %g2, -1, %g2                              <== NOT EXECUTED
    tty->flow_ctrl |= FL_ISNTXOF;                                     
 2005bbc:	82 10 60 02 	or  %g1, 2, %g1                                <== NOT EXECUTED
     * Therefore the dequeue "length" should be reduced by 1          
     */                                                               
    (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1);
                                                                      
    rtems_interrupt_disable(level);                                   
    tty->t_dqlen--;                                                   
 2005bc0:	c4 27 60 90 	st  %g2, [ %i5 + 0x90 ]                        <== NOT EXECUTED
    tty->flow_ctrl &= ~FL_ISNTXOF;                                    
 2005bc4:	c2 27 60 b8 	st  %g1, [ %i5 + 0xb8 ]                        <== NOT EXECUTED
    rtems_interrupt_enable(level);                                    
 2005bc8:	7f ff f1 8b 	call  20021f4 <sparc_enable_interrupts>        <== NOT EXECUTED
 2005bcc:	b0 10 20 01 	mov  1, %i0                                    <== NOT EXECUTED
 2005bd0:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 2005bd4:	81 e8 00 00 	restore                                        <== 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, (void *)&(tty->termios.c_cc[VSTART]), 1);
 2005bd8:	d0 06 20 10 	ld  [ %i0 + 0x10 ], %o0                        <== NOT EXECUTED
 2005bdc:	92 06 20 49 	add  %i0, 0x49, %o1                            <== NOT EXECUTED
 2005be0:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
 2005be4:	94 10 20 01 	mov  1, %o2                                    <== NOT EXECUTED
                                                                      
    rtems_interrupt_disable(level);                                   
 2005be8:	7f ff f1 7f 	call  20021e4 <sparc_disable_interrupts>       <== NOT EXECUTED
 2005bec:	01 00 00 00 	nop                                            <== NOT EXECUTED
    tty->t_dqlen--;                                                   
 2005bf0:	c4 06 20 90 	ld  [ %i0 + 0x90 ], %g2                        <== NOT EXECUTED
    tty->flow_ctrl &= ~FL_ISNTXOF;                                    
 2005bf4:	c2 06 20 b8 	ld  [ %i0 + 0xb8 ], %g1                        <== NOT EXECUTED
     * Therefore the dequeue "length" should be reduced by 1          
     */                                                               
    (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1);
                                                                      
    rtems_interrupt_disable(level);                                   
    tty->t_dqlen--;                                                   
 2005bf8:	84 00 bf ff 	add  %g2, -1, %g2                              <== NOT EXECUTED
    tty->flow_ctrl &= ~FL_ISNTXOF;                                    
 2005bfc:	82 08 7f fd 	and  %g1, -3, %g1                              <== NOT EXECUTED
     * Therefore the dequeue "length" should be reduced by 1          
     */                                                               
    (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1);
                                                                      
    rtems_interrupt_disable(level);                                   
    tty->t_dqlen--;                                                   
 2005c00:	c4 27 60 90 	st  %g2, [ %i5 + 0x90 ]                        <== NOT EXECUTED
    tty->flow_ctrl &= ~FL_ISNTXOF;                                    
 2005c04:	c2 27 60 b8 	st  %g1, [ %i5 + 0xb8 ]                        <== NOT EXECUTED
    rtems_interrupt_enable(level);                                    
 2005c08:	7f ff f1 7b 	call  20021f4 <sparc_enable_interrupts>        <== NOT EXECUTED
 2005c0c:	b0 10 20 01 	mov  1, %i0                                    <== NOT EXECUTED
 2005c10:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 2005c14:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      
    if (newTail == tty->rawOutBuf.Head) {                             
      /*                                                              
       * Buffer has become empty                                      
       */                                                             
      tty->rawOutBufState = rob_idle;                                 
 2005c18:	c0 27 60 94 	clr  [ %i5 + 0x94 ]                            
      nToSend = 0;                                                    
                                                                      
      /*                                                              
       * check to see if snd wakeup callback was set                  
       */                                                             
      if ( tty->tty_snd.sw_pfn != NULL) {                             
 2005c1c:	80 a0 60 00 	cmp  %g1, 0                                    
 2005c20:	02 bf ff d0 	be  2005b60 <rtems_termios_refill_transmitter+0xec><== ALWAYS TAKEN
 2005c24:	b0 10 20 00 	clr  %i0                                       
        (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg);   
 2005c28:	d2 07 60 d8 	ld  [ %i5 + 0xd8 ], %o1                        <== NOT EXECUTED
 2005c2c:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
 2005c30:	90 07 60 30 	add  %i5, 0x30, %o0                            <== NOT EXECUTED
      }                                                               
      tty->rawOutBufState = rob_busy; /*apm*/                         
      (*tty->device.write)(                                           
        tty->minor, &tty->rawOutBuf.theBuf[newTail], nToSend);        
    }                                                                 
    tty->rawOutBuf.Tail = newTail; /*apm*/                            
 2005c34:	f8 27 60 84 	st  %i4, [ %i5 + 0x84 ]                        <== NOT EXECUTED
 2005c38:	30 bf ff f6 	b,a   2005c10 <rtems_termios_refill_transmitter+0x19c><== NOT EXECUTED
    tty->rawOutBuf.Tail = newTail;                                    
    if (tty->rawOutBufState == rob_wait) {                            
      /*                                                              
       * wake up any pending writer task                              
       */                                                             
      rtems_semaphore_release (tty->rawOutBuf.Semaphore);             
 2005c3c:	40 00 03 8b 	call  2006a68 <rtems_semaphore_release>        
 2005c40:	d0 06 20 8c 	ld  [ %i0 + 0x8c ], %o0                        
 2005c44:	30 bf ff ab 	b,a   2005af0 <rtems_termios_refill_transmitter+0x7c>
    /* check, whether output should stop due to received XOFF */      
    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);                                 
 2005c48:	7f ff f1 67 	call  20021e4 <sparc_disable_interrupts>       <== NOT EXECUTED
 2005c4c:	01 00 00 00 	nop                                            <== NOT EXECUTED
      tty->flow_ctrl |= FL_OSTOP;                                     
 2005c50:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        <== NOT EXECUTED
      tty->rawOutBufState = rob_busy; /*apm*/                         
 2005c54:	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;                                     
 2005c58:	82 10 60 20 	or  %g1, 0x20, %g1                             <== NOT EXECUTED
      tty->rawOutBufState = rob_busy; /*apm*/                         
 2005c5c:	c4 27 60 94 	st  %g2, [ %i5 + 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;                                     
 2005c60:	c2 27 60 b8 	st  %g1, [ %i5 + 0xb8 ]                        <== NOT EXECUTED
      tty->rawOutBufState = rob_busy; /*apm*/                         
      rtems_interrupt_enable(level);                                  
 2005c64:	7f ff f1 64 	call  20021f4 <sparc_enable_interrupts>        <== NOT EXECUTED
 2005c68:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
      }                                                               
      tty->rawOutBufState = rob_busy; /*apm*/                         
      (*tty->device.write)(                                           
        tty->minor, &tty->rawOutBuf.theBuf[newTail], nToSend);        
    }                                                                 
    tty->rawOutBuf.Tail = newTail; /*apm*/                            
 2005c6c:	f8 27 60 84 	st  %i4, [ %i5 + 0x84 ]                        <== NOT EXECUTED
 2005c70:	30 bf ff e8 	b,a   2005c10 <rtems_termios_refill_transmitter+0x19c><== NOT EXECUTED
                                                                      

020059f0 <rtems_termios_rxdaemon>: /* * this task actually processes any receive events */ static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument) {
 20059f0:	9d e3 bf 98 	save  %sp, -104, %sp                           
                                                                      
  while (1) {                                                         
    /*                                                                
     * wait for rtems event                                           
     */                                                               
    rtems_event_receive(                                              
 20059f4:	10 80 00 08 	b  2005a14 <rtems_termios_rxdaemon+0x24>       
 20059f8:	96 07 bf f8 	add  %fp, -8, %o3                              
    }                                                                 
                                                                      
    /*                                                                
     * do something                                                   
     */                                                               
    c = tty->device.pollRead(tty->minor);                             
 20059fc:	9f c0 40 00 	call  %g1                                      
 2005a00:	d0 06 20 10 	ld  [ %i0 + 0x10 ], %o0                        
    if (c != EOF) {                                                   
 2005a04:	80 a2 3f ff 	cmp  %o0, -1                                   
 2005a08:	32 80 00 15 	bne,a   2005a5c <rtems_termios_rxdaemon+0x6c>  
 2005a0c:	d0 2f bf ff 	stb  %o0, [ %fp + -1 ]                         
                                                                      
  while (1) {                                                         
    /*                                                                
     * wait for rtems event                                           
     */                                                               
    rtems_event_receive(                                              
 2005a10:	96 07 bf f8 	add  %fp, -8, %o3                              
 2005a14:	92 10 20 02 	mov  2, %o1                                    
 2005a18:	94 10 20 00 	clr  %o2                                       
 2005a1c:	40 00 02 27 	call  20062b8 <rtems_event_receive>            
 2005a20:	90 10 20 03 	mov  3, %o0                                    
      (TERMIOS_RX_PROC_EVENT | TERMIOS_RX_TERMINATE_EVENT),           
      RTEMS_EVENT_ANY | RTEMS_WAIT,                                   
      RTEMS_NO_TIMEOUT,                                               
      &the_event                                                      
    );                                                                
    if ((the_event & TERMIOS_RX_TERMINATE_EVENT) != 0) {              
 2005a24:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
 2005a28:	80 88 60 01 	btst  1, %g1                                   
 2005a2c:	22 bf ff f4 	be,a   20059fc <rtems_termios_rxdaemon+0xc>    <== ALWAYS TAKEN
 2005a30:	c2 06 20 a0 	ld  [ %i0 + 0xa0 ], %g1                        
      tty->rxTaskId = 0;                                              
 2005a34:	c0 26 20 c4 	clr  [ %i0 + 0xc4 ]                            <== NOT EXECUTED
      rtems_task_delete(RTEMS_SELF);                                  
 2005a38:	40 00 04 81 	call  2006c3c <rtems_task_delete>              <== NOT EXECUTED
 2005a3c:	90 10 20 00 	clr  %o0                                       <== NOT EXECUTED
    }                                                                 
                                                                      
    /*                                                                
     * do something                                                   
     */                                                               
    c = tty->device.pollRead(tty->minor);                             
 2005a40:	c2 06 20 a0 	ld  [ %i0 + 0xa0 ], %g1                        <== NOT EXECUTED
 2005a44:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
 2005a48:	d0 06 20 10 	ld  [ %i0 + 0x10 ], %o0                        <== NOT EXECUTED
    if (c != EOF) {                                                   
 2005a4c:	80 a2 3f ff 	cmp  %o0, -1                                   <== NOT EXECUTED
 2005a50:	22 bf ff f1 	be,a   2005a14 <rtems_termios_rxdaemon+0x24>   <== NOT EXECUTED
 2005a54:	96 07 bf f8 	add  %fp, -8, %o3                              <== NOT EXECUTED
      /*                                                              
       * pollRead did call enqueue on its own                         
       */                                                             
      c_buf = c;                                                      
 2005a58:	d0 2f bf ff 	stb  %o0, [ %fp + -1 ]                         <== NOT EXECUTED
      rtems_termios_enqueue_raw_characters ( tty,&c_buf,1);           
 2005a5c:	92 07 bf ff 	add  %fp, -1, %o1                              
 2005a60:	90 10 00 18 	mov  %i0, %o0                                  
 2005a64:	7f ff ff 1e 	call  20056dc <rtems_termios_enqueue_raw_characters>
 2005a68:	94 10 20 01 	mov  1, %o2                                    
                                                                      
  while (1) {                                                         
    /*                                                                
     * wait for rtems event                                           
     */                                                               
    rtems_event_receive(                                              
 2005a6c:	10 bf ff ea 	b  2005a14 <rtems_termios_rxdaemon+0x24>       
 2005a70:	96 07 bf f8 	add  %fp, -8, %o3                              
                                                                      

02005c74 <rtems_termios_txdaemon>: /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) {
 2005c74:	9d e3 bf 98 	save  %sp, -104, %sp                           
 2005c78:	3b 00 80 75 	sethi  %hi(0x201d400), %i5                     
 2005c7c:	10 80 00 0c 	b  2005cac <rtems_termios_txdaemon+0x38>       
 2005c80:	ba 17 61 80 	or  %i5, 0x180, %i5	! 201d580 <rtems_termios_linesw>
    }                                                                 
                                                                      
    /*                                                                
     * call any line discipline start function                        
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_start != NULL) {          
 2005c84:	83 28 60 05 	sll  %g1, 5, %g1                               
 2005c88:	82 07 40 01 	add  %i5, %g1, %g1                             
 2005c8c:	c2 00 60 14 	ld  [ %g1 + 0x14 ], %g1                        
 2005c90:	80 a0 60 00 	cmp  %g1, 0                                    
 2005c94:	02 80 00 04 	be  2005ca4 <rtems_termios_txdaemon+0x30>      <== ALWAYS TAKEN
 2005c98:	90 10 00 18 	mov  %i0, %o0                                  
      rtems_termios_linesw[tty->t_line].l_start(tty);                 
 2005c9c:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
 2005ca0:	01 00 00 00 	nop                                            <== NOT EXECUTED
    }                                                                 
                                                                      
    /*                                                                
     * try to push further characters to device                       
     */                                                               
    rtems_termios_refill_transmitter(tty);                            
 2005ca4:	7f ff ff 74 	call  2005a74 <rtems_termios_refill_transmitter>
 2005ca8:	90 10 00 18 	mov  %i0, %o0                                  
                                                                      
  while (1) {                                                         
    /*                                                                
     * wait for rtems event                                           
     */                                                               
    rtems_event_receive(                                              
 2005cac:	92 10 20 02 	mov  2, %o1                                    
 2005cb0:	94 10 20 00 	clr  %o2                                       
 2005cb4:	96 07 bf fc 	add  %fp, -4, %o3                              
 2005cb8:	40 00 01 80 	call  20062b8 <rtems_event_receive>            
 2005cbc:	90 10 20 03 	mov  3, %o0                                    
       (TERMIOS_TX_START_EVENT | TERMIOS_TX_TERMINATE_EVENT),         
       RTEMS_EVENT_ANY | RTEMS_WAIT,                                  
       RTEMS_NO_TIMEOUT,                                              
       &the_event                                                     
    );                                                                
    if ((the_event & TERMIOS_TX_TERMINATE_EVENT) != 0) {              
 2005cc0:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 2005cc4:	80 88 60 01 	btst  1, %g1                                   
 2005cc8:	22 bf ff ef 	be,a   2005c84 <rtems_termios_txdaemon+0x10>   <== ALWAYS TAKEN
 2005ccc:	c2 06 20 cc 	ld  [ %i0 + 0xcc ], %g1                        
      tty->txTaskId = 0;                                              
 2005cd0:	c0 26 20 c8 	clr  [ %i0 + 0xc8 ]                            <== NOT EXECUTED
      rtems_task_delete(RTEMS_SELF);                                  
 2005cd4:	40 00 03 da 	call  2006c3c <rtems_task_delete>              <== NOT EXECUTED
 2005cd8:	90 10 20 00 	clr  %o0                                       <== NOT EXECUTED
    }                                                                 
                                                                      
    /*                                                                
     * call any line discipline start function                        
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_start != NULL) {          
 2005cdc:	10 bf ff ea 	b  2005c84 <rtems_termios_txdaemon+0x10>       <== NOT EXECUTED
 2005ce0:	c2 06 20 cc 	ld  [ %i0 + 0xcc ], %g1                        <== NOT EXECUTED
                                                                      

02005204 <rtems_termios_write>: rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) {
 2005204:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_libio_rw_args_t *args = arg;                                  
  struct rtems_termios_tty *tty = args->iop->data1;                   
 2005208:	c2 06 00 00 	ld  [ %i0 ], %g1                               
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
 200520c:	92 10 20 00 	clr  %o1                                       
                                                                      
rtems_status_code                                                     
rtems_termios_write (void *arg)                                       
{                                                                     
  rtems_libio_rw_args_t *args = arg;                                  
  struct rtems_termios_tty *tty = args->iop->data1;                   
 2005210:	fa 00 60 38 	ld  [ %g1 + 0x38 ], %i5                        
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
 2005214:	94 10 20 00 	clr  %o2                                       
 2005218:	40 00 05 ca 	call  2006940 <rtems_semaphore_obtain>         
 200521c:	d0 07 60 18 	ld  [ %i5 + 0x18 ], %o0                        
  if (sc != RTEMS_SUCCESSFUL)                                         
 2005220:	b8 92 20 00 	orcc  %o0, 0, %i4                              
 2005224:	12 80 00 0f 	bne  2005260 <rtems_termios_write+0x5c>        <== NEVER TAKEN
 2005228:	03 00 80 75 	sethi  %hi(0x201d400), %g1                     
    return sc;                                                        
  if (rtems_termios_linesw[tty->t_line].l_write != NULL) {            
 200522c:	c4 07 60 cc 	ld  [ %i5 + 0xcc ], %g2                        
 2005230:	85 28 a0 05 	sll  %g2, 5, %g2                               
 2005234:	82 10 61 80 	or  %g1, 0x180, %g1                            
 2005238:	82 00 40 02 	add  %g1, %g2, %g1                             
 200523c:	c2 00 60 0c 	ld  [ %g1 + 0xc ], %g1                         
 2005240:	80 a0 60 00 	cmp  %g1, 0                                    
 2005244:	02 80 00 09 	be  2005268 <rtems_termios_write+0x64>         
 2005248:	90 10 00 1d 	mov  %i5, %o0                                  
    sc = rtems_termios_linesw[tty->t_line].l_write(tty,args);         
 200524c:	9f c0 40 00 	call  %g1                                      
 2005250:	92 10 00 18 	mov  %i0, %o1                                  
 2005254:	b8 10 00 08 	mov  %o0, %i4                                  
    rtems_semaphore_release (tty->osem);                              
 2005258:	40 00 06 04 	call  2006a68 <rtems_semaphore_release>        
 200525c:	d0 07 60 18 	ld  [ %i5 + 0x18 ], %o0                        
    rtems_termios_puts (args->buffer, args->count, tty);              
    args->bytes_moved = args->count;                                  
  }                                                                   
  rtems_semaphore_release (tty->osem);                                
  return sc;                                                          
}                                                                     
 2005260:	81 c7 e0 08 	ret                                            
 2005264:	91 e8 00 1c 	restore  %g0, %i4, %o0                         
  if (rtems_termios_linesw[tty->t_line].l_write != NULL) {            
    sc = rtems_termios_linesw[tty->t_line].l_write(tty,args);         
    rtems_semaphore_release (tty->osem);                              
    return sc;                                                        
  }                                                                   
  if (tty->termios.c_oflag & OPOST) {                                 
 2005268:	c2 07 60 34 	ld  [ %i5 + 0x34 ], %g1                        
 200526c:	80 88 60 01 	btst  1, %g1                                   
 2005270:	22 80 00 14 	be,a   20052c0 <rtems_termios_write+0xbc>      <== NEVER TAKEN
 2005274:	d0 1e 20 10 	ldd  [ %i0 + 0x10 ], %o0                       <== NOT EXECUTED
    uint32_t   count = args->count;                                   
    char      *buffer = args->buffer;                                 
 2005278:	f4 1e 20 10 	ldd  [ %i0 + 0x10 ], %i2                       
    while (count--)                                                   
 200527c:	80 a6 e0 00 	cmp  %i3, 0                                    
 2005280:	02 80 00 0a 	be  20052a8 <rtems_termios_write+0xa4>         <== NEVER TAKEN
 2005284:	82 10 20 00 	clr  %g1                                       
      oproc (*buffer++, tty);                                         
 2005288:	d0 0e 80 00 	ldub  [ %i2 ], %o0                             
 200528c:	92 10 00 1d 	mov  %i5, %o1                                  
 2005290:	7f ff fe 3c 	call  2004b80 <oproc>                          
 2005294:	90 0a 20 ff 	and  %o0, 0xff, %o0                            
    return sc;                                                        
  }                                                                   
  if (tty->termios.c_oflag & OPOST) {                                 
    uint32_t   count = args->count;                                   
    char      *buffer = args->buffer;                                 
    while (count--)                                                   
 2005298:	b6 86 ff ff 	addcc  %i3, -1, %i3                            
 200529c:	12 bf ff fb 	bne  2005288 <rtems_termios_write+0x84>        
 20052a0:	b4 06 a0 01 	inc  %i2                                       
      oproc (*buffer++, tty);                                         
    args->bytes_moved = args->count;                                  
  } else {                                                            
    rtems_termios_puts (args->buffer, args->count, tty);              
    args->bytes_moved = args->count;                                  
 20052a4:	c2 06 20 14 	ld  [ %i0 + 0x14 ], %g1                        
  }                                                                   
  rtems_semaphore_release (tty->osem);                                
 20052a8:	d0 07 60 18 	ld  [ %i5 + 0x18 ], %o0                        
    while (count--)                                                   
      oproc (*buffer++, tty);                                         
    args->bytes_moved = args->count;                                  
  } else {                                                            
    rtems_termios_puts (args->buffer, args->count, tty);              
    args->bytes_moved = args->count;                                  
 20052ac:	c2 26 20 1c 	st  %g1, [ %i0 + 0x1c ]                        
  }                                                                   
  rtems_semaphore_release (tty->osem);                                
 20052b0:	40 00 05 ee 	call  2006a68 <rtems_semaphore_release>        
 20052b4:	b0 10 00 1c 	mov  %i4, %i0                                  
  return sc;                                                          
}                                                                     
 20052b8:	81 c7 e0 08 	ret                                            
 20052bc:	81 e8 00 00 	restore                                        
    char      *buffer = args->buffer;                                 
    while (count--)                                                   
      oproc (*buffer++, tty);                                         
    args->bytes_moved = args->count;                                  
  } else {                                                            
    rtems_termios_puts (args->buffer, args->count, tty);              
 20052c0:	7f ff fd e0 	call  2004a40 <rtems_termios_puts>             <== NOT EXECUTED
 20052c4:	94 10 00 1d 	mov  %i5, %o2                                  <== NOT EXECUTED
    args->bytes_moved = args->count;                                  
 20052c8:	10 bf ff f8 	b  20052a8 <rtems_termios_write+0xa4>          <== NOT EXECUTED
 20052cc:	c2 06 20 14 	ld  [ %i0 + 0x14 ], %g1                        <== NOT EXECUTED
                                                                      

02015dd8 <rtems_timer_cancel>: */ rtems_status_code rtems_timer_cancel( rtems_id id ) {
 2015dd8:	9d e3 bf 98 	save  %sp, -104, %sp                           
RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get (                      
  Objects_Id         id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (Timer_Control *)                                            
 2015ddc:	11 00 80 ef 	sethi  %hi(0x203bc00), %o0                     
 2015de0:	92 10 00 18 	mov  %i0, %o1                                  
 2015de4:	90 12 23 e4 	or  %o0, 0x3e4, %o0                            
 2015de8:	40 00 0c c4 	call  20190f8 <_Objects_Get>                   
 2015dec:	94 07 bf fc 	add  %fp, -4, %o2                              
  Timer_Control   *the_timer;                                         
  Objects_Locations       location;                                   
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  switch ( location ) {                                               
 2015df0:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 2015df4:	80 a0 60 00 	cmp  %g1, 0                                    
 2015df8:	12 80 00 0c 	bne  2015e28 <rtems_timer_cancel+0x50>         
 2015dfc:	01 00 00 00 	nop                                            
                                                                      
    case OBJECTS_LOCAL:                                               
      if ( !_Timer_Is_dormant_class( the_timer->the_class ) )         
 2015e00:	c2 02 20 38 	ld  [ %o0 + 0x38 ], %g1                        
 2015e04:	80 a0 60 04 	cmp  %g1, 4                                    
 2015e08:	02 80 00 04 	be  2015e18 <rtems_timer_cancel+0x40>          <== NEVER TAKEN
 2015e0c:	01 00 00 00 	nop                                            
        (void) _Watchdog_Remove( &the_timer->Ticker );                
 2015e10:	40 00 15 8f 	call  201b44c <_Watchdog_Remove>               
 2015e14:	90 02 20 10 	add  %o0, 0x10, %o0                            
      _Thread_Enable_dispatch();                                      
 2015e18:	40 00 10 af 	call  201a0d4 <_Thread_Enable_dispatch>        
 2015e1c:	b0 10 20 00 	clr  %i0                                       
      return RTEMS_SUCCESSFUL;                                        
 2015e20:	81 c7 e0 08 	ret                                            
 2015e24:	81 e8 00 00 	restore                                        
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 2015e28:	81 c7 e0 08 	ret                                            
 2015e2c:	91 e8 20 04 	restore  %g0, 4, %o0                           
                                                                      

02016300 <rtems_timer_server_fire_when>: rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) {
 2016300:	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;                 
 2016304:	03 00 80 f0 	sethi  %hi(0x203c000), %g1                     
 2016308:	fa 00 60 24 	ld  [ %g1 + 0x24 ], %i5	! 203c024 <_Timer_server>
  rtems_id                           id,                              
  rtems_time_of_day                  *wall_time,                      
  rtems_timer_service_routine_entry  routine,                         
  void                              *user_data                        
)                                                                     
{                                                                     
 201630c:	b8 10 00 18 	mov  %i0, %i4                                  
  Timer_Control        *the_timer;                                    
  Objects_Locations     location;                                     
  rtems_interval        seconds;                                      
  Timer_server_Control *timer_server = _Timer_server;                 
                                                                      
  if ( !timer_server )                                                
 2016310:	80 a7 60 00 	cmp  %i5, 0                                    
 2016314:	02 80 00 32 	be  20163dc <rtems_timer_server_fire_when+0xdc>
 2016318:	b0 10 20 0e 	mov  0xe, %i0                                  
    return RTEMS_INCORRECT_STATE;                                     
                                                                      
  if ( !_TOD_Is_set )                                                 
 201631c:	03 00 80 ed 	sethi  %hi(0x203b400), %g1                     
 2016320:	c2 08 62 70 	ldub  [ %g1 + 0x270 ], %g1	! 203b670 <_TOD_Is_set>
 2016324:	80 a0 60 00 	cmp  %g1, 0                                    
 2016328:	02 80 00 2d 	be  20163dc <rtems_timer_server_fire_when+0xdc><== NEVER TAKEN
 201632c:	b0 10 20 0b 	mov  0xb, %i0                                  
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( !routine )                                                     
 2016330:	80 a6 a0 00 	cmp  %i2, 0                                    
 2016334:	02 80 00 2a 	be  20163dc <rtems_timer_server_fire_when+0xdc>
 2016338:	b0 10 20 09 	mov  9, %i0                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !_TOD_Validate( wall_time ) )                                  
 201633c:	90 10 00 19 	mov  %i1, %o0                                  
 2016340:	7f ff f3 d5 	call  2013294 <_TOD_Validate>                  
 2016344:	b0 10 20 14 	mov  0x14, %i0                                 
 2016348:	80 8a 20 ff 	btst  0xff, %o0                                
 201634c:	02 80 00 24 	be  20163dc <rtems_timer_server_fire_when+0xdc>
 2016350:	01 00 00 00 	nop                                            
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  seconds = _TOD_To_seconds( wall_time );                             
 2016354:	7f ff f3 9c 	call  20131c4 <_TOD_To_seconds>                
 2016358:	90 10 00 19 	mov  %i1, %o0                                  
  if ( seconds <= _TOD_Seconds_since_epoch() )                        
 201635c:	21 00 80 ed 	sethi  %hi(0x203b400), %l0                     
 2016360:	c2 04 22 ec 	ld  [ %l0 + 0x2ec ], %g1	! 203b6ec <_TOD_Now>  
 2016364:	80 a2 00 01 	cmp  %o0, %g1                                  
 2016368:	08 80 00 1d 	bleu  20163dc <rtems_timer_server_fire_when+0xdc>
 201636c:	b2 10 00 08 	mov  %o0, %i1                                  
 2016370:	92 10 00 1c 	mov  %i4, %o1                                  
 2016374:	11 00 80 ef 	sethi  %hi(0x203bc00), %o0                     
 2016378:	94 07 bf fc 	add  %fp, -4, %o2                              
 201637c:	40 00 0b 5f 	call  20190f8 <_Objects_Get>                   
 2016380:	90 12 23 e4 	or  %o0, 0x3e4, %o0                            
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  switch ( location ) {                                               
 2016384:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 2016388:	80 a0 60 00 	cmp  %g1, 0                                    
 201638c:	12 80 00 16 	bne  20163e4 <rtems_timer_server_fire_when+0xe4>
 2016390:	b0 10 00 08 	mov  %o0, %i0                                  
                                                                      
    case OBJECTS_LOCAL:                                               
      (void) _Watchdog_Remove( &the_timer->Ticker );                  
 2016394:	40 00 14 2e 	call  201b44c <_Watchdog_Remove>               
 2016398:	90 02 20 10 	add  %o0, 0x10, %o0                            
      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();
 201639c:	c4 04 22 ec 	ld  [ %l0 + 0x2ec ], %g2                       
                                                                      
      (*timer_server->schedule_operation)( timer_server, the_timer ); 
 20163a0:	c2 07 60 04 	ld  [ %i5 + 4 ], %g1                           
 20163a4:	92 10 00 18 	mov  %i0, %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();
 20163a8:	b2 26 40 02 	sub  %i1, %g2, %i1                             
                                                                      
      (*timer_server->schedule_operation)( timer_server, the_timer ); 
 20163ac:	90 10 00 1d 	mov  %i5, %o0                                  
  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;               
 20163b0:	84 10 20 03 	mov  3, %g2                                    
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
 20163b4:	f4 26 20 2c 	st  %i2, [ %i0 + 0x2c ]                        
 20163b8:	c4 26 20 38 	st  %g2, [ %i0 + 0x38 ]                        
  the_watchdog->id        = id;                                       
 20163bc:	f8 26 20 30 	st  %i4, [ %i0 + 0x30 ]                        
  the_watchdog->user_data = user_data;                                
 20163c0:	f6 26 20 34 	st  %i3, [ %i0 + 0x34 ]                        
      _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
      the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch();
 20163c4:	f2 26 20 1c 	st  %i1, [ %i0 + 0x1c ]                        
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
 20163c8:	c0 26 20 18 	clr  [ %i0 + 0x18 ]                            
                                                                      
      (*timer_server->schedule_operation)( timer_server, the_timer ); 
 20163cc:	9f c0 40 00 	call  %g1                                      
 20163d0:	b0 10 20 00 	clr  %i0                                       
                                                                      
      _Thread_Enable_dispatch();                                      
 20163d4:	40 00 0f 40 	call  201a0d4 <_Thread_Enable_dispatch>        
 20163d8:	01 00 00 00 	nop                                            
      return RTEMS_SUCCESSFUL;                                        
 20163dc:	81 c7 e0 08 	ret                                            
 20163e0:	81 e8 00 00 	restore                                        
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 20163e4:	81 c7 e0 08 	ret                                            
 20163e8:	91 e8 20 04 	restore  %g0, 4, %o0                           
                                                                      

02002b48 <rtems_verror>: static int rtems_verror( rtems_error_code_t error_flag, const char *printf_format, va_list arglist ) {
 2002b48:	9d e3 bf a0 	save  %sp, -96, %sp                            
  int               local_errno = 0;                                  
  int               chars_written = 0;                                
  rtems_status_code status;                                           
                                                                      
  if (error_flag & RTEMS_ERROR_PANIC) {                               
 2002b4c:	03 08 00 00 	sethi  %hi(0x20000000), %g1                    
 2002b50:	80 8e 00 01 	btst  %i0, %g1                                 
 2002b54:	02 80 00 11 	be  2002b98 <rtems_verror+0x50>                
 2002b58:	b8 10 00 18 	mov  %i0, %i4                                  
    if (rtems_panic_in_progress++)                                    
 2002b5c:	05 00 80 76 	sethi  %hi(0x201d800), %g2                     
 2002b60:	c6 00 a0 00 	ld  [ %g2 ], %g3                               
 2002b64:	82 00 e0 01 	add  %g3, 1, %g1                               
 2002b68:	80 a0 e0 00 	cmp  %g3, 0                                    
 2002b6c:	02 80 00 08 	be  2002b8c <rtems_verror+0x44>                <== ALWAYS TAKEN
 2002b70:	c2 20 a0 00 	st  %g1, [ %g2 ]                               
   *                                                                  
   * This rountine increments the thread dispatch level               
   */                                                                 
  RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
  {                                                                   
    _Thread_Dispatch_disable_level++;                                 
 2002b74:	03 00 80 76 	sethi  %hi(0x201d800), %g1                     <== NOT EXECUTED
 2002b78:	c6 00 61 d0 	ld  [ %g1 + 0x1d0 ], %g3	! 201d9d0 <_Thread_Dispatch_disable_level><== NOT EXECUTED
 2002b7c:	86 00 e0 01 	inc  %g3                                       <== NOT EXECUTED
 2002b80:	c6 20 61 d0 	st  %g3, [ %g1 + 0x1d0 ]                       <== NOT EXECUTED
    return _Thread_Dispatch_disable_level;                            
 2002b84:	c2 00 61 d0 	ld  [ %g1 + 0x1d0 ], %g1                       <== NOT EXECUTED
void _Thread_Disable_dispatch( void );                                
#else                                                                 
RTEMS_INLINE_ROUTINE void _Thread_Disable_dispatch( void )            
{                                                                     
  _Thread_Dispatch_increment_disable_level();                         
  RTEMS_COMPILER_MEMORY_BARRIER();                                    
 2002b88:	c2 00 a0 00 	ld  [ %g2 ], %g1                               <== NOT EXECUTED
      _Thread_Disable_dispatch();       /* disable task switches */   
                                                                      
    /* don't aggravate things */                                      
    if (rtems_panic_in_progress > 2)                                  
 2002b8c:	80 a0 60 02 	cmp  %g1, 2                                    
 2002b90:	14 80 00 2f 	bg  2002c4c <rtems_verror+0x104>               <== NEVER TAKEN
 2002b94:	b0 10 20 00 	clr  %i0                                       
      return 0;                                                       
  }                                                                   
                                                                      
  (void) fflush(stdout);            /* in case stdout/stderr same */  
 2002b98:	3b 00 80 74 	sethi  %hi(0x201d000), %i5                     
 2002b9c:	c2 07 60 38 	ld  [ %i5 + 0x38 ], %g1	! 201d038 <_impure_ptr>
                                                                      
  status = error_flag & ~RTEMS_ERROR_MASK;                            
 2002ba0:	21 1c 00 00 	sethi  %hi(0x70000000), %l0                    
    /* don't aggravate things */                                      
    if (rtems_panic_in_progress > 2)                                  
      return 0;                                                       
  }                                                                   
                                                                      
  (void) fflush(stdout);            /* in case stdout/stderr same */  
 2002ba4:	d0 00 60 08 	ld  [ %g1 + 8 ], %o0                           
 2002ba8:	40 00 34 8e 	call  200fde0 <fflush>                         
 2002bac:	b6 10 20 00 	clr  %i3                                       
                                                                      
  status = error_flag & ~RTEMS_ERROR_MASK;                            
  if (error_flag & RTEMS_ERROR_ERRNO)     /* include errno? */        
 2002bb0:	03 10 00 00 	sethi  %hi(0x40000000), %g1                    
 2002bb4:	80 8f 00 01 	btst  %i4, %g1                                 
 2002bb8:	12 80 00 33 	bne  2002c84 <rtems_verror+0x13c>              
 2002bbc:	a0 2f 00 10 	andn  %i4, %l0, %l0                            
  #if defined(RTEMS_MULTIPROCESSING)                                  
    if (_System_state_Is_multiprocessing)                             
      fprintf(stderr, "[%" PRIu32 "] ", _Configuration_MP_table->node);
  #endif                                                              
                                                                      
  chars_written += vfprintf(stderr, printf_format, arglist);          
 2002bc0:	c2 07 60 38 	ld  [ %i5 + 0x38 ], %g1                        
 2002bc4:	92 10 00 19 	mov  %i1, %o1                                  
 2002bc8:	d0 00 60 0c 	ld  [ %g1 + 0xc ], %o0                         
 2002bcc:	40 00 48 92 	call  2014e14 <vfprintf>                       
 2002bd0:	94 10 00 1a 	mov  %i2, %o2                                  
                                                                      
  if (status)                                                         
 2002bd4:	80 a4 20 00 	cmp  %l0, 0                                    
 2002bd8:	12 80 00 1f 	bne  2002c54 <rtems_verror+0x10c>              
 2002bdc:	b0 10 00 08 	mov  %o0, %i0                                  
    chars_written +=                                                  
      fprintf(stderr, " (status: %s)", rtems_status_text(status));    
                                                                      
  if (local_errno) {                                                  
 2002be0:	80 a6 e0 00 	cmp  %i3, 0                                    
 2002be4:	02 80 00 12 	be  2002c2c <rtems_verror+0xe4>                
 2002be8:	c2 07 60 38 	ld  [ %i5 + 0x38 ], %g1                        
    if ((local_errno > 0) && *strerror(local_errno))                  
 2002bec:	80 a6 e0 00 	cmp  %i3, 0                                    
 2002bf0:	04 80 00 09 	ble  2002c14 <rtems_verror+0xcc>               
 2002bf4:	13 00 80 6c 	sethi  %hi(0x201b000), %o1                     
 2002bf8:	40 00 38 fa 	call  2010fe0 <strerror>                       
 2002bfc:	90 10 00 1b 	mov  %i3, %o0                                  
 2002c00:	c2 4a 00 00 	ldsb  [ %o0 ], %g1                             
 2002c04:	80 a0 60 00 	cmp  %g1, 0                                    
 2002c08:	12 80 00 23 	bne  2002c94 <rtems_verror+0x14c>              <== ALWAYS TAKEN
 2002c0c:	c2 07 60 38 	ld  [ %i5 + 0x38 ], %g1                        
      chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
    else                                                              
      chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno);
 2002c10:	13 00 80 6c 	sethi  %hi(0x201b000), %o1                     <== NOT EXECUTED
 2002c14:	d0 00 60 0c 	ld  [ %g1 + 0xc ], %o0                         
 2002c18:	92 12 63 50 	or  %o1, 0x350, %o1                            
 2002c1c:	40 00 35 6a 	call  20101c4 <fprintf>                        
 2002c20:	94 10 00 1b 	mov  %i3, %o2                                  
 2002c24:	b0 06 00 08 	add  %i0, %o0, %i0                             
  }                                                                   
                                                                      
  chars_written += fprintf(stderr, "\n");                             
 2002c28:	c2 07 60 38 	ld  [ %i5 + 0x38 ], %g1                        
 2002c2c:	13 00 80 6c 	sethi  %hi(0x201b000), %o1                     
 2002c30:	d0 00 60 0c 	ld  [ %g1 + 0xc ], %o0                         
 2002c34:	40 00 35 64 	call  20101c4 <fprintf>                        
 2002c38:	92 12 61 d8 	or  %o1, 0x1d8, %o1                            
                                                                      
  (void) fflush(stderr);                                              
 2002c3c:	c2 07 60 38 	ld  [ %i5 + 0x38 ], %g1                        
      chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
    else                                                              
      chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno);
  }                                                                   
                                                                      
  chars_written += fprintf(stderr, "\n");                             
 2002c40:	b0 02 00 18 	add  %o0, %i0, %i0                             
                                                                      
  (void) fflush(stderr);                                              
 2002c44:	40 00 34 67 	call  200fde0 <fflush>                         
 2002c48:	d0 00 60 0c 	ld  [ %g1 + 0xc ], %o0                         
                                                                      
  return chars_written;                                               
}                                                                     
 2002c4c:	81 c7 e0 08 	ret                                            
 2002c50:	81 e8 00 00 	restore                                        
                                                                      
  chars_written += vfprintf(stderr, printf_format, arglist);          
                                                                      
  if (status)                                                         
    chars_written +=                                                  
      fprintf(stderr, " (status: %s)", rtems_status_text(status));    
 2002c54:	03 00 80 74 	sethi  %hi(0x201d000), %g1                     
 2002c58:	c2 00 60 38 	ld  [ %g1 + 0x38 ], %g1	! 201d038 <_impure_ptr>
 2002c5c:	90 10 00 10 	mov  %l0, %o0                                  
 2002c60:	7f ff ff b4 	call  2002b30 <rtems_status_text>              
 2002c64:	f8 00 60 0c 	ld  [ %g1 + 0xc ], %i4                         
 2002c68:	13 00 80 6c 	sethi  %hi(0x201b000), %o1                     
 2002c6c:	94 10 00 08 	mov  %o0, %o2                                  
 2002c70:	92 12 63 30 	or  %o1, 0x330, %o1                            
 2002c74:	40 00 35 54 	call  20101c4 <fprintf>                        
 2002c78:	90 10 00 1c 	mov  %i4, %o0                                  
  #endif                                                              
                                                                      
  chars_written += vfprintf(stderr, printf_format, arglist);          
                                                                      
  if (status)                                                         
    chars_written +=                                                  
 2002c7c:	10 bf ff d9 	b  2002be0 <rtems_verror+0x98>                 
 2002c80:	b0 06 00 08 	add  %i0, %o0, %i0                             
                                                                      
  (void) fflush(stdout);            /* in case stdout/stderr same */  
                                                                      
  status = error_flag & ~RTEMS_ERROR_MASK;                            
  if (error_flag & RTEMS_ERROR_ERRNO)     /* include errno? */        
    local_errno = errno;                                              
 2002c84:	40 00 33 47 	call  200f9a0 <__errno>                        
 2002c88:	01 00 00 00 	nop                                            
 2002c8c:	10 bf ff cd 	b  2002bc0 <rtems_verror+0x78>                 
 2002c90:	f6 02 00 00 	ld  [ %o0 ], %i3                               
    chars_written +=                                                  
      fprintf(stderr, " (status: %s)", rtems_status_text(status));    
                                                                      
  if (local_errno) {                                                  
    if ((local_errno > 0) && *strerror(local_errno))                  
      chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
 2002c94:	90 10 00 1b 	mov  %i3, %o0                                  
 2002c98:	40 00 38 d2 	call  2010fe0 <strerror>                       
 2002c9c:	f8 00 60 0c 	ld  [ %g1 + 0xc ], %i4                         
 2002ca0:	13 00 80 6c 	sethi  %hi(0x201b000), %o1                     
 2002ca4:	94 10 00 08 	mov  %o0, %o2                                  
 2002ca8:	92 12 63 40 	or  %o1, 0x340, %o1                            
 2002cac:	40 00 35 46 	call  20101c4 <fprintf>                        
 2002cb0:	90 10 00 1c 	mov  %i4, %o0                                  
 2002cb4:	10 bf ff dd 	b  2002c28 <rtems_verror+0xe0>                 
 2002cb8:	b0 06 00 08 	add  %i0, %o0, %i0                             
                                                                      

020031b0 <scanInt>: /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) {
 20031b0:	9d e3 bf a0 	save  %sp, -96, %sp                            
  int c;                                                              
  unsigned int i = 0;                                                 
  unsigned int limit = INT_MAX;                                       
 20031b4:	35 1f ff ff 	sethi  %hi(0x7ffffc00), %i2                    
  int sign = 0;                                                       
 20031b8:	b6 10 20 00 	clr  %i3                                       
static int                                                            
scanInt(FILE *fp, int *val)                                           
{                                                                     
  int c;                                                              
  unsigned int i = 0;                                                 
  unsigned int limit = INT_MAX;                                       
 20031bc:	b4 16 a3 ff 	or  %i2, 0x3ff, %i2                            
 */                                                                   
static int                                                            
scanInt(FILE *fp, int *val)                                           
{                                                                     
  int c;                                                              
  unsigned int i = 0;                                                 
 20031c0:	b8 10 20 00 	clr  %i4                                       
  unsigned int limit = INT_MAX;                                       
  int sign = 0;                                                       
  int d;                                                              
                                                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
 20031c4:	23 00 80 5f 	sethi  %hi(0x2017c00), %l1                     
        limit++;                                                      
        continue;                                                     
      }                                                               
      sign = 1;                                                       
    }                                                                 
    if (!isdigit(c))                                                  
 20031c8:	21 00 80 5f 	sethi  %hi(0x2017c00), %l0                     
  unsigned int limit = INT_MAX;                                       
  int sign = 0;                                                       
  int d;                                                              
                                                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
 20031cc:	c2 06 20 04 	ld  [ %i0 + 4 ], %g1                           
 20031d0:	82 00 7f ff 	add  %g1, -1, %g1                              
 20031d4:	80 a0 60 00 	cmp  %g1, 0                                    
 20031d8:	06 80 00 24 	bl  2003268 <scanInt+0xb8>                     <== NEVER TAKEN
 20031dc:	c2 26 20 04 	st  %g1, [ %i0 + 4 ]                           
 20031e0:	c2 06 00 00 	ld  [ %i0 ], %g1                               
 20031e4:	fa 08 40 00 	ldub  [ %g1 ], %i5                             
 20031e8:	82 00 60 01 	inc  %g1                                       
    if (c == ':')                                                     
 20031ec:	80 a7 60 3a 	cmp  %i5, 0x3a                                 
 20031f0:	02 80 00 25 	be  2003284 <scanInt+0xd4>                     
 20031f4:	c2 26 00 00 	st  %g1, [ %i0 ]                               
      break;                                                          
    if (sign == 0) {                                                  
 20031f8:	80 a6 e0 00 	cmp  %i3, 0                                    
 20031fc:	12 80 00 06 	bne  2003214 <scanInt+0x64>                    
 2003200:	c2 04 23 1c 	ld  [ %l0 + 0x31c ], %g1                       
      if (c == '-') {                                                 
 2003204:	80 a7 60 2d 	cmp  %i5, 0x2d                                 
 2003208:	02 80 00 32 	be  20032d0 <scanInt+0x120>                    
 200320c:	b6 10 20 01 	mov  1, %i3                                    
        limit++;                                                      
        continue;                                                     
      }                                                               
      sign = 1;                                                       
    }                                                                 
    if (!isdigit(c))                                                  
 2003210:	c2 04 23 1c 	ld  [ %l0 + 0x31c ], %g1                       
 2003214:	82 00 40 1d 	add  %g1, %i5, %g1                             
 2003218:	c2 08 60 01 	ldub  [ %g1 + 1 ], %g1                         
 200321c:	80 88 60 04 	btst  4, %g1                                   
 2003220:	02 80 00 2f 	be  20032dc <scanInt+0x12c>                    
 2003224:	90 10 00 1a 	mov  %i2, %o0                                  
      return 0;                                                       
    d = c - '0';                                                      
    if ((i > (limit / 10))                                            
 2003228:	40 00 44 f8 	call  2014608 <.udiv>                          
 200322c:	92 10 20 0a 	mov  0xa, %o1                                  
 2003230:	80 a7 00 08 	cmp  %i4, %o0                                  
 2003234:	18 80 00 2a 	bgu  20032dc <scanInt+0x12c>                   
 2003238:	01 00 00 00 	nop                                            
     || ((i == (limit / 10)) && (d > (limit % 10))))                  
 200323c:	02 80 00 1c 	be  20032ac <scanInt+0xfc>                     
 2003240:	ba 07 7f d0 	add  %i5, -48, %i5                             
      return 0;                                                       
    i = i * 10 + d;                                                   
 2003244:	83 2f 20 01 	sll  %i4, 1, %g1                               
 2003248:	b9 2f 20 03 	sll  %i4, 3, %i4                               
 200324c:	b8 00 40 1c 	add  %g1, %i4, %i4                             
  unsigned int limit = INT_MAX;                                       
  int sign = 0;                                                       
  int d;                                                              
                                                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
 2003250:	c2 06 20 04 	ld  [ %i0 + 4 ], %g1                           
      return 0;                                                       
    d = c - '0';                                                      
    if ((i > (limit / 10))                                            
     || ((i == (limit / 10)) && (d > (limit % 10))))                  
      return 0;                                                       
    i = i * 10 + d;                                                   
 2003254:	b8 07 40 1c 	add  %i5, %i4, %i4                             
  unsigned int limit = INT_MAX;                                       
  int sign = 0;                                                       
  int d;                                                              
                                                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
 2003258:	82 00 7f ff 	add  %g1, -1, %g1                              
 200325c:	80 a0 60 00 	cmp  %g1, 0                                    
 2003260:	16 bf ff e0 	bge  20031e0 <scanInt+0x30>                    <== ALWAYS TAKEN
 2003264:	c2 26 20 04 	st  %g1, [ %i0 + 4 ]                           
 2003268:	d0 04 63 20 	ld  [ %l1 + 0x320 ], %o0                       <== NOT EXECUTED
 200326c:	40 00 3a 09 	call  2011a90 <__srget_r>                      <== NOT EXECUTED
 2003270:	92 10 00 18 	mov  %i0, %o1                                  <== NOT EXECUTED
 2003274:	ba 10 00 08 	mov  %o0, %i5                                  <== NOT EXECUTED
    if (c == ':')                                                     
 2003278:	80 a7 60 3a 	cmp  %i5, 0x3a                                 <== NOT EXECUTED
 200327c:	12 bf ff e0 	bne  20031fc <scanInt+0x4c>                    <== NOT EXECUTED
 2003280:	80 a6 e0 00 	cmp  %i3, 0                                    <== NOT EXECUTED
    if ((i > (limit / 10))                                            
     || ((i == (limit / 10)) && (d > (limit % 10))))                  
      return 0;                                                       
    i = i * 10 + d;                                                   
  }                                                                   
  if (sign == 0)                                                      
 2003284:	80 a6 e0 00 	cmp  %i3, 0                                    
 2003288:	02 80 00 07 	be  20032a4 <scanInt+0xf4>                     <== NEVER TAKEN
 200328c:	b0 10 20 00 	clr  %i0                                       
    return 0;                                                         
  *val = i * sign;                                                    
 2003290:	90 10 00 1b 	mov  %i3, %o0                                  
 2003294:	92 10 00 1c 	mov  %i4, %o1                                  
 2003298:	40 00 44 a2 	call  2014520 <.umul>                          
 200329c:	b0 10 20 01 	mov  1, %i0                                    
 20032a0:	d0 26 40 00 	st  %o0, [ %i1 ]                               
  return 1;                                                           
 20032a4:	81 c7 e0 08 	ret                                            
 20032a8:	81 e8 00 00 	restore                                        
    }                                                                 
    if (!isdigit(c))                                                  
      return 0;                                                       
    d = c - '0';                                                      
    if ((i > (limit / 10))                                            
     || ((i == (limit / 10)) && (d > (limit % 10))))                  
 20032ac:	90 10 00 1a 	mov  %i2, %o0                                  
 20032b0:	40 00 45 82 	call  20148b8 <.urem>                          
 20032b4:	92 10 20 0a 	mov  0xa, %o1                                  
 20032b8:	80 a7 40 08 	cmp  %i5, %o0                                  
 20032bc:	08 bf ff e3 	bleu  2003248 <scanInt+0x98>                   <== NEVER TAKEN
 20032c0:	83 2f 20 01 	sll  %i4, 1, %g1                               
      return 0;                                                       
 20032c4:	b0 10 20 00 	clr  %i0                                       
  }                                                                   
  if (sign == 0)                                                      
    return 0;                                                         
  *val = i * sign;                                                    
  return 1;                                                           
}                                                                     
 20032c8:	81 c7 e0 08 	ret                                            
 20032cc:	81 e8 00 00 	restore                                        
    if (c == ':')                                                     
      break;                                                          
    if (sign == 0) {                                                  
      if (c == '-') {                                                 
        sign = -1;                                                    
        limit++;                                                      
 20032d0:	b4 06 a0 01 	inc  %i2                                       
        continue;                                                     
 20032d4:	10 bf ff be 	b  20031cc <scanInt+0x1c>                      
 20032d8:	b6 10 3f ff 	mov  -1, %i3                                   
    if (!isdigit(c))                                                  
      return 0;                                                       
    d = c - '0';                                                      
    if ((i > (limit / 10))                                            
     || ((i == (limit / 10)) && (d > (limit % 10))))                  
      return 0;                                                       
 20032dc:	81 c7 e0 08 	ret                                            
 20032e0:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      

020032e4 <scanString>: /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) {
 20032e4:	9d e3 bf a0 	save  %sp, -96, %sp                            
  int c;                                                              
                                                                      
  *name = *bufp;                                                      
 20032e8:	c2 06 80 00 	ld  [ %i2 ], %g1                               
  for (;;) {                                                          
    c = getc(fp);                                                     
 20032ec:	3b 00 80 5f 	sethi  %hi(0x2017c00), %i5                     
static int                                                            
scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag)
{                                                                     
  int c;                                                              
                                                                      
  *name = *bufp;                                                      
 20032f0:	10 80 00 19 	b  2003354 <scanString+0x70>                   
 20032f4:	c2 26 40 00 	st  %g1, [ %i1 ]                               
  for (;;) {                                                          
    c = getc(fp);                                                     
 20032f8:	c2 06 00 00 	ld  [ %i0 ], %g1                               
 20032fc:	d0 08 40 00 	ldub  [ %g1 ], %o0                             
 2003300:	82 00 60 01 	inc  %g1                                       
    if (c == ':') {                                                   
 2003304:	80 a2 20 3a 	cmp  %o0, 0x3a                                 
 2003308:	02 80 00 1e 	be  2003380 <scanString+0x9c>                  
 200330c:	c2 26 00 00 	st  %g1, [ %i0 ]                               
        if (nlFlag)                                                   
            return 0;                                                 
        break;                                                        
    }                                                                 
    if (c == '\n') {                                                  
 2003310:	80 a2 20 0a 	cmp  %o0, 0xa                                  
 2003314:	02 80 00 28 	be  20033b4 <scanString+0xd0>                  
 2003318:	80 a2 3f ff 	cmp  %o0, -1                                   
        if (!nlFlag)                                                  
            return 0;                                                 
        break;                                                        
    }                                                                 
    if (c == EOF)                                                     
 200331c:	02 80 00 2b 	be  20033c8 <scanString+0xe4>                  
 2003320:	01 00 00 00 	nop                                            
      return 0;                                                       
    if (*nleft < 2)                                                   
 2003324:	c2 06 c0 00 	ld  [ %i3 ], %g1                               
 2003328:	80 a0 60 01 	cmp  %g1, 1                                    
 200332c:	08 80 00 29 	bleu  20033d0 <scanString+0xec>                
 2003330:	01 00 00 00 	nop                                            
      return 0;                                                       
    **bufp = c;                                                       
 2003334:	c2 06 80 00 	ld  [ %i2 ], %g1                               
 2003338:	d0 28 40 00 	stb  %o0, [ %g1 ]                              
    ++(*bufp);                                                        
 200333c:	c4 06 80 00 	ld  [ %i2 ], %g2                               
    --(*nleft);                                                       
 2003340:	c2 06 c0 00 	ld  [ %i3 ], %g1                               
    if (c == EOF)                                                     
      return 0;                                                       
    if (*nleft < 2)                                                   
      return 0;                                                       
    **bufp = c;                                                       
    ++(*bufp);                                                        
 2003344:	84 00 a0 01 	inc  %g2                                       
 2003348:	c4 26 80 00 	st  %g2, [ %i2 ]                               
    --(*nleft);                                                       
 200334c:	82 00 7f ff 	add  %g1, -1, %g1                              
 2003350:	c2 26 c0 00 	st  %g1, [ %i3 ]                               
{                                                                     
  int c;                                                              
                                                                      
  *name = *bufp;                                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
 2003354:	c2 06 20 04 	ld  [ %i0 + 4 ], %g1                           
 2003358:	82 00 7f ff 	add  %g1, -1, %g1                              
 200335c:	80 a0 60 00 	cmp  %g1, 0                                    
 2003360:	16 bf ff e6 	bge  20032f8 <scanString+0x14>                 
 2003364:	c2 26 20 04 	st  %g1, [ %i0 + 4 ]                           
 2003368:	d0 07 63 20 	ld  [ %i5 + 0x320 ], %o0                       
 200336c:	40 00 39 c9 	call  2011a90 <__srget_r>                      
 2003370:	92 10 00 18 	mov  %i0, %o1                                  
    if (c == ':') {                                                   
 2003374:	80 a2 20 3a 	cmp  %o0, 0x3a                                 
 2003378:	12 bf ff e7 	bne  2003314 <scanString+0x30>                 <== ALWAYS TAKEN
 200337c:	80 a2 20 0a 	cmp  %o0, 0xa                                  
        if (nlFlag)                                                   
 2003380:	80 a7 20 00 	cmp  %i4, 0                                    
 2003384:	12 80 00 0f 	bne  20033c0 <scanString+0xdc>                 
 2003388:	b0 10 20 00 	clr  %i0                                       
      return 0;                                                       
    **bufp = c;                                                       
    ++(*bufp);                                                        
    --(*nleft);                                                       
  }                                                                   
  **bufp = '\0';                                                      
 200338c:	c2 06 80 00 	ld  [ %i2 ], %g1                               
 2003390:	c0 28 40 00 	clrb  [ %g1 ]                                  
  ++(*bufp);                                                          
 2003394:	c4 06 80 00 	ld  [ %i2 ], %g2                               
  --(*nleft);                                                         
 2003398:	c2 06 c0 00 	ld  [ %i3 ], %g1                               
    **bufp = c;                                                       
    ++(*bufp);                                                        
    --(*nleft);                                                       
  }                                                                   
  **bufp = '\0';                                                      
  ++(*bufp);                                                          
 200339c:	84 00 a0 01 	inc  %g2                                       
 20033a0:	c4 26 80 00 	st  %g2, [ %i2 ]                               
  --(*nleft);                                                         
 20033a4:	82 00 7f ff 	add  %g1, -1, %g1                              
 20033a8:	c2 26 c0 00 	st  %g1, [ %i3 ]                               
  return 1;                                                           
 20033ac:	81 c7 e0 08 	ret                                            
 20033b0:	91 e8 20 01 	restore  %g0, 1, %o0                           
        if (nlFlag)                                                   
            return 0;                                                 
        break;                                                        
    }                                                                 
    if (c == '\n') {                                                  
        if (!nlFlag)                                                  
 20033b4:	80 a7 20 00 	cmp  %i4, 0                                    
 20033b8:	12 bf ff f5 	bne  200338c <scanString+0xa8>                 
 20033bc:	b0 10 20 00 	clr  %i0                                       
 20033c0:	81 c7 e0 08 	ret                                            
 20033c4:	81 e8 00 00 	restore                                        
            return 0;                                                 
        break;                                                        
    }                                                                 
    if (c == EOF)                                                     
      return 0;                                                       
 20033c8:	81 c7 e0 08 	ret                                            
 20033cc:	91 e8 20 00 	restore  %g0, 0, %o0                           
  }                                                                   
  **bufp = '\0';                                                      
  ++(*bufp);                                                          
  --(*nleft);                                                         
  return 1;                                                           
}                                                                     
 20033d0:	81 c7 e0 08 	ret                                            
 20033d4:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      

020033d8 <scangr>: FILE *fp, struct group *grp, char *buffer, size_t bufsize ) {
 20033d8:	9d e3 bf 98 	save  %sp, -104, %sp                           
  int grgid;                                                          
  char *grmem, *cp;                                                   
  int memcount;                                                       
                                                                      
  if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)            
 20033dc:	98 10 20 00 	clr  %o4                                       
 20033e0:	90 10 00 18 	mov  %i0, %o0                                  
  FILE *fp,                                                           
  struct group *grp,                                                  
  char *buffer,                                                       
  size_t bufsize                                                      
)                                                                     
{                                                                     
 20033e4:	ba 10 00 18 	mov  %i0, %i5                                  
 20033e8:	f4 27 a0 4c 	st  %i2, [ %fp + 0x4c ]                        
 20033ec:	f6 27 a0 50 	st  %i3, [ %fp + 0x50 ]                        
  int grgid;                                                          
  char *grmem, *cp;                                                   
  int memcount;                                                       
                                                                      
  if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)            
 20033f0:	92 10 00 19 	mov  %i1, %o1                                  
 20033f4:	94 07 a0 4c 	add  %fp, 0x4c, %o2                            
 20033f8:	96 07 a0 50 	add  %fp, 0x50, %o3                            
 20033fc:	7f ff ff ba 	call  20032e4 <scanString>                     
 2003400:	b0 10 20 00 	clr  %i0                                       
 2003404:	80 a2 20 00 	cmp  %o0, 0                                    
 2003408:	12 80 00 04 	bne  2003418 <scangr+0x40>                     
 200340c:	90 10 00 1d 	mov  %i5, %o0                                  
      grp->gr_mem[memcount++] = cp + 1;                               
    }                                                                 
  }                                                                   
  grp->gr_mem[memcount] = NULL;                                       
  return 1;                                                           
}                                                                     
 2003410:	81 c7 e0 08 	ret                                            
 2003414:	81 e8 00 00 	restore                                        
  int grgid;                                                          
  char *grmem, *cp;                                                   
  int memcount;                                                       
                                                                      
  if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)            
   || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)          
 2003418:	92 06 60 04 	add  %i1, 4, %o1                               
 200341c:	94 07 a0 4c 	add  %fp, 0x4c, %o2                            
 2003420:	96 07 a0 50 	add  %fp, 0x50, %o3                            
 2003424:	7f ff ff b0 	call  20032e4 <scanString>                     
 2003428:	98 10 20 00 	clr  %o4                                       
 200342c:	80 a2 20 00 	cmp  %o0, 0                                    
 2003430:	02 bf ff f8 	be  2003410 <scangr+0x38>                      <== NEVER TAKEN
 2003434:	90 10 00 1d 	mov  %i5, %o0                                  
   || !scanInt(fp, &grgid)                                            
 2003438:	7f ff ff 5e 	call  20031b0 <scanInt>                        
 200343c:	92 07 bf f8 	add  %fp, -8, %o1                              
 2003440:	80 a2 20 00 	cmp  %o0, 0                                    
 2003444:	02 bf ff f3 	be  2003410 <scangr+0x38>                      <== NEVER TAKEN
 2003448:	90 10 00 1d 	mov  %i5, %o0                                  
   || !scanString(fp, &grmem, &buffer, &bufsize, 1))                  
 200344c:	92 07 bf fc 	add  %fp, -4, %o1                              
 2003450:	94 07 a0 4c 	add  %fp, 0x4c, %o2                            
 2003454:	96 07 a0 50 	add  %fp, 0x50, %o3                            
 2003458:	7f ff ff a3 	call  20032e4 <scanString>                     
 200345c:	98 10 20 01 	mov  1, %o4                                    
 2003460:	80 a2 20 00 	cmp  %o0, 0                                    
 2003464:	02 bf ff eb 	be  2003410 <scangr+0x38>                      <== NEVER TAKEN
 2003468:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
  grp->gr_gid = grgid;                                                
                                                                      
  /*                                                                  
   * Determine number of members                                      
   */                                                                 
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
 200346c:	fa 07 bf fc 	ld  [ %fp + -4 ], %i5                          
  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;                                                
 2003470:	c2 36 60 08 	sth  %g1, [ %i1 + 8 ]                          
                                                                      
  /*                                                                  
   * Determine number of members                                      
   */                                                                 
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
 2003474:	c6 0f 40 00 	ldub  [ %i5 ], %g3                             
 2003478:	83 28 e0 18 	sll  %g3, 0x18, %g1                            
 200347c:	80 a0 60 00 	cmp  %g1, 0                                    
 2003480:	02 80 00 10 	be  20034c0 <scangr+0xe8>                      <== NEVER TAKEN
 2003484:	88 10 20 17 	mov  0x17, %g4                                 
 2003488:	84 10 00 1d 	mov  %i5, %g2                                  
 200348c:	88 10 20 01 	mov  1, %g4                                    
    if(*cp == ',')                                                    
      memcount++;                                                     
 2003490:	84 00 a0 01 	inc  %g2                                       
  grp->gr_gid = grgid;                                                
                                                                      
  /*                                                                  
   * Determine number of members                                      
   */                                                                 
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
 2003494:	c6 08 80 00 	ldub  [ %g2 ], %g3                             
    if(*cp == ',')                                                    
 2003498:	83 38 60 18 	sra  %g1, 0x18, %g1                            
      memcount++;                                                     
 200349c:	82 18 60 2c 	xor  %g1, 0x2c, %g1                            
 20034a0:	80 a0 00 01 	cmp  %g0, %g1                                  
  grp->gr_gid = grgid;                                                
                                                                      
  /*                                                                  
   * Determine number of members                                      
   */                                                                 
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
 20034a4:	83 28 e0 18 	sll  %g3, 0x18, %g1                            
    if(*cp == ',')                                                    
      memcount++;                                                     
 20034a8:	88 61 3f ff 	subx  %g4, -1, %g4                             
  grp->gr_gid = grgid;                                                
                                                                      
  /*                                                                  
   * Determine number of members                                      
   */                                                                 
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
 20034ac:	80 a0 60 00 	cmp  %g1, 0                                    
 20034b0:	32 bf ff f9 	bne,a   2003494 <scangr+0xbc>                  
 20034b4:	84 00 a0 01 	inc  %g2                                       
 20034b8:	89 29 20 02 	sll  %g4, 2, %g4                               
 20034bc:	88 01 20 13 	add  %g4, 0x13, %g4                            
  }                                                                   
                                                                      
  /*                                                                  
   * Hack to produce (hopefully) a suitably-aligned array of pointers 
   */                                                                 
  if (bufsize < (((memcount+1)*sizeof(char *)) + 15))                 
 20034c0:	c2 07 a0 50 	ld  [ %fp + 0x50 ], %g1                        
 20034c4:	80 a0 40 04 	cmp  %g1, %g4                                  
 20034c8:	0a bf ff d2 	bcs  2003410 <scangr+0x38>                     <== NEVER TAKEN
 20034cc:	b0 10 20 00 	clr  %i0                                       
    return 0;                                                         
  grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15);            
 20034d0:	c2 07 a0 4c 	ld  [ %fp + 0x4c ], %g1                        
 20034d4:	82 00 60 0f 	add  %g1, 0xf, %g1                             
 20034d8:	82 08 7f f0 	and  %g1, -16, %g1                             
 20034dc:	c2 26 60 0c 	st  %g1, [ %i1 + 0xc ]                         
                                                                      
  /*                                                                  
   * Fill in pointer array                                            
   */                                                                 
  grp->gr_mem[0] = grmem;                                             
 20034e0:	fa 20 40 00 	st  %i5, [ %g1 ]                               
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
 20034e4:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 20034e8:	c4 08 40 00 	ldub  [ %g1 ], %g2                             
 20034ec:	85 28 a0 18 	sll  %g2, 0x18, %g2                            
 20034f0:	80 a0 a0 00 	cmp  %g2, 0                                    
 20034f4:	02 80 00 15 	be  2003548 <scangr+0x170>                     <== NEVER TAKEN
 20034f8:	86 10 20 04 	mov  4, %g3                                    
}                                                                     
                                                                      
/*                                                                    
 * Extract a single group record from the database                    
 */                                                                   
static int scangr(                                                    
 20034fc:	82 00 60 01 	inc  %g1                                       
                                                                      
  /*                                                                  
   * Fill in pointer array                                            
   */                                                                 
  grp->gr_mem[0] = grmem;                                             
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
 2003500:	10 80 00 08 	b  2003520 <scangr+0x148>                      
 2003504:	86 10 20 01 	mov  1, %g3                                    
    if(*cp == ',') {                                                  
      *cp = '\0';                                                     
      grp->gr_mem[memcount++] = cp + 1;                               
 2003508:	82 00 60 01 	inc  %g1                                       
                                                                      
  /*                                                                  
   * Fill in pointer array                                            
   */                                                                 
  grp->gr_mem[0] = grmem;                                             
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
 200350c:	c4 08 7f ff 	ldub  [ %g1 + -1 ], %g2                        
 2003510:	85 28 a0 18 	sll  %g2, 0x18, %g2                            
 2003514:	80 a0 a0 00 	cmp  %g2, 0                                    
 2003518:	22 80 00 0c 	be,a   2003548 <scangr+0x170>                  
 200351c:	87 28 e0 02 	sll  %g3, 2, %g3                               
    if(*cp == ',') {                                                  
 2003520:	85 38 a0 18 	sra  %g2, 0x18, %g2                            
 2003524:	80 a0 a0 2c 	cmp  %g2, 0x2c                                 
 2003528:	32 bf ff f9 	bne,a   200350c <scangr+0x134>                 
 200352c:	82 00 60 01 	inc  %g1                                       
      *cp = '\0';                                                     
 2003530:	c0 28 7f ff 	clrb  [ %g1 + -1 ]                             
      grp->gr_mem[memcount++] = cp + 1;                               
 2003534:	c8 06 60 0c 	ld  [ %i1 + 0xc ], %g4                         
 2003538:	85 28 e0 02 	sll  %g3, 2, %g2                               
 200353c:	86 00 e0 01 	inc  %g3                                       
 2003540:	10 bf ff f2 	b  2003508 <scangr+0x130>                      
 2003544:	c2 21 00 02 	st  %g1, [ %g4 + %g2 ]                         
    }                                                                 
  }                                                                   
  grp->gr_mem[memcount] = NULL;                                       
 2003548:	c2 06 60 0c 	ld  [ %i1 + 0xc ], %g1                         
 200354c:	c0 20 40 03 	clr  [ %g1 + %g3 ]                             
  return 1;                                                           
}                                                                     
 2003550:	81 c7 e0 08 	ret                                            
 2003554:	91 e8 20 01 	restore  %g0, 1, %o0                           
                                                                      

02003558 <scanpw>: FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) {
 2003558:	9d e3 bf 98 	save  %sp, -104, %sp                           
  int pwuid, pwgid;                                                   
                                                                      
  if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)            
 200355c:	98 10 20 00 	clr  %o4                                       
 2003560:	90 10 00 18 	mov  %i0, %o0                                  
  FILE *fp,                                                           
  struct passwd *pwd,                                                 
  char *buffer,                                                       
  size_t bufsize                                                      
)                                                                     
{                                                                     
 2003564:	ba 10 00 18 	mov  %i0, %i5                                  
 2003568:	f4 27 a0 4c 	st  %i2, [ %fp + 0x4c ]                        
 200356c:	f6 27 a0 50 	st  %i3, [ %fp + 0x50 ]                        
  int pwuid, pwgid;                                                   
                                                                      
  if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)            
 2003570:	92 10 00 19 	mov  %i1, %o1                                  
 2003574:	94 07 a0 4c 	add  %fp, 0x4c, %o2                            
 2003578:	96 07 a0 50 	add  %fp, 0x50, %o3                            
 200357c:	7f ff ff 5a 	call  20032e4 <scanString>                     
 2003580:	b0 10 20 00 	clr  %i0                                       
 2003584:	80 a2 20 00 	cmp  %o0, 0                                    
 2003588:	12 80 00 04 	bne  2003598 <scanpw+0x40>                     
 200358c:	90 10 00 1d 	mov  %i5, %o0                                  
   || !scanString(fp, &pwd->pw_shell, &buffer, &bufsize, 1))          
    return 0;                                                         
  pwd->pw_uid = pwuid;                                                
  pwd->pw_gid = pwgid;                                                
  return 1;                                                           
}                                                                     
 2003590:	81 c7 e0 08 	ret                                            
 2003594:	81 e8 00 00 	restore                                        
)                                                                     
{                                                                     
  int pwuid, pwgid;                                                   
                                                                      
  if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)            
   || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)          
 2003598:	92 06 60 04 	add  %i1, 4, %o1                               
 200359c:	94 07 a0 4c 	add  %fp, 0x4c, %o2                            
 20035a0:	96 07 a0 50 	add  %fp, 0x50, %o3                            
 20035a4:	7f ff ff 50 	call  20032e4 <scanString>                     
 20035a8:	98 10 20 00 	clr  %o4                                       
 20035ac:	80 a2 20 00 	cmp  %o0, 0                                    
 20035b0:	02 bf ff f8 	be  2003590 <scanpw+0x38>                      <== NEVER TAKEN
 20035b4:	90 10 00 1d 	mov  %i5, %o0                                  
   || !scanInt(fp, &pwuid)                                            
 20035b8:	7f ff fe fe 	call  20031b0 <scanInt>                        
 20035bc:	92 07 bf f8 	add  %fp, -8, %o1                              
 20035c0:	80 a2 20 00 	cmp  %o0, 0                                    
 20035c4:	02 bf ff f3 	be  2003590 <scanpw+0x38>                      
 20035c8:	90 10 00 1d 	mov  %i5, %o0                                  
   || !scanInt(fp, &pwgid)                                            
 20035cc:	7f ff fe f9 	call  20031b0 <scanInt>                        
 20035d0:	92 07 bf fc 	add  %fp, -4, %o1                              
 20035d4:	80 a2 20 00 	cmp  %o0, 0                                    
 20035d8:	02 bf ff ee 	be  2003590 <scanpw+0x38>                      
 20035dc:	90 10 00 1d 	mov  %i5, %o0                                  
   || !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0)         
 20035e0:	92 06 60 0c 	add  %i1, 0xc, %o1                             
 20035e4:	94 07 a0 4c 	add  %fp, 0x4c, %o2                            
 20035e8:	96 07 a0 50 	add  %fp, 0x50, %o3                            
 20035ec:	7f ff ff 3e 	call  20032e4 <scanString>                     
 20035f0:	98 10 20 00 	clr  %o4                                       
 20035f4:	80 a2 20 00 	cmp  %o0, 0                                    
 20035f8:	02 bf ff e6 	be  2003590 <scanpw+0x38>                      <== NEVER TAKEN
 20035fc:	90 10 00 1d 	mov  %i5, %o0                                  
   || !scanString(fp, &pwd->pw_gecos, &buffer, &bufsize, 0)           
 2003600:	92 06 60 10 	add  %i1, 0x10, %o1                            
 2003604:	94 07 a0 4c 	add  %fp, 0x4c, %o2                            
 2003608:	96 07 a0 50 	add  %fp, 0x50, %o3                            
 200360c:	7f ff ff 36 	call  20032e4 <scanString>                     
 2003610:	98 10 20 00 	clr  %o4                                       
 2003614:	80 a2 20 00 	cmp  %o0, 0                                    
 2003618:	02 bf ff de 	be  2003590 <scanpw+0x38>                      <== NEVER TAKEN
 200361c:	90 10 00 1d 	mov  %i5, %o0                                  
   || !scanString(fp, &pwd->pw_dir, &buffer, &bufsize, 0)             
 2003620:	92 06 60 14 	add  %i1, 0x14, %o1                            
 2003624:	94 07 a0 4c 	add  %fp, 0x4c, %o2                            
 2003628:	96 07 a0 50 	add  %fp, 0x50, %o3                            
 200362c:	7f ff ff 2e 	call  20032e4 <scanString>                     
 2003630:	98 10 20 00 	clr  %o4                                       
 2003634:	80 a2 20 00 	cmp  %o0, 0                                    
 2003638:	02 bf ff d6 	be  2003590 <scanpw+0x38>                      <== NEVER TAKEN
 200363c:	90 10 00 1d 	mov  %i5, %o0                                  
   || !scanString(fp, &pwd->pw_shell, &buffer, &bufsize, 1))          
 2003640:	92 06 60 18 	add  %i1, 0x18, %o1                            
 2003644:	94 07 a0 4c 	add  %fp, 0x4c, %o2                            
 2003648:	96 07 a0 50 	add  %fp, 0x50, %o3                            
 200364c:	7f ff ff 26 	call  20032e4 <scanString>                     
 2003650:	98 10 20 01 	mov  1, %o4                                    
 2003654:	80 a2 20 00 	cmp  %o0, 0                                    
 2003658:	02 bf ff ce 	be  2003590 <scanpw+0x38>                      
 200365c:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
    return 0;                                                         
  pwd->pw_uid = pwuid;                                                
 2003660:	c2 36 60 08 	sth  %g1, [ %i1 + 8 ]                          
  pwd->pw_gid = pwgid;                                                
 2003664:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 2003668:	c2 36 60 0a 	sth  %g1, [ %i1 + 0xa ]                        
  return 1;                                                           
}                                                                     
 200366c:	81 c7 e0 08 	ret                                            
 2003670:	91 e8 20 01 	restore  %g0, 1, %o0                           
                                                                      

02006cec <sched_get_priority_max>: #include <rtems/posix/priority.h> int sched_get_priority_max( int policy ) {
 2006cec:	9d e3 bf a0 	save  %sp, -96, %sp                            
  switch ( policy ) {                                                 
 2006cf0:	80 a6 20 04 	cmp  %i0, 4                                    
 2006cf4:	08 80 00 08 	bleu  2006d14 <sched_get_priority_max+0x28>    
 2006cf8:	82 10 20 01 	mov  1, %g1                                    
    case SCHED_RR:                                                    
    case SCHED_SPORADIC:                                              
      break;                                                          
                                                                      
    default:                                                          
      rtems_set_errno_and_return_minus_one( EINVAL );                 
 2006cfc:	40 00 25 4f 	call  2010238 <__errno>                        
 2006d00:	b0 10 3f ff 	mov  -1, %i0                                   
 2006d04:	82 10 20 16 	mov  0x16, %g1                                 
 2006d08:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2006d0c:	81 c7 e0 08 	ret                                            
 2006d10:	81 e8 00 00 	restore                                        
                                                                      
int sched_get_priority_max(                                           
  int  policy                                                         
)                                                                     
{                                                                     
  switch ( policy ) {                                                 
 2006d14:	b1 28 40 18 	sll  %g1, %i0, %i0                             
 2006d18:	80 8e 20 17 	btst  0x17, %i0                                
 2006d1c:	02 bf ff f8 	be  2006cfc <sched_get_priority_max+0x10>      <== NEVER TAKEN
 2006d20:	03 00 80 75 	sethi  %hi(0x201d400), %g1                     
                                                                      
    default:                                                          
      rtems_set_errno_and_return_minus_one( EINVAL );                 
  }                                                                   
                                                                      
  return POSIX_SCHEDULER_MAXIMUM_PRIORITY;                            
 2006d24:	f0 08 62 dc 	ldub  [ %g1 + 0x2dc ], %i0	! 201d6dc <rtems_maximum_priority>
}                                                                     
 2006d28:	81 c7 e0 08 	ret                                            
 2006d2c:	91 ee 3f ff 	restore  %i0, -1, %o0                          
                                                                      

02006d30 <sched_get_priority_min>: #include <rtems/posix/priority.h> int sched_get_priority_min( int policy ) {
 2006d30:	9d e3 bf a0 	save  %sp, -96, %sp                            
  switch ( policy ) {                                                 
 2006d34:	80 a6 20 04 	cmp  %i0, 4                                    
 2006d38:	08 80 00 09 	bleu  2006d5c <sched_get_priority_min+0x2c>    
 2006d3c:	84 10 20 01 	mov  1, %g2                                    
    case SCHED_RR:                                                    
    case SCHED_SPORADIC:                                              
      break;                                                          
                                                                      
    default:                                                          
      rtems_set_errno_and_return_minus_one( EINVAL );                 
 2006d40:	40 00 25 3e 	call  2010238 <__errno>                        
 2006d44:	01 00 00 00 	nop                                            
 2006d48:	82 10 3f ff 	mov  -1, %g1	! ffffffff <RAM_END+0xfdbfffff>   
 2006d4c:	84 10 20 16 	mov  0x16, %g2                                 
 2006d50:	c4 22 00 00 	st  %g2, [ %o0 ]                               
  }                                                                   
                                                                      
  return POSIX_SCHEDULER_MINIMUM_PRIORITY;                            
}                                                                     
 2006d54:	81 c7 e0 08 	ret                                            
 2006d58:	91 e8 00 01 	restore  %g0, %g1, %o0                         
                                                                      
int sched_get_priority_min(                                           
  int  policy                                                         
)                                                                     
{                                                                     
  switch ( policy ) {                                                 
 2006d5c:	b1 28 80 18 	sll  %g2, %i0, %i0                             
 2006d60:	80 8e 20 17 	btst  0x17, %i0                                
 2006d64:	02 bf ff f7 	be  2006d40 <sched_get_priority_min+0x10>      <== NEVER TAKEN
 2006d68:	82 10 20 01 	mov  1, %g1                                    
    default:                                                          
      rtems_set_errno_and_return_minus_one( EINVAL );                 
  }                                                                   
                                                                      
  return POSIX_SCHEDULER_MINIMUM_PRIORITY;                            
}                                                                     
 2006d6c:	81 c7 e0 08 	ret                                            
 2006d70:	91 e8 00 01 	restore  %g0, %g1, %o0                         
                                                                      

02006d74 <sched_rr_get_interval>: int sched_rr_get_interval( pid_t pid, struct timespec *interval ) {
 2006d74:	9d e3 bf a0 	save  %sp, -96, %sp                            
  /*                                                                  
   *  Only supported for the "calling process" (i.e. this node).      
   */                                                                 
                                                                      
  if ( pid && pid != getpid() )                                       
 2006d78:	80 a6 20 00 	cmp  %i0, 0                                    
 2006d7c:	12 80 00 0a 	bne  2006da4 <sched_rr_get_interval+0x30>      <== ALWAYS TAKEN
 2006d80:	80 a6 60 00 	cmp  %i1, 0                                    
    rtems_set_errno_and_return_minus_one( ESRCH );                    
                                                                      
  if ( !interval )                                                    
 2006d84:	02 80 00 13 	be  2006dd0 <sched_rr_get_interval+0x5c>       
 2006d88:	03 00 80 78 	sethi  %hi(0x201e000), %g1                     
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  _Timespec_From_ticks( _Thread_Ticks_per_timeslice, interval );      
 2006d8c:	d0 00 63 24 	ld  [ %g1 + 0x324 ], %o0	! 201e324 <_Thread_Ticks_per_timeslice>
 2006d90:	92 10 00 19 	mov  %i1, %o1                                  
 2006d94:	40 00 0f 67 	call  200ab30 <_Timespec_From_ticks>           
 2006d98:	b0 10 20 00 	clr  %i0                                       
  return 0;                                                           
}                                                                     
 2006d9c:	81 c7 e0 08 	ret                                            
 2006da0:	81 e8 00 00 	restore                                        
{                                                                     
  /*                                                                  
   *  Only supported for the "calling process" (i.e. this node).      
   */                                                                 
                                                                      
  if ( pid && pid != getpid() )                                       
 2006da4:	7f ff f1 63 	call  2003330 <getpid>                         
 2006da8:	01 00 00 00 	nop                                            
 2006dac:	80 a2 00 18 	cmp  %o0, %i0                                  
 2006db0:	02 bf ff f5 	be  2006d84 <sched_rr_get_interval+0x10>       
 2006db4:	80 a6 60 00 	cmp  %i1, 0                                    
    rtems_set_errno_and_return_minus_one( ESRCH );                    
 2006db8:	40 00 25 20 	call  2010238 <__errno>                        
 2006dbc:	b0 10 3f ff 	mov  -1, %i0                                   
 2006dc0:	82 10 20 03 	mov  3, %g1                                    
 2006dc4:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2006dc8:	81 c7 e0 08 	ret                                            
 2006dcc:	81 e8 00 00 	restore                                        
                                                                      
  if ( !interval )                                                    
    rtems_set_errno_and_return_minus_one( EINVAL );                   
 2006dd0:	40 00 25 1a 	call  2010238 <__errno>                        
 2006dd4:	b0 10 3f ff 	mov  -1, %i0                                   
 2006dd8:	82 10 20 16 	mov  0x16, %g1                                 
 2006ddc:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2006de0:	81 c7 e0 08 	ret                                            
 2006de4:	81 e8 00 00 	restore                                        
                                                                      

020097dc <sem_open>: int oflag, ... /* mode_t mode, */ /* unsigned int value */ ) {
 20097dc:	9d e3 bf 90 	save  %sp, -112, %sp                           
   *                                                                  
   * This rountine increments the thread dispatch level               
   */                                                                 
  RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
  {                                                                   
    _Thread_Dispatch_disable_level++;                                 
 20097e0:	03 00 80 8d 	sethi  %hi(0x2023400), %g1                     
 20097e4:	c4 00 61 60 	ld  [ %g1 + 0x160 ], %g2	! 2023560 <_Thread_Dispatch_disable_level>
  Objects_Locations          location;                                
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  if ( oflag & O_CREAT ) {                                            
    va_start(arg, oflag);                                             
 20097e8:	f4 27 a0 4c 	st  %i2, [ %fp + 0x4c ]                        
 20097ec:	84 00 a0 01 	inc  %g2                                       
 20097f0:	c4 20 61 60 	st  %g2, [ %g1 + 0x160 ]                       
    return _Thread_Dispatch_disable_level;                            
 20097f4:	c2 00 61 60 	ld  [ %g1 + 0x160 ], %g1                       
 20097f8:	f6 27 a0 50 	st  %i3, [ %fp + 0x50 ]                        
 20097fc:	f8 27 a0 54 	st  %i4, [ %fp + 0x54 ]                        
 2009800:	fa 27 a0 58 	st  %i5, [ %fp + 0x58 ]                        
  POSIX_Semaphore_Control   *the_semaphore;                           
  Objects_Locations          location;                                
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  if ( oflag & O_CREAT ) {                                            
 2009804:	b8 8e 62 00 	andcc  %i1, 0x200, %i4                         
 2009808:	12 80 00 25 	bne  200989c <sem_open+0xc0>                   
 200980c:	ba 10 20 00 	clr  %i5                                       
    mode = (mode_t) va_arg( arg, unsigned int );                      
    value = va_arg( arg, unsigned int );                              
    va_end(arg);                                                      
  }                                                                   
                                                                      
  status = _POSIX_Semaphore_Name_to_id( name, &the_semaphore_id );    
 2009810:	90 10 00 18 	mov  %i0, %o0                                  
 2009814:	40 00 1c 07 	call  2010830 <_POSIX_Semaphore_Name_to_id>    
 2009818:	92 07 bf f4 	add  %fp, -12, %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 ) {                                                     
 200981c:	b6 92 20 00 	orcc  %o0, 0, %i3                              
 2009820:	22 80 00 0e 	be,a   2009858 <sem_open+0x7c>                 
 2009824:	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) ) ) {               
 2009828:	80 a6 e0 02 	cmp  %i3, 2                                    
 200982c:	12 80 00 04 	bne  200983c <sem_open+0x60>                   <== NEVER TAKEN
 2009830:	80 a7 20 00 	cmp  %i4, 0                                    
 2009834:	12 80 00 1e 	bne  20098ac <sem_open+0xd0>                   
 2009838:	94 10 00 1d 	mov  %i5, %o2                                  
      _Thread_Enable_dispatch();                                      
 200983c:	40 00 0c b8 	call  200cb1c <_Thread_Enable_dispatch>        
 2009840:	b0 10 3f ff 	mov  -1, %i0                                   
      rtems_set_errno_and_return_minus_one_cast( status, sem_t * );   
 2009844:	40 00 28 93 	call  2013a90 <__errno>                        
 2009848:	01 00 00 00 	nop                                            
 200984c:	f6 22 00 00 	st  %i3, [ %o0 ]                               
 2009850:	81 c7 e0 08 	ret                                            
 2009854:	81 e8 00 00 	restore                                        
                                                                      
    /*                                                                
     * Check for existence with creation.                             
     */                                                               
                                                                      
    if ( (oflag & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL) ) {       
 2009858:	80 a6 6a 00 	cmp  %i1, 0xa00                                
 200985c:	02 80 00 20 	be  20098dc <sem_open+0x100>                   
 2009860:	d2 07 bf f4 	ld  [ %fp + -12 ], %o1                         
 2009864:	94 07 bf fc 	add  %fp, -4, %o2                              
 2009868:	11 00 80 8e 	sethi  %hi(0x2023800), %o0                     
 200986c:	40 00 08 c2 	call  200bb74 <_Objects_Get>                   
 2009870:	90 12 20 20 	or  %o0, 0x20, %o0	! 2023820 <_POSIX_Semaphore_Information>
      _Thread_Enable_dispatch();                                      
      rtems_set_errno_and_return_minus_one_cast( EEXIST, sem_t * );   
    }                                                                 
                                                                      
    the_semaphore = _POSIX_Semaphore_Get( &the_semaphore_id, &location );
    the_semaphore->open_count += 1;                                   
 2009874:	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 );
 2009878:	d0 27 bf f8 	st  %o0, [ %fp + -8 ]                          
    the_semaphore->open_count += 1;                                   
 200987c:	82 00 60 01 	inc  %g1                                       
    _Thread_Enable_dispatch();                                        
 2009880:	40 00 0c a7 	call  200cb1c <_Thread_Enable_dispatch>        
 2009884:	c2 22 20 18 	st  %g1, [ %o0 + 0x18 ]                        
    _Thread_Enable_dispatch();                                        
 2009888:	40 00 0c a5 	call  200cb1c <_Thread_Enable_dispatch>        
 200988c:	01 00 00 00 	nop                                            
    the_semaphore->Semaphore_id = the_semaphore->Object.id;           
    id = &the_semaphore->Semaphore_id;                                
  #else                                                               
    id = (sem_t *)&the_semaphore->Object.id;                          
  #endif                                                              
  return id;                                                          
 2009890:	f0 07 bf f8 	ld  [ %fp + -8 ], %i0                          
}                                                                     
 2009894:	81 c7 e0 08 	ret                                            
 2009898:	91 ee 20 08 	restore  %i0, 8, %o0                           
  _Thread_Disable_dispatch();                                         
                                                                      
  if ( oflag & O_CREAT ) {                                            
    va_start(arg, oflag);                                             
    mode = (mode_t) va_arg( arg, unsigned int );                      
    value = va_arg( arg, unsigned int );                              
 200989c:	82 07 a0 54 	add  %fp, 0x54, %g1                            
 20098a0:	fa 07 a0 50 	ld  [ %fp + 0x50 ], %i5                        
 20098a4:	10 bf ff db 	b  2009810 <sem_open+0x34>                     
 20098a8:	c2 27 bf f0 	st  %g1, [ %fp + -16 ]                         
  /*                                                                  
   *  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(                            
 20098ac:	92 10 20 00 	clr  %o1                                       
 20098b0:	96 07 bf f8 	add  %fp, -8, %o3                              
 20098b4:	40 00 1b 83 	call  20106c0 <_POSIX_Semaphore_Create_support>
 20098b8:	90 10 00 18 	mov  %i0, %o0                                  
                                                                      
  /*                                                                  
   * errno was set by Create_support, so don't set it again.          
   */                                                                 
                                                                      
  _Thread_Enable_dispatch();                                          
 20098bc:	40 00 0c 98 	call  200cb1c <_Thread_Enable_dispatch>        
 20098c0:	ba 10 00 08 	mov  %o0, %i5                                  
                                                                      
  if ( status == -1 )                                                 
 20098c4:	80 a7 7f ff 	cmp  %i5, -1                                   
 20098c8:	02 bf ff e2 	be  2009850 <sem_open+0x74>                    
 20098cc:	b0 10 3f ff 	mov  -1, %i0                                   
    the_semaphore->Semaphore_id = the_semaphore->Object.id;           
    id = &the_semaphore->Semaphore_id;                                
  #else                                                               
    id = (sem_t *)&the_semaphore->Object.id;                          
  #endif                                                              
  return id;                                                          
 20098d0:	f0 07 bf f8 	ld  [ %fp + -8 ], %i0                          
 20098d4:	81 c7 e0 08 	ret                                            
 20098d8:	91 ee 20 08 	restore  %i0, 8, %o0                           
    /*                                                                
     * Check for existence with creation.                             
     */                                                               
                                                                      
    if ( (oflag & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL) ) {       
      _Thread_Enable_dispatch();                                      
 20098dc:	40 00 0c 90 	call  200cb1c <_Thread_Enable_dispatch>        
 20098e0:	b0 10 3f ff 	mov  -1, %i0                                   
      rtems_set_errno_and_return_minus_one_cast( EEXIST, sem_t * );   
 20098e4:	40 00 28 6b 	call  2013a90 <__errno>                        
 20098e8:	01 00 00 00 	nop                                            
 20098ec:	82 10 20 11 	mov  0x11, %g1	! 11 <PROM_START+0x11>          
 20098f0:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 20098f4:	81 c7 e0 08 	ret                                            
 20098f8:	81 e8 00 00 	restore                                        
                                                                      

02009958 <sem_timedwait>: int sem_timedwait( sem_t *sem, const struct timespec *abstime ) {
 2009958:	9d e3 bf 98 	save  %sp, -104, %sp                           
   *                                                                  
   *  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 );       
 200995c:	90 10 00 19 	mov  %i1, %o0                                  
 2009960:	40 00 18 f1 	call  200fd24 <_POSIX_Absolute_timeout_to_ticks>
 2009964:	92 07 bf fc 	add  %fp, -4, %o1                              
  if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )                
    do_wait = false;                                                  
                                                                      
  lock_status = _POSIX_Semaphore_Wait_support( sem, do_wait, ticks ); 
 2009968:	d4 07 bf fc 	ld  [ %fp + -4 ], %o2                          
   *  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 );       
  if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )                
 200996c:	80 a2 20 03 	cmp  %o0, 3                                    
 2009970:	02 80 00 06 	be  2009988 <sem_timedwait+0x30>               <== ALWAYS TAKEN
 2009974:	90 10 00 18 	mov  %i0, %o0                                  
    do_wait = false;                                                  
                                                                      
  lock_status = _POSIX_Semaphore_Wait_support( sem, do_wait, ticks ); 
 2009978:	40 00 1b d0 	call  20108b8 <_POSIX_Semaphore_Wait_support>  <== NOT EXECUTED
 200997c:	92 10 20 00 	clr  %o1                                       <== NOT EXECUTED
 2009980:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 2009984:	91 e8 00 08 	restore  %g0, %o0, %o0                         <== NOT EXECUTED
 2009988:	40 00 1b cc 	call  20108b8 <_POSIX_Semaphore_Wait_support>  
 200998c:	92 10 20 01 	mov  1, %o1                                    
         lock_status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )               
      rtems_set_errno_and_return_minus_one( ETIMEDOUT );              
  }                                                                   
                                                                      
  return lock_status;                                                 
}                                                                     
 2009990:	81 c7 e0 08 	ret                                            
 2009994:	91 e8 00 08 	restore  %g0, %o0, %o0                         
                                                                      

02006c64 <sigaction>: int sigaction( int sig, const struct sigaction *act, struct sigaction *oact ) {
 2006c64:	9d e3 bf a0 	save  %sp, -96, %sp                            
  ISR_Level     level;                                                
                                                                      
  if ( oact )                                                         
 2006c68:	80 a6 a0 00 	cmp  %i2, 0                                    
 2006c6c:	02 80 00 0d 	be  2006ca0 <sigaction+0x3c>                   
 2006c70:	87 2e 20 02 	sll  %i0, 2, %g3                               
    *oact = _POSIX_signals_Vectors[ sig ];                            
 2006c74:	05 00 80 6a 	sethi  %hi(0x201a800), %g2                     
 2006c78:	83 2e 20 04 	sll  %i0, 4, %g1                               
 2006c7c:	84 10 a2 c0 	or  %g2, 0x2c0, %g2                            
 2006c80:	82 20 40 03 	sub  %g1, %g3, %g1                             
 2006c84:	c6 00 80 01 	ld  [ %g2 + %g1 ], %g3                         
 2006c88:	82 00 80 01 	add  %g2, %g1, %g1                             
 2006c8c:	c6 26 80 00 	st  %g3, [ %i2 ]                               
 2006c90:	c4 00 60 04 	ld  [ %g1 + 4 ], %g2                           
 2006c94:	c4 26 a0 04 	st  %g2, [ %i2 + 4 ]                           
 2006c98:	c2 00 60 08 	ld  [ %g1 + 8 ], %g1                           
 2006c9c:	c2 26 a0 08 	st  %g1, [ %i2 + 8 ]                           
                                                                      
  if ( !sig )                                                         
 2006ca0:	80 a6 20 00 	cmp  %i0, 0                                    
 2006ca4:	02 80 00 33 	be  2006d70 <sigaction+0x10c>                  
 2006ca8:	01 00 00 00 	nop                                            
                                                                      
static inline bool is_valid_signo(                                    
  int signo                                                           
)                                                                     
{                                                                     
  return ((signo) >= 1 && (signo) <= 32 );                            
 2006cac:	82 06 3f ff 	add  %i0, -1, %g1                              
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( !is_valid_signo(sig) )                                         
 2006cb0:	80 a0 60 1f 	cmp  %g1, 0x1f                                 
 2006cb4:	18 80 00 2f 	bgu  2006d70 <sigaction+0x10c>                 
 2006cb8:	80 a6 20 09 	cmp  %i0, 9                                    
   *                                                                  
   *  NOTE: Solaris documentation claims to "silently enforce" this which
   *        contradicts the POSIX specification.                      
   */                                                                 
                                                                      
  if ( sig == SIGKILL )                                               
 2006cbc:	02 80 00 2d 	be  2006d70 <sigaction+0x10c>                  
 2006cc0:	80 a6 60 00 	cmp  %i1, 0                                    
  /*                                                                  
   *  Evaluate the new action structure and set the global signal vector
   *  appropriately.                                                  
   */                                                                 
                                                                      
  if ( act ) {                                                        
 2006cc4:	02 80 00 1a 	be  2006d2c <sigaction+0xc8>                   <== NEVER TAKEN
 2006cc8:	82 10 20 00 	clr  %g1                                       
    /*                                                                
     *  Unless the user is installing the default signal actions, then
     *  we can just copy the provided sigaction structure into the vectors.
     */                                                               
                                                                      
    _ISR_Disable( level );                                            
 2006ccc:	7f ff ee 30 	call  200258c <sparc_disable_interrupts>       
 2006cd0:	01 00 00 00 	nop                                            
 2006cd4:	b4 10 00 08 	mov  %o0, %i2                                  
      if ( act->sa_handler == SIG_DFL ) {                             
 2006cd8:	c2 06 60 08 	ld  [ %i1 + 8 ], %g1                           
 2006cdc:	80 a0 60 00 	cmp  %g1, 0                                    
 2006ce0:	02 80 00 15 	be  2006d34 <sigaction+0xd0>                   
 2006ce4:	83 2e 20 02 	sll  %i0, 2, %g1                               
        _POSIX_signals_Vectors[ sig ] = _POSIX_signals_Default_vectors[ sig ];
      } else {                                                        
         _POSIX_signals_Clear_process_signals( sig );                 
 2006ce8:	40 00 19 df 	call  200d464 <_POSIX_signals_Clear_process_signals>
 2006cec:	90 10 00 18 	mov  %i0, %o0                                  
         _POSIX_signals_Vectors[ sig ] = *act;                        
 2006cf0:	c4 06 40 00 	ld  [ %i1 ], %g2                               
 2006cf4:	87 2e 20 02 	sll  %i0, 2, %g3                               
 2006cf8:	03 00 80 6a 	sethi  %hi(0x201a800), %g1                     
 2006cfc:	b1 2e 20 04 	sll  %i0, 4, %i0                               
 2006d00:	82 10 62 c0 	or  %g1, 0x2c0, %g1                            
 2006d04:	b0 26 00 03 	sub  %i0, %g3, %i0                             
 2006d08:	c4 20 40 18 	st  %g2, [ %g1 + %i0 ]                         
 2006d0c:	c4 06 60 04 	ld  [ %i1 + 4 ], %g2                           
 2006d10:	b0 00 40 18 	add  %g1, %i0, %i0                             
 2006d14:	c4 26 20 04 	st  %g2, [ %i0 + 4 ]                           
 2006d18:	c2 06 60 08 	ld  [ %i1 + 8 ], %g1                           
 2006d1c:	c2 26 20 08 	st  %g1, [ %i0 + 8 ]                           
      }                                                               
    _ISR_Enable( level );                                             
 2006d20:	7f ff ee 1f 	call  200259c <sparc_enable_interrupts>        
 2006d24:	90 10 00 1a 	mov  %i2, %o0                                  
   *      now (signals not posted when SIG_IGN).                      
   *    + If we are now ignoring a signal that was previously pending,
   *      we clear the pending signal indicator.                      
   */                                                                 
                                                                      
  return 0;                                                           
 2006d28:	82 10 20 00 	clr  %g1                                       
}                                                                     
 2006d2c:	81 c7 e0 08 	ret                                            
 2006d30:	91 e8 00 01 	restore  %g0, %g1, %o0                         
     *  we can just copy the provided sigaction structure into the vectors.
     */                                                               
                                                                      
    _ISR_Disable( level );                                            
      if ( act->sa_handler == SIG_DFL ) {                             
        _POSIX_signals_Vectors[ sig ] = _POSIX_signals_Default_vectors[ sig ];
 2006d34:	b1 2e 20 04 	sll  %i0, 4, %i0                               
 2006d38:	b0 26 00 01 	sub  %i0, %g1, %i0                             
 2006d3c:	03 00 80 63 	sethi  %hi(0x2018c00), %g1                     
 2006d40:	82 10 63 6c 	or  %g1, 0x36c, %g1	! 2018f6c <_POSIX_signals_Default_vectors>
 2006d44:	c8 00 40 18 	ld  [ %g1 + %i0 ], %g4                         
 2006d48:	82 00 40 18 	add  %g1, %i0, %g1                             
 2006d4c:	c6 00 60 04 	ld  [ %g1 + 4 ], %g3                           
 2006d50:	c4 00 60 08 	ld  [ %g1 + 8 ], %g2                           
 2006d54:	03 00 80 6a 	sethi  %hi(0x201a800), %g1                     
 2006d58:	82 10 62 c0 	or  %g1, 0x2c0, %g1	! 201aac0 <_POSIX_signals_Vectors>
 2006d5c:	c8 20 40 18 	st  %g4, [ %g1 + %i0 ]                         
 2006d60:	b0 00 40 18 	add  %g1, %i0, %i0                             
 2006d64:	c6 26 20 04 	st  %g3, [ %i0 + 4 ]                           
 2006d68:	10 bf ff ee 	b  2006d20 <sigaction+0xbc>                    
 2006d6c:	c4 26 20 08 	st  %g2, [ %i0 + 8 ]                           
   *  NOTE: Solaris documentation claims to "silently enforce" this which
   *        contradicts the POSIX specification.                      
   */                                                                 
                                                                      
  if ( sig == SIGKILL )                                               
    rtems_set_errno_and_return_minus_one( EINVAL );                   
 2006d70:	40 00 26 5d 	call  20106e4 <__errno>                        
 2006d74:	01 00 00 00 	nop                                            
 2006d78:	84 10 20 16 	mov  0x16, %g2	! 16 <PROM_START+0x16>          
 2006d7c:	82 10 3f ff 	mov  -1, %g1                                   
 2006d80:	10 bf ff eb 	b  2006d2c <sigaction+0xc8>                    
 2006d84:	c4 22 00 00 	st  %g2, [ %o0 ]                               
                                                                      

0200714c <sigtimedwait>: int sigtimedwait( const sigset_t *set, siginfo_t *info, const struct timespec *timeout ) {
 200714c:	9d e3 bf 90 	save  %sp, -112, %sp                           
  ISR_Level          level;                                           
                                                                      
  /*                                                                  
   *  Error check parameters before disabling interrupts.             
   */                                                                 
  if ( !set )                                                         
 2007150:	ba 96 20 00 	orcc  %i0, 0, %i5                              
 2007154:	02 80 00 84 	be  2007364 <sigtimedwait+0x218>               
 2007158:	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 ) {                                                    
 200715c:	02 80 00 5c 	be  20072cc <sigtimedwait+0x180>               
 2007160:	80 a6 60 00 	cmp  %i1, 0                                    
                                                                      
    if ( !_Timespec_Is_valid( timeout ) )                             
 2007164:	40 00 0f 90 	call  200afa4 <_Timespec_Is_valid>             
 2007168:	90 10 00 1a 	mov  %i2, %o0                                  
 200716c:	80 8a 20 ff 	btst  0xff, %o0                                
 2007170:	02 80 00 7d 	be  2007364 <sigtimedwait+0x218>               
 2007174:	01 00 00 00 	nop                                            
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    interval = _Timespec_To_ticks( timeout );                         
 2007178:	40 00 0f b0 	call  200b038 <_Timespec_To_ticks>             
 200717c:	90 10 00 1a 	mov  %i2, %o0                                  
                                                                      
    if ( !interval )                                                  
 2007180:	a0 92 20 00 	orcc  %o0, 0, %l0                              
 2007184:	02 80 00 78 	be  2007364 <sigtimedwait+0x218>               <== NEVER TAKEN
 2007188:	80 a6 60 00 	cmp  %i1, 0                                    
                                                                      
  /*                                                                  
   *  Initialize local variables.                                     
   */                                                                 
                                                                      
  the_info = ( info ) ? info : &signal_information;                   
 200718c:	02 80 00 53 	be  20072d8 <sigtimedwait+0x18c>               <== NEVER TAKEN
 2007190:	39 00 80 6c 	sethi  %hi(0x201b000), %i4                     
                                                                      
  the_thread = _Thread_Executing;                                     
 2007194:	39 00 80 6c 	sethi  %hi(0x201b000), %i4                     
 2007198:	b8 17 22 c8 	or  %i4, 0x2c8, %i4	! 201b2c8 <_Per_CPU_Information>
 200719c:	f0 07 20 0c 	ld  [ %i4 + 0xc ], %i0                         
   *  What if they are already pending?                               
   */                                                                 
                                                                      
  /* API signals pending? */                                          
                                                                      
  _ISR_Disable( level );                                              
 20071a0:	7f ff ed d6 	call  20028f8 <sparc_disable_interrupts>       
 20071a4:	f4 06 21 5c 	ld  [ %i0 + 0x15c ], %i2                       
 20071a8:	b6 10 00 08 	mov  %o0, %i3                                  
  if ( *set & api->signals_pending ) {                                
 20071ac:	c2 07 40 00 	ld  [ %i5 ], %g1                               
 20071b0:	c4 06 a0 d4 	ld  [ %i2 + 0xd4 ], %g2                        
 20071b4:	80 88 40 02 	btst  %g1, %g2                                 
 20071b8:	12 80 00 53 	bne  2007304 <sigtimedwait+0x1b8>              
 20071bc:	01 00 00 00 	nop                                            
    return the_info->si_signo;                                        
  }                                                                   
                                                                      
  /* Process pending signals? */                                      
                                                                      
  if ( *set & _POSIX_signals_Pending ) {                              
 20071c0:	05 00 80 6d 	sethi  %hi(0x201b400), %g2                     
 20071c4:	c4 00 a1 14 	ld  [ %g2 + 0x114 ], %g2	! 201b514 <_POSIX_signals_Pending>
 20071c8:	80 88 40 02 	btst  %g1, %g2                                 
 20071cc:	12 80 00 2f 	bne  2007288 <sigtimedwait+0x13c>              
 20071d0:	03 00 80 6b 	sethi  %hi(0x201ac00), %g1                     
   *                                                                  
   * This rountine increments the thread dispatch level               
   */                                                                 
  RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
  {                                                                   
    _Thread_Dispatch_disable_level++;                                 
 20071d4:	c4 00 61 90 	ld  [ %g1 + 0x190 ], %g2	! 201ad90 <_Thread_Dispatch_disable_level>
    the_info->si_code = SI_USER;                                      
    the_info->si_value.sival_int = 0;                                 
    return signo;                                                     
  }                                                                   
                                                                      
  the_info->si_signo = -1;                                            
 20071d8:	86 10 3f ff 	mov  -1, %g3                                   
 20071dc:	c6 26 40 00 	st  %g3, [ %i1 ]                               
 20071e0:	84 00 a0 01 	inc  %g2                                       
 20071e4:	c4 20 61 90 	st  %g2, [ %g1 + 0x190 ]                       
    return _Thread_Dispatch_disable_level;                            
 20071e8:	c2 00 61 90 	ld  [ %g1 + 0x190 ], %g1                       
                                                                      
  _Thread_Disable_dispatch();                                         
    the_thread->Wait.queue           = &_POSIX_signals_Wait_queue;    
    the_thread->Wait.return_code     = EINTR;                         
 20071ec:	82 10 20 04 	mov  4, %g1                                    
 20071f0:	c2 26 20 34 	st  %g1, [ %i0 + 0x34 ]                        
    the_thread->Wait.option          = *set;                          
 20071f4:	c2 07 40 00 	ld  [ %i5 ], %g1                               
    the_thread->Wait.return_argument = the_info;                      
 20071f8:	f2 26 20 28 	st  %i1, [ %i0 + 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;                          
 20071fc:	c2 26 20 30 	st  %g1, [ %i0 + 0x30 ]                        
                                                                      
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;
 2007200:	b6 10 20 01 	mov  1, %i3                                    
  }                                                                   
                                                                      
  the_info->si_signo = -1;                                            
                                                                      
  _Thread_Disable_dispatch();                                         
    the_thread->Wait.queue           = &_POSIX_signals_Wait_queue;    
 2007204:	23 00 80 6d 	sethi  %hi(0x201b400), %l1                     
 2007208:	a2 14 60 ac 	or  %l1, 0xac, %l1	! 201b4ac <_POSIX_signals_Wait_queue>
 200720c:	e2 26 20 44 	st  %l1, [ %i0 + 0x44 ]                        
 2007210:	f6 24 60 30 	st  %i3, [ %l1 + 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 );                                             
 2007214:	7f ff ed bd 	call  2002908 <sparc_enable_interrupts>        
 2007218:	01 00 00 00 	nop                                            
    _Thread_queue_Enqueue( &_POSIX_signals_Wait_queue, interval );    
 200721c:	90 10 00 11 	mov  %l1, %o0                                  
 2007220:	92 10 00 10 	mov  %l0, %o1                                  
 2007224:	15 00 80 2b 	sethi  %hi(0x200ac00), %o2                     
 2007228:	40 00 0d c1 	call  200a92c <_Thread_queue_Enqueue_with_handler>
 200722c:	94 12 a1 0c 	or  %o2, 0x10c, %o2	! 200ad0c <_Thread_queue_Timeout>
  _Thread_Enable_dispatch();                                          
 2007230:	40 00 0c 74 	call  200a400 <_Thread_Enable_dispatch>        
 2007234:	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 );
 2007238:	d2 06 40 00 	ld  [ %i1 ], %o1                               
 200723c:	90 10 00 1a 	mov  %i2, %o0                                  
 2007240:	94 10 00 19 	mov  %i1, %o2                                  
 2007244:	96 10 20 00 	clr  %o3                                       
 2007248:	40 00 1a 9b 	call  200dcb4 <_POSIX_signals_Clear_signals>   
 200724c:	98 10 20 00 	clr  %o4                                       
  /* Set errno only if return code is not EINTR or                    
   * if EINTR was caused by a signal being caught, which              
   * was not in our set.                                              
   */                                                                 
                                                                      
  if ( (_Thread_Executing->Wait.return_code != EINTR)                 
 2007250:	c2 07 20 0c 	ld  [ %i4 + 0xc ], %g1                         
 2007254:	c2 00 60 34 	ld  [ %g1 + 0x34 ], %g1                        
 2007258:	80 a0 60 04 	cmp  %g1, 4                                    
 200725c:	12 80 00 3b 	bne  2007348 <sigtimedwait+0x1fc>              
 2007260:	01 00 00 00 	nop                                            
       || !(*set & signo_to_mask( the_info->si_signo )) ) {           
 2007264:	f0 06 40 00 	ld  [ %i1 ], %i0                               
 2007268:	c2 07 40 00 	ld  [ %i5 ], %g1                               
 200726c:	84 06 3f ff 	add  %i0, -1, %g2                              
 2007270:	b7 2e c0 02 	sll  %i3, %g2, %i3                             
 2007274:	80 8e c0 01 	btst  %i3, %g1                                 
 2007278:	02 80 00 34 	be  2007348 <sigtimedwait+0x1fc>               
 200727c:	01 00 00 00 	nop                                            
    errno = _Thread_Executing->Wait.return_code;                      
    return -1;                                                        
  }                                                                   
                                                                      
  return the_info->si_signo;                                          
}                                                                     
 2007280:	81 c7 e0 08 	ret                                            
 2007284:	81 e8 00 00 	restore                                        
  }                                                                   
                                                                      
  /* Process pending signals? */                                      
                                                                      
  if ( *set & _POSIX_signals_Pending ) {                              
    signo = _POSIX_signals_Get_lowest( _POSIX_signals_Pending );      
 2007288:	7f ff ff 99 	call  20070ec <_POSIX_signals_Get_lowest>      
 200728c:	90 10 00 02 	mov  %g2, %o0                                  
    _POSIX_signals_Clear_signals( api, signo, the_info, true, false );
 2007290:	94 10 00 19 	mov  %i1, %o2                                  
  }                                                                   
                                                                      
  /* Process pending signals? */                                      
                                                                      
  if ( *set & _POSIX_signals_Pending ) {                              
    signo = _POSIX_signals_Get_lowest( _POSIX_signals_Pending );      
 2007294:	b0 10 00 08 	mov  %o0, %i0                                  
    _POSIX_signals_Clear_signals( api, signo, the_info, true, false );
 2007298:	96 10 20 01 	mov  1, %o3                                    
 200729c:	90 10 00 1a 	mov  %i2, %o0                                  
 20072a0:	92 10 00 18 	mov  %i0, %o1                                  
 20072a4:	40 00 1a 84 	call  200dcb4 <_POSIX_signals_Clear_signals>   
 20072a8:	98 10 20 00 	clr  %o4                                       
    _ISR_Enable( level );                                             
 20072ac:	7f ff ed 97 	call  2002908 <sparc_enable_interrupts>        
 20072b0:	90 10 00 1b 	mov  %i3, %o0                                  
                                                                      
    the_info->si_signo = signo;                                       
    the_info->si_code = SI_USER;                                      
 20072b4:	82 10 20 01 	mov  1, %g1                                    
  if ( *set & _POSIX_signals_Pending ) {                              
    signo = _POSIX_signals_Get_lowest( _POSIX_signals_Pending );      
    _POSIX_signals_Clear_signals( api, signo, the_info, true, false );
    _ISR_Enable( level );                                             
                                                                      
    the_info->si_signo = signo;                                       
 20072b8:	f0 26 40 00 	st  %i0, [ %i1 ]                               
    the_info->si_code = SI_USER;                                      
 20072bc:	c2 26 60 04 	st  %g1, [ %i1 + 4 ]                           
    the_info->si_value.sival_int = 0;                                 
 20072c0:	c0 26 60 08 	clr  [ %i1 + 8 ]                               
    return signo;                                                     
 20072c4:	81 c7 e0 08 	ret                                            
 20072c8:	81 e8 00 00 	restore                                        
                                                                      
  /*                                                                  
   *  Initialize local variables.                                     
   */                                                                 
                                                                      
  the_info = ( info ) ? info : &signal_information;                   
 20072cc:	12 bf ff b2 	bne  2007194 <sigtimedwait+0x48>               
 20072d0:	a0 10 20 00 	clr  %l0                                       
                                                                      
  the_thread = _Thread_Executing;                                     
 20072d4:	39 00 80 6c 	sethi  %hi(0x201b000), %i4                     
 20072d8:	b8 17 22 c8 	or  %i4, 0x2c8, %i4	! 201b2c8 <_Per_CPU_Information>
 20072dc:	f0 07 20 0c 	ld  [ %i4 + 0xc ], %i0                         
                                                                      
  /*                                                                  
   *  Initialize local variables.                                     
   */                                                                 
                                                                      
  the_info = ( info ) ? info : &signal_information;                   
 20072e0:	b2 07 bf f4 	add  %fp, -12, %i1                             
   *  What if they are already pending?                               
   */                                                                 
                                                                      
  /* API signals pending? */                                          
                                                                      
  _ISR_Disable( level );                                              
 20072e4:	7f ff ed 85 	call  20028f8 <sparc_disable_interrupts>       
 20072e8:	f4 06 21 5c 	ld  [ %i0 + 0x15c ], %i2                       
 20072ec:	b6 10 00 08 	mov  %o0, %i3                                  
  if ( *set & api->signals_pending ) {                                
 20072f0:	c2 07 40 00 	ld  [ %i5 ], %g1                               
 20072f4:	c4 06 a0 d4 	ld  [ %i2 + 0xd4 ], %g2                        
 20072f8:	80 88 40 02 	btst  %g1, %g2                                 
 20072fc:	22 bf ff b2 	be,a   20071c4 <sigtimedwait+0x78>             
 2007300:	05 00 80 6d 	sethi  %hi(0x201b400), %g2                     
    /* XXX real info later */                                         
    the_info->si_signo = _POSIX_signals_Get_lowest( api->signals_pending );
 2007304:	7f ff ff 7a 	call  20070ec <_POSIX_signals_Get_lowest>      
 2007308:	90 10 00 02 	mov  %g2, %o0                                  
    _POSIX_signals_Clear_signals(                                     
 200730c:	94 10 00 19 	mov  %i1, %o2                                  
  /* API signals pending? */                                          
                                                                      
  _ISR_Disable( level );                                              
  if ( *set & api->signals_pending ) {                                
    /* XXX real info later */                                         
    the_info->si_signo = _POSIX_signals_Get_lowest( api->signals_pending );
 2007310:	92 10 00 08 	mov  %o0, %o1                                  
 2007314:	d0 26 40 00 	st  %o0, [ %i1 ]                               
    _POSIX_signals_Clear_signals(                                     
 2007318:	96 10 20 00 	clr  %o3                                       
 200731c:	90 10 00 1a 	mov  %i2, %o0                                  
 2007320:	40 00 1a 65 	call  200dcb4 <_POSIX_signals_Clear_signals>   
 2007324:	98 10 20 00 	clr  %o4                                       
      the_info->si_signo,                                             
      the_info,                                                       
      false,                                                          
      false                                                           
    );                                                                
    _ISR_Enable( level );                                             
 2007328:	7f ff ed 78 	call  2002908 <sparc_enable_interrupts>        
 200732c:	90 10 00 1b 	mov  %i3, %o0                                  
                                                                      
    the_info->si_code = SI_USER;                                      
 2007330:	82 10 20 01 	mov  1, %g1                                    
    the_info->si_value.sival_int = 0;                                 
 2007334:	c0 26 60 08 	clr  [ %i1 + 8 ]                               
      false,                                                          
      false                                                           
    );                                                                
    _ISR_Enable( level );                                             
                                                                      
    the_info->si_code = SI_USER;                                      
 2007338:	c2 26 60 04 	st  %g1, [ %i1 + 4 ]                           
    the_info->si_value.sival_int = 0;                                 
    return the_info->si_signo;                                        
 200733c:	f0 06 40 00 	ld  [ %i1 ], %i0                               
 2007340:	81 c7 e0 08 	ret                                            
 2007344:	81 e8 00 00 	restore                                        
   * was not in our set.                                              
   */                                                                 
                                                                      
  if ( (_Thread_Executing->Wait.return_code != EINTR)                 
       || !(*set & signo_to_mask( the_info->si_signo )) ) {           
    errno = _Thread_Executing->Wait.return_code;                      
 2007348:	40 00 26 c8 	call  2010e68 <__errno>                        
 200734c:	b0 10 3f ff 	mov  -1, %i0                                   
 2007350:	c2 07 20 0c 	ld  [ %i4 + 0xc ], %g1                         
 2007354:	c2 00 60 34 	ld  [ %g1 + 0x34 ], %g1                        
 2007358:	c2 22 00 00 	st  %g1, [ %o0 ]                               
    return -1;                                                        
  }                                                                   
                                                                      
  return the_info->si_signo;                                          
}                                                                     
 200735c:	81 c7 e0 08 	ret                                            
 2007360:	81 e8 00 00 	restore                                        
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    interval = _Timespec_To_ticks( timeout );                         
                                                                      
    if ( !interval )                                                  
      rtems_set_errno_and_return_minus_one( EINVAL );                 
 2007364:	40 00 26 c1 	call  2010e68 <__errno>                        
 2007368:	b0 10 3f ff 	mov  -1, %i0                                   
 200736c:	82 10 20 16 	mov  0x16, %g1                                 
 2007370:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2007374:	81 c7 e0 08 	ret                                            
 2007378:	81 e8 00 00 	restore                                        
                                                                      

02008fb0 <sigwait>: int sigwait( const sigset_t *set, int *sig ) {
 2008fb0:	9d e3 bf a0 	save  %sp, -96, %sp                            
  int status;                                                         
                                                                      
  status = sigtimedwait( set, NULL, NULL );                           
 2008fb4:	92 10 20 00 	clr  %o1                                       
 2008fb8:	90 10 00 18 	mov  %i0, %o0                                  
 2008fbc:	7f ff ff 6d 	call  2008d70 <sigtimedwait>                   
 2008fc0:	94 10 20 00 	clr  %o2                                       
                                                                      
  if ( status != -1 ) {                                               
 2008fc4:	80 a2 3f ff 	cmp  %o0, -1                                   
 2008fc8:	02 80 00 07 	be  2008fe4 <sigwait+0x34>                     
 2008fcc:	80 a6 60 00 	cmp  %i1, 0                                    
    if ( sig )                                                        
 2008fd0:	02 80 00 03 	be  2008fdc <sigwait+0x2c>                     <== NEVER TAKEN
 2008fd4:	b0 10 20 00 	clr  %i0                                       
      *sig = status;                                                  
 2008fd8:	d0 26 40 00 	st  %o0, [ %i1 ]                               
 2008fdc:	81 c7 e0 08 	ret                                            
 2008fe0:	81 e8 00 00 	restore                                        
    return 0;                                                         
  }                                                                   
                                                                      
  return errno;                                                       
 2008fe4:	40 00 25 ee 	call  201279c <__errno>                        
 2008fe8:	01 00 00 00 	nop                                            
 2008fec:	f0 02 00 00 	ld  [ %o0 ], %i0                               
}                                                                     
 2008ff0:	81 c7 e0 08 	ret                                            
 2008ff4:	81 e8 00 00 	restore                                        
                                                                      

020051bc <siproc>: /* * Process input character, with semaphore. */ static int siproc (unsigned char c, struct rtems_termios_tty *tty) {
 20051bc:	9d e3 bf a0 	save  %sp, -96, %sp                            
  int i;                                                              
                                                                      
  /*                                                                  
   * Obtain output semaphore if character will be echoed              
   */                                                                 
  if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) {
 20051c0:	c2 06 60 3c 	ld  [ %i1 + 0x3c ], %g1                        
 20051c4:	80 88 6e 78 	btst  0xe78, %g1                               
 20051c8:	32 80 00 04 	bne,a   20051d8 <siproc+0x1c>                  <== ALWAYS TAKEN
 20051cc:	d0 06 60 18 	ld  [ %i1 + 0x18 ], %o0                        
    rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 
    i = iproc (c, tty);                                               
    rtems_semaphore_release (tty->osem);                              
  }                                                                   
  else {                                                              
    i = iproc (c, tty);                                               
 20051d0:	7f ff ff 82 	call  2004fd8 <iproc>                          <== NOT EXECUTED
 20051d4:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      
  /*                                                                  
   * Obtain output semaphore if character will be echoed              
   */                                                                 
  if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) {
    rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 
 20051d8:	94 10 20 00 	clr  %o2                                       
 20051dc:	40 00 05 d9 	call  2006940 <rtems_semaphore_obtain>         
 20051e0:	92 10 20 00 	clr  %o1                                       
    i = iproc (c, tty);                                               
 20051e4:	90 10 00 18 	mov  %i0, %o0                                  
 20051e8:	7f ff ff 7c 	call  2004fd8 <iproc>                          
 20051ec:	92 10 00 19 	mov  %i1, %o1                                  
 20051f0:	b0 10 00 08 	mov  %o0, %i0                                  
    rtems_semaphore_release (tty->osem);                              
 20051f4:	40 00 06 1d 	call  2006a68 <rtems_semaphore_release>        
 20051f8:	d0 06 60 18 	ld  [ %i1 + 0x18 ], %o0                        
  }                                                                   
  else {                                                              
    i = iproc (c, tty);                                               
  }                                                                   
  return i;                                                           
}                                                                     
 20051fc:	81 c7 e0 08 	ret                                            
 2005200:	81 e8 00 00 	restore                                        
                                                                      

020062ec <statvfs>: #include <sys/statvfs.h> int statvfs (const char *path, struct statvfs *sb) {
 20062ec:	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 ) )
 20062f0:	40 00 37 7f 	call  20140ec <strlen>                         
 20062f4:	90 10 00 18 	mov  %i0, %o0                                  
 20062f8:	94 10 20 00 	clr  %o2                                       
 20062fc:	92 10 00 08 	mov  %o0, %o1                                  
 2006300:	96 07 bf ec 	add  %fp, -20, %o3                             
 2006304:	90 10 00 18 	mov  %i0, %o0                                  
 2006308:	98 10 20 01 	mov  1, %o4                                    
 200630c:	7f ff fa ac 	call  2004dbc <rtems_filesystem_evaluate_path> 
 2006310:	b0 10 3f ff 	mov  -1, %i0                                   
 2006314:	80 a2 20 00 	cmp  %o0, 0                                    
 2006318:	12 80 00 0e 	bne  2006350 <statvfs+0x64>                    <== NEVER TAKEN
 200631c:	fa 07 bf fc 	ld  [ %fp + -4 ], %i5                          
    return -1;                                                        
                                                                      
  mt_entry      = loc.mt_entry;                                       
  fs_mount_root = &mt_entry->mt_fs_root;                              
                                                                      
  memset (sb, 0, sizeof (struct statvfs));                            
 2006320:	92 10 20 00 	clr  %o1                                       
 2006324:	94 10 20 38 	mov  0x38, %o2                                 
 2006328:	40 00 32 f2 	call  2012ef0 <memset>                         
 200632c:	90 10 00 19 	mov  %i1, %o0                                  
                                                                      
  result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb );    
 2006330:	c2 07 60 28 	ld  [ %i5 + 0x28 ], %g1                        
 2006334:	92 10 00 19 	mov  %i1, %o1                                  
 2006338:	c2 00 60 44 	ld  [ %g1 + 0x44 ], %g1                        
 200633c:	9f c0 40 00 	call  %g1                                      
 2006340:	90 07 60 1c 	add  %i5, 0x1c, %o0                            
 2006344:	b0 10 00 08 	mov  %o0, %i0                                  
                                                                      
  rtems_filesystem_freenode( &loc );                                  
 2006348:	7f ff fa d7 	call  2004ea4 <rtems_filesystem_freenode>      
 200634c:	90 07 bf ec 	add  %fp, -20, %o0                             
                                                                      
  return result;                                                      
}                                                                     
 2006350:	81 c7 e0 08 	ret                                            
 2006354:	81 e8 00 00 	restore                                        
                                                                      

02004d98 <sync_per_thread>: fdatasync(fn); } /* iterate over all FILE *'s for this thread */ static void sync_per_thread(Thread_Control *t) {
 2004d98:	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;                                        
 2004d9c:	c2 06 21 54 	ld  [ %i0 + 0x154 ], %g1                       
   if ( this_reent ) {                                                
 2004da0:	80 a0 60 00 	cmp  %g1, 0                                    
 2004da4:	02 80 00 0c 	be  2004dd4 <sync_per_thread+0x3c>             <== NEVER TAKEN
 2004da8:	3b 00 80 63 	sethi  %hi(0x2018c00), %i5                     
     current_reent = _Thread_Executing->libc_reent;                   
 2004dac:	ba 17 61 78 	or  %i5, 0x178, %i5	! 2018d78 <_Per_CPU_Information>
 2004db0:	c4 07 60 0c 	ld  [ %i5 + 0xc ], %g2                         
     _Thread_Executing->libc_reent = this_reent;                      
     _fwalk (t->libc_reent, sync_wrapper);                            
 2004db4:	13 00 80 13 	sethi  %hi(0x2004c00), %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;                   
 2004db8:	f8 00 a1 54 	ld  [ %g2 + 0x154 ], %i4                       
     _Thread_Executing->libc_reent = this_reent;                      
 2004dbc:	c2 20 a1 54 	st  %g1, [ %g2 + 0x154 ]                       
     _fwalk (t->libc_reent, sync_wrapper);                            
 2004dc0:	d0 06 21 54 	ld  [ %i0 + 0x154 ], %o0                       
 2004dc4:	40 00 31 9e 	call  201143c <_fwalk>                         
 2004dc8:	92 12 61 dc 	or  %o1, 0x1dc, %o1                            
     _Thread_Executing->libc_reent = current_reent;                   
 2004dcc:	c2 07 60 0c 	ld  [ %i5 + 0xc ], %g1                         
 2004dd0:	f8 20 61 54 	st  %i4, [ %g1 + 0x154 ]                       
 2004dd4:	81 c7 e0 08 	ret                                            
 2004dd8:	81 e8 00 00 	restore                                        
                                                                      

02005f68 <sysconf>: */ long sysconf( int name ) {
 2005f68:	9d e3 bf a0 	save  %sp, -96, %sp                            
  if ( name == _SC_CLK_TCK )                                          
 2005f6c:	80 a6 20 02 	cmp  %i0, 2                                    
 2005f70:	02 80 00 10 	be  2005fb0 <sysconf+0x48>                     
 2005f74:	03 00 80 5c 	sethi  %hi(0x2017000), %g1                     
    return (TOD_MICROSECONDS_PER_SECOND /                             
      rtems_configuration_get_microseconds_per_tick());               
                                                                      
  if ( name == _SC_OPEN_MAX )                                         
 2005f78:	80 a6 20 04 	cmp  %i0, 4                                    
 2005f7c:	02 80 00 0b 	be  2005fa8 <sysconf+0x40>                     
 2005f80:	c2 00 63 44 	ld  [ %g1 + 0x344 ], %g1                       
    return rtems_libio_number_iops;                                   
                                                                      
  if ( name == _SC_GETPW_R_SIZE_MAX )                                 
 2005f84:	80 a6 20 33 	cmp  %i0, 0x33                                 
 2005f88:	02 80 00 08 	be  2005fa8 <sysconf+0x40>                     
 2005f8c:	82 10 24 00 	mov  0x400, %g1                                
    return 1024;                                                      
                                                                      
  if ( name == _SC_PAGESIZE )                                         
 2005f90:	80 a6 20 08 	cmp  %i0, 8                                    
 2005f94:	02 80 00 05 	be  2005fa8 <sysconf+0x40>                     
 2005f98:	03 00 00 04 	sethi  %hi(0x1000), %g1                        
    return PAGE_SIZE;                                                 
                                                                      
#if defined(__sparc__)                                                
  if ( name == 515 ) /* Solaris _SC_STACK_PROT */                     
 2005f9c:	80 a6 22 03 	cmp  %i0, 0x203                                
 2005fa0:	12 80 00 0c 	bne  2005fd0 <sysconf+0x68>                    <== ALWAYS TAKEN
 2005fa4:	82 10 20 00 	clr  %g1                                       
   return 0;                                                          
#endif                                                                
                                                                      
  rtems_set_errno_and_return_minus_one( EINVAL );                     
}                                                                     
 2005fa8:	81 c7 e0 08 	ret                                            
 2005fac:	91 e8 00 01 	restore  %g0, %g1, %o0                         
  int name                                                            
)                                                                     
{                                                                     
  if ( name == _SC_CLK_TCK )                                          
    return (TOD_MICROSECONDS_PER_SECOND /                             
      rtems_configuration_get_microseconds_per_tick());               
 2005fb0:	03 00 80 5c 	sethi  %hi(0x2017000), %g1                     
long sysconf(                                                         
  int name                                                            
)                                                                     
{                                                                     
  if ( name == _SC_CLK_TCK )                                          
    return (TOD_MICROSECONDS_PER_SECOND /                             
 2005fb4:	d2 00 62 08 	ld  [ %g1 + 0x208 ], %o1	! 2017208 <Configuration+0xc>
 2005fb8:	11 00 03 d0 	sethi  %hi(0xf4000), %o0                       
 2005fbc:	40 00 35 c5 	call  20136d0 <.udiv>                          
 2005fc0:	90 12 22 40 	or  %o0, 0x240, %o0	! f4240 <PROM_START+0xf4240>
 2005fc4:	82 10 00 08 	mov  %o0, %g1                                  
  if ( name == 515 ) /* Solaris _SC_STACK_PROT */                     
   return 0;                                                          
#endif                                                                
                                                                      
  rtems_set_errno_and_return_minus_one( EINVAL );                     
}                                                                     
 2005fc8:	81 c7 e0 08 	ret                                            
 2005fcc:	91 e8 00 01 	restore  %g0, %g1, %o0                         
#if defined(__sparc__)                                                
  if ( name == 515 ) /* Solaris _SC_STACK_PROT */                     
   return 0;                                                          
#endif                                                                
                                                                      
  rtems_set_errno_and_return_minus_one( EINVAL );                     
 2005fd0:	40 00 26 79 	call  200f9b4 <__errno>                        
 2005fd4:	01 00 00 00 	nop                                            
 2005fd8:	84 10 20 16 	mov  0x16, %g2	! 16 <PROM_START+0x16>          
 2005fdc:	82 10 3f ff 	mov  -1, %g1                                   
 2005fe0:	10 bf ff f2 	b  2005fa8 <sysconf+0x40>                      
 2005fe4:	c4 22 00 00 	st  %g2, [ %o0 ]                               
                                                                      

0200d324 <tcsetattr>: int tcsetattr( int fd, int opt, struct termios *tp ) {
 200d324:	9d e3 bf a0 	save  %sp, -96, %sp                            
  switch (opt) {                                                      
 200d328:	80 a6 60 00 	cmp  %i1, 0                                    
 200d32c:	02 80 00 10 	be  200d36c <tcsetattr+0x48>                   
 200d330:	80 a6 60 01 	cmp  %i1, 1                                    
 200d334:	22 80 00 08 	be,a   200d354 <tcsetattr+0x30>                
 200d338:	90 10 00 18 	mov  %i0, %o0                                  
  default:                                                            
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
 200d33c:	40 00 10 33 	call  2011408 <__errno>                        
 200d340:	01 00 00 00 	nop                                            
 200d344:	82 10 20 86 	mov  0x86, %g1	! 86 <PROM_START+0x86>          
 200d348:	c2 22 00 00 	st  %g1, [ %o0 ]                               
     * Fall through to....                                            
     */                                                               
  case TCSANOW:                                                       
    return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp );                  
  }                                                                   
}                                                                     
 200d34c:	81 c7 e0 08 	ret                                            
 200d350:	91 e8 3f ff 	restore  %g0, -1, %o0                          
  switch (opt) {                                                      
  default:                                                            
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
                                                                      
  case TCSADRAIN:                                                     
    if (ioctl( fd, RTEMS_IO_TCDRAIN, NULL ) < 0)                      
 200d354:	92 10 20 03 	mov  3, %o1                                    
 200d358:	7f ff fe f8 	call  200cf38 <ioctl>                          
 200d35c:	94 10 20 00 	clr  %o2                                       
 200d360:	80 a2 20 00 	cmp  %o0, 0                                    
 200d364:	06 bf ff fa 	bl  200d34c <tcsetattr+0x28>                   <== NEVER TAKEN
 200d368:	01 00 00 00 	nop                                            
    	return -1;                                                       
    /*                                                                
     * Fall through to....                                            
     */                                                               
  case TCSANOW:                                                       
    return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp );                  
 200d36c:	7f ff fe f3 	call  200cf38 <ioctl>                          
 200d370:	93 e8 20 02 	restore  %g0, 2, %o1                           
                                                                      

0200631c <timer_create>: int timer_create( clockid_t clock_id, struct sigevent *evp, timer_t *timerid ) {
 200631c:	9d e3 bf a0 	save  %sp, -96, %sp                            
  POSIX_Timer_Control *ptimer;                                        
                                                                      
  if ( clock_id != CLOCK_REALTIME )                                   
 2006320:	80 a6 20 01 	cmp  %i0, 1                                    
 2006324:	12 80 00 3e 	bne  200641c <timer_create+0x100>              
 2006328:	80 a6 a0 00 	cmp  %i2, 0                                    
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( !timerid )                                                     
 200632c:	02 80 00 3c 	be  200641c <timer_create+0x100>               
 2006330:	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) {                                                  
 2006334:	02 80 00 0e 	be  200636c <timer_create+0x50>                
 2006338:	03 00 80 79 	sethi  %hi(0x201e400), %g1                     
    /* The structure has data */                                      
    if ( ( evp->sigev_notify != SIGEV_NONE ) &&                       
 200633c:	c2 06 40 00 	ld  [ %i1 ], %g1                               
 2006340:	82 00 7f ff 	add  %g1, -1, %g1                              
 2006344:	80 a0 60 01 	cmp  %g1, 1                                    
 2006348:	18 80 00 35 	bgu  200641c <timer_create+0x100>              <== NEVER TAKEN
 200634c:	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 )                                         
 2006350:	c2 06 60 04 	ld  [ %i1 + 4 ], %g1                           
 2006354:	80 a0 60 00 	cmp  %g1, 0                                    
 2006358:	02 80 00 31 	be  200641c <timer_create+0x100>               <== NEVER TAKEN
 200635c:	82 00 7f ff 	add  %g1, -1, %g1                              
       rtems_set_errno_and_return_minus_one( EINVAL );                
                                                                      
     if ( !is_valid_signo(evp->sigev_signo) )                         
 2006360:	80 a0 60 1f 	cmp  %g1, 0x1f                                 
 2006364:	18 80 00 2e 	bgu  200641c <timer_create+0x100>              <== NEVER TAKEN
 2006368:	03 00 80 79 	sethi  %hi(0x201e400), %g1                     
   *                                                                  
   * This rountine increments the thread dispatch level               
   */                                                                 
  RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
  {                                                                   
    _Thread_Dispatch_disable_level++;                                 
 200636c:	c4 00 60 40 	ld  [ %g1 + 0x40 ], %g2	! 201e440 <_Thread_Dispatch_disable_level>
 2006370:	84 00 a0 01 	inc  %g2                                       
 2006374:	c4 20 60 40 	st  %g2, [ %g1 + 0x40 ]                        
    return _Thread_Dispatch_disable_level;                            
 2006378:	c2 00 60 40 	ld  [ %g1 + 0x40 ], %g1                        
 *  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 );
 200637c:	3b 00 80 79 	sethi  %hi(0x201e400), %i5                     
 2006380:	40 00 08 53 	call  20084cc <_Objects_Allocate>              
 2006384:	90 17 63 40 	or  %i5, 0x340, %o0	! 201e740 <_POSIX_Timer_Information>
                                                                      
  /*                                                                  
   *  Allocate a timer                                                
   */                                                                 
  ptimer = _POSIX_Timer_Allocate();                                   
  if ( !ptimer ) {                                                    
 2006388:	80 a2 20 00 	cmp  %o0, 0                                    
 200638c:	02 80 00 2a 	be  2006434 <timer_create+0x118>               
 2006390:	82 10 20 02 	mov  2, %g1                                    
    rtems_set_errno_and_return_minus_one( EAGAIN );                   
  }                                                                   
                                                                      
  /* The data of the created timer are stored to use them later */    
                                                                      
  ptimer->state     = POSIX_TIMER_STATE_CREATE_NEW;                   
 2006394:	c2 2a 20 3c 	stb  %g1, [ %o0 + 0x3c ]                       
  ptimer->thread_id = _Thread_Executing->Object.id;                   
 2006398:	03 00 80 7a 	sethi  %hi(0x201e800), %g1                     
 200639c:	c2 00 61 84 	ld  [ %g1 + 0x184 ], %g1	! 201e984 <_Per_CPU_Information+0xc>
                                                                      
  if ( evp != NULL ) {                                                
 20063a0:	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;                   
 20063a4:	c2 00 60 08 	ld  [ %g1 + 8 ], %g1                           
                                                                      
  if ( evp != NULL ) {                                                
 20063a8:	02 80 00 08 	be  20063c8 <timer_create+0xac>                
 20063ac:	c2 22 20 38 	st  %g1, [ %o0 + 0x38 ]                        
    ptimer->inf.sigev_notify = evp->sigev_notify;                     
 20063b0:	c6 06 40 00 	ld  [ %i1 ], %g3                               
    ptimer->inf.sigev_signo  = evp->sigev_signo;                      
 20063b4:	c4 06 60 04 	ld  [ %i1 + 4 ], %g2                           
    ptimer->inf.sigev_value  = evp->sigev_value;                      
 20063b8:	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;                     
 20063bc:	c6 22 20 40 	st  %g3, [ %o0 + 0x40 ]                        
    ptimer->inf.sigev_signo  = evp->sigev_signo;                      
 20063c0:	c4 22 20 44 	st  %g2, [ %o0 + 0x44 ]                        
    ptimer->inf.sigev_value  = evp->sigev_value;                      
 20063c4:	c2 22 20 48 	st  %g1, [ %o0 + 0x48 ]                        
  Objects_Information *information,                                   
  Objects_Control     *the_object,                                    
  uint32_t             name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
 20063c8:	c4 12 20 0a 	lduh  [ %o0 + 0xa ], %g2                       
  _Objects_Open_u32(&_POSIX_Timer_Information, &ptimer->Object, 0);   
                                                                      
  *timerid  = ptimer->Object.id;                                      
  _Thread_Enable_dispatch();                                          
  return 0;                                                           
}                                                                     
 20063cc:	ba 17 63 40 	or  %i5, 0x340, %i5                            
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 20063d0:	c6 07 60 1c 	ld  [ %i5 + 0x1c ], %g3                        
    ptimer->inf.sigev_notify = evp->sigev_notify;                     
    ptimer->inf.sigev_signo  = evp->sigev_signo;                      
    ptimer->inf.sigev_value  = evp->sigev_value;                      
  }                                                                   
                                                                      
  ptimer->overrun  = 0;                                               
 20063d4:	c0 22 20 68 	clr  [ %o0 + 0x68 ]                            
  ptimer->timer_data.it_value.tv_sec     = 0;                         
 20063d8:	c0 22 20 5c 	clr  [ %o0 + 0x5c ]                            
  ptimer->timer_data.it_value.tv_nsec    = 0;                         
 20063dc:	c0 22 20 60 	clr  [ %o0 + 0x60 ]                            
  ptimer->timer_data.it_interval.tv_sec  = 0;                         
 20063e0:	c0 22 20 54 	clr  [ %o0 + 0x54 ]                            
  ptimer->timer_data.it_interval.tv_nsec = 0;                         
 20063e4:	c0 22 20 58 	clr  [ %o0 + 0x58 ]                            
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
 20063e8:	c0 22 20 18 	clr  [ %o0 + 0x18 ]                            
  the_watchdog->routine   = routine;                                  
 20063ec:	c0 22 20 2c 	clr  [ %o0 + 0x2c ]                            
  the_watchdog->id        = id;                                       
 20063f0:	c0 22 20 30 	clr  [ %o0 + 0x30 ]                            
  the_watchdog->user_data = user_data;                                
 20063f4:	c0 22 20 34 	clr  [ %o0 + 0x34 ]                            
  Objects_Information *information,                                   
  Objects_Control     *the_object,                                    
  uint32_t             name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
 20063f8:	c2 02 20 08 	ld  [ %o0 + 8 ], %g1                           
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 20063fc:	85 28 a0 02 	sll  %g2, 2, %g2                               
 2006400:	d0 20 c0 02 	st  %o0, [ %g3 + %g2 ]                         
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  /* ASSERT: information->is_string == false */                       
  the_object->name.name_u32 = name;                                   
 2006404:	c0 22 20 0c 	clr  [ %o0 + 0xc ]                             
                                                                      
  _Watchdog_Initialize( &ptimer->Timer, NULL, 0, NULL );              
  _Objects_Open_u32(&_POSIX_Timer_Information, &ptimer->Object, 0);   
                                                                      
  *timerid  = ptimer->Object.id;                                      
 2006408:	c2 26 80 00 	st  %g1, [ %i2 ]                               
  _Thread_Enable_dispatch();                                          
 200640c:	40 00 0d 46 	call  2009924 <_Thread_Enable_dispatch>        
 2006410:	b0 10 20 00 	clr  %i0                                       
  return 0;                                                           
}                                                                     
 2006414:	81 c7 e0 08 	ret                                            
 2006418:	81 e8 00 00 	restore                                        
                                                                      
     if ( !evp->sigev_signo )                                         
       rtems_set_errno_and_return_minus_one( EINVAL );                
                                                                      
     if ( !is_valid_signo(evp->sigev_signo) )                         
       rtems_set_errno_and_return_minus_one( EINVAL );                
 200641c:	40 00 27 91 	call  2010260 <__errno>                        
 2006420:	b0 10 3f ff 	mov  -1, %i0                                   
 2006424:	82 10 20 16 	mov  0x16, %g1                                 
 2006428:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200642c:	81 c7 e0 08 	ret                                            
 2006430:	81 e8 00 00 	restore                                        
  /*                                                                  
   *  Allocate a timer                                                
   */                                                                 
  ptimer = _POSIX_Timer_Allocate();                                   
  if ( !ptimer ) {                                                    
    _Thread_Enable_dispatch();                                        
 2006434:	40 00 0d 3c 	call  2009924 <_Thread_Enable_dispatch>        
 2006438:	b0 10 3f ff 	mov  -1, %i0                                   
    rtems_set_errno_and_return_minus_one( EAGAIN );                   
 200643c:	40 00 27 89 	call  2010260 <__errno>                        
 2006440:	01 00 00 00 	nop                                            
 2006444:	82 10 20 0b 	mov  0xb, %g1	! b <PROM_START+0xb>             
 2006448:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200644c:	81 c7 e0 08 	ret                                            
 2006450:	81 e8 00 00 	restore                                        
                                                                      

02006454 <timer_settime>: timer_t timerid, int flags, const struct itimerspec *value, struct itimerspec *ovalue ) {
 2006454:	9d e3 bf 80 	save  %sp, -128, %sp                           
  Objects_Locations    location;                                      
  bool                 activated;                                     
  uint32_t             initial_period;                                
  struct itimerspec    normalize;                                     
                                                                      
  if ( !value )                                                       
 2006458:	80 a6 a0 00 	cmp  %i2, 0                                    
 200645c:	02 80 00 88 	be  200667c <timer_settime+0x228>              <== NEVER TAKEN
 2006460:	01 00 00 00 	nop                                            
                                                                      
  /*                                                                  
   * First, it verifies if the structure "value" is correct           
   * if the number of nanoseconds is not correct return EINVAL        
   */                                                                 
  if ( !_Timespec_Is_valid( &(value->it_value) ) ) {                  
 2006464:	40 00 10 2b 	call  200a510 <_Timespec_Is_valid>             
 2006468:	90 06 a0 08 	add  %i2, 8, %o0                               
 200646c:	80 8a 20 ff 	btst  0xff, %o0                                
 2006470:	02 80 00 83 	be  200667c <timer_settime+0x228>              
 2006474:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( EINVAL );                   
  }                                                                   
  if ( !_Timespec_Is_valid( &(value->it_interval) ) ) {               
 2006478:	40 00 10 26 	call  200a510 <_Timespec_Is_valid>             
 200647c:	90 10 00 1a 	mov  %i2, %o0                                  
 2006480:	80 8a 20 ff 	btst  0xff, %o0                                
 2006484:	02 80 00 7e 	be  200667c <timer_settime+0x228>              <== NEVER TAKEN
 2006488:	80 a6 60 00 	cmp  %i1, 0                                    
    rtems_set_errno_and_return_minus_one( EINVAL );                   
  }                                                                   
                                                                      
  if ( flags != TIMER_ABSTIME && flags != POSIX_TIMER_RELATIVE ) {    
 200648c:	12 80 00 7a 	bne  2006674 <timer_settime+0x220>             
 2006490:	80 a6 60 04 	cmp  %i1, 4                                    
    rtems_set_errno_and_return_minus_one( EINVAL );                   
  }                                                                   
                                                                      
  normalize = *value;                                                 
 2006494:	c8 06 80 00 	ld  [ %i2 ], %g4                               
 2006498:	c6 06 a0 04 	ld  [ %i2 + 4 ], %g3                           
 200649c:	c4 06 a0 08 	ld  [ %i2 + 8 ], %g2                           
 20064a0:	c2 06 a0 0c 	ld  [ %i2 + 0xc ], %g1                         
 20064a4:	c8 27 bf e4 	st  %g4, [ %fp + -28 ]                         
 20064a8:	c6 27 bf e8 	st  %g3, [ %fp + -24 ]                         
 20064ac:	c4 27 bf ec 	st  %g2, [ %fp + -20 ]                         
                                                                      
  /* Convert absolute to relative time */                             
  if (flags == TIMER_ABSTIME) {                                       
 20064b0:	80 a6 60 04 	cmp  %i1, 4                                    
 20064b4:	02 80 00 3b 	be  20065a0 <timer_settime+0x14c>              
 20064b8:	c2 27 bf f0 	st  %g1, [ %fp + -16 ]                         
RTEMS_INLINE_ROUTINE POSIX_Timer_Control *_POSIX_Timer_Get (          
  timer_t            id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (POSIX_Timer_Control *)                                      
 20064bc:	92 10 00 18 	mov  %i0, %o1                                  
 20064c0:	11 00 80 79 	sethi  %hi(0x201e400), %o0                     
 20064c4:	94 07 bf fc 	add  %fp, -4, %o2                              
 20064c8:	40 00 09 4c 	call  20089f8 <_Objects_Get>                   
 20064cc:	90 12 23 40 	or  %o0, 0x340, %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 ) {                                               
 20064d0:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 20064d4:	80 a0 60 00 	cmp  %g1, 0                                    
 20064d8:	12 80 00 46 	bne  20065f0 <timer_settime+0x19c>             <== NEVER TAKEN
 20064dc:	ba 10 00 08 	mov  %o0, %i5                                  
                                                                      
    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 ) {
 20064e0:	c2 07 bf ec 	ld  [ %fp + -20 ], %g1                         
 20064e4:	80 a0 60 00 	cmp  %g1, 0                                    
 20064e8:	12 80 00 05 	bne  20064fc <timer_settime+0xa8>              
 20064ec:	c2 07 bf f0 	ld  [ %fp + -16 ], %g1                         
 20064f0:	80 a0 60 00 	cmp  %g1, 0                                    
 20064f4:	02 80 00 45 	be  2006608 <timer_settime+0x1b4>              
 20064f8:	01 00 00 00 	nop                                            
        _Thread_Enable_dispatch();                                    
        return 0;                                                     
       }                                                              
                                                                      
       /* Convert from seconds and nanoseconds to ticks */            
       ptimer->ticks  = _Timespec_To_ticks( &value->it_interval );    
 20064fc:	40 00 10 2a 	call  200a5a4 <_Timespec_To_ticks>             
 2006500:	90 10 00 1a 	mov  %i2, %o0                                  
 2006504:	d0 27 60 64 	st  %o0, [ %i5 + 0x64 ]                        
       initial_period = _Timespec_To_ticks( &normalize.it_value );    
 2006508:	40 00 10 27 	call  200a5a4 <_Timespec_To_ticks>             
 200650c:	90 07 bf ec 	add  %fp, -20, %o0                             
                                                                      
                                                                      
       activated = _POSIX_Timer_Insert_helper(                        
 2006510:	d4 07 60 08 	ld  [ %i5 + 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 );    
 2006514:	92 10 00 08 	mov  %o0, %o1                                  
                                                                      
                                                                      
       activated = _POSIX_Timer_Insert_helper(                        
 2006518:	98 10 00 1d 	mov  %i5, %o4                                  
 200651c:	90 07 60 10 	add  %i5, 0x10, %o0                            
 2006520:	17 00 80 19 	sethi  %hi(0x2006400), %o3                     
 2006524:	40 00 1b c5 	call  200d438 <_POSIX_Timer_Insert_helper>     
 2006528:	96 12 e2 94 	or  %o3, 0x294, %o3	! 2006694 <_POSIX_Timer_TSR>
         initial_period,                                              
         ptimer->Object.id,                                           
         _POSIX_Timer_TSR,                                            
         ptimer                                                       
       );                                                             
       if ( !activated ) {                                            
 200652c:	80 8a 20 ff 	btst  0xff, %o0                                
 2006530:	02 80 00 18 	be  2006590 <timer_settime+0x13c>              
 2006534:	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 )                                                  
 2006538:	02 80 00 0b 	be  2006564 <timer_settime+0x110>              
 200653c:	c2 07 bf e4 	ld  [ %fp + -28 ], %g1                         
         *ovalue = ptimer->timer_data;                                
 2006540:	c2 07 60 54 	ld  [ %i5 + 0x54 ], %g1                        
 2006544:	c2 26 c0 00 	st  %g1, [ %i3 ]                               
 2006548:	c2 07 60 58 	ld  [ %i5 + 0x58 ], %g1                        
 200654c:	c2 26 e0 04 	st  %g1, [ %i3 + 4 ]                           
 2006550:	c2 07 60 5c 	ld  [ %i5 + 0x5c ], %g1                        
 2006554:	c2 26 e0 08 	st  %g1, [ %i3 + 8 ]                           
 2006558:	c2 07 60 60 	ld  [ %i5 + 0x60 ], %g1                        
 200655c:	c2 26 e0 0c 	st  %g1, [ %i3 + 0xc ]                         
       ptimer->timer_data = normalize;                                
 2006560:	c2 07 bf e4 	ld  [ %fp + -28 ], %g1                         
                                                                      
       /* Indicate that the time is running */                        
       ptimer->state = POSIX_TIMER_STATE_CREATE_RUN;                  
       _TOD_Get( &ptimer->time );                                     
 2006564:	90 07 60 6c 	add  %i5, 0x6c, %o0                            
        * The timer has been started and is running.  So we return the
        * old ones in "ovalue"                                        
        */                                                            
       if ( ovalue )                                                  
         *ovalue = ptimer->timer_data;                                
       ptimer->timer_data = normalize;                                
 2006568:	c2 27 60 54 	st  %g1, [ %i5 + 0x54 ]                        
 200656c:	c2 07 bf e8 	ld  [ %fp + -24 ], %g1                         
 2006570:	c2 27 60 58 	st  %g1, [ %i5 + 0x58 ]                        
 2006574:	c2 07 bf ec 	ld  [ %fp + -20 ], %g1                         
 2006578:	c2 27 60 5c 	st  %g1, [ %i5 + 0x5c ]                        
 200657c:	c2 07 bf f0 	ld  [ %fp + -16 ], %g1                         
 2006580:	c2 27 60 60 	st  %g1, [ %i5 + 0x60 ]                        
                                                                      
       /* Indicate that the time is running */                        
       ptimer->state = POSIX_TIMER_STATE_CREATE_RUN;                  
 2006584:	82 10 20 03 	mov  3, %g1                                    
       _TOD_Get( &ptimer->time );                                     
 2006588:	40 00 06 47 	call  2007ea4 <_TOD_Get>                       
 200658c:	c2 2f 60 3c 	stb  %g1, [ %i5 + 0x3c ]                       
       _Thread_Enable_dispatch();                                     
 2006590:	40 00 0c e5 	call  2009924 <_Thread_Enable_dispatch>        
 2006594:	b0 10 20 00 	clr  %i0                                       
       return 0;                                                      
 2006598:	81 c7 e0 08 	ret                                            
 200659c:	81 e8 00 00 	restore                                        
  normalize = *value;                                                 
                                                                      
  /* Convert absolute to relative time */                             
  if (flags == TIMER_ABSTIME) {                                       
    struct timespec now;                                              
    _TOD_Get( &now );                                                 
 20065a0:	40 00 06 41 	call  2007ea4 <_TOD_Get>                       
 20065a4:	90 07 bf f4 	add  %fp, -12, %o0                             
    /* Check for seconds in the past */                               
    if ( _Timespec_Greater_than( &now, &normalize.it_value ) )        
 20065a8:	90 07 bf f4 	add  %fp, -12, %o0                             
 20065ac:	40 00 0f c7 	call  200a4c8 <_Timespec_Greater_than>         
 20065b0:	92 07 bf ec 	add  %fp, -20, %o1                             
 20065b4:	80 8a 20 ff 	btst  0xff, %o0                                
 20065b8:	12 80 00 31 	bne  200667c <timer_settime+0x228>             
 20065bc:	92 07 bf ec 	add  %fp, -20, %o1                             
      rtems_set_errno_and_return_minus_one( EINVAL );                 
    _Timespec_Subtract( &now, &normalize.it_value, &normalize.it_value );
 20065c0:	90 07 bf f4 	add  %fp, -12, %o0                             
 20065c4:	40 00 0f e4 	call  200a554 <_Timespec_Subtract>             
 20065c8:	94 10 00 09 	mov  %o1, %o2                                  
 20065cc:	92 10 00 18 	mov  %i0, %o1                                  
 20065d0:	11 00 80 79 	sethi  %hi(0x201e400), %o0                     
 20065d4:	94 07 bf fc 	add  %fp, -4, %o2                              
 20065d8:	40 00 09 08 	call  20089f8 <_Objects_Get>                   
 20065dc:	90 12 23 40 	or  %o0, 0x340, %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 ) {                                               
 20065e0:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 20065e4:	80 a0 60 00 	cmp  %g1, 0                                    
 20065e8:	02 bf ff be 	be  20064e0 <timer_settime+0x8c>               
 20065ec:	ba 10 00 08 	mov  %o0, %i5                                  
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  rtems_set_errno_and_return_minus_one( EINVAL );                     
 20065f0:	40 00 27 1c 	call  2010260 <__errno>                        
 20065f4:	b0 10 3f ff 	mov  -1, %i0                                   
 20065f8:	82 10 20 16 	mov  0x16, %g1                                 
 20065fc:	c2 22 00 00 	st  %g1, [ %o0 ]                               
}                                                                     
 2006600:	81 c7 e0 08 	ret                                            
 2006604:	81 e8 00 00 	restore                                        
                                                                      
    case OBJECTS_LOCAL:                                               
      /* First, it verifies if the timer must be stopped */           
      if ( normalize.it_value.tv_sec == 0 && normalize.it_value.tv_nsec == 0 ) {
         /* Stop the timer */                                         
         (void) _Watchdog_Remove( &ptimer->Timer );                   
 2006608:	40 00 11 29 	call  200aaac <_Watchdog_Remove>               
 200660c:	90 02 20 10 	add  %o0, 0x10, %o0                            
         /* The old data of the timer are returned */                 
         if ( ovalue )                                                
 2006610:	80 a6 e0 00 	cmp  %i3, 0                                    
 2006614:	02 80 00 0b 	be  2006640 <timer_settime+0x1ec>              
 2006618:	c2 07 bf e4 	ld  [ %fp + -28 ], %g1                         
           *ovalue = ptimer->timer_data;                              
 200661c:	c2 07 60 54 	ld  [ %i5 + 0x54 ], %g1                        
 2006620:	c2 26 c0 00 	st  %g1, [ %i3 ]                               
 2006624:	c2 07 60 58 	ld  [ %i5 + 0x58 ], %g1                        
 2006628:	c2 26 e0 04 	st  %g1, [ %i3 + 4 ]                           
 200662c:	c2 07 60 5c 	ld  [ %i5 + 0x5c ], %g1                        
 2006630:	c2 26 e0 08 	st  %g1, [ %i3 + 8 ]                           
 2006634:	c2 07 60 60 	ld  [ %i5 + 0x60 ], %g1                        
 2006638:	c2 26 e0 0c 	st  %g1, [ %i3 + 0xc ]                         
         /* The new data are set */                                   
         ptimer->timer_data = normalize;                              
 200663c:	c2 07 bf e4 	ld  [ %fp + -28 ], %g1                         
         /* Indicates that the timer is created and stopped */        
         ptimer->state = POSIX_TIMER_STATE_CREATE_STOP;               
         /* Returns with success */                                   
        _Thread_Enable_dispatch();                                    
        return 0;                                                     
 2006640:	b0 10 20 00 	clr  %i0                                       
         (void) _Watchdog_Remove( &ptimer->Timer );                   
         /* The old data of the timer are returned */                 
         if ( ovalue )                                                
           *ovalue = ptimer->timer_data;                              
         /* The new data are set */                                   
         ptimer->timer_data = normalize;                              
 2006644:	c2 27 60 54 	st  %g1, [ %i5 + 0x54 ]                        
 2006648:	c2 07 bf e8 	ld  [ %fp + -24 ], %g1                         
 200664c:	c2 27 60 58 	st  %g1, [ %i5 + 0x58 ]                        
 2006650:	c2 07 bf ec 	ld  [ %fp + -20 ], %g1                         
 2006654:	c2 27 60 5c 	st  %g1, [ %i5 + 0x5c ]                        
 2006658:	c2 07 bf f0 	ld  [ %fp + -16 ], %g1                         
 200665c:	c2 27 60 60 	st  %g1, [ %i5 + 0x60 ]                        
         /* Indicates that the timer is created and stopped */        
         ptimer->state = POSIX_TIMER_STATE_CREATE_STOP;               
 2006660:	82 10 20 04 	mov  4, %g1                                    
         /* Returns with success */                                   
        _Thread_Enable_dispatch();                                    
 2006664:	40 00 0c b0 	call  2009924 <_Thread_Enable_dispatch>        
 2006668:	c2 2f 60 3c 	stb  %g1, [ %i5 + 0x3c ]                       
        return 0;                                                     
 200666c:	81 c7 e0 08 	ret                                            
 2006670:	81 e8 00 00 	restore                                        
  }                                                                   
  if ( !_Timespec_Is_valid( &(value->it_interval) ) ) {               
    rtems_set_errno_and_return_minus_one( EINVAL );                   
  }                                                                   
                                                                      
  if ( flags != TIMER_ABSTIME && flags != POSIX_TIMER_RELATIVE ) {    
 2006674:	22 bf ff 89 	be,a   2006498 <timer_settime+0x44>            
 2006678:	c8 06 80 00 	ld  [ %i2 ], %g4                               
  if (flags == TIMER_ABSTIME) {                                       
    struct timespec now;                                              
    _TOD_Get( &now );                                                 
    /* Check for seconds in the past */                               
    if ( _Timespec_Greater_than( &now, &normalize.it_value ) )        
      rtems_set_errno_and_return_minus_one( EINVAL );                 
 200667c:	40 00 26 f9 	call  2010260 <__errno>                        
 2006680:	b0 10 3f ff 	mov  -1, %i0                                   
 2006684:	82 10 20 16 	mov  0x16, %g1                                 
 2006688:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200668c:	81 c7 e0 08 	ret                                            
 2006690:	81 e8 00 00 	restore                                        
                                                                      

020062f0 <ualarm>: useconds_t ualarm( useconds_t useconds, useconds_t interval ) {
 20062f0:	9d e3 bf 98 	save  %sp, -104, %sp                           
                                                                      
  /*                                                                  
   *  Initialize the timer used to implement alarm().                 
   */                                                                 
                                                                      
  if ( !the_timer->routine ) {                                        
 20062f4:	3b 00 80 66 	sethi  %hi(0x2019800), %i5                     
 20062f8:	ba 17 60 08 	or  %i5, 8, %i5	! 2019808 <_POSIX_signals_Ualarm_timer>
 20062fc:	c2 07 60 1c 	ld  [ %i5 + 0x1c ], %g1                        
 2006300:	80 a0 60 00 	cmp  %g1, 0                                    
 2006304:	02 80 00 24 	be  2006394 <ualarm+0xa4>                      
 2006308:	b8 10 00 18 	mov  %i0, %i4                                  
    _Watchdog_Initialize( the_timer, _POSIX_signals_Ualarm_TSR, 0, NULL );
  } else {                                                            
    Watchdog_States state;                                            
                                                                      
    state = _Watchdog_Remove( the_timer );                            
 200630c:	40 00 10 d9 	call  200a670 <_Watchdog_Remove>               
 2006310:	90 10 00 1d 	mov  %i5, %o0                                  
    if ( (state == WATCHDOG_ACTIVE) || (state == WATCHDOG_REMOVE_IT) ) {
 2006314:	90 02 3f fe 	add  %o0, -2, %o0                              
 2006318:	80 a2 20 01 	cmp  %o0, 1                                    
 200631c:	08 80 00 26 	bleu  20063b4 <ualarm+0xc4>                    <== ALWAYS TAKEN
 2006320:	b0 10 20 00 	clr  %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 ) {                                                   
 2006324:	80 a7 20 00 	cmp  %i4, 0                                    
 2006328:	02 80 00 19 	be  200638c <ualarm+0x9c>                      
 200632c:	37 00 03 d0 	sethi  %hi(0xf4000), %i3                       
    Watchdog_Interval ticks;                                          
                                                                      
    tp.tv_sec = useconds / TOD_MICROSECONDS_PER_SECOND;               
 2006330:	90 10 00 1c 	mov  %i4, %o0                                  
 2006334:	40 00 3a 20 	call  2014bb4 <.udiv>                          
 2006338:	92 16 e2 40 	or  %i3, 0x240, %o1                            
    tp.tv_nsec = (useconds % TOD_MICROSECONDS_PER_SECOND) * 1000;     
 200633c:	92 16 e2 40 	or  %i3, 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;               
 2006340:	d0 27 bf f8 	st  %o0, [ %fp + -8 ]                          
    tp.tv_nsec = (useconds % TOD_MICROSECONDS_PER_SECOND) * 1000;     
 2006344:	40 00 3a c8 	call  2014e64 <.urem>                          
 2006348:	90 10 00 1c 	mov  %i4, %o0                                  
 200634c:	87 2a 20 07 	sll  %o0, 7, %g3                               
 2006350:	82 10 00 08 	mov  %o0, %g1                                  
 2006354:	85 2a 20 02 	sll  %o0, 2, %g2                               
 2006358:	84 20 c0 02 	sub  %g3, %g2, %g2                             
 200635c:	82 00 80 01 	add  %g2, %g1, %g1                             
 2006360:	83 28 60 03 	sll  %g1, 3, %g1                               
    ticks = _Timespec_To_ticks( &tp );                                
 2006364:	90 07 bf f8 	add  %fp, -8, %o0                              
 2006368:	40 00 0f 51 	call  200a0ac <_Timespec_To_ticks>             
 200636c:	c2 27 bf fc 	st  %g1, [ %fp + -4 ]                          
    if ( ticks == 0 )                                                 
      ticks = 1;                                                      
                                                                      
    _Watchdog_Insert_ticks( the_timer, _Timespec_To_ticks( &tp ) );   
 2006370:	40 00 0f 4f 	call  200a0ac <_Timespec_To_ticks>             
 2006374:	90 07 bf f8 	add  %fp, -8, %o0                              
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 2006378:	92 10 00 1d 	mov  %i5, %o1                                  
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
 200637c:	d0 27 60 0c 	st  %o0, [ %i5 + 0xc ]                         
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 2006380:	11 00 80 63 	sethi  %hi(0x2018c00), %o0                     
 2006384:	40 00 10 59 	call  200a4e8 <_Watchdog_Insert>               
 2006388:	90 12 23 bc 	or  %o0, 0x3bc, %o0	! 2018fbc <_Watchdog_Ticks_chain>
  }                                                                   
                                                                      
  return remaining;                                                   
}                                                                     
 200638c:	81 c7 e0 08 	ret                                            
 2006390:	81 e8 00 00 	restore                                        
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
 2006394:	03 00 80 18 	sethi  %hi(0x2006000), %g1                     
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
 2006398:	c0 27 60 08 	clr  [ %i5 + 8 ]                               
  the_watchdog->routine   = routine;                                  
 200639c:	82 10 62 c4 	or  %g1, 0x2c4, %g1                            
  the_watchdog->id        = id;                                       
 20063a0:	c0 27 60 20 	clr  [ %i5 + 0x20 ]                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
 20063a4:	c2 27 60 1c 	st  %g1, [ %i5 + 0x1c ]                        
  the_watchdog->id        = id;                                       
  the_watchdog->user_data = user_data;                                
 20063a8:	c0 27 60 24 	clr  [ %i5 + 0x24 ]                            
useconds_t ualarm(                                                    
  useconds_t useconds,                                                
  useconds_t interval                                                 
)                                                                     
{                                                                     
  useconds_t        remaining = 0;                                    
 20063ac:	10 bf ff de 	b  2006324 <ualarm+0x34>                       
 20063b0:	b0 10 20 00 	clr  %i0                                       
       *  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);        
 20063b4:	c4 07 60 0c 	ld  [ %i5 + 0xc ], %g2                         
 20063b8:	c2 07 60 18 	ld  [ %i5 + 0x18 ], %g1                        
 20063bc:	d0 07 60 14 	ld  [ %i5 + 0x14 ], %o0                        
      /* remaining is now in ticks */                                 
                                                                      
      _Timespec_From_ticks( ticks, &tp );                             
 20063c0:	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);        
 20063c4:	90 02 00 02 	add  %o0, %g2, %o0                             
      /* remaining is now in ticks */                                 
                                                                      
      _Timespec_From_ticks( ticks, &tp );                             
 20063c8:	40 00 0f 10 	call  200a008 <_Timespec_From_ticks>           
 20063cc:	90 22 00 01 	sub  %o0, %g1, %o0                             
      remaining  = tp.tv_sec * TOD_MICROSECONDS_PER_SECOND;           
 20063d0:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
      remaining += tp.tv_nsec / 1000;                                 
 20063d4:	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;           
 20063d8:	85 28 60 03 	sll  %g1, 3, %g2                               
 20063dc:	87 28 60 08 	sll  %g1, 8, %g3                               
 20063e0:	84 20 c0 02 	sub  %g3, %g2, %g2                             
      remaining += tp.tv_nsec / 1000;                                 
 20063e4:	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;           
 20063e8:	b1 28 a0 06 	sll  %g2, 6, %i0                               
 20063ec:	b0 26 00 02 	sub  %i0, %g2, %i0                             
      remaining += tp.tv_nsec / 1000;                                 
 20063f0:	40 00 39 f3 	call  2014bbc <.div>                           
 20063f4:	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;           
 20063f8:	b1 2e 20 06 	sll  %i0, 6, %i0                               
      remaining += tp.tv_nsec / 1000;                                 
 20063fc:	10 bf ff ca 	b  2006324 <ualarm+0x34>                       
 2006400:	b0 02 00 18 	add  %o0, %i0, %i0                             
                                                                      

020069a4 <unlink>: #include <rtems/seterr.h> int unlink( const char *path ) {
 20069a4:	9d e3 bf 70 	save  %sp, -144, %sp                           
                                                                      
  /*                                                                  
   * Get the node to be unlinked. Find the parent path first.         
   */                                                                 
                                                                      
  parentpathlen = rtems_filesystem_dirname ( path );                  
 20069a8:	90 10 00 18 	mov  %i0, %o0                                  
 20069ac:	7f ff f3 f3 	call  2003978 <rtems_filesystem_dirname>       
 20069b0:	ba 10 00 18 	mov  %i0, %i5                                  
                                                                      
  if ( parentpathlen == 0 )                                           
 20069b4:	80 a2 20 00 	cmp  %o0, 0                                    
 20069b8:	12 80 00 29 	bne  2006a5c <unlink+0xb8>                     
 20069bc:	b6 10 00 08 	mov  %o0, %i3                                  
    rtems_filesystem_get_start_loc( path, &i, &parentloc );           
 20069c0:	b8 07 bf d4 	add  %fp, -44, %i4                             
 20069c4:	90 10 00 18 	mov  %i0, %o0                                  
 20069c8:	92 07 bf fc 	add  %fp, -4, %o1                              
 20069cc:	94 10 00 1c 	mov  %i4, %o2                                  
 20069d0:	7f ff f8 2d 	call  2004a84 <rtems_filesystem_get_start_loc> 
 20069d4:	b6 10 20 00 	clr  %i3                                       
  const char                       *name;                             
  rtems_filesystem_location_info_t  parentloc;                        
  rtems_filesystem_location_info_t  loc;                              
  int                               i;                                
  int                               result;                           
  bool                              free_parentloc = false;           
 20069d8:	b4 10 20 00 	clr  %i2                                       
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  loc = parentloc;                                                    
 20069dc:	c2 07 bf d4 	ld  [ %fp + -44 ], %g1                         
  name = path + parentpathlen;                                        
 20069e0:	ba 07 40 1b 	add  %i5, %i3, %i5                             
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  loc = parentloc;                                                    
 20069e4:	c2 27 bf e8 	st  %g1, [ %fp + -24 ]                         
 20069e8:	c2 07 bf d8 	ld  [ %fp + -40 ], %g1                         
  name = path + parentpathlen;                                        
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
 20069ec:	90 10 00 1d 	mov  %i5, %o0                                  
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  loc = parentloc;                                                    
 20069f0:	c2 27 bf ec 	st  %g1, [ %fp + -20 ]                         
 20069f4:	c2 07 bf dc 	ld  [ %fp + -36 ], %g1                         
 20069f8:	c2 27 bf f0 	st  %g1, [ %fp + -16 ]                         
 20069fc:	c2 07 bf e0 	ld  [ %fp + -32 ], %g1                         
 2006a00:	c2 27 bf f4 	st  %g1, [ %fp + -12 ]                         
 2006a04:	c2 07 bf e4 	ld  [ %fp + -28 ], %g1                         
  name = path + parentpathlen;                                        
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
 2006a08:	40 00 36 ec 	call  20145b8 <strlen>                         
 2006a0c:	c2 27 bf f8 	st  %g1, [ %fp + -8 ]                          
 2006a10:	92 10 00 08 	mov  %o0, %o1                                  
 2006a14:	7f ff f3 e8 	call  20039b4 <rtems_filesystem_prefix_separators>
 2006a18:	90 10 00 1d 	mov  %i5, %o0                                  
 2006a1c:	ba 07 40 08 	add  %i5, %o0, %i5                             
                                                                      
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
 2006a20:	40 00 36 e6 	call  20145b8 <strlen>                         
 2006a24:	90 10 00 1d 	mov  %i5, %o0                                  
 2006a28:	94 10 20 00 	clr  %o2                                       
 2006a2c:	92 10 00 08 	mov  %o0, %o1                                  
 2006a30:	96 07 bf e8 	add  %fp, -24, %o3                             
 2006a34:	90 10 00 1d 	mov  %i5, %o0                                  
 2006a38:	7f ff f3 a4 	call  20038c8 <rtems_filesystem_evaluate_relative_path>
 2006a3c:	98 10 20 00 	clr  %o4                                       
                                                    0, &loc, false ); 
  if ( result != 0 ) {                                                
 2006a40:	80 a2 20 00 	cmp  %o0, 0                                    
 2006a44:	02 80 00 17 	be  2006aa0 <unlink+0xfc>                      
 2006a48:	80 8e a0 ff 	btst  0xff, %i2                                
    if ( free_parentloc )                                             
 2006a4c:	12 80 00 11 	bne  2006a90 <unlink+0xec>                     <== ALWAYS TAKEN
 2006a50:	b0 10 3f ff 	mov  -1, %i0                                   
  rtems_filesystem_freenode( &loc );                                  
  if ( free_parentloc )                                               
    rtems_filesystem_freenode( &parentloc );                          
                                                                      
  return result;                                                      
}                                                                     
 2006a54:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 2006a58:	81 e8 00 00 	restore                                        <== NOT EXECUTED
  parentpathlen = rtems_filesystem_dirname ( path );                  
                                                                      
  if ( parentpathlen == 0 )                                           
    rtems_filesystem_get_start_loc( path, &i, &parentloc );           
  else {                                                              
    result = rtems_filesystem_evaluate_path( path, parentpathlen,     
 2006a5c:	b8 07 bf d4 	add  %fp, -44, %i4                             
 2006a60:	90 10 00 18 	mov  %i0, %o0                                  
 2006a64:	92 10 00 1b 	mov  %i3, %o1                                  
 2006a68:	94 10 20 02 	mov  2, %o2                                    
 2006a6c:	96 10 00 1c 	mov  %i4, %o3                                  
 2006a70:	98 10 20 00 	clr  %o4                                       
 2006a74:	7f ff f3 b2 	call  200393c <rtems_filesystem_evaluate_path> 
 2006a78:	b0 10 3f ff 	mov  -1, %i0                                   
                                             RTEMS_LIBIO_PERMS_WRITE, 
                                             &parentloc,              
                                             false );                 
    if ( result != 0 )                                                
 2006a7c:	80 a2 20 00 	cmp  %o0, 0                                    
 2006a80:	12 bf ff f5 	bne  2006a54 <unlink+0xb0>                     <== NEVER TAKEN
 2006a84:	b4 10 20 01 	mov  1, %i2                                    
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  loc = parentloc;                                                    
 2006a88:	10 bf ff d6 	b  20069e0 <unlink+0x3c>                       
 2006a8c:	c2 07 bf d4 	ld  [ %fp + -44 ], %g1                         
                                                                      
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
                                                    0, &loc, false ); 
  if ( result != 0 ) {                                                
    if ( free_parentloc )                                             
      rtems_filesystem_freenode( &parentloc );                        
 2006a90:	7f ff f3 e5 	call  2003a24 <rtems_filesystem_freenode>      
 2006a94:	90 10 00 1c 	mov  %i4, %o0                                  
 2006a98:	81 c7 e0 08 	ret                                            
 2006a9c:	81 e8 00 00 	restore                                        
    return -1;                                                        
  }                                                                   
                                                                      
  if (  (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) {
 2006aa0:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         
 2006aa4:	c2 00 60 10 	ld  [ %g1 + 0x10 ], %g1                        
 2006aa8:	9f c0 40 00 	call  %g1                                      
 2006aac:	90 07 bf e8 	add  %fp, -24, %o0                             
 2006ab0:	80 a2 20 01 	cmp  %o0, 1                                    
 2006ab4:	02 80 00 10 	be  2006af4 <unlink+0x150>                     
 2006ab8:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         
    if ( free_parentloc )                                             
      rtems_filesystem_freenode( &parentloc );                        
    rtems_set_errno_and_return_minus_one( EISDIR );                   
  }                                                                   
                                                                      
  result = (*loc.ops->unlink_h)( &parentloc, &loc );                  
 2006abc:	92 07 bf e8 	add  %fp, -24, %o1                             
 2006ac0:	c2 00 60 0c 	ld  [ %g1 + 0xc ], %g1                         
 2006ac4:	9f c0 40 00 	call  %g1                                      
 2006ac8:	90 10 00 1c 	mov  %i4, %o0                                  
 2006acc:	b0 10 00 08 	mov  %o0, %i0                                  
                                                                      
  rtems_filesystem_freenode( &loc );                                  
 2006ad0:	7f ff f3 d5 	call  2003a24 <rtems_filesystem_freenode>      
 2006ad4:	90 07 bf e8 	add  %fp, -24, %o0                             
  if ( free_parentloc )                                               
 2006ad8:	80 8e a0 ff 	btst  0xff, %i2                                
 2006adc:	02 80 00 11 	be  2006b20 <unlink+0x17c>                     
 2006ae0:	01 00 00 00 	nop                                            
    rtems_filesystem_freenode( &parentloc );                          
 2006ae4:	7f ff f3 d0 	call  2003a24 <rtems_filesystem_freenode>      
 2006ae8:	90 10 00 1c 	mov  %i4, %o0                                  
                                                                      
  return result;                                                      
}                                                                     
 2006aec:	81 c7 e0 08 	ret                                            
 2006af0:	81 e8 00 00 	restore                                        
      rtems_filesystem_freenode( &parentloc );                        
    return -1;                                                        
  }                                                                   
                                                                      
  if (  (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) {
    rtems_filesystem_freenode( &loc );                                
 2006af4:	7f ff f3 cc 	call  2003a24 <rtems_filesystem_freenode>      
 2006af8:	90 07 bf e8 	add  %fp, -24, %o0                             
    if ( free_parentloc )                                             
 2006afc:	80 8e a0 ff 	btst  0xff, %i2                                
 2006b00:	02 80 00 04 	be  2006b10 <unlink+0x16c>                     
 2006b04:	01 00 00 00 	nop                                            
      rtems_filesystem_freenode( &parentloc );                        
 2006b08:	7f ff f3 c7 	call  2003a24 <rtems_filesystem_freenode>      
 2006b0c:	90 10 00 1c 	mov  %i4, %o0                                  
    rtems_set_errno_and_return_minus_one( EISDIR );                   
 2006b10:	40 00 33 3a 	call  20137f8 <__errno>                        
 2006b14:	b0 10 3f ff 	mov  -1, %i0                                   
 2006b18:	82 10 20 15 	mov  0x15, %g1                                 
 2006b1c:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2006b20:	81 c7 e0 08 	ret                                            
 2006b24:	81 e8 00 00 	restore                                        
                                                                      

02005e20 <unmount>: */ int unmount( const char *path ) {
 2005e20:	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 ) )
 2005e24:	40 00 29 5c 	call  2010394 <strlen>                         
 2005e28:	90 10 00 18 	mov  %i0, %o0                                  
 2005e2c:	94 10 20 00 	clr  %o2                                       
 2005e30:	92 10 00 08 	mov  %o0, %o1                                  
 2005e34:	96 07 bf ec 	add  %fp, -20, %o3                             
 2005e38:	90 10 00 18 	mov  %i0, %o0                                  
 2005e3c:	7f ff f3 56 	call  2002b94 <rtems_filesystem_evaluate_path> 
 2005e40:	98 10 20 01 	mov  1, %o4                                    
 2005e44:	80 a2 20 00 	cmp  %o0, 0                                    
 2005e48:	12 80 00 53 	bne  2005f94 <unmount+0x174>                   
 2005e4c:	fa 07 bf fc 	ld  [ %fp + -4 ], %i5                          
                                                                      
  /*                                                                  
   * Verify this is the root node for the file system to be unmounted.
   */                                                                 
                                                                      
  if ( fs_root_loc->node_access != loc.node_access ){                 
 2005e50:	c2 07 bf ec 	ld  [ %fp + -20 ], %g1                         
 2005e54:	c4 07 60 1c 	ld  [ %i5 + 0x1c ], %g2                        
 2005e58:	80 a0 80 01 	cmp  %g2, %g1                                  
 2005e5c:	12 80 00 3c 	bne  2005f4c <unmount+0x12c>                   
 2005e60:	90 07 bf ec 	add  %fp, -20, %o0                             
                                                                      
  /*                                                                  
   * Free the loc node and just use the nodes from the mt_entry .     
   */                                                                 
                                                                      
  rtems_filesystem_freenode( &loc );                                  
 2005e64:	7f ff f3 86 	call  2002c7c <rtems_filesystem_freenode>      
 2005e68:	01 00 00 00 	nop                                            
   *        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 )                
 2005e6c:	03 00 80 58 	sethi  %hi(0x2016000), %g1                     
 2005e70:	c2 00 63 00 	ld  [ %g1 + 0x300 ], %g1	! 2016300 <rtems_current_user_env>
 2005e74:	c2 00 60 14 	ld  [ %g1 + 0x14 ], %g1                        
 2005e78:	80 a0 40 1d 	cmp  %g1, %i5                                  
 2005e7c:	02 80 00 40 	be  2005f7c <unmount+0x15c>                    
 2005e80:	11 00 80 17 	sethi  %hi(0x2005c00), %o0                     
                                                                      
  /*                                                                  
   *  Verify there are no file systems below the path specified       
   */                                                                 
                                                                      
  if ( rtems_filesystem_mount_iterate( is_fs_below_mount_point,       
 2005e84:	d2 07 60 2c 	ld  [ %i5 + 0x2c ], %o1                        
 2005e88:	7f ff f5 9a 	call  20034f0 <rtems_filesystem_mount_iterate> 
 2005e8c:	90 12 22 0c 	or  %o0, 0x20c, %o0                            
 2005e90:	80 8a 20 ff 	btst  0xff, %o0                                
 2005e94:	12 80 00 3a 	bne  2005f7c <unmount+0x15c>                   
 2005e98:	01 00 00 00 	nop                                            
   *  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 )             
 2005e9c:	7f ff f4 61 	call  2003020 <rtems_libio_is_open_files_in_fs>
 2005ea0:	90 10 00 1d 	mov  %i5, %o0                                  
 2005ea4:	80 a2 20 01 	cmp  %o0, 1                                    
 2005ea8:	02 80 00 35 	be  2005f7c <unmount+0x15c>                    
 2005eac:	01 00 00 00 	nop                                            
   * 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 )             
 2005eb0:	c2 07 60 14 	ld  [ %i5 + 0x14 ], %g1                        
 2005eb4:	c2 00 60 28 	ld  [ %g1 + 0x28 ], %g1                        
 2005eb8:	9f c0 40 00 	call  %g1                                      
 2005ebc:	90 10 00 1d 	mov  %i5, %o0                                  
 2005ec0:	80 a2 20 00 	cmp  %o0, 0                                    
 2005ec4:	12 80 00 2a 	bne  2005f6c <unmount+0x14c>                   <== NEVER TAKEN
 2005ec8:	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){          
 2005ecc:	c2 07 60 28 	ld  [ %i5 + 0x28 ], %g1                        
 2005ed0:	c2 00 60 2c 	ld  [ %g1 + 0x2c ], %g1                        
 2005ed4:	9f c0 40 00 	call  %g1                                      
 2005ed8:	90 10 00 1d 	mov  %i5, %o0                                  
 2005edc:	80 a2 20 00 	cmp  %o0, 0                                    
 2005ee0:	02 80 00 0c 	be  2005f10 <unmount+0xf0>                     <== ALWAYS TAKEN
 2005ee4:	39 00 80 5b 	sethi  %hi(0x2016c00), %i4                     
    if (( fs_mount_loc->ops->mount_h )( mt_entry ) != 0 )             
 2005ee8:	c2 07 60 14 	ld  [ %i5 + 0x14 ], %g1                        <== NOT EXECUTED
 2005eec:	90 10 00 1d 	mov  %i5, %o0                                  <== NOT EXECUTED
 2005ef0:	c2 00 60 20 	ld  [ %g1 + 0x20 ], %g1                        <== NOT EXECUTED
 2005ef4:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
 2005ef8:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
 2005efc:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
 2005f00:	12 80 00 1d 	bne  2005f74 <unmount+0x154>                   <== NOT EXECUTED
 2005f04:	01 00 00 00 	nop                                            <== NOT EXECUTED
                                                                      
  rtems_filesystem_freenode( fs_mount_loc );                          
  free( mt_entry );                                                   
                                                                      
  return 0;                                                           
}                                                                     
 2005f08:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 2005f0c:	81 e8 00 00 	restore                                        <== NOT EXECUTED
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 );
 2005f10:	d0 07 20 74 	ld  [ %i4 + 0x74 ], %o0                        
 2005f14:	92 10 20 00 	clr  %o1                                       
 2005f18:	40 00 03 19 	call  2006b7c <rtems_semaphore_obtain>         
 2005f1c:	94 10 20 00 	clr  %o2                                       
 */                                                                   
RTEMS_INLINE_ROUTINE void rtems_chain_extract(                        
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Extract( the_node );                                         
 2005f20:	40 00 05 a7 	call  20075bc <_Chain_Extract>                 
 2005f24:	90 10 00 1d 	mov  %i5, %o0                                  
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
 2005f28:	d0 07 20 74 	ld  [ %i4 + 0x74 ], %o0                        
 2005f2c:	40 00 03 5e 	call  2006ca4 <rtems_semaphore_release>        
 2005f30:	b0 10 20 00 	clr  %i0                                       
  /*                                                                  
   *  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 );                          
 2005f34:	7f ff f3 52 	call  2002c7c <rtems_filesystem_freenode>      
 2005f38:	90 07 60 08 	add  %i5, 8, %o0                               
  free( mt_entry );                                                   
 2005f3c:	7f ff f3 57 	call  2002c98 <free>                           
 2005f40:	90 10 00 1d 	mov  %i5, %o0                                  
                                                                      
  return 0;                                                           
 2005f44:	81 c7 e0 08 	ret                                            
 2005f48:	81 e8 00 00 	restore                                        
  /*                                                                  
   * Verify this is the root node for the file system to be unmounted.
   */                                                                 
                                                                      
  if ( fs_root_loc->node_access != loc.node_access ){                 
    rtems_filesystem_freenode( &loc );                                
 2005f4c:	7f ff f3 4c 	call  2002c7c <rtems_filesystem_freenode>      
 2005f50:	b0 10 3f ff 	mov  -1, %i0                                   
    rtems_set_errno_and_return_minus_one( EACCES );                   
 2005f54:	40 00 25 a0 	call  200f5d4 <__errno>                        
 2005f58:	01 00 00 00 	nop                                            
 2005f5c:	82 10 20 0d 	mov  0xd, %g1	! d <PROM_START+0xd>             
 2005f60:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2005f64:	81 c7 e0 08 	ret                                            
 2005f68:	81 e8 00 00 	restore                                        
                                                                      
  rtems_filesystem_freenode( fs_mount_loc );                          
  free( mt_entry );                                                   
                                                                      
  return 0;                                                           
}                                                                     
 2005f6c:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 2005f70:	91 e8 3f ff 	restore  %g0, -1, %o0                          <== NOT EXECUTED
   *         come up with.                                            
   */                                                                 
                                                                      
  if ((fs_root_loc->ops->fsunmount_me_h )( mt_entry ) != 0){          
    if (( fs_mount_loc->ops->mount_h )( mt_entry ) != 0 )             
      rtems_fatal_error_occurred( 0 );                                
 2005f74:	40 00 04 9c 	call  20071e4 <rtems_fatal_error_occurred>     <== NOT EXECUTED
 2005f78:	90 10 20 00 	clr  %o0                                       <== NOT EXECUTED
   *  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 )             
    rtems_set_errno_and_return_minus_one( EBUSY );                    
 2005f7c:	40 00 25 96 	call  200f5d4 <__errno>                        
 2005f80:	b0 10 3f ff 	mov  -1, %i0                                   
 2005f84:	82 10 20 10 	mov  0x10, %g1                                 
 2005f88:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2005f8c:	81 c7 e0 08 	ret                                            
 2005f90:	81 e8 00 00 	restore                                        
   *    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 ) )
    return -1;                                                        
 2005f94:	81 c7 e0 08 	ret                                            
 2005f98:	91 e8 3f ff 	restore  %g0, -1, %o0                          
                                                                      

02005d9c <vprintk>: */ void vprintk( const char *fmt, va_list ap ) {
 2005d9c:	9d e3 bf 88 	save  %sp, -120, %sp                           
  for (; *fmt != '\0'; fmt++) {                                       
 2005da0:	c2 0e 00 00 	ldub  [ %i0 ], %g1                             
 2005da4:	83 28 60 18 	sll  %g1, 0x18, %g1                            
 2005da8:	80 a0 60 00 	cmp  %g1, 0                                    
 2005dac:	02 80 00 7d 	be  2005fa0 <vprintk+0x204>                    <== NEVER TAKEN
 2005db0:	29 00 80 73 	sethi  %hi(0x201cc00), %l4                     
 *  console is not yet initialized or in ISR's.                       
 *                                                                    
 * Arguments:                                                         
 *    as in printf: fmt - format string, ... - unnamed arguments.     
 */                                                                   
void vprintk(                                                         
 2005db4:	a2 07 bf e8 	add  %fp, -24, %l1                             
 2005db8:	a6 07 bf e7 	add  %fp, -25, %l3                             
 2005dbc:	2d 00 80 6e 	sethi  %hi(0x201b800), %l6                     
      char *s, *str;                                                  
                                                                      
      str = va_arg(ap, char *);                                       
                                                                      
      if ( str == NULL ) {                                            
        str = "";                                                     
 2005dc0:	2f 00 80 6c 	sethi  %hi(0x201b000), %l7                     
    bool minus = false;                                               
    bool sign = false;                                                
    char lead = ' ';                                                  
    char c;                                                           
                                                                      
    if (*fmt != '%') {                                                
 2005dc4:	91 38 60 18 	sra  %g1, 0x18, %o0                            
 2005dc8:	80 a2 20 25 	cmp  %o0, 0x25                                 
 2005dcc:	12 80 00 8d 	bne  2006000 <vprintk+0x264>                   
 2005dd0:	c2 05 22 50 	ld  [ %l4 + 0x250 ], %g1                       
      BSP_output_char(*fmt);                                          
      continue;                                                       
    }                                                                 
    fmt++;                                                            
    if (*fmt == '0' ) {                                               
 2005dd4:	c2 0e 20 01 	ldub  [ %i0 + 1 ], %g1                         
 2005dd8:	85 28 60 18 	sll  %g1, 0x18, %g2                            
 2005ddc:	87 38 a0 18 	sra  %g2, 0x18, %g3                            
 2005de0:	80 a0 e0 30 	cmp  %g3, 0x30                                 
 2005de4:	22 80 00 96 	be,a   200603c <vprintk+0x2a0>                 
 2005de8:	c2 0e 20 02 	ldub  [ %i0 + 2 ], %g1                         
                                                                      
    if (*fmt != '%') {                                                
      BSP_output_char(*fmt);                                          
      continue;                                                       
    }                                                                 
    fmt++;                                                            
 2005dec:	b0 06 20 01 	inc  %i0                                       
    unsigned base = 0;                                                
    unsigned width = 0;                                               
    bool lflag = false;                                               
    bool minus = false;                                               
    bool sign = false;                                                
    char lead = ' ';                                                  
 2005df0:	aa 10 20 20 	mov  0x20, %l5                                 
    fmt++;                                                            
    if (*fmt == '0' ) {                                               
      lead = '0';                                                     
      fmt++;                                                          
    }                                                                 
    if (*fmt == '-' ) {                                               
 2005df4:	87 38 a0 18 	sra  %g2, 0x18, %g3                            
 2005df8:	80 a0 e0 2d 	cmp  %g3, 0x2d                                 
 2005dfc:	02 80 00 8b 	be  2006028 <vprintk+0x28c>                    
 2005e00:	a4 10 20 00 	clr  %l2                                       
      minus = true;                                                   
      fmt++;                                                          
    }                                                                 
    while (*fmt >= '0' && *fmt <= '9' ) {                             
 2005e04:	82 00 7f d0 	add  %g1, -48, %g1                             
 2005e08:	82 08 60 ff 	and  %g1, 0xff, %g1                            
 2005e0c:	80 a0 60 09 	cmp  %g1, 9                                    
 2005e10:	18 80 00 0f 	bgu  2005e4c <vprintk+0xb0>                    
 2005e14:	ba 10 20 00 	clr  %i5                                       
      width *= 10;                                                    
      width += ((unsigned) *fmt - '0');                               
      fmt++;                                                          
 2005e18:	b0 06 20 01 	inc  %i0                                       
    }                                                                 
    if (*fmt == '-' ) {                                               
      minus = true;                                                   
      fmt++;                                                          
    }                                                                 
    while (*fmt >= '0' && *fmt <= '9' ) {                             
 2005e1c:	c2 0e 00 00 	ldub  [ %i0 ], %g1                             
      width *= 10;                                                    
 2005e20:	87 2f 60 01 	sll  %i5, 1, %g3                               
      width += ((unsigned) *fmt - '0');                               
 2005e24:	85 38 a0 18 	sra  %g2, 0x18, %g2                            
    if (*fmt == '-' ) {                                               
      minus = true;                                                   
      fmt++;                                                          
    }                                                                 
    while (*fmt >= '0' && *fmt <= '9' ) {                             
      width *= 10;                                                    
 2005e28:	bb 2f 60 03 	sll  %i5, 3, %i5                               
 2005e2c:	ba 00 c0 1d 	add  %g3, %i5, %i5                             
    }                                                                 
    if (*fmt == '-' ) {                                               
      minus = true;                                                   
      fmt++;                                                          
    }                                                                 
    while (*fmt >= '0' && *fmt <= '9' ) {                             
 2005e30:	86 00 7f d0 	add  %g1, -48, %g3                             
      width *= 10;                                                    
      width += ((unsigned) *fmt - '0');                               
 2005e34:	ba 07 40 02 	add  %i5, %g2, %i5                             
    }                                                                 
    if (*fmt == '-' ) {                                               
      minus = true;                                                   
      fmt++;                                                          
    }                                                                 
    while (*fmt >= '0' && *fmt <= '9' ) {                             
 2005e38:	86 08 e0 ff 	and  %g3, 0xff, %g3                            
      width *= 10;                                                    
      width += ((unsigned) *fmt - '0');                               
 2005e3c:	ba 07 7f d0 	add  %i5, -48, %i5                             
    }                                                                 
    if (*fmt == '-' ) {                                               
      minus = true;                                                   
      fmt++;                                                          
    }                                                                 
    while (*fmt >= '0' && *fmt <= '9' ) {                             
 2005e40:	80 a0 e0 09 	cmp  %g3, 9                                    
 2005e44:	08 bf ff f5 	bleu  2005e18 <vprintk+0x7c>                   
 2005e48:	85 28 60 18 	sll  %g1, 0x18, %g2                            
      width *= 10;                                                    
      width += ((unsigned) *fmt - '0');                               
      fmt++;                                                          
    }                                                                 
                                                                      
    if ((c = *fmt) == 'l') {                                          
 2005e4c:	83 38 a0 18 	sra  %g2, 0x18, %g1                            
 2005e50:	80 a0 60 6c 	cmp  %g1, 0x6c                                 
 2005e54:	02 80 00 7e 	be  200604c <vprintk+0x2b0>                    
 2005e58:	80 a0 60 63 	cmp  %g1, 0x63                                 
      lflag = true;                                                   
      c = *++fmt;                                                     
    }                                                                 
    if ( c == 'c' ) {                                                 
 2005e5c:	22 80 00 83 	be,a   2006068 <vprintk+0x2cc>                 
 2005e60:	d0 06 40 00 	ld  [ %i1 ], %o0                               
      /* need a cast here since va_arg() only takes fully promoted types */
      char chr = (char) va_arg(ap, int);                              
      BSP_output_char(chr);                                           
      continue;                                                       
    }                                                                 
    if ( c == 's' ) {                                                 
 2005e64:	80 a0 60 73 	cmp  %g1, 0x73                                 
 2005e68:	02 80 00 8b 	be  2006094 <vprintk+0x2f8>                    
 2005e6c:	80 a0 60 4f 	cmp  %g1, 0x4f                                 
                                                                      
      continue;                                                       
    }                                                                 
                                                                      
    /* must be a numeric format or something unsupported */           
    if ( c == 'o' || c == 'O' ) {                                     
 2005e70:	22 80 00 6c 	be,a   2006020 <vprintk+0x284>                 
 2005e74:	82 10 20 00 	clr  %g1                                       
 2005e78:	80 a0 60 6f 	cmp  %g1, 0x6f                                 
 2005e7c:	22 80 00 69 	be,a   2006020 <vprintk+0x284>                 
 2005e80:	82 10 20 00 	clr  %g1                                       
      base = 8; sign = false;                                         
    } else if ( c == 'i' || c == 'I' ||                               
 2005e84:	80 a0 60 49 	cmp  %g1, 0x49                                 
 2005e88:	22 80 00 06 	be,a   2005ea0 <vprintk+0x104>                 
 2005e8c:	82 10 20 01 	mov  1, %g1                                    
 2005e90:	80 a0 60 69 	cmp  %g1, 0x69                                 
 2005e94:	12 80 00 45 	bne  2005fa8 <vprintk+0x20c>                   
 2005e98:	80 a0 60 44 	cmp  %g1, 0x44                                 
                c == 'd' || c == 'D' ) {                              
      base = 10; sign = true;                                         
 2005e9c:	82 10 20 01 	mov  1, %g1                                    
 2005ea0:	a0 10 20 0a 	mov  0xa, %l0                                  
    } else {                                                          
      BSP_output_char(c);                                             
      continue;                                                       
    }                                                                 
                                                                      
    printNum(                                                         
 2005ea4:	f4 06 40 00 	ld  [ %i1 ], %i2                               
  unsigned long unsigned_num;                                         
  unsigned long n;                                                    
  unsigned count;                                                     
  char toPrint[20];                                                   
                                                                      
  if ( sign && (num <  0) ) {                                         
 2005ea8:	80 88 60 ff 	btst  0xff, %g1                                
 2005eac:	02 80 00 05 	be  2005ec0 <vprintk+0x124>                    
 2005eb0:	b2 06 60 04 	add  %i1, 4, %i1                               
 2005eb4:	80 a6 a0 00 	cmp  %i2, 0                                    
 2005eb8:	06 80 00 bf 	bl  20061b4 <vprintk+0x418>                    
 2005ebc:	c2 05 22 50 	ld  [ %l4 + 0x250 ], %g1                       
  } else {                                                            
    unsigned_num = (unsigned long) num;                               
  }                                                                   
                                                                      
  count = 0;                                                          
  while ((n = unsigned_num / base) > 0) {                             
 2005ec0:	90 10 00 1a 	mov  %i2, %o0                                  
 2005ec4:	92 10 00 10 	mov  %l0, %o1                                  
 2005ec8:	40 00 4a 30 	call  2018788 <.udiv>                          
 2005ecc:	a4 10 00 10 	mov  %l0, %l2                                  
 2005ed0:	b8 92 20 00 	orcc  %o0, 0, %i4                              
 2005ed4:	12 80 00 06 	bne  2005eec <vprintk+0x150>                   
 2005ed8:	b6 10 20 00 	clr  %i3                                       
 2005edc:	10 80 00 c4 	b  20061ec <vprintk+0x450>                     
 2005ee0:	b8 10 00 1a 	mov  %i2, %i4                                  
 2005ee4:	b4 10 00 1c 	mov  %i4, %i2                                  
 2005ee8:	b8 10 00 08 	mov  %o0, %i4                                  
    toPrint[count++] = (char) (unsigned_num - (n * base));            
 2005eec:	92 10 00 1c 	mov  %i4, %o1                                  
 2005ef0:	40 00 49 ec 	call  20186a0 <.umul>                          
 2005ef4:	90 10 00 12 	mov  %l2, %o0                                  
  } else {                                                            
    unsigned_num = (unsigned long) num;                               
  }                                                                   
                                                                      
  count = 0;                                                          
  while ((n = unsigned_num / base) > 0) {                             
 2005ef8:	92 10 00 10 	mov  %l0, %o1                                  
    toPrint[count++] = (char) (unsigned_num - (n * base));            
 2005efc:	b4 26 80 08 	sub  %i2, %o0, %i2                             
  } else {                                                            
    unsigned_num = (unsigned long) num;                               
  }                                                                   
                                                                      
  count = 0;                                                          
  while ((n = unsigned_num / base) > 0) {                             
 2005f00:	90 10 00 1c 	mov  %i4, %o0                                  
 2005f04:	40 00 4a 21 	call  2018788 <.udiv>                          
 2005f08:	f4 2c 40 1b 	stb  %i2, [ %l1 + %i3 ]                        
 2005f0c:	80 a2 20 00 	cmp  %o0, 0                                    
 2005f10:	12 bf ff f5 	bne  2005ee4 <vprintk+0x148>                   
 2005f14:	b6 06 e0 01 	inc  %i3                                       
 2005f18:	b4 06 e0 01 	add  %i3, 1, %i2                               
    toPrint[count++] = (char) (unsigned_num - (n * base));            
    unsigned_num = n;                                                 
  }                                                                   
  toPrint[count++] = (char) unsigned_num;                             
 2005f1c:	b6 07 80 1b 	add  %fp, %i3, %i3                             
                                                                      
  for (n=maxwidth ; n > count; n-- )                                  
 2005f20:	80 a7 40 1a 	cmp  %i5, %i2                                  
 2005f24:	08 80 00 0b 	bleu  2005f50 <vprintk+0x1b4>                  
 2005f28:	f8 2e ff e8 	stb  %i4, [ %i3 + -24 ]                        
 2005f2c:	b8 15 22 50 	or  %l4, 0x250, %i4                            
    BSP_output_char(lead);                                            
 2005f30:	aa 0d 60 30 	and  %l5, 0x30, %l5                            
 2005f34:	c2 07 00 00 	ld  [ %i4 ], %g1                               
 2005f38:	9f c0 40 00 	call  %g1                                      
 2005f3c:	90 10 00 15 	mov  %l5, %o0                                  
    toPrint[count++] = (char) (unsigned_num - (n * base));            
    unsigned_num = n;                                                 
  }                                                                   
  toPrint[count++] = (char) unsigned_num;                             
                                                                      
  for (n=maxwidth ; n > count; n-- )                                  
 2005f40:	ba 07 7f ff 	add  %i5, -1, %i5                              
 2005f44:	80 a7 40 1a 	cmp  %i5, %i2                                  
 2005f48:	38 bf ff fc 	bgu,a   2005f38 <vprintk+0x19c>                
 2005f4c:	c2 07 00 00 	ld  [ %i4 ], %g1                               
    BSP_output_char(lead);                                            
                                                                      
  for (n = 0; n < count; n++) {                                       
 2005f50:	80 a6 a0 00 	cmp  %i2, 0                                    
 2005f54:	22 80 00 0f 	be,a   2005f90 <vprintk+0x1f4>                 <== NEVER TAKEN
 2005f58:	c2 0e 20 01 	ldub  [ %i0 + 1 ], %g1                         <== NOT EXECUTED
    BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); 
 2005f5c:	ba 06 bf ff 	add  %i2, -1, %i5                              
 2005f60:	b8 15 22 50 	or  %l4, 0x250, %i4                            
 *  console is not yet initialized or in ISR's.                       
 *                                                                    
 * Arguments:                                                         
 *    as in printf: fmt - format string, ... - unnamed arguments.     
 */                                                                   
void vprintk(                                                         
 2005f64:	ba 04 40 1d 	add  %l1, %i5, %i5                             
 2005f68:	b6 15 a0 b0 	or  %l6, 0xb0, %i3                             
                                                                      
  for (n=maxwidth ; n > count; n-- )                                  
    BSP_output_char(lead);                                            
                                                                      
  for (n = 0; n < count; n++) {                                       
    BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); 
 2005f6c:	c4 4f 40 00 	ldsb  [ %i5 ], %g2                             
 2005f70:	c2 07 00 00 	ld  [ %i4 ], %g1                               
 2005f74:	d0 4e c0 02 	ldsb  [ %i3 + %g2 ], %o0                       
 2005f78:	9f c0 40 00 	call  %g1                                      
 2005f7c:	ba 07 7f ff 	add  %i5, -1, %i5                              
  toPrint[count++] = (char) unsigned_num;                             
                                                                      
  for (n=maxwidth ; n > count; n-- )                                  
    BSP_output_char(lead);                                            
                                                                      
  for (n = 0; n < count; n++) {                                       
 2005f80:	80 a7 40 13 	cmp  %i5, %l3                                  
 2005f84:	32 bf ff fb 	bne,a   2005f70 <vprintk+0x1d4>                
 2005f88:	c4 4f 40 00 	ldsb  [ %i5 ], %g2                             
void vprintk(                                                         
  const char *fmt,                                                    
  va_list     ap                                                      
)                                                                     
{                                                                     
  for (; *fmt != '\0'; fmt++) {                                       
 2005f8c:	c2 0e 20 01 	ldub  [ %i0 + 1 ], %g1                         
 2005f90:	83 28 60 18 	sll  %g1, 0x18, %g1                            
 2005f94:	80 a0 60 00 	cmp  %g1, 0                                    
 2005f98:	12 bf ff 8b 	bne  2005dc4 <vprintk+0x28>                    
 2005f9c:	b0 06 20 01 	inc  %i0                                       
 2005fa0:	81 c7 e0 08 	ret                                            
 2005fa4:	81 e8 00 00 	restore                                        
                                                                      
    /* must be a numeric format or something unsupported */           
    if ( c == 'o' || c == 'O' ) {                                     
      base = 8; sign = false;                                         
    } else if ( c == 'i' || c == 'I' ||                               
                c == 'd' || c == 'D' ) {                              
 2005fa8:	22 bf ff be 	be,a   2005ea0 <vprintk+0x104>                 
 2005fac:	82 10 20 01 	mov  1, %g1                                    
 2005fb0:	80 a0 60 64 	cmp  %g1, 0x64                                 
 2005fb4:	22 bf ff bb 	be,a   2005ea0 <vprintk+0x104>                 
 2005fb8:	82 10 20 01 	mov  1, %g1                                    
      base = 10; sign = true;                                         
    } else if ( c == 'u' || c == 'U' ) {                              
 2005fbc:	80 a0 60 55 	cmp  %g1, 0x55                                 
 2005fc0:	22 80 00 8d 	be,a   20061f4 <vprintk+0x458>                 
 2005fc4:	82 10 20 00 	clr  %g1                                       
 2005fc8:	80 a0 60 75 	cmp  %g1, 0x75                                 
 2005fcc:	02 80 00 8a 	be  20061f4 <vprintk+0x458>                    
 2005fd0:	82 10 20 00 	clr  %g1                                       
      base = 10; sign = false;                                        
    } else if ( c == 'x' || c == 'X' ) {                              
 2005fd4:	91 38 a0 18 	sra  %g2, 0x18, %o0                            
 2005fd8:	80 a2 20 58 	cmp  %o0, 0x58                                 
 2005fdc:	02 80 00 88 	be  20061fc <vprintk+0x460>                    
 2005fe0:	01 00 00 00 	nop                                            
 2005fe4:	80 a2 20 78 	cmp  %o0, 0x78                                 
 2005fe8:	02 bf ff af 	be  2005ea4 <vprintk+0x108>                    
 2005fec:	a0 10 20 10 	mov  0x10, %l0                                 
      base = 16; sign = false;                                        
    } else if ( c == 'p' ) {                                          
 2005ff0:	80 a2 20 70 	cmp  %o0, 0x70                                 
 2005ff4:	02 bf ff ac 	be  2005ea4 <vprintk+0x108>                    
 2005ff8:	01 00 00 00 	nop                                            
      base = 16; sign = false; lflag = true;                          
    } else {                                                          
      BSP_output_char(c);                                             
 2005ffc:	c2 05 22 50 	ld  [ %l4 + 0x250 ], %g1                       
 2006000:	9f c0 40 00 	call  %g1                                      
 2006004:	01 00 00 00 	nop                                            
void vprintk(                                                         
  const char *fmt,                                                    
  va_list     ap                                                      
)                                                                     
{                                                                     
  for (; *fmt != '\0'; fmt++) {                                       
 2006008:	c2 0e 20 01 	ldub  [ %i0 + 1 ], %g1                         
 200600c:	83 28 60 18 	sll  %g1, 0x18, %g1                            
 2006010:	80 a0 60 00 	cmp  %g1, 0                                    
 2006014:	12 bf ff 6c 	bne  2005dc4 <vprintk+0x28>                    
 2006018:	b0 06 20 01 	inc  %i0                                       
 200601c:	30 80 00 64 	b,a   20061ac <vprintk+0x410>                  
      continue;                                                       
    }                                                                 
                                                                      
    /* must be a numeric format or something unsupported */           
    if ( c == 'o' || c == 'O' ) {                                     
      base = 8; sign = false;                                         
 2006020:	10 bf ff a1 	b  2005ea4 <vprintk+0x108>                     
 2006024:	a0 10 20 08 	mov  8, %l0                                    
      lead = '0';                                                     
      fmt++;                                                          
    }                                                                 
    if (*fmt == '-' ) {                                               
      minus = true;                                                   
      fmt++;                                                          
 2006028:	c2 0e 20 01 	ldub  [ %i0 + 1 ], %g1                         
    if (*fmt == '0' ) {                                               
      lead = '0';                                                     
      fmt++;                                                          
    }                                                                 
    if (*fmt == '-' ) {                                               
      minus = true;                                                   
 200602c:	a4 10 20 01 	mov  1, %l2                                    
      fmt++;                                                          
 2006030:	b0 06 20 01 	inc  %i0                                       
 2006034:	10 bf ff 74 	b  2005e04 <vprintk+0x68>                      
 2006038:	85 28 60 18 	sll  %g1, 0x18, %g2                            
      BSP_output_char(*fmt);                                          
      continue;                                                       
    }                                                                 
    fmt++;                                                            
    if (*fmt == '0' ) {                                               
      lead = '0';                                                     
 200603c:	aa 10 20 30 	mov  0x30, %l5                                 
      fmt++;                                                          
 2006040:	b0 06 20 02 	add  %i0, 2, %i0                               
 2006044:	10 bf ff 6c 	b  2005df4 <vprintk+0x58>                      
 2006048:	85 28 60 18 	sll  %g1, 0x18, %g2                            
      fmt++;                                                          
    }                                                                 
                                                                      
    if ((c = *fmt) == 'l') {                                          
      lflag = true;                                                   
      c = *++fmt;                                                     
 200604c:	c2 0e 20 01 	ldub  [ %i0 + 1 ], %g1                         
 2006050:	85 28 60 18 	sll  %g1, 0x18, %g2                            
    }                                                                 
    if ( c == 'c' ) {                                                 
 2006054:	83 38 a0 18 	sra  %g2, 0x18, %g1                            
 2006058:	80 a0 60 63 	cmp  %g1, 0x63                                 
 200605c:	12 bf ff 82 	bne  2005e64 <vprintk+0xc8>                    <== ALWAYS TAKEN
 2006060:	b0 06 20 01 	inc  %i0                                       
      /* need a cast here since va_arg() only takes fully promoted types */
      char chr = (char) va_arg(ap, int);                              
 2006064:	d0 06 40 00 	ld  [ %i1 ], %o0                               <== NOT EXECUTED
      BSP_output_char(chr);                                           
 2006068:	c2 05 22 50 	ld  [ %l4 + 0x250 ], %g1                       
 200606c:	91 2a 20 18 	sll  %o0, 0x18, %o0                            
 2006070:	9f c0 40 00 	call  %g1                                      
 2006074:	91 3a 20 18 	sra  %o0, 0x18, %o0                            
void vprintk(                                                         
  const char *fmt,                                                    
  va_list     ap                                                      
)                                                                     
{                                                                     
  for (; *fmt != '\0'; fmt++) {                                       
 2006078:	c2 0e 20 01 	ldub  [ %i0 + 1 ], %g1                         
      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);                              
 200607c:	b2 06 60 04 	add  %i1, 4, %i1                               
void vprintk(                                                         
  const char *fmt,                                                    
  va_list     ap                                                      
)                                                                     
{                                                                     
  for (; *fmt != '\0'; fmt++) {                                       
 2006080:	83 28 60 18 	sll  %g1, 0x18, %g1                            
 2006084:	80 a0 60 00 	cmp  %g1, 0                                    
 2006088:	12 bf ff 4f 	bne  2005dc4 <vprintk+0x28>                    <== ALWAYS TAKEN
 200608c:	b0 06 20 01 	inc  %i0                                       
 2006090:	30 80 00 47 	b,a   20061ac <vprintk+0x410>                  <== NOT EXECUTED
    }                                                                 
    if ( c == 's' ) {                                                 
      unsigned i, len;                                                
      char *s, *str;                                                  
                                                                      
      str = va_arg(ap, char *);                                       
 2006094:	f6 06 40 00 	ld  [ %i1 ], %i3                               
                                                                      
      if ( str == NULL ) {                                            
 2006098:	80 a6 e0 00 	cmp  %i3, 0                                    
 200609c:	02 80 00 5a 	be  2006204 <vprintk+0x468>                    
 20060a0:	b2 06 60 04 	add  %i1, 4, %i1                               
        str = "";                                                     
      }                                                               
                                                                      
      /* calculate length of string */                                
      for ( len=0, s=str ; *s ; len++, s++ )                          
 20060a4:	c2 4e c0 00 	ldsb  [ %i3 ], %g1                             
 20060a8:	80 a0 60 00 	cmp  %g1, 0                                    
 20060ac:	02 80 00 08 	be  20060cc <vprintk+0x330>                    
 20060b0:	b4 10 20 00 	clr  %i2                                       
 20060b4:	82 10 00 1b 	mov  %i3, %g1                                  
 20060b8:	82 00 60 01 	inc  %g1                                       
 20060bc:	c4 48 40 00 	ldsb  [ %g1 ], %g2                             
 20060c0:	80 a0 a0 00 	cmp  %g2, 0                                    
 20060c4:	12 bf ff fd 	bne  20060b8 <vprintk+0x31c>                   
 20060c8:	b4 06 a0 01 	inc  %i2                                       
        ;                                                             
                                                                      
      /* leading spaces */                                            
      if ( !minus )                                                   
 20060cc:	a4 8c a0 ff 	andcc  %l2, 0xff, %l2                          
 20060d0:	12 80 00 0f 	bne  200610c <vprintk+0x370>                   
 20060d4:	80 a7 60 00 	cmp  %i5, 0                                    
        for ( i=len ; i<width ; i++ )                                 
 20060d8:	80 a7 40 1a 	cmp  %i5, %i2                                  
 20060dc:	08 80 00 0c 	bleu  200610c <vprintk+0x370>                  
 20060e0:	80 a7 60 00 	cmp  %i5, 0                                    
 20060e4:	a0 10 00 1a 	mov  %i2, %l0                                  
 20060e8:	b8 15 22 50 	or  %l4, 0x250, %i4                            
          BSP_output_char(' ');                                       
 20060ec:	c2 07 00 00 	ld  [ %i4 ], %g1                               
 20060f0:	9f c0 40 00 	call  %g1                                      
 20060f4:	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++ )                                 
 20060f8:	a0 04 20 01 	inc  %l0                                       
 20060fc:	80 a7 40 10 	cmp  %i5, %l0                                  
 2006100:	38 bf ff fc 	bgu,a   20060f0 <vprintk+0x354>                
 2006104:	c2 07 00 00 	ld  [ %i4 ], %g1                               
          BSP_output_char(' ');                                       
                                                                      
      /* no width option */                                           
      if (width == 0) {                                               
 2006108:	80 a7 60 00 	cmp  %i5, 0                                    
 200610c:	32 80 00 07 	bne,a   2006128 <vprintk+0x38c>                
 2006110:	d0 4e c0 00 	ldsb  [ %i3 ], %o0                             
          width = len;                                                
      }                                                               
                                                                      
      /* output the string */                                         
      for ( i=0 ; i<width && *str ; str++ )                           
 2006114:	80 a6 a0 00 	cmp  %i2, 0                                    
 2006118:	02 80 00 13 	be  2006164 <vprintk+0x3c8>                    
 200611c:	80 a4 a0 00 	cmp  %l2, 0                                    
 2006120:	ba 10 00 1a 	mov  %i2, %i5                                  
 2006124:	d0 4e c0 00 	ldsb  [ %i3 ], %o0                             
 2006128:	80 a2 20 00 	cmp  %o0, 0                                    
 200612c:	02 80 00 0d 	be  2006160 <vprintk+0x3c4>                    <== NEVER TAKEN
 2006130:	c2 05 22 50 	ld  [ %l4 + 0x250 ], %g1                       
        BSP_output_char(*str);                                        
 2006134:	9f c0 40 00 	call  %g1                                      
 2006138:	b8 15 22 50 	or  %l4, 0x250, %i4                            
      if (width == 0) {                                               
          width = len;                                                
      }                                                               
                                                                      
      /* output the string */                                         
      for ( i=0 ; i<width && *str ; str++ )                           
 200613c:	10 80 00 05 	b  2006150 <vprintk+0x3b4>                     
 2006140:	b6 06 e0 01 	inc  %i3                                       
        BSP_output_char(*str);                                        
 2006144:	c2 07 00 00 	ld  [ %i4 ], %g1                               
 2006148:	9f c0 40 00 	call  %g1                                      
 200614c:	01 00 00 00 	nop                                            
      if (width == 0) {                                               
          width = len;                                                
      }                                                               
                                                                      
      /* output the string */                                         
      for ( i=0 ; i<width && *str ; str++ )                           
 2006150:	d0 4e c0 00 	ldsb  [ %i3 ], %o0                             
 2006154:	80 a2 20 00 	cmp  %o0, 0                                    
 2006158:	12 bf ff fb 	bne  2006144 <vprintk+0x3a8>                   
 200615c:	b6 06 e0 01 	inc  %i3                                       
        BSP_output_char(*str);                                        
                                                                      
      /* trailing spaces */                                           
      if ( minus )                                                    
 2006160:	80 a4 a0 00 	cmp  %l2, 0                                    
 2006164:	22 bf ff 8b 	be,a   2005f90 <vprintk+0x1f4>                 
 2006168:	c2 0e 20 01 	ldub  [ %i0 + 1 ], %g1                         
        for ( i=len ; i<width ; i++ )                                 
 200616c:	80 a6 80 1d 	cmp  %i2, %i5                                  
 2006170:	3a bf ff 88 	bcc,a   2005f90 <vprintk+0x1f4>                
 2006174:	c2 0e 20 01 	ldub  [ %i0 + 1 ], %g1                         
 2006178:	b8 15 22 50 	or  %l4, 0x250, %i4                            
          BSP_output_char(' ');                                       
 200617c:	c2 07 00 00 	ld  [ %i4 ], %g1                               
 2006180:	9f c0 40 00 	call  %g1                                      
 2006184:	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++ )                                 
 2006188:	b4 06 a0 01 	inc  %i2                                       
 200618c:	80 a6 80 1d 	cmp  %i2, %i5                                  
 2006190:	2a bf ff fc 	bcs,a   2006180 <vprintk+0x3e4>                
 2006194:	c2 07 00 00 	ld  [ %i4 ], %g1                               
void vprintk(                                                         
  const char *fmt,                                                    
  va_list     ap                                                      
)                                                                     
{                                                                     
  for (; *fmt != '\0'; fmt++) {                                       
 2006198:	c2 0e 20 01 	ldub  [ %i0 + 1 ], %g1                         
 200619c:	83 28 60 18 	sll  %g1, 0x18, %g1                            
 20061a0:	80 a0 60 00 	cmp  %g1, 0                                    
 20061a4:	12 bf ff 08 	bne  2005dc4 <vprintk+0x28>                    <== ALWAYS TAKEN
 20061a8:	b0 06 20 01 	inc  %i0                                       
 20061ac:	81 c7 e0 08 	ret                                            
 20061b0:	81 e8 00 00 	restore                                        
  unsigned long n;                                                    
  unsigned count;                                                     
  char toPrint[20];                                                   
                                                                      
  if ( sign && (num <  0) ) {                                         
    BSP_output_char('-');                                             
 20061b4:	9f c0 40 00 	call  %g1                                      
 20061b8:	90 10 20 2d 	mov  0x2d, %o0                                 
    unsigned_num = (unsigned long) -num;                              
    if (maxwidth) maxwidth--;                                         
 20061bc:	80 a0 00 1d 	cmp  %g0, %i5                                  
  unsigned count;                                                     
  char toPrint[20];                                                   
                                                                      
  if ( sign && (num <  0) ) {                                         
    BSP_output_char('-');                                             
    unsigned_num = (unsigned long) -num;                              
 20061c0:	b4 20 00 1a 	neg  %i2                                       
    if (maxwidth) maxwidth--;                                         
 20061c4:	ba 67 60 00 	subx  %i5, 0, %i5                              
  } else {                                                            
    unsigned_num = (unsigned long) num;                               
  }                                                                   
                                                                      
  count = 0;                                                          
  while ((n = unsigned_num / base) > 0) {                             
 20061c8:	90 10 00 1a 	mov  %i2, %o0                                  
 20061cc:	92 10 00 10 	mov  %l0, %o1                                  
 20061d0:	40 00 49 6e 	call  2018788 <.udiv>                          
 20061d4:	a4 10 00 10 	mov  %l0, %l2                                  
 20061d8:	b8 92 20 00 	orcc  %o0, 0, %i4                              
 20061dc:	12 bf ff 44 	bne  2005eec <vprintk+0x150>                   <== ALWAYS TAKEN
 20061e0:	b6 10 20 00 	clr  %i3                                       
 20061e4:	b8 10 00 1a 	mov  %i2, %i4                                  <== NOT EXECUTED
    if (maxwidth) maxwidth--;                                         
  } else {                                                            
    unsigned_num = (unsigned long) num;                               
  }                                                                   
                                                                      
  count = 0;                                                          
 20061e8:	b6 10 20 00 	clr  %i3                                       <== NOT EXECUTED
  while ((n = unsigned_num / base) > 0) {                             
 20061ec:	10 bf ff 4c 	b  2005f1c <vprintk+0x180>                     
 20061f0:	b4 10 20 01 	mov  1, %i2                                    
      base = 8; sign = false;                                         
    } else if ( c == 'i' || c == 'I' ||                               
                c == 'd' || c == 'D' ) {                              
      base = 10; sign = true;                                         
    } else if ( c == 'u' || c == 'U' ) {                              
      base = 10; sign = false;                                        
 20061f4:	10 bf ff 2c 	b  2005ea4 <vprintk+0x108>                     
 20061f8:	a0 10 20 0a 	mov  0xa, %l0                                  
    } else if ( c == 'x' || c == 'X' ) {                              
      base = 16; sign = false;                                        
    } else if ( c == 'p' ) {                                          
      base = 16; sign = false; lflag = true;                          
 20061fc:	10 bf ff 2a 	b  2005ea4 <vprintk+0x108>                     
 2006200:	a0 10 20 10 	mov  0x10, %l0                                 
      char *s, *str;                                                  
                                                                      
      str = va_arg(ap, char *);                                       
                                                                      
      if ( str == NULL ) {                                            
        str = "";                                                     
 2006204:	10 bf ff a8 	b  20060a4 <vprintk+0x308>                     
 2006208:	b6 15 e2 88 	or  %l7, 0x288, %i3                            
                                                                      

0201a300 <write>: ssize_t write( int fd, const void *buffer, size_t count ) {
 201a300:	9d e3 bf a0 	save  %sp, -96, %sp                            
  ssize_t  rc;                                                        
  rtems_libio_t     *iop;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
 201a304:	03 00 80 73 	sethi  %hi(0x201cc00), %g1                     
 201a308:	c2 00 61 90 	ld  [ %g1 + 0x190 ], %g1	! 201cd90 <rtems_libio_number_iops>
 201a30c:	80 a6 00 01 	cmp  %i0, %g1                                  
 201a310:	1a 80 00 1e 	bcc  201a388 <write+0x88>                      
 201a314:	03 00 80 76 	sethi  %hi(0x201d800), %g1                     
  iop = rtems_libio_iop( fd );                                        
 201a318:	fa 00 60 04 	ld  [ %g1 + 4 ], %i5	! 201d804 <rtems_libio_iops>
 201a31c:	b1 2e 20 06 	sll  %i0, 6, %i0                               
 201a320:	ba 07 40 18 	add  %i5, %i0, %i5                             
  rtems_libio_check_is_open( iop );                                   
 201a324:	c2 07 60 18 	ld  [ %i5 + 0x18 ], %g1                        
 201a328:	80 88 61 00 	btst  0x100, %g1                               
 201a32c:	02 80 00 17 	be  201a388 <write+0x88>                       
 201a330:	80 a6 60 00 	cmp  %i1, 0                                    
  rtems_libio_check_buffer( buffer );                                 
 201a334:	02 80 00 1b 	be  201a3a0 <write+0xa0>                       <== NEVER TAKEN
 201a338:	80 a6 a0 00 	cmp  %i2, 0                                    
  rtems_libio_check_count( count );                                   
 201a33c:	02 80 00 11 	be  201a380 <write+0x80>                       
 201a340:	b0 10 20 00 	clr  %i0                                       
  rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_WRITE, EBADF );
 201a344:	80 88 60 04 	btst  4, %g1                                   
 201a348:	02 80 00 10 	be  201a388 <write+0x88>                       
 201a34c:	90 10 00 1d 	mov  %i5, %o0                                  
                                                                      
  /*                                                                  
   *  Now process the write() request.                                
   */                                                                 
  rc = (*iop->pathinfo.handlers->write_h)( iop, buffer, count );      
 201a350:	c2 07 60 24 	ld  [ %i5 + 0x24 ], %g1                        
 201a354:	c2 00 60 0c 	ld  [ %g1 + 0xc ], %g1                         
 201a358:	92 10 00 19 	mov  %i1, %o1                                  
 201a35c:	9f c0 40 00 	call  %g1                                      
 201a360:	94 10 00 1a 	mov  %i2, %o2                                  
                                                                      
  if ( rc > 0 )                                                       
 201a364:	b0 92 20 00 	orcc  %o0, 0, %i0                              
 201a368:	04 80 00 06 	ble  201a380 <write+0x80>                      
 201a36c:	85 3e 20 1f 	sra  %i0, 0x1f, %g2                            
    iop->offset += rc;                                                
 201a370:	d8 1f 60 10 	ldd  [ %i5 + 0x10 ], %o4                       
 201a374:	86 83 40 18 	addcc  %o5, %i0, %g3                           
 201a378:	84 43 00 02 	addx  %o4, %g2, %g2                            
 201a37c:	c4 3f 60 10 	std  %g2, [ %i5 + 0x10 ]                       
                                                                      
  return rc;                                                          
}                                                                     
 201a380:	81 c7 e0 08 	ret                                            
 201a384:	81 e8 00 00 	restore                                        
  rtems_libio_check_fd( fd );                                         
  iop = rtems_libio_iop( fd );                                        
  rtems_libio_check_is_open( iop );                                   
  rtems_libio_check_buffer( buffer );                                 
  rtems_libio_check_count( count );                                   
  rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_WRITE, EBADF );
 201a388:	7f ff d5 86 	call  200f9a0 <__errno>                        
 201a38c:	b0 10 3f ff 	mov  -1, %i0                                   
 201a390:	82 10 20 09 	mov  9, %g1                                    
 201a394:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 201a398:	81 c7 e0 08 	ret                                            
 201a39c:	81 e8 00 00 	restore                                        
  rtems_libio_t     *iop;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
  iop = rtems_libio_iop( fd );                                        
  rtems_libio_check_is_open( iop );                                   
  rtems_libio_check_buffer( buffer );                                 
 201a3a0:	7f ff d5 80 	call  200f9a0 <__errno>                        <== NOT EXECUTED
 201a3a4:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
 201a3a8:	82 10 20 16 	mov  0x16, %g1                                 <== NOT EXECUTED
 201a3ac:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
 201a3b0:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 201a3b4:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

02006fdc <writev>: ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) {
 2006fdc:	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 );                                         
 2006fe0:	03 00 80 5e 	sethi  %hi(0x2017800), %g1                     
 2006fe4:	c2 00 62 00 	ld  [ %g1 + 0x200 ], %g1	! 2017a00 <rtems_libio_number_iops>
 2006fe8:	80 a6 00 01 	cmp  %i0, %g1                                  
 2006fec:	1a 80 00 50 	bcc  200712c <writev+0x150>                    
 2006ff0:	03 00 80 61 	sethi  %hi(0x2018400), %g1                     
  iop = rtems_libio_iop( fd );                                        
 2006ff4:	f6 00 60 50 	ld  [ %g1 + 0x50 ], %i3	! 2018450 <rtems_libio_iops>
 2006ff8:	b1 2e 20 06 	sll  %i0, 6, %i0                               
 2006ffc:	b6 06 c0 18 	add  %i3, %i0, %i3                             
  rtems_libio_check_is_open( iop );                                   
 2007000:	c2 06 e0 18 	ld  [ %i3 + 0x18 ], %g1                        
 2007004:	80 88 61 00 	btst  0x100, %g1                               
 2007008:	02 80 00 49 	be  200712c <writev+0x150>                     
 200700c:	80 88 60 04 	btst  4, %g1                                   
  rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_WRITE, EBADF );
 2007010:	02 80 00 47 	be  200712c <writev+0x150>                     <== NEVER TAKEN
 2007014:	80 a6 60 00 	cmp  %i1, 0                                    
                                                                      
  /*                                                                  
   *  Argument validation on IO vector                                
   */                                                                 
  if ( !iov )                                                         
 2007018:	02 80 00 3f 	be  2007114 <writev+0x138>                     
 200701c:	80 a6 a0 00 	cmp  %i2, 0                                    
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt <= 0 )                                                  
 2007020:	04 80 00 3d 	ble  2007114 <writev+0x138>                    
 2007024:	80 a6 a4 00 	cmp  %i2, 0x400                                
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt > IOV_MAX )                                             
 2007028:	14 80 00 3b 	bg  2007114 <writev+0x138>                     <== NEVER TAKEN
 200702c:	b5 2e a0 03 	sll  %i2, 3, %i2                               
#include <sys/uio.h>                                                  
                                                                      
#include <rtems/libio_.h>                                             
#include <rtems/seterr.h>                                             
                                                                      
ssize_t writev(                                                       
 2007030:	82 10 20 00 	clr  %g1                                       
 2007034:	ba 10 20 01 	mov  1, %i5                                    
 2007038:	84 10 20 00 	clr  %g2                                       
                                                                      
    /*                                                                
     *  iov[v].iov_len cannot be less than 0 because size_t is unsigned.
     *  So we only check for zero.                                    
     */                                                               
    if ( iov[v].iov_base == 0 )                                       
 200703c:	c6 06 40 01 	ld  [ %i1 + %g1 ], %g3                         
#include <sys/uio.h>                                                  
                                                                      
#include <rtems/libio_.h>                                             
#include <rtems/seterr.h>                                             
                                                                      
ssize_t writev(                                                       
 2007040:	b8 06 40 01 	add  %i1, %g1, %i4                             
                                                                      
    /*                                                                
     *  iov[v].iov_len cannot be less than 0 because size_t is unsigned.
     *  So we only check for zero.                                    
     */                                                               
    if ( iov[v].iov_base == 0 )                                       
 2007044:	80 a0 e0 00 	cmp  %g3, 0                                    
 2007048:	02 80 00 33 	be  2007114 <writev+0x138>                     
 200704c:	88 10 20 01 	mov  1, %g4                                    
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    if ( iov[v].iov_len )                                             
 2007050:	c6 07 20 04 	ld  [ %i4 + 4 ], %g3                           
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
    if ( total < old || total > SSIZE_MAX )                           
      rtems_set_errno_and_return_minus_one( EINVAL );                 
 2007054:	82 00 60 08 	add  %g1, 8, %g1                               
     */                                                               
    if ( iov[v].iov_base == 0 )                                       
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    if ( iov[v].iov_len )                                             
      all_zeros = false;                                              
 2007058:	80 a0 00 03 	cmp  %g0, %g3                                  
 200705c:	b8 40 3f ff 	addx  %g0, -1, %i4                             
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
    if ( total < old || total > SSIZE_MAX )                           
 2007060:	86 80 c0 02 	addcc  %g3, %g2, %g3                           
 2007064:	0c 80 00 2c 	bneg  2007114 <writev+0x138>                   
 2007068:	ba 0f 40 1c 	and  %i5, %i4, %i5                             
 200706c:	80 a0 80 03 	cmp  %g2, %g3                                  
 2007070:	24 80 00 02 	ble,a   2007078 <writev+0x9c>                  
 2007074:	88 10 20 00 	clr  %g4                                       
 2007078:	80 89 20 ff 	btst  0xff, %g4                                
 200707c:	12 80 00 26 	bne  2007114 <writev+0x138>                    
 2007080:	80 a0 40 1a 	cmp  %g1, %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++ ) {                    
 2007084:	12 bf ff ee 	bne  200703c <writev+0x60>                     
 2007088:	84 10 00 03 	mov  %g3, %g2                                  
  }                                                                   
                                                                      
  /*                                                                  
   * A writev with all zeros is supposed to have no effect per OpenGroup.
   */                                                                 
  if ( all_zeros == true ) {                                          
 200708c:	80 8f 60 ff 	btst  0xff, %i5                                
 2007090:	12 80 00 1f 	bne  200710c <writev+0x130>                    
 2007094:	b0 10 20 00 	clr  %i0                                       
 2007098:	10 80 00 05 	b  20070ac <writev+0xd0>                       
 200709c:	ba 10 20 00 	clr  %i5                                       
  }                                                                   
                                                                      
  /*                                                                  
   *  Now process the writev().                                       
   */                                                                 
  for ( total=0, v=0 ; v < iovcnt ; v++ ) {                           
 20070a0:	80 a7 40 1a 	cmp  %i5, %i2                                  
 20070a4:	02 80 00 26 	be  200713c <writev+0x160>                     
 20070a8:	01 00 00 00 	nop                                            
#include <sys/uio.h>                                                  
                                                                      
#include <rtems/libio_.h>                                             
#include <rtems/seterr.h>                                             
                                                                      
ssize_t writev(                                                       
 20070ac:	b8 06 40 1d 	add  %i1, %i5, %i4                             
  /*                                                                  
   *  Now process the writev().                                       
   */                                                                 
  for ( total=0, v=0 ; v < iovcnt ; v++ ) {                           
    /* all zero lengths has no effect */                              
    if ( iov[v].iov_len == 0 )                                        
 20070b0:	d4 07 20 04 	ld  [ %i4 + 4 ], %o2                           
 20070b4:	80 a2 a0 00 	cmp  %o2, 0                                    
 20070b8:	22 bf ff fa 	be,a   20070a0 <writev+0xc4>                   <== NEVER TAKEN
 20070bc:	ba 07 60 08 	add  %i5, 8, %i5                               <== NOT EXECUTED
      continue;                                                       
                                                                      
    bytes = (*iop->pathinfo.handlers->write_h)(                       
 20070c0:	c2 06 e0 24 	ld  [ %i3 + 0x24 ], %g1                        
 20070c4:	d2 06 40 1d 	ld  [ %i1 + %i5 ], %o1                         
 20070c8:	c2 00 60 0c 	ld  [ %g1 + 0xc ], %g1                         
 20070cc:	9f c0 40 00 	call  %g1                                      
 20070d0:	90 10 00 1b 	mov  %i3, %o0                                  
      iop,                                                            
      iov[v].iov_base,                                                
      iov[v].iov_len                                                  
    );                                                                
                                                                      
    if ( bytes < 0 )                                                  
 20070d4:	80 a2 20 00 	cmp  %o0, 0                                    
 20070d8:	06 80 00 1b 	bl  2007144 <writev+0x168>                     <== NEVER TAKEN
 20070dc:	01 00 00 00 	nop                                            
      return -1;                                                      
                                                                      
    if ( bytes > 0 ) {                                                
 20070e0:	02 80 00 07 	be  20070fc <writev+0x120>                     <== NEVER TAKEN
 20070e4:	a1 3a 20 1f 	sra  %o0, 0x1f, %l0                            
      iop->offset += bytes;                                           
 20070e8:	c4 1e e0 10 	ldd  [ %i3 + 0x10 ], %g2                       
 20070ec:	86 80 c0 08 	addcc  %g3, %o0, %g3                           
      total       += bytes;                                           
 20070f0:	b0 06 00 08 	add  %i0, %o0, %i0                             
                                                                      
    if ( bytes < 0 )                                                  
      return -1;                                                      
                                                                      
    if ( bytes > 0 ) {                                                
      iop->offset += bytes;                                           
 20070f4:	84 40 80 10 	addx  %g2, %l0, %g2                            
 20070f8:	c4 3e e0 10 	std  %g2, [ %i3 + 0x10 ]                       
      total       += bytes;                                           
    }                                                                 
                                                                      
    if (bytes != iov[ v ].iov_len)                                    
 20070fc:	c2 07 20 04 	ld  [ %i4 + 4 ], %g1                           
 2007100:	80 a2 00 01 	cmp  %o0, %g1                                  
 2007104:	02 bf ff e7 	be  20070a0 <writev+0xc4>                      <== ALWAYS TAKEN
 2007108:	ba 07 60 08 	add  %i5, 8, %i5                               
      break;                                                          
  }                                                                   
                                                                      
  return total;                                                       
}                                                                     
 200710c:	81 c7 e0 08 	ret                                            
 2007110:	81 e8 00 00 	restore                                        
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
    if ( total < old || total > SSIZE_MAX )                           
      rtems_set_errno_and_return_minus_one( EINVAL );                 
 2007114:	40 00 24 86 	call  201032c <__errno>                        
 2007118:	b0 10 3f ff 	mov  -1, %i0                                   
 200711c:	82 10 20 16 	mov  0x16, %g1                                 
 2007120:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2007124:	81 c7 e0 08 	ret                                            
 2007128:	81 e8 00 00 	restore                                        
  bool           all_zeros;                                           
                                                                      
  rtems_libio_check_fd( fd );                                         
  iop = rtems_libio_iop( fd );                                        
  rtems_libio_check_is_open( iop );                                   
  rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_WRITE, EBADF );
 200712c:	40 00 24 80 	call  201032c <__errno>                        
 2007130:	b0 10 3f ff 	mov  -1, %i0                                   
 2007134:	82 10 20 09 	mov  9, %g1                                    
 2007138:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200713c:	81 c7 e0 08 	ret                                            
 2007140:	81 e8 00 00 	restore                                        
    if (bytes != iov[ v ].iov_len)                                    
      break;                                                          
  }                                                                   
                                                                      
  return total;                                                       
}                                                                     
 2007144:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 2007148:	91 e8 3f ff 	restore  %g0, -1, %o0                          <== NOT EXECUTED