RTEMS 4.11
Annotated Report
Mon Apr 4 14:53:17 2011

0200a610 <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 ) {                                              
 200a610:	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;                                   
 200a614:	c4 02 20 10 	ld  [ %o0 + 0x10 ], %g2                        
  switch( node->type ) {                                              
 200a618:	c2 00 60 4c 	ld  [ %g1 + 0x4c ], %g1                        
 200a61c:	80 a0 60 07 	cmp  %g1, 7                                    
 200a620:	18 80 00 0a 	bgu  200a648 <IMFS_Set_handlers+0x38>          <== NEVER TAKEN
 200a624:	c4 00 a0 34 	ld  [ %g2 + 0x34 ], %g2                        
 200a628:	83 28 60 02 	sll  %g1, 2, %g1                               
 200a62c:	07 00 80 29 	sethi  %hi(0x200a400), %g3                     
 200a630:	86 10 e1 f0 	or  %g3, 0x1f0, %g3	! 200a5f0 <IMFS_create_root_node+0x40>
 200a634:	c2 00 c0 01 	ld  [ %g3 + %g1 ], %g1                         
 200a638:	81 c0 40 00 	jmp  %g1                                       
 200a63c:	01 00 00 00 	nop                                            
    case IMFS_DIRECTORY:                                              
      loc->handlers = fs_info->directory_handlers;                    
 200a640:	c2 00 a0 0c 	ld  [ %g2 + 0xc ], %g1                         
 200a644:	c2 22 20 08 	st  %g1, [ %o0 + 8 ]                           
      loc->handlers = fs_info->fifo_handlers;                         
      break;                                                          
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
 200a648:	81 c3 e0 08 	retl                                           
 200a64c:	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;                      
 200a650:	c2 00 a0 08 	ld  [ %g2 + 8 ], %g1                           
 200a654:	c2 22 20 08 	st  %g1, [ %o0 + 8 ]                           
      loc->handlers = fs_info->fifo_handlers;                         
      break;                                                          
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
 200a658:	81 c3 e0 08 	retl                                           
 200a65c:	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;                            
 200a660:	03 00 80 50 	sethi  %hi(0x2014000), %g1                     
 200a664:	82 10 63 f4 	or  %g1, 0x3f4, %g1	! 20143f4 <IMFS_link_handlers>
 200a668:	c2 22 20 08 	st  %g1, [ %o0 + 8 ]                           
      loc->handlers = fs_info->fifo_handlers;                         
      break;                                                          
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
 200a66c:	81 c3 e0 08 	retl                                           
 200a670:	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;                         
 200a674:	c2 00 a0 10 	ld  [ %g2 + 0x10 ], %g1                        
 200a678:	c2 22 20 08 	st  %g1, [ %o0 + 8 ]                           
      break;                                                          
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
 200a67c:	81 c3 e0 08 	retl                                           
 200a680:	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;                          
 200a684:	03 00 80 50 	sethi  %hi(0x2014000), %g1                     
 200a688:	82 10 63 84 	or  %g1, 0x384, %g1	! 2014384 <IMFS_device_handlers>
 200a68c:	c2 22 20 08 	st  %g1, [ %o0 + 8 ]                           
      loc->handlers = fs_info->fifo_handlers;                         
      break;                                                          
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
 200a690:	81 c3 e0 08 	retl                                           
 200a694:	90 10 20 00 	clr  %o0                                       
                                                                      

0200a47c <IMFS_create_node>: IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) {
 200a47c:	9d e3 bf a0 	save  %sp, -96, %sp                            
 200a480:	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 )                                           
 200a484:	80 a0 60 00 	cmp  %g1, 0                                    
 200a488:	02 80 00 2b 	be  200a534 <IMFS_create_node+0xb8>            <== NEVER TAKEN
 200a48c:	b0 10 20 00 	clr  %i0                                       
    return NULL;                                                      
                                                                      
  parent = parent_loc->node_access;                                   
  fs_info = parent_loc->mt_entry->fs_info;                            
 200a490:	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;                                   
 200a494:	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 &&                                           
 200a498:	80 a6 60 07 	cmp  %i1, 7                                    
 200a49c:	02 80 00 28 	be  200a53c <IMFS_create_node+0xc0>            
 200a4a0:	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 );
 200a4a4:	03 00 80 53 	sethi  %hi(0x2014c00), %g1                     
 200a4a8:	c2 00 60 80 	ld  [ %g1 + 0x80 ], %g1	! 2014c80 <rtems_current_user_env>
 200a4ac:	90 10 00 19 	mov  %i1, %o0                                  
 200a4b0:	d4 00 60 2c 	ld  [ %g1 + 0x2c ], %o2                        
 200a4b4:	92 10 00 1a 	mov  %i2, %o1                                  
 200a4b8:	7f ff ff d8 	call  200a418 <IMFS_allocate_node>             
 200a4bc:	94 2e c0 0a 	andn  %i3, %o2, %o2                            
  if ( !node )                                                        
 200a4c0:	b0 92 20 00 	orcc  %o0, 0, %i0                              
 200a4c4:	02 80 00 1c 	be  200a534 <IMFS_create_node+0xb8>            
 200a4c8:	80 a6 60 01 	cmp  %i1, 1                                    
    return NULL;                                                      
                                                                      
  /*                                                                  
   *  Set the type specific information                               
   */                                                                 
  if ( type == IMFS_DIRECTORY ) {                                     
 200a4cc:	02 80 00 24 	be  200a55c <IMFS_create_node+0xe0>            
 200a4d0:	80 a6 60 03 	cmp  %i1, 3                                    
    rtems_chain_initialize_empty(&node->info.directory.Entries);      
  } else if ( type == IMFS_HARD_LINK ) {                              
 200a4d4:	02 80 00 0e 	be  200a50c <IMFS_create_node+0x90>            
 200a4d8:	80 a6 60 04 	cmp  %i1, 4                                    
    node->info.hard_link.link_node = info->hard_link.link_node;       
  } else if ( type == IMFS_SYM_LINK ) {                               
 200a4dc:	02 80 00 0c 	be  200a50c <IMFS_create_node+0x90>            
 200a4e0:	80 a6 60 02 	cmp  %i1, 2                                    
    node->info.sym_link.name = info->sym_link.name;                   
  } else if ( type == IMFS_DEVICE ) {                                 
 200a4e4:	02 80 00 28 	be  200a584 <IMFS_create_node+0x108>           
 200a4e8:	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 ) {                            
 200a4ec:	02 80 00 22 	be  200a574 <IMFS_create_node+0xf8>            
 200a4f0:	80 a6 60 05 	cmp  %i1, 5                                    
    node->info.linearfile.size      = 0;                              
    node->info.linearfile.direct    = 0;                              
  } else if ( type == IMFS_MEMORY_FILE ) {                            
 200a4f4:	02 80 00 29 	be  200a598 <IMFS_create_node+0x11c>           
 200a4f8:	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 ) {                                   
 200a4fc:	22 80 00 06 	be,a   200a514 <IMFS_create_node+0x98>         <== ALWAYS TAKEN
 200a500:	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;                                
 200a504:	10 80 00 05 	b  200a518 <IMFS_create_node+0x9c>             <== NOT EXECUTED
 200a508:	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;                   
 200a50c:	c2 07 00 00 	ld  [ %i4 ], %g1                               
 200a510:	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;                                
 200a514:	c2 07 60 04 	ld  [ %i5 + 4 ], %g1                           
  }                                                                   
                                                                      
  /*                                                                  
   *  This node MUST have a parent, so put it in that directory list. 
   */                                                                 
  node->Parent = parent;                                              
 200a518:	e0 26 20 08 	st  %l0, [ %i0 + 8 ]                           
  node->st_ino = ++fs_info->ino_count;                                
 200a51c:	82 00 60 01 	inc  %g1                                       
 200a520:	c2 27 60 04 	st  %g1, [ %i5 + 4 ]                           
 200a524:	c2 26 20 38 	st  %g1, [ %i0 + 0x38 ]                        
 200a528:	90 04 20 50 	add  %l0, 0x50, %o0                            
 200a52c:	7f ff f2 25 	call  2006dc0 <_Chain_Append>                  
 200a530:	92 10 00 18 	mov  %i0, %o1                                  
                                                                      
  rtems_chain_append( &parent->info.directory.Entries, &node->Node ); 
                                                                      
  return node;                                                        
}                                                                     
 200a534:	81 c7 e0 08 	ret                                            
 200a538:	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 &&                                           
 200a53c:	c4 07 60 10 	ld  [ %i5 + 0x10 ], %g2                        
 200a540:	03 00 80 50 	sethi  %hi(0x2014000), %g1                     
 200a544:	82 10 62 fc 	or  %g1, 0x2fc, %g1	! 20142fc <rtems_filesystem_handlers_default>
 200a548:	80 a0 80 01 	cmp  %g2, %g1                                  
 200a54c:	12 bf ff d7 	bne  200a4a8 <IMFS_create_node+0x2c>           
 200a550:	03 00 80 53 	sethi  %hi(0x2014c00), %g1                     
  node->st_ino = ++fs_info->ino_count;                                
                                                                      
  rtems_chain_append( &parent->info.directory.Entries, &node->Node ); 
                                                                      
  return node;                                                        
}                                                                     
 200a554:	81 c7 e0 08 	ret                                            
 200a558:	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 );                        
 200a55c:	82 06 20 50 	add  %i0, 0x50, %g1                            
 200a560:	84 06 20 54 	add  %i0, 0x54, %g2                            
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
 200a564:	c0 26 20 54 	clr  [ %i0 + 0x54 ]                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 200a568:	c4 26 20 50 	st  %g2, [ %i0 + 0x50 ]                        
  head->previous = NULL;                                              
  tail->previous = head;                                              
 200a56c:	10 bf ff ea 	b  200a514 <IMFS_create_node+0x98>             
 200a570:	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;                              
 200a574:	c0 26 20 50 	clr  [ %i0 + 0x50 ]                            
 200a578:	c0 26 20 54 	clr  [ %i0 + 0x54 ]                            
    node->info.linearfile.direct    = 0;                              
 200a57c:	10 bf ff e6 	b  200a514 <IMFS_create_node+0x98>             
 200a580:	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;                     
 200a584:	c4 07 00 00 	ld  [ %i4 ], %g2                               
    node->info.device.minor = info->device.minor;                     
 200a588:	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;                     
 200a58c:	c4 26 20 50 	st  %g2, [ %i0 + 0x50 ]                        
    node->info.device.minor = info->device.minor;                     
 200a590:	10 bf ff e1 	b  200a514 <IMFS_create_node+0x98>             
 200a594:	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;                            
 200a598:	c0 26 20 50 	clr  [ %i0 + 0x50 ]                            
 200a59c:	c0 26 20 54 	clr  [ %i0 + 0x54 ]                            
      node->info.file.indirect        = 0;                            
 200a5a0:	c0 26 20 58 	clr  [ %i0 + 0x58 ]                            
      node->info.file.doubly_indirect = 0;                            
 200a5a4:	c0 26 20 5c 	clr  [ %i0 + 0x5c ]                            
      node->info.file.triply_indirect = 0;                            
 200a5a8:	10 bf ff db 	b  200a514 <IMFS_create_node+0x98>             
 200a5ac:	c0 26 20 60 	clr  [ %i0 + 0x60 ]                            
                                                                      

02004fc0 <IMFS_dump_directory>: */ void IMFS_dump_directory( IMFS_jnode_t *the_directory, int level ) {
 2004fc0:	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;                              
 2004fc4:	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));                        
 2004fc8:	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 );                    
 2004fcc:	80 a7 40 1c 	cmp  %i5, %i4                                  
 2004fd0:	02 80 00 1e 	be  2005048 <IMFS_dump_directory+0x88>         
 2004fd4:	31 00 80 8d 	sethi  %hi(0x2023400), %i0                     
 2004fd8:	21 00 80 93 	sethi  %hi(0x2024c00), %l0                     
        the_node = the_node->next ) {                                 
                                                                      
    the_jnode = (IMFS_jnode_t *) the_node;                            
                                                                      
    for ( i=0 ; i<=level ; i++ )                                      
      fprintf(stdout, "...." );                                       
 2004fdc:	b0 16 22 a8 	or  %i0, 0x2a8, %i0                            
    IMFS_print_jnode( the_jnode );                                    
    if ( the_jnode->type == IMFS_DIRECTORY )                          
      IMFS_dump_directory( the_jnode, level + 1 );                    
 2004fe0:	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++ )                                      
 2004fe4:	80 a6 60 00 	cmp  %i1, 0                                    
 2004fe8:	06 80 00 0e 	bl  2005020 <IMFS_dump_directory+0x60>         <== NEVER TAKEN
 2004fec:	01 00 00 00 	nop                                            
 2004ff0:	b6 10 20 00 	clr  %i3	! 0 <PROM_START>                      
 2004ff4:	b4 14 23 18 	or  %l0, 0x318, %i2                            
      fprintf(stdout, "...." );                                       
 2004ff8:	c2 06 80 00 	ld  [ %i2 ], %g1                               
 2004ffc:	90 10 00 18 	mov  %i0, %o0                                  
 2005000:	d6 00 60 08 	ld  [ %g1 + 8 ], %o3                           
 2005004:	92 10 20 01 	mov  1, %o1                                    
 2005008:	40 00 3a a7 	call  2013aa4 <fwrite>                         
 200500c:	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++ )                                      
 2005010:	b6 06 e0 01 	inc  %i3                                       
 2005014:	80 a6 40 1b 	cmp  %i1, %i3                                  
 2005018:	36 bf ff f9 	bge,a   2004ffc <IMFS_dump_directory+0x3c>     
 200501c:	c2 06 80 00 	ld  [ %i2 ], %g1                               
      fprintf(stdout, "...." );                                       
    IMFS_print_jnode( the_jnode );                                    
 2005020:	7f ff ff a2 	call  2004ea8 <IMFS_print_jnode>               
 2005024:	90 10 00 1d 	mov  %i5, %o0                                  
    if ( the_jnode->type == IMFS_DIRECTORY )                          
 2005028:	c2 07 60 4c 	ld  [ %i5 + 0x4c ], %g1                        
 200502c:	80 a0 60 01 	cmp  %g1, 1                                    
 2005030:	22 80 00 08 	be,a   2005050 <IMFS_dump_directory+0x90>      
 2005034:	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 ) {                                 
 2005038:	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 );                    
 200503c:	80 a7 40 1c 	cmp  %i5, %i4                                  
 2005040:	12 bf ff ea 	bne  2004fe8 <IMFS_dump_directory+0x28>        
 2005044:	80 a6 60 00 	cmp  %i1, 0                                    
 2005048:	81 c7 e0 08 	ret                                            
 200504c:	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 );                    
 2005050:	7f ff ff dc 	call  2004fc0 <IMFS_dump_directory>            
 2005054:	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 ) {                                 
 2005058:	10 bf ff f9 	b  200503c <IMFS_dump_directory+0x7c>          
 200505c:	fa 07 40 00 	ld  [ %i5 ], %i5                               
                                                                      

0200a730 <IMFS_eval_path>: const char *pathname, /* IN */ size_t pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) {
 200a730:	9d e3 bf 78 	save  %sp, -136, %sp                           
  char                                token[ IMFS_NAME_MAX + 1 ];     
  rtems_filesystem_location_info_t    newloc;                         
  IMFS_jnode_t                       *node;                           
  int                                 result;                         
                                                                      
  if ( !rtems_libio_is_valid_perms( flags ) ) {                       
 200a734:	80 8e bf f8 	btst  -8, %i2                                  
 200a738:	12 80 00 9a 	bne  200a9a0 <IMFS_eval_path+0x270>            <== NEVER TAKEN
 200a73c:	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;                                        
 200a740:	f0 06 c0 00 	ld  [ %i3 ], %i0                               
  size_t                             pathnamelen,  /* IN     */       
  int                                flags,        /* IN     */       
  rtems_filesystem_location_info_t  *pathloc       /* IN/OUT */       
                   )                                                  
{                                                                     
  int                                 i = 0;                          
 200a744:	b8 10 20 00 	clr  %i4                                       
      case IMFS_UP_DIR:                                               
        /*                                                            
         *  Am I at the root of all filesystems? (chroot'ed?)         
         */                                                           
                                                                      
        if ( pathloc->node_access == rtems_filesystem_root.node_access )
 200a748:	21 00 80 53 	sethi  %hi(0x2014c00), %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 );  
 200a74c:	90 07 40 1c 	add  %i5, %i4, %o0                             
 200a750:	92 10 00 19 	mov  %i1, %o1                                  
 200a754:	94 07 bf d8 	add  %fp, -40, %o2                             
 200a758:	40 00 02 1e 	call  200afd0 <IMFS_get_token>                 
 200a75c:	96 07 bf fc 	add  %fp, -4, %o3                              
 200a760:	a2 10 00 08 	mov  %o0, %l1                                  
    pathnamelen -= len;                                               
    i += len;                                                         
                                                                      
    if ( !pathloc->node_access )                                      
 200a764:	d0 06 c0 00 	ld  [ %i3 ], %o0                               
 200a768:	80 a2 20 00 	cmp  %o0, 0                                    
 200a76c:	02 80 00 5c 	be  200a8dc <IMFS_eval_path+0x1ac>             <== NEVER TAKEN
 200a770:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
   */                                                                 
                                                                      
  while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
                                                                      
    type = IMFS_get_token( &pathname[i], pathnamelen, token, &len );  
    pathnamelen -= len;                                               
 200a774:	b2 26 40 01 	sub  %i1, %g1, %i1                             
      rtems_set_errno_and_return_minus_one( ENOENT );                 
                                                                      
    /*                                                                
     * I cannot move out of this directory without execute permission.
     */                                                               
    if ( type != IMFS_NO_MORE_PATH )                                  
 200a778:	80 a4 60 00 	cmp  %l1, 0                                    
 200a77c:	12 80 00 15 	bne  200a7d0 <IMFS_eval_path+0xa0>             
 200a780:	b8 07 00 01 	add  %i4, %g1, %i4                             
   *  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 ) {                               
 200a784:	c2 02 20 4c 	ld  [ %o0 + 0x4c ], %g1                        
 200a788:	80 a0 60 01 	cmp  %g1, 1                                    
 200a78c:	22 80 00 7b 	be,a   200a978 <IMFS_eval_path+0x248>          
 200a790:	c2 02 20 5c 	ld  [ %o0 + 0x5c ], %g1                        
                                          flags, pathloc );           
    } else {                                                          
      result = IMFS_Set_handlers( pathloc );                          
    }                                                                 
  } else {                                                            
    result = IMFS_Set_handlers( pathloc );                            
 200a794:	7f ff ff 9f 	call  200a610 <IMFS_Set_handlers>              
 200a798:	90 10 00 1b 	mov  %i3, %o0                                  
                                                                      
  /*                                                                  
   * Verify we have the correct permissions for this node.            
   */                                                                 
                                                                      
  if ( !IMFS_evaluate_permission( pathloc, flags ) )                  
 200a79c:	92 10 00 1a 	mov  %i2, %o1                                  
                                          flags, pathloc );           
    } else {                                                          
      result = IMFS_Set_handlers( pathloc );                          
    }                                                                 
  } else {                                                            
    result = IMFS_Set_handlers( pathloc );                            
 200a7a0:	b0 10 00 08 	mov  %o0, %i0                                  
                                                                      
  /*                                                                  
   * Verify we have the correct permissions for this node.            
   */                                                                 
                                                                      
  if ( !IMFS_evaluate_permission( pathloc, flags ) )                  
 200a7a4:	7f ff ff bd 	call  200a698 <IMFS_evaluate_permission>       
 200a7a8:	90 10 00 1b 	mov  %i3, %o0                                  
 200a7ac:	80 a2 20 00 	cmp  %o0, 0                                    
 200a7b0:	12 80 00 8c 	bne  200a9e0 <IMFS_eval_path+0x2b0>            
 200a7b4:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( EACCES );                   
 200a7b8:	40 00 0e 9b 	call  200e224 <__errno>                        
 200a7bc:	b0 10 3f ff 	mov  -1, %i0	! ffffffff <RAM_END+0xfdbfffff>   
 200a7c0:	82 10 20 0d 	mov  0xd, %g1                                  
 200a7c4:	c2 22 00 00 	st  %g1, [ %o0 ]                               
                                                                      
  return result;                                                      
}                                                                     
 200a7c8:	81 c7 e0 08 	ret                                            
 200a7cc:	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 )                             
 200a7d0:	c2 06 20 4c 	ld  [ %i0 + 0x4c ], %g1                        
 200a7d4:	80 a0 60 01 	cmp  %g1, 1                                    
 200a7d8:	22 80 00 3a 	be,a   200a8c0 <IMFS_eval_path+0x190>          
 200a7dc:	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 ) {                                                  
 200a7e0:	80 a4 60 03 	cmp  %l1, 3                                    
 200a7e4:	02 80 00 0a 	be  200a80c <IMFS_eval_path+0xdc>              
 200a7e8:	80 a4 60 04 	cmp  %l1, 4                                    
 200a7ec:	02 80 00 2f 	be  200a8a8 <IMFS_eval_path+0x178>             
 200a7f0:	80 a4 60 02 	cmp  %l1, 2                                    
 200a7f4:	02 80 00 1a 	be  200a85c <IMFS_eval_path+0x12c>             
 200a7f8:	80 a4 60 04 	cmp  %l1, 4                                    
                                                                      
  /*                                                                  
   *  Evaluate all tokens until we are done or an error occurs.       
   */                                                                 
                                                                      
  while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
 200a7fc:	22 bf ff e3 	be,a   200a788 <IMFS_eval_path+0x58>           <== NEVER TAKEN
 200a800:	c2 02 20 4c 	ld  [ %o0 + 0x4c ], %g1                        <== NOT EXECUTED
 200a804:	10 bf ff d2 	b  200a74c <IMFS_eval_path+0x1c>               
 200a808:	b0 10 00 08 	mov  %o0, %i0                                  
                                                                      
      case IMFS_NAME:                                                 
        /*                                                            
         *  If we are at a link follow it.                            
         */                                                           
        if ( node->type == IMFS_HARD_LINK ) {                         
 200a80c:	c2 02 20 4c 	ld  [ %o0 + 0x4c ], %g1                        
 200a810:	80 a0 60 03 	cmp  %g1, 3                                    
 200a814:	02 80 00 38 	be  200a8f4 <IMFS_eval_path+0x1c4>             
 200a818:	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 ) {                   
 200a81c:	22 80 00 4f 	be,a   200a958 <IMFS_eval_path+0x228>          
 200a820:	90 10 00 1b 	mov  %i3, %o0                                  
        }                                                             
                                                                      
        /*                                                            
         *  Only a directory can be decended into.                    
         */                                                           
        if ( node->type != IMFS_DIRECTORY )                           
 200a824:	80 a0 60 01 	cmp  %g1, 1                                    
 200a828:	12 80 00 64 	bne  200a9b8 <IMFS_eval_path+0x288>            
 200a82c:	01 00 00 00 	nop                                            
                                                                      
        /*                                                            
         *  If we are at a node that is a mount point. Set loc to the 
         *  new fs root node and let them finish evaluating the path. 
         */                                                           
        if ( node->info.directory.mt_fs != NULL ) {                   
 200a830:	c2 02 20 5c 	ld  [ %o0 + 0x5c ], %g1                        
 200a834:	80 a0 60 00 	cmp  %g1, 0                                    
 200a838:	32 80 00 54 	bne,a   200a988 <IMFS_eval_path+0x258>         
 200a83c:	c4 00 60 28 	ld  [ %g1 + 0x28 ], %g2                        
        }                                                             
                                                                      
        /*                                                            
         *  Otherwise find the token name in the present location.    
         */                                                           
        node = IMFS_find_match_in_dir( node, token );                 
 200a840:	40 00 01 c1 	call  200af44 <IMFS_find_match_in_dir>         
 200a844:	92 07 bf d8 	add  %fp, -40, %o1                             
        if ( !node )                                                  
 200a848:	b0 92 20 00 	orcc  %o0, 0, %i0                              
 200a84c:	02 80 00 24 	be  200a8dc <IMFS_eval_path+0x1ac>             
 200a850:	01 00 00 00 	nop                                            
        /*                                                            
         *  Set the node access to the point we have found.           
         */                                                           
                                                                      
        pathloc->node_access = node;                                  
        break;                                                        
 200a854:	10 bf ff be 	b  200a74c <IMFS_eval_path+0x1c>               
 200a858:	f0 26 c0 00 	st  %i0, [ %i3 ]                               
      case IMFS_UP_DIR:                                               
        /*                                                            
         *  Am I at the root of all filesystems? (chroot'ed?)         
         */                                                           
                                                                      
        if ( pathloc->node_access == rtems_filesystem_root.node_access )
 200a85c:	c2 04 20 80 	ld  [ %l0 + 0x80 ], %g1                        
 200a860:	c2 00 60 18 	ld  [ %g1 + 0x18 ], %g1                        
 200a864:	80 a0 40 08 	cmp  %g1, %o0                                  
 200a868:	02 bf ff b9 	be  200a74c <IMFS_eval_path+0x1c>              
 200a86c:	b0 10 00 08 	mov  %o0, %i0                                  
        /*                                                            
         *  Am I at the root of this mounted filesystem?              
         */                                                           
                                                                      
        if (pathloc->node_access ==                                   
            pathloc->mt_entry->mt_fs_root.node_access) {              
 200a870:	c2 06 e0 10 	ld  [ %i3 + 0x10 ], %g1                        
                                                                      
        /*                                                            
         *  Am I at the root of this mounted filesystem?              
         */                                                           
                                                                      
        if (pathloc->node_access ==                                   
 200a874:	c4 00 60 1c 	ld  [ %g1 + 0x1c ], %g2                        
 200a878:	80 a0 80 08 	cmp  %g2, %o0                                  
 200a87c:	22 80 00 24 	be,a   200a90c <IMFS_eval_path+0x1dc>          
 200a880:	c4 00 60 14 	ld  [ %g1 + 0x14 ], %g2                        
                                               pathnamelen+len,       
                                               flags,pathloc);        
          }                                                           
        } else {                                                      
                                                                      
          if ( !node->Parent )                                        
 200a884:	f0 02 20 08 	ld  [ %o0 + 8 ], %i0                           
 200a888:	80 a6 20 00 	cmp  %i0, 0                                    
 200a88c:	32 bf ff b0 	bne,a   200a74c <IMFS_eval_path+0x1c>          
 200a890:	f0 26 c0 00 	st  %i0, [ %i3 ]                               
            rtems_set_errno_and_return_minus_one( ENOENT );           
 200a894:	40 00 0e 64 	call  200e224 <__errno>                        
 200a898:	b0 10 3f ff 	mov  -1, %i0                                   
 200a89c:	e2 22 00 00 	st  %l1, [ %o0 ]                               
 200a8a0:	81 c7 e0 08 	ret                                            
 200a8a4:	81 e8 00 00 	restore                                        
      case IMFS_NO_MORE_PATH:                                         
      case IMFS_CURRENT_DIR:                                          
        break;                                                        
                                                                      
      case IMFS_INVALID_TOKEN:                                        
        rtems_set_errno_and_return_minus_one( ENAMETOOLONG );         
 200a8a8:	40 00 0e 5f 	call  200e224 <__errno>                        
 200a8ac:	b0 10 3f ff 	mov  -1, %i0                                   
 200a8b0:	82 10 20 5b 	mov  0x5b, %g1                                 
 200a8b4:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200a8b8:	81 c7 e0 08 	ret                                            
 200a8bc:	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 )                             
        if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
 200a8c0:	7f ff ff 76 	call  200a698 <IMFS_evaluate_permission>       
 200a8c4:	92 10 20 01 	mov  1, %o1                                    
 200a8c8:	80 a2 20 00 	cmp  %o0, 0                                    
 200a8cc:	02 80 00 41 	be  200a9d0 <IMFS_eval_path+0x2a0>             
 200a8d0:	01 00 00 00 	nop                                            
 200a8d4:	10 bf ff c3 	b  200a7e0 <IMFS_eval_path+0xb0>               
 200a8d8:	d0 06 c0 00 	ld  [ %i3 ], %o0                               
        /*                                                            
         *  Otherwise find the token name in the present location.    
         */                                                           
        node = IMFS_find_match_in_dir( node, token );                 
        if ( !node )                                                  
          rtems_set_errno_and_return_minus_one( ENOENT );             
 200a8dc:	40 00 0e 52 	call  200e224 <__errno>                        
 200a8e0:	b0 10 3f ff 	mov  -1, %i0                                   
 200a8e4:	82 10 20 02 	mov  2, %g1                                    
 200a8e8:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200a8ec:	81 c7 e0 08 	ret                                            
 200a8f0:	81 e8 00 00 	restore                                        
      case IMFS_NAME:                                                 
        /*                                                            
         *  If we are at a link follow it.                            
         */                                                           
        if ( node->type == IMFS_HARD_LINK ) {                         
          IMFS_evaluate_hard_link( pathloc, 0 );                      
 200a8f4:	90 10 00 1b 	mov  %i3, %o0                                  
 200a8f8:	7f ff ff 79 	call  200a6dc <IMFS_evaluate_hard_link>        
 200a8fc:	92 10 20 00 	clr  %o1                                       
          node = pathloc->node_access;                                
 200a900:	d0 06 c0 00 	ld  [ %i3 ], %o0                               
 200a904:	10 bf ff c8 	b  200a824 <IMFS_eval_path+0xf4>               
 200a908:	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 {                                                    
            newloc = pathloc->mt_entry->mt_point_node;                
            *pathloc = newloc;                                        
            return (*pathloc->ops->evalpath_h)(&(pathname[i-len]),    
 200a90c:	d2 07 bf fc 	ld  [ %fp + -4 ], %o1                          
           */                                                         
                                                                      
          if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
            break;       /* Throw out the .. in this case */          
          } else {                                                    
            newloc = pathloc->mt_entry->mt_point_node;                
 200a910:	de 00 60 08 	ld  [ %g1 + 8 ], %o7                           
 200a914:	f0 00 60 0c 	ld  [ %g1 + 0xc ], %i0                         
 200a918:	c8 00 60 10 	ld  [ %g1 + 0x10 ], %g4                        
 200a91c:	c6 00 60 18 	ld  [ %g1 + 0x18 ], %g3                        
                                                                      
  if ( node->type == IMFS_DIRECTORY ) {                               
    if ( node->info.directory.mt_fs != NULL ) {                       
      newloc   = node->info.directory.mt_fs->mt_fs_root;              
      *pathloc = newloc;                                              
      return (*pathloc->ops->evalpath_h)( &pathname[i-len],           
 200a920:	c2 00 80 00 	ld  [ %g2 ], %g1                               
 200a924:	b8 27 00 09 	sub  %i4, %o1, %i4                             
   */                                                                 
                                                                      
  if ( node->type == IMFS_DIRECTORY ) {                               
    if ( node->info.directory.mt_fs != NULL ) {                       
      newloc   = node->info.directory.mt_fs->mt_fs_root;              
      *pathloc = newloc;                                              
 200a928:	f0 26 e0 04 	st  %i0, [ %i3 + 4 ]                           
 200a92c:	de 26 c0 00 	st  %o7, [ %i3 ]                               
 200a930:	c8 26 e0 08 	st  %g4, [ %i3 + 8 ]                           
 200a934:	c4 26 e0 0c 	st  %g2, [ %i3 + 0xc ]                         
 200a938:	c6 26 e0 10 	st  %g3, [ %i3 + 0x10 ]                        
      return (*pathloc->ops->evalpath_h)( &pathname[i-len],           
 200a93c:	90 07 40 1c 	add  %i5, %i4, %o0                             
 200a940:	92 06 40 09 	add  %i1, %o1, %o1                             
 200a944:	94 10 00 1a 	mov  %i2, %o2                                  
 200a948:	9f c0 40 00 	call  %g1                                      
 200a94c:	96 10 00 1b 	mov  %i3, %o3                                  
 200a950:	81 c7 e0 08 	ret                                            
 200a954:	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 );              
 200a958:	40 00 00 24 	call  200a9e8 <IMFS_evaluate_sym_link>         
 200a95c:	92 10 20 00 	clr  %o1                                       
 200a960:	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 )                                         
 200a964:	80 a6 3f ff 	cmp  %i0, -1                                   
 200a968:	02 bf ff 98 	be  200a7c8 <IMFS_eval_path+0x98>              <== NEVER TAKEN
 200a96c:	d0 06 c0 00 	ld  [ %i3 ], %o0                               
 200a970:	10 bf ff ad 	b  200a824 <IMFS_eval_path+0xf4>               
 200a974:	c2 02 20 4c 	ld  [ %o0 + 0x4c ], %g1                        
   *                                                                  
   *  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 ) {                       
 200a978:	80 a0 60 00 	cmp  %g1, 0                                    
 200a97c:	02 bf ff 86 	be  200a794 <IMFS_eval_path+0x64>              
 200a980:	01 00 00 00 	nop                                            
      newloc   = node->info.directory.mt_fs->mt_fs_root;              
 200a984:	c4 00 60 28 	ld  [ %g1 + 0x28 ], %g2                        
      *pathloc = newloc;                                              
      return (*pathloc->ops->evalpath_h)( &pathname[i-len],           
 200a988:	d2 07 bf fc 	ld  [ %fp + -4 ], %o1                          
   *  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 ) {                       
      newloc   = node->info.directory.mt_fs->mt_fs_root;              
 200a98c:	de 00 60 1c 	ld  [ %g1 + 0x1c ], %o7                        
 200a990:	f0 00 60 20 	ld  [ %g1 + 0x20 ], %i0                        
 200a994:	c8 00 60 24 	ld  [ %g1 + 0x24 ], %g4                        
 200a998:	10 bf ff e2 	b  200a920 <IMFS_eval_path+0x1f0>              
 200a99c:	c6 00 60 2c 	ld  [ %g1 + 0x2c ], %g3                        
  rtems_filesystem_location_info_t    newloc;                         
  IMFS_jnode_t                       *node;                           
  int                                 result;                         
                                                                      
  if ( !rtems_libio_is_valid_perms( flags ) ) {                       
    rtems_set_errno_and_return_minus_one( EIO );                      
 200a9a0:	40 00 0e 21 	call  200e224 <__errno>                        <== NOT EXECUTED
 200a9a4:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
 200a9a8:	82 10 20 05 	mov  5, %g1                                    <== NOT EXECUTED
 200a9ac:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
 200a9b0:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200a9b4:	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 );            
 200a9b8:	40 00 0e 1b 	call  200e224 <__errno>                        
 200a9bc:	b0 10 3f ff 	mov  -1, %i0                                   
 200a9c0:	82 10 20 14 	mov  0x14, %g1                                 
 200a9c4:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200a9c8:	81 c7 e0 08 	ret                                            
 200a9cc:	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 )                             
        if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
          rtems_set_errno_and_return_minus_one( EACCES );             
 200a9d0:	40 00 0e 15 	call  200e224 <__errno>                        
 200a9d4:	b0 10 3f ff 	mov  -1, %i0                                   
 200a9d8:	82 10 20 0d 	mov  0xd, %g1                                  
 200a9dc:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200a9e0:	81 c7 e0 08 	ret                                            
 200a9e4:	81 e8 00 00 	restore                                        
                                                                      

0200ab54 <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 */ ) {
 200ab54:	9d e3 bf 78 	save  %sp, -136, %sp                           
  node = pathloc->node_access;                                        
                                                                      
  /*                                                                  
   * Get the path length.                                             
   */                                                                 
  pathlen = strlen( path );                                           
 200ab58:	90 10 00 18 	mov  %i0, %o0                                  
 200ab5c:	40 00 11 56 	call  200f0b4 <strlen>                         
 200ab60:	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;                                        
 200ab64:	f0 06 40 00 	ld  [ %i1 ], %i0                               
                                                                      
  /*                                                                  
   * Get the path length.                                             
   */                                                                 
  pathlen = strlen( path );                                           
 200ab68:	b8 10 00 08 	mov  %o0, %i4                                  
   const char                         *path,       /* IN     */       
   rtems_filesystem_location_info_t   *pathloc,    /* IN/OUT */       
   const char                        **name        /* OUT    */       
)                                                                     
{                                                                     
  int                                 i = 0;                          
 200ab6c:	b6 10 20 00 	clr  %i3                                       
      case IMFS_UP_DIR:                                               
       /*                                                             
        *  Am I at the root of all filesystems? (chroot'ed?)          
	*/                                                                   
                                                                      
       if ( pathloc->node_access == rtems_filesystem_root.node_access )
 200ab70:	21 00 80 53 	sethi  %hi(0x2014c00), %l0                     
   *  Evaluate all tokens until we are done or an error occurs.       
   */                                                                 
                                                                      
  while( !done ) {                                                    
                                                                      
    type = IMFS_get_token( &path[i], pathlen, token, &len );          
 200ab74:	92 10 00 1c 	mov  %i4, %o1                                  
 200ab78:	90 07 40 1b 	add  %i5, %i3, %o0                             
 200ab7c:	94 07 bf d8 	add  %fp, -40, %o2                             
 200ab80:	40 00 01 14 	call  200afd0 <IMFS_get_token>                 
 200ab84:	96 07 bf fc 	add  %fp, -4, %o3                              
    pathlen -= len;                                                   
 200ab88:	e4 07 bf fc 	ld  [ %fp + -4 ], %l2                          
   *  Evaluate all tokens until we are done or an error occurs.       
   */                                                                 
                                                                      
  while( !done ) {                                                    
                                                                      
    type = IMFS_get_token( &path[i], pathlen, token, &len );          
 200ab8c:	a2 10 00 08 	mov  %o0, %l1                                  
    pathlen -= len;                                                   
    i +=  len;                                                        
                                                                      
    if ( !pathloc->node_access )                                      
 200ab90:	d0 06 40 00 	ld  [ %i1 ], %o0                               
 200ab94:	80 a2 20 00 	cmp  %o0, 0                                    
 200ab98:	02 80 00 80 	be  200ad98 <IMFS_evaluate_for_make+0x244>     <== NEVER TAKEN
 200ab9c:	b8 27 00 12 	sub  %i4, %l2, %i4                             
                                                                      
    /*                                                                
     * I cannot move out of this directory without execute permission.
     */                                                               
                                                                      
    if ( type != IMFS_NO_MORE_PATH )                                  
 200aba0:	80 a4 60 00 	cmp  %l1, 0                                    
 200aba4:	32 80 00 08 	bne,a   200abc4 <IMFS_evaluate_for_make+0x70>  
 200aba8:	c2 06 20 4c 	ld  [ %i0 + 0x4c ], %g1                        
          pathloc->node_access = node;                                
                                                                      
        break;                                                        
                                                                      
      case IMFS_NO_MORE_PATH:                                         
        rtems_set_errno_and_return_minus_one( EEXIST );               
 200abac:	40 00 0d 9e 	call  200e224 <__errno>                        
 200abb0:	b0 10 3f ff 	mov  -1, %i0                                   
 200abb4:	82 10 20 11 	mov  0x11, %g1                                 
 200abb8:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200abbc:	81 c7 e0 08 	ret                                            
 200abc0:	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 )                             
 200abc4:	80 a0 60 01 	cmp  %g1, 1                                    
 200abc8:	22 80 00 65 	be,a   200ad5c <IMFS_evaluate_for_make+0x208>  
 200abcc:	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 ) {                                                  
 200abd0:	80 a4 60 02 	cmp  %l1, 2                                    
 200abd4:	02 80 00 1a 	be  200ac3c <IMFS_evaluate_for_make+0xe8>      
 200abd8:	b6 06 c0 12 	add  %i3, %l2, %i3                             
 200abdc:	80 a4 60 02 	cmp  %l1, 2                                    
 200abe0:	08 80 00 09 	bleu  200ac04 <IMFS_evaluate_for_make+0xb0>    
 200abe4:	80 a4 60 00 	cmp  %l1, 0                                    
 200abe8:	80 a4 60 03 	cmp  %l1, 3                                    
 200abec:	02 80 00 24 	be  200ac7c <IMFS_evaluate_for_make+0x128>     
 200abf0:	80 a4 60 04 	cmp  %l1, 4                                    
 200abf4:	02 80 00 0c 	be  200ac24 <IMFS_evaluate_for_make+0xd0>      <== ALWAYS TAKEN
 200abf8:	01 00 00 00 	nop                                            
 200abfc:	10 bf ff de 	b  200ab74 <IMFS_evaluate_for_make+0x20>       <== NOT EXECUTED
 200ac00:	b0 10 00 08 	mov  %o0, %i0                                  <== NOT EXECUTED
 200ac04:	32 bf ff dc 	bne,a   200ab74 <IMFS_evaluate_for_make+0x20>  <== ALWAYS TAKEN
 200ac08:	b0 10 00 08 	mov  %o0, %i0                                  
          pathloc->node_access = node;                                
                                                                      
        break;                                                        
                                                                      
      case IMFS_NO_MORE_PATH:                                         
        rtems_set_errno_and_return_minus_one( EEXIST );               
 200ac0c:	40 00 0d 86 	call  200e224 <__errno>                        <== NOT EXECUTED
 200ac10:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
 200ac14:	82 10 20 11 	mov  0x11, %g1                                 <== NOT EXECUTED
 200ac18:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
 200ac1c:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200ac20:	81 e8 00 00 	restore                                        <== NOT EXECUTED
        break;                                                        
                                                                      
      case IMFS_INVALID_TOKEN:                                        
        rtems_set_errno_and_return_minus_one( ENAMETOOLONG );         
 200ac24:	40 00 0d 80 	call  200e224 <__errno>                        
 200ac28:	b0 10 3f ff 	mov  -1, %i0                                   
 200ac2c:	82 10 20 5b 	mov  0x5b, %g1                                 
 200ac30:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200ac34:	81 c7 e0 08 	ret                                            
 200ac38:	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 )
 200ac3c:	c2 04 20 80 	ld  [ %l0 + 0x80 ], %g1                        
 200ac40:	c2 00 60 18 	ld  [ %g1 + 0x18 ], %g1                        
 200ac44:	80 a0 40 08 	cmp  %g1, %o0                                  
 200ac48:	02 bf ff cb 	be  200ab74 <IMFS_evaluate_for_make+0x20>      
 200ac4c:	b0 10 00 08 	mov  %o0, %i0                                  
                                                                      
	/*                                                                   
	 * Am I at the root of this mounted filesystem?                      
	 */                                                                  
                                                                      
        if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access){
 200ac50:	c2 06 60 10 	ld  [ %i1 + 0x10 ], %g1                        
 200ac54:	c4 00 60 1c 	ld  [ %g1 + 0x1c ], %g2                        
 200ac58:	80 a0 80 08 	cmp  %g2, %o0                                  
 200ac5c:	22 80 00 55 	be,a   200adb0 <IMFS_evaluate_for_make+0x25c>  
 200ac60:	c4 00 60 14 	ld  [ %g1 + 0x14 ], %g2                        
            *pathloc = newloc;                                        
            return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
	  }                                                                  
	} else {                                                             
                                                                      
          if ( !node->Parent )                                        
 200ac64:	f0 02 20 08 	ld  [ %o0 + 8 ], %i0                           
 200ac68:	80 a6 20 00 	cmp  %i0, 0                                    
 200ac6c:	02 80 00 63 	be  200adf8 <IMFS_evaluate_for_make+0x2a4>     
 200ac70:	01 00 00 00 	nop                                            
	 */                                                                  
                                                                      
        if ( ! node )                                                 
          done = true;                                                
        else                                                          
          pathloc->node_access = node;                                
 200ac74:	10 bf ff c0 	b  200ab74 <IMFS_evaluate_for_make+0x20>       
 200ac78:	f0 26 40 00 	st  %i0, [ %i1 ]                               
        pathloc->node_access = node;                                  
        break;                                                        
                                                                      
      case IMFS_NAME:                                                 
                                                                      
	if ( node->type == IMFS_HARD_LINK ) {                                
 200ac7c:	c2 02 20 4c 	ld  [ %o0 + 0x4c ], %g1                        
 200ac80:	80 a0 60 03 	cmp  %g1, 3                                    
 200ac84:	02 80 00 3d 	be  200ad78 <IMFS_evaluate_for_make+0x224>     
 200ac88:	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 ) {                          
 200ac8c:	22 80 00 3c 	be,a   200ad7c <IMFS_evaluate_for_make+0x228>  
 200ac90:	90 10 00 19 	mov  %i1, %o0                                  
          if ( result == -1 )                                         
            return -1;                                                
	}                                                                    
                                                                      
        node = pathloc->node_access;                                  
        if ( !node )                                                  
 200ac94:	80 a2 20 00 	cmp  %o0, 0                                    
 200ac98:	02 80 00 5d 	be  200ae0c <IMFS_evaluate_for_make+0x2b8>     <== NEVER TAKEN
 200ac9c:	01 00 00 00 	nop                                            
                                                                      
        /*                                                            
         * Only a directory can be decended into.                     
	 */                                                                  
                                                                      
        if ( node->type != IMFS_DIRECTORY )                           
 200aca0:	c2 02 20 4c 	ld  [ %o0 + 0x4c ], %g1                        
 200aca4:	80 a0 60 01 	cmp  %g1, 1                                    
 200aca8:	12 80 00 59 	bne  200ae0c <IMFS_evaluate_for_make+0x2b8>    
 200acac:	01 00 00 00 	nop                                            
	/*                                                                   
	 * If we are at a node that is a mount point. Set loc to the         
	 * new fs root node and let them finish evaluating the path.         
	 */                                                                  
                                                                      
        if ( node->info.directory.mt_fs != NULL ) {                   
 200acb0:	c2 02 20 5c 	ld  [ %o0 + 0x5c ], %g1                        
 200acb4:	80 a0 60 00 	cmp  %g1, 0                                    
 200acb8:	32 80 00 5b 	bne,a   200ae24 <IMFS_evaluate_for_make+0x2d0> 
 200acbc:	c4 00 60 28 	ld  [ %g1 + 0x28 ], %g2                        
                                                                      
	/*                                                                   
	 * Otherwise find the token name in the present location.            
	 */                                                                  
                                                                      
        node = IMFS_find_match_in_dir( node, token );                 
 200acc0:	40 00 00 a1 	call  200af44 <IMFS_find_match_in_dir>         
 200acc4:	92 07 bf d8 	add  %fp, -40, %o1                             
	/*                                                                   
	 * If there is no node we have found the name of the node we         
         * wish to create.                                            
	 */                                                                  
                                                                      
        if ( ! node )                                                 
 200acc8:	b0 92 20 00 	orcc  %o0, 0, %i0                              
 200accc:	32 bf ff aa 	bne,a   200ab74 <IMFS_evaluate_for_make+0x20>  
 200acd0:	f0 26 40 00 	st  %i0, [ %i1 ]                               
      case IMFS_CURRENT_DIR:                                          
        break;                                                        
    }                                                                 
  }                                                                   
                                                                      
  *name = &path[ i - len ];                                           
 200acd4:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 200acd8:	82 26 c0 01 	sub  %i3, %g1, %g1                             
 200acdc:	82 07 40 01 	add  %i5, %g1, %g1                             
 200ace0:	10 80 00 07 	b  200acfc <IMFS_evaluate_for_make+0x1a8>      
 200ace4:	c2 26 80 00 	st  %g1, [ %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++) {                                      
    if ( !IMFS_is_separator( path[ i ] ) )                            
 200ace8:	7f ff e3 27 	call  2003984 <rtems_filesystem_is_separator>  
 200acec:	b6 06 e0 01 	inc  %i3                                       
 200acf0:	80 a2 20 00 	cmp  %o0, 0                                    
 200acf4:	02 80 00 29 	be  200ad98 <IMFS_evaluate_for_make+0x244>     
 200acf8:	01 00 00 00 	nop                                            
  /*                                                                  
   * 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++) {                                      
 200acfc:	d0 0f 40 1b 	ldub  [ %i5 + %i3 ], %o0                       
 200ad00:	91 2a 20 18 	sll  %o0, 0x18, %o0                            
 200ad04:	80 a2 20 00 	cmp  %o0, 0                                    
 200ad08:	12 bf ff f8 	bne  200ace8 <IMFS_evaluate_for_make+0x194>    
 200ad0c:	91 3a 20 18 	sra  %o0, 0x18, %o0                            
                                                                      
  /*                                                                  
   * Verify we can execute and write to this directory.               
   */                                                                 
                                                                      
  result = IMFS_Set_handlers( pathloc );                              
 200ad10:	7f ff fe 40 	call  200a610 <IMFS_Set_handlers>              
 200ad14:	90 10 00 19 	mov  %i1, %o0                                  
                                                                      
  /*                                                                  
   * The returned node must be a directory                            
   */                                                                 
  node = pathloc->node_access;                                        
  if ( node->type != IMFS_DIRECTORY )                                 
 200ad18:	c2 06 40 00 	ld  [ %i1 ], %g1                               
 200ad1c:	c2 00 60 4c 	ld  [ %g1 + 0x4c ], %g1                        
 200ad20:	80 a0 60 01 	cmp  %g1, 1                                    
 200ad24:	12 80 00 3a 	bne  200ae0c <IMFS_evaluate_for_make+0x2b8>    <== NEVER TAKEN
 200ad28:	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 ) )   
 200ad2c:	90 10 00 19 	mov  %i1, %o0                                  
 200ad30:	7f ff fe 5a 	call  200a698 <IMFS_evaluate_permission>       
 200ad34:	92 10 20 03 	mov  3, %o1                                    
 200ad38:	80 a2 20 00 	cmp  %o0, 0                                    
 200ad3c:	12 80 00 43 	bne  200ae48 <IMFS_evaluate_for_make+0x2f4>    
 200ad40:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( EACCES );                   
 200ad44:	40 00 0d 38 	call  200e224 <__errno>                        
 200ad48:	b0 10 3f ff 	mov  -1, %i0	! ffffffff <RAM_END+0xfdbfffff>   
 200ad4c:	82 10 20 0d 	mov  0xd, %g1                                  
 200ad50:	c2 22 00 00 	st  %g1, [ %o0 ]                               
                                                                      
  return result;                                                      
}                                                                     
 200ad54:	81 c7 e0 08 	ret                                            
 200ad58:	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 )                             
        if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
 200ad5c:	7f ff fe 4f 	call  200a698 <IMFS_evaluate_permission>       
 200ad60:	92 10 20 01 	mov  1, %o1                                    
 200ad64:	80 a2 20 00 	cmp  %o0, 0                                    
 200ad68:	02 80 00 34 	be  200ae38 <IMFS_evaluate_for_make+0x2e4>     
 200ad6c:	01 00 00 00 	nop                                            
 200ad70:	10 bf ff 98 	b  200abd0 <IMFS_evaluate_for_make+0x7c>       
 200ad74:	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 );                  
 200ad78:	90 10 00 19 	mov  %i1, %o0                                  
 200ad7c:	7f ff ff 3f 	call  200aa78 <IMFS_evaluate_link>             
 200ad80:	92 10 20 00 	clr  %o1                                       
                                                                      
          if ( result == -1 )                                         
 200ad84:	80 a2 3f ff 	cmp  %o0, -1                                   
 200ad88:	02 bf ff 8d 	be  200abbc <IMFS_evaluate_for_make+0x68>      <== NEVER TAKEN
 200ad8c:	b0 10 00 08 	mov  %o0, %i0                                  
 200ad90:	10 bf ff c1 	b  200ac94 <IMFS_evaluate_for_make+0x140>      
 200ad94:	d0 06 40 00 	ld  [ %i1 ], %o0                               
   * Verify there is not any invalid stuff at the end of the name.    
   */                                                                 
                                                                      
  for( ; path[i] != '\0'; i++) {                                      
    if ( !IMFS_is_separator( path[ i ] ) )                            
      rtems_set_errno_and_return_minus_one( ENOENT );                 
 200ad98:	40 00 0d 23 	call  200e224 <__errno>                        
 200ad9c:	b0 10 3f ff 	mov  -1, %i0                                   
 200ada0:	82 10 20 02 	mov  2, %g1                                    
 200ada4:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200ada8:	81 c7 e0 08 	ret                                            
 200adac:	81 e8 00 00 	restore                                        
                                                                      
          if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
            break;                                                    
                                                                      
	  } else {                                                           
            newloc = pathloc->mt_entry->mt_point_node;                
 200adb0:	f0 00 60 08 	ld  [ %g1 + 8 ], %i0                           
 200adb4:	f8 00 60 0c 	ld  [ %g1 + 0xc ], %i4                         
 200adb8:	c8 00 60 10 	ld  [ %g1 + 0x10 ], %g4                        
 200adbc:	c6 00 60 18 	ld  [ %g1 + 0x18 ], %g3                        
	 */                                                                  
                                                                      
        if ( node->info.directory.mt_fs != NULL ) {                   
          newloc  = node->info.directory.mt_fs->mt_fs_root;           
          *pathloc = newloc;                                          
          return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
 200adc0:	c2 00 a0 04 	ld  [ %g2 + 4 ], %g1                           
 200adc4:	de 07 bf fc 	ld  [ %fp + -4 ], %o7                          
	 * new fs root node and let them finish evaluating the path.         
	 */                                                                  
                                                                      
        if ( node->info.directory.mt_fs != NULL ) {                   
          newloc  = node->info.directory.mt_fs->mt_fs_root;           
          *pathloc = newloc;                                          
 200adc8:	f0 26 40 00 	st  %i0, [ %i1 ]                               
          return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
 200adcc:	b6 26 c0 0f 	sub  %i3, %o7, %i3                             
	 * new fs root node and let them finish evaluating the path.         
	 */                                                                  
                                                                      
        if ( node->info.directory.mt_fs != NULL ) {                   
          newloc  = node->info.directory.mt_fs->mt_fs_root;           
          *pathloc = newloc;                                          
 200add0:	f8 26 60 04 	st  %i4, [ %i1 + 4 ]                           
 200add4:	c8 26 60 08 	st  %g4, [ %i1 + 8 ]                           
 200add8:	c4 26 60 0c 	st  %g2, [ %i1 + 0xc ]                         
 200addc:	c6 26 60 10 	st  %g3, [ %i1 + 0x10 ]                        
          return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
 200ade0:	90 07 40 1b 	add  %i5, %i3, %o0                             
 200ade4:	92 10 00 19 	mov  %i1, %o1                                  
 200ade8:	9f c0 40 00 	call  %g1                                      
 200adec:	94 10 00 1a 	mov  %i2, %o2                                  
 200adf0:	81 c7 e0 08 	ret                                            
 200adf4:	91 e8 00 08 	restore  %g0, %o0, %o0                         
            return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
	  }                                                                  
	} else {                                                             
                                                                      
          if ( !node->Parent )                                        
            rtems_set_errno_and_return_minus_one( ENOENT );           
 200adf8:	40 00 0d 0b 	call  200e224 <__errno>                        
 200adfc:	b0 10 3f ff 	mov  -1, %i0                                   
 200ae00:	e2 22 00 00 	st  %l1, [ %o0 ]                               
 200ae04:	81 c7 e0 08 	ret                                            
 200ae08:	81 e8 00 00 	restore                                        
  /*                                                                  
   * The returned node must be a directory                            
   */                                                                 
  node = pathloc->node_access;                                        
  if ( node->type != IMFS_DIRECTORY )                                 
    rtems_set_errno_and_return_minus_one( ENOTDIR );                  
 200ae0c:	40 00 0d 06 	call  200e224 <__errno>                        
 200ae10:	b0 10 3f ff 	mov  -1, %i0                                   
 200ae14:	82 10 20 14 	mov  0x14, %g1                                 
 200ae18:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200ae1c:	81 c7 e0 08 	ret                                            
 200ae20:	81 e8 00 00 	restore                                        
	 * If we are at a node that is a mount point. Set loc to the         
	 * new fs root node and let them finish evaluating the path.         
	 */                                                                  
                                                                      
        if ( node->info.directory.mt_fs != NULL ) {                   
          newloc  = node->info.directory.mt_fs->mt_fs_root;           
 200ae24:	f0 00 60 1c 	ld  [ %g1 + 0x1c ], %i0                        
 200ae28:	f8 00 60 20 	ld  [ %g1 + 0x20 ], %i4                        
 200ae2c:	c8 00 60 24 	ld  [ %g1 + 0x24 ], %g4                        
 200ae30:	10 bf ff e4 	b  200adc0 <IMFS_evaluate_for_make+0x26c>      
 200ae34:	c6 00 60 2c 	ld  [ %g1 + 0x2c ], %g3                        
     */                                                               
                                                                      
    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 );            
 200ae38:	40 00 0c fb 	call  200e224 <__errno>                        
 200ae3c:	b0 10 3f ff 	mov  -1, %i0                                   
 200ae40:	82 10 20 0d 	mov  0xd, %g1                                  
 200ae44:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200ae48:	81 c7 e0 08 	ret                                            
 200ae4c:	81 e8 00 00 	restore                                        
                                                                      

0200aa78 <IMFS_evaluate_link>: */ int IMFS_evaluate_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) {
 200aa78:	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 );                  
 200aa7c:	3b 00 80 53 	sethi  %hi(0x2014c00), %i5                     
 */                                                                   
int IMFS_evaluate_link(                                               
  rtems_filesystem_location_info_t  *node,   /* IN/OUT */             
  int                                flags   /* IN     */             
)                                                                     
{                                                                     
 200aa80:	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 );                  
 200aa84:	10 80 00 07 	b  200aaa0 <IMFS_evaluate_link+0x28>           
 200aa88:	c2 07 60 80 	ld  [ %i5 + 0x80 ], %g1                        
     */                                                               
                                                                      
    if ( jnode->type == IMFS_HARD_LINK )                              
      result = IMFS_evaluate_hard_link( node, flags );                
                                                                      
    else if (jnode->type == IMFS_SYM_LINK )                           
 200aa8c:	02 80 00 21 	be  200ab10 <IMFS_evaluate_link+0x98>          
 200aa90:	84 00 bf fd 	add  %g2, -3, %g2                              
      result = IMFS_evaluate_sym_link( node, flags );                 
                                                                      
  } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK  ) || 
 200aa94:	80 a0 a0 01 	cmp  %g2, 1                                    
 200aa98:	38 80 00 1c 	bgu,a   200ab08 <IMFS_evaluate_link+0x90>      <== ALWAYS TAKEN
 200aa9c:	c0 30 60 30 	clrh  [ %g1 + 0x30 ]                           
                                                                      
    /*                                                                
     * Increment and check the link counter.                          
     */                                                               
                                                                      
    rtems_filesystem_link_counts ++;                                  
 200aaa0:	c4 10 60 30 	lduh  [ %g1 + 0x30 ], %g2                      
{                                                                     
  IMFS_jnode_t                     *jnode;                            
  int                               result = 0;                       
                                                                      
  do {                                                                
    jnode  = node->node_access;                                       
 200aaa4:	f6 07 00 00 	ld  [ %i4 ], %i3                               
                                                                      
    /*                                                                
     * Increment and check the link counter.                          
     */                                                               
                                                                      
    rtems_filesystem_link_counts ++;                                  
 200aaa8:	84 00 a0 01 	inc  %g2                                       
 200aaac:	c4 30 60 30 	sth  %g2, [ %g1 + 0x30 ]                       
    if ( rtems_filesystem_link_counts > MAXSYMLINK ) {                
 200aab0:	85 28 a0 10 	sll  %g2, 0x10, %g2                            
 200aab4:	85 30 a0 10 	srl  %g2, 0x10, %g2                            
 200aab8:	80 a0 a0 05 	cmp  %g2, 5                                    
 200aabc:	18 80 00 20 	bgu  200ab3c <IMFS_evaluate_link+0xc4>         
 200aac0:	01 00 00 00 	nop                                            
                                                                      
    /*                                                                
     *  Follow the Link node.                                         
     */                                                               
                                                                      
    if ( jnode->type == IMFS_HARD_LINK )                              
 200aac4:	c4 06 e0 4c 	ld  [ %i3 + 0x4c ], %g2                        
 200aac8:	80 a0 a0 03 	cmp  %g2, 3                                    
 200aacc:	12 bf ff f0 	bne  200aa8c <IMFS_evaluate_link+0x14>         
 200aad0:	80 a0 a0 04 	cmp  %g2, 4                                    
      result = IMFS_evaluate_hard_link( node, flags );                
 200aad4:	90 10 00 1c 	mov  %i4, %o0                                  
 200aad8:	7f ff ff 01 	call  200a6dc <IMFS_evaluate_hard_link>        
 200aadc:	92 10 00 19 	mov  %i1, %o1                                  
 200aae0:	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 ) ) );
 200aae4:	80 a6 20 00 	cmp  %i0, 0                                    
 200aae8:	12 80 00 12 	bne  200ab30 <IMFS_evaluate_link+0xb8>         
 200aaec:	c2 07 60 80 	ld  [ %i5 + 0x80 ], %g1                        
 200aaf0:	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  ) || 
 200aaf4:	84 00 bf fd 	add  %g2, -3, %g2                              
 200aaf8:	80 a0 a0 01 	cmp  %g2, 1                                    
 200aafc:	08 bf ff e9 	bleu  200aaa0 <IMFS_evaluate_link+0x28>        <== ALWAYS TAKEN
 200ab00:	c2 07 60 80 	ld  [ %i5 + 0x80 ], %g1                        
                                                                      
  /*                                                                  
   * Clear link counter.                                              
   */                                                                 
                                                                      
  rtems_filesystem_link_counts = 0;                                   
 200ab04:	c0 30 60 30 	clrh  [ %g1 + 0x30 ]                           <== NOT EXECUTED
                                                                      
  return result;                                                      
}                                                                     
 200ab08:	81 c7 e0 08 	ret                                            
 200ab0c:	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 );                 
 200ab10:	90 10 00 1c 	mov  %i4, %o0                                  
 200ab14:	7f ff ff b5 	call  200a9e8 <IMFS_evaluate_sym_link>         
 200ab18:	92 10 00 19 	mov  %i1, %o1                                  
 200ab1c:	b0 10 00 08 	mov  %o0, %i0                                  
                                                                      
  } while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK  ) || 
                                 ( jnode->type == IMFS_HARD_LINK ) ) );
 200ab20:	80 a6 20 00 	cmp  %i0, 0                                    
 200ab24:	22 bf ff f4 	be,a   200aaf4 <IMFS_evaluate_link+0x7c>       
 200ab28:	c4 06 e0 4c 	ld  [ %i3 + 0x4c ], %g2                        
 200ab2c:	c2 07 60 80 	ld  [ %i5 + 0x80 ], %g1                        
                                                                      
  /*                                                                  
   * Clear link counter.                                              
   */                                                                 
                                                                      
  rtems_filesystem_link_counts = 0;                                   
 200ab30:	c0 30 60 30 	clrh  [ %g1 + 0x30 ]                           
                                                                      
  return result;                                                      
}                                                                     
 200ab34:	81 c7 e0 08 	ret                                            
 200ab38:	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 );                  
 200ab3c:	40 00 0d ba 	call  200e224 <__errno>                        
 200ab40:	c0 30 60 30 	clrh  [ %g1 + 0x30 ]                           
 200ab44:	82 10 20 5c 	mov  0x5c, %g1                                 
 200ab48:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200ab4c:	81 c7 e0 08 	ret                                            
 200ab50:	91 e8 3f ff 	restore  %g0, -1, %o0                          
                                                                      

0200a698 <IMFS_evaluate_permission>: */ int IMFS_evaluate_permission( rtems_filesystem_location_info_t *node, int flags ) {
 200a698:	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 ) )                         
 200a69c:	80 8e 7f f8 	btst  -8, %i1                                  
 200a6a0:	12 80 00 09 	bne  200a6c4 <IMFS_evaluate_permission+0x2c>   <== NEVER TAKEN
 200a6a4:	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 )           
 200a6a8:	c2 06 00 00 	ld  [ %i0 ], %g1                               
 200a6ac:	c2 00 60 30 	ld  [ %g1 + 0x30 ], %g1                        
    return 1;                                                         
 200a6b0:	b2 2e 40 01 	andn  %i1, %g1, %i1                            
 200a6b4:	80 a0 00 19 	cmp  %g0, %i1                                  
 200a6b8:	b0 60 3f ff 	subx  %g0, -1, %i0                             
                                                                      
  return 0;                                                           
}                                                                     
 200a6bc:	81 c7 e0 08 	ret                                            
 200a6c0:	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 );                    
 200a6c4:	40 00 0e d8 	call  200e224 <__errno>                        <== NOT EXECUTED
 200a6c8:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
 200a6cc:	82 10 20 01 	mov  1, %g1                                    <== NOT EXECUTED
 200a6d0:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
 200a6d4:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200a6d8:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

0200348c <IMFS_fifo_lseek>: rtems_off64_t IMFS_fifo_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) {
 200348c:	9d e3 bf a0 	save  %sp, -96, %sp                            
  off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop);       
 2003490:	c2 06 20 1c 	ld  [ %i0 + 0x1c ], %g1                        
 2003494:	92 10 00 19 	mov  %i1, %o1                                  
 2003498:	d0 00 60 50 	ld  [ %g1 + 0x50 ], %o0                        
 200349c:	98 10 00 18 	mov  %i0, %o4                                  
 20034a0:	94 10 00 1a 	mov  %i2, %o2                                  
 20034a4:	40 00 2a 03 	call  200dcb0 <pipe_lseek>                     
 20034a8:	96 10 00 1b 	mov  %i3, %o3                                  
 20034ac:	b1 3a 20 1f 	sra  %o0, 0x1f, %i0                            
  IMFS_FIFO_RETURN(err);                                              
 20034b0:	80 a6 20 00 	cmp  %i0, 0                                    
 20034b4:	06 80 00 04 	bl  20034c4 <IMFS_fifo_lseek+0x38>             <== ALWAYS TAKEN
 20034b8:	b2 10 00 08 	mov  %o0, %i1                                  
}                                                                     
 20034bc:	81 c7 e0 08 	ret                                            
 20034c0:	81 e8 00 00 	restore                                        
  rtems_off64_t  offset,                                              
  int            whence                                               
)                                                                     
{                                                                     
  off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop);       
  IMFS_FIFO_RETURN(err);                                              
 20034c4:	40 00 32 b4 	call  200ff94 <__errno>                        
 20034c8:	31 3f ff ff 	sethi  %hi(0xfffffc00), %i0                    
 20034cc:	82 20 00 19 	neg  %i1, %g1                                  
 20034d0:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 20034d4:	b0 16 23 ff 	or  %i0, 0x3ff, %i0                            
}                                                                     
 20034d8:	81 c7 e0 08 	ret                                            
 20034dc:	93 e8 00 18 	restore  %g0, %i0, %o1                         
                                                                      

020034e0 <IMFS_fifo_write>: ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) {
 20034e0:	9d e3 bf 98 	save  %sp, -104, %sp                           
  IMFS_jnode_t *jnode = iop->pathinfo.node_access;                    
 20034e4:	fa 06 20 1c 	ld  [ %i0 + 0x1c ], %i5                        
ssize_t IMFS_fifo_write(                                              
  rtems_libio_t *iop,                                                 
  const void    *buffer,                                              
  size_t         count                                                
)                                                                     
{                                                                     
 20034e8:	96 10 00 18 	mov  %i0, %o3                                  
  IMFS_jnode_t *jnode = iop->pathinfo.node_access;                    
                                                                      
  int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop);        
 20034ec:	d0 07 60 50 	ld  [ %i5 + 0x50 ], %o0                        
 20034f0:	92 10 00 19 	mov  %i1, %o1                                  
 20034f4:	40 00 29 5a 	call  200da5c <pipe_write>                     
 20034f8:	94 10 00 1a 	mov  %i2, %o2                                  
  if (err > 0) {                                                      
 20034fc:	b0 92 20 00 	orcc  %o0, 0, %i0                              
 2003500:	04 80 00 09 	ble  2003524 <IMFS_fifo_write+0x44>            
 2003504:	90 07 bf f8 	add  %fp, -8, %o0                              
    IMFS_mtime_ctime_update(jnode);                                   
 2003508:	40 00 04 68 	call  20046a8 <gettimeofday>                   
 200350c:	92 10 20 00 	clr  %o1                                       
 2003510:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
 2003514:	c2 27 60 44 	st  %g1, [ %i5 + 0x44 ]                        
 2003518:	c2 27 60 48 	st  %g1, [ %i5 + 0x48 ]                        
 200351c:	81 c7 e0 08 	ret                                            
 2003520:	81 e8 00 00 	restore                                        
  }                                                                   
                                                                      
  IMFS_FIFO_RETURN(err);                                              
 2003524:	80 a6 20 00 	cmp  %i0, 0                                    
 2003528:	12 80 00 04 	bne  2003538 <IMFS_fifo_write+0x58>            <== ALWAYS TAKEN
 200352c:	01 00 00 00 	nop                                            
}                                                                     
 2003530:	81 c7 e0 08 	ret                                            
 2003534:	81 e8 00 00 	restore                                        
  int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop);        
  if (err > 0) {                                                      
    IMFS_mtime_ctime_update(jnode);                                   
  }                                                                   
                                                                      
  IMFS_FIFO_RETURN(err);                                              
 2003538:	40 00 32 97 	call  200ff94 <__errno>                        
 200353c:	01 00 00 00 	nop                                            
 2003540:	82 20 00 18 	neg  %i0, %g1                                  
 2003544:	c2 22 00 00 	st  %g1, [ %o0 ]                               
}                                                                     
 2003548:	81 c7 e0 08 	ret                                            
 200354c:	91 e8 3f ff 	restore  %g0, -1, %o0                          
                                                                      

0200af44 <IMFS_find_match_in_dir>: IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) {
 200af44:	9d e3 bf a0 	save  %sp, -96, %sp                            
                                                                      
  /*                                                                  
   *  Check for "." and ".."                                          
   */                                                                 
                                                                      
  if ( !strcmp( name, dotname ) )                                     
 200af48:	13 00 80 50 	sethi  %hi(0x2014000), %o1                     
 200af4c:	90 10 00 19 	mov  %i1, %o0                                  
 200af50:	40 00 0f e6 	call  200eee8 <strcmp>                         
 200af54:	92 12 63 68 	or  %o1, 0x368, %o1                            
 200af58:	80 a2 20 00 	cmp  %o0, 0                                    
 200af5c:	02 80 00 19 	be  200afc0 <IMFS_find_match_in_dir+0x7c>      <== NEVER TAKEN
 200af60:	90 10 00 19 	mov  %i1, %o0                                  
    return directory;                                                 
                                                                      
  if ( !strcmp( name, dotdotname ) )                                  
 200af64:	13 00 80 50 	sethi  %hi(0x2014000), %o1                     
 200af68:	40 00 0f e0 	call  200eee8 <strcmp>                         
 200af6c:	92 12 63 70 	or  %o1, 0x370, %o1	! 2014370 <dotdotname>     
 200af70:	80 a2 20 00 	cmp  %o0, 0                                    
 200af74:	02 80 00 12 	be  200afbc <IMFS_find_match_in_dir+0x78>      <== NEVER TAKEN
 200af78:	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;                              
 200af7c:	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 );                    
 200af80:	80 a7 40 1c 	cmp  %i5, %i4                                  
 200af84:	12 80 00 06 	bne  200af9c <IMFS_find_match_in_dir+0x58>     
 200af88:	b0 10 20 00 	clr  %i0                                       
 200af8c:	30 80 00 0d 	b,a   200afc0 <IMFS_find_match_in_dir+0x7c>    
 200af90:	80 a7 40 1c 	cmp  %i5, %i4                                  
 200af94:	02 80 00 0d 	be  200afc8 <IMFS_find_match_in_dir+0x84>      
 200af98:	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 ) )                           
 200af9c:	92 07 60 0c 	add  %i5, 0xc, %o1                             
 200afa0:	40 00 0f d2 	call  200eee8 <strcmp>                         
 200afa4:	90 10 00 19 	mov  %i1, %o0                                  
 200afa8:	80 a2 20 00 	cmp  %o0, 0                                    
 200afac:	32 bf ff f9 	bne,a   200af90 <IMFS_find_match_in_dir+0x4c>  
 200afb0:	fa 07 40 00 	ld  [ %i5 ], %i5                               
      return the_jnode;                                               
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
 200afb4:	81 c7 e0 08 	ret                                            
 200afb8:	91 e8 00 1d 	restore  %g0, %i5, %o0                         
                                                                      
  if ( !strcmp( name, dotname ) )                                     
    return directory;                                                 
                                                                      
  if ( !strcmp( name, dotdotname ) )                                  
    return directory->Parent;                                         
 200afbc:	f0 06 20 08 	ld  [ %i0 + 8 ], %i0                           <== NOT EXECUTED
 200afc0:	81 c7 e0 08 	ret                                            
 200afc4:	81 e8 00 00 	restore                                        
                                                                      
    if ( !strcmp( name, the_jnode->name ) )                           
      return the_jnode;                                               
  }                                                                   
                                                                      
  return 0;                                                           
 200afc8:	81 c7 e0 08 	ret                                            
 200afcc:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      

0200ae50 <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 ) {
 200ae50:	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;     
 200ae54:	f8 06 20 1c 	ld  [ %i0 + 0x1c ], %i4                        
   loc = temp_mt_entry->mt_fs_root;                                   
 200ae58:	c8 06 20 20 	ld  [ %i0 + 0x20 ], %g4                        
 200ae5c:	c6 06 20 24 	ld  [ %i0 + 0x24 ], %g3                        
 200ae60:	c4 06 20 28 	ld  [ %i0 + 0x28 ], %g2                        
 200ae64:	c2 06 20 2c 	ld  [ %i0 + 0x2c ], %g1                        
 200ae68:	f8 27 bf ec 	st  %i4, [ %fp + -20 ]                         
 200ae6c:	c8 27 bf f0 	st  %g4, [ %fp + -16 ]                         
 200ae70:	c6 27 bf f4 	st  %g3, [ %fp + -12 ]                         
 200ae74:	c4 27 bf f8 	st  %g2, [ %fp + -8 ]                          
 200ae78:	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;                      
 200ae7c:	c0 26 20 1c 	clr  [ %i0 + 0x1c ]                            
                                                                      
   do {                                                               
     next = jnode->Parent;                                            
 200ae80:	fa 07 20 08 	ld  [ %i4 + 8 ], %i5                           
     loc.node_access = (void *)jnode;                                 
 200ae84:	f8 27 bf ec 	st  %i4, [ %fp + -20 ]                         
     IMFS_Set_handlers( &loc );                                       
 200ae88:	7f ff fd e2 	call  200a610 <IMFS_Set_handlers>              
 200ae8c:	90 07 bf ec 	add  %fp, -20, %o0                             
                                                                      
     if ( jnode->type != IMFS_DIRECTORY ) {                           
 200ae90:	c2 07 20 4c 	ld  [ %i4 + 0x4c ], %g1                        
 200ae94:	80 a0 60 01 	cmp  %g1, 1                                    
 200ae98:	32 80 00 1d 	bne,a   200af0c <IMFS_fsunmount+0xbc>          <== NEVER TAKEN
 200ae9c:	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 ) ) {                   
 200aea0:	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 );                            
 200aea4:	82 07 20 54 	add  %i4, 0x54, %g1                            
 200aea8:	80 a0 80 01 	cmp  %g2, %g1                                  
 200aeac:	02 80 00 17 	be  200af08 <IMFS_fsunmount+0xb8>              
 200aeb0:	80 a7 20 00 	cmp  %i4, 0                                    
        result = IMFS_unlink( NULL, &loc );                           
        if (result != 0)                                              
          return -1;                                                  
        jnode = next;                                                 
     }                                                                
     if ( jnode != NULL ) {                                           
 200aeb4:	02 80 00 1e 	be  200af2c <IMFS_fsunmount+0xdc>              <== NEVER TAKEN
 200aeb8:	01 00 00 00 	nop                                            
       if ( jnode->type == IMFS_DIRECTORY ) {                         
 200aebc:	c2 07 20 4c 	ld  [ %i4 + 0x4c ], %g1                        
 200aec0:	80 a0 60 01 	cmp  %g1, 1                                    
 200aec4:	32 bf ff f0 	bne,a   200ae84 <IMFS_fsunmount+0x34>          <== NEVER TAKEN
 200aec8:	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;                    
 200aecc:	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 );                            
 200aed0:	84 07 20 54 	add  %i4, 0x54, %g2                            
         if ( jnode_has_children( jnode ) )                           
 200aed4:	80 a0 40 02 	cmp  %g1, %g2                                  
 200aed8:	02 bf ff ea 	be  200ae80 <IMFS_fsunmount+0x30>              
 200aedc:	80 a0 60 00 	cmp  %g1, 0                                    
           jnode = jnode_get_first_child( jnode );                    
       }                                                              
     }                                                                
   } while (jnode != NULL);                                           
 200aee0:	02 80 00 17 	be  200af3c <IMFS_fsunmount+0xec>              <== NEVER TAKEN
 200aee4:	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 );                                       
 200aee8:	90 07 bf ec 	add  %fp, -20, %o0                             
    */                                                                
                                                                      
   temp_mt_entry->mt_fs_root.node_access = NULL;                      
                                                                      
   do {                                                               
     next = jnode->Parent;                                            
 200aeec:	fa 07 20 08 	ld  [ %i4 + 8 ], %i5                           
     loc.node_access = (void *)jnode;                                 
     IMFS_Set_handlers( &loc );                                       
 200aef0:	7f ff fd c8 	call  200a610 <IMFS_Set_handlers>              
 200aef4:	f8 27 bf ec 	st  %i4, [ %fp + -20 ]                         
                                                                      
     if ( jnode->type != IMFS_DIRECTORY ) {                           
 200aef8:	c2 07 20 4c 	ld  [ %i4 + 0x4c ], %g1                        
 200aefc:	80 a0 60 01 	cmp  %g1, 1                                    
 200af00:	22 bf ff e9 	be,a   200aea4 <IMFS_fsunmount+0x54>           
 200af04:	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 );                           
 200af08:	90 10 20 00 	clr  %o0                                       
 200af0c:	7f ff dd 70 	call  20024cc <IMFS_unlink>                    
 200af10:	92 07 bf ec 	add  %fp, -20, %o1                             
        if (result != 0)                                              
 200af14:	80 a2 20 00 	cmp  %o0, 0                                    
 200af18:	12 80 00 07 	bne  200af34 <IMFS_fsunmount+0xe4>             <== NEVER TAKEN
 200af1c:	b8 10 00 1d 	mov  %i5, %i4                                  
          return -1;                                                  
        jnode = next;                                                 
     }                                                                
     if ( jnode != NULL ) {                                           
 200af20:	80 a7 20 00 	cmp  %i4, 0                                    
 200af24:	32 bf ff e7 	bne,a   200aec0 <IMFS_fsunmount+0x70>          
 200af28:	c2 07 20 4c 	ld  [ %i4 + 0x4c ], %g1                        
       }                                                              
     }                                                                
   } while (jnode != NULL);                                           
                                                                      
   return 0;                                                          
}                                                                     
 200af2c:	81 c7 e0 08 	ret                                            
 200af30:	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;                                                  
 200af34:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200af38:	91 e8 3f ff 	restore  %g0, -1, %o0                          <== NOT EXECUTED
           jnode = jnode_get_first_child( jnode );                    
       }                                                              
     }                                                                
   } while (jnode != NULL);                                           
                                                                      
   return 0;                                                          
 200af3c:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200af40:	91 e8 20 00 	restore  %g0, 0, %o0                           <== NOT EXECUTED
                                                                      

0200afd0 <IMFS_get_token>: const char *path, int pathlen, char *token, int *token_len ) {
 200afd0:	9d e3 bf a0 	save  %sp, -96, %sp                            
  register int i = 0;                                                 
 200afd4:	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) ) {
 200afd8:	10 80 00 08 	b  200aff8 <IMFS_get_token+0x28>               
 200afdc:	f8 0e 00 00 	ldub  [ %i0 ], %i4                             
 200afe0:	16 80 00 0c 	bge  200b010 <IMFS_get_token+0x40>             <== NEVER TAKEN
 200afe4:	80 a7 60 20 	cmp  %i5, 0x20                                 
                                                                      
     token[i] = c;                                                    
 200afe8:	f8 2e 80 1d 	stb  %i4, [ %i2 + %i5 ]                        
                                                                      
     if ( i == IMFS_NAME_MAX )                                        
 200afec:	02 80 00 25 	be  200b080 <IMFS_get_token+0xb0>              
 200aff0:	ba 07 60 01 	inc  %i5                                       
       return IMFS_INVALID_TOKEN;                                     
                                                                      
     if ( !IMFS_is_valid_name_char(c) )                               
       type = IMFS_INVALID_TOKEN;                                     
                                                                      
     c = path [++i];                                                  
 200aff4:	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) ) {
 200aff8:	a1 2f 20 18 	sll  %i4, 0x18, %l0                            
 200affc:	7f ff e2 62 	call  2003984 <rtems_filesystem_is_separator>  
 200b000:	91 3c 20 18 	sra  %l0, 0x18, %o0                            
 200b004:	80 a2 20 00 	cmp  %o0, 0                                    
 200b008:	02 bf ff f6 	be  200afe0 <IMFS_get_token+0x10>              
 200b00c:	80 a7 40 19 	cmp  %i5, %i1                                  
                                                                      
  /*                                                                  
   *  Copy a seperator into token.                                    
   */                                                                 
                                                                      
  if ( i == 0 ) {                                                     
 200b010:	80 a7 60 00 	cmp  %i5, 0                                    
 200b014:	12 80 00 0c 	bne  200b044 <IMFS_get_token+0x74>             
 200b018:	82 06 80 1d 	add  %i2, %i5, %g1                             
    token[i] = c;                                                     
                                                                      
    if ( (token[i] != '\0') && pathlen ) {                            
 200b01c:	80 a4 20 00 	cmp  %l0, 0                                    
 200b020:	02 80 00 1a 	be  200b088 <IMFS_get_token+0xb8>              
 200b024:	f8 2e 80 00 	stb  %i4, [ %i2 ]                              
 200b028:	80 a6 60 00 	cmp  %i1, 0                                    
 200b02c:	22 80 00 18 	be,a   200b08c <IMFS_get_token+0xbc>           
 200b030:	fa 26 c0 00 	st  %i5, [ %i3 ]                               
      i++;                                                            
 200b034:	ba 10 20 01 	mov  1, %i5                                    
                                                                      
  /*                                                                  
   *  Set token_len to the number of characters copied.               
   */                                                                 
                                                                      
  *token_len = i;                                                     
 200b038:	fa 26 c0 00 	st  %i5, [ %i3 ]                               
  if ( i == 0 ) {                                                     
    token[i] = c;                                                     
                                                                      
    if ( (token[i] != '\0') && pathlen ) {                            
      i++;                                                            
      type = IMFS_CURRENT_DIR;                                        
 200b03c:	81 c7 e0 08 	ret                                            
 200b040:	91 e8 20 01 	restore  %g0, 1, %o0                           
    } else {                                                          
      type = IMFS_NO_MORE_PATH;                                       
    }                                                                 
  } else if (token[ i-1 ] != '\0') {                                  
 200b044:	c2 48 7f ff 	ldsb  [ %g1 + -1 ], %g1                        
 200b048:	80 a0 60 00 	cmp  %g1, 0                                    
 200b04c:	32 80 00 02 	bne,a   200b054 <IMFS_get_token+0x84>          <== ALWAYS TAKEN
 200b050:	c0 2e 80 1d 	clrb  [ %i2 + %i5 ]                            
                                                                      
  /*                                                                  
   *  Set token_len to the number of characters copied.               
   */                                                                 
                                                                      
  *token_len = i;                                                     
 200b054:	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 )                                  
 200b058:	90 10 00 1a 	mov  %i2, %o0                                  
 200b05c:	13 00 80 50 	sethi  %hi(0x2014000), %o1                     
      type = IMFS_UP_DIR;                                             
 200b060:	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 )                                  
 200b064:	40 00 0f a1 	call  200eee8 <strcmp>                         
 200b068:	92 12 63 80 	or  %o1, 0x380, %o1                            
 200b06c:	80 a2 20 00 	cmp  %o0, 0                                    
 200b070:	12 80 00 09 	bne  200b094 <IMFS_get_token+0xc4>             
 200b074:	90 10 00 1a 	mov  %i2, %o0                                  
    else if ( strcmp( token, "." ) == 0 )                             
      type = IMFS_CURRENT_DIR;                                        
  }                                                                   
                                                                      
  return type;                                                        
}                                                                     
 200b078:	81 c7 e0 08 	ret                                            
 200b07c:	81 e8 00 00 	restore                                        
 200b080:	81 c7 e0 08 	ret                                            
 200b084:	91 e8 20 04 	restore  %g0, 4, %o0                           
                                                                      
  /*                                                                  
   *  Set token_len to the number of characters copied.               
   */                                                                 
                                                                      
  *token_len = i;                                                     
 200b088:	fa 26 c0 00 	st  %i5, [ %i3 ]                               
                                                                      
    if ( (token[i] != '\0') && pathlen ) {                            
      i++;                                                            
      type = IMFS_CURRENT_DIR;                                        
    } else {                                                          
      type = IMFS_NO_MORE_PATH;                                       
 200b08c:	81 c7 e0 08 	ret                                            
 200b090:	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 )                             
 200b094:	13 00 80 50 	sethi  %hi(0x2014000), %o1                     
 200b098:	40 00 0f 94 	call  200eee8 <strcmp>                         
 200b09c:	92 12 63 78 	or  %o1, 0x378, %o1	! 2014378 <dotdotname+0x8> 
 200b0a0:	80 a0 00 08 	cmp  %g0, %o0                                  
 200b0a4:	b0 40 3f ff 	addx  %g0, -1, %i0                             
 200b0a8:	b0 0e 3f fe 	and  %i0, -2, %i0                              
 200b0ac:	81 c7 e0 08 	ret                                            
 200b0b0:	91 ee 20 03 	restore  %i0, 3, %o0                           
                                                                      

020020b8 <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 ) {
 20020b8:	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,       
 20020bc:	03 00 80 52 	sethi  %hi(0x2014800), %g1                     
 20020c0:	c2 00 63 98 	ld  [ %g1 + 0x398 ], %g1	! 2014b98 <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) {                      
 20020c4:	80 a0 60 10 	cmp  %g1, 0x10                                 
 20020c8:	02 80 00 0d 	be  20020fc <IMFS_initialize_support+0x44>     
 20020cc:	86 10 20 05 	mov  5, %g3                                    
      is_valid = true;                                                
      break;                                                          
    }                                                                 
    if(bit_mask > requested_bytes_per_block)                          
 20020d0:	80 a0 60 0f 	cmp  %g1, 0xf                                  
 20020d4:	04 80 00 09 	ble  20020f8 <IMFS_initialize_support+0x40>    
 20020d8:	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) {                      
 20020dc:	80 a0 40 02 	cmp  %g1, %g2                                  
 20020e0:	22 80 00 08 	be,a   2002100 <IMFS_initialize_support+0x48>  
 20020e4:	05 00 80 54 	sethi  %hi(0x2015000), %g2                     
      is_valid = true;                                                
      break;                                                          
    }                                                                 
    if(bit_mask > requested_bytes_per_block)                          
 20020e8:	06 80 00 04 	bl  20020f8 <IMFS_initialize_support+0x40>     <== NEVER TAKEN
 20020ec:	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) {
 20020f0:	12 bf ff fb 	bne  20020dc <IMFS_initialize_support+0x24>    <== ALWAYS TAKEN
 20020f4:	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);                                     
 20020f8:	82 10 20 80 	mov  0x80, %g1                                 
      break;                                                          
    }                                                                 
    if(bit_mask > requested_bytes_per_block)                          
      break;                                                          
  }                                                                   
  *dest_bytes_per_block = ((is_valid)                                 
 20020fc:	05 00 80 54 	sethi  %hi(0x2015000), %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();
 2002100:	40 00 21 2c 	call  200a5b0 <IMFS_create_root_node>          
 2002104:	c2 20 a2 dc 	st  %g1, [ %g2 + 0x2dc ]	! 20152dc <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;
 2002108:	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();
 200210c:	d0 26 20 1c 	st  %o0, [ %i0 + 0x1c ]                        
 2002110:	ba 10 00 08 	mov  %o0, %i5                                  
  temp_mt_entry->mt_fs_root.handlers         = directory_handlers;    
 2002114:	f6 26 20 24 	st  %i3, [ %i0 + 0x24 ]                        
  temp_mt_entry->mt_fs_root.ops              = op_table;              
 2002118:	f2 26 20 28 	st  %i1, [ %i0 + 0x28 ]                        
  temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS;
 200211c:	90 06 20 38 	add  %i0, 0x38, %o0                            
 2002120:	13 00 80 50 	sethi  %hi(0x2014000), %o1                     
 2002124:	40 00 32 7b 	call  200eb10 <memcpy>                         
 2002128:	92 12 63 34 	or  %o1, 0x334, %o1	! 2014334 <IMFS_LIMITS_AND_OPTIONS>
                                                                      
  /*                                                                  
   * Create custom file system data.                                  
   */                                                                 
  fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) );                    
 200212c:	90 10 20 01 	mov  1, %o0                                    
 2002130:	40 00 01 c6 	call  2002848 <calloc>                         
 2002134:	92 10 20 14 	mov  0x14, %o1                                 
  if ( !fs_info ) {                                                   
 2002138:	80 a2 20 00 	cmp  %o0, 0                                    
 200213c:	02 80 00 0f 	be  2002178 <IMFS_initialize_support+0xc0>     
 2002140:	03 00 80 54 	sethi  %hi(0x2015000), %g1                     
                                                                      
  /*                                                                  
   * Set st_ino for the root to 1.                                    
   */                                                                 
                                                                      
  fs_info->instance              = imfs_instance++;                   
 2002144:	c6 00 62 e0 	ld  [ %g1 + 0x2e0 ], %g3	! 20152e0 <imfs_instance.6034>
  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;                                   
 2002148:	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;                                 
 200214c:	84 10 20 01 	mov  1, %g2                                    
                                                                      
  /*                                                                  
   * Set st_ino for the root to 1.                                    
   */                                                                 
                                                                      
  fs_info->instance              = imfs_instance++;                   
 2002150:	c6 22 00 00 	st  %g3, [ %o0 ]                               
  fs_info->ino_count             = 1;                                 
 2002154:	c4 22 20 04 	st  %g2, [ %o0 + 4 ]                           
  fs_info->memfile_handlers      = memfile_handlers;                  
 2002158:	f4 22 20 08 	st  %i2, [ %o0 + 8 ]                           
  fs_info->directory_handlers    = directory_handlers;                
 200215c:	f6 22 20 0c 	st  %i3, [ %o0 + 0xc ]                         
  fs_info->fifo_handlers         = fifo_handlers;                     
 2002160:	f8 22 20 10 	st  %i4, [ %o0 + 0x10 ]                        
                                                                      
  /*                                                                  
   * Set st_ino for the root to 1.                                    
   */                                                                 
                                                                      
  fs_info->instance              = imfs_instance++;                   
 2002164:	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;                                 
 2002168:	c4 27 60 38 	st  %g2, [ %i5 + 0x38 ]                        
                                                                      
  /*                                                                  
   * Set st_ino for the root to 1.                                    
   */                                                                 
                                                                      
  fs_info->instance              = imfs_instance++;                   
 200216c:	c6 20 62 e0 	st  %g3, [ %g1 + 0x2e0 ]                       
                                                                      
  jnode = temp_mt_entry->mt_fs_root.node_access;                      
  jnode->st_ino = fs_info->ino_count;                                 
                                                                      
  return 0;                                                           
}                                                                     
 2002170:	81 c7 e0 08 	ret                                            
 2002174:	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);                      
 2002178:	40 00 02 27 	call  2002a14 <free>                           
 200217c:	90 10 00 1d 	mov  %i5, %o0                                  
    rtems_set_errno_and_return_minus_one(ENOMEM);                     
 2002180:	40 00 30 29 	call  200e224 <__errno>                        
 2002184:	b0 10 3f ff 	mov  -1, %i0                                   
 2002188:	82 10 20 0c 	mov  0xc, %g1                                  
 200218c:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2002190:	81 c7 e0 08 	ret                                            
 2002194:	81 e8 00 00 	restore                                        
                                                                      

0200d054 <IMFS_memfile_extend>: */ MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) {
 200d054:	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 )                      
 200d058:	03 00 80 54 	sethi  %hi(0x2015000), %g1                     
 200d05c:	fa 00 62 dc 	ld  [ %g1 + 0x2dc ], %i5	! 20152dc <imfs_memfile_bytes_per_block>
 200d060:	b9 37 60 02 	srl  %i5, 2, %i4                               
 200d064:	92 10 00 1c 	mov  %i4, %o1                                  
 200d068:	40 00 12 29 	call  201190c <.umul>                          
 200d06c:	90 07 20 01 	add  %i4, 1, %o0                               
 200d070:	92 10 00 1c 	mov  %i4, %o1                                  
 200d074:	40 00 12 26 	call  201190c <.umul>                          
 200d078:	90 02 20 01 	inc  %o0                                       
 200d07c:	92 10 00 1d 	mov  %i5, %o1                                  
 200d080:	40 00 12 23 	call  201190c <.umul>                          
 200d084:	90 02 3f ff 	add  %o0, -1, %o0                              
 200d088:	82 10 20 00 	clr  %g1                                       
 200d08c:	80 a0 40 19 	cmp  %g1, %i1                                  
 200d090:	04 80 00 38 	ble  200d170 <IMFS_memfile_extend+0x11c>       <== ALWAYS TAKEN
 200d094:	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 )                      
 200d098:	f6 06 20 50 	ld  [ %i0 + 0x50 ], %i3                        <== NOT EXECUTED
 200d09c:	80 a6 40 1b 	cmp  %i1, %i3                                  
 200d0a0:	04 80 00 2a 	ble  200d148 <IMFS_memfile_extend+0xf4>        <== ALWAYS TAKEN
 200d0a4:	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;             
 200d0a8:	a3 3f 60 1f 	sra  %i5, 0x1f, %l1                            <== NOT EXECUTED
 200d0ac:	96 10 00 1d 	mov  %i5, %o3                                  
 200d0b0:	94 10 00 11 	mov  %l1, %o2                                  
 200d0b4:	90 10 00 19 	mov  %i1, %o0                                  
 200d0b8:	40 00 13 a7 	call  2011f54 <__divdi3>                       
 200d0bc:	92 10 00 1a 	mov  %i2, %o1                                  
  old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK;
 200d0c0:	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;             
 200d0c4:	b8 10 00 09 	mov  %o1, %i4                                  
  old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK;
 200d0c8:	94 10 00 11 	mov  %l1, %o2                                  
 200d0cc:	92 10 00 10 	mov  %l0, %o1                                  
 200d0d0:	40 00 13 a1 	call  2011f54 <__divdi3>                       
 200d0d4:	96 10 00 1d 	mov  %i5, %o3                                  
                                                                      
  /*                                                                  
   *  Now allocate each of those blocks.                              
   */                                                                 
  for ( block=old_blocks ; block<=new_blocks ; block++ ) {            
 200d0d8:	80 a7 00 09 	cmp  %i4, %o1                                  
 200d0dc:	0a 80 00 21 	bcs  200d160 <IMFS_memfile_extend+0x10c>       <== NEVER TAKEN
 200d0e0:	b6 10 00 09 	mov  %o1, %i3                                  
 200d0e4:	10 80 00 05 	b  200d0f8 <IMFS_memfile_extend+0xa4>          
 200d0e8:	ba 10 00 09 	mov  %o1, %i5                                  
 200d0ec:	80 a7 00 1d 	cmp  %i4, %i5                                  
 200d0f0:	2a 80 00 1d 	bcs,a   200d164 <IMFS_memfile_extend+0x110>    
 200d0f4:	f2 26 20 50 	st  %i1, [ %i0 + 0x50 ]                        
    if ( IMFS_memfile_addblock( the_jnode, block ) ) {                
 200d0f8:	92 10 00 1d 	mov  %i5, %o1                                  
 200d0fc:	7f ff ff 39 	call  200cde0 <IMFS_memfile_addblock>          
 200d100:	90 10 00 18 	mov  %i0, %o0                                  
 200d104:	80 a2 20 00 	cmp  %o0, 0                                    
 200d108:	22 bf ff f9 	be,a   200d0ec <IMFS_memfile_extend+0x98>      
 200d10c:	ba 07 60 01 	inc  %i5                                       
       for ( ; block>=old_blocks ; block-- ) {                        
 200d110:	10 80 00 06 	b  200d128 <IMFS_memfile_extend+0xd4>          
 200d114:	80 a6 c0 1d 	cmp  %i3, %i5                                  
         IMFS_memfile_remove_block( the_jnode, block );               
 200d118:	90 10 00 18 	mov  %i0, %o0                                  
 200d11c:	7f ff ff c2 	call  200d024 <IMFS_memfile_remove_block>      
 200d120:	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-- ) {                        
 200d124:	80 a6 c0 1d 	cmp  %i3, %i5                                  
 200d128:	08 bf ff fc 	bleu  200d118 <IMFS_memfile_extend+0xc4>       
 200d12c:	92 10 00 1d 	mov  %i5, %o1                                  
         IMFS_memfile_remove_block( the_jnode, block );               
       }                                                              
       rtems_set_errno_and_return_minus_one( ENOSPC );                
 200d130:	40 00 04 3d 	call  200e224 <__errno>                        
 200d134:	b0 10 3f ff 	mov  -1, %i0                                   
 200d138:	82 10 20 1c 	mov  0x1c, %g1                                 
 200d13c:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200d140:	81 c7 e0 08 	ret                                            
 200d144:	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 )                      
 200d148:	12 80 00 04 	bne  200d158 <IMFS_memfile_extend+0x104>       <== NEVER TAKEN
 200d14c:	80 a6 80 10 	cmp  %i2, %l0                                  
 200d150:	18 bf ff d7 	bgu  200d0ac <IMFS_memfile_extend+0x58>        
 200d154:	a3 3f 60 1f 	sra  %i5, 0x1f, %l1                            
  /*                                                                  
   *  Set the new length of the file.                                 
   */                                                                 
  the_jnode->info.file.size = new_length;                             
  return 0;                                                           
}                                                                     
 200d158:	81 c7 e0 08 	ret                                            
 200d15c:	91 e8 20 00 	restore  %g0, 0, %o0                           
  }                                                                   
                                                                      
  /*                                                                  
   *  Set the new length of the file.                                 
   */                                                                 
  the_jnode->info.file.size = new_length;                             
 200d160:	f2 26 20 50 	st  %i1, [ %i0 + 0x50 ]                        <== NOT EXECUTED
 200d164:	f4 26 20 54 	st  %i2, [ %i0 + 0x54 ]                        
  return 0;                                                           
 200d168:	81 c7 e0 08 	ret                                            
 200d16c:	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 )                      
 200d170:	12 80 00 04 	bne  200d180 <IMFS_memfile_extend+0x12c>       <== NEVER TAKEN
 200d174:	80 a2 00 1a 	cmp  %o0, %i2                                  
 200d178:	38 bf ff c9 	bgu,a   200d09c <IMFS_memfile_extend+0x48>     
 200d17c:	f6 06 20 50 	ld  [ %i0 + 0x50 ], %i3                        
    rtems_set_errno_and_return_minus_one( EINVAL );                   
 200d180:	40 00 04 29 	call  200e224 <__errno>                        
 200d184:	b0 10 3f ff 	mov  -1, %i0                                   
 200d188:	82 10 20 16 	mov  0x16, %g1                                 
 200d18c:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200d190:	81 c7 e0 08 	ret                                            
 200d194:	81 e8 00 00 	restore                                        
                                                                      

0200c904 <IMFS_memfile_get_block_pointer>: #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) {
 200c904:	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 ) {                                  
 200c908:	03 00 80 54 	sethi  %hi(0x2015000), %g1                     
 200c90c:	fa 00 62 dc 	ld  [ %g1 + 0x2dc ], %i5	! 20152dc <imfs_memfile_bytes_per_block>
 200c910:	bb 37 60 02 	srl  %i5, 2, %i5                               
 200c914:	82 07 7f ff 	add  %i5, -1, %g1                              
 200c918:	80 a6 40 01 	cmp  %i1, %g1                                  
 200c91c:	18 80 00 0b 	bgu  200c948 <IMFS_memfile_get_block_pointer+0x44>
 200c920:	b8 10 00 18 	mov  %i0, %i4                                  
    p = info->indirect;                                               
                                                                      
    if ( malloc_it ) {                                                
 200c924:	80 a6 a0 00 	cmp  %i2, 0                                    
 200c928:	12 80 00 50 	bne  200ca68 <IMFS_memfile_get_block_pointer+0x164>
 200c92c:	d0 06 20 58 	ld  [ %i0 + 0x58 ], %o0                        
        info->indirect = p;                                           
      }                                                               
      return &info->indirect[ my_block ];                             
    }                                                                 
                                                                      
    if ( !p )                                                         
 200c930:	80 a2 20 00 	cmp  %o0, 0                                    
 200c934:	02 80 00 64 	be  200cac4 <IMFS_memfile_get_block_pointer+0x1c0><== NEVER TAKEN
 200c938:	b0 10 20 00 	clr  %i0                                       
      return 0;                                                       
                                                                      
    return &info->indirect[ my_block ];                               
 200c93c:	b3 2e 60 02 	sll  %i1, 2, %i1                               
 200c940:	81 c7 e0 08 	ret                                            
 200c944:	91 ea 00 19 	restore  %o0, %i1, %o0                         
                                                                      
  /*                                                                  
   *  Is the block number in the doubly indirect portion?             
   */                                                                 
                                                                      
  if ( my_block <= LAST_DOUBLY_INDIRECT ) {                           
 200c948:	90 07 60 01 	add  %i5, 1, %o0                               
 200c94c:	40 00 13 f0 	call  201190c <.umul>                          
 200c950:	92 10 00 1d 	mov  %i5, %o1                                  
 200c954:	82 02 3f ff 	add  %o0, -1, %g1                              
 200c958:	80 a6 40 01 	cmp  %i1, %g1                                  
 200c95c:	08 80 00 2c 	bleu  200ca0c <IMFS_memfile_get_block_pointer+0x108>
 200c960:	b6 10 00 08 	mov  %o0, %i3                                  
  }                                                                   
                                                                      
  /*                                                                  
   *  Is the block number in the triply indirect portion?             
   */                                                                 
  if ( my_block <= LAST_TRIPLY_INDIRECT ) {                           
 200c964:	90 02 20 01 	inc  %o0                                       
 200c968:	40 00 13 e9 	call  201190c <.umul>                          
 200c96c:	92 10 00 1d 	mov  %i5, %o1                                  
 200c970:	90 02 3f ff 	add  %o0, -1, %o0                              
 200c974:	80 a6 40 08 	cmp  %i1, %o0                                  
 200c978:	18 80 00 53 	bgu  200cac4 <IMFS_memfile_get_block_pointer+0x1c0><== NEVER TAKEN
 200c97c:	b0 10 20 00 	clr  %i0                                       
    my_block -= FIRST_TRIPLY_INDIRECT;                                
 200c980:	b2 26 40 1b 	sub  %i1, %i3, %i1                             
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
 200c984:	92 10 00 1d 	mov  %i5, %o1                                  
 200c988:	40 00 14 c7 	call  2011ca4 <.urem>                          
 200c98c:	90 10 00 19 	mov  %i1, %o0                                  
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
 200c990:	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;                     
 200c994:	a0 10 00 08 	mov  %o0, %l0                                  
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
 200c998:	40 00 14 17 	call  20119f4 <.udiv>                          
 200c99c:	90 10 00 19 	mov  %i1, %o0                                  
    triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS;                       
 200c9a0:	92 10 00 1d 	mov  %i5, %o1                                  
 200c9a4:	40 00 14 14 	call  20119f4 <.udiv>                          
 200c9a8:	b6 10 00 08 	mov  %o0, %i3                                  
    doubly %= IMFS_MEMFILE_BLOCK_SLOTS;                               
 200c9ac:	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;                       
 200c9b0:	b2 10 00 08 	mov  %o0, %i1                                  
    doubly %= IMFS_MEMFILE_BLOCK_SLOTS;                               
 200c9b4:	40 00 14 bc 	call  2011ca4 <.urem>                          
 200c9b8:	90 10 00 1b 	mov  %i3, %o0                                  
                                                                      
    p = info->triply_indirect;                                        
 200c9bc:	c2 07 20 60 	ld  [ %i4 + 0x60 ], %g1                        
                                                                      
    if ( malloc_it ) {                                                
 200c9c0:	80 a6 a0 00 	cmp  %i2, 0                                    
 200c9c4:	02 80 00 33 	be  200ca90 <IMFS_memfile_get_block_pointer+0x18c>
 200c9c8:	ba 10 00 08 	mov  %o0, %i5                                  
      if ( !p ) {                                                     
 200c9cc:	80 a0 60 00 	cmp  %g1, 0                                    
 200c9d0:	02 80 00 66 	be  200cb68 <IMFS_memfile_get_block_pointer+0x264>
 200c9d4:	01 00 00 00 	nop                                            
        if ( !p )                                                     
           return 0;                                                  
        info->triply_indirect = p;                                    
      }                                                               
                                                                      
      p1 = (block_p *) p[ triply ];                                   
 200c9d8:	b3 2e 60 02 	sll  %i1, 2, %i1                               
 200c9dc:	c4 00 40 19 	ld  [ %g1 + %i1 ], %g2                         
      if ( !p1 ) {                                                    
 200c9e0:	80 a0 a0 00 	cmp  %g2, 0                                    
 200c9e4:	02 80 00 5a 	be  200cb4c <IMFS_memfile_get_block_pointer+0x248>
 200c9e8:	b2 00 40 19 	add  %g1, %i1, %i1                             
        if ( !p1 )                                                    
           return 0;                                                  
        p[ triply ] = (block_p) p1;                                   
      }                                                               
                                                                      
      p2 = (block_p *)p1[ doubly ];                                   
 200c9ec:	bb 2f 60 02 	sll  %i5, 2, %i5                               
 200c9f0:	d0 00 80 1d 	ld  [ %g2 + %i5 ], %o0                         
      if ( !p2 ) {                                                    
 200c9f4:	80 a2 20 00 	cmp  %o0, 0                                    
 200c9f8:	02 80 00 47 	be  200cb14 <IMFS_memfile_get_block_pointer+0x210>
 200c9fc:	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 ];                                
 200ca00:	b1 2c 20 02 	sll  %l0, 2, %i0                               
 200ca04:	81 c7 e0 08 	ret                                            
 200ca08:	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;                                
 200ca0c:	b2 26 40 1d 	sub  %i1, %i5, %i1                             
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
 200ca10:	92 10 00 1d 	mov  %i5, %o1                                  
 200ca14:	40 00 14 a4 	call  2011ca4 <.urem>                          
 200ca18:	90 10 00 19 	mov  %i1, %o0                                  
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
 200ca1c:	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;                     
 200ca20:	b6 10 00 08 	mov  %o0, %i3                                  
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
 200ca24:	40 00 13 f4 	call  20119f4 <.udiv>                          
 200ca28:	90 10 00 19 	mov  %i1, %o0                                  
                                                                      
    p = info->doubly_indirect;                                        
 200ca2c:	c2 06 20 5c 	ld  [ %i0 + 0x5c ], %g1                        
    if ( malloc_it ) {                                                
 200ca30:	80 a6 a0 00 	cmp  %i2, 0                                    
 200ca34:	02 80 00 26 	be  200cacc <IMFS_memfile_get_block_pointer+0x1c8>
 200ca38:	ba 10 00 08 	mov  %o0, %i5                                  
                                                                      
      if ( !p ) {                                                     
 200ca3c:	80 a0 60 00 	cmp  %g1, 0                                    
 200ca40:	02 80 00 3c 	be  200cb30 <IMFS_memfile_get_block_pointer+0x22c>
 200ca44:	01 00 00 00 	nop                                            
        if ( !p )                                                     
           return 0;                                                  
        info->doubly_indirect = p;                                    
      }                                                               
                                                                      
      p1 = (block_p *)p[ doubly ];                                    
 200ca48:	bb 2f 60 02 	sll  %i5, 2, %i5                               
 200ca4c:	d0 00 40 1d 	ld  [ %g1 + %i5 ], %o0                         
      if ( !p1 ) {                                                    
 200ca50:	80 a2 20 00 	cmp  %o0, 0                                    
 200ca54:	02 80 00 29 	be  200caf8 <IMFS_memfile_get_block_pointer+0x1f4>
 200ca58:	ba 00 40 1d 	add  %g1, %i5, %i5                             
        if ( !p1 )                                                    
           return 0;                                                  
        p[ doubly ] = (block_p) p1;                                   
      }                                                               
                                                                      
      return (block_p *)&p1[ singly ];                                
 200ca5c:	b1 2e e0 02 	sll  %i3, 2, %i0                               
 200ca60:	81 c7 e0 08 	ret                                            
 200ca64:	91 ea 00 18 	restore  %o0, %i0, %o0                         
  if ( my_block <= LAST_INDIRECT ) {                                  
    p = info->indirect;                                               
                                                                      
    if ( malloc_it ) {                                                
                                                                      
      if ( !p ) {                                                     
 200ca68:	80 a2 20 00 	cmp  %o0, 0                                    
 200ca6c:	32 bf ff b5 	bne,a   200c940 <IMFS_memfile_get_block_pointer+0x3c>
 200ca70:	b3 2e 60 02 	sll  %i1, 2, %i1                               
        p = memfile_alloc_block();                                    
 200ca74:	7f ff ff 97 	call  200c8d0 <memfile_alloc_block>            
 200ca78:	b0 10 20 00 	clr  %i0                                       
        if ( !p )                                                     
 200ca7c:	80 a2 20 00 	cmp  %o0, 0                                    
 200ca80:	02 80 00 11 	be  200cac4 <IMFS_memfile_get_block_pointer+0x1c0><== NEVER TAKEN
 200ca84:	01 00 00 00 	nop                                            
           return 0;                                                  
        info->indirect = p;                                           
 200ca88:	10 bf ff ad 	b  200c93c <IMFS_memfile_get_block_pointer+0x38>
 200ca8c:	d0 27 20 58 	st  %o0, [ %i4 + 0x58 ]                        
        p1[ doubly ] = (block_p) p2;                                  
      }                                                               
      return (block_p *)&p2[ singly ];                                
    }                                                                 
                                                                      
    if ( !p )                                                         
 200ca90:	80 a0 60 00 	cmp  %g1, 0                                    
 200ca94:	02 80 00 0c 	be  200cac4 <IMFS_memfile_get_block_pointer+0x1c0><== NEVER TAKEN
 200ca98:	b3 2e 60 02 	sll  %i1, 2, %i1                               
      return 0;                                                       
                                                                      
    p1 = (block_p *) p[ triply ];                                     
 200ca9c:	c2 00 40 19 	ld  [ %g1 + %i1 ], %g1                         
    if ( !p1 )                                                        
 200caa0:	80 a0 60 00 	cmp  %g1, 0                                    
 200caa4:	02 80 00 08 	be  200cac4 <IMFS_memfile_get_block_pointer+0x1c0><== NEVER TAKEN
 200caa8:	bb 2a 20 02 	sll  %o0, 2, %i5                               
      return 0;                                                       
                                                                      
    p2 = (block_p *)p1[ doubly ];                                     
 200caac:	c2 00 40 1d 	ld  [ %g1 + %i5 ], %g1                         
    if ( !p2 )                                                        
 200cab0:	80 a0 60 00 	cmp  %g1, 0                                    
 200cab4:	02 80 00 04 	be  200cac4 <IMFS_memfile_get_block_pointer+0x1c0><== NEVER TAKEN
 200cab8:	01 00 00 00 	nop                                            
      return 0;                                                       
                                                                      
    return (block_p *)&p2[ singly ];                                  
 200cabc:	b1 2c 20 02 	sll  %l0, 2, %i0                               
 200cac0:	b0 00 40 18 	add  %g1, %i0, %i0                             
                                                                      
  /*                                                                  
   *  This means the requested block number is out of range.          
   */                                                                 
  return 0;                                                           
}                                                                     
 200cac4:	81 c7 e0 08 	ret                                            
 200cac8:	81 e8 00 00 	restore                                        
      }                                                               
                                                                      
      return (block_p *)&p1[ singly ];                                
    }                                                                 
                                                                      
    if ( !p )                                                         
 200cacc:	80 a0 60 00 	cmp  %g1, 0                                    
 200cad0:	02 bf ff fd 	be  200cac4 <IMFS_memfile_get_block_pointer+0x1c0><== NEVER TAKEN
 200cad4:	b0 10 20 00 	clr  %i0                                       
      return 0;                                                       
                                                                      
    p = (block_p *)p[ doubly ];                                       
 200cad8:	bb 2a 20 02 	sll  %o0, 2, %i5                               
 200cadc:	c2 00 40 1d 	ld  [ %g1 + %i5 ], %g1                         
    if ( !p )                                                         
 200cae0:	80 a0 60 00 	cmp  %g1, 0                                    
 200cae4:	02 bf ff f8 	be  200cac4 <IMFS_memfile_get_block_pointer+0x1c0><== NEVER TAKEN
 200cae8:	01 00 00 00 	nop                                            
      return 0;                                                       
                                                                      
    return (block_p *)&p[ singly ];                                   
 200caec:	b1 2e e0 02 	sll  %i3, 2, %i0                               
 200caf0:	81 c7 e0 08 	ret                                            
 200caf4:	91 e8 40 18 	restore  %g1, %i0, %o0                         
        info->doubly_indirect = p;                                    
      }                                                               
                                                                      
      p1 = (block_p *)p[ doubly ];                                    
      if ( !p1 ) {                                                    
        p1 = memfile_alloc_block();                                   
 200caf8:	7f ff ff 76 	call  200c8d0 <memfile_alloc_block>            
 200cafc:	b0 10 20 00 	clr  %i0                                       
        if ( !p1 )                                                    
 200cb00:	80 a2 20 00 	cmp  %o0, 0                                    
 200cb04:	02 bf ff f0 	be  200cac4 <IMFS_memfile_get_block_pointer+0x1c0><== NEVER TAKEN
 200cb08:	01 00 00 00 	nop                                            
           return 0;                                                  
        p[ doubly ] = (block_p) p1;                                   
 200cb0c:	10 bf ff d4 	b  200ca5c <IMFS_memfile_get_block_pointer+0x158>
 200cb10:	d0 27 40 00 	st  %o0, [ %i5 ]                               
        p[ triply ] = (block_p) p1;                                   
      }                                                               
                                                                      
      p2 = (block_p *)p1[ doubly ];                                   
      if ( !p2 ) {                                                    
        p2 = memfile_alloc_block();                                   
 200cb14:	7f ff ff 6f 	call  200c8d0 <memfile_alloc_block>            
 200cb18:	b0 10 20 00 	clr  %i0                                       
        if ( !p2 )                                                    
 200cb1c:	80 a2 20 00 	cmp  %o0, 0                                    
 200cb20:	02 bf ff e9 	be  200cac4 <IMFS_memfile_get_block_pointer+0x1c0><== NEVER TAKEN
 200cb24:	01 00 00 00 	nop                                            
           return 0;                                                  
        p1[ doubly ] = (block_p) p2;                                  
 200cb28:	10 bf ff b6 	b  200ca00 <IMFS_memfile_get_block_pointer+0xfc>
 200cb2c:	d0 27 40 00 	st  %o0, [ %i5 ]                               
                                                                      
    p = info->doubly_indirect;                                        
    if ( malloc_it ) {                                                
                                                                      
      if ( !p ) {                                                     
        p = memfile_alloc_block();                                    
 200cb30:	7f ff ff 68 	call  200c8d0 <memfile_alloc_block>            
 200cb34:	b0 10 20 00 	clr  %i0                                       
        if ( !p )                                                     
 200cb38:	80 a2 20 00 	cmp  %o0, 0                                    
 200cb3c:	02 bf ff e2 	be  200cac4 <IMFS_memfile_get_block_pointer+0x1c0><== NEVER TAKEN
 200cb40:	82 10 00 08 	mov  %o0, %g1                                  
           return 0;                                                  
        info->doubly_indirect = p;                                    
 200cb44:	10 bf ff c1 	b  200ca48 <IMFS_memfile_get_block_pointer+0x144>
 200cb48:	d0 27 20 5c 	st  %o0, [ %i4 + 0x5c ]                        
        info->triply_indirect = p;                                    
      }                                                               
                                                                      
      p1 = (block_p *) p[ triply ];                                   
      if ( !p1 ) {                                                    
        p1 = memfile_alloc_block();                                   
 200cb4c:	7f ff ff 61 	call  200c8d0 <memfile_alloc_block>            
 200cb50:	b0 10 20 00 	clr  %i0                                       
        if ( !p1 )                                                    
 200cb54:	80 a2 20 00 	cmp  %o0, 0                                    
 200cb58:	02 bf ff db 	be  200cac4 <IMFS_memfile_get_block_pointer+0x1c0><== NEVER TAKEN
 200cb5c:	84 10 00 08 	mov  %o0, %g2                                  
           return 0;                                                  
        p[ triply ] = (block_p) p1;                                   
 200cb60:	10 bf ff a3 	b  200c9ec <IMFS_memfile_get_block_pointer+0xe8>
 200cb64:	d0 26 40 00 	st  %o0, [ %i1 ]                               
                                                                      
    p = info->triply_indirect;                                        
                                                                      
    if ( malloc_it ) {                                                
      if ( !p ) {                                                     
        p = memfile_alloc_block();                                    
 200cb68:	7f ff ff 5a 	call  200c8d0 <memfile_alloc_block>            
 200cb6c:	01 00 00 00 	nop                                            
        if ( !p )                                                     
 200cb70:	82 92 20 00 	orcc  %o0, 0, %g1                              
 200cb74:	02 bf ff d4 	be  200cac4 <IMFS_memfile_get_block_pointer+0x1c0><== NEVER TAKEN
 200cb78:	01 00 00 00 	nop                                            
           return 0;                                                  
        info->triply_indirect = p;                                    
 200cb7c:	10 bf ff 97 	b  200c9d8 <IMFS_memfile_get_block_pointer+0xd4>
 200cb80:	c2 27 20 60 	st  %g1, [ %i4 + 0x60 ]                        
                                                                      

0200cb84 <IMFS_memfile_read>: IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) {
 200cb84:	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) {                          
 200cb88:	c2 06 20 4c 	ld  [ %i0 + 0x4c ], %g1                        
   IMFS_jnode_t    *the_jnode,                                        
   off_t            start,                                            
   unsigned char   *destination,                                      
   unsigned int     length                                            
)                                                                     
{                                                                     
 200cb8c:	ba 10 00 18 	mov  %i0, %i5                                  
 200cb90:	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) {                          
 200cb94:	80 a0 60 06 	cmp  %g1, 6                                    
 200cb98:	02 80 00 64 	be  200cd28 <IMFS_memfile_read+0x1a4>          
 200cb9c:	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 )                        
 200cba0:	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;                                         
 200cba4:	82 10 00 1a 	mov  %i2, %g1                                  
  if ( last_byte > the_jnode->info.file.size )                        
 200cba8:	86 10 20 00 	clr  %g3                                       
 200cbac:	c8 06 20 54 	ld  [ %i0 + 0x54 ], %g4                        
 200cbb0:	80 a0 c0 02 	cmp  %g3, %g2                                  
 200cbb4:	04 80 00 41 	ble  200ccb8 <IMFS_memfile_read+0x134>         <== ALWAYS TAKEN
 200cbb8:	b4 07 00 1a 	add  %i4, %i2, %i2                             
    my_length = the_jnode->info.file.size - start;                    
 200cbbc:	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;                
 200cbc0:	33 00 80 54 	sethi  %hi(0x2015000), %i1                     <== NOT EXECUTED
 200cbc4:	f4 06 62 dc 	ld  [ %i1 + 0x2dc ], %i2	! 20152dc <imfs_memfile_bytes_per_block>
 200cbc8:	90 10 00 10 	mov  %l0, %o0                                  
 200cbcc:	b1 3e a0 1f 	sra  %i2, 0x1f, %i0                            
 200cbd0:	92 10 00 11 	mov  %l1, %o1                                  
 200cbd4:	94 10 00 18 	mov  %i0, %o2                                  
 200cbd8:	40 00 15 c5 	call  20122ec <__moddi3>                       
 200cbdc:	96 10 00 1a 	mov  %i2, %o3                                  
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
 200cbe0:	90 10 00 10 	mov  %l0, %o0                                  
   */                                                                 
                                                                      
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
 200cbe4:	a4 10 00 09 	mov  %o1, %l2                                  
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
 200cbe8:	94 10 00 18 	mov  %i0, %o2                                  
 200cbec:	92 10 00 11 	mov  %l1, %o1                                  
 200cbf0:	40 00 14 d9 	call  2011f54 <__divdi3>                       
 200cbf4:	96 10 00 1a 	mov  %i2, %o3                                  
  unsigned int         last_byte;                                     
  unsigned int         copied;                                        
  unsigned int         start_offset;                                  
  unsigned char       *dest;                                          
                                                                      
  dest = destination;                                                 
 200cbf8:	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;                       
 200cbfc:	a0 10 00 09 	mov  %o1, %l0                                  
  if ( start_offset )  {                                              
 200cc00:	80 a4 a0 00 	cmp  %l2, 0                                    
 200cc04:	02 80 00 14 	be  200cc54 <IMFS_memfile_read+0xd0>           
 200cc08:	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 );
 200cc0c:	90 10 00 1d 	mov  %i5, %o0                                  
 200cc10:	7f ff ff 3d 	call  200c904 <IMFS_memfile_get_block_pointer> 
 200cc14:	94 10 20 00 	clr  %o2                                       
    if ( !block_ptr )                                                 
 200cc18:	80 a2 20 00 	cmp  %o0, 0                                    
 200cc1c:	02 80 00 25 	be  200ccb0 <IMFS_memfile_read+0x12c>          <== NEVER TAKEN
 200cc20:	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;            
 200cc24:	80 a7 00 1a 	cmp  %i4, %i2                                  
 200cc28:	18 80 00 53 	bgu  200cd74 <IMFS_memfile_read+0x1f0>         
 200cc2c:	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 );           
 200cc30:	d2 02 00 00 	ld  [ %o0 ], %o1                               
 200cc34:	94 10 00 18 	mov  %i0, %o2                                  
 200cc38:	90 10 00 1b 	mov  %i3, %o0                                  
 200cc3c:	40 00 07 b5 	call  200eb10 <memcpy>                         
 200cc40:	92 02 40 12 	add  %o1, %l2, %o1                             
    dest += to_copy;                                                  
    block++;                                                          
    my_length -= to_copy;                                             
 200cc44:	f4 06 62 dc 	ld  [ %i1 + 0x2dc ], %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;                                                  
 200cc48:	a2 06 c0 18 	add  %i3, %i0, %l1                             
    block++;                                                          
 200cc4c:	a0 04 20 01 	inc  %l0                                       
    my_length -= to_copy;                                             
 200cc50:	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 ) {               
 200cc54:	80 a7 00 1a 	cmp  %i4, %i2                                  
 200cc58:	1a 80 00 0e 	bcc  200cc90 <IMFS_memfile_read+0x10c>         
 200cc5c:	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 ) {                                                  
 200cc60:	10 80 00 1e 	b  200ccd8 <IMFS_memfile_read+0x154>           
 200cc64:	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 );                      
 200cc68:	d2 00 40 00 	ld  [ %g1 ], %o1                               
 200cc6c:	40 00 07 a9 	call  200eb10 <memcpy>                         
 200cc70:	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 ) {               
 200cc74:	c2 06 62 dc 	ld  [ %i1 + 0x2dc ], %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;                                                  
 200cc78:	a2 04 40 1a 	add  %l1, %i2, %l1                             
    block++;                                                          
 200cc7c:	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 ) {               
 200cc80:	80 a0 40 1c 	cmp  %g1, %i4                                  
 200cc84:	18 80 00 14 	bgu  200ccd4 <IMFS_memfile_read+0x150>         
 200cc88:	b0 06 00 1a 	add  %i0, %i2, %i0                             
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
 200cc8c:	94 10 20 00 	clr  %o2                                       
 200cc90:	92 10 00 10 	mov  %l0, %o1                                  
 200cc94:	7f ff ff 1c 	call  200c904 <IMFS_memfile_get_block_pointer> 
 200cc98:	90 10 00 1d 	mov  %i5, %o0                                  
    if ( !block_ptr )                                                 
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ 0 ], to_copy );                      
 200cc9c:	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 );
 200cca0:	82 10 00 08 	mov  %o0, %g1                                  
    if ( !block_ptr )                                                 
 200cca4:	80 a0 60 00 	cmp  %g1, 0                                    
 200cca8:	12 bf ff f0 	bne  200cc68 <IMFS_memfile_read+0xe4>          <== ALWAYS TAKEN
 200ccac:	90 10 00 11 	mov  %l1, %o0                                  
  }                                                                   
                                                                      
  IMFS_update_atime( the_jnode );                                     
                                                                      
  return copied;                                                      
}                                                                     
 200ccb0:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200ccb4:	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 )                        
 200ccb8:	12 bf ff c3 	bne  200cbc4 <IMFS_memfile_read+0x40>          <== NEVER TAKEN
 200ccbc:	33 00 80 54 	sethi  %hi(0x2015000), %i1                     
 200ccc0:	80 a6 80 04 	cmp  %i2, %g4                                  
 200ccc4:	08 bf ff c1 	bleu  200cbc8 <IMFS_memfile_read+0x44>         
 200ccc8:	f4 06 62 dc 	ld  [ %i1 + 0x2dc ], %i2                       
    my_length = the_jnode->info.file.size - start;                    
 200cccc:	10 bf ff be 	b  200cbc4 <IMFS_memfile_read+0x40>            
 200ccd0:	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 ) {                                                  
 200ccd4:	80 a7 20 00 	cmp  %i4, 0                                    
 200ccd8:	02 80 00 0e 	be  200cd10 <IMFS_memfile_read+0x18c>          
 200ccdc:	90 07 bf f8 	add  %fp, -8, %o0                              
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
 200cce0:	90 10 00 1d 	mov  %i5, %o0                                  
 200cce4:	92 10 00 10 	mov  %l0, %o1                                  
 200cce8:	7f ff ff 07 	call  200c904 <IMFS_memfile_get_block_pointer> 
 200ccec:	94 10 20 00 	clr  %o2                                       
    if ( !block_ptr )                                                 
 200ccf0:	80 a2 20 00 	cmp  %o0, 0                                    
 200ccf4:	02 bf ff ef 	be  200ccb0 <IMFS_memfile_read+0x12c>          <== NEVER TAKEN
 200ccf8:	94 10 00 1c 	mov  %i4, %o2                                  
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ 0 ], my_length );                    
 200ccfc:	d2 02 00 00 	ld  [ %o0 ], %o1                               
 200cd00:	90 10 00 11 	mov  %l1, %o0                                  
 200cd04:	40 00 07 83 	call  200eb10 <memcpy>                         
 200cd08:	b0 06 00 1c 	add  %i0, %i4, %i0                             
    copied += my_length;                                              
  }                                                                   
                                                                      
  IMFS_update_atime( the_jnode );                                     
 200cd0c:	90 07 bf f8 	add  %fp, -8, %o0                              
 200cd10:	7f ff d7 6b 	call  2002abc <gettimeofday>                   
 200cd14:	92 10 20 00 	clr  %o1                                       
 200cd18:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
 200cd1c:	c2 27 60 40 	st  %g1, [ %i5 + 0x40 ]                        
                                                                      
  return copied;                                                      
}                                                                     
 200cd20:	81 c7 e0 08 	ret                                            
 200cd24:	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))        
 200cd28:	d8 1e 20 50 	ldd  [ %i0 + 0x50 ], %o4                       
 200cd2c:	82 10 20 00 	clr  %g1                                       
 200cd30:	86 a3 40 1a 	subcc  %o5, %i2, %g3                           
 200cd34:	84 63 00 19 	subx  %o4, %i1, %g2                            
 200cd38:	80 a0 40 02 	cmp  %g1, %g2                                  
 200cd3c:	04 80 00 10 	ble  200cd7c <IMFS_memfile_read+0x1f8>         <== ALWAYS TAKEN
 200cd40:	d2 06 20 58 	ld  [ %i0 + 0x58 ], %o1                        
      my_length = the_jnode->info.linearfile.size - start;            
 200cd44:	b0 23 40 11 	sub  %o5, %l1, %i0                             <== NOT EXECUTED
                                                                      
    memcpy(dest, &file_ptr[start], my_length);                        
 200cd48:	92 02 40 11 	add  %o1, %l1, %o1                             
 200cd4c:	94 10 00 18 	mov  %i0, %o2                                  
 200cd50:	40 00 07 70 	call  200eb10 <memcpy>                         
 200cd54:	90 10 00 1b 	mov  %i3, %o0                                  
                                                                      
    IMFS_update_atime( the_jnode );                                   
 200cd58:	90 07 bf f8 	add  %fp, -8, %o0                              
 200cd5c:	7f ff d7 58 	call  2002abc <gettimeofday>                   
 200cd60:	92 10 20 00 	clr  %o1                                       
 200cd64:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
 200cd68:	c2 27 60 40 	st  %g1, [ %i5 + 0x40 ]                        
                                                                      
    return my_length;                                                 
 200cd6c:	81 c7 e0 08 	ret                                            
 200cd70:	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;            
 200cd74:	10 bf ff af 	b  200cc30 <IMFS_memfile_read+0xac>            
 200cd78:	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))        
 200cd7c:	12 80 00 04 	bne  200cd8c <IMFS_memfile_read+0x208>         <== NEVER TAKEN
 200cd80:	80 a7 00 03 	cmp  %i4, %g3                                  
 200cd84:	38 bf ff f1 	bgu,a   200cd48 <IMFS_memfile_read+0x1c4>      <== ALWAYS TAKEN
 200cd88:	b0 23 40 11 	sub  %o5, %l1, %i0                             
      my_length = the_jnode->info.linearfile.size - start;            
                                                                      
    memcpy(dest, &file_ptr[start], my_length);                        
 200cd8c:	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;                                                 
 200cd90:	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);                        
 200cd94:	90 10 00 1b 	mov  %i3, %o0                                  <== NOT EXECUTED
 200cd98:	40 00 07 5e 	call  200eb10 <memcpy>                         <== NOT EXECUTED
 200cd9c:	94 10 00 18 	mov  %i0, %o2                                  <== NOT EXECUTED
                                                                      
    IMFS_update_atime( the_jnode );                                   
 200cda0:	90 07 bf f8 	add  %fp, -8, %o0                              <== NOT EXECUTED
 200cda4:	7f ff d7 46 	call  2002abc <gettimeofday>                   <== NOT EXECUTED
 200cda8:	92 10 20 00 	clr  %o1                                       <== NOT EXECUTED
 200cdac:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          <== NOT EXECUTED
 200cdb0:	c2 27 60 40 	st  %g1, [ %i5 + 0x40 ]                        <== NOT EXECUTED
                                                                      
    return my_length;                                                 
 200cdb4:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200cdb8:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

0200ceac <IMFS_memfile_remove>: * is better to stick to simple, easy to understand algorithms. */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) {
 200ceac:	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;                                 
 200ceb0:	39 00 80 54 	sethi  %hi(0x2015000), %i4                     
   *    + doubly indirect                                             
   *    + triply indirect                                             
   */                                                                 
  info = &the_jnode->info.file;                                       
                                                                      
  if ( info->indirect ) {                                             
 200ceb4:	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;                                 
 200ceb8:	f4 07 22 dc 	ld  [ %i4 + 0x2dc ], %i2                       
   *    + doubly indirect                                             
   *    + triply indirect                                             
   */                                                                 
  info = &the_jnode->info.file;                                       
                                                                      
  if ( info->indirect ) {                                             
 200cebc:	80 a0 60 00 	cmp  %g1, 0                                    
 200cec0:	02 80 00 05 	be  200ced4 <IMFS_memfile_remove+0x28>         
 200cec4:	b5 36 a0 02 	srl  %i2, 2, %i2                               
    memfile_free_blocks_in_table( &info->indirect, to_free );         
 200cec8:	90 06 20 58 	add  %i0, 0x58, %o0                            
 200cecc:	7f ff ff e2 	call  200ce54 <memfile_free_blocks_in_table>   
 200ced0:	92 10 00 1a 	mov  %i2, %o1                                  
  }                                                                   
                                                                      
  if ( info->doubly_indirect ) {                                      
 200ced4:	c2 06 20 5c 	ld  [ %i0 + 0x5c ], %g1                        
 200ced8:	80 a0 60 00 	cmp  %g1, 0                                    
 200cedc:	02 80 00 1b 	be  200cf48 <IMFS_memfile_remove+0x9c>         
 200cee0:	c4 07 22 dc 	ld  [ %i4 + 0x2dc ], %g2                       
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
 200cee4:	85 30 a0 02 	srl  %g2, 2, %g2                               
 200cee8:	80 a0 a0 00 	cmp  %g2, 0                                    
 200ceec:	02 80 00 14 	be  200cf3c <IMFS_memfile_remove+0x90>         <== NEVER TAKEN
 200cef0:	90 10 20 00 	clr  %o0                                       
 200cef4:	37 00 80 54 	sethi  %hi(0x2015000), %i3                     
 200cef8:	ba 10 20 00 	clr  %i5                                       
 200cefc:	10 80 00 03 	b  200cf08 <IMFS_memfile_remove+0x5c>          
 200cf00:	b6 16 e2 dc 	or  %i3, 0x2dc, %i3                            
 200cf04:	c2 06 20 5c 	ld  [ %i0 + 0x5c ], %g1                        
      if ( info->doubly_indirect[i] ) {                               
 200cf08:	91 2a 20 02 	sll  %o0, 2, %o0                               
 200cf0c:	c4 00 40 08 	ld  [ %g1 + %o0 ], %g2                         
 200cf10:	80 a0 a0 00 	cmp  %g2, 0                                    
 200cf14:	02 80 00 04 	be  200cf24 <IMFS_memfile_remove+0x78>         <== NEVER TAKEN
 200cf18:	90 00 40 08 	add  %g1, %o0, %o0                             
        memfile_free_blocks_in_table(                                 
 200cf1c:	7f ff ff ce 	call  200ce54 <memfile_free_blocks_in_table>   
 200cf20:	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++ ) {                  
 200cf24:	c2 06 c0 00 	ld  [ %i3 ], %g1                               
 200cf28:	ba 07 60 01 	inc  %i5                                       
 200cf2c:	83 30 60 02 	srl  %g1, 2, %g1                               
 200cf30:	80 a7 40 01 	cmp  %i5, %g1                                  
 200cf34:	0a bf ff f4 	bcs  200cf04 <IMFS_memfile_remove+0x58>        
 200cf38:	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 );  
 200cf3c:	90 06 20 5c 	add  %i0, 0x5c, %o0                            
 200cf40:	7f ff ff c5 	call  200ce54 <memfile_free_blocks_in_table>   
 200cf44:	92 10 00 1a 	mov  %i2, %o1                                  
                                                                      
  }                                                                   
                                                                      
  if ( info->triply_indirect ) {                                      
 200cf48:	d0 06 20 60 	ld  [ %i0 + 0x60 ], %o0                        
 200cf4c:	80 a2 20 00 	cmp  %o0, 0                                    
 200cf50:	02 80 00 33 	be  200d01c <IMFS_memfile_remove+0x170>        
 200cf54:	c2 07 22 dc 	ld  [ %i4 + 0x2dc ], %g1                       
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
 200cf58:	83 30 60 02 	srl  %g1, 2, %g1                               
 200cf5c:	80 a0 60 00 	cmp  %g1, 0                                    
 200cf60:	22 80 00 2d 	be,a   200d014 <IMFS_memfile_remove+0x168>     <== NEVER TAKEN
 200cf64:	90 06 20 60 	add  %i0, 0x60, %o0                            <== NOT EXECUTED
      p = (block_p *) info->triply_indirect[i];                       
 200cf68:	f8 02 00 00 	ld  [ %o0 ], %i4                               
      if ( !p )  /* ensure we have a valid pointer */                 
 200cf6c:	80 a7 20 00 	cmp  %i4, 0                                    
 200cf70:	22 80 00 29 	be,a   200d014 <IMFS_memfile_remove+0x168>     <== NEVER TAKEN
 200cf74:	90 06 20 60 	add  %i0, 0x60, %o0                            <== NOT EXECUTED
 200cf78:	37 00 80 54 	sethi  %hi(0x2015000), %i3                     
                                                                      
  }                                                                   
                                                                      
  if ( info->triply_indirect ) {                                      
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
      p = (block_p *) info->triply_indirect[i];                       
 200cf7c:	a0 10 20 00 	clr  %l0                                       
      if ( !p )  /* ensure we have a valid pointer */                 
 200cf80:	b2 10 20 00 	clr  %i1                                       
 200cf84:	b6 16 e2 dc 	or  %i3, 0x2dc, %i3                            
         break;                                                       
      for ( j=0 ; j<IMFS_MEMFILE_BLOCK_SLOTS ; j++ ) {                
 200cf88:	80 a0 60 00 	cmp  %g1, 0                                    
 200cf8c:	22 80 00 13 	be,a   200cfd8 <IMFS_memfile_remove+0x12c>     <== NEVER TAKEN
 200cf90:	90 02 00 10 	add  %o0, %l0, %o0                             <== NOT EXECUTED
 200cf94:	90 10 20 00 	clr  %o0                                       
 200cf98:	ba 10 20 00 	clr  %i5                                       
        if ( p[j] ) {                                                 
 200cf9c:	91 2a 20 02 	sll  %o0, 2, %o0                               
 200cfa0:	c2 07 00 08 	ld  [ %i4 + %o0 ], %g1                         
 200cfa4:	80 a0 60 00 	cmp  %g1, 0                                    
 200cfa8:	02 80 00 04 	be  200cfb8 <IMFS_memfile_remove+0x10c>        <== NEVER TAKEN
 200cfac:	90 07 00 08 	add  %i4, %o0, %o0                             
          memfile_free_blocks_in_table( (block_p **)&p[j], to_free);  
 200cfb0:	7f ff ff a9 	call  200ce54 <memfile_free_blocks_in_table>   
 200cfb4:	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++ ) {                
 200cfb8:	c2 06 c0 00 	ld  [ %i3 ], %g1                               
 200cfbc:	ba 07 60 01 	inc  %i5                                       
 200cfc0:	83 30 60 02 	srl  %g1, 2, %g1                               
 200cfc4:	80 a7 40 01 	cmp  %i5, %g1                                  
 200cfc8:	0a bf ff f5 	bcs  200cf9c <IMFS_memfile_remove+0xf0>        
 200cfcc:	90 10 00 1d 	mov  %i5, %o0                                  
 200cfd0:	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(                                   
 200cfd4:	90 02 00 10 	add  %o0, %l0, %o0                             
 200cfd8:	7f ff ff 9f 	call  200ce54 <memfile_free_blocks_in_table>   
 200cfdc:	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++ ) {                  
 200cfe0:	c2 06 c0 00 	ld  [ %i3 ], %g1                               
 200cfe4:	b2 06 60 01 	inc  %i1                                       
 200cfe8:	83 30 60 02 	srl  %g1, 2, %g1                               
 200cfec:	80 a6 40 01 	cmp  %i1, %g1                                  
 200cff0:	1a 80 00 09 	bcc  200d014 <IMFS_memfile_remove+0x168>       
 200cff4:	90 06 20 60 	add  %i0, 0x60, %o0                            
      p = (block_p *) info->triply_indirect[i];                       
 200cff8:	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(                                              
 200cffc:	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];                       
 200d000:	f8 02 00 10 	ld  [ %o0 + %l0 ], %i4                         
      if ( !p )  /* ensure we have a valid pointer */                 
 200d004:	80 a7 20 00 	cmp  %i4, 0                                    
 200d008:	12 bf ff e1 	bne  200cf8c <IMFS_memfile_remove+0xe0>        <== ALWAYS TAKEN
 200d00c:	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(                                     
 200d010:	90 06 20 60 	add  %i0, 0x60, %o0                            <== NOT EXECUTED
 200d014:	7f ff ff 90 	call  200ce54 <memfile_free_blocks_in_table>   
 200d018:	92 10 00 1a 	mov  %i2, %o1                                  
        (block_p **)&info->triply_indirect, to_free );                
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
 200d01c:	81 c7 e0 08 	ret                                            
 200d020:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      

0200d198 <IMFS_memfile_write>: IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) {
 200d198:	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 ) {                      
 200d19c:	c2 06 20 50 	ld  [ %i0 + 0x50 ], %g1                        
   IMFS_jnode_t          *the_jnode,                                  
   off_t                  start,                                      
   const unsigned char   *source,                                     
   unsigned int           length                                      
)                                                                     
{                                                                     
 200d1a0:	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 ) {                      
 200d1a4:	80 a0 60 00 	cmp  %g1, 0                                    
 200d1a8:	06 80 00 5c 	bl  200d318 <IMFS_memfile_write+0x180>         <== NEVER TAKEN
 200d1ac:	94 07 00 1a 	add  %i4, %i2, %o2                             
 200d1b0:	80 a0 60 00 	cmp  %g1, 0                                    
 200d1b4:	22 80 00 56 	be,a   200d30c <IMFS_memfile_write+0x174>      <== ALWAYS TAKEN
 200d1b8:	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;                
 200d1bc:	23 00 80 54 	sethi  %hi(0x2015000), %l1                     <== NOT EXECUTED
 200d1c0:	e0 04 62 dc 	ld  [ %l1 + 0x2dc ], %l0	! 20152dc <imfs_memfile_bytes_per_block>
 200d1c4:	92 10 00 1a 	mov  %i2, %o1                                  
 200d1c8:	b1 3c 20 1f 	sra  %l0, 0x1f, %i0                            
 200d1cc:	96 10 00 10 	mov  %l0, %o3                                  
 200d1d0:	94 10 00 18 	mov  %i0, %o2                                  
 200d1d4:	40 00 14 46 	call  20122ec <__moddi3>                       
 200d1d8:	90 10 00 19 	mov  %i1, %o0                                  
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
 200d1dc:	94 10 00 18 	mov  %i0, %o2                                  
   */                                                                 
                                                                      
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
 200d1e0:	a4 10 00 09 	mov  %o1, %l2                                  
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
 200d1e4:	90 10 00 19 	mov  %i1, %o0                                  
 200d1e8:	92 10 00 1a 	mov  %i2, %o1                                  
 200d1ec:	40 00 13 5a 	call  2011f54 <__divdi3>                       
 200d1f0:	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;                                                         
 200d1f4:	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 )  {                                              
 200d1f8:	80 a4 a0 00 	cmp  %l2, 0                                    
 200d1fc:	12 80 00 1a 	bne  200d264 <IMFS_memfile_write+0xcc>         
 200d200:	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 ) {               
 200d204:	80 a7 00 10 	cmp  %i4, %l0                                  
 200d208:	1a 80 00 0e 	bcc  200d240 <IMFS_memfile_write+0xa8>         
 200d20c:	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 ) {                                                  
 200d210:	10 80 00 2a 	b  200d2b8 <IMFS_memfile_write+0x120>          
 200d214:	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 );                       
 200d218:	d0 02 00 00 	ld  [ %o0 ], %o0                               
 200d21c:	40 00 06 3d 	call  200eb10 <memcpy>                         
 200d220:	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 ) {               
 200d224:	c2 04 62 dc 	ld  [ %l1 + 0x2dc ], %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;                                                   
 200d228:	b6 06 c0 10 	add  %i3, %l0, %i3                             
    block++;                                                          
 200d22c:	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 ) {               
 200d230:	80 a0 40 1c 	cmp  %g1, %i4                                  
 200d234:	18 80 00 20 	bgu  200d2b4 <IMFS_memfile_write+0x11c>        
 200d238:	b0 06 00 10 	add  %i0, %l0, %i0                             
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
 200d23c:	92 10 00 1a 	mov  %i2, %o1                                  
 200d240:	94 10 20 00 	clr  %o2                                       
 200d244:	7f ff fd b0 	call  200c904 <IMFS_memfile_get_block_pointer> 
 200d248:	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 );                       
 200d24c:	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 )                                                 
 200d250:	80 a2 20 00 	cmp  %o0, 0                                    
 200d254:	12 bf ff f1 	bne  200d218 <IMFS_memfile_write+0x80>         <== ALWAYS TAKEN
 200d258:	94 10 00 10 	mov  %l0, %o2                                  
  }                                                                   
                                                                      
  IMFS_mtime_ctime_update( the_jnode );                               
                                                                      
  return copied;                                                      
}                                                                     
 200d25c:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200d260:	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 );
 200d264:	90 10 00 1d 	mov  %i5, %o0                                  
 200d268:	94 10 20 00 	clr  %o2                                       
 200d26c:	7f ff fd a6 	call  200c904 <IMFS_memfile_get_block_pointer> 
 200d270:	b0 10 20 00 	clr  %i0                                       
    if ( !block_ptr )                                                 
 200d274:	80 a2 20 00 	cmp  %o0, 0                                    
 200d278:	02 80 00 32 	be  200d340 <IMFS_memfile_write+0x1a8>         <== NEVER TAKEN
 200d27c:	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;            
 200d280:	b0 24 00 12 	sub  %l0, %l2, %i0                             
 200d284:	80 a6 00 1c 	cmp  %i0, %i4                                  
 200d288:	18 80 00 30 	bgu  200d348 <IMFS_memfile_write+0x1b0>        
 200d28c:	d0 02 00 00 	ld  [ %o0 ], %o0                               
        block,                                                        
        to_copy,                                                      
        src                                                           
      );                                                              
    #endif                                                            
    memcpy( &(*block_ptr)[ start_offset ], src, to_copy );            
 200d290:	92 10 00 1b 	mov  %i3, %o1                                  
 200d294:	90 02 00 12 	add  %o0, %l2, %o0                             
 200d298:	94 10 00 18 	mov  %i0, %o2                                  
 200d29c:	40 00 06 1d 	call  200eb10 <memcpy>                         
 200d2a0:	b6 06 c0 18 	add  %i3, %i0, %i3                             
    src += to_copy;                                                   
    block++;                                                          
 200d2a4:	b4 06 a0 01 	inc  %i2                                       
    my_length -= to_copy;                                             
 200d2a8:	b8 27 00 18 	sub  %i4, %i0, %i4                             
    copied += to_copy;                                                
 200d2ac:	10 bf ff d6 	b  200d204 <IMFS_memfile_write+0x6c>           
 200d2b0:	e0 04 62 dc 	ld  [ %l1 + 0x2dc ], %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 ) {                                                  
 200d2b4:	80 a7 20 00 	cmp  %i4, 0                                    
 200d2b8:	02 80 00 0e 	be  200d2f0 <IMFS_memfile_write+0x158>         
 200d2bc:	90 07 bf f8 	add  %fp, -8, %o0                              
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
 200d2c0:	90 10 00 1d 	mov  %i5, %o0                                  
 200d2c4:	92 10 00 1a 	mov  %i2, %o1                                  
 200d2c8:	7f ff fd 8f 	call  200c904 <IMFS_memfile_get_block_pointer> 
 200d2cc:	94 10 20 00 	clr  %o2                                       
    if ( !block_ptr )                                                 
 200d2d0:	80 a2 20 00 	cmp  %o0, 0                                    
 200d2d4:	02 bf ff e2 	be  200d25c <IMFS_memfile_write+0xc4>          <== NEVER TAKEN
 200d2d8:	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 );                     
 200d2dc:	d0 02 00 00 	ld  [ %o0 ], %o0                               
 200d2e0:	94 10 00 1c 	mov  %i4, %o2                                  
 200d2e4:	40 00 06 0b 	call  200eb10 <memcpy>                         
 200d2e8:	b0 06 00 1c 	add  %i0, %i4, %i0                             
    my_length = 0;                                                    
    copied += to_copy;                                                
  }                                                                   
                                                                      
  IMFS_mtime_ctime_update( the_jnode );                               
 200d2ec:	90 07 bf f8 	add  %fp, -8, %o0                              
 200d2f0:	7f ff d5 f3 	call  2002abc <gettimeofday>                   
 200d2f4:	92 10 20 00 	clr  %o1                                       
 200d2f8:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
 200d2fc:	c2 27 60 44 	st  %g1, [ %i5 + 0x44 ]                        
 200d300:	c2 27 60 48 	st  %g1, [ %i5 + 0x48 ]                        
                                                                      
  return copied;                                                      
}                                                                     
 200d304:	81 c7 e0 08 	ret                                            
 200d308:	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 ) {                      
 200d30c:	80 a0 40 0a 	cmp  %g1, %o2                                  
 200d310:	1a bf ff ac 	bcc  200d1c0 <IMFS_memfile_write+0x28>         <== NEVER TAKEN
 200d314:	23 00 80 54 	sethi  %hi(0x2015000), %l1                     
    status = IMFS_memfile_extend( the_jnode, last_byte );             
 200d318:	90 10 00 1d 	mov  %i5, %o0                                  
 200d31c:	7f ff ff 4e 	call  200d054 <IMFS_memfile_extend>            
 200d320:	92 10 20 00 	clr  %o1                                       
    if ( status )                                                     
 200d324:	80 a2 20 00 	cmp  %o0, 0                                    
 200d328:	02 bf ff a6 	be  200d1c0 <IMFS_memfile_write+0x28>          
 200d32c:	23 00 80 54 	sethi  %hi(0x2015000), %l1                     
      rtems_set_errno_and_return_minus_one( ENOSPC );                 
 200d330:	40 00 03 bd 	call  200e224 <__errno>                        
 200d334:	b0 10 3f ff 	mov  -1, %i0                                   
 200d338:	82 10 20 1c 	mov  0x1c, %g1                                 
 200d33c:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200d340:	81 c7 e0 08 	ret                                            
 200d344:	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;            
 200d348:	b0 10 00 1c 	mov  %i4, %i0                                  
        block,                                                        
        to_copy,                                                      
        src                                                           
      );                                                              
    #endif                                                            
    memcpy( &(*block_ptr)[ start_offset ], src, to_copy );            
 200d34c:	92 10 00 1b 	mov  %i3, %o1                                  
 200d350:	90 02 00 12 	add  %o0, %l2, %o0                             
 200d354:	94 10 00 18 	mov  %i0, %o2                                  
 200d358:	40 00 05 ee 	call  200eb10 <memcpy>                         
 200d35c:	b6 06 c0 18 	add  %i3, %i0, %i3                             
    src += to_copy;                                                   
    block++;                                                          
 200d360:	b4 06 a0 01 	inc  %i2                                       
    my_length -= to_copy;                                             
 200d364:	b8 27 00 18 	sub  %i4, %i0, %i4                             
    copied += to_copy;                                                
 200d368:	10 bf ff a7 	b  200d204 <IMFS_memfile_write+0x6c>           
 200d36c:	e0 04 62 dc 	ld  [ %l1 + 0x2dc ], %l0                       
                                                                      

02002250 <IMFS_mknod>: const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) {
 2002250:	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 );        
 2002254:	40 00 33 98 	call  200f0b4 <strlen>                         
 2002258:	90 10 00 18 	mov  %i0, %o0                                  
 200225c:	96 07 bf fc 	add  %fp, -4, %o3                              
 2002260:	92 10 00 08 	mov  %o0, %o1                                  
 2002264:	94 07 bf b8 	add  %fp, -72, %o2                             
 2002268:	40 00 23 5a 	call  200afd0 <IMFS_get_token>                 
 200226c:	90 10 00 18 	mov  %i0, %o0                                  
                                                                      
  /*                                                                  
   *  Figure out what type of IMFS node this is.                      
   */                                                                 
  if ( S_ISDIR(mode) )                                                
 2002270:	03 00 00 3c 	sethi  %hi(0xf000), %g1                        
 2002274:	05 00 00 10 	sethi  %hi(0x4000), %g2                        
 2002278:	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 */         
)                                                                     
{                                                                     
 200227c:	96 10 00 19 	mov  %i1, %o3                                  
 2002280:	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) )                                                
 2002284:	80 a0 40 02 	cmp  %g1, %g2                                  
 2002288:	02 80 00 0c 	be  20022b8 <IMFS_mknod+0x68>                  
 200228c:	92 10 20 01 	mov  1, %o1                                    
    type = IMFS_DIRECTORY;                                            
  else if ( S_ISREG(mode) )                                           
 2002290:	05 00 00 20 	sethi  %hi(0x8000), %g2                        
 2002294:	80 a0 40 02 	cmp  %g1, %g2                                  
 2002298:	02 80 00 08 	be  20022b8 <IMFS_mknod+0x68>                  
 200229c:	92 10 20 05 	mov  5, %o1                                    
    type = IMFS_MEMORY_FILE;                                          
  else if ( S_ISBLK(mode) || S_ISCHR(mode) ) {                        
 20022a0:	05 00 00 08 	sethi  %hi(0x2000), %g2                        
 20022a4:	80 a0 40 02 	cmp  %g1, %g2                                  
 20022a8:	12 80 00 0d 	bne  20022dc <IMFS_mknod+0x8c>                 
 20022ac:	05 00 00 18 	sethi  %hi(0x6000), %g2                        
    type = IMFS_DEVICE;                                               
    rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor );
 20022b0:	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;                                               
 20022b4:	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 );
 20022b8:	94 07 bf b8 	add  %fp, -72, %o2                             
 20022bc:	98 07 bf e0 	add  %fp, -32, %o4                             
 20022c0:	40 00 20 6f 	call  200a47c <IMFS_create_node>               
 20022c4:	b0 10 20 00 	clr  %i0                                       
  if ( !new_node )                                                    
 20022c8:	80 a2 20 00 	cmp  %o0, 0                                    
 20022cc:	02 80 00 13 	be  2002318 <IMFS_mknod+0xc8>                  <== NEVER TAKEN
 20022d0:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( ENOMEM );                   
                                                                      
  return 0;                                                           
}                                                                     
 20022d4:	81 c7 e0 08 	ret                                            
 20022d8:	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) ) {                        
 20022dc:	80 a0 40 02 	cmp  %g1, %g2                                  
 20022e0:	22 bf ff f5 	be,a   20022b4 <IMFS_mknod+0x64>               
 20022e4:	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))                                          
 20022e8:	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;                                        
 20022ec:	82 18 40 02 	xor  %g1, %g2, %g1                             
 20022f0:	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 );
 20022f4:	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;                                        
 20022f8:	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 );
 20022fc:	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;                                        
 2002300:	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 );
 2002304:	40 00 20 5e 	call  200a47c <IMFS_create_node>               
 2002308:	b0 10 20 00 	clr  %i0                                       
  if ( !new_node )                                                    
 200230c:	80 a2 20 00 	cmp  %o0, 0                                    
 2002310:	12 80 00 06 	bne  2002328 <IMFS_mknod+0xd8>                 
 2002314:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( ENOMEM );                   
 2002318:	40 00 2f c3 	call  200e224 <__errno>                        
 200231c:	b0 10 3f ff 	mov  -1, %i0	! ffffffff <RAM_END+0xfdbfffff>   
 2002320:	82 10 20 0c 	mov  0xc, %g1                                  
 2002324:	c2 22 00 00 	st  %g1, [ %o0 ]                               
                                                                      
  return 0;                                                           
}                                                                     
 2002328:	81 c7 e0 08 	ret                                            
 200232c:	81 e8 00 00 	restore                                        
                                                                      

02002330 <IMFS_mount>: #include <rtems/seterr.h> int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) {
 2002330:	9d e3 bf a0 	save  %sp, -96, %sp                            
  IMFS_jnode_t  *node;                                                
                                                                      
  node = mt_entry->mt_point_node.node_access;                         
 2002334:	c2 06 20 08 	ld  [ %i0 + 8 ], %g1                           
                                                                      
  /*                                                                  
   *  Is the node that we are mounting onto a directory node ?        
   */                                                                 
                                                                      
  if ( node->type != IMFS_DIRECTORY )                                 
 2002338:	c4 00 60 4c 	ld  [ %g1 + 0x4c ], %g2                        
 200233c:	80 a0 a0 01 	cmp  %g2, 1                                    
 2002340:	12 80 00 05 	bne  2002354 <IMFS_mount+0x24>                 <== NEVER TAKEN
 2002344:	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;                              
 2002348:	f0 20 60 5c 	st  %i0, [ %g1 + 0x5c ]                        
  return 0;                                                           
}                                                                     
 200234c:	81 c7 e0 08 	ret                                            
 2002350:	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 );                  
 2002354:	40 00 2f b4 	call  200e224 <__errno>                        <== NOT EXECUTED
 2002358:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
 200235c:	82 10 20 14 	mov  0x14, %g1                                 <== NOT EXECUTED
 2002360:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
 2002364:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 2002368:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

02004ea8 <IMFS_print_jnode>: * This routine prints the contents of the specified jnode. */ void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) {
 2004ea8:	9d e3 bf a0 	save  %sp, -96, %sp                            
  IMFS_assert( the_jnode );                                           
                                                                      
  fprintf(stdout, "%s", the_jnode->name );                            
 2004eac:	3b 00 80 93 	sethi  %hi(0x2024c00), %i5                     
 2004eb0:	c2 07 63 18 	ld  [ %i5 + 0x318 ], %g1	! 2024f18 <_impure_ptr>
 2004eb4:	90 06 20 0c 	add  %i0, 0xc, %o0                             
 2004eb8:	40 00 37 d5 	call  2012e0c <fputs>                          
 2004ebc:	d2 00 60 08 	ld  [ %g1 + 8 ], %o1                           
  switch( the_jnode->type ) {                                         
 2004ec0:	f4 06 20 4c 	ld  [ %i0 + 0x4c ], %i2                        
 2004ec4:	80 a6 a0 07 	cmp  %i2, 7                                    
 2004ec8:	08 80 00 07 	bleu  2004ee4 <IMFS_print_jnode+0x3c>          <== ALWAYS TAKEN
 2004ecc:	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 );            
 2004ed0:	c2 07 63 18 	ld  [ %i5 + 0x318 ], %g1                       <== NOT EXECUTED
 2004ed4:	33 00 80 8d 	sethi  %hi(0x2023400), %i1                     <== NOT EXECUTED
 2004ed8:	f0 00 60 08 	ld  [ %g1 + 8 ], %i0                           <== NOT EXECUTED
 2004edc:	40 00 37 7b 	call  2012cc8 <fprintf>                        <== NOT EXECUTED
 2004ee0:	93 ee 62 98 	restore  %i1, 0x298, %o1                       <== NOT EXECUTED
)                                                                     
{                                                                     
  IMFS_assert( the_jnode );                                           
                                                                      
  fprintf(stdout, "%s", the_jnode->name );                            
  switch( the_jnode->type ) {                                         
 2004ee4:	05 00 80 13 	sethi  %hi(0x2004c00), %g2                     
 2004ee8:	84 10 a2 88 	or  %g2, 0x288, %g2	! 2004e88 <console_inbyte_nonblocking+0xac>
 2004eec:	c2 00 80 01 	ld  [ %g2 + %g1 ], %g1                         
 2004ef0:	81 c0 40 00 	jmp  %g1                                       
 2004ef4:	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" );                       
 2004ef8:	c2 07 63 18 	ld  [ %i5 + 0x318 ], %g1                       
 2004efc:	31 00 80 8d 	sethi  %hi(0x2023400), %i0                     
 2004f00:	f6 00 60 08 	ld  [ %g1 + 8 ], %i3                           
 2004f04:	b0 16 22 68 	or  %i0, 0x268, %i0                            
 2004f08:	b2 10 20 01 	mov  1, %i1                                    
 2004f0c:	40 00 3a e6 	call  2013aa4 <fwrite>                         
 2004f10:	95 e8 20 13 	restore  %g0, 0x13, %o2                        
      return;                                                         
                                                                      
    case IMFS_FIFO:                                                   
      fprintf(stdout, " FIFO not printed\n" );                        
 2004f14:	c2 07 63 18 	ld  [ %i5 + 0x318 ], %g1                       
 2004f18:	31 00 80 8d 	sethi  %hi(0x2023400), %i0                     
 2004f1c:	f6 00 60 08 	ld  [ %g1 + 8 ], %i3                           
 2004f20:	b0 16 22 80 	or  %i0, 0x280, %i0                            
 2004f24:	b2 10 20 01 	mov  1, %i1                                    
 2004f28:	40 00 3a df 	call  2013aa4 <fwrite>                         
 2004f2c:	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 ")",                          
 2004f30:	c2 07 63 18 	ld  [ %i5 + 0x318 ], %g1                       
 2004f34:	d4 06 20 54 	ld  [ %i0 + 0x54 ], %o2                        
 2004f38:	d0 00 60 08 	ld  [ %g1 + 8 ], %o0                           
 2004f3c:	13 00 80 8d 	sethi  %hi(0x2023400), %o1                     
 2004f40:	40 00 37 62 	call  2012cc8 <fprintf>                        
 2004f44:	92 12 62 58 	or  %o1, 0x258, %o1	! 2023658 <rtems_filesystem_table+0x14b4>
                                                                      
    default:                                                          
      fprintf(stdout, " bad type %d\n", the_jnode->type );            
      return;                                                         
  }                                                                   
  puts("");                                                           
 2004f48:	31 00 80 8d 	sethi  %hi(0x2023400), %i0                     
 2004f4c:	40 00 3e d2 	call  2014a94 <puts>                           
 2004f50:	91 ee 21 e0 	restore  %i0, 0x1e0, %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)",                       
 2004f54:	c2 07 63 18 	ld  [ %i5 + 0x318 ], %g1                       
 2004f58:	d4 06 20 54 	ld  [ %i0 + 0x54 ], %o2                        
 2004f5c:	d6 06 20 58 	ld  [ %i0 + 0x58 ], %o3                        
 2004f60:	d0 00 60 08 	ld  [ %g1 + 8 ], %o0                           
 2004f64:	13 00 80 8d 	sethi  %hi(0x2023400), %o1                     
 2004f68:	40 00 37 58 	call  2012cc8 <fprintf>                        
 2004f6c:	92 12 62 48 	or  %o1, 0x248, %o1	! 2023648 <rtems_filesystem_table+0x14a4>
                                                                      
    default:                                                          
      fprintf(stdout, " bad type %d\n", the_jnode->type );            
      return;                                                         
  }                                                                   
  puts("");                                                           
 2004f70:	31 00 80 8d 	sethi  %hi(0x2023400), %i0                     
 2004f74:	40 00 3e c8 	call  2014a94 <puts>                           
 2004f78:	91 ee 21 e0 	restore  %i0, 0x1e0, %o0                       
  IMFS_assert( the_jnode );                                           
                                                                      
  fprintf(stdout, "%s", the_jnode->name );                            
  switch( the_jnode->type ) {                                         
    case IMFS_DIRECTORY:                                              
      fprintf(stdout, "/" );                                          
 2004f7c:	c2 07 63 18 	ld  [ %i5 + 0x318 ], %g1                       
 2004f80:	90 10 20 2f 	mov  0x2f, %o0                                 
 2004f84:	d2 00 60 08 	ld  [ %g1 + 8 ], %o1                           
 2004f88:	40 00 37 6c 	call  2012d38 <fputc>                          
 2004f8c:	31 00 80 8d 	sethi  %hi(0x2023400), %i0                     
                                                                      
    default:                                                          
      fprintf(stdout, " bad type %d\n", the_jnode->type );            
      return;                                                         
  }                                                                   
  puts("");                                                           
 2004f90:	40 00 3e c1 	call  2014a94 <puts>                           
 2004f94:	91 ee 21 e0 	restore  %i0, 0x1e0, %o0                       
    case IMFS_DIRECTORY:                                              
      fprintf(stdout, "/" );                                          
      break;                                                          
                                                                      
    case IMFS_DEVICE:                                                 
      fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")",           
 2004f98:	c2 07 63 18 	ld  [ %i5 + 0x318 ], %g1                       
 2004f9c:	d4 06 20 50 	ld  [ %i0 + 0x50 ], %o2                        
 2004fa0:	d6 06 20 54 	ld  [ %i0 + 0x54 ], %o3                        
 2004fa4:	d0 00 60 08 	ld  [ %g1 + 8 ], %o0                           
 2004fa8:	13 00 80 8d 	sethi  %hi(0x2023400), %o1                     
 2004fac:	40 00 37 47 	call  2012cc8 <fprintf>                        
 2004fb0:	92 12 62 30 	or  %o1, 0x230, %o1	! 2023630 <rtems_filesystem_table+0x148c>
                                                                      
    default:                                                          
      fprintf(stdout, " bad type %d\n", the_jnode->type );            
      return;                                                         
  }                                                                   
  puts("");                                                           
 2004fb4:	31 00 80 8d 	sethi  %hi(0x2023400), %i0                     
 2004fb8:	40 00 3e b7 	call  2014a94 <puts>                           
 2004fbc:	91 ee 21 e0 	restore  %i0, 0x1e0, %o0                       
                                                                      

02002378 <IMFS_readlink>: ) { IMFS_jnode_t *node; ssize_t i; node = loc->node_access;
 2002378:	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++ )
 200237c:	80 a2 a0 00 	cmp  %o2, 0                                    
 2002380:	02 80 00 13 	be  20023cc <IMFS_readlink+0x54>               <== NEVER TAKEN
 2002384:	90 10 20 00 	clr  %o0                                       
 2002388:	c2 01 20 50 	ld  [ %g4 + 0x50 ], %g1                        
 200238c:	c4 48 40 00 	ldsb  [ %g1 ], %g2                             
 2002390:	80 a0 a0 00 	cmp  %g2, 0                                    
 2002394:	02 80 00 0e 	be  20023cc <IMFS_readlink+0x54>               <== NEVER TAKEN
 2002398:	c2 08 40 00 	ldub  [ %g1 ], %g1                             
 200239c:	10 80 00 07 	b  20023b8 <IMFS_readlink+0x40>                
 20023a0:	84 10 20 00 	clr  %g2                                       
 20023a4:	c2 01 20 50 	ld  [ %g4 + 0x50 ], %g1                        
 20023a8:	c6 48 40 08 	ldsb  [ %g1 + %o0 ], %g3                       
 20023ac:	80 a0 e0 00 	cmp  %g3, 0                                    
 20023b0:	02 80 00 07 	be  20023cc <IMFS_readlink+0x54>               
 20023b4:	c2 08 40 08 	ldub  [ %g1 + %o0 ], %g1                       
    buf[i] = node->info.sym_link.name[i];                             
 20023b8:	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++ )
 20023bc:	90 02 20 01 	inc  %o0                                       
 20023c0:	80 a2 00 0a 	cmp  %o0, %o2                                  
 20023c4:	12 bf ff f8 	bne  20023a4 <IMFS_readlink+0x2c>              
 20023c8:	84 10 00 08 	mov  %o0, %g2                                  
    buf[i] = node->info.sym_link.name[i];                             
                                                                      
  return i;                                                           
}                                                                     
 20023cc:	81 c3 e0 08 	retl                                           
                                                                      

020023d4 <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 */ ) {
 20023d4:	9d e3 bf 98 	save  %sp, -104, %sp                           
  IMFS_jnode_t *the_jnode;                                            
  IMFS_jnode_t *new_parent;                                           
                                                                      
  the_jnode = old_loc->node_access;                                   
 20023d8:	fa 06 40 00 	ld  [ %i1 ], %i5                               
                                                                      
  strncpy( the_jnode->name, new_name, IMFS_NAME_MAX );                
 20023dc:	92 10 00 1b 	mov  %i3, %o1                                  
 20023e0:	90 07 60 0c 	add  %i5, 0xc, %o0                             
 20023e4:	40 00 33 6a 	call  200f18c <strncpy>                        
 20023e8:	94 10 20 20 	mov  0x20, %o2                                 
                                                                      
  if ( the_jnode->Parent != NULL )                                    
 20023ec:	c2 07 60 08 	ld  [ %i5 + 8 ], %g1                           
 20023f0:	80 a0 60 00 	cmp  %g1, 0                                    
 20023f4:	22 80 00 05 	be,a   2002408 <IMFS_rename+0x34>              <== NEVER TAKEN
 20023f8:	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 );                                         
 20023fc:	40 00 12 7c 	call  2006dec <_Chain_Extract>                 
 2002400:	90 10 00 1d 	mov  %i5, %o0                                  
    rtems_chain_extract( (rtems_chain_node *) the_jnode );            
                                                                      
  new_parent = new_parent_loc->node_access;                           
 2002404:	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 );                               
 2002408:	92 10 00 1d 	mov  %i5, %o1                                  
 200240c:	90 00 60 50 	add  %g1, 0x50, %o0                            
 2002410:	40 00 12 6c 	call  2006dc0 <_Chain_Append>                  
 2002414:	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 );                                     
 2002418:	90 07 bf f8 	add  %fp, -8, %o0                              
 200241c:	40 00 01 a8 	call  2002abc <gettimeofday>                   
 2002420:	92 10 20 00 	clr  %o1                                       
 2002424:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
 2002428:	c2 27 60 48 	st  %g1, [ %i5 + 0x48 ]                        
                                                                      
  return 0;                                                           
}                                                                     
 200242c:	81 c7 e0 08 	ret                                            
 2002430:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      

0200b1c8 <IMFS_stat>: int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) {
 200b1c8:	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;                                       
 200b1cc:	c2 06 00 00 	ld  [ %i0 ], %g1                               
                                                                      
                                                                      
  switch ( the_jnode->type ) {                                        
 200b1d0:	c4 00 60 4c 	ld  [ %g1 + 0x4c ], %g2                        
 200b1d4:	80 a0 a0 07 	cmp  %g2, 7                                    
 200b1d8:	08 80 00 08 	bleu  200b1f8 <IMFS_stat+0x30>                 <== ALWAYS TAKEN
 200b1dc:	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 );                
 200b1e0:	40 00 0c 11 	call  200e224 <__errno>                        
 200b1e4:	b0 10 3f ff 	mov  -1, %i0                                   
 200b1e8:	82 10 20 86 	mov  0x86, %g1                                 
 200b1ec:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200b1f0:	81 c7 e0 08 	ret                                            
 200b1f4:	81 e8 00 00 	restore                                        
  IMFS_device_t  *io;                                                 
                                                                      
  the_jnode = loc->node_access;                                       
                                                                      
                                                                      
  switch ( the_jnode->type ) {                                        
 200b1f8:	07 00 80 2c 	sethi  %hi(0x200b000), %g3                     
 200b1fc:	86 10 e1 a8 	or  %g3, 0x1a8, %g3	! 200b1a8 <IMFS_rmnod+0x24>
 200b200:	c4 00 c0 02 	ld  [ %g3 + %g2 ], %g2                         
 200b204:	81 c0 80 00 	jmp  %g2                                       
 200b208:	01 00 00 00 	nop                                            
    case IMFS_SYM_LINK:                                               
      buf->st_size = 0;                                               
      break;                                                          
                                                                      
    case IMFS_FIFO:                                                   
      buf->st_size = 0;                                               
 200b20c:	c0 26 60 20 	clr  [ %i1 + 0x20 ]                            
 200b210:	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;                                   
 200b214:	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;                                 
 200b218:	d8 00 60 30 	ld  [ %g1 + 0x30 ], %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 );
 200b21c:	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;                                  
 200b220:	f0 10 60 3c 	lduh  [ %g1 + 0x3c ], %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;                                
 200b224:	da 10 60 34 	lduh  [ %g1 + 0x34 ], %o5                      
   * 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 );
 200b228:	d6 00 80 00 	ld  [ %g2 ], %o3                               
                                                                      
  buf->st_mode  = the_jnode->st_mode;                                 
  buf->st_nlink = the_jnode->st_nlink;                                
  buf->st_ino   = the_jnode->st_ino;                                  
 200b22c:	de 00 60 38 	ld  [ %g1 + 0x38 ], %o7                        
  buf->st_uid   = the_jnode->st_uid;                                  
  buf->st_gid   = the_jnode->st_gid;                                  
 200b230:	c8 10 60 3e 	lduh  [ %g1 + 0x3e ], %g4                      
                                                                      
  buf->st_atime = the_jnode->stat_atime;                              
 200b234:	c6 00 60 40 	ld  [ %g1 + 0x40 ], %g3                        
  buf->st_mtime = the_jnode->stat_mtime;                              
 200b238:	c4 00 60 44 	ld  [ %g1 + 0x44 ], %g2                        
  buf->st_ctime = the_jnode->stat_ctime;                              
 200b23c:	c2 00 60 48 	ld  [ %g1 + 0x48 ], %g1                        
   */                                                                 
  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;                                 
 200b240:	d8 26 60 0c 	st  %o4, [ %i1 + 0xc ]                         
  buf->st_nlink = the_jnode->st_nlink;                                
  buf->st_ino   = the_jnode->st_ino;                                  
  buf->st_uid   = the_jnode->st_uid;                                  
 200b244:	f0 36 60 12 	sth  %i0, [ %i1 + 0x12 ]                       
  /*                                                                  
   * 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 =                                                       
 200b248:	d6 26 60 04 	st  %o3, [ %i1 + 4 ]                           
 200b24c:	19 00 00 3f 	sethi  %hi(0xfc00), %o4                        
    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;                                
 200b250:	da 36 60 10 	sth  %o5, [ %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 =                                                       
 200b254:	98 13 23 fe 	or  %o4, 0x3fe, %o4                            
    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;                                  
 200b258:	de 26 60 08 	st  %o7, [ %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 =                                                       
 200b25c:	d8 26 40 00 	st  %o4, [ %i1 ]                               
                                                                      
  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;                                  
 200b260:	c8 36 60 14 	sth  %g4, [ %i1 + 0x14 ]                       
                                                                      
  buf->st_atime = the_jnode->stat_atime;                              
 200b264:	c6 26 60 28 	st  %g3, [ %i1 + 0x28 ]                        
  buf->st_mtime = the_jnode->stat_mtime;                              
 200b268:	c4 26 60 30 	st  %g2, [ %i1 + 0x30 ]                        
  buf->st_ctime = the_jnode->stat_ctime;                              
 200b26c:	c2 26 60 38 	st  %g1, [ %i1 + 0x38 ]                        
                                                                      
  return 0;                                                           
}                                                                     
 200b270:	81 c7 e0 08 	ret                                            
 200b274:	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 );
 200b278:	c6 00 60 54 	ld  [ %g1 + 0x54 ], %g3                        
  rtems_device_minor_number _minor                                    
)                                                                     
{                                                                     
  union __rtems_dev_t temp;                                           
                                                                      
  temp.__overlay.major = _major;                                      
 200b27c:	c4 00 60 50 	ld  [ %g1 + 0x50 ], %g2                        
      break;                                                          
 200b280:	10 bf ff e5 	b  200b214 <IMFS_stat+0x4c>                    
 200b284:	c4 3e 60 18 	std  %g2, [ %i1 + 0x18 ]                       
                                                                      
    case IMFS_LINEAR_FILE:                                            
    case IMFS_MEMORY_FILE:                                            
      buf->st_size = the_jnode->info.file.size;                       
 200b288:	c4 18 60 50 	ldd  [ %g1 + 0x50 ], %g2                       
      break;                                                          
 200b28c:	10 bf ff e2 	b  200b214 <IMFS_stat+0x4c>                    
 200b290:	c4 3e 60 20 	std  %g2, [ %i1 + 0x20 ]                       
                                                                      

020024cc <IMFS_unlink>: int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) {
 20024cc:	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;                                            
 20024d0:	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 ) {                               
 20024d4:	c2 07 60 4c 	ld  [ %i5 + 0x4c ], %g1                        
 20024d8:	80 a0 60 03 	cmp  %g1, 3                                    
 20024dc:	02 80 00 09 	be  2002500 <IMFS_unlink+0x34>                 
 20024e0:	b8 10 00 18 	mov  %i0, %i4                                  
                                                                      
  /*                                                                  
   *  Now actually free the node we were asked to free.               
   */                                                                 
                                                                      
  result = (*loc->handlers->rmnod_h)( parentloc, loc );               
 20024e4:	c2 06 60 08 	ld  [ %i1 + 8 ], %g1                           
 20024e8:	90 10 00 1c 	mov  %i4, %o0                                  
 20024ec:	c2 00 60 34 	ld  [ %g1 + 0x34 ], %g1                        
 20024f0:	9f c0 40 00 	call  %g1                                      
 20024f4:	92 10 00 19 	mov  %i1, %o1                                  
                                                                      
  return result;                                                      
}                                                                     
 20024f8:	81 c7 e0 08 	ret                                            
 20024fc:	91 e8 00 08 	restore  %g0, %o0, %o0                         
   * free the node.                                                   
   */                                                                 
                                                                      
  if ( node->type == IMFS_HARD_LINK ) {                               
                                                                      
    if ( !node->info.hard_link.link_node )                            
 2002500:	c2 07 60 50 	ld  [ %i5 + 0x50 ], %g1                        
 2002504:	80 a0 60 00 	cmp  %g1, 0                                    
 2002508:	02 80 00 2b 	be  20025b4 <IMFS_unlink+0xe8>                 <== NEVER TAKEN
 200250c:	01 00 00 00 	nop                                            
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    the_link = *loc;                                                  
 2002510:	c6 06 60 0c 	ld  [ %i1 + 0xc ], %g3                         
 2002514:	f0 06 60 04 	ld  [ %i1 + 4 ], %i0                           
 2002518:	c8 06 60 08 	ld  [ %i1 + 8 ], %g4                           
 200251c:	c4 06 60 10 	ld  [ %i1 + 0x10 ], %g2                        
 2002520:	c6 27 bf f0 	st  %g3, [ %fp + -16 ]                         
    the_link.node_access = node->info.hard_link.link_node;            
 2002524:	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;                                                  
 2002528:	f0 27 bf e8 	st  %i0, [ %fp + -24 ]                         
 200252c:	c8 27 bf ec 	st  %g4, [ %fp + -20 ]                         
 2002530:	c4 27 bf f4 	st  %g2, [ %fp + -12 ]                         
    the_link.node_access = node->info.hard_link.link_node;            
    IMFS_Set_handlers( &the_link );                                   
 2002534:	40 00 20 37 	call  200a610 <IMFS_Set_handlers>              
 2002538:	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)               
 200253c:	c2 07 60 50 	ld  [ %i5 + 0x50 ], %g1                        
 2002540:	c6 10 60 34 	lduh  [ %g1 + 0x34 ], %g3                      
 2002544:	80 a0 e0 01 	cmp  %g3, 1                                    
 2002548:	02 80 00 10 	be  2002588 <IMFS_unlink+0xbc>                 
 200254c:	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 );          
 2002550:	90 07 bf f8 	add  %fp, -8, %o0                              
        if ( result != 0 )                                            
            return -1;                                                
    }                                                                 
    else                                                              
    {                                                                 
        node->info.hard_link.link_node->st_nlink --;                  
 2002554:	c4 30 60 34 	sth  %g2, [ %g1 + 0x34 ]                       
        IMFS_update_ctime( node->info.hard_link.link_node );          
 2002558:	40 00 01 59 	call  2002abc <gettimeofday>                   
 200255c:	92 10 20 00 	clr  %o1                                       
 2002560:	c2 07 60 50 	ld  [ %i5 + 0x50 ], %g1                        
 2002564:	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 );               
 2002568:	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 );          
 200256c:	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 );               
 2002570:	c2 06 60 08 	ld  [ %i1 + 8 ], %g1                           
 2002574:	c2 00 60 34 	ld  [ %g1 + 0x34 ], %g1                        
 2002578:	9f c0 40 00 	call  %g1                                      
 200257c:	92 10 00 19 	mov  %i1, %o1                                  
                                                                      
  return result;                                                      
}                                                                     
 2002580:	81 c7 e0 08 	ret                                            
 2002584:	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 );
 2002588:	c2 07 bf ec 	ld  [ %fp + -20 ], %g1                         
 200258c:	90 10 00 1c 	mov  %i4, %o0                                  
 2002590:	c2 00 60 34 	ld  [ %g1 + 0x34 ], %g1                        
 2002594:	92 07 bf e4 	add  %fp, -28, %o1                             
 2002598:	9f c0 40 00 	call  %g1                                      
 200259c:	b0 10 3f ff 	mov  -1, %i0                                   
        if ( result != 0 )                                            
 20025a0:	80 a2 20 00 	cmp  %o0, 0                                    
 20025a4:	22 bf ff d1 	be,a   20024e8 <IMFS_unlink+0x1c>              
 20025a8:	c2 06 60 08 	ld  [ %i1 + 8 ], %g1                           
 20025ac:	81 c7 e0 08 	ret                                            
 20025b0:	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 );                 
 20025b4:	40 00 2f 1c 	call  200e224 <__errno>                        <== NOT EXECUTED
 20025b8:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
 20025bc:	82 10 20 16 	mov  0x16, %g1                                 <== NOT EXECUTED
 20025c0:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
 20025c4:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 20025c8:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

020025cc <IMFS_unmount>: #include <rtems/seterr.h> int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) {
 20025cc:	9d e3 bf a0 	save  %sp, -96, %sp                            
  IMFS_jnode_t  *node;                                                
                                                                      
  node = mt_entry->mt_point_node.node_access;                         
 20025d0:	c2 06 20 08 	ld  [ %i0 + 8 ], %g1                           
                                                                      
  /*                                                                  
   * Is the node that we are mounting onto a directory node ?         
   */                                                                 
                                                                      
  if ( node->type != IMFS_DIRECTORY )                                 
 20025d4:	c4 00 60 4c 	ld  [ %g1 + 0x4c ], %g2                        
 20025d8:	80 a0 a0 01 	cmp  %g2, 1                                    
 20025dc:	12 80 00 09 	bne  2002600 <IMFS_unmount+0x34>               <== NEVER TAKEN
 20025e0:	01 00 00 00 	nop                                            
                                                                      
  /*                                                                  
   * Did the node indicate that there was a directory mounted here?   
   */                                                                 
                                                                      
  if ( node->info.directory.mt_fs == NULL )                           
 20025e4:	c4 00 60 5c 	ld  [ %g1 + 0x5c ], %g2                        
 20025e8:	80 a0 a0 00 	cmp  %g2, 0                                    
 20025ec:	02 80 00 0b 	be  2002618 <IMFS_unmount+0x4c>                <== NEVER TAKEN
 20025f0:	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;                                  
 20025f4:	c0 20 60 5c 	clr  [ %g1 + 0x5c ]                            
                                                                      
  return 0;                                                           
}                                                                     
 20025f8:	81 c7 e0 08 	ret                                            
 20025fc:	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 );                  
 2002600:	40 00 2f 09 	call  200e224 <__errno>                        <== NOT EXECUTED
 2002604:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
 2002608:	82 10 20 14 	mov  0x14, %g1                                 <== NOT EXECUTED
 200260c:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
 2002610:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 2002614:	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 */        
 2002618:	40 00 2f 03 	call  200e224 <__errno>                        <== NOT EXECUTED
 200261c:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
 2002620:	82 10 20 16 	mov  0x16, %g1                                 <== NOT EXECUTED
 2002624:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
 2002628:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200262c:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

02002cb0 <RTEMS_Malloc_Initialize>: void RTEMS_Malloc_Initialize( void *heap_begin, uintptr_t heap_size, size_t sbrk_amount ) {
 2002cb0:	9d e3 bf a0 	save  %sp, -96, %sp                            
  /*                                                                  
   *  If configured, initialize the statistics support                
  */                                                                  
  if ( rtems_malloc_statistics_helpers != NULL ) {                    
 2002cb4:	03 00 80 54 	sethi  %hi(0x2015000), %g1                     
 2002cb8:	c2 00 62 c8 	ld  [ %g1 + 0x2c8 ], %g1	! 20152c8 <rtems_malloc_statistics_helpers>
 2002cbc:	80 a0 60 00 	cmp  %g1, 0                                    
 2002cc0:	02 80 00 05 	be  2002cd4 <RTEMS_Malloc_Initialize+0x24>     
 2002cc4:	01 00 00 00 	nop                                            
    (*rtems_malloc_statistics_helpers->initialize)();                 
 2002cc8:	c2 00 40 00 	ld  [ %g1 ], %g1                               
 2002ccc:	9f c0 40 00 	call  %g1                                      
 2002cd0:	01 00 00 00 	nop                                            
  }                                                                   
                                                                      
  /*                                                                  
   *  Initialize the garbage collection list to start with nothing on it.
   */                                                                 
  malloc_deferred_frees_initialize();                                 
 2002cd4:	7f ff ff dd 	call  2002c48 <malloc_deferred_frees_initialize>
 2002cd8:	01 00 00 00 	nop                                            
                                                                      
  /*                                                                  
   *  Initialize the optional sbrk support for extending the heap     
   */                                                                 
  if ( rtems_malloc_sbrk_helpers != NULL ) {                          
 2002cdc:	03 00 80 54 	sethi  %hi(0x2015000), %g1                     
 2002ce0:	c2 00 62 c4 	ld  [ %g1 + 0x2c4 ], %g1	! 20152c4 <rtems_malloc_sbrk_helpers>
 2002ce4:	80 a0 60 00 	cmp  %g1, 0                                    
 2002ce8:	02 80 00 07 	be  2002d04 <RTEMS_Malloc_Initialize+0x54>     
 2002cec:	90 10 00 18 	mov  %i0, %o0                                  
    heap_begin = (*rtems_malloc_sbrk_helpers->initialize)(            
 2002cf0:	c2 00 40 00 	ld  [ %g1 ], %g1                               
 2002cf4:	92 10 00 1a 	mov  %i2, %o1                                  
 2002cf8:	9f c0 40 00 	call  %g1                                      
 2002cfc:	b2 10 00 1a 	mov  %i2, %i1                                  
 2002d00:	b0 10 00 08 	mov  %o0, %i0                                  
   *  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 (                                                                
 2002d04:	39 00 80 54 	sethi  %hi(0x2015000), %i4                     
 2002d08:	c2 0f 22 cc 	ldub  [ %i4 + 0x2cc ], %g1	! 20152cc <rtems_unified_work_area>
 2002d0c:	80 a0 60 00 	cmp  %g1, 0                                    
 2002d10:	12 80 00 10 	bne  2002d50 <RTEMS_Malloc_Initialize+0xa0>    
 2002d14:	3b 00 80 52 	sethi  %hi(0x2014800), %i5                     
    !rtems_unified_work_area                                          
      && rtems_configuration_get_do_zero_of_workspace()               
 2002d18:	03 00 80 52 	sethi  %hi(0x2014800), %g1                     
 2002d1c:	c2 08 62 a4 	ldub  [ %g1 + 0x2a4 ], %g1	! 2014aa4 <Configuration+0x28>
 2002d20:	80 a0 60 00 	cmp  %g1, 0                                    
 2002d24:	12 80 00 13 	bne  2002d70 <RTEMS_Malloc_Initialize+0xc0>    
 2002d28:	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 );  
 2002d2c:	3b 00 80 52 	sethi  %hi(0x2014800), %i5                     
 2002d30:	d0 07 63 60 	ld  [ %i5 + 0x360 ], %o0	! 2014b60 <RTEMS_Malloc_Heap>
 2002d34:	92 10 00 18 	mov  %i0, %o1                                  
 2002d38:	94 10 00 19 	mov  %i1, %o2                                  
 2002d3c:	40 00 11 f9 	call  2007520 <_Heap_Initialize>               
 2002d40:	96 10 20 08 	mov  8, %o3                                    
      RTEMS_Malloc_Heap,                                              
      heap_begin,                                                     
      heap_size,                                                      
      CPU_HEAP_ALIGNMENT                                              
    );                                                                
    if ( status == 0 ) {                                              
 2002d44:	80 a2 20 00 	cmp  %o0, 0                                    
 2002d48:	02 80 00 13 	be  2002d94 <RTEMS_Malloc_Initialize+0xe4>     
 2002d4c:	01 00 00 00 	nop                                            
      rtems_fatal_error_occurred( RTEMS_NO_MEMORY );                  
    }                                                                 
  }                                                                   
                                                                      
  MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) );
 2002d50:	39 00 80 55 	sethi  %hi(0x2015400), %i4                     
 2002d54:	d0 07 63 60 	ld  [ %i5 + 0x360 ], %o0                       
 2002d58:	40 00 14 e8 	call  20080f8 <_Protected_heap_Get_size>       
 2002d5c:	fa 07 21 80 	ld  [ %i4 + 0x180 ], %i5                       
 2002d60:	ba 02 00 1d 	add  %o0, %i5, %i5                             
 2002d64:	fa 27 21 80 	st  %i5, [ %i4 + 0x180 ]                       
}                                                                     
 2002d68:	81 c7 e0 08 	ret                                            
 2002d6c:	81 e8 00 00 	restore                                        
                                                                      
  if (                                                                
    !rtems_unified_work_area                                          
      && rtems_configuration_get_do_zero_of_workspace()               
  ) {                                                                 
     memset( heap_begin, 0, heap_size );                              
 2002d70:	92 10 20 00 	clr  %o1                                       
 2002d74:	40 00 2f a3 	call  200ec00 <memset>                         
 2002d78:	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 ) {                                   
 2002d7c:	c2 0f 22 cc 	ldub  [ %i4 + 0x2cc ], %g1                     
 2002d80:	80 a0 60 00 	cmp  %g1, 0                                    
 2002d84:	22 bf ff eb 	be,a   2002d30 <RTEMS_Malloc_Initialize+0x80>  <== ALWAYS TAKEN
 2002d88:	3b 00 80 52 	sethi  %hi(0x2014800), %i5                     
    if ( status == 0 ) {                                              
      rtems_fatal_error_occurred( RTEMS_NO_MEMORY );                  
    }                                                                 
  }                                                                   
                                                                      
  MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) );
 2002d8c:	10 bf ff f2 	b  2002d54 <RTEMS_Malloc_Initialize+0xa4>      <== NOT EXECUTED
 2002d90:	39 00 80 55 	sethi  %hi(0x2015400), %i4                     <== NOT EXECUTED
      heap_begin,                                                     
      heap_size,                                                      
      CPU_HEAP_ALIGNMENT                                              
    );                                                                
    if ( status == 0 ) {                                              
      rtems_fatal_error_occurred( RTEMS_NO_MEMORY );                  
 2002d94:	40 00 0f 3b 	call  2006a80 <rtems_fatal_error_occurred>     
 2002d98:	90 10 20 1a 	mov  0x1a, %o0                                 
                                                                      

02001ed4 <Stack_check_Dump_threads_usage>: static rtems_printk_plugin_t print_handler; void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) {
 2001ed4:	9d e3 bf 98 	save  %sp, -104, %sp                           
                                                                      
  /*                                                                  
   *  Obtain interrupt stack information                              
   */                                                                 
  #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE)                          
    if (the_thread == (Thread_Control *) -1) {                        
 2001ed8:	80 a6 3f ff 	cmp  %i0, -1                                   
 2001edc:	02 80 00 5e 	be  2002054 <Stack_check_Dump_threads_usage+0x180>
 2001ee0:	b6 06 20 b4 	add  %i0, 0xb4, %i3                            
      current = 0;                                                    
    } else                                                            
  #endif                                                              
    {                                                                 
      stack  = &the_thread->Start.Initial_stack;                      
      current = (void *)_CPU_Context_Get_SP( &the_thread->Registers );
 2001ee4:	e0 06 21 40 	ld  [ %i0 + 0x140 ], %l0                       
 2001ee8:	f2 06 20 b8 	ld  [ %i0 + 0xb8 ], %i1                        
    }                                                                 
                                                                      
  low  = Stack_check_usable_stack_start(stack);                       
  size = Stack_check_usable_stack_size(stack);                        
 2001eec:	f8 06 c0 00 	ld  [ %i3 ], %i4                               
    /*                                                                
     * start at lower memory and find first word that does not        
     * match pattern                                                  
     */                                                               
                                                                      
    base += PATTERN_SIZE_WORDS;                                       
 2001ef0:	82 06 60 20 	add  %i1, 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);                        
 2001ef4:	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++)                 
 2001ef8:	88 0f 3f fc 	and  %i4, -4, %g4                              
 2001efc:	88 00 40 04 	add  %g1, %g4, %g4                             
 2001f00:	80 a0 40 04 	cmp  %g1, %g4                                  
 2001f04:	1a 80 00 12 	bcc  2001f4c <Stack_check_Dump_threads_usage+0x78><== NEVER TAKEN
 2001f08:	ba 10 20 00 	clr  %i5                                       
      if (*base != U32_PATTERN)                                       
 2001f0c:	f4 06 60 20 	ld  [ %i1 + 0x20 ], %i2                        
 2001f10:	05 29 69 69 	sethi  %hi(0xa5a5a400), %g2                    
 2001f14:	84 10 a1 a5 	or  %g2, 0x1a5, %g2	! a5a5a5a5 <RAM_END+0xa365a5a5>
 2001f18:	80 a6 80 02 	cmp  %i2, %g2                                  
 2001f1c:	22 80 00 08 	be,a   2001f3c <Stack_check_Dump_threads_usage+0x68><== ALWAYS TAKEN
 2001f20:	84 00 60 04 	add  %g1, 4, %g2                               
 2001f24:	10 80 00 35 	b  2001ff8 <Stack_check_Dump_threads_usage+0x124><== NOT EXECUTED
 2001f28:	84 10 00 01 	mov  %g1, %g2                                  <== NOT EXECUTED
 2001f2c:	80 a0 c0 1a 	cmp  %g3, %i2                                  
 2001f30:	12 80 00 32 	bne  2001ff8 <Stack_check_Dump_threads_usage+0x124>
 2001f34:	82 10 00 02 	mov  %g2, %g1                                  
     * start at lower memory and find first word that does not        
     * match pattern                                                  
     */                                                               
                                                                      
    base += PATTERN_SIZE_WORDS;                                       
    for (ebase = base + length; base < ebase; base++)                 
 2001f38:	84 00 60 04 	add  %g1, 4, %g2                               
 2001f3c:	80 a1 00 02 	cmp  %g4, %g2                                  
 2001f40:	38 bf ff fb 	bgu,a   2001f2c <Stack_check_Dump_threads_usage+0x58><== ALWAYS TAKEN
 2001f44:	c6 00 60 04 	ld  [ %g1 + 4 ], %g3                           
  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;                                                         
 2001f48:	ba 10 20 00 	clr  %i5                                       <== NOT EXECUTED
                                                                      
                                                                      
  #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE)                          
    if ( the_thread )                                                 
 2001f4c:	80 a6 20 00 	cmp  %i0, 0                                    <== NOT EXECUTED
 2001f50:	02 80 00 33 	be  200201c <Stack_check_Dump_threads_usage+0x148><== NOT EXECUTED
 2001f54:	33 00 80 55 	sethi  %hi(0x2015400), %i1                     <== NOT EXECUTED
  #endif                                                              
    {                                                                 
      (*print_handler)(                                               
 2001f58:	e2 06 20 08 	ld  [ %i0 + 8 ], %l1                           
 2001f5c:	35 00 80 55 	sethi  %hi(0x2015400), %i2                     
 2001f60:	33 00 80 55 	sethi  %hi(0x2015400), %i1                     
 2001f64:	e4 06 a1 44 	ld  [ %i2 + 0x144 ], %l2                       
 2001f68:	f0 06 61 40 	ld  [ %i1 + 0x140 ], %i0                       
 2001f6c:	94 07 bf f8 	add  %fp, -8, %o2                              
 2001f70:	92 10 20 05 	mov  5, %o1                                    
 2001f74:	40 00 11 23 	call  2006400 <rtems_object_get_name>          
 2001f78:	90 10 00 11 	mov  %l1, %o0                                  
 2001f7c:	13 00 80 50 	sethi  %hi(0x2014000), %o1                     
 2001f80:	96 10 00 08 	mov  %o0, %o3                                  
 2001f84:	94 10 00 11 	mov  %l1, %o2                                  
 2001f88:	90 10 00 12 	mov  %l2, %o0                                  
 2001f8c:	9f c6 00 00 	call  %i0                                      
 2001f90:	92 12 61 08 	or  %o1, 0x108, %o1                            
                                                                      
  (*print_handler)(                                                   
    print_context,                                                    
    " %010p - %010p %010p  %8" PRId32 "   ",                          
    stack->area,                                                      
    stack->area + stack->size - 1,                                    
 2001f94:	d4 06 e0 04 	ld  [ %i3 + 4 ], %o2                           
 2001f98:	d6 06 c0 00 	ld  [ %i3 ], %o3                               
      else {                                                          
        (*print_handler)( print_context, "0x%08" PRIx32 "  INTR", ~0 );
      }                                                               
    #endif                                                            
                                                                      
  (*print_handler)(                                                   
 2001f9c:	c2 06 61 40 	ld  [ %i1 + 0x140 ], %g1                       
 2001fa0:	d0 06 a1 44 	ld  [ %i2 + 0x144 ], %o0                       
    print_context,                                                    
    " %010p - %010p %010p  %8" PRId32 "   ",                          
    stack->area,                                                      
    stack->area + stack->size - 1,                                    
 2001fa4:	96 02 ff ff 	add  %o3, -1, %o3                              
      else {                                                          
        (*print_handler)( print_context, "0x%08" PRIx32 "  INTR", ~0 );
      }                                                               
    #endif                                                            
                                                                      
  (*print_handler)(                                                   
 2001fa8:	13 00 80 50 	sethi  %hi(0x2014000), %o1                     
 2001fac:	96 02 80 0b 	add  %o2, %o3, %o3                             
 2001fb0:	92 12 61 28 	or  %o1, 0x128, %o1                            
 2001fb4:	98 10 00 10 	mov  %l0, %o4                                  
 2001fb8:	9f c0 40 00 	call  %g1                                      
 2001fbc:	9a 10 00 1c 	mov  %i4, %o5                                  
    stack->area + stack->size - 1,                                    
    current,                                                          
    size                                                              
  );                                                                  
                                                                      
  if (Stack_check_Initialized == 0) {                                 
 2001fc0:	03 00 80 55 	sethi  %hi(0x2015400), %g1                     
 2001fc4:	c2 00 61 3c 	ld  [ %g1 + 0x13c ], %g1	! 201553c <Stack_check_Initialized>
      else {                                                          
        (*print_handler)( print_context, "0x%08" PRIx32 "  INTR", ~0 );
      }                                                               
    #endif                                                            
                                                                      
  (*print_handler)(                                                   
 2001fc8:	07 00 80 55 	sethi  %hi(0x2015400), %g3                     
 2001fcc:	05 00 80 55 	sethi  %hi(0x2015400), %g2                     
    stack->area + stack->size - 1,                                    
    current,                                                          
    size                                                              
  );                                                                  
                                                                      
  if (Stack_check_Initialized == 0) {                                 
 2001fd0:	80 a0 60 00 	cmp  %g1, 0                                    
    (*print_handler)( print_context, "Unavailable\n" );               
 2001fd4:	d0 00 a1 44 	ld  [ %g2 + 0x144 ], %o0                       
    stack->area + stack->size - 1,                                    
    current,                                                          
    size                                                              
  );                                                                  
                                                                      
  if (Stack_check_Initialized == 0) {                                 
 2001fd8:	02 80 00 1a 	be  2002040 <Stack_check_Dump_threads_usage+0x16c><== NEVER TAKEN
 2001fdc:	c2 00 e1 40 	ld  [ %g3 + 0x140 ], %g1                       
    (*print_handler)( print_context, "Unavailable\n" );               
  } else {                                                            
    (*print_handler)( print_context, "%8" PRId32 "\n", used );        
 2001fe0:	94 10 00 1d 	mov  %i5, %o2                                  
 2001fe4:	13 00 80 50 	sethi  %hi(0x2014000), %o1                     
 2001fe8:	9f c0 40 00 	call  %g1                                      
 2001fec:	92 12 61 58 	or  %o1, 0x158, %o1	! 2014158 <rtems_filesystem_table+0x3bc>
 2001ff0:	81 c7 e0 08 	ret                                            
 2001ff4:	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 )                                              
 2001ff8:	80 a0 a0 00 	cmp  %g2, 0                                    
 2001ffc:	02 bf ff d4 	be  2001f4c <Stack_check_Dump_threads_usage+0x78><== NEVER TAKEN
 2002000:	ba 10 20 00 	clr  %i5                                       
    {                                                                 
      stack  = &the_thread->Start.Initial_stack;                      
      current = (void *)_CPU_Context_Get_SP( &the_thread->Registers );
    }                                                                 
                                                                      
  low  = Stack_check_usable_stack_start(stack);                       
 2002004:	ba 06 60 10 	add  %i1, 0x10, %i5                            
  else                                                                
    used = 0;                                                         
                                                                      
                                                                      
  #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE)                          
    if ( the_thread )                                                 
 2002008:	80 a6 20 00 	cmp  %i0, 0                                    
  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 );  
 200200c:	ba 07 40 1c 	add  %i5, %i4, %i5                             
  else                                                                
    used = 0;                                                         
                                                                      
                                                                      
  #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE)                          
    if ( the_thread )                                                 
 2002010:	12 bf ff d2 	bne  2001f58 <Stack_check_Dump_threads_usage+0x84>
 2002014:	ba 27 40 02 	sub  %i5, %g2, %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 );
 2002018:	33 00 80 55 	sethi  %hi(0x2015400), %i1                     
 200201c:	35 00 80 55 	sethi  %hi(0x2015400), %i2                     
 2002020:	c2 06 61 40 	ld  [ %i1 + 0x140 ], %g1                       
 2002024:	d0 06 a1 44 	ld  [ %i2 + 0x144 ], %o0                       
 2002028:	94 10 3f ff 	mov  -1, %o2                                   
 200202c:	13 00 80 50 	sethi  %hi(0x2014000), %o1                     
 2002030:	9f c0 40 00 	call  %g1                                      
 2002034:	92 12 61 18 	or  %o1, 0x118, %o1	! 2014118 <rtems_filesystem_table+0x37c>
                                                                      
  (*print_handler)(                                                   
    print_context,                                                    
    " %010p - %010p %010p  %8" PRId32 "   ",                          
    stack->area,                                                      
    stack->area + stack->size - 1,                                    
 2002038:	10 bf ff d8 	b  2001f98 <Stack_check_Dump_threads_usage+0xc4>
 200203c:	d4 06 e0 04 	ld  [ %i3 + 4 ], %o2                           
    current,                                                          
    size                                                              
  );                                                                  
                                                                      
  if (Stack_check_Initialized == 0) {                                 
    (*print_handler)( print_context, "Unavailable\n" );               
 2002040:	13 00 80 50 	sethi  %hi(0x2014000), %o1                     <== NOT EXECUTED
 2002044:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
 2002048:	92 12 61 48 	or  %o1, 0x148, %o1	! 2014148 <rtems_filesystem_table+0x3ac><== NOT EXECUTED
 200204c:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 2002050:	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)                          
 2002054:	37 00 80 55 	sethi  %hi(0x2015400), %i3                     
 2002058:	b6 16 e3 dc 	or  %i3, 0x3dc, %i3	! 20157dc <Stack_check_Interrupt_stack>
 200205c:	f2 06 e0 04 	ld  [ %i3 + 4 ], %i1                           
        return;                                                       
      stack = &Stack_check_Interrupt_stack;                           
      the_thread = 0;                                                 
      current = 0;                                                    
 2002060:	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)                          
 2002064:	80 a6 60 00 	cmp  %i1, 0                                    
 2002068:	12 bf ff a1 	bne  2001eec <Stack_check_Dump_threads_usage+0x18><== ALWAYS TAKEN
 200206c:	b0 10 20 00 	clr  %i0                                       
 2002070:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 2002074:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

02002078 <Stack_check_Initialize>: /* * Stack_check_Initialize */ void Stack_check_Initialize( void ) {
 2002078:	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 )                                      
 200207c:	3b 00 80 55 	sethi  %hi(0x2015400), %i5                     
 2002080:	c2 07 61 3c 	ld  [ %i5 + 0x13c ], %g1	! 201553c <Stack_check_Initialized>
 2002084:	80 a0 60 00 	cmp  %g1, 0                                    
 2002088:	12 80 00 20 	bne  2002108 <Stack_check_Initialize+0x90>     
 200208c:	07 00 80 55 	sethi  %hi(0x2015400), %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 ];                                          
 2002090:	09 3f bb 7c 	sethi  %hi(0xfeedf000), %g4                    
 2002094:	82 10 e3 cc 	or  %g3, 0x3cc, %g1                            
 2002098:	88 11 20 0d 	or  %g4, 0xd, %g4                              
 200209c:	c8 20 e3 cc 	st  %g4, [ %g3 + 0x3cc ]                       
 20020a0:	07 02 eb 43 	sethi  %hi(0xbad0c00), %g3                     
 20020a4:	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) {      
 20020a8:	05 00 80 56 	sethi  %hi(0x2015800), %g2                     
 20020ac:	d0 00 a3 dc 	ld  [ %g2 + 0x3dc ], %o0	! 2015bdc <_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 ];                                          
 20020b0:	c6 20 60 04 	st  %g3, [ %g1 + 4 ]                           
 20020b4:	07 37 ab 7c 	sethi  %hi(0xdeadf000), %g3                    
 20020b8:	86 10 e0 0d 	or  %g3, 0xd, %g3	! deadf00d <RAM_END+0xdc6df00d>
 20020bc:	c6 20 60 08 	st  %g3, [ %g1 + 8 ]                           
 20020c0:	07 18 03 43 	sethi  %hi(0x600d0c00), %g3                    
 20020c4:	86 10 e1 06 	or  %g3, 0x106, %g3	! 600d0d06 <RAM_END+0x5dcd0d06>
 20020c8:	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) {      
 20020cc:	80 a2 20 00 	cmp  %o0, 0                                    
 20020d0:	02 80 00 0c 	be  2002100 <Stack_check_Initialize+0x88>      <== NEVER TAKEN
 20020d4:	84 10 a3 dc 	or  %g2, 0x3dc, %g2                            
 20020d8:	d4 00 a0 04 	ld  [ %g2 + 4 ], %o2                           
 20020dc:	80 a2 a0 00 	cmp  %o2, 0                                    
 20020e0:	02 80 00 08 	be  2002100 <Stack_check_Initialize+0x88>      <== NEVER TAKEN
 20020e4:	03 00 80 55 	sethi  %hi(0x2015400), %g1                     
      Stack_check_Interrupt_stack.area = _CPU_Interrupt_stack_low;    
 20020e8:	84 10 63 dc 	or  %g1, 0x3dc, %g2	! 20157dc <Stack_check_Interrupt_stack>
      Stack_check_Interrupt_stack.size = (char *) _CPU_Interrupt_stack_high -
 20020ec:	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;    
 20020f0:	d0 20 a0 04 	st  %o0, [ %g2 + 4 ]                           
      Stack_check_Interrupt_stack.size = (char *) _CPU_Interrupt_stack_high -
 20020f4:	d4 20 63 dc 	st  %o2, [ %g1 + 0x3dc ]                       
                                  (char *) _CPU_Interrupt_stack_low;  
      Stack_check_Dope_stack(&Stack_check_Interrupt_stack);           
 20020f8:	40 00 33 57 	call  200ee54 <memset>                         
 20020fc:	92 10 20 a5 	mov  0xa5, %o1                                 
   }                                                                  
  #endif                                                              
                                                                      
  Stack_check_Initialized = 1;                                        
 2002100:	82 10 20 01 	mov  1, %g1                                    
 2002104:	c2 27 61 3c 	st  %g1, [ %i5 + 0x13c ]                       
 2002108:	81 c7 e0 08 	ret                                            
 200210c:	81 e8 00 00 	restore                                        
                                                                      

02002180 <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) {
 2002180:	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");                                         
 2002184:	11 00 80 50 	sethi  %hi(0x2014000), %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);       
 2002188:	fa 06 20 b8 	ld  [ %i0 + 0xb8 ], %i5                        
  char           name[32];                                            
                                                                      
  printk("BLOWN STACK!!!\n");                                         
 200218c:	40 00 06 93 	call  2003bd8 <printk>                         
 2002190:	90 12 21 60 	or  %o0, 0x160, %o0                            
  printk("task control block: 0x%08" PRIxPTR "\n", running);          
 2002194:	92 10 00 18 	mov  %i0, %o1                                  
 2002198:	11 00 80 50 	sethi  %hi(0x2014000), %o0                     
 200219c:	40 00 06 8f 	call  2003bd8 <printk>                         
 20021a0:	90 12 21 70 	or  %o0, 0x170, %o0	! 2014170 <rtems_filesystem_table+0x3d4>
  printk("task ID: 0x%08lx\n", (unsigned long) running->Object.id);   
 20021a4:	d2 06 20 08 	ld  [ %i0 + 8 ], %o1                           
 20021a8:	11 00 80 50 	sethi  %hi(0x2014000), %o0                     
 20021ac:	40 00 06 8b 	call  2003bd8 <printk>                         
 20021b0:	90 12 21 90 	or  %o0, 0x190, %o0	! 2014190 <rtems_filesystem_table+0x3f4>
  printk(                                                             
 20021b4:	d2 06 20 0c 	ld  [ %i0 + 0xc ], %o1                         
 20021b8:	11 00 80 50 	sethi  %hi(0x2014000), %o0                     
 20021bc:	40 00 06 87 	call  2003bd8 <printk>                         
 20021c0:	90 12 21 a8 	or  %o0, 0x1a8, %o0	! 20141a8 <rtems_filesystem_table+0x40c>
    "task name: 0x%08" PRIx32 "\n",                                   
    running->Object.name.name_u32                                     
  );                                                                  
  printk(                                                             
 20021c4:	d0 06 20 08 	ld  [ %i0 + 8 ], %o0                           
 20021c8:	94 07 bf e0 	add  %fp, -32, %o2                             
 20021cc:	40 00 10 8d 	call  2006400 <rtems_object_get_name>          
 20021d0:	92 10 20 20 	mov  0x20, %o1                                 
 20021d4:	92 10 00 08 	mov  %o0, %o1                                  
 20021d8:	11 00 80 50 	sethi  %hi(0x2014000), %o0                     
 20021dc:	40 00 06 7f 	call  2003bd8 <printk>                         
 20021e0:	90 12 21 c0 	or  %o0, 0x1c0, %o0	! 20141c0 <rtems_filesystem_table+0x424>
  );                                                                  
  printk(                                                             
    "task stack area (%lu Bytes): 0x%08" PRIxPTR " .. 0x%08" PRIxPTR "\n",
    (unsigned long) stack->size,                                      
    stack->area,                                                      
    ((char *) stack->area + stack->size)                              
 20021e4:	d4 06 20 b8 	ld  [ %i0 + 0xb8 ], %o2                        
 20021e8:	d2 06 20 b4 	ld  [ %i0 + 0xb4 ], %o1                        
  );                                                                  
  printk(                                                             
    "task name string: %s\n",                                         
    rtems_object_get_name(running->Object.id, sizeof(name), name)     
  );                                                                  
  printk(                                                             
 20021ec:	11 00 80 50 	sethi  %hi(0x2014000), %o0                     
 20021f0:	96 02 80 09 	add  %o2, %o1, %o3                             
 20021f4:	40 00 06 79 	call  2003bd8 <printk>                         
 20021f8:	90 12 21 d8 	or  %o0, 0x1d8, %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) {                                                  
 20021fc:	80 a6 60 00 	cmp  %i1, 0                                    
 2002200:	02 80 00 04 	be  2002210 <Stack_check_report_blown_task+0x90><== ALWAYS TAKEN
 2002204:	92 10 20 10 	mov  0x10, %o1                                 
          rtems_configuration_get_user_multiprocessing_table()->node  
      );                                                              
    }                                                                 
  #endif                                                              
                                                                      
  rtems_fatal_error_occurred(0x81);                                   
 2002208:	40 00 12 b9 	call  2006cec <rtems_fatal_error_occurred>     
 200220c:	90 10 20 81 	mov  0x81, %o0                                 
    (unsigned long) stack->size,                                      
    stack->area,                                                      
    ((char *) stack->area + stack->size)                              
  );                                                                  
  if (!pattern_ok) {                                                  
    printk(                                                           
 2002210:	11 00 80 50 	sethi  %hi(0x2014000), %o0                     
 2002214:	94 07 60 08 	add  %i5, 8, %o2                               
 2002218:	90 12 22 10 	or  %o0, 0x210, %o0                            
 200221c:	40 00 06 6f 	call  2003bd8 <printk>                         
 2002220:	96 07 60 18 	add  %i5, 0x18, %o3                            
 2002224:	30 bf ff f9 	b,a   2002208 <Stack_check_report_blown_task+0x88>
                                                                      

02006c54 <_API_extensions_Run_postdriver>: * * _API_extensions_Run_postdriver */ void _API_extensions_Run_postdriver( void ) {
 2006c54:	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;                              
 2006c58:	39 00 80 56 	sethi  %hi(0x2015800), %i4                     
 2006c5c:	fa 07 21 24 	ld  [ %i4 + 0x124 ], %i5	! 2015924 <_API_extensions_List>
 2006c60:	b8 17 21 24 	or  %i4, 0x124, %i4                            
  Chain_Node             *the_node;                                   
  API_extensions_Control *the_extension;                              
                                                                      
  for ( the_node = _Chain_First( &_API_extensions_List );             
 2006c64:	b8 07 20 04 	add  %i4, 4, %i4                               
 2006c68:	80 a7 40 1c 	cmp  %i5, %i4                                  
 2006c6c:	02 80 00 09 	be  2006c90 <_API_extensions_Run_postdriver+0x3c><== NEVER TAKEN
 2006c70:	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)();                            
 2006c74:	c2 07 60 08 	ld  [ %i5 + 8 ], %g1                           
 2006c78:	9f c0 40 00 	call  %g1                                      
 2006c7c:	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 ) {                                 
 2006c80:	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 );             
 2006c84:	80 a7 40 1c 	cmp  %i5, %i4                                  
 2006c88:	32 bf ff fc 	bne,a   2006c78 <_API_extensions_Run_postdriver+0x24><== NEVER TAKEN
 2006c8c:	c2 07 60 08 	ld  [ %i5 + 8 ], %g1                           <== NOT EXECUTED
 2006c90:	81 c7 e0 08 	ret                                            
 2006c94:	81 e8 00 00 	restore                                        
                                                                      

02006c98 <_API_extensions_Run_postswitch>: * * _API_extensions_Run_postswitch */ void _API_extensions_Run_postswitch( void ) {
 2006c98:	9d e3 bf a0 	save  %sp, -96, %sp                            
 2006c9c:	39 00 80 56 	sethi  %hi(0x2015800), %i4                     
 2006ca0:	fa 07 21 24 	ld  [ %i4 + 0x124 ], %i5	! 2015924 <_API_extensions_List>
 2006ca4:	b8 17 21 24 	or  %i4, 0x124, %i4                            
  Chain_Node             *the_node;                                   
  API_extensions_Control *the_extension;                              
                                                                      
  for ( the_node = _Chain_First( &_API_extensions_List );             
 2006ca8:	b8 07 20 04 	add  %i4, 4, %i4                               
 2006cac:	80 a7 40 1c 	cmp  %i5, %i4                                  
 2006cb0:	02 80 00 0a 	be  2006cd8 <_API_extensions_Run_postswitch+0x40><== NEVER TAKEN
 2006cb4:	37 00 80 56 	sethi  %hi(0x2015800), %i3                     
 2006cb8:	b6 16 e1 5c 	or  %i3, 0x15c, %i3	! 201595c <_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 );           
 2006cbc:	c2 07 60 0c 	ld  [ %i5 + 0xc ], %g1                         
 2006cc0:	9f c0 40 00 	call  %g1                                      
 2006cc4:	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 ) {                                 
 2006cc8:	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 );             
 2006ccc:	80 a7 40 1c 	cmp  %i5, %i4                                  
 2006cd0:	32 bf ff fc 	bne,a   2006cc0 <_API_extensions_Run_postswitch+0x28><== NEVER TAKEN
 2006cd4:	c2 07 60 0c 	ld  [ %i5 + 0xc ], %g1                         <== NOT EXECUTED
 2006cd8:	81 c7 e0 08 	ret                                            
 2006cdc:	81 e8 00 00 	restore                                        
                                                                      

02010a58 <_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 ) {
 2010a58:	9d e3 bf a0 	save  %sp, -96, %sp                            
  size_t message_buffering_required;                                  
  size_t allocated_message_size;                                      
                                                                      
  the_message_queue->maximum_pending_messages   = maximum_pending_messages;
  the_message_queue->number_of_pending_messages = 0;                  
 2010a5c:	c0 26 20 48 	clr  [ %i0 + 0x48 ]                            
)                                                                     
{                                                                     
  size_t message_buffering_required;                                  
  size_t allocated_message_size;                                      
                                                                      
  the_message_queue->maximum_pending_messages   = maximum_pending_messages;
 2010a60:	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;
 2010a64:	f6 26 20 4c 	st  %i3, [ %i0 + 0x4c ]                        
  /*                                                                  
   *  Round size up to multiple of a pointer for chain init and       
   *  check for overflow on adding overhead to each message.          
   */                                                                 
  allocated_message_size = maximum_message_size;                      
  if (allocated_message_size & (sizeof(uint32_t) - 1)) {              
 2010a68:	80 8e e0 03 	btst  3, %i3                                   
 2010a6c:	02 80 00 0a 	be  2010a94 <_CORE_message_queue_Initialize+0x3c>
 2010a70:	a0 10 00 1b 	mov  %i3, %l0                                  
    allocated_message_size += sizeof(uint32_t);                       
 2010a74:	a0 06 e0 04 	add  %i3, 4, %l0                               
    allocated_message_size &= ~(sizeof(uint32_t) - 1);                
 2010a78:	a0 0c 3f fc 	and  %l0, -4, %l0                              
  }                                                                   
                                                                      
  if (allocated_message_size < maximum_message_size)                  
 2010a7c:	80 a6 c0 10 	cmp  %i3, %l0                                  
 2010a80:	08 80 00 05 	bleu  2010a94 <_CORE_message_queue_Initialize+0x3c><== ALWAYS TAKEN
 2010a84:	ba 10 20 00 	clr  %i5                                       
    STATES_WAITING_FOR_MESSAGE,                                       
    CORE_MESSAGE_QUEUE_STATUS_TIMEOUT                                 
  );                                                                  
                                                                      
  return true;                                                        
}                                                                     
 2010a88:	b0 0f 60 01 	and  %i5, 1, %i0                               
 2010a8c:	81 c7 e0 08 	ret                                            
 2010a90:	81 e8 00 00 	restore                                        
  /*                                                                  
   *  Calculate how much total memory is required for message buffering and
   *  check for overflow on the multiplication.                       
   */                                                                 
  message_buffering_required = (size_t) maximum_pending_messages *    
       (allocated_message_size + sizeof(CORE_message_queue_Buffer_control));
 2010a94:	b8 04 20 10 	add  %l0, 0x10, %i4                            
                                                                      
  /*                                                                  
   *  Calculate how much total memory is required for message buffering and
   *  check for overflow on the multiplication.                       
   */                                                                 
  message_buffering_required = (size_t) maximum_pending_messages *    
 2010a98:	92 10 00 1a 	mov  %i2, %o1                                  
 2010a9c:	90 10 00 1c 	mov  %i4, %o0                                  
 2010aa0:	40 00 3f 25 	call  2020734 <.umul>                          
 2010aa4:	ba 10 20 00 	clr  %i5                                       
       (allocated_message_size + sizeof(CORE_message_queue_Buffer_control));
                                                                      
  if (message_buffering_required < allocated_message_size)            
 2010aa8:	80 a2 00 10 	cmp  %o0, %l0                                  
 2010aac:	2a bf ff f8 	bcs,a   2010a8c <_CORE_message_queue_Initialize+0x34><== NEVER TAKEN
 2010ab0:	b0 0f 60 01 	and  %i5, 1, %i0                               <== NOT EXECUTED
                                                                      
  /*                                                                  
   *  Attempt to allocate the message memory                          
   */                                                                 
  the_message_queue->message_buffers = (CORE_message_queue_Buffer *)  
     _Workspace_Allocate( message_buffering_required );               
 2010ab4:	40 00 0c c0 	call  2013db4 <_Workspace_Allocate>            
 2010ab8:	01 00 00 00 	nop                                            
    return false;                                                     
                                                                      
  /*                                                                  
   *  Attempt to allocate the message memory                          
   */                                                                 
  the_message_queue->message_buffers = (CORE_message_queue_Buffer *)  
 2010abc:	d0 26 20 5c 	st  %o0, [ %i0 + 0x5c ]                        
     _Workspace_Allocate( message_buffering_required );               
                                                                      
  if (the_message_queue->message_buffers == 0)                        
 2010ac0:	80 a2 20 00 	cmp  %o0, 0                                    
 2010ac4:	02 bf ff f1 	be  2010a88 <_CORE_message_queue_Initialize+0x30>
 2010ac8:	92 10 00 08 	mov  %o0, %o1                                  
                                                                      
  /*                                                                  
   *  Initialize the pool of inactive messages, pending messages,     
   *  and set of waiting threads.                                     
   */                                                                 
  _Chain_Initialize (                                                 
 2010acc:	90 06 20 60 	add  %i0, 0x60, %o0                            
 2010ad0:	94 10 00 1a 	mov  %i2, %o2                                  
 2010ad4:	40 00 14 cc 	call  2015e04 <_Chain_Initialize>              
 2010ad8:	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(                                           
 2010adc:	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 );                        
 2010ae0:	82 06 20 50 	add  %i0, 0x50, %g1                            
 2010ae4:	84 18 a0 01 	xor  %g2, 1, %g2                               
 2010ae8:	80 a0 00 02 	cmp  %g0, %g2                                  
 2010aec:	84 06 20 54 	add  %i0, 0x54, %g2                            
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
  tail->previous = head;                                              
 2010af0:	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;                                                  
 2010af4:	c4 26 20 50 	st  %g2, [ %i0 + 0x50 ]                        
 2010af8:	90 10 00 18 	mov  %i0, %o0                                  
  head->previous = NULL;                                              
 2010afc:	c0 26 20 54 	clr  [ %i0 + 0x54 ]                            
 2010b00:	92 60 3f ff 	subx  %g0, -1, %o1                             
 2010b04:	94 10 20 80 	mov  0x80, %o2                                 
 2010b08:	96 10 20 06 	mov  6, %o3                                    
 2010b0c:	40 00 09 fb 	call  20132f8 <_Thread_queue_Initialize>       
 2010b10:	ba 10 20 01 	mov  1, %i5                                    
    STATES_WAITING_FOR_MESSAGE,                                       
    CORE_MESSAGE_QUEUE_STATUS_TIMEOUT                                 
  );                                                                  
                                                                      
  return true;                                                        
}                                                                     
 2010b14:	b0 0f 60 01 	and  %i5, 1, %i0                               
 2010b18:	81 c7 e0 08 	ret                                            
 2010b1c:	81 e8 00 00 	restore                                        
                                                                      

02006fa4 <_CORE_mutex_Seize>: Objects_Id _id, bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) {
 2006fa4:	9d e3 bf a0 	save  %sp, -96, %sp                            
  _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); 
 2006fa8:	3b 00 80 55 	sethi  %hi(0x2015400), %i5                     
 2006fac:	c2 07 63 30 	ld  [ %i5 + 0x330 ], %g1	! 2015730 <_Thread_Dispatch_disable_level>
 2006fb0:	80 a0 60 00 	cmp  %g1, 0                                    
 2006fb4:	02 80 00 05 	be  2006fc8 <_CORE_mutex_Seize+0x24>           
 2006fb8:	f8 27 a0 54 	st  %i4, [ %fp + 0x54 ]                        
 2006fbc:	80 a6 a0 00 	cmp  %i2, 0                                    
 2006fc0:	12 80 00 1a 	bne  2007028 <_CORE_mutex_Seize+0x84>          <== ALWAYS TAKEN
 2006fc4:	03 00 80 56 	sethi  %hi(0x2015800), %g1                     
 2006fc8:	90 10 00 18 	mov  %i0, %o0                                  
 2006fcc:	40 00 13 f1 	call  200bf90 <_CORE_mutex_Seize_interrupt_trylock>
 2006fd0:	92 07 a0 54 	add  %fp, 0x54, %o1                            
 2006fd4:	80 a2 20 00 	cmp  %o0, 0                                    
 2006fd8:	02 80 00 12 	be  2007020 <_CORE_mutex_Seize+0x7c>           
 2006fdc:	80 a6 a0 00 	cmp  %i2, 0                                    
 2006fe0:	02 80 00 1a 	be  2007048 <_CORE_mutex_Seize+0xa4>           
 2006fe4:	01 00 00 00 	nop                                            
 2006fe8:	c4 07 63 30 	ld  [ %i5 + 0x330 ], %g2                       
 2006fec:	03 00 80 56 	sethi  %hi(0x2015800), %g1                     
 2006ff0:	c2 00 61 68 	ld  [ %g1 + 0x168 ], %g1	! 2015968 <_Per_CPU_Information+0xc>
                                                                      
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;
 2006ff4:	86 10 20 01 	mov  1, %g3                                    
 2006ff8:	c6 26 20 30 	st  %g3, [ %i0 + 0x30 ]                        
 2006ffc:	f0 20 60 44 	st  %i0, [ %g1 + 0x44 ]                        
 2007000:	f2 20 60 20 	st  %i1, [ %g1 + 0x20 ]                        
 2007004:	82 00 a0 01 	add  %g2, 1, %g1                               
 2007008:	c2 27 63 30 	st  %g1, [ %i5 + 0x330 ]                       
 200700c:	7f ff eb d5 	call  2001f60 <sparc_enable_interrupts>        
 2007010:	d0 07 a0 54 	ld  [ %fp + 0x54 ], %o0                        
 2007014:	90 10 00 18 	mov  %i0, %o0                                  
 2007018:	7f ff ff c1 	call  2006f1c <_CORE_mutex_Seize_interrupt_blocking>
 200701c:	92 10 00 1b 	mov  %i3, %o1                                  
 2007020:	81 c7 e0 08 	ret                                            
 2007024:	81 e8 00 00 	restore                                        
 2007028:	c2 00 60 8c 	ld  [ %g1 + 0x8c ], %g1                        
 200702c:	80 a0 60 01 	cmp  %g1, 1                                    
 2007030:	28 bf ff e7 	bleu,a   2006fcc <_CORE_mutex_Seize+0x28>      
 2007034:	90 10 00 18 	mov  %i0, %o0                                  
 2007038:	90 10 20 00 	clr  %o0                                       
 200703c:	92 10 20 00 	clr  %o1                                       
 2007040:	40 00 01 dc 	call  20077b0 <_Internal_error_Occurred>       
 2007044:	94 10 20 12 	mov  0x12, %o2                                 
 2007048:	7f ff eb c6 	call  2001f60 <sparc_enable_interrupts>        
 200704c:	d0 07 a0 54 	ld  [ %fp + 0x54 ], %o0                        
 2007050:	03 00 80 56 	sethi  %hi(0x2015800), %g1                     
 2007054:	c2 00 61 68 	ld  [ %g1 + 0x168 ], %g1	! 2015968 <_Per_CPU_Information+0xc>
 2007058:	84 10 20 01 	mov  1, %g2                                    
 200705c:	c4 20 60 34 	st  %g2, [ %g1 + 0x34 ]                        
 2007060:	81 c7 e0 08 	ret                                            
 2007064:	81 e8 00 00 	restore                                        
                                                                      

020071dc <_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 ) {
 20071dc:	9d e3 bf a0 	save  %sp, -96, %sp                            
 20071e0:	ba 10 00 18 	mov  %i0, %i5                                  
  Thread_Control *the_thread;                                         
  ISR_Level       level;                                              
  CORE_semaphore_Status status;                                       
                                                                      
  status = CORE_SEMAPHORE_STATUS_SUCCESSFUL;                          
 20071e4:	b0 10 20 00 	clr  %i0                                       
                                                                      
  if ( (the_thread = _Thread_queue_Dequeue(&the_semaphore->Wait_queue)) ) {
 20071e8:	40 00 07 6e 	call  2008fa0 <_Thread_queue_Dequeue>          
 20071ec:	90 10 00 1d 	mov  %i5, %o0                                  
 20071f0:	80 a2 20 00 	cmp  %o0, 0                                    
 20071f4:	02 80 00 04 	be  2007204 <_CORE_semaphore_Surrender+0x28>   
 20071f8:	01 00 00 00 	nop                                            
        status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;               
    _ISR_Enable( level );                                             
  }                                                                   
                                                                      
  return status;                                                      
}                                                                     
 20071fc:	81 c7 e0 08 	ret                                            
 2007200:	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 );                                            
 2007204:	7f ff eb 53 	call  2001f50 <sparc_disable_interrupts>       
 2007208:	01 00 00 00 	nop                                            
      if ( the_semaphore->count < the_semaphore->Attributes.maximum_count )
 200720c:	c2 07 60 48 	ld  [ %i5 + 0x48 ], %g1                        
 2007210:	c4 07 60 40 	ld  [ %i5 + 0x40 ], %g2                        
 2007214:	80 a0 40 02 	cmp  %g1, %g2                                  
 2007218:	1a 80 00 05 	bcc  200722c <_CORE_semaphore_Surrender+0x50>  <== NEVER TAKEN
 200721c:	b0 10 20 04 	mov  4, %i0                                    
        the_semaphore->count += 1;                                    
 2007220:	82 00 60 01 	inc  %g1                                       
{                                                                     
  Thread_Control *the_thread;                                         
  ISR_Level       level;                                              
  CORE_semaphore_Status status;                                       
                                                                      
  status = CORE_SEMAPHORE_STATUS_SUCCESSFUL;                          
 2007224:	b0 10 20 00 	clr  %i0                                       
#endif                                                                
                                                                      
  } else {                                                            
    _ISR_Disable( level );                                            
      if ( the_semaphore->count < the_semaphore->Attributes.maximum_count )
        the_semaphore->count += 1;                                    
 2007228:	c2 27 60 48 	st  %g1, [ %i5 + 0x48 ]                        
      else                                                            
        status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;               
    _ISR_Enable( level );                                             
 200722c:	7f ff eb 4d 	call  2001f60 <sparc_enable_interrupts>        
 2007230:	01 00 00 00 	nop                                            
  }                                                                   
                                                                      
  return status;                                                      
}                                                                     
 2007234:	81 c7 e0 08 	ret                                            
 2007238:	81 e8 00 00 	restore                                        
                                                                      

0200bf28 <_Chain_Initialize>: Chain_Control *the_chain, void *starting_address, size_t number_nodes, size_t node_size ) {
 200bf28:	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;                                              
 200bf2c:	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 );                        
 200bf30:	ba 06 20 04 	add  %i0, 4, %i5                               
  Chain_Node *current = head;                                         
  Chain_Node *next = starting_address;                                
                                                                      
  head->previous = NULL;                                              
                                                                      
  while ( count-- ) {                                                 
 200bf34:	80 a6 a0 00 	cmp  %i2, 0                                    
 200bf38:	02 80 00 12 	be  200bf80 <_Chain_Initialize+0x58>           <== NEVER TAKEN
 200bf3c:	90 10 00 18 	mov  %i0, %o0                                  
 200bf40:	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;                                
 200bf44:	82 10 00 19 	mov  %i1, %g1                                  
                                                                      
  head->previous = NULL;                                              
                                                                      
  while ( count-- ) {                                                 
 200bf48:	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;                                         
 200bf4c:	10 80 00 05 	b  200bf60 <_Chain_Initialize+0x38>            
 200bf50:	84 10 00 18 	mov  %i0, %g2                                  
  Chain_Node *next = starting_address;                                
                                                                      
  head->previous = NULL;                                              
                                                                      
  while ( count-- ) {                                                 
 200bf54:	84 10 00 01 	mov  %g1, %g2                                  
 200bf58:	b4 06 bf ff 	add  %i2, -1, %i2                              
    current->next  = next;                                            
    next->previous = current;                                         
    current        = next;                                            
    next           = (Chain_Node *)                                   
 200bf5c:	82 10 00 03 	mov  %g3, %g1                                  
  Chain_Node *next = starting_address;                                
                                                                      
  head->previous = NULL;                                              
                                                                      
  while ( count-- ) {                                                 
    current->next  = next;                                            
 200bf60:	c2 20 80 00 	st  %g1, [ %g2 ]                               
    next->previous = current;                                         
 200bf64:	c4 20 60 04 	st  %g2, [ %g1 + 4 ]                           
  Chain_Node *current = head;                                         
  Chain_Node *next = starting_address;                                
                                                                      
  head->previous = NULL;                                              
                                                                      
  while ( count-- ) {                                                 
 200bf68:	80 a6 a0 00 	cmp  %i2, 0                                    
 200bf6c:	12 bf ff fa 	bne  200bf54 <_Chain_Initialize+0x2c>          
 200bf70:	86 00 40 1b 	add  %g1, %i3, %g3                             
 *    node_size        - size of node in bytes                        
 *                                                                    
 *  Output parameters:  NONE                                          
 */                                                                   
                                                                      
void _Chain_Initialize(                                               
 200bf74:	40 00 16 66 	call  201190c <.umul>                          
 200bf78:	90 10 00 1b 	mov  %i3, %o0                                  
  Chain_Node *current = head;                                         
  Chain_Node *next = starting_address;                                
                                                                      
  head->previous = NULL;                                              
                                                                      
  while ( count-- ) {                                                 
 200bf7c:	90 06 40 08 	add  %i1, %o0, %o0                             
    current        = next;                                            
    next           = (Chain_Node *)                                   
                        _Addresses_Add_offset( (void *) next, node_size );
  }                                                                   
                                                                      
  current->next = tail;                                               
 200bf80:	fa 22 00 00 	st  %i5, [ %o0 ]                               
  tail->previous = current;                                           
 200bf84:	d0 26 20 08 	st  %o0, [ %i0 + 8 ]                           
}                                                                     
 200bf88:	81 c7 e0 08 	ret                                            
 200bf8c:	81 e8 00 00 	restore                                        
                                                                      

02005f34 <_Event_Surrender>: */ void _Event_Surrender( Thread_Control *the_thread ) {
 2005f34:	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 ];               
 2005f38:	fa 06 21 58 	ld  [ %i0 + 0x158 ], %i5                       
                                                                      
  option_set = (rtems_option) the_thread->Wait.option;                
                                                                      
  _ISR_Disable( level );                                              
 2005f3c:	7f ff f0 05 	call  2001f50 <sparc_disable_interrupts>       
 2005f40:	f6 06 20 30 	ld  [ %i0 + 0x30 ], %i3                        
 2005f44:	b8 10 00 08 	mov  %o0, %i4                                  
  pending_events  = api->pending_events;                              
 2005f48:	c4 07 40 00 	ld  [ %i5 ], %g2                               
  event_condition = (rtems_event_set) the_thread->Wait.count;         
 2005f4c:	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 ) ) {                      
 2005f50:	86 88 40 02 	andcc  %g1, %g2, %g3                           
 2005f54:	02 80 00 3a 	be  200603c <_Event_Surrender+0x108>           
 2005f58:	09 00 80 56 	sethi  %hi(0x2015800), %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() &&                                       
 2005f5c:	88 11 21 5c 	or  %g4, 0x15c, %g4	! 201595c <_Per_CPU_Information>
 2005f60:	f2 01 20 08 	ld  [ %g4 + 8 ], %i1                           
 2005f64:	80 a6 60 00 	cmp  %i1, 0                                    
 2005f68:	32 80 00 1d 	bne,a   2005fdc <_Event_Surrender+0xa8>        
 2005f6c:	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);                    
 2005f70:	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 ) ) {  
 2005f74:	80 89 21 00 	btst  0x100, %g4                               
 2005f78:	02 80 00 31 	be  200603c <_Event_Surrender+0x108>           
 2005f7c:	80 a0 40 03 	cmp  %g1, %g3                                  
    if ( seized_events == event_condition || _Options_Is_any( option_set ) ) {
 2005f80:	02 80 00 04 	be  2005f90 <_Event_Surrender+0x5c>            
 2005f84:	80 8e e0 02 	btst  2, %i3                                   
 2005f88:	02 80 00 2d 	be  200603c <_Event_Surrender+0x108>           <== NEVER TAKEN
 2005f8c:	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;
 2005f90:	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) );                            
 2005f94:	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 );
 2005f98:	c4 27 40 00 	st  %g2, [ %i5 ]                               
      the_thread->Wait.count = 0;                                     
 2005f9c:	c0 26 20 24 	clr  [ %i0 + 0x24 ]                            
      *(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
 2005fa0:	c6 20 40 00 	st  %g3, [ %g1 ]                               
                                                                      
      _ISR_Flash( level );                                            
 2005fa4:	7f ff ef ef 	call  2001f60 <sparc_enable_interrupts>        
 2005fa8:	90 10 00 1c 	mov  %i4, %o0                                  
 2005fac:	7f ff ef e9 	call  2001f50 <sparc_disable_interrupts>       
 2005fb0:	01 00 00 00 	nop                                            
                                                                      
      if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {             
 2005fb4:	c2 06 20 50 	ld  [ %i0 + 0x50 ], %g1                        
 2005fb8:	80 a0 60 02 	cmp  %g1, 2                                    
 2005fbc:	02 80 00 22 	be  2006044 <_Event_Surrender+0x110>           
 2005fc0:	82 10 20 03 	mov  3, %g1                                    
        _ISR_Enable( level );                                         
 2005fc4:	90 10 00 1c 	mov  %i4, %o0                                  
 2005fc8:	7f ff ef e6 	call  2001f60 <sparc_enable_interrupts>        
 2005fcc:	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 );                  
 2005fd0:	b2 16 63 f8 	or  %i1, 0x3f8, %i1	! 1003fff8 <RAM_END+0xdc3fff8>
 2005fd4:	40 00 0a 2c 	call  2008884 <_Thread_Clear_state>            
 2005fd8:	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() &&                                       
 2005fdc:	80 a6 00 04 	cmp  %i0, %g4                                  
 2005fe0:	32 bf ff e5 	bne,a   2005f74 <_Event_Surrender+0x40>        
 2005fe4:	c8 06 20 10 	ld  [ %i0 + 0x10 ], %g4                        
       _Thread_Is_executing( the_thread ) &&                          
       ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||   
 2005fe8:	09 00 80 56 	sethi  %hi(0x2015800), %g4                     
 2005fec:	f2 01 21 b0 	ld  [ %g4 + 0x1b0 ], %i1	! 20159b0 <_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 ) &&                          
 2005ff0:	80 a6 60 02 	cmp  %i1, 2                                    
 2005ff4:	02 80 00 07 	be  2006010 <_Event_Surrender+0xdc>            <== NEVER TAKEN
 2005ff8:	80 a0 40 03 	cmp  %g1, %g3                                  
       ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||   
        (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
 2005ffc:	f2 01 21 b0 	ld  [ %g4 + 0x1b0 ], %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) ||   
 2006000:	80 a6 60 01 	cmp  %i1, 1                                    
 2006004:	32 bf ff dc 	bne,a   2005f74 <_Event_Surrender+0x40>        
 2006008:	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) ) {
 200600c:	80 a0 40 03 	cmp  %g1, %g3                                  
 2006010:	02 80 00 04 	be  2006020 <_Event_Surrender+0xec>            
 2006014:	80 8e e0 02 	btst  2, %i3                                   
 2006018:	02 80 00 09 	be  200603c <_Event_Surrender+0x108>           <== NEVER TAKEN
 200601c:	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;
 2006020:	c2 06 20 28 	ld  [ %i0 + 0x28 ], %g1                        
 2006024:	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 );
 2006028:	c4 27 40 00 	st  %g2, [ %i5 ]                               
      the_thread->Wait.count = 0;                                     
 200602c:	c0 26 20 24 	clr  [ %i0 + 0x24 ]                            
      *(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
 2006030:	c6 20 40 00 	st  %g3, [ %g1 ]                               
      _Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED;        
 2006034:	82 10 20 03 	mov  3, %g1                                    
 2006038:	c2 21 21 b0 	st  %g1, [ %g4 + 0x1b0 ]                       
        _Thread_Unblock( the_thread );                                
      }                                                               
      return;                                                         
    }                                                                 
  }                                                                   
  _ISR_Enable( level );                                               
 200603c:	7f ff ef c9 	call  2001f60 <sparc_enable_interrupts>        
 2006040:	91 e8 00 1c 	restore  %g0, %i4, %o0                         
RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate(                       
  Watchdog_Control *the_watchdog                                      
)                                                                     
{                                                                     
                                                                      
  the_watchdog->state = WATCHDOG_REMOVE_IT;                           
 2006044:	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 );                                         
 2006048:	7f ff ef c6 	call  2001f60 <sparc_enable_interrupts>        
 200604c:	90 10 00 1c 	mov  %i4, %o0                                  
        (void) _Watchdog_Remove( &the_thread->Timer );                
 2006050:	40 00 0f 2b 	call  2009cfc <_Watchdog_Remove>               
 2006054:	90 06 20 48 	add  %i0, 0x48, %o0                            
 2006058:	33 04 00 ff 	sethi  %hi(0x1003fc00), %i1                    
 200605c:	b2 16 63 f8 	or  %i1, 0x3f8, %i1	! 1003fff8 <RAM_END+0xdc3fff8>
 2006060:	40 00 0a 09 	call  2008884 <_Thread_Clear_state>            
 2006064:	81 e8 00 00 	restore                                        
                                                                      

02006068 <_Event_Timeout>: void _Event_Timeout( Objects_Id id, void *ignored ) {
 2006068:	9d e3 bf 98 	save  %sp, -104, %sp                           
  Thread_Control    *the_thread;                                      
  Objects_Locations  location;                                        
  ISR_Level          level;                                           
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 200606c:	90 10 00 18 	mov  %i0, %o0                                  
 2006070:	40 00 0b 00 	call  2008c70 <_Thread_Get>                    
 2006074:	92 07 bf fc 	add  %fp, -4, %o1                              
  switch ( location ) {                                               
 2006078:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 200607c:	80 a0 60 00 	cmp  %g1, 0                                    
 2006080:	12 80 00 15 	bne  20060d4 <_Event_Timeout+0x6c>             <== NEVER TAKEN
 2006084:	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 );                                          
 2006088:	7f ff ef b2 	call  2001f50 <sparc_disable_interrupts>       
 200608c:	01 00 00 00 	nop                                            
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing (                      
  const Thread_Control *the_thread                                    
)                                                                     
{                                                                     
  return ( the_thread == _Thread_Executing );                         
 2006090:	03 00 80 56 	sethi  %hi(0x2015800), %g1                     
            return;                                                   
          }                                                           
        #endif                                                        
                                                                      
        the_thread->Wait.count = 0;                                   
        if ( _Thread_Is_executing( the_thread ) ) {                   
 2006094:	c2 00 61 68 	ld  [ %g1 + 0x168 ], %g1	! 2015968 <_Per_CPU_Information+0xc>
 2006098:	80 a7 40 01 	cmp  %i5, %g1                                  
 200609c:	02 80 00 10 	be  20060dc <_Event_Timeout+0x74>              
 20060a0:	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;                 
 20060a4:	82 10 20 06 	mov  6, %g1                                    
 20060a8:	c2 27 60 34 	st  %g1, [ %i5 + 0x34 ]                        
      _ISR_Enable( level );                                           
 20060ac:	7f ff ef ad 	call  2001f60 <sparc_enable_interrupts>        
 20060b0:	01 00 00 00 	nop                                            
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unblock (                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
  _Thread_Clear_state( the_thread, STATES_BLOCKED );                  
 20060b4:	90 10 00 1d 	mov  %i5, %o0                                  
 20060b8:	13 04 00 ff 	sethi  %hi(0x1003fc00), %o1                    
 20060bc:	40 00 09 f2 	call  2008884 <_Thread_Clear_state>            
 20060c0:	92 12 63 f8 	or  %o1, 0x3f8, %o1	! 1003fff8 <RAM_END+0xdc3fff8>
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )             
{                                                                     
  RTEMS_COMPILER_MEMORY_BARRIER();                                    
  _Thread_Dispatch_disable_level -= 1;                                
 20060c4:	03 00 80 55 	sethi  %hi(0x2015400), %g1                     
 20060c8:	c4 00 63 30 	ld  [ %g1 + 0x330 ], %g2	! 2015730 <_Thread_Dispatch_disable_level>
 20060cc:	84 00 bf ff 	add  %g2, -1, %g2                              
 20060d0:	c4 20 63 30 	st  %g2, [ %g1 + 0x330 ]                       
 20060d4:	81 c7 e0 08 	ret                                            
 20060d8:	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 )
 20060dc:	03 00 80 56 	sethi  %hi(0x2015800), %g1                     
 20060e0:	c4 00 61 b0 	ld  [ %g1 + 0x1b0 ], %g2	! 20159b0 <_Event_Sync_state>
 20060e4:	80 a0 a0 01 	cmp  %g2, 1                                    
 20060e8:	32 bf ff f0 	bne,a   20060a8 <_Event_Timeout+0x40>          
 20060ec:	82 10 20 06 	mov  6, %g1                                    
            _Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;    
 20060f0:	84 10 20 02 	mov  2, %g2                                    
 20060f4:	c4 20 61 b0 	st  %g2, [ %g1 + 0x1b0 ]                       
        }                                                             
                                                                      
        the_thread->Wait.return_code = RTEMS_TIMEOUT;                 
 20060f8:	10 bf ff ec 	b  20060a8 <_Event_Timeout+0x40>               
 20060fc:	82 10 20 06 	mov  6, %g1                                    
                                                                      

0200c14c <_Heap_Allocate_aligned_with_boundary>: Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) {
 200c14c:	9d e3 bf 98 	save  %sp, -104, %sp                           
 200c150:	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
 200c154:	a0 06 60 04 	add  %i1, 4, %l0                               
    - HEAP_ALLOC_BONUS;                                               
  uintptr_t const page_size = heap->page_size;                        
 200c158:	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 ) {                              
 200c15c:	80 a6 40 10 	cmp  %i1, %l0                                  
 200c160:	18 80 00 23 	bgu  200c1ec <_Heap_Allocate_aligned_with_boundary+0xa0>
 200c164:	b0 10 20 00 	clr  %i0                                       
    /* Integer overflow occured */                                    
    return NULL;                                                      
  }                                                                   
                                                                      
  if ( boundary != 0 ) {                                              
 200c168:	80 a6 e0 00 	cmp  %i3, 0                                    
 200c16c:	12 80 00 7d 	bne  200c360 <_Heap_Allocate_aligned_with_boundary+0x214>
 200c170:	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;                            
 200c174:	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 ) {                               
 200c178:	80 a7 40 11 	cmp  %i5, %l1                                  
 200c17c:	02 80 00 18 	be  200c1dc <_Heap_Allocate_aligned_with_boundary+0x90>
 200c180:	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    
 200c184:	82 05 a0 07 	add  %l6, 7, %g1                               
    + HEAP_BLOCK_HEADER_SIZE + page_size - 1;                         
                                                                      
  uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS;                 
 200c188:	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    
 200c18c:	c2 27 bf fc 	st  %g1, [ %fp + -4 ]                          
    + HEAP_BLOCK_HEADER_SIZE + page_size - 1;                         
                                                                      
  uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS;                 
 200c190:	10 80 00 0b 	b  200c1bc <_Heap_Allocate_aligned_with_boundary+0x70>
 200c194:	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 ) {                                       
 200c198:	12 80 00 17 	bne  200c1f4 <_Heap_Allocate_aligned_with_boundary+0xa8>
 200c19c:	b0 04 60 08 	add  %l1, 8, %i0                               
      }                                                               
                                                                      
      /* Statistics */                                                
      ++search_count;                                                 
                                                                      
      if ( alloc_begin != 0 ) {                                       
 200c1a0:	80 a6 20 00 	cmp  %i0, 0                                    
 200c1a4:	12 80 00 5b 	bne  200c310 <_Heap_Allocate_aligned_with_boundary+0x1c4>
 200c1a8:	b8 07 20 01 	inc  %i4                                       
        break;                                                        
      }                                                               
                                                                      
      block = block->next;                                            
 200c1ac:	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 ) {                               
 200c1b0:	80 a7 40 11 	cmp  %i5, %l1                                  
 200c1b4:	22 80 00 0b 	be,a   200c1e0 <_Heap_Allocate_aligned_with_boundary+0x94>
 200c1b8:	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 ) {                
 200c1bc:	e4 04 60 04 	ld  [ %l1 + 4 ], %l2                           
 200c1c0:	80 a4 00 12 	cmp  %l0, %l2                                  
 200c1c4:	0a bf ff f5 	bcs  200c198 <_Heap_Allocate_aligned_with_boundary+0x4c>
 200c1c8:	80 a6 a0 00 	cmp  %i2, 0                                    
                                                                      
      if ( alloc_begin != 0 ) {                                       
        break;                                                        
      }                                                               
                                                                      
      block = block->next;                                            
 200c1cc:	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 ) {                               
 200c1d0:	80 a7 40 11 	cmp  %i5, %l1                                  
 200c1d4:	12 bf ff fa 	bne  200c1bc <_Heap_Allocate_aligned_with_boundary+0x70>
 200c1d8:	b8 07 20 01 	inc  %i4                                       
      boundary                                                        
    );                                                                
  }                                                                   
                                                                      
  /* Statistics */                                                    
  if ( stats->max_search < search_count ) {                           
 200c1dc:	c2 07 60 44 	ld  [ %i5 + 0x44 ], %g1                        
 200c1e0:	80 a0 40 1c 	cmp  %g1, %i4                                  
 200c1e4:	0a 80 00 5a 	bcs  200c34c <_Heap_Allocate_aligned_with_boundary+0x200>
 200c1e8:	b0 10 20 00 	clr  %i0                                       
    stats->max_search = search_count;                                 
  }                                                                   
                                                                      
  return (void *) alloc_begin;                                        
}                                                                     
 200c1ec:	81 c7 e0 08 	ret                                            
 200c1f0:	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;                         
 200c1f4:	c4 07 bf fc 	ld  [ %fp + -4 ], %g2                          
  if ( stats->max_search < search_count ) {                           
    stats->max_search = search_count;                                 
  }                                                                   
                                                                      
  return (void *) alloc_begin;                                        
}                                                                     
 200c1f8:	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;                
 200c1fc:	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;                         
 200c200:	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;               
 200c204:	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);                                 
 200c208:	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;                     
 200c20c:	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    
 200c210:	a4 00 40 12 	add  %g1, %l2, %l2                             
 200c214:	40 00 16 a4 	call  2011ca4 <.urem>                          
 200c218:	90 10 00 18 	mov  %i0, %o0                                  
 200c21c:	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 ) {                          
 200c220:	80 a4 80 18 	cmp  %l2, %i0                                  
 200c224:	1a 80 00 06 	bcc  200c23c <_Heap_Allocate_aligned_with_boundary+0xf0>
 200c228:	a8 04 60 08 	add  %l1, 8, %l4                               
 200c22c:	90 10 00 12 	mov  %l2, %o0                                  
 200c230:	40 00 16 9d 	call  2011ca4 <.urem>                          
 200c234:	92 10 00 1a 	mov  %i2, %o1                                  
 200c238:	b0 24 80 08 	sub  %l2, %o0, %i0                             
  }                                                                   
                                                                      
  alloc_end = alloc_begin + alloc_size;                               
                                                                      
  /* Ensure boundary constaint */                                     
  if ( boundary != 0 ) {                                              
 200c23c:	80 a6 e0 00 	cmp  %i3, 0                                    
 200c240:	02 80 00 24 	be  200c2d0 <_Heap_Allocate_aligned_with_boundary+0x184>
 200c244:	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;                               
 200c248:	a4 06 00 19 	add  %i0, %i1, %l2                             
 200c24c:	92 10 00 1b 	mov  %i3, %o1                                  
 200c250:	40 00 16 95 	call  2011ca4 <.urem>                          
 200c254:	90 10 00 12 	mov  %l2, %o0                                  
 200c258:	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 ) {
 200c25c:	80 a6 00 08 	cmp  %i0, %o0                                  
 200c260:	1a 80 00 1b 	bcc  200c2cc <_Heap_Allocate_aligned_with_boundary+0x180>
 200c264:	80 a2 00 12 	cmp  %o0, %l2                                  
 200c268:	1a 80 00 1a 	bcc  200c2d0 <_Heap_Allocate_aligned_with_boundary+0x184>
 200c26c:	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;  
 200c270:	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 ) {                         
 200c274:	80 a4 c0 08 	cmp  %l3, %o0                                  
 200c278:	08 80 00 08 	bleu  200c298 <_Heap_Allocate_aligned_with_boundary+0x14c>
 200c27c:	b0 10 20 00 	clr  %i0                                       
      }                                                               
                                                                      
      /* Statistics */                                                
      ++search_count;                                                 
                                                                      
      if ( alloc_begin != 0 ) {                                       
 200c280:	10 bf ff c9 	b  200c1a4 <_Heap_Allocate_aligned_with_boundary+0x58>
 200c284:	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 ) {
 200c288:	1a 80 00 11 	bcc  200c2cc <_Heap_Allocate_aligned_with_boundary+0x180>
 200c28c:	80 a4 c0 08 	cmp  %l3, %o0                                  
      if ( boundary_line < boundary_floor ) {                         
 200c290:	18 bf ff c4 	bgu  200c1a0 <_Heap_Allocate_aligned_with_boundary+0x54><== NEVER TAKEN
 200c294:	b0 10 20 00 	clr  %i0                                       
        return 0;                                                     
      }                                                               
      alloc_begin = boundary_line - alloc_size;                       
 200c298:	b0 22 00 19 	sub  %o0, %i1, %i0                             
 200c29c:	92 10 00 1a 	mov  %i2, %o1                                  
 200c2a0:	40 00 16 81 	call  2011ca4 <.urem>                          
 200c2a4:	90 10 00 18 	mov  %i0, %o0                                  
 200c2a8:	92 10 00 1b 	mov  %i3, %o1                                  
 200c2ac:	b0 26 00 08 	sub  %i0, %o0, %i0                             
      alloc_begin = _Heap_Align_down( alloc_begin, alignment );       
      alloc_end = alloc_begin + alloc_size;                           
 200c2b0:	a4 06 00 19 	add  %i0, %i1, %l2                             
 200c2b4:	40 00 16 7c 	call  2011ca4 <.urem>                          
 200c2b8:	90 10 00 12 	mov  %l2, %o0                                  
 200c2bc:	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 ) {
 200c2c0:	80 a2 00 12 	cmp  %o0, %l2                                  
 200c2c4:	0a bf ff f1 	bcs  200c288 <_Heap_Allocate_aligned_with_boundary+0x13c>
 200c2c8:	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 ) {                           
 200c2cc:	80 a5 00 18 	cmp  %l4, %i0                                  
 200c2d0:	18 80 00 22 	bgu  200c358 <_Heap_Allocate_aligned_with_boundary+0x20c>
 200c2d4:	82 10 3f f8 	mov  -8, %g1                                   
 200c2d8:	90 10 00 18 	mov  %i0, %o0                                  
 200c2dc:	a4 20 40 11 	sub  %g1, %l1, %l2                             
 200c2e0:	92 10 00 16 	mov  %l6, %o1                                  
 200c2e4:	40 00 16 70 	call  2011ca4 <.urem>                          
 200c2e8:	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 ) {            
 200c2ec:	90 a4 80 08 	subcc  %l2, %o0, %o0                           
 200c2f0:	02 bf ff ad 	be  200c1a4 <_Heap_Allocate_aligned_with_boundary+0x58>
 200c2f4:	80 a6 20 00 	cmp  %i0, 0                                    
 200c2f8:	80 a2 00 15 	cmp  %o0, %l5                                  
      return alloc_begin;                                             
    }                                                                 
  }                                                                   
                                                                      
  return 0;                                                           
 200c2fc:	82 40 3f ff 	addx  %g0, -1, %g1                             
 200c300:	b0 0e 00 01 	and  %i0, %g1, %i0                             
      }                                                               
                                                                      
      /* Statistics */                                                
      ++search_count;                                                 
                                                                      
      if ( alloc_begin != 0 ) {                                       
 200c304:	80 a6 20 00 	cmp  %i0, 0                                    
 200c308:	02 bf ff a9 	be  200c1ac <_Heap_Allocate_aligned_with_boundary+0x60>
 200c30c:	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;                                                  
 200c310:	c4 07 60 48 	ld  [ %i5 + 0x48 ], %g2                        
    stats->searches += search_count;                                  
 200c314:	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;                                                  
 200c318:	84 00 a0 01 	inc  %g2                                       
    stats->searches += search_count;                                  
 200c31c:	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;                                                  
 200c320:	c4 27 60 48 	st  %g2, [ %i5 + 0x48 ]                        
    stats->searches += search_count;                                  
 200c324:	c2 27 60 4c 	st  %g1, [ %i5 + 0x4c ]                        
                                                                      
    block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size );
 200c328:	90 10 00 1d 	mov  %i5, %o0                                  
 200c32c:	92 10 00 11 	mov  %l1, %o1                                  
 200c330:	94 10 00 18 	mov  %i0, %o2                                  
 200c334:	7f ff ec cf 	call  2007670 <_Heap_Block_allocate>           
 200c338:	96 10 00 19 	mov  %i1, %o3                                  
      boundary                                                        
    );                                                                
  }                                                                   
                                                                      
  /* Statistics */                                                    
  if ( stats->max_search < search_count ) {                           
 200c33c:	c2 07 60 44 	ld  [ %i5 + 0x44 ], %g1                        
 200c340:	80 a0 40 1c 	cmp  %g1, %i4                                  
 200c344:	1a 80 00 03 	bcc  200c350 <_Heap_Allocate_aligned_with_boundary+0x204>
 200c348:	01 00 00 00 	nop                                            
    stats->max_search = search_count;                                 
 200c34c:	f8 27 60 44 	st  %i4, [ %i5 + 0x44 ]                        
  }                                                                   
                                                                      
  return (void *) alloc_begin;                                        
}                                                                     
 200c350:	81 c7 e0 08 	ret                                            
 200c354:	81 e8 00 00 	restore                                        
    if ( free_size >= min_block_size || free_size == 0 ) {            
      return alloc_begin;                                             
    }                                                                 
  }                                                                   
                                                                      
  return 0;                                                           
 200c358:	10 bf ff 92 	b  200c1a0 <_Heap_Allocate_aligned_with_boundary+0x54>
 200c35c:	b0 10 20 00 	clr  %i0                                       
    /* Integer overflow occured */                                    
    return NULL;                                                      
  }                                                                   
                                                                      
  if ( boundary != 0 ) {                                              
    if ( boundary < alloc_size ) {                                    
 200c360:	18 bf ff a3 	bgu  200c1ec <_Heap_Allocate_aligned_with_boundary+0xa0>
 200c364:	80 a6 a0 00 	cmp  %i2, 0                                    
      return NULL;                                                    
    }                                                                 
                                                                      
    if ( alignment == 0 ) {                                           
 200c368:	22 bf ff 83 	be,a   200c174 <_Heap_Allocate_aligned_with_boundary+0x28>
 200c36c:	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;                            
 200c370:	10 bf ff 82 	b  200c178 <_Heap_Allocate_aligned_with_boundary+0x2c>
 200c374:	e2 07 60 08 	ld  [ %i5 + 8 ], %l1                           
                                                                      

0200c674 <_Heap_Extend>: Heap_Control *heap, void *extend_area_begin_ptr, uintptr_t extend_area_size, uintptr_t *extended_size_ptr ) {
 200c674:	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;                              
 200c678:	c0 27 bf f8 	clr  [ %fp + -8 ]                              
  Heap_Block *extend_last_block = NULL;                               
 200c67c:	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;
 200c680:	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;                  
 200c684:	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;                        
 200c688:	e0 06 20 10 	ld  [ %i0 + 0x10 ], %l0                        
  uintptr_t const min_block_size = heap->min_block_size;              
 200c68c:	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;                       
 200c690:	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 ) {                        
 200c694:	80 a6 40 1d 	cmp  %i1, %i5                                  
 200c698:	08 80 00 05 	bleu  200c6ac <_Heap_Extend+0x38>              
 200c69c:	a2 10 20 00 	clr  %l1                                       
                                                                      
  if ( extended_size_ptr != NULL )                                    
    *extended_size_ptr = extended_size;                               
                                                                      
  return true;                                                        
}                                                                     
 200c6a0:	b0 0c 60 01 	and  %l1, 1, %i0                               
 200c6a4:	81 c7 e0 08 	ret                                            
 200c6a8:	81 e8 00 00 	restore                                        
                                                                      
  if ( extend_area_end < extend_area_begin ) {                        
    return false;                                                     
  }                                                                   
                                                                      
  extend_area_ok = _Heap_Get_first_and_last_block(                    
 200c6ac:	90 10 00 19 	mov  %i1, %o0                                  
 200c6b0:	92 10 00 1a 	mov  %i2, %o1                                  
 200c6b4:	94 10 00 10 	mov  %l0, %o2                                  
 200c6b8:	98 07 bf f8 	add  %fp, -8, %o4                              
 200c6bc:	7f ff ec 48 	call  20077dc <_Heap_Get_first_and_last_block> 
 200c6c0:	9a 07 bf fc 	add  %fp, -4, %o5                              
    page_size,                                                        
    min_block_size,                                                   
    &extend_first_block,                                              
    &extend_last_block                                                
  );                                                                  
  if (!extend_area_ok ) {                                             
 200c6c4:	80 8a 20 ff 	btst  0xff, %o0                                
 200c6c8:	02 bf ff f6 	be  200c6a0 <_Heap_Extend+0x2c>                
 200c6cc:	aa 10 20 00 	clr  %l5                                       
 200c6d0:	a2 10 00 1c 	mov  %i4, %l1                                  
 200c6d4:	ac 10 20 00 	clr  %l6                                       
 200c6d8:	a6 10 20 00 	clr  %l3                                       
 200c6dc:	10 80 00 14 	b  200c72c <_Heap_Extend+0xb8>                 
 200c6e0:	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 ) {                    
 200c6e4:	2a 80 00 02 	bcs,a   200c6ec <_Heap_Extend+0x78>            
 200c6e8:	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);                                 
 200c6ec:	90 10 00 1a 	mov  %i2, %o0                                  
 200c6f0:	40 00 16 c1 	call  20121f4 <.urem>                          
 200c6f4:	92 10 00 10 	mov  %l0, %o1                                  
 200c6f8:	82 06 bf f8 	add  %i2, -8, %g1                              
      link_below_block = start_block;                                 
    }                                                                 
                                                                      
    if ( sub_area_end == extend_area_begin ) {                        
 200c6fc:	80 a6 80 19 	cmp  %i2, %i1                                  
 200c700:	02 80 00 1c 	be  200c770 <_Heap_Extend+0xfc>                
 200c704:	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 ) {                  
 200c708:	80 a6 40 1a 	cmp  %i1, %i2                                  
 200c70c:	38 80 00 02 	bgu,a   200c714 <_Heap_Extend+0xa0>            
 200c710:	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;                
 200c714:	e2 00 60 04 	ld  [ %g1 + 4 ], %l1                           
 200c718:	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);                 
 200c71c:	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 );                             
 200c720:	80 a7 00 11 	cmp  %i4, %l1                                  
 200c724:	22 80 00 1b 	be,a   200c790 <_Heap_Extend+0x11c>            
 200c728:	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;                     
 200c72c:	80 a4 40 1c 	cmp  %l1, %i4                                  
 200c730:	02 80 00 66 	be  200c8c8 <_Heap_Extend+0x254>               
 200c734:	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 (                                                              
 200c738:	80 a0 40 1d 	cmp  %g1, %i5                                  
 200c73c:	0a 80 00 70 	bcs  200c8fc <_Heap_Extend+0x288>              
 200c740:	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 ) {                        
 200c744:	80 a0 40 1d 	cmp  %g1, %i5                                  
 200c748:	12 bf ff e7 	bne  200c6e4 <_Heap_Extend+0x70>               
 200c74c:	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);                                 
 200c750:	90 10 00 1a 	mov  %i2, %o0                                  
 200c754:	40 00 16 a8 	call  20121f4 <.urem>                          
 200c758:	92 10 00 10 	mov  %l0, %o1                                  
 200c75c:	82 06 bf f8 	add  %i2, -8, %g1                              
 200c760:	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 ) {                        
 200c764:	80 a6 80 19 	cmp  %i2, %i1                                  
 200c768:	12 bf ff e8 	bne  200c708 <_Heap_Extend+0x94>               <== ALWAYS TAKEN
 200c76c:	82 20 40 08 	sub  %g1, %o0, %g1                             
      start_block->prev_size = extend_area_end;                       
 200c770:	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;                
 200c774:	e2 00 60 04 	ld  [ %g1 + 4 ], %l1                           
 200c778:	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);                 
 200c77c:	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 );                             
 200c780:	80 a7 00 11 	cmp  %i4, %l1                                  
 200c784:	12 bf ff ea 	bne  200c72c <_Heap_Extend+0xb8>               <== NEVER TAKEN
 200c788:	a6 10 00 01 	mov  %g1, %l3                                  
                                                                      
  if ( extend_area_begin < heap->area_begin ) {                       
 200c78c:	c2 06 20 18 	ld  [ %i0 + 0x18 ], %g1                        
 200c790:	80 a6 40 01 	cmp  %i1, %g1                                  
 200c794:	3a 80 00 55 	bcc,a   200c8e8 <_Heap_Extend+0x274>           
 200c798:	c2 06 20 1c 	ld  [ %i0 + 0x1c ], %g1                        
    heap->area_begin = extend_area_begin;                             
 200c79c:	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;   
 200c7a0:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
 200c7a4:	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 ) {
 200c7a8:	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 =                                           
 200c7ac:	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;                    
 200c7b0:	fa 20 40 00 	st  %i5, [ %g1 ]                               
  extend_first_block->size_and_flag =                                 
    extend_first_block_size | HEAP_PREV_BLOCK_USED;                   
 200c7b4:	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 =                                 
 200c7b8:	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;             
 200c7bc:	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 ) {
 200c7c0:	80 a1 00 01 	cmp  %g4, %g1                                  
 200c7c4:	08 80 00 43 	bleu  200c8d0 <_Heap_Extend+0x25c>             
 200c7c8:	c0 20 a0 04 	clr  [ %g2 + 4 ]                               
    heap->first_block = extend_first_block;                           
 200c7cc:	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 ) {                                  
 200c7d0:	80 a5 20 00 	cmp  %l4, 0                                    
 200c7d4:	02 80 00 63 	be  200c960 <_Heap_Extend+0x2ec>               
 200c7d8:	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;                        
 200c7dc:	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;                            
 200c7e0:	92 10 00 1c 	mov  %i4, %o1                                  
 200c7e4:	40 00 16 84 	call  20121f4 <.urem>                          
 200c7e8:	90 10 00 19 	mov  %i1, %o0                                  
                                                                      
  if ( remainder != 0 ) {                                             
 200c7ec:	80 a2 20 00 	cmp  %o0, 0                                    
 200c7f0:	02 80 00 04 	be  200c800 <_Heap_Extend+0x18c>               
 200c7f4:	c4 05 00 00 	ld  [ %l4 ], %g2                               
    return value - remainder + alignment;                             
 200c7f8:	b2 06 40 1c 	add  %i1, %i4, %i1                             
 200c7fc:	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 =                             
 200c800:	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;                
 200c804:	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 =                              
 200c808:	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;
 200c80c:	84 10 a0 01 	or  %g2, 1, %g2                                
                                                                      
  _Heap_Free_block( heap, new_first_block );                          
 200c810:	90 10 00 18 	mov  %i0, %o0                                  
 200c814:	92 10 00 01 	mov  %g1, %o1                                  
 200c818:	7f ff ff 8d 	call  200c64c <_Heap_Free_block>               
 200c81c:	c4 26 7f fc 	st  %g2, [ %i1 + -4 ]                          
      link_below_block,                                               
      extend_last_block                                               
    );                                                                
  }                                                                   
                                                                      
  if ( merge_above_block != NULL ) {                                  
 200c820:	80 a4 e0 00 	cmp  %l3, 0                                    
 200c824:	02 80 00 3b 	be  200c910 <_Heap_Extend+0x29c>               
 200c828:	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);                                 
 200c82c:	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(             
 200c830:	ba 27 40 13 	sub  %i5, %l3, %i5                             
 200c834:	40 00 16 70 	call  20121f4 <.urem>                          
 200c838:	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)                 
 200c83c:	c2 04 e0 04 	ld  [ %l3 + 4 ], %g1                           
 200c840:	ba 27 40 08 	sub  %i5, %o0, %i5                             
 200c844:	82 20 40 1d 	sub  %g1, %i5, %g1                             
      | HEAP_PREV_BLOCK_USED;                                         
 200c848:	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 =                                     
 200c84c:	84 07 40 13 	add  %i5, %l3, %g2                             
 200c850:	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;       
 200c854:	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 );                               
 200c858:	90 10 00 18 	mov  %i0, %o0                                  
 200c85c:	82 08 60 01 	and  %g1, 1, %g1                               
 200c860:	92 10 00 13 	mov  %l3, %o1                                  
                                                                      
  block->size_and_flag = size | flag;                                 
 200c864:	ba 17 40 01 	or  %i5, %g1, %i5                              
 200c868:	7f ff ff 79 	call  200c64c <_Heap_Free_block>               
 200c86c:	fa 24 e0 04 	st  %i5, [ %l3 + 4 ]                           
      extend_first_block,                                             
      extend_last_block                                               
    );                                                                
  }                                                                   
                                                                      
  if ( merge_below_block == NULL && merge_above_block == NULL ) {     
 200c870:	80 a4 e0 00 	cmp  %l3, 0                                    
 200c874:	02 80 00 34 	be  200c944 <_Heap_Extend+0x2d0>               
 200c878:	80 a5 20 00 	cmp  %l4, 0                                    
                                                                      
  if ( extended_size_ptr != NULL )                                    
    *extended_size_ptr = extended_size;                               
                                                                      
  return true;                                                        
}                                                                     
 200c87c:	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(                                               
 200c880:	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;       
 200c884:	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(                                               
 200c888:	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;       
 200c88c:	84 08 a0 01 	and  %g2, 1, %g2                               
                                                                      
  block->size_and_flag = size | flag;                                 
 200c890:	84 10 80 03 	or  %g2, %g3, %g2                              
 200c894:	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;                                       
 200c898:	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;                       
 200c89c:	c4 06 20 30 	ld  [ %i0 + 0x30 ], %g2                        
  stats->size += extended_size;                                       
                                                                      
  if ( extended_size_ptr != NULL )                                    
    *extended_size_ptr = extended_size;                               
                                                                      
  return true;                                                        
 200c8a0:	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;                       
 200c8a4:	a4 20 80 12 	sub  %g2, %l2, %l2                             
                                                                      
  /* Statistics */                                                    
  stats->size += extended_size;                                       
 200c8a8:	82 00 40 12 	add  %g1, %l2, %g1                             
                                                                      
  if ( extended_size_ptr != NULL )                                    
 200c8ac:	80 a6 e0 00 	cmp  %i3, 0                                    
 200c8b0:	02 bf ff 7c 	be  200c6a0 <_Heap_Extend+0x2c>                <== NEVER TAKEN
 200c8b4:	c2 26 20 2c 	st  %g1, [ %i0 + 0x2c ]                        
    *extended_size_ptr = extended_size;                               
 200c8b8:	e4 26 c0 00 	st  %l2, [ %i3 ]                               
                                                                      
  return true;                                                        
}                                                                     
 200c8bc:	b0 0c 60 01 	and  %l1, 1, %i0                               
 200c8c0:	81 c7 e0 08 	ret                                            
 200c8c4:	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;                     
 200c8c8:	10 bf ff 9c 	b  200c738 <_Heap_Extend+0xc4>                 
 200c8cc:	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 ) {
 200c8d0:	c2 06 20 24 	ld  [ %i0 + 0x24 ], %g1                        
 200c8d4:	80 a0 40 02 	cmp  %g1, %g2                                  
 200c8d8:	2a bf ff be 	bcs,a   200c7d0 <_Heap_Extend+0x15c>           
 200c8dc:	c4 26 20 24 	st  %g2, [ %i0 + 0x24 ]                        
    heap->last_block = extend_last_block;                             
  }                                                                   
                                                                      
  if ( merge_below_block != NULL ) {                                  
 200c8e0:	10 bf ff bd 	b  200c7d4 <_Heap_Extend+0x160>                
 200c8e4:	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 ) {                    
 200c8e8:	80 a7 40 01 	cmp  %i5, %g1                                  
 200c8ec:	38 bf ff ad 	bgu,a   200c7a0 <_Heap_Extend+0x12c>           
 200c8f0:	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;   
 200c8f4:	10 bf ff ac 	b  200c7a4 <_Heap_Extend+0x130>                
 200c8f8:	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 (                                                              
 200c8fc:	80 a6 40 1a 	cmp  %i1, %i2                                  
 200c900:	1a bf ff 92 	bcc  200c748 <_Heap_Extend+0xd4>               
 200c904:	80 a0 40 1d 	cmp  %g1, %i5                                  
      sub_area_end > extend_area_begin && extend_area_end > sub_area_begin
    ) {                                                               
      return false;                                                   
 200c908:	10 bf ff 66 	b  200c6a0 <_Heap_Extend+0x2c>                 
 200c90c:	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 ) {                            
 200c910:	80 a5 60 00 	cmp  %l5, 0                                    
 200c914:	02 bf ff d7 	be  200c870 <_Heap_Extend+0x1fc>               
 200c918:	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;       
 200c91c:	c6 05 60 04 	ld  [ %l5 + 4 ], %g3                           
    _Heap_Link_above(                                                 
 200c920:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 200c924:	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 );       
 200c928:	84 20 80 15 	sub  %g2, %l5, %g2                             
                                                                      
  block->size_and_flag = size | flag;                                 
 200c92c:	84 10 c0 02 	or  %g3, %g2, %g2                              
 200c930:	c4 25 60 04 	st  %g2, [ %l5 + 4 ]                           
                                                                      
  last_block->size_and_flag |= HEAP_PREV_BLOCK_USED;                  
 200c934:	c4 00 60 04 	ld  [ %g1 + 4 ], %g2                           
 200c938:	84 10 a0 01 	or  %g2, 1, %g2                                
 200c93c:	10 bf ff cd 	b  200c870 <_Heap_Extend+0x1fc>                
 200c940:	c4 20 60 04 	st  %g2, [ %g1 + 4 ]                           
      extend_first_block,                                             
      extend_last_block                                               
    );                                                                
  }                                                                   
                                                                      
  if ( merge_below_block == NULL && merge_above_block == NULL ) {     
 200c944:	32 bf ff cf 	bne,a   200c880 <_Heap_Extend+0x20c>           
 200c948:	c2 06 20 24 	ld  [ %i0 + 0x24 ], %g1                        
    _Heap_Free_block( heap, extend_first_block );                     
 200c94c:	d2 07 bf f8 	ld  [ %fp + -8 ], %o1                          
 200c950:	7f ff ff 3f 	call  200c64c <_Heap_Free_block>               
 200c954:	90 10 00 18 	mov  %i0, %o0                                  
                                                                      
  if ( extended_size_ptr != NULL )                                    
    *extended_size_ptr = extended_size;                               
                                                                      
  return true;                                                        
}                                                                     
 200c958:	10 bf ff ca 	b  200c880 <_Heap_Extend+0x20c>                
 200c95c:	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 ) {                            
 200c960:	80 a5 a0 00 	cmp  %l6, 0                                    
 200c964:	02 bf ff b0 	be  200c824 <_Heap_Extend+0x1b0>               
 200c968:	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;           
 200c96c:	ac 25 80 02 	sub  %l6, %g2, %l6                             
 200c970:	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 =                                         
 200c974:	10 bf ff ac 	b  200c824 <_Heap_Extend+0x1b0>                
 200c978:	ec 20 a0 04 	st  %l6, [ %g2 + 4 ]                           
                                                                      

0200c378 <_Heap_Free>: return do_free; } #endif bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr ) {
 200c378:	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 ) {                                    
 200c37c:	80 a6 60 00 	cmp  %i1, 0                                    
 200c380:	02 80 00 56 	be  200c4d8 <_Heap_Free+0x160>                 
 200c384:	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);                                 
 200c388:	d2 06 20 10 	ld  [ %i0 + 0x10 ], %o1                        
 200c38c:	40 00 16 46 	call  2011ca4 <.urem>                          
 200c390:	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           
 200c394:	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);                                 
 200c398:	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);                                        
 200c39c:	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;             
 200c3a0:	80 a7 40 01 	cmp  %i5, %g1                                  
 200c3a4:	0a 80 00 4d 	bcs  200c4d8 <_Heap_Free+0x160>                
 200c3a8:	84 10 20 00 	clr  %g2                                       
 200c3ac:	c8 06 20 24 	ld  [ %i0 + 0x24 ], %g4                        
 200c3b0:	80 a7 40 04 	cmp  %i5, %g4                                  
 200c3b4:	38 80 00 4a 	bgu,a   200c4dc <_Heap_Free+0x164>             
 200c3b8:	b0 08 a0 01 	and  %g2, 1, %i0                               
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
 200c3bc:	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;                
 200c3c0:	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);                 
 200c3c4:	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;             
 200c3c8:	80 a0 40 03 	cmp  %g1, %g3                                  
 200c3cc:	38 80 00 44 	bgu,a   200c4dc <_Heap_Free+0x164>             <== NEVER TAKEN
 200c3d0:	b0 08 a0 01 	and  %g2, 1, %i0                               <== NOT EXECUTED
 200c3d4:	80 a1 00 03 	cmp  %g4, %g3                                  
 200c3d8:	2a 80 00 41 	bcs,a   200c4dc <_Heap_Free+0x164>             <== NEVER TAKEN
 200c3dc:	b0 08 a0 01 	and  %g2, 1, %i0                               <== NOT EXECUTED
 200c3e0:	da 00 e0 04 	ld  [ %g3 + 4 ], %o5                           
    return false;                                                     
  }                                                                   
                                                                      
  _Heap_Protection_block_check( heap, next_block );                   
                                                                      
  if ( !_Heap_Is_prev_used( next_block ) ) {                          
 200c3e4:	80 8b 60 01 	btst  1, %o5                                   
 200c3e8:	02 80 00 3c 	be  200c4d8 <_Heap_Free+0x160>                 <== NEVER TAKEN
 200c3ec:	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 ));
 200c3f0:	80 a1 00 03 	cmp  %g4, %g3                                  
 200c3f4:	02 80 00 06 	be  200c40c <_Heap_Free+0x94>                  
 200c3f8:	9a 10 20 00 	clr  %o5                                       
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
 200c3fc:	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;                 
 200c400:	da 00 a0 04 	ld  [ %g2 + 4 ], %o5                           
 200c404:	9a 0b 60 01 	and  %o5, 1, %o5                               
                                                                      
    return do_free;                                                   
  }                                                                   
#endif                                                                
                                                                      
bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr )          
 200c408:	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 ) ) {                               
 200c40c:	80 8b e0 01 	btst  1, %o7                                   
 200c410:	12 80 00 1c 	bne  200c480 <_Heap_Free+0x108>                
 200c414:	80 8b 60 ff 	btst  0xff, %o5                                
    uintptr_t const prev_size = block->prev_size;                     
 200c418:	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);                 
 200c41c:	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;             
 200c420:	80 a0 40 0f 	cmp  %g1, %o7                                  
 200c424:	18 80 00 2d 	bgu  200c4d8 <_Heap_Free+0x160>                <== NEVER TAKEN
 200c428:	84 10 20 00 	clr  %g2                                       
 200c42c:	80 a1 00 0f 	cmp  %g4, %o7                                  
 200c430:	2a 80 00 2b 	bcs,a   200c4dc <_Heap_Free+0x164>             <== NEVER TAKEN
 200c434:	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;                 
 200c438:	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) ) {                        
 200c43c:	80 88 60 01 	btst  1, %g1                                   
 200c440:	02 80 00 26 	be  200c4d8 <_Heap_Free+0x160>                 <== NEVER TAKEN
 200c444:	80 8b 60 ff 	btst  0xff, %o5                                
      _HAssert( false );                                              
      return( false );                                                
    }                                                                 
                                                                      
    if ( next_is_free ) {       /* coalesce both */                   
 200c448:	02 80 00 39 	be  200c52c <_Heap_Free+0x1b4>                 
 200c44c:	96 06 40 0b 	add  %i1, %o3, %o3                             
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
 200c450:	c2 00 e0 08 	ld  [ %g3 + 8 ], %g1                           
 200c454:	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;                                        
 200c458:	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;                                                  
 200c45c:	c2 20 a0 08 	st  %g1, [ %g2 + 8 ]                           
  next->prev = prev;                                                  
 200c460:	c4 20 60 0c 	st  %g2, [ %g1 + 0xc ]                         
 200c464:	82 00 ff ff 	add  %g3, -1, %g1                              
 200c468:	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;
 200c46c:	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;        
 200c470:	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;                                   
 200c474:	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;        
 200c478:	10 80 00 0e 	b  200c4b0 <_Heap_Free+0x138>                  
 200c47c:	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 */                 
 200c480:	22 80 00 19 	be,a   200c4e4 <_Heap_Free+0x16c>              
 200c484:	c4 06 20 08 	ld  [ %i0 + 8 ], %g2                           
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
 200c488:	c4 00 e0 08 	ld  [ %g3 + 8 ], %g2                           
 200c48c:	c2 00 e0 0c 	ld  [ %g3 + 0xc ], %g1                         
)                                                                     
{                                                                     
  Heap_Block *next = old_block->next;                                 
  Heap_Block *prev = old_block->prev;                                 
                                                                      
  new_block->next = next;                                             
 200c490:	c4 27 60 08 	st  %g2, [ %i5 + 8 ]                           
  new_block->prev = prev;                                             
 200c494:	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;              
 200c498:	98 03 00 19 	add  %o4, %i1, %o4                             
                                                                      
  next->prev = new_block;                                             
 200c49c:	fa 20 a0 0c 	st  %i5, [ %g2 + 0xc ]                         
  prev->next = new_block;                                             
 200c4a0:	fa 20 60 08 	st  %i5, [ %g1 + 8 ]                           
    _Heap_Free_list_replace( next_block, block );                     
    block->size_and_flag = size | HEAP_PREV_BLOCK_USED;               
 200c4a4:	84 13 20 01 	or  %o4, 1, %g2                                
    next_block  = _Heap_Block_at( block, size );                      
    next_block->prev_size = size;                                     
 200c4a8:	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;               
 200c4ac:	c4 27 60 04 	st  %g2, [ %i5 + 4 ]                           
      stats->max_free_blocks = stats->free_blocks;                    
    }                                                                 
  }                                                                   
                                                                      
  /* Statistics */                                                    
  --stats->used_blocks;                                               
 200c4b0:	c4 06 20 40 	ld  [ %i0 + 0x40 ], %g2                        
  ++stats->frees;                                                     
 200c4b4:	c2 06 20 50 	ld  [ %i0 + 0x50 ], %g1                        
  stats->free_size += block_size;                                     
 200c4b8:	c6 06 20 30 	ld  [ %i0 + 0x30 ], %g3                        
      stats->max_free_blocks = stats->free_blocks;                    
    }                                                                 
  }                                                                   
                                                                      
  /* Statistics */                                                    
  --stats->used_blocks;                                               
 200c4bc:	84 00 bf ff 	add  %g2, -1, %g2                              
  ++stats->frees;                                                     
 200c4c0:	82 00 60 01 	inc  %g1                                       
  stats->free_size += block_size;                                     
 200c4c4:	b2 00 c0 19 	add  %g3, %i1, %i1                             
      stats->max_free_blocks = stats->free_blocks;                    
    }                                                                 
  }                                                                   
                                                                      
  /* Statistics */                                                    
  --stats->used_blocks;                                               
 200c4c8:	c4 26 20 40 	st  %g2, [ %i0 + 0x40 ]                        
  ++stats->frees;                                                     
 200c4cc:	c2 26 20 50 	st  %g1, [ %i0 + 0x50 ]                        
  stats->free_size += block_size;                                     
 200c4d0:	f2 26 20 30 	st  %i1, [ %i0 + 0x30 ]                        
                                                                      
  return( true );                                                     
 200c4d4:	84 10 20 01 	mov  1, %g2                                    
}                                                                     
 200c4d8:	b0 08 a0 01 	and  %g2, 1, %i0                               
 200c4dc:	81 c7 e0 08 	ret                                            
 200c4e0:	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;         
 200c4e4:	82 16 60 01 	or  %i1, 1, %g1                                
 200c4e8:	c2 27 60 04 	st  %g1, [ %i5 + 4 ]                           
    next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;               
 200c4ec:	c8 00 e0 04 	ld  [ %g3 + 4 ], %g4                           
)                                                                     
{                                                                     
  Heap_Block *next = block_before->next;                              
                                                                      
  new_block->next = next;                                             
  new_block->prev = block_before;                                     
 200c4f0:	f0 27 60 0c 	st  %i0, [ %i5 + 0xc ]                         
    next_block->prev_size = block_size;                               
                                                                      
    /* Statistics */                                                  
    ++stats->free_blocks;                                             
 200c4f4:	c2 06 20 38 	ld  [ %i0 + 0x38 ], %g1                        
  Heap_Block *new_block                                               
)                                                                     
{                                                                     
  Heap_Block *next = block_before->next;                              
                                                                      
  new_block->next = next;                                             
 200c4f8:	c4 27 60 08 	st  %g2, [ %i5 + 8 ]                           
  new_block->prev = block_before;                                     
  block_before->next = new_block;                                     
  next->prev = new_block;                                             
 200c4fc:	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;               
 200c500:	84 09 3f fe 	and  %g4, -2, %g2                              
    next_block->prev_size = block_size;                               
 200c504:	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;               
 200c508:	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 ) {              
 200c50c:	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;                                             
 200c510:	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;                                     
 200c514:	fa 26 20 08 	st  %i5, [ %i0 + 8 ]                           
    if ( stats->max_free_blocks < stats->free_blocks ) {              
 200c518:	80 a0 40 02 	cmp  %g1, %g2                                  
 200c51c:	08 bf ff e5 	bleu  200c4b0 <_Heap_Free+0x138>               
 200c520:	c2 26 20 38 	st  %g1, [ %i0 + 0x38 ]                        
      stats->max_free_blocks = stats->free_blocks;                    
 200c524:	10 bf ff e3 	b  200c4b0 <_Heap_Free+0x138>                  
 200c528:	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;        
 200c52c:	82 12 e0 01 	or  %o3, 1, %g1                                
 200c530:	c2 23 e0 04 	st  %g1, [ %o7 + 4 ]                           
      next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;             
 200c534:	c2 00 e0 04 	ld  [ %g3 + 4 ], %g1                           
      next_block->prev_size = size;                                   
 200c538:	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;             
 200c53c:	82 08 7f fe 	and  %g1, -2, %g1                              
 200c540:	10 bf ff dc 	b  200c4b0 <_Heap_Free+0x138>                  
 200c544:	c2 20 e0 04 	st  %g1, [ %g3 + 4 ]                           
                                                                      

0200d0b8 <_Heap_Get_information>: void _Heap_Get_information( Heap_Control *the_heap, Heap_Information_block *the_info ) {
 200d0b8:	9d e3 bf a0 	save  %sp, -96, %sp                            
  Heap_Block *the_block = the_heap->first_block;                      
 200d0bc:	fa 06 20 20 	ld  [ %i0 + 0x20 ], %i5                        
  Heap_Block *const end = the_heap->last_block;                       
 200d0c0:	f8 06 20 24 	ld  [ %i0 + 0x24 ], %i4                        
                                                                      
  memset(the_info, 0, sizeof(*the_info));                             
 200d0c4:	92 10 20 00 	clr  %o1                                       
 200d0c8:	90 10 00 19 	mov  %i1, %o0                                  
 200d0cc:	40 00 09 16 	call  200f524 <memset>                         
 200d0d0:	94 10 20 18 	mov  0x18, %o2                                 
                                                                      
  while ( the_block != end ) {                                        
 200d0d4:	80 a7 40 1c 	cmp  %i5, %i4                                  
 200d0d8:	02 80 00 17 	be  200d134 <_Heap_Get_information+0x7c>       <== NEVER TAKEN
 200d0dc:	01 00 00 00 	nop                                            
 200d0e0:	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;                
 200d0e4:	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);                 
 200d0e8:	ba 07 40 02 	add  %i5, %g2, %i5                             
    if ( info->largest < the_size )                                   
      info->largest = the_size;                                       
                                                                      
    the_block = next_block;                                           
  }                                                                   
}                                                                     
 200d0ec:	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) )                             
 200d0f0:	80 88 e0 01 	btst  1, %g3                                   
 200d0f4:	02 80 00 03 	be  200d100 <_Heap_Get_information+0x48>       
 200d0f8:	82 10 00 19 	mov  %i1, %g1                                  
      info = &the_info->Used;                                         
 200d0fc:	82 06 60 0c 	add  %i1, 0xc, %g1                             
    else                                                              
      info = &the_info->Free;                                         
                                                                      
    info->number++;                                                   
 200d100:	de 00 40 00 	ld  [ %g1 ], %o7                               
    info->total += the_size;                                          
 200d104:	f0 00 60 08 	ld  [ %g1 + 8 ], %i0                           
    if ( info->largest < the_size )                                   
 200d108:	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++;                                                   
 200d10c:	9e 03 e0 01 	inc  %o7                                       
    info->total += the_size;                                          
 200d110:	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++;                                                   
 200d114:	de 20 40 00 	st  %o7, [ %g1 ]                               
    info->total += the_size;                                          
    if ( info->largest < the_size )                                   
 200d118:	80 a1 00 02 	cmp  %g4, %g2                                  
 200d11c:	1a 80 00 03 	bcc  200d128 <_Heap_Get_information+0x70>      
 200d120:	f0 20 60 08 	st  %i0, [ %g1 + 8 ]                           
      info->largest = the_size;                                       
 200d124:	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 ) {                                        
 200d128:	80 a7 00 1d 	cmp  %i4, %i5                                  
 200d12c:	12 bf ff ef 	bne  200d0e8 <_Heap_Get_information+0x30>      
 200d130:	84 08 ff fe 	and  %g3, -2, %g2                              
 200d134:	81 c7 e0 08 	ret                                            
 200d138:	81 e8 00 00 	restore                                        
                                                                      

02013844 <_Heap_Size_of_alloc_area>: bool _Heap_Size_of_alloc_area( Heap_Control *heap, void *alloc_begin_ptr, uintptr_t *alloc_size ) {
 2013844:	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);                                 
 2013848:	d2 06 20 10 	ld  [ %i0 + 0x10 ], %o1                        
 201384c:	7f ff f9 16 	call  2011ca4 <.urem>                          
 2013850:	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           
 2013854:	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);                                 
 2013858:	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);                                        
 201385c:	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;             
 2013860:	80 a0 80 01 	cmp  %g2, %g1                                  
 2013864:	0a 80 00 16 	bcs  20138bc <_Heap_Size_of_alloc_area+0x78>   
 2013868:	86 10 20 00 	clr  %g3                                       
 201386c:	c8 06 20 24 	ld  [ %i0 + 0x24 ], %g4                        
 2013870:	80 a0 80 04 	cmp  %g2, %g4                                  
 2013874:	18 80 00 13 	bgu  20138c0 <_Heap_Size_of_alloc_area+0x7c>   <== NEVER TAKEN
 2013878:	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;                
 201387c:	f0 00 a0 04 	ld  [ %g2 + 4 ], %i0                           
 2013880:	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);                 
 2013884:	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;             
 2013888:	80 a0 40 02 	cmp  %g1, %g2                                  
 201388c:	18 80 00 0d 	bgu  20138c0 <_Heap_Size_of_alloc_area+0x7c>   <== NEVER TAKEN
 2013890:	b0 08 e0 01 	and  %g3, 1, %i0                               
 2013894:	80 a1 00 02 	cmp  %g4, %g2                                  
 2013898:	0a 80 00 0a 	bcs  20138c0 <_Heap_Size_of_alloc_area+0x7c>   <== NEVER TAKEN
 201389c:	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;                 
 20138a0:	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 )                            
 20138a4:	80 88 60 01 	btst  1, %g1                                   
 20138a8:	02 80 00 06 	be  20138c0 <_Heap_Size_of_alloc_area+0x7c>    <== NEVER TAKEN
 20138ac:	84 20 80 19 	sub  %g2, %i1, %g2                             
    return false;                                                     
  }                                                                   
                                                                      
  *alloc_size = (uintptr_t) next_block + HEAP_ALLOC_BONUS - alloc_begin;
                                                                      
  return true;                                                        
 20138b0:	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;
 20138b4:	84 00 a0 04 	add  %g2, 4, %g2                               
 20138b8:	c4 26 80 00 	st  %g2, [ %i2 ]                               
                                                                      
  return true;                                                        
}                                                                     
 20138bc:	b0 08 e0 01 	and  %g3, 1, %i0                               
 20138c0:	81 c7 e0 08 	ret                                            
 20138c4:	81 e8 00 00 	restore                                        
                                                                      

0200868c <_Heap_Walk>: bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) {
 200868c:	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;                      
 2008690:	3b 00 80 21 	sethi  %hi(0x2008400), %i5                     
  Heap_Control *heap,                                                 
  int source,                                                         
  bool dump                                                           
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
 2008694:	e0 06 20 10 	ld  [ %i0 + 0x10 ], %l0                        
  uintptr_t const min_block_size = heap->min_block_size;              
 2008698:	f6 06 20 14 	ld  [ %i0 + 0x14 ], %i3                        
  Heap_Block *const first_block = heap->first_block;                  
 200869c:	f8 06 20 20 	ld  [ %i0 + 0x20 ], %i4                        
  Heap_Block *const last_block = heap->last_block;                    
 20086a0:	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;                      
 20086a4:	80 a6 a0 00 	cmp  %i2, 0                                    
 20086a8:	02 80 00 04 	be  20086b8 <_Heap_Walk+0x2c>                  
 20086ac:	ba 17 62 20 	or  %i5, 0x220, %i5                            
 20086b0:	3b 00 80 21 	sethi  %hi(0x2008400), %i5                     
 20086b4:	ba 17 62 28 	or  %i5, 0x228, %i5	! 2008628 <_Heap_Walk_print>
                                                                      
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
 20086b8:	03 00 80 60 	sethi  %hi(0x2018000), %g1                     
 20086bc:	c4 00 60 4c 	ld  [ %g1 + 0x4c ], %g2	! 201804c <_System_state_Current>
 20086c0:	80 a0 a0 03 	cmp  %g2, 3                                    
 20086c4:	02 80 00 05 	be  20086d8 <_Heap_Walk+0x4c>                  
 20086c8:	82 10 20 01 	mov  1, %g1                                    
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
 20086cc:	b0 08 60 01 	and  %g1, 1, %i0                               
 20086d0:	81 c7 e0 08 	ret                                            
 20086d4:	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)(                                                         
 20086d8:	da 06 20 18 	ld  [ %i0 + 0x18 ], %o5                        
 20086dc:	c6 06 20 1c 	ld  [ %i0 + 0x1c ], %g3                        
 20086e0:	c4 06 20 08 	ld  [ %i0 + 8 ], %g2                           
 20086e4:	c2 06 20 0c 	ld  [ %i0 + 0xc ], %g1                         
 20086e8:	90 10 00 19 	mov  %i1, %o0                                  
 20086ec:	c6 23 a0 5c 	st  %g3, [ %sp + 0x5c ]                        
 20086f0:	f8 23 a0 60 	st  %i4, [ %sp + 0x60 ]                        
 20086f4:	e2 23 a0 64 	st  %l1, [ %sp + 0x64 ]                        
 20086f8:	c4 23 a0 68 	st  %g2, [ %sp + 0x68 ]                        
 20086fc:	c2 23 a0 6c 	st  %g1, [ %sp + 0x6c ]                        
 2008700:	92 10 20 00 	clr  %o1                                       
 2008704:	96 10 00 10 	mov  %l0, %o3                                  
 2008708:	15 00 80 55 	sethi  %hi(0x2015400), %o2                     
 200870c:	98 10 00 1b 	mov  %i3, %o4                                  
 2008710:	9f c7 40 00 	call  %i5                                      
 2008714:	94 12 a2 00 	or  %o2, 0x200, %o2                            
    heap->area_begin, heap->area_end,                                 
    first_block, last_block,                                          
    first_free_block, last_free_block                                 
  );                                                                  
                                                                      
  if ( page_size == 0 ) {                                             
 2008718:	80 a4 20 00 	cmp  %l0, 0                                    
 200871c:	02 80 00 28 	be  20087bc <_Heap_Walk+0x130>                 
 2008720:	80 8c 20 07 	btst  7, %l0                                   
    (*printer)( source, true, "page size is zero\n" );                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Addresses_Is_aligned( (void *) page_size ) ) {               
 2008724:	12 80 00 2d 	bne  20087d8 <_Heap_Walk+0x14c>                
 2008728:	90 10 00 1b 	mov  %i3, %o0                                  
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
 200872c:	7f ff e4 e8 	call  2001acc <.urem>                          
 2008730:	92 10 00 10 	mov  %l0, %o1                                  
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_aligned( min_block_size, page_size ) ) {             
 2008734:	80 a2 20 00 	cmp  %o0, 0                                    
 2008738:	12 80 00 30 	bne  20087f8 <_Heap_Walk+0x16c>                
 200873c:	90 07 20 08 	add  %i4, 8, %o0                               
 2008740:	7f ff e4 e3 	call  2001acc <.urem>                          
 2008744:	92 10 00 10 	mov  %l0, %o1                                  
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if (                                                                
 2008748:	80 a2 20 00 	cmp  %o0, 0                                    
 200874c:	32 80 00 33 	bne,a   2008818 <_Heap_Walk+0x18c>             
 2008750:	90 10 00 19 	mov  %i1, %o0                                  
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
 2008754:	e8 07 20 04 	ld  [ %i4 + 4 ], %l4                           
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_prev_used( first_block ) ) {                         
 2008758:	80 8d 20 01 	btst  1, %l4                                   
 200875c:	22 80 00 36 	be,a   2008834 <_Heap_Walk+0x1a8>              
 2008760:	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;                
 2008764:	c2 04 60 04 	ld  [ %l1 + 4 ], %g1                           
 2008768:	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);                 
 200876c:	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;                 
 2008770:	c4 00 60 04 	ld  [ %g1 + 4 ], %g2                           
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( _Heap_Is_free( last_block ) ) {                                
 2008774:	80 88 a0 01 	btst  1, %g2                                   
 2008778:	02 80 00 0a 	be  20087a0 <_Heap_Walk+0x114>                 
 200877c:	80 a7 00 01 	cmp  %i4, %g1                                  
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if (                                                                
 2008780:	02 80 00 33 	be  200884c <_Heap_Walk+0x1c0>                 
 2008784:	90 10 00 19 	mov  %i1, %o0                                  
    _Heap_Block_at( last_block, _Heap_Block_size( last_block ) ) != first_block
  ) {                                                                 
    (*printer)(                                                       
 2008788:	92 10 20 01 	mov  1, %o1                                    
 200878c:	15 00 80 55 	sethi  %hi(0x2015400), %o2                     
 2008790:	9f c7 40 00 	call  %i5                                      
 2008794:	94 12 a3 78 	or  %o2, 0x378, %o2	! 2015778 <_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;                                                     
 2008798:	10 bf ff cd 	b  20086cc <_Heap_Walk+0x40>                   
 200879c:	82 10 20 00 	clr  %g1                                       
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( _Heap_Is_free( last_block ) ) {                                
    (*printer)(                                                       
 20087a0:	90 10 00 19 	mov  %i1, %o0                                  
 20087a4:	92 10 20 01 	mov  1, %o1                                    
 20087a8:	15 00 80 55 	sethi  %hi(0x2015400), %o2                     
 20087ac:	9f c7 40 00 	call  %i5                                      
 20087b0:	94 12 a3 60 	or  %o2, 0x360, %o2	! 2015760 <_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;                                                     
 20087b4:	10 bf ff c6 	b  20086cc <_Heap_Walk+0x40>                   
 20087b8:	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" );                
 20087bc:	90 10 00 19 	mov  %i1, %o0                                  
 20087c0:	92 10 20 01 	mov  1, %o1                                    
 20087c4:	15 00 80 55 	sethi  %hi(0x2015400), %o2                     
 20087c8:	9f c7 40 00 	call  %i5                                      
 20087cc:	94 12 a2 98 	or  %o2, 0x298, %o2	! 2015698 <_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;                                                     
 20087d0:	10 bf ff bf 	b  20086cc <_Heap_Walk+0x40>                   
 20087d4:	82 10 20 00 	clr  %g1                                       
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Addresses_Is_aligned( (void *) page_size ) ) {               
    (*printer)(                                                       
 20087d8:	90 10 00 19 	mov  %i1, %o0                                  
 20087dc:	92 10 20 01 	mov  1, %o1                                    
 20087e0:	96 10 00 10 	mov  %l0, %o3                                  
 20087e4:	15 00 80 55 	sethi  %hi(0x2015400), %o2                     
 20087e8:	9f c7 40 00 	call  %i5                                      
 20087ec:	94 12 a2 b0 	or  %o2, 0x2b0, %o2	! 20156b0 <_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;                                                     
 20087f0:	10 bf ff b7 	b  20086cc <_Heap_Walk+0x40>                   
 20087f4:	82 10 20 00 	clr  %g1                                       
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_aligned( min_block_size, page_size ) ) {             
    (*printer)(                                                       
 20087f8:	90 10 00 19 	mov  %i1, %o0                                  
 20087fc:	92 10 20 01 	mov  1, %o1                                    
 2008800:	96 10 00 1b 	mov  %i3, %o3                                  
 2008804:	15 00 80 55 	sethi  %hi(0x2015400), %o2                     
 2008808:	9f c7 40 00 	call  %i5                                      
 200880c:	94 12 a2 d0 	or  %o2, 0x2d0, %o2	! 20156d0 <_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;                                                     
 2008810:	10 bf ff af 	b  20086cc <_Heap_Walk+0x40>                   
 2008814:	82 10 20 00 	clr  %g1                                       
  }                                                                   
                                                                      
  if (                                                                
    !_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size )
  ) {                                                                 
    (*printer)(                                                       
 2008818:	92 10 20 01 	mov  1, %o1                                    
 200881c:	96 10 00 1c 	mov  %i4, %o3                                  
 2008820:	15 00 80 55 	sethi  %hi(0x2015400), %o2                     
 2008824:	9f c7 40 00 	call  %i5                                      
 2008828:	94 12 a2 f8 	or  %o2, 0x2f8, %o2	! 20156f8 <_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;                                                     
 200882c:	10 bf ff a8 	b  20086cc <_Heap_Walk+0x40>                   
 2008830:	82 10 20 00 	clr  %g1                                       
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_prev_used( first_block ) ) {                         
    (*printer)(                                                       
 2008834:	92 10 20 01 	mov  1, %o1                                    
 2008838:	15 00 80 55 	sethi  %hi(0x2015400), %o2                     
 200883c:	9f c7 40 00 	call  %i5                                      
 2008840:	94 12 a3 30 	or  %o2, 0x330, %o2	! 2015730 <_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;                                                     
 2008844:	10 bf ff a2 	b  20086cc <_Heap_Walk+0x40>                   
 2008848:	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;                            
 200884c:	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;                        
 2008850:	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 ) {                            
 2008854:	80 a6 00 1a 	cmp  %i0, %i2                                  
 2008858:	02 80 00 0d 	be  200888c <_Heap_Walk+0x200>                 
 200885c:	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;             
 2008860:	80 a0 40 1a 	cmp  %g1, %i2                                  
 2008864:	28 80 00 bc 	bleu,a   2008b54 <_Heap_Walk+0x4c8>            <== ALWAYS TAKEN
 2008868:	e6 06 20 24 	ld  [ %i0 + 0x24 ], %l3                        
    if ( !_Heap_Is_block_in_heap( heap, free_block ) ) {              
      (*printer)(                                                     
 200886c:	90 10 00 19 	mov  %i1, %o0                                  <== NOT EXECUTED
 2008870:	92 10 20 01 	mov  1, %o1                                    
 2008874:	96 10 00 1a 	mov  %i2, %o3                                  
 2008878:	15 00 80 55 	sethi  %hi(0x2015400), %o2                     
 200887c:	9f c7 40 00 	call  %i5                                      
 2008880:	94 12 a3 a8 	or  %o2, 0x3a8, %o2	! 20157a8 <_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;                                                     
 2008884:	10 bf ff 92 	b  20086cc <_Heap_Walk+0x40>                   
 2008888:	82 10 20 00 	clr  %g1                                       
        "block 0x%08x: size %u\n",                                    
        block,                                                        
        block_size                                                    
      );                                                              
    } else {                                                          
      (*printer)(                                                     
 200888c:	2d 00 80 56 	sethi  %hi(0x2015800), %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)(                                                     
 2008890:	2f 00 80 56 	sethi  %hi(0x2015800), %l7                     
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( _Heap_Is_used( free_block ) ) {                              
 2008894:	a4 10 00 1c 	mov  %i4, %l2                                  
        "block 0x%08x: size %u\n",                                    
        block,                                                        
        block_size                                                    
      );                                                              
    } else {                                                          
      (*printer)(                                                     
 2008898:	ac 15 a1 d8 	or  %l6, 0x1d8, %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)(                                                     
 200889c:	ae 15 e1 c0 	or  %l7, 0x1c0, %l7                            
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
    block->next,                                                      
    block->next == last_free_block ?                                  
      " (= last free)"                                                
        : (block->next == free_list_tail ? " (= tail)" : "")          
 20088a0:	2b 00 80 56 	sethi  %hi(0x2015800), %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;                
 20088a4:	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);                 
 20088a8:	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;             
 20088ac:	80 a0 40 1a 	cmp  %g1, %i2                                  
 20088b0:	28 80 00 0b 	bleu,a   20088dc <_Heap_Walk+0x250>            <== ALWAYS TAKEN
 20088b4:	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)(                                                     
 20088b8:	90 10 00 19 	mov  %i1, %o0                                  <== NOT EXECUTED
 20088bc:	92 10 20 01 	mov  1, %o1                                    
 20088c0:	96 10 00 12 	mov  %l2, %o3                                  
 20088c4:	15 00 80 56 	sethi  %hi(0x2015800), %o2                     
 20088c8:	98 10 00 1a 	mov  %i2, %o4                                  
 20088cc:	9f c7 40 00 	call  %i5                                      
 20088d0:	94 12 a0 50 	or  %o2, 0x50, %o2                             
        "block 0x%08x: next block 0x%08x not in heap\n",              
        block,                                                        
        next_block                                                    
      );                                                              
                                                                      
      return false;                                                   
 20088d4:	10 bf ff 7e 	b  20086cc <_Heap_Walk+0x40>                   
 20088d8:	82 10 20 00 	clr  %g1                                       
 20088dc:	80 a0 40 1a 	cmp  %g1, %i2                                  
 20088e0:	0a bf ff f7 	bcs  20088bc <_Heap_Walk+0x230>                
 20088e4:	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;               
 20088e8:	82 1c 80 11 	xor  %l2, %l1, %g1                             
 20088ec:	80 a0 00 01 	cmp  %g0, %g1                                  
 20088f0:	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;                                    
 20088f4:	90 10 00 13 	mov  %l3, %o0                                  
 20088f8:	c2 27 bf fc 	st  %g1, [ %fp + -4 ]                          
 20088fc:	7f ff e4 74 	call  2001acc <.urem>                          
 2008900:	92 10 00 10 	mov  %l0, %o1                                  
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_aligned( block_size, page_size ) && is_not_last_block ) {
 2008904:	80 a2 20 00 	cmp  %o0, 0                                    
 2008908:	02 80 00 05 	be  200891c <_Heap_Walk+0x290>                 
 200890c:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 2008910:	80 88 60 ff 	btst  0xff, %g1                                
 2008914:	12 80 00 76 	bne  2008aec <_Heap_Walk+0x460>                
 2008918:	90 10 00 19 	mov  %i1, %o0                                  
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( block_size < min_block_size && is_not_last_block ) {         
 200891c:	80 a6 c0 13 	cmp  %i3, %l3                                  
 2008920:	08 80 00 05 	bleu  2008934 <_Heap_Walk+0x2a8>               
 2008924:	80 a4 80 1a 	cmp  %l2, %i2                                  
 2008928:	80 88 60 ff 	btst  0xff, %g1                                
 200892c:	12 80 00 78 	bne  2008b0c <_Heap_Walk+0x480>                <== ALWAYS TAKEN
 2008930:	80 a4 80 1a 	cmp  %l2, %i2                                  
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( next_block_begin <= block_begin && is_not_last_block ) {     
 2008934:	2a 80 00 06 	bcs,a   200894c <_Heap_Walk+0x2c0>             
 2008938:	c2 06 a0 04 	ld  [ %i2 + 4 ], %g1                           
 200893c:	80 88 60 ff 	btst  0xff, %g1                                
 2008940:	12 80 00 7d 	bne  2008b34 <_Heap_Walk+0x4a8>                
 2008944:	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;                 
 2008948:	c2 06 a0 04 	ld  [ %i2 + 4 ], %g1                           
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
 200894c:	80 88 60 01 	btst  1, %g1                                   
 2008950:	02 80 00 19 	be  20089b4 <_Heap_Walk+0x328>                 
 2008954:	a8 0d 20 01 	and  %l4, 1, %l4                               
      if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
        return false;                                                 
      }                                                               
    } else if (prev_used) {                                           
 2008958:	80 a5 20 00 	cmp  %l4, 0                                    
 200895c:	22 80 00 0e 	be,a   2008994 <_Heap_Walk+0x308>              
 2008960:	da 04 80 00 	ld  [ %l2 ], %o5                               
      (*printer)(                                                     
 2008964:	90 10 00 19 	mov  %i1, %o0                                  
 2008968:	92 10 20 00 	clr  %o1                                       
 200896c:	94 10 00 17 	mov  %l7, %o2                                  
 2008970:	96 10 00 12 	mov  %l2, %o3                                  
 2008974:	9f c7 40 00 	call  %i5                                      
 2008978:	98 10 00 13 	mov  %l3, %o4                                  
        block->prev_size                                              
      );                                                              
    }                                                                 
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
 200897c:	80 a7 00 1a 	cmp  %i4, %i2                                  
 2008980:	02 80 00 42 	be  2008a88 <_Heap_Walk+0x3fc>                 
 2008984:	a4 10 00 1a 	mov  %i2, %l2                                  
 2008988:	e8 06 a0 04 	ld  [ %i2 + 4 ], %l4                           
 200898c:	10 bf ff c6 	b  20088a4 <_Heap_Walk+0x218>                  
 2008990:	c2 06 20 20 	ld  [ %i0 + 0x20 ], %g1                        
        "block 0x%08x: size %u\n",                                    
        block,                                                        
        block_size                                                    
      );                                                              
    } else {                                                          
      (*printer)(                                                     
 2008994:	96 10 00 12 	mov  %l2, %o3                                  
 2008998:	90 10 00 19 	mov  %i1, %o0                                  
 200899c:	92 10 20 00 	clr  %o1                                       
 20089a0:	94 10 00 16 	mov  %l6, %o2                                  
 20089a4:	9f c7 40 00 	call  %i5                                      
 20089a8:	98 10 00 13 	mov  %l3, %o4                                  
        block->prev_size                                              
      );                                                              
    }                                                                 
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
 20089ac:	10 bf ff f5 	b  2008980 <_Heap_Walk+0x2f4>                  
 20089b0:	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 ?                                 
 20089b4:	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)(                                                         
 20089b8:	c2 06 20 08 	ld  [ %i0 + 8 ], %g1                           
 20089bc:	05 00 80 55 	sethi  %hi(0x2015400), %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;                            
 20089c0:	c8 06 20 0c 	ld  [ %i0 + 0xc ], %g4                         
 20089c4:	80 a0 40 0d 	cmp  %g1, %o5                                  
 20089c8:	02 80 00 05 	be  20089dc <_Heap_Walk+0x350>                 
 20089cc:	86 10 a1 c0 	or  %g2, 0x1c0, %g3                            
    block,                                                            
    block_size,                                                       
    block->prev,                                                      
    block->prev == first_free_block ?                                 
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
 20089d0:	80 a6 00 0d 	cmp  %i0, %o5                                  
 20089d4:	02 80 00 3c 	be  2008ac4 <_Heap_Walk+0x438>                 
 20089d8:	86 15 61 88 	or  %l5, 0x188, %g3                            
    block->next,                                                      
    block->next == last_free_block ?                                  
 20089dc:	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)(                                                         
 20089e0:	1f 00 80 55 	sethi  %hi(0x2015400), %o7                     
 20089e4:	80 a1 00 01 	cmp  %g4, %g1                                  
 20089e8:	02 80 00 05 	be  20089fc <_Heap_Walk+0x370>                 
 20089ec:	84 13 e1 e0 	or  %o7, 0x1e0, %g2                            
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
    block->next,                                                      
    block->next == last_free_block ?                                  
      " (= last free)"                                                
        : (block->next == free_list_tail ? " (= tail)" : "")          
 20089f0:	80 a6 00 01 	cmp  %i0, %g1                                  
 20089f4:	02 80 00 31 	be  2008ab8 <_Heap_Walk+0x42c>                 
 20089f8:	84 15 61 88 	or  %l5, 0x188, %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)(                                                         
 20089fc:	c6 23 a0 5c 	st  %g3, [ %sp + 0x5c ]                        
 2008a00:	c2 23 a0 60 	st  %g1, [ %sp + 0x60 ]                        
 2008a04:	c4 23 a0 64 	st  %g2, [ %sp + 0x64 ]                        
 2008a08:	90 10 00 19 	mov  %i1, %o0                                  
 2008a0c:	92 10 20 00 	clr  %o1                                       
 2008a10:	15 00 80 56 	sethi  %hi(0x2015800), %o2                     
 2008a14:	96 10 00 12 	mov  %l2, %o3                                  
 2008a18:	94 12 a1 18 	or  %o2, 0x118, %o2                            
 2008a1c:	9f c7 40 00 	call  %i5                                      
 2008a20:	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 ) {                        
 2008a24:	da 06 80 00 	ld  [ %i2 ], %o5                               
 2008a28:	80 a4 c0 0d 	cmp  %l3, %o5                                  
 2008a2c:	12 80 00 19 	bne  2008a90 <_Heap_Walk+0x404>                
 2008a30:	80 a5 20 00 	cmp  %l4, 0                                    
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !prev_used ) {                                                 
 2008a34:	02 80 00 27 	be  2008ad0 <_Heap_Walk+0x444>                 
 2008a38:	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;                            
 2008a3c:	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 ) {                            
 2008a40:	80 a6 00 01 	cmp  %i0, %g1                                  
 2008a44:	02 80 00 0b 	be  2008a70 <_Heap_Walk+0x3e4>                 <== NEVER TAKEN
 2008a48:	92 10 20 01 	mov  1, %o1                                    
    if ( free_block == block ) {                                      
 2008a4c:	80 a4 80 01 	cmp  %l2, %g1                                  
 2008a50:	02 bf ff cc 	be  2008980 <_Heap_Walk+0x2f4>                 
 2008a54:	80 a7 00 1a 	cmp  %i4, %i2                                  
      return true;                                                    
    }                                                                 
    free_block = free_block->next;                                    
 2008a58:	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 ) {                            
 2008a5c:	80 a6 00 01 	cmp  %i0, %g1                                  
 2008a60:	12 bf ff fc 	bne  2008a50 <_Heap_Walk+0x3c4>                
 2008a64:	80 a4 80 01 	cmp  %l2, %g1                                  
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Walk_is_in_free_list( heap, block ) ) {                 
    (*printer)(                                                       
 2008a68:	90 10 00 19 	mov  %i1, %o0                                  
 2008a6c:	92 10 20 01 	mov  1, %o1                                    
 2008a70:	96 10 00 12 	mov  %l2, %o3                                  
 2008a74:	15 00 80 56 	sethi  %hi(0x2015800), %o2                     
 2008a78:	9f c7 40 00 	call  %i5                                      
 2008a7c:	94 12 a2 00 	or  %o2, 0x200, %o2	! 2015a00 <_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;                                                 
 2008a80:	10 bf ff 13 	b  20086cc <_Heap_Walk+0x40>                   
 2008a84:	82 10 20 00 	clr  %g1                                       
    }                                                                 
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
 2008a88:	10 bf ff 11 	b  20086cc <_Heap_Walk+0x40>                   
 2008a8c:	82 10 20 01 	mov  1, %g1                                    
      " (= last free)"                                                
        : (block->next == free_list_tail ? " (= tail)" : "")          
  );                                                                  
                                                                      
  if ( block_size != next_block->prev_size ) {                        
    (*printer)(                                                       
 2008a90:	f4 23 a0 5c 	st  %i2, [ %sp + 0x5c ]                        
 2008a94:	90 10 00 19 	mov  %i1, %o0                                  
 2008a98:	92 10 20 01 	mov  1, %o1                                    
 2008a9c:	96 10 00 12 	mov  %l2, %o3                                  
 2008aa0:	15 00 80 56 	sethi  %hi(0x2015800), %o2                     
 2008aa4:	98 10 00 13 	mov  %l3, %o4                                  
 2008aa8:	9f c7 40 00 	call  %i5                                      
 2008aac:	94 12 a1 50 	or  %o2, 0x150, %o2                            
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
      if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
        return false;                                                 
 2008ab0:	10 bf ff 07 	b  20086cc <_Heap_Walk+0x40>                   
 2008ab4:	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)" : "")          
 2008ab8:	05 00 80 55 	sethi  %hi(0x2015400), %g2                     
 2008abc:	10 bf ff d0 	b  20089fc <_Heap_Walk+0x370>                  
 2008ac0:	84 10 a1 f0 	or  %g2, 0x1f0, %g2	! 20155f0 <_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)" : ""),         
 2008ac4:	07 00 80 55 	sethi  %hi(0x2015400), %g3                     
 2008ac8:	10 bf ff c5 	b  20089dc <_Heap_Walk+0x350>                  
 2008acc:	86 10 e1 d0 	or  %g3, 0x1d0, %g3	! 20155d0 <_Status_Object_name_errors_to_status+0x48>
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !prev_used ) {                                                 
    (*printer)(                                                       
 2008ad0:	92 10 20 01 	mov  1, %o1                                    
 2008ad4:	96 10 00 12 	mov  %l2, %o3                                  
 2008ad8:	15 00 80 56 	sethi  %hi(0x2015800), %o2                     
 2008adc:	9f c7 40 00 	call  %i5                                      
 2008ae0:	94 12 a1 90 	or  %o2, 0x190, %o2	! 2015990 <_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;                                                 
 2008ae4:	10 bf fe fa 	b  20086cc <_Heap_Walk+0x40>                   
 2008ae8:	82 10 20 00 	clr  %g1                                       
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_aligned( block_size, page_size ) && is_not_last_block ) {
      (*printer)(                                                     
 2008aec:	92 10 20 01 	mov  1, %o1                                    
 2008af0:	96 10 00 12 	mov  %l2, %o3                                  
 2008af4:	15 00 80 56 	sethi  %hi(0x2015800), %o2                     
 2008af8:	98 10 00 13 	mov  %l3, %o4                                  
 2008afc:	9f c7 40 00 	call  %i5                                      
 2008b00:	94 12 a0 80 	or  %o2, 0x80, %o2                             
        "block 0x%08x: block size %u not page aligned\n",             
        block,                                                        
        block_size                                                    
      );                                                              
                                                                      
      return false;                                                   
 2008b04:	10 bf fe f2 	b  20086cc <_Heap_Walk+0x40>                   
 2008b08:	82 10 20 00 	clr  %g1                                       
    }                                                                 
                                                                      
    if ( block_size < min_block_size && is_not_last_block ) {         
      (*printer)(                                                     
 2008b0c:	90 10 00 19 	mov  %i1, %o0                                  
 2008b10:	92 10 20 01 	mov  1, %o1                                    
 2008b14:	96 10 00 12 	mov  %l2, %o3                                  
 2008b18:	15 00 80 56 	sethi  %hi(0x2015800), %o2                     
 2008b1c:	98 10 00 13 	mov  %l3, %o4                                  
 2008b20:	94 12 a0 b0 	or  %o2, 0xb0, %o2                             
 2008b24:	9f c7 40 00 	call  %i5                                      
 2008b28:	9a 10 00 1b 	mov  %i3, %o5                                  
        block,                                                        
        block_size,                                                   
        min_block_size                                                
      );                                                              
                                                                      
      return false;                                                   
 2008b2c:	10 bf fe e8 	b  20086cc <_Heap_Walk+0x40>                   
 2008b30:	82 10 20 00 	clr  %g1                                       
    }                                                                 
                                                                      
    if ( next_block_begin <= block_begin && is_not_last_block ) {     
      (*printer)(                                                     
 2008b34:	92 10 20 01 	mov  1, %o1                                    
 2008b38:	96 10 00 12 	mov  %l2, %o3                                  
 2008b3c:	15 00 80 56 	sethi  %hi(0x2015800), %o2                     
 2008b40:	98 10 00 1a 	mov  %i2, %o4                                  
 2008b44:	9f c7 40 00 	call  %i5                                      
 2008b48:	94 12 a0 e0 	or  %o2, 0xe0, %o2                             
        "block 0x%08x: next block 0x%08x is not a successor\n",       
        block,                                                        
        next_block                                                    
      );                                                              
                                                                      
      return false;                                                   
 2008b4c:	10 bf fe e0 	b  20086cc <_Heap_Walk+0x40>                   
 2008b50:	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;             
 2008b54:	80 a6 80 13 	cmp  %i2, %l3                                  
 2008b58:	18 bf ff 46 	bgu  2008870 <_Heap_Walk+0x1e4>                <== NEVER TAKEN
 2008b5c:	90 10 00 19 	mov  %i1, %o0                                  
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
 2008b60:	c2 27 bf fc 	st  %g1, [ %fp + -4 ]                          
 2008b64:	90 06 a0 08 	add  %i2, 8, %o0                               
 2008b68:	7f ff e3 d9 	call  2001acc <.urem>                          
 2008b6c:	92 10 00 15 	mov  %l5, %o1                                  
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if (                                                              
 2008b70:	80 a2 20 00 	cmp  %o0, 0                                    
 2008b74:	12 80 00 36 	bne  2008c4c <_Heap_Walk+0x5c0>                <== NEVER TAKEN
 2008b78:	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;                
 2008b7c:	c4 06 a0 04 	ld  [ %i2 + 4 ], %g2                           
 2008b80:	84 08 bf fe 	and  %g2, -2, %g2                              
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
 2008b84:	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;                 
 2008b88:	c4 00 a0 04 	ld  [ %g2 + 4 ], %g2                           
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( _Heap_Is_used( free_block ) ) {                              
 2008b8c:	80 88 a0 01 	btst  1, %g2                                   
 2008b90:	12 80 00 27 	bne  2008c2c <_Heap_Walk+0x5a0>                <== NEVER TAKEN
 2008b94:	84 10 00 18 	mov  %i0, %g2                                  
 2008b98:	10 80 00 19 	b  2008bfc <_Heap_Walk+0x570>                  
 2008b9c:	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 ) {                            
 2008ba0:	80 a6 00 1a 	cmp  %i0, %i2                                  
 2008ba4:	02 bf ff 3a 	be  200888c <_Heap_Walk+0x200>                 
 2008ba8:	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;             
 2008bac:	0a bf ff 31 	bcs  2008870 <_Heap_Walk+0x1e4>                
 2008bb0:	90 10 00 19 	mov  %i1, %o0                                  
 2008bb4:	80 a6 80 13 	cmp  %i2, %l3                                  
 2008bb8:	18 bf ff 2f 	bgu  2008874 <_Heap_Walk+0x1e8>                <== NEVER TAKEN
 2008bbc:	92 10 20 01 	mov  1, %o1                                    
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
 2008bc0:	c2 27 bf fc 	st  %g1, [ %fp + -4 ]                          
 2008bc4:	90 06 a0 08 	add  %i2, 8, %o0                               
 2008bc8:	7f ff e3 c1 	call  2001acc <.urem>                          
 2008bcc:	92 10 00 15 	mov  %l5, %o1                                  
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if (                                                              
 2008bd0:	80 a2 20 00 	cmp  %o0, 0                                    
 2008bd4:	12 80 00 1e 	bne  2008c4c <_Heap_Walk+0x5c0>                
 2008bd8:	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;                
 2008bdc:	c6 06 a0 04 	ld  [ %i2 + 4 ], %g3                           
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( _Heap_Is_used( free_block ) ) {                              
 2008be0:	84 10 00 12 	mov  %l2, %g2                                  
 2008be4:	86 08 ff fe 	and  %g3, -2, %g3                              
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
 2008be8:	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;                 
 2008bec:	c6 00 e0 04 	ld  [ %g3 + 4 ], %g3                           
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( _Heap_Is_used( free_block ) ) {                              
 2008bf0:	80 88 e0 01 	btst  1, %g3                                   
 2008bf4:	12 80 00 0e 	bne  2008c2c <_Heap_Walk+0x5a0>                
 2008bf8:	a4 10 00 1a 	mov  %i2, %l2                                  
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( free_block->prev != prev_block ) {                           
 2008bfc:	d8 06 a0 0c 	ld  [ %i2 + 0xc ], %o4                         
 2008c00:	80 a3 00 02 	cmp  %o4, %g2                                  
 2008c04:	22 bf ff e7 	be,a   2008ba0 <_Heap_Walk+0x514>              
 2008c08:	f4 06 a0 08 	ld  [ %i2 + 8 ], %i2                           
      (*printer)(                                                     
 2008c0c:	90 10 00 19 	mov  %i1, %o0                                  
 2008c10:	92 10 20 01 	mov  1, %o1                                    
 2008c14:	96 10 00 1a 	mov  %i2, %o3                                  
 2008c18:	15 00 80 56 	sethi  %hi(0x2015800), %o2                     
 2008c1c:	9f c7 40 00 	call  %i5                                      
 2008c20:	94 12 a0 18 	or  %o2, 0x18, %o2	! 2015818 <_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;                                                     
 2008c24:	10 bf fe aa 	b  20086cc <_Heap_Walk+0x40>                   
 2008c28:	82 10 20 00 	clr  %g1                                       
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( _Heap_Is_used( free_block ) ) {                              
      (*printer)(                                                     
 2008c2c:	90 10 00 19 	mov  %i1, %o0                                  
 2008c30:	92 10 20 01 	mov  1, %o1                                    
 2008c34:	96 10 00 1a 	mov  %i2, %o3                                  
 2008c38:	15 00 80 55 	sethi  %hi(0x2015400), %o2                     
 2008c3c:	9f c7 40 00 	call  %i5                                      
 2008c40:	94 12 a3 f8 	or  %o2, 0x3f8, %o2	! 20157f8 <_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;                                                     
 2008c44:	10 bf fe a2 	b  20086cc <_Heap_Walk+0x40>                   
 2008c48:	82 10 20 00 	clr  %g1                                       
    }                                                                 
                                                                      
    if (                                                              
      !_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size )
    ) {                                                               
      (*printer)(                                                     
 2008c4c:	90 10 00 19 	mov  %i1, %o0                                  
 2008c50:	92 10 20 01 	mov  1, %o1                                    
 2008c54:	96 10 00 1a 	mov  %i2, %o3                                  
 2008c58:	15 00 80 55 	sethi  %hi(0x2015400), %o2                     
 2008c5c:	9f c7 40 00 	call  %i5                                      
 2008c60:	94 12 a3 c8 	or  %o2, 0x3c8, %o2	! 20157c8 <_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;                                                     
 2008c64:	10 bf fe 9a 	b  20086cc <_Heap_Walk+0x40>                   
 2008c68:	82 10 20 00 	clr  %g1                                       
                                                                      

02006b70 <_IO_Initialize_all_drivers>: * * Output Parameters: NONE */ void _IO_Initialize_all_drivers( void ) {
 2006b70:	9d e3 bf a0 	save  %sp, -96, %sp                            
   rtems_device_major_number major;                                   
                                                                      
   for ( major=0 ; major < _IO_Number_of_drivers ; major ++ )         
 2006b74:	39 00 80 56 	sethi  %hi(0x2015800), %i4                     
 2006b78:	c2 07 21 f4 	ld  [ %i4 + 0x1f4 ], %g1	! 20159f4 <_IO_Number_of_drivers>
 2006b7c:	80 a0 60 00 	cmp  %g1, 0                                    
 2006b80:	02 80 00 0c 	be  2006bb0 <_IO_Initialize_all_drivers+0x40>  <== NEVER TAKEN
 2006b84:	ba 10 20 00 	clr  %i5                                       
 2006b88:	b8 17 21 f4 	or  %i4, 0x1f4, %i4                            
     (void) rtems_io_initialize( major, 0, NULL );                    
 2006b8c:	90 10 00 1d 	mov  %i5, %o0                                  
 2006b90:	92 10 20 00 	clr  %o1                                       
 2006b94:	40 00 14 cd 	call  200bec8 <rtems_io_initialize>            
 2006b98:	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 ++ )         
 2006b9c:	c2 07 00 00 	ld  [ %i4 ], %g1                               
 2006ba0:	ba 07 60 01 	inc  %i5                                       
 2006ba4:	80 a0 40 1d 	cmp  %g1, %i5                                  
 2006ba8:	18 bf ff fa 	bgu  2006b90 <_IO_Initialize_all_drivers+0x20> 
 2006bac:	90 10 00 1d 	mov  %i5, %o0                                  
 2006bb0:	81 c7 e0 08 	ret                                            
 2006bb4:	81 e8 00 00 	restore                                        
                                                                      

02006aa4 <_IO_Manager_initialization>: * workspace. * */ void _IO_Manager_initialization(void) {
 2006aa4:	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;              
 2006aa8:	03 00 80 52 	sethi  %hi(0x2014800), %g1                     
 2006aac:	82 10 62 7c 	or  %g1, 0x27c, %g1	! 2014a7c <Configuration>  
  drivers_in_table  = Configuration.number_of_device_drivers;         
 2006ab0:	f8 00 60 30 	ld  [ %g1 + 0x30 ], %i4                        
  number_of_drivers = Configuration.maximum_drivers;                  
 2006ab4:	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 )                        
 2006ab8:	80 a7 00 19 	cmp  %i4, %i1                                  
 2006abc:	0a 80 00 08 	bcs  2006adc <_IO_Manager_initialization+0x38> 
 2006ac0:	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;                          
 2006ac4:	03 00 80 56 	sethi  %hi(0x2015800), %g1                     
 2006ac8:	fa 20 61 f8 	st  %i5, [ %g1 + 0x1f8 ]	! 20159f8 <_IO_Driver_address_table>
    _IO_Number_of_drivers = number_of_drivers;                        
 2006acc:	03 00 80 56 	sethi  %hi(0x2015800), %g1                     
 2006ad0:	f8 20 61 f4 	st  %i4, [ %g1 + 0x1f4 ]	! 20159f4 <_IO_Number_of_drivers>
    return;                                                           
 2006ad4:	81 c7 e0 08 	ret                                            
 2006ad8:	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 )  
 2006adc:	83 2e 60 03 	sll  %i1, 3, %g1                               
 2006ae0:	b5 2e 60 05 	sll  %i1, 5, %i2                               
 2006ae4:	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(                             
 2006ae8:	40 00 0d 0f 	call  2009f24 <_Workspace_Allocate_or_fatal_error>
 2006aec:	90 10 00 1a 	mov  %i2, %o0                                  
        sizeof( rtems_driver_address_table ) * ( number_of_drivers )  
      );                                                              
  _IO_Number_of_drivers = number_of_drivers;                          
 2006af0:	03 00 80 56 	sethi  %hi(0x2015800), %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 *)           
 2006af4:	37 00 80 56 	sethi  %hi(0x2015800), %i3                     
      _Workspace_Allocate_or_fatal_error(                             
        sizeof( rtems_driver_address_table ) * ( number_of_drivers )  
      );                                                              
  _IO_Number_of_drivers = number_of_drivers;                          
 2006af8:	f2 20 61 f4 	st  %i1, [ %g1 + 0x1f4 ]                       
  /*                                                                  
   *  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 *)           
 2006afc:	d0 26 e1 f8 	st  %o0, [ %i3 + 0x1f8 ]                       
      _Workspace_Allocate_or_fatal_error(                             
        sizeof( rtems_driver_address_table ) * ( number_of_drivers )  
      );                                                              
  _IO_Number_of_drivers = number_of_drivers;                          
                                                                      
  memset(                                                             
 2006b00:	92 10 20 00 	clr  %o1                                       
 2006b04:	40 00 20 3f 	call  200ec00 <memset>                         
 2006b08:	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++ )              
 2006b0c:	80 a7 20 00 	cmp  %i4, 0                                    
 2006b10:	02 bf ff f1 	be  2006ad4 <_IO_Manager_initialization+0x30>  <== NEVER TAKEN
 2006b14:	f6 06 e1 f8 	ld  [ %i3 + 0x1f8 ], %i3                       
 2006b18:	82 10 20 00 	clr  %g1                                       
 2006b1c:	88 10 20 00 	clr  %g4                                       
    _IO_Driver_address_table[index] = driver_table[index];            
 2006b20:	c4 07 40 01 	ld  [ %i5 + %g1 ], %g2                         
 2006b24:	86 07 40 01 	add  %i5, %g1, %g3                             
 2006b28:	c4 26 c0 01 	st  %g2, [ %i3 + %g1 ]                         
 2006b2c:	f4 00 e0 04 	ld  [ %g3 + 4 ], %i2                           
 2006b30:	84 06 c0 01 	add  %i3, %g1, %g2                             
 2006b34:	f4 20 a0 04 	st  %i2, [ %g2 + 4 ]                           
 2006b38:	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++ )              
 2006b3c:	88 01 20 01 	inc  %g4                                       
    _IO_Driver_address_table[index] = driver_table[index];            
 2006b40:	f4 20 a0 08 	st  %i2, [ %g2 + 8 ]                           
 2006b44:	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++ )              
 2006b48:	82 00 60 18 	add  %g1, 0x18, %g1                            
    _IO_Driver_address_table[index] = driver_table[index];            
 2006b4c:	f4 20 a0 0c 	st  %i2, [ %g2 + 0xc ]                         
 2006b50:	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++ )              
 2006b54:	80 a1 00 1c 	cmp  %g4, %i4                                  
    _IO_Driver_address_table[index] = driver_table[index];            
 2006b58:	f4 20 a0 10 	st  %i2, [ %g2 + 0x10 ]                        
 2006b5c:	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++ )              
 2006b60:	12 bf ff f0 	bne  2006b20 <_IO_Manager_initialization+0x7c> 
 2006b64:	c6 20 a0 14 	st  %g3, [ %g2 + 0x14 ]                        
 2006b68:	81 c7 e0 08 	ret                                            
 2006b6c:	81 e8 00 00 	restore                                        
                                                                      

02007864 <_Objects_Allocate>: */ Objects_Control *_Objects_Allocate( Objects_Information *information ) {
 2007864:	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 )                                       
 2007868:	c2 06 20 18 	ld  [ %i0 + 0x18 ], %g1                        
 */                                                                   
                                                                      
Objects_Control *_Objects_Allocate(                                   
  Objects_Information *information                                    
)                                                                     
{                                                                     
 200786c:	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 )                                       
 2007870:	80 a0 60 00 	cmp  %g1, 0                                    
 2007874:	02 80 00 19 	be  20078d8 <_Objects_Allocate+0x74>           <== NEVER TAKEN
 2007878:	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 );
 200787c:	b8 07 60 20 	add  %i5, 0x20, %i4                            
 2007880:	7f ff fd 64 	call  2006e10 <_Chain_Get>                     
 2007884:	90 10 00 1c 	mov  %i4, %o0                                  
                                                                      
  if ( information->auto_extend ) {                                   
 2007888:	c2 0f 60 12 	ldub  [ %i5 + 0x12 ], %g1                      
 200788c:	80 a0 60 00 	cmp  %g1, 0                                    
 2007890:	02 80 00 12 	be  20078d8 <_Objects_Allocate+0x74>           
 2007894:	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 ) {                                              
 2007898:	80 a2 20 00 	cmp  %o0, 0                                    
 200789c:	02 80 00 11 	be  20078e0 <_Objects_Allocate+0x7c>           
 20078a0:	01 00 00 00 	nop                                            
    }                                                                 
                                                                      
    if ( the_object ) {                                               
      uint32_t   block;                                               
                                                                      
      block = (uint32_t) _Objects_Get_index( the_object->id ) -       
 20078a4:	c2 17 60 0a 	lduh  [ %i5 + 0xa ], %g1                       
 20078a8:	d0 16 20 0a 	lduh  [ %i0 + 0xa ], %o0                       
              _Objects_Get_index( information->minimum_id );          
      block /= information->allocation_size;                          
 20078ac:	d2 17 60 14 	lduh  [ %i5 + 0x14 ], %o1                      
 20078b0:	40 00 28 51 	call  20119f4 <.udiv>                          
 20078b4:	90 22 00 01 	sub  %o0, %g1, %o0                             
                                                                      
      information->inactive_per_block[ block ]--;                     
 20078b8:	c2 07 60 30 	ld  [ %i5 + 0x30 ], %g1                        
 20078bc:	91 2a 20 02 	sll  %o0, 2, %o0                               
 20078c0:	c6 00 40 08 	ld  [ %g1 + %o0 ], %g3                         
      information->inactive--;                                        
 20078c4:	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 ]--;                     
 20078c8:	86 00 ff ff 	add  %g3, -1, %g3                              
 20078cc:	c6 20 40 08 	st  %g3, [ %g1 + %o0 ]                         
      information->inactive--;                                        
 20078d0:	82 00 bf ff 	add  %g2, -1, %g1                              
 20078d4:	c2 37 60 2c 	sth  %g1, [ %i5 + 0x2c ]                       
    );                                                                
  }                                                                   
#endif                                                                
                                                                      
  return the_object;                                                  
}                                                                     
 20078d8:	81 c7 e0 08 	ret                                            
 20078dc:	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 );                     
 20078e0:	40 00 00 10 	call  2007920 <_Objects_Extend_information>    
 20078e4:	90 10 00 1d 	mov  %i5, %o0                                  
      the_object =  (Objects_Control *) _Chain_Get( &information->Inactive );
 20078e8:	7f ff fd 4a 	call  2006e10 <_Chain_Get>                     
 20078ec:	90 10 00 1c 	mov  %i4, %o0                                  
    }                                                                 
                                                                      
    if ( the_object ) {                                               
 20078f0:	b0 92 20 00 	orcc  %o0, 0, %i0                              
 20078f4:	32 bf ff ed 	bne,a   20078a8 <_Objects_Allocate+0x44>       
 20078f8:	c2 17 60 0a 	lduh  [ %i5 + 0xa ], %g1                       
    );                                                                
  }                                                                   
#endif                                                                
                                                                      
  return the_object;                                                  
}                                                                     
 20078fc:	81 c7 e0 08 	ret                                            
 2007900:	81 e8 00 00 	restore                                        
                                                                      

02007920 <_Objects_Extend_information>: */ void _Objects_Extend_information( Objects_Information *information ) {
 2007920:	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 )                           
 2007924:	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 );      
 2007928:	f8 16 20 0a 	lduh  [ %i0 + 0xa ], %i4                       
  index_base    = minimum_index;                                      
  block         = 0;                                                  
                                                                      
  /* if ( information->maximum < minimum_index ) */                   
  if ( information->object_blocks == NULL )                           
 200792c:	80 a4 20 00 	cmp  %l0, 0                                    
 2007930:	02 80 00 a6 	be  2007bc8 <_Objects_Extend_information+0x2a8>
 2007934:	f2 16 20 10 	lduh  [ %i0 + 0x10 ], %i1                      
    block_count = 0;                                                  
  else {                                                              
    block_count = information->maximum / information->allocation_size;
 2007938:	f4 16 20 14 	lduh  [ %i0 + 0x14 ], %i2                      
 200793c:	b3 2e 60 10 	sll  %i1, 0x10, %i1                            
 2007940:	92 10 00 1a 	mov  %i2, %o1                                  
 2007944:	40 00 28 2c 	call  20119f4 <.udiv>                          
 2007948:	91 36 60 10 	srl  %i1, 0x10, %o0                            
 200794c:	a7 2a 20 10 	sll  %o0, 0x10, %l3                            
 2007950:	a7 34 e0 10 	srl  %l3, 0x10, %l3                            
                                                                      
    for ( ; block < block_count; block++ ) {                          
 2007954:	80 a4 e0 00 	cmp  %l3, 0                                    
 2007958:	02 80 00 a3 	be  2007be4 <_Objects_Extend_information+0x2c4><== NEVER TAKEN
 200795c:	90 10 00 1a 	mov  %i2, %o0                                  
      if ( information->object_blocks[ block ] == NULL ) {            
 2007960:	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 );      
 2007964:	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 ) {            
 2007968:	80 a0 60 00 	cmp  %g1, 0                                    
 200796c:	12 80 00 08 	bne  200798c <_Objects_Extend_information+0x6c><== ALWAYS TAKEN
 2007970:	b6 10 20 00 	clr  %i3                                       
        do_extend = false;                                            
 2007974:	10 80 00 a0 	b  2007bf4 <_Objects_Extend_information+0x2d4> <== NOT EXECUTED
 2007978:	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 ) {            
 200797c:	c2 04 00 01 	ld  [ %l0 + %g1 ], %g1                         
 2007980:	80 a0 60 00 	cmp  %g1, 0                                    
 2007984:	22 80 00 08 	be,a   20079a4 <_Objects_Extend_information+0x84>
 2007988:	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++ ) {                          
 200798c:	b6 06 e0 01 	inc  %i3                                       
      if ( information->object_blocks[ block ] == NULL ) {            
        do_extend = false;                                            
        break;                                                        
      } else                                                          
        index_base += information->allocation_size;                   
 2007990:	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++ ) {                          
 2007994:	80 a4 c0 1b 	cmp  %l3, %i3                                  
 2007998:	18 bf ff f9 	bgu  200797c <_Objects_Extend_information+0x5c>
 200799c:	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;                                               
 20079a0:	b4 10 20 01 	mov  1, %i2                                    
      } else                                                          
        index_base += information->allocation_size;                   
    }                                                                 
  }                                                                   
                                                                      
  maximum = (uint32_t) information->maximum + information->allocation_size;
 20079a4:	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 ) {                           
 20079a8:	03 00 00 3f 	sethi  %hi(0xfc00), %g1                        
      } else                                                          
        index_base += information->allocation_size;                   
    }                                                                 
  }                                                                   
                                                                      
  maximum = (uint32_t) information->maximum + information->allocation_size;
 20079ac:	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 ) {                           
 20079b0:	82 10 63 ff 	or  %g1, 0x3ff, %g1                            
 20079b4:	80 a6 40 01 	cmp  %i1, %g1                                  
 20079b8:	18 80 00 93 	bgu  2007c04 <_Objects_Extend_information+0x2e4>
 20079bc:	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;      
 20079c0:	40 00 27 d3 	call  201190c <.umul>                          
 20079c4:	d2 06 20 18 	ld  [ %i0 + 0x18 ], %o1                        
  if ( information->auto_extend ) {                                   
 20079c8:	c2 0e 20 12 	ldub  [ %i0 + 0x12 ], %g1                      
 20079cc:	80 a0 60 00 	cmp  %g1, 0                                    
 20079d0:	02 80 00 6a 	be  2007b78 <_Objects_Extend_information+0x258>
 20079d4:	01 00 00 00 	nop                                            
    new_object_block = _Workspace_Allocate( block_size );             
 20079d8:	40 00 09 45 	call  2009eec <_Workspace_Allocate>            
 20079dc:	01 00 00 00 	nop                                            
    if ( !new_object_block )                                          
 20079e0:	a0 92 20 00 	orcc  %o0, 0, %l0                              
 20079e4:	02 80 00 88 	be  2007c04 <_Objects_Extend_information+0x2e4>
 20079e8:	01 00 00 00 	nop                                            
  }                                                                   
                                                                      
  /*                                                                  
   *  Do we need to grow the tables?                                  
   */                                                                 
  if ( do_extend ) {                                                  
 20079ec:	80 8e a0 ff 	btst  0xff, %i2                                
 20079f0:	22 80 00 3f 	be,a   2007aec <_Objects_Extend_information+0x1cc>
 20079f4:	c2 06 20 34 	ld  [ %i0 + 0x34 ], %g1                        
     */                                                               
                                                                      
    /*                                                                
     *  Up the block count and maximum                                
     */                                                               
    block_count++;                                                    
 20079f8:	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 *)) +
 20079fc:	91 2e a0 01 	sll  %i2, 1, %o0                               
 2007a00:	90 02 00 1a 	add  %o0, %i2, %o0                             
          ((maximum + minimum_index) * sizeof(Objects_Control *));    
 2007a04:	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 *)) +
 2007a08:	90 02 00 1c 	add  %o0, %i4, %o0                             
          ((maximum + minimum_index) * sizeof(Objects_Control *));    
    object_blocks = (void**) _Workspace_Allocate( block_size );       
 2007a0c:	40 00 09 38 	call  2009eec <_Workspace_Allocate>            
 2007a10:	91 2a 20 02 	sll  %o0, 2, %o0                               
                                                                      
    if ( !object_blocks ) {                                           
 2007a14:	a2 92 20 00 	orcc  %o0, 0, %l1                              
 2007a18:	02 80 00 79 	be  2007bfc <_Objects_Extend_information+0x2dc>
 2007a1c:	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 ) {                     
 2007a20:	c2 16 20 10 	lduh  [ %i0 + 0x10 ], %g1                      
 2007a24:	80 a7 00 01 	cmp  %i4, %g1                                  
 2007a28:	a4 04 40 1a 	add  %l1, %i2, %l2                             
 2007a2c:	0a 80 00 57 	bcs  2007b88 <_Objects_Extend_information+0x268>
 2007a30:	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++ ) {             
 2007a34:	80 a7 20 00 	cmp  %i4, 0                                    
 2007a38:	02 80 00 07 	be  2007a54 <_Objects_Extend_information+0x134><== NEVER TAKEN
 2007a3c:	82 10 20 00 	clr  %g1                                       
 *    information     - object information table                      
 *                                                                    
 *  Output parameters:  NONE                                          
 */                                                                   
                                                                      
void _Objects_Extend_information(                                     
 2007a40:	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++ ) {             
 2007a44:	82 00 60 01 	inc  %g1                                       
 2007a48:	80 a7 00 01 	cmp  %i4, %g1                                  
 2007a4c:	18 bf ff fd 	bgu  2007a40 <_Objects_Extend_information+0x120><== NEVER TAKEN
 2007a50:	c0 20 80 1a 	clr  [ %g2 + %i2 ]                             
 2007a54:	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 );      
 2007a58:	c6 16 20 14 	lduh  [ %i0 + 0x14 ], %g3                      
    }                                                                 
                                                                      
    /*                                                                
     *  Initialise the new entries in the table.                      
     */                                                               
    object_blocks[block_count] = NULL;                                
 2007a5c:	c0 24 40 13 	clr  [ %l1 + %l3 ]                             
    inactive_per_block[block_count] = 0;                              
                                                                      
    for ( index=index_base ;                                          
          index < ( information->allocation_size + index_base );      
 2007a60:	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 ;                                          
 2007a64:	80 a7 40 03 	cmp  %i5, %g3                                  
 2007a68:	1a 80 00 0a 	bcc  2007a90 <_Objects_Extend_information+0x170><== NEVER TAKEN
 2007a6c:	c0 24 80 13 	clr  [ %l2 + %l3 ]                             
 *    information     - object information table                      
 *                                                                    
 *  Output parameters:  NONE                                          
 */                                                                   
                                                                      
void _Objects_Extend_information(                                     
 2007a70:	83 2f 60 02 	sll  %i5, 2, %g1                               
 2007a74:	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 ;                                          
 2007a78:	82 06 80 01 	add  %i2, %g1, %g1                             
          index < ( information->allocation_size + index_base );      
          index++ ) {                                                 
      local_table[ index ] = NULL;                                    
 2007a7c:	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++ ) {                                                 
 2007a80:	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 ;                                          
 2007a84:	80 a0 c0 02 	cmp  %g3, %g2                                  
 2007a88:	18 bf ff fd 	bgu  2007a7c <_Objects_Extend_information+0x15c>
 2007a8c:	82 00 60 04 	add  %g1, 4, %g1                               
          index < ( information->allocation_size + index_base );      
          index++ ) {                                                 
      local_table[ index ] = NULL;                                    
    }                                                                 
                                                                      
    _ISR_Disable( level );                                            
 2007a90:	7f ff e9 30 	call  2001f50 <sparc_disable_interrupts>       
 2007a94:	01 00 00 00 	nop                                            
  uint32_t         the_class,                                         
  uint32_t         node,                                              
  uint32_t         index                                              
)                                                                     
{                                                                     
  return (( (Objects_Id) the_api )   << OBJECTS_API_START_BIT)   |    
 2007a98:	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(                      
 2007a9c:	c4 16 20 04 	lduh  [ %i0 + 4 ], %g2                         
      local_table[ index ] = NULL;                                    
    }                                                                 
                                                                      
    _ISR_Disable( level );                                            
                                                                      
    old_tables = information->object_blocks;                          
 2007aa0:	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;                 
 2007aa4:	f2 36 20 10 	sth  %i1, [ %i0 + 0x10 ]                       
 2007aa8:	87 28 e0 18 	sll  %g3, 0x18, %g3                            
         (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |    
 2007aac:	85 28 a0 1b 	sll  %g2, 0x1b, %g2                            
                                                                      
    _ISR_Disable( level );                                            
                                                                      
    old_tables = information->object_blocks;                          
                                                                      
    information->object_blocks = object_blocks;                       
 2007ab0:	e2 26 20 34 	st  %l1, [ %i0 + 0x34 ]                        
    information->inactive_per_block = inactive_per_block;             
 2007ab4:	e4 26 20 30 	st  %l2, [ %i0 + 0x30 ]                        
    information->local_table = local_table;                           
 2007ab8:	f4 26 20 1c 	st  %i2, [ %i0 + 0x1c ]                        
    information->maximum = (Objects_Maximum) maximum;                 
    information->maximum_id = _Objects_Build_id(                      
 2007abc:	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)   |    
 2007ac0:	03 00 00 40 	sethi  %hi(0x10000), %g1                       
 2007ac4:	b3 36 60 10 	srl  %i1, 0x10, %i1                            
 2007ac8:	82 10 c0 01 	or  %g3, %g1, %g1                              
         (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |    
 2007acc:	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)   |    
 2007ad0:	82 10 40 19 	or  %g1, %i1, %g1                              
 2007ad4:	c2 26 20 0c 	st  %g1, [ %i0 + 0xc ]                         
        information->the_class,                                       
        _Objects_Local_node,                                          
        information->maximum                                          
      );                                                              
                                                                      
    _ISR_Enable( level );                                             
 2007ad8:	7f ff e9 22 	call  2001f60 <sparc_enable_interrupts>        
 2007adc:	01 00 00 00 	nop                                            
                                                                      
    _Workspace_Free( old_tables );                                    
 2007ae0:	40 00 09 0b 	call  2009f0c <_Workspace_Free>                
 2007ae4:	90 10 00 1c 	mov  %i4, %o0                                  
  }                                                                   
                                                                      
  /*                                                                  
   *  Assign the new object block to the object block table.          
   */                                                                 
  information->object_blocks[ block ] = new_object_block;             
 2007ae8:	c2 06 20 34 	ld  [ %i0 + 0x34 ], %g1                        
 2007aec:	b7 2e e0 02 	sll  %i3, 2, %i3                               
 2007af0:	e0 20 40 1b 	st  %l0, [ %g1 + %i3 ]                         
                                                                      
  /*                                                                  
   *  Initialize objects .. add to a local chain first.               
   */                                                                 
  _Chain_Initialize(                                                  
 2007af4:	c2 06 20 34 	ld  [ %i0 + 0x34 ], %g1                        
 2007af8:	d4 16 20 14 	lduh  [ %i0 + 0x14 ], %o2                      
 2007afc:	d2 00 40 1b 	ld  [ %g1 + %i3 ], %o1                         
 2007b00:	d6 06 20 18 	ld  [ %i0 + 0x18 ], %o3                        
 2007b04:	90 07 bf f4 	add  %fp, -12, %o0                             
 2007b08:	40 00 11 08 	call  200bf28 <_Chain_Initialize>              
 2007b0c:	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 ) {
 2007b10:	10 80 00 0d 	b  2007b44 <_Objects_Extend_information+0x224> 
 2007b14:	b4 06 20 20 	add  %i0, 0x20, %i2                            
                                                                      
    the_object->id = _Objects_Build_id(                               
 2007b18:	c6 16 20 04 	lduh  [ %i0 + 4 ], %g3                         
 2007b1c:	85 28 a0 18 	sll  %g2, 0x18, %g2                            
         (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |    
 2007b20:	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)   |    
 2007b24:	84 10 80 1c 	or  %g2, %i4, %g2                              
         (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |    
 2007b28:	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)   |    
 2007b2c:	84 10 80 1d 	or  %g2, %i5, %g2                              
        information->the_class,                                       
        _Objects_Local_node,                                          
        index                                                         
      );                                                              
                                                                      
    _Chain_Append( &information->Inactive, &the_object->Node );       
 2007b30:	90 10 00 1a 	mov  %i2, %o0                                  
 2007b34:	92 10 00 01 	mov  %g1, %o1                                  
                                                                      
    index++;                                                          
 2007b38:	ba 07 60 01 	inc  %i5                                       
        information->the_class,                                       
        _Objects_Local_node,                                          
        index                                                         
      );                                                              
                                                                      
    _Chain_Append( &information->Inactive, &the_object->Node );       
 2007b3c:	7f ff fc a1 	call  2006dc0 <_Chain_Append>                  
 2007b40:	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 ) {
 2007b44:	7f ff fc b3 	call  2006e10 <_Chain_Get>                     
 2007b48:	90 07 bf f4 	add  %fp, -12, %o0                             
 2007b4c:	82 92 20 00 	orcc  %o0, 0, %g1                              
 2007b50:	32 bf ff f2 	bne,a   2007b18 <_Objects_Extend_information+0x1f8>
 2007b54:	c4 06 00 00 	ld  [ %i0 ], %g2                               
    _Chain_Append( &information->Inactive, &the_object->Node );       
                                                                      
    index++;                                                          
  }                                                                   
                                                                      
  information->inactive_per_block[ block ] = information->allocation_size;
 2007b58:	c8 16 20 14 	lduh  [ %i0 + 0x14 ], %g4                      
 2007b5c:	c6 06 20 30 	ld  [ %i0 + 0x30 ], %g3                        
  information->inactive =                                             
    (Objects_Maximum)(information->inactive + information->allocation_size);
 2007b60:	c4 16 20 2c 	lduh  [ %i0 + 0x2c ], %g2                      
    _Chain_Append( &information->Inactive, &the_object->Node );       
                                                                      
    index++;                                                          
  }                                                                   
                                                                      
  information->inactive_per_block[ block ] = information->allocation_size;
 2007b64:	c8 20 c0 1b 	st  %g4, [ %g3 + %i3 ]                         
  information->inactive =                                             
    (Objects_Maximum)(information->inactive + information->allocation_size);
 2007b68:	82 00 80 04 	add  %g2, %g4, %g1                             
                                                                      
    index++;                                                          
  }                                                                   
                                                                      
  information->inactive_per_block[ block ] = information->allocation_size;
  information->inactive =                                             
 2007b6c:	c2 36 20 2c 	sth  %g1, [ %i0 + 0x2c ]                       
 2007b70:	81 c7 e0 08 	ret                                            
 2007b74:	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 );
 2007b78:	40 00 08 eb 	call  2009f24 <_Workspace_Allocate_or_fatal_error>
 2007b7c:	01 00 00 00 	nop                                            
 2007b80:	10 bf ff 9b 	b  20079ec <_Objects_Extend_information+0xcc>  
 2007b84:	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,                                          
 2007b88:	d2 06 20 34 	ld  [ %i0 + 0x34 ], %o1                        
              information->object_blocks,                             
              block_count * sizeof(void*) );                          
 2007b8c:	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,                                          
 2007b90:	40 00 1b e0 	call  200eb10 <memcpy>                         
 2007b94:	94 10 00 13 	mov  %l3, %o2                                  
              information->object_blocks,                             
              block_count * sizeof(void*) );                          
      memcpy( inactive_per_block,                                     
 2007b98:	d2 06 20 30 	ld  [ %i0 + 0x30 ], %o1                        
 2007b9c:	94 10 00 13 	mov  %l3, %o2                                  
 2007ba0:	40 00 1b dc 	call  200eb10 <memcpy>                         
 2007ba4:	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 *) );
 2007ba8:	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,                                            
 2007bac:	d2 06 20 1c 	ld  [ %i0 + 0x1c ], %o1                        
              information->local_table,                               
              (information->maximum + minimum_index) * sizeof(Objects_Control *) );
 2007bb0:	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,                                            
 2007bb4:	90 10 00 1a 	mov  %i2, %o0                                  
 2007bb8:	40 00 1b d6 	call  200eb10 <memcpy>                         
 2007bbc:	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 );      
 2007bc0:	10 bf ff a7 	b  2007a5c <_Objects_Extend_information+0x13c> 
 2007bc4:	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 )                           
 2007bc8:	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 );      
 2007bcc:	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;                                               
 2007bd0:	b4 10 20 01 	mov  1, %i2                                    
  minimum_index = _Objects_Get_index( information->minimum_id );      
  index_base    = minimum_index;                                      
  block         = 0;                                                  
 2007bd4:	b6 10 20 00 	clr  %i3                                       
                                                                      
  /* if ( information->maximum < minimum_index ) */                   
  if ( information->object_blocks == NULL )                           
    block_count = 0;                                                  
 2007bd8:	a6 10 20 00 	clr  %l3                                       
 2007bdc:	10 bf ff 72 	b  20079a4 <_Objects_Extend_information+0x84>  
 2007be0:	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 );      
 2007be4:	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;                                               
 2007be8:	b4 10 20 01 	mov  1, %i2                                    <== NOT EXECUTED
  minimum_index = _Objects_Get_index( information->minimum_id );      
  index_base    = minimum_index;                                      
  block         = 0;                                                  
 2007bec:	10 bf ff 6e 	b  20079a4 <_Objects_Extend_information+0x84>  <== NOT EXECUTED
 2007bf0:	b6 10 20 00 	clr  %i3                                       <== NOT EXECUTED
 2007bf4:	10 bf ff 6c 	b  20079a4 <_Objects_Extend_information+0x84>  <== NOT EXECUTED
 2007bf8:	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 );                            
 2007bfc:	40 00 08 c4 	call  2009f0c <_Workspace_Free>                
 2007c00:	90 10 00 10 	mov  %l0, %o0                                  
      return;                                                         
 2007c04:	81 c7 e0 08 	ret                                            
 2007c08:	81 e8 00 00 	restore                                        
                                                                      

02007cb0 <_Objects_Get_information>: Objects_Information *_Objects_Get_information( Objects_APIs the_api, uint16_t the_class ) {
 2007cb0:	9d e3 bf a0 	save  %sp, -96, %sp                            
  Objects_Information *info;                                          
  int the_class_api_maximum;                                          
                                                                      
  if ( !the_class )                                                   
 2007cb4:	80 a6 60 00 	cmp  %i1, 0                                    
 2007cb8:	02 80 00 17 	be  2007d14 <_Objects_Get_information+0x64>    
 2007cbc:	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 );      
 2007cc0:	40 00 12 22 	call  200c548 <_Objects_API_maximum_class>     
 2007cc4:	90 10 00 18 	mov  %i0, %o0                                  
  if ( the_class_api_maximum == 0 )                                   
 2007cc8:	80 a2 20 00 	cmp  %o0, 0                                    
 2007ccc:	02 80 00 12 	be  2007d14 <_Objects_Get_information+0x64>    
 2007cd0:	80 a2 00 19 	cmp  %o0, %i1                                  
    return NULL;                                                      
                                                                      
  if ( the_class > (uint32_t) the_class_api_maximum )                 
 2007cd4:	0a 80 00 10 	bcs  2007d14 <_Objects_Get_information+0x64>   
 2007cd8:	03 00 80 55 	sethi  %hi(0x2015400), %g1                     
    return NULL;                                                      
                                                                      
  if ( !_Objects_Information_table[ the_api ] )                       
 2007cdc:	b1 2e 20 02 	sll  %i0, 2, %i0                               
 2007ce0:	82 10 62 98 	or  %g1, 0x298, %g1                            
 2007ce4:	c2 00 40 18 	ld  [ %g1 + %i0 ], %g1                         
 2007ce8:	80 a0 60 00 	cmp  %g1, 0                                    
 2007cec:	02 80 00 0a 	be  2007d14 <_Objects_Get_information+0x64>    <== NEVER TAKEN
 2007cf0:	b3 2e 60 02 	sll  %i1, 2, %i1                               
    return NULL;                                                      
                                                                      
  info = _Objects_Information_table[ the_api ][ the_class ];          
 2007cf4:	fa 00 40 19 	ld  [ %g1 + %i1 ], %i5                         
  if ( !info )                                                        
 2007cf8:	80 a7 60 00 	cmp  %i5, 0                                    
 2007cfc:	02 80 00 06 	be  2007d14 <_Objects_Get_information+0x64>    <== NEVER TAKEN
 2007d00:	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 )                                         
 2007d04:	c2 17 60 10 	lduh  [ %i5 + 0x10 ], %g1                      
      return NULL;                                                    
 2007d08:	80 a0 00 01 	cmp  %g0, %g1                                  
 2007d0c:	82 60 20 00 	subx  %g0, 0, %g1                              
 2007d10:	ba 0f 40 01 	and  %i5, %g1, %i5                             
  #endif                                                              
                                                                      
  return info;                                                        
}                                                                     
 2007d14:	81 c7 e0 08 	ret                                            
 2007d18:	91 e8 00 1d 	restore  %g0, %i5, %o0                         
                                                                      

02009a58 <_Objects_Get_name_as_string>: char *_Objects_Get_name_as_string( Objects_Id id, size_t length, char *name ) {
 2009a58:	9d e3 bf 90 	save  %sp, -112, %sp                           
  char                   lname[5];                                    
  Objects_Control       *the_object;                                  
  Objects_Locations      location;                                    
  Objects_Id             tmpId;                                       
                                                                      
  if ( length == 0 )                                                  
 2009a5c:	80 a6 60 00 	cmp  %i1, 0                                    
 2009a60:	02 80 00 3c 	be  2009b50 <_Objects_Get_name_as_string+0xf8> 
 2009a64:	80 a6 a0 00 	cmp  %i2, 0                                    
    return NULL;                                                      
                                                                      
  if ( name == NULL )                                                 
 2009a68:	02 80 00 35 	be  2009b3c <_Objects_Get_name_as_string+0xe4> 
 2009a6c:	80 a6 20 00 	cmp  %i0, 0                                    
    return NULL;                                                      
                                                                      
  tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
 2009a70:	02 80 00 35 	be  2009b44 <_Objects_Get_name_as_string+0xec> 
 2009a74:	03 00 80 7b 	sethi  %hi(0x201ec00), %g1                     
                                                                      
  information = _Objects_Get_information_id( tmpId );                 
 2009a78:	7f ff ff ba 	call  2009960 <_Objects_Get_information_id>    
 2009a7c:	90 10 00 18 	mov  %i0, %o0                                  
  if ( !information )                                                 
 2009a80:	80 a2 20 00 	cmp  %o0, 0                                    
 2009a84:	02 80 00 33 	be  2009b50 <_Objects_Get_name_as_string+0xf8> 
 2009a88:	92 10 00 18 	mov  %i0, %o1                                  
    return NULL;                                                      
                                                                      
  the_object = _Objects_Get( information, tmpId, &location );         
 2009a8c:	40 00 00 34 	call  2009b5c <_Objects_Get>                   
 2009a90:	94 07 bf fc 	add  %fp, -4, %o2                              
  switch ( location ) {                                               
 2009a94:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 2009a98:	80 a0 60 00 	cmp  %g1, 0                                    
 2009a9c:	32 80 00 2e 	bne,a   2009b54 <_Objects_Get_name_as_string+0xfc>
 2009aa0:	b4 10 20 00 	clr  %i2                                       
        if ( information->is_string ) {                               
          s = the_object->name.name_p;                                
        } else                                                        
      #endif                                                          
      {                                                               
        uint32_t  u32_name = (uint32_t) the_object->name.name_u32;    
 2009aa4:	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';                                            
 2009aa8:	c0 2f bf f4 	clrb  [ %fp + -12 ]                            
        } else                                                        
      #endif                                                          
      {                                                               
        uint32_t  u32_name = (uint32_t) the_object->name.name_u32;    
                                                                      
        lname[ 0 ] = (u32_name >> 24) & 0xff;                         
 2009aac:	85 30 60 18 	srl  %g1, 0x18, %g2                            
        lname[ 1 ] = (u32_name >> 16) & 0xff;                         
        lname[ 2 ] = (u32_name >>  8) & 0xff;                         
 2009ab0:	87 30 60 08 	srl  %g1, 8, %g3                               
      #endif                                                          
      {                                                               
        uint32_t  u32_name = (uint32_t) the_object->name.name_u32;    
                                                                      
        lname[ 0 ] = (u32_name >> 24) & 0xff;                         
        lname[ 1 ] = (u32_name >> 16) & 0xff;                         
 2009ab4:	89 30 60 10 	srl  %g1, 0x10, %g4                            
        lname[ 2 ] = (u32_name >>  8) & 0xff;                         
 2009ab8:	c6 2f bf f2 	stb  %g3, [ %fp + -14 ]                        
        lname[ 3 ] = (u32_name >>  0) & 0xff;                         
 2009abc:	c2 2f bf f3 	stb  %g1, [ %fp + -13 ]                        
        } else                                                        
      #endif                                                          
      {                                                               
        uint32_t  u32_name = (uint32_t) the_object->name.name_u32;    
                                                                      
        lname[ 0 ] = (u32_name >> 24) & 0xff;                         
 2009ac0:	c4 2f bf f0 	stb  %g2, [ %fp + -16 ]                        
        lname[ 1 ] = (u32_name >> 16) & 0xff;                         
 2009ac4:	c8 2f bf f1 	stb  %g4, [ %fp + -15 ]                        
        } else                                                        
      #endif                                                          
      {                                                               
        uint32_t  u32_name = (uint32_t) the_object->name.name_u32;    
                                                                      
        lname[ 0 ] = (u32_name >> 24) & 0xff;                         
 2009ac8:	86 10 00 02 	mov  %g2, %g3                                  
        s = lname;                                                    
      }                                                               
                                                                      
      d = name;                                                       
      if ( s ) {                                                      
        for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {            
 2009acc:	b2 86 7f ff 	addcc  %i1, -1, %i1                            
 2009ad0:	02 80 00 19 	be  2009b34 <_Objects_Get_name_as_string+0xdc> <== NEVER TAKEN
 2009ad4:	82 10 00 1a 	mov  %i2, %g1                                  
 2009ad8:	80 a0 a0 00 	cmp  %g2, 0                                    
 2009adc:	02 80 00 16 	be  2009b34 <_Objects_Get_name_as_string+0xdc> 
 2009ae0:	1f 00 80 77 	sethi  %hi(0x201dc00), %o7                     
        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';                                            
        s = lname;                                                    
 2009ae4:	84 07 bf f0 	add  %fp, -16, %g2                             
 *  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(                                    
 2009ae8:	b2 06 80 19 	add  %i2, %i1, %i1                             
 2009aec:	10 80 00 05 	b  2009b00 <_Objects_Get_name_as_string+0xa8>  
 2009af0:	9e 13 e1 bc 	or  %o7, 0x1bc, %o7                            
        s = lname;                                                    
      }                                                               
                                                                      
      d = name;                                                       
      if ( s ) {                                                      
        for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {            
 2009af4:	80 a1 20 00 	cmp  %g4, 0                                    
 2009af8:	02 80 00 0f 	be  2009b34 <_Objects_Get_name_as_string+0xdc> 
 2009afc:	c6 08 80 00 	ldub  [ %g2 ], %g3                             
          *d = (isprint((unsigned char)*s)) ? *s : '*';               
 2009b00:	f0 03 c0 00 	ld  [ %o7 ], %i0                               
 2009b04:	88 08 e0 ff 	and  %g3, 0xff, %g4                            
 2009b08:	88 06 00 04 	add  %i0, %g4, %g4                             
 2009b0c:	c8 49 20 01 	ldsb  [ %g4 + 1 ], %g4                         
 2009b10:	80 89 20 97 	btst  0x97, %g4                                
 2009b14:	12 80 00 03 	bne  2009b20 <_Objects_Get_name_as_string+0xc8>
 2009b18:	84 00 a0 01 	inc  %g2                                       
 2009b1c:	86 10 20 2a 	mov  0x2a, %g3                                 
 2009b20:	c6 28 40 00 	stb  %g3, [ %g1 ]                              
        s = lname;                                                    
      }                                                               
                                                                      
      d = name;                                                       
      if ( s ) {                                                      
        for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {            
 2009b24:	82 00 60 01 	inc  %g1                                       
 2009b28:	80 a0 40 19 	cmp  %g1, %i1                                  
 2009b2c:	32 bf ff f2 	bne,a   2009af4 <_Objects_Get_name_as_string+0x9c>
 2009b30:	c8 48 80 00 	ldsb  [ %g2 ], %g4                             
          *d = (isprint((unsigned char)*s)) ? *s : '*';               
        }                                                             
      }                                                               
      *d = '\0';                                                      
                                                                      
      _Thread_Enable_dispatch();                                      
 2009b34:	40 00 03 8a 	call  200a95c <_Thread_Enable_dispatch>        
 2009b38:	c0 28 40 00 	clrb  [ %g1 ]                                  
      return name;                                                    
  }                                                                   
  return NULL;                  /* unreachable path */                
}                                                                     
 2009b3c:	81 c7 e0 08 	ret                                            
 2009b40:	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;
 2009b44:	c2 00 61 58 	ld  [ %g1 + 0x158 ], %g1                       
 2009b48:	10 bf ff cc 	b  2009a78 <_Objects_Get_name_as_string+0x20>  
 2009b4c:	f0 00 60 08 	ld  [ %g1 + 8 ], %i0                           
#if defined(RTEMS_MULTIPROCESSING)                                    
    case OBJECTS_REMOTE:                                              
      /* not supported */                                             
#endif                                                                
    case OBJECTS_ERROR:                                               
      return NULL;                                                    
 2009b50:	b4 10 20 00 	clr  %i2                                       
                                                                      
      _Thread_Enable_dispatch();                                      
      return name;                                                    
  }                                                                   
  return NULL;                  /* unreachable path */                
}                                                                     
 2009b54:	81 c7 e0 08 	ret                                            
 2009b58:	91 e8 00 1a 	restore  %g0, %i2, %o0                         
                                                                      

02007f2c <_Objects_Get_next>: Objects_Information *information, Objects_Id id, Objects_Locations *location_p, Objects_Id *next_id_p ) {
 2007f2c:	9d e3 bf a0 	save  %sp, -96, %sp                            
    Objects_Control *object;                                          
    Objects_Id       next_id;                                         
                                                                      
    if ( !information )                                               
      return NULL;                                                    
 2007f30:	90 10 20 00 	clr  %o0                                       
)                                                                     
{                                                                     
    Objects_Control *object;                                          
    Objects_Id       next_id;                                         
                                                                      
    if ( !information )                                               
 2007f34:	80 a6 20 00 	cmp  %i0, 0                                    
 2007f38:	02 80 00 19 	be  2007f9c <_Objects_Get_next+0x70>           
 2007f3c:	ba 10 00 18 	mov  %i0, %i5                                  
      return NULL;                                                    
                                                                      
    if ( !location_p )                                                
 2007f40:	80 a6 a0 00 	cmp  %i2, 0                                    
 2007f44:	02 80 00 16 	be  2007f9c <_Objects_Get_next+0x70>           
 2007f48:	80 a6 e0 00 	cmp  %i3, 0                                    
      return NULL;                                                    
                                                                      
    if ( !next_id_p )                                                 
 2007f4c:	02 80 00 14 	be  2007f9c <_Objects_Get_next+0x70>           
 2007f50:	83 2e 60 10 	sll  %i1, 0x10, %g1                            
      return NULL;                                                    
                                                                      
    if (_Objects_Get_index(id) == OBJECTS_ID_INITIAL_INDEX)           
 2007f54:	80 a0 60 00 	cmp  %g1, 0                                    
 2007f58:	22 80 00 13 	be,a   2007fa4 <_Objects_Get_next+0x78>        
 2007f5c:	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)       
 2007f60:	c4 17 60 10 	lduh  [ %i5 + 0x10 ], %g2                      
 2007f64:	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);      
 2007f68:	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)       
 2007f6c:	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);      
 2007f70:	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)       
 2007f74:	80 a0 80 01 	cmp  %g2, %g1                                  
 2007f78:	0a 80 00 13 	bcs  2007fc4 <_Objects_Get_next+0x98>          
 2007f7c:	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);      
 2007f80:	40 00 00 18 	call  2007fe0 <_Objects_Get>                   
 2007f84:	b2 06 60 01 	inc  %i1                                       
                                                                      
        next_id++;                                                    
                                                                      
    } while (*location_p != OBJECTS_LOCAL);                           
 2007f88:	c2 06 80 00 	ld  [ %i2 ], %g1                               
 2007f8c:	80 a0 60 00 	cmp  %g1, 0                                    
 2007f90:	32 bf ff f5 	bne,a   2007f64 <_Objects_Get_next+0x38>       
 2007f94:	c4 17 60 10 	lduh  [ %i5 + 0x10 ], %g2                      
                                                                      
    *next_id_p = next_id;                                             
 2007f98:	f2 26 c0 00 	st  %i1, [ %i3 ]                               
    return object;                                                    
                                                                      
final:                                                                
    *next_id_p = OBJECTS_ID_FINAL;                                    
    return 0;                                                         
}                                                                     
 2007f9c:	81 c7 e0 08 	ret                                            
 2007fa0:	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)       
 2007fa4:	c4 17 60 10 	lduh  [ %i5 + 0x10 ], %g2                      
 2007fa8:	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);      
 2007fac:	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)       
 2007fb0:	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);      
 2007fb4:	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)       
 2007fb8:	80 a0 80 01 	cmp  %g2, %g1                                  
 2007fbc:	1a bf ff f1 	bcc  2007f80 <_Objects_Get_next+0x54>          <== ALWAYS TAKEN
 2007fc0:	94 10 00 1a 	mov  %i2, %o2                                  
        {                                                             
            *location_p = OBJECTS_ERROR;                              
 2007fc4:	82 10 20 01 	mov  1, %g1                                    
 2007fc8:	c2 26 80 00 	st  %g1, [ %i2 ]                               
    *next_id_p = next_id;                                             
    return object;                                                    
                                                                      
final:                                                                
    *next_id_p = OBJECTS_ID_FINAL;                                    
    return 0;                                                         
 2007fcc:	90 10 20 00 	clr  %o0                                       
                                                                      
    *next_id_p = next_id;                                             
    return object;                                                    
                                                                      
final:                                                                
    *next_id_p = OBJECTS_ID_FINAL;                                    
 2007fd0:	82 10 3f ff 	mov  -1, %g1                                   
 2007fd4:	c2 26 c0 00 	st  %g1, [ %i3 ]                               
    return 0;                                                         
}                                                                     
 2007fd8:	81 c7 e0 08 	ret                                            
 2007fdc:	91 e8 00 08 	restore  %g0, %o0, %o0                         
                                                                      

02009540 <_Objects_Id_to_name>: */ Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( Objects_Id id, Objects_Name *name ) {
 2009540:	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;
 2009544:	80 a6 20 00 	cmp  %i0, 0                                    
 2009548:	12 80 00 06 	bne  2009560 <_Objects_Id_to_name+0x20>        
 200954c:	83 36 20 18 	srl  %i0, 0x18, %g1                            
 2009550:	03 00 80 76 	sethi  %hi(0x201d800), %g1                     
 2009554:	c2 00 62 38 	ld  [ %g1 + 0x238 ], %g1	! 201da38 <_Per_CPU_Information+0xc>
 2009558:	f0 00 60 08 	ld  [ %g1 + 8 ], %i0                           
 200955c:	83 36 20 18 	srl  %i0, 0x18, %g1                            
 2009560:	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 )                      
 2009564:	84 00 7f ff 	add  %g1, -1, %g2                              
 2009568:	80 a0 a0 02 	cmp  %g2, 2                                    
 200956c:	18 80 00 17 	bgu  20095c8 <_Objects_Id_to_name+0x88>        
 2009570:	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 ] )                       
 2009574:	83 28 60 02 	sll  %g1, 2, %g1                               
 2009578:	05 00 80 75 	sethi  %hi(0x201d400), %g2                     
 200957c:	84 10 a3 68 	or  %g2, 0x368, %g2	! 201d768 <_Objects_Information_table>
 2009580:	c2 00 80 01 	ld  [ %g2 + %g1 ], %g1                         
 2009584:	80 a0 60 00 	cmp  %g1, 0                                    
 2009588:	02 80 00 10 	be  20095c8 <_Objects_Id_to_name+0x88>         
 200958c:	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 ];   
 2009590:	85 28 a0 02 	sll  %g2, 2, %g2                               
 2009594:	d0 00 40 02 	ld  [ %g1 + %g2 ], %o0                         
  if ( !information )                                                 
 2009598:	80 a2 20 00 	cmp  %o0, 0                                    
 200959c:	02 80 00 0b 	be  20095c8 <_Objects_Id_to_name+0x88>         <== NEVER TAKEN
 20095a0:	92 10 00 18 	mov  %i0, %o1                                  
  #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 ); 
 20095a4:	7f ff ff ca 	call  20094cc <_Objects_Get>                   
 20095a8:	94 07 bf fc 	add  %fp, -4, %o2                              
  if ( !the_object )                                                  
 20095ac:	80 a2 20 00 	cmp  %o0, 0                                    
 20095b0:	02 80 00 06 	be  20095c8 <_Objects_Id_to_name+0x88>         
 20095b4:	01 00 00 00 	nop                                            
    return OBJECTS_INVALID_ID;                                        
                                                                      
  *name = the_object->name;                                           
 20095b8:	c2 02 20 0c 	ld  [ %o0 + 0xc ], %g1                         
  _Thread_Enable_dispatch();                                          
  return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;                        
 20095bc:	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();                                          
 20095c0:	40 00 03 93 	call  200a40c <_Thread_Enable_dispatch>        
 20095c4:	c2 26 40 00 	st  %g1, [ %i1 ]                               
  return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;                        
}                                                                     
 20095c8:	81 c7 e0 08 	ret                                            
 20095cc:	91 e8 00 1d 	restore  %g0, %i5, %o0                         
                                                                      

02007f94 <_Objects_Shrink_information>: */ void _Objects_Shrink_information( Objects_Information *information ) {
 2007f94:	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 );         
 2007f98:	fa 16 20 0a 	lduh  [ %i0 + 0xa ], %i5                       
  block_count = (information->maximum - index_base) /                 
 2007f9c:	f8 16 20 14 	lduh  [ %i0 + 0x14 ], %i4                      
 2007fa0:	d0 16 20 10 	lduh  [ %i0 + 0x10 ], %o0                      
 2007fa4:	92 10 00 1c 	mov  %i4, %o1                                  
 2007fa8:	40 00 26 93 	call  20119f4 <.udiv>                          
 2007fac:	90 22 00 1d 	sub  %o0, %i5, %o0                             
                 information->allocation_size;                        
                                                                      
  for ( block = 0; block < block_count; block++ ) {                   
 2007fb0:	80 a2 20 00 	cmp  %o0, 0                                    
 2007fb4:	02 80 00 34 	be  2008084 <_Objects_Shrink_information+0xf0> <== NEVER TAKEN
 2007fb8:	01 00 00 00 	nop                                            
    if ( information->inactive_per_block[ block ] ==                  
 2007fbc:	c8 06 20 30 	ld  [ %i0 + 0x30 ], %g4                        
 2007fc0:	c2 01 00 00 	ld  [ %g4 ], %g1                               
 2007fc4:	80 a7 00 01 	cmp  %i4, %g1                                  
 2007fc8:	02 80 00 0f 	be  2008004 <_Objects_Shrink_information+0x70> <== NEVER TAKEN
 2007fcc:	82 10 20 00 	clr  %g1                                       
 2007fd0:	10 80 00 07 	b  2007fec <_Objects_Shrink_information+0x58>  
 2007fd4:	b6 10 20 04 	mov  4, %i3                                    
 2007fd8:	86 06 e0 04 	add  %i3, 4, %g3                               
 2007fdc:	80 a7 00 02 	cmp  %i4, %g2                                  
 2007fe0:	02 80 00 0a 	be  2008008 <_Objects_Shrink_information+0x74> 
 2007fe4:	ba 07 40 1c 	add  %i5, %i4, %i5                             
 2007fe8:	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++ ) {                   
 2007fec:	82 00 60 01 	inc  %g1                                       
 2007ff0:	80 a0 40 08 	cmp  %g1, %o0                                  
 2007ff4:	32 bf ff f9 	bne,a   2007fd8 <_Objects_Shrink_information+0x44>
 2007ff8:	c4 01 00 1b 	ld  [ %g4 + %i3 ], %g2                         
 2007ffc:	81 c7 e0 08 	ret                                            
 2008000:	81 e8 00 00 	restore                                        
    if ( information->inactive_per_block[ block ] ==                  
 2008004:	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;                              
 2008008:	10 80 00 06 	b  2008020 <_Objects_Shrink_information+0x8c>  
 200800c:	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 );                                          
 2008010:	80 a7 20 00 	cmp  %i4, 0                                    
 2008014:	22 80 00 12 	be,a   200805c <_Objects_Shrink_information+0xc8>
 2008018:	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;      
 200801c:	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 );                
 2008020:	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) &&                                 
 2008024:	80 a0 40 1d 	cmp  %g1, %i5                                  
 2008028:	0a bf ff fa 	bcs  2008010 <_Objects_Shrink_information+0x7c>
 200802c:	f8 02 00 00 	ld  [ %o0 ], %i4                               
             (index < (index_base + information->allocation_size))) { 
 2008030:	c4 16 20 14 	lduh  [ %i0 + 0x14 ], %g2                      
 2008034:	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) &&                                 
 2008038:	80 a0 40 02 	cmp  %g1, %g2                                  
 200803c:	1a bf ff f6 	bcc  2008014 <_Objects_Shrink_information+0x80>
 2008040:	80 a7 20 00 	cmp  %i4, 0                                    
             (index < (index_base + information->allocation_size))) { 
           _Chain_Extract( &extract_me->Node );                       
 2008044:	7f ff fb 6a 	call  2006dec <_Chain_Extract>                 
 2008048:	01 00 00 00 	nop                                            
         }                                                            
       }                                                              
       while ( the_object );                                          
 200804c:	80 a7 20 00 	cmp  %i4, 0                                    
 2008050:	12 bf ff f4 	bne  2008020 <_Objects_Shrink_information+0x8c><== ALWAYS TAKEN
 2008054:	90 10 00 1c 	mov  %i4, %o0                                  
      /*                                                              
       *  Free the memory and reset the structures in the object' information
       */                                                             
                                                                      
      _Workspace_Free( information->object_blocks[ block ] );         
 2008058:	c2 06 20 34 	ld  [ %i0 + 0x34 ], %g1                        <== NOT EXECUTED
 200805c:	40 00 07 ac 	call  2009f0c <_Workspace_Free>                
 2008060:	d0 00 40 1b 	ld  [ %g1 + %i3 ], %o0                         
      information->object_blocks[ block ] = NULL;                     
 2008064:	c2 06 20 34 	ld  [ %i0 + 0x34 ], %g1                        
      information->inactive_per_block[ block ] = 0;                   
                                                                      
      information->inactive -= information->allocation_size;          
 2008068:	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;                     
 200806c:	c0 20 40 1b 	clr  [ %g1 + %i3 ]                             
      information->inactive_per_block[ block ] = 0;                   
 2008070:	c6 06 20 30 	ld  [ %i0 + 0x30 ], %g3                        
                                                                      
      information->inactive -= information->allocation_size;          
 2008074:	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;                   
 2008078:	c0 20 c0 1b 	clr  [ %g3 + %i3 ]                             
                                                                      
      information->inactive -= information->allocation_size;          
 200807c:	82 20 80 01 	sub  %g2, %g1, %g1                             
 2008080:	c2 36 20 2c 	sth  %g1, [ %i0 + 0x2c ]                       
                                                                      
      return;                                                         
 2008084:	81 c7 e0 08 	ret                                            
 2008088:	81 e8 00 00 	restore                                        
                                                                      

02008d7c <_RBTree_Extract_unprotected>: */ void _RBTree_Extract_unprotected( RBTree_Control *the_rbtree, RBTree_Node *the_node ) {
 2008d7c:	9d e3 bf a0 	save  %sp, -96, %sp                            
  RBTree_Node *leaf, *target;                                         
  RBTree_Color victim_color;                                          
  RBTree_Direction dir;                                               
                                                                      
  if(!the_node) return;                                               
 2008d80:	80 a6 60 00 	cmp  %i1, 0                                    
 2008d84:	02 80 00 4c 	be  2008eb4 <_RBTree_Extract_unprotected+0x138>
 2008d88:	01 00 00 00 	nop                                            
                                                                      
  /* check if min needs to be updated */                              
  if (the_node == the_rbtree->first[RBT_LEFT]) {                      
 2008d8c:	c2 06 20 08 	ld  [ %i0 + 8 ], %g1                           
 2008d90:	80 a0 40 19 	cmp  %g1, %i1                                  
 2008d94:	02 80 00 61 	be  2008f18 <_RBTree_Extract_unprotected+0x19c>
 2008d98:	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]) {                     
 2008d9c:	c4 06 20 0c 	ld  [ %i0 + 0xc ], %g2                         
 2008da0:	80 a0 80 19 	cmp  %g2, %i1                                  
 2008da4:	02 80 00 51 	be  2008ee8 <_RBTree_Extract_unprotected+0x16c>
 2008da8:	f8 06 60 04 	ld  [ %i1 + 4 ], %i4                           
   * 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]) {      
 2008dac:	ba 97 20 00 	orcc  %i4, 0, %i5                              
 2008db0:	22 80 00 54 	be,a   2008f00 <_RBTree_Extract_unprotected+0x184><== ALWAYS TAKEN
 2008db4:	b8 90 60 00 	orcc  %g1, 0, %i4                              
 2008db8:	80 a0 60 00 	cmp  %g1, 0                                    
 2008dbc:	32 80 00 05 	bne,a   2008dd0 <_RBTree_Extract_unprotected+0x54><== NEVER TAKEN
 2008dc0:	c2 07 60 08 	ld  [ %i5 + 8 ], %g1                           <== NOT EXECUTED
     * 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;                                
 2008dc4:	10 80 00 3e 	b  2008ebc <_RBTree_Extract_unprotected+0x140> 
 2008dc8:	c2 06 40 00 	ld  [ %i1 ], %g1                               
   * search tree property, but may violate the red-black properties.  
   */                                                                 
                                                                      
  if (the_node->child[RBT_LEFT] && the_node->child[RBT_RIGHT]) {      
    target = the_node->child[RBT_LEFT]; /* find max in node->child[RBT_LEFT] */
    while (target->child[RBT_RIGHT]) target = target->child[RBT_RIGHT];
 2008dcc:	c2 07 60 08 	ld  [ %i5 + 8 ], %g1                           <== NOT EXECUTED
 2008dd0:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
 2008dd4:	32 bf ff fe 	bne,a   2008dcc <_RBTree_Extract_unprotected+0x50><== NOT EXECUTED
 2008dd8:	ba 10 00 01 	mov  %g1, %i5                                  <== NOT EXECUTED
     * 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];                                  
 2008ddc:	f8 07 60 04 	ld  [ %i5 + 4 ], %i4                           <== NOT EXECUTED
    if(leaf) {                                                        
 2008de0:	80 a7 20 00 	cmp  %i4, 0                                    <== NOT EXECUTED
 2008de4:	02 80 00 52 	be  2008f2c <_RBTree_Extract_unprotected+0x1b0><== NOT EXECUTED
 2008de8:	01 00 00 00 	nop                                            <== NOT EXECUTED
      leaf->parent = target->parent;                                  
 2008dec:	c2 07 40 00 	ld  [ %i5 ], %g1                               <== NOT EXECUTED
 2008df0:	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];                         
 2008df4:	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];                     
 2008df8:	c2 06 40 00 	ld  [ %i1 ], %g1                               <== 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];                         
 2008dfc:	c8 00 a0 04 	ld  [ %g2 + 4 ], %g4                           <== NOT EXECUTED
     * 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;                                
    target->color = the_node->color;                                  
 2008e00:	c6 06 60 10 	ld  [ %i1 + 0x10 ], %g3                        <== 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];                         
 2008e04:	88 19 00 1d 	xor  %g4, %i5, %g4                             <== NOT EXECUTED
 2008e08:	80 a0 00 04 	cmp  %g0, %g4                                  <== NOT EXECUTED
 2008e0c:	88 40 20 00 	addx  %g0, 0, %g4                              <== NOT EXECUTED
    target->parent->child[dir] = leaf;                                
 2008e10:	89 29 20 02 	sll  %g4, 2, %g4                               <== NOT EXECUTED
 2008e14:	84 00 80 04 	add  %g2, %g4, %g2                             <== NOT EXECUTED
 2008e18:	f8 20 a0 04 	st  %i4, [ %g2 + 4 ]                           <== NOT EXECUTED
                                                                      
    /* now replace the_node with target */                            
    dir = the_node != the_node->parent->child[0];                     
 2008e1c:	c8 00 60 04 	ld  [ %g1 + 4 ], %g4                           <== NOT EXECUTED
      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;                                     
 2008e20:	c4 07 60 10 	ld  [ %i5 + 0x10 ], %g2                        <== NOT EXECUTED
    dir = target != target->parent->child[0];                         
    target->parent->child[dir] = leaf;                                
                                                                      
    /* now replace the_node with target */                            
    dir = the_node != the_node->parent->child[0];                     
 2008e24:	88 19 00 19 	xor  %g4, %i1, %g4                             <== NOT EXECUTED
 2008e28:	80 a0 00 04 	cmp  %g0, %g4                                  <== NOT EXECUTED
 2008e2c:	88 40 20 00 	addx  %g0, 0, %g4                              <== NOT EXECUTED
    the_node->parent->child[dir] = target;                            
 2008e30:	89 29 20 02 	sll  %g4, 2, %g4                               <== NOT EXECUTED
 2008e34:	82 00 40 04 	add  %g1, %g4, %g1                             <== NOT EXECUTED
 2008e38:	fa 20 60 04 	st  %i5, [ %g1 + 4 ]                           <== NOT EXECUTED
                                                                      
    /* set target's new children to the original node's children */   
    target->child[RBT_RIGHT] = the_node->child[RBT_RIGHT];            
 2008e3c:	c2 06 60 08 	ld  [ %i1 + 8 ], %g1                           <== NOT EXECUTED
     * 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;                                
    target->color = the_node->color;                                  
 2008e40:	c6 27 60 10 	st  %g3, [ %i5 + 0x10 ]                        <== NOT EXECUTED
    /* now replace the_node with target */                            
    dir = the_node != the_node->parent->child[0];                     
    the_node->parent->child[dir] = target;                            
                                                                      
    /* set target's new children to the original node's children */   
    target->child[RBT_RIGHT] = the_node->child[RBT_RIGHT];            
 2008e44:	c2 27 60 08 	st  %g1, [ %i5 + 8 ]                           <== NOT EXECUTED
    the_node->child[RBT_RIGHT]->parent = target;                      
    target->child[RBT_LEFT] = the_node->child[RBT_LEFT];              
 2008e48:	c2 06 60 04 	ld  [ %i1 + 4 ], %g1                           <== NOT EXECUTED
    dir = the_node != the_node->parent->child[0];                     
    the_node->parent->child[dir] = target;                            
                                                                      
    /* set target's new children to the original node's children */   
    target->child[RBT_RIGHT] = the_node->child[RBT_RIGHT];            
    the_node->child[RBT_RIGHT]->parent = target;                      
 2008e4c:	c6 06 60 08 	ld  [ %i1 + 8 ], %g3                           <== NOT EXECUTED
    target->child[RBT_LEFT] = the_node->child[RBT_LEFT];              
 2008e50:	c2 27 60 04 	st  %g1, [ %i5 + 4 ]                           <== NOT EXECUTED
    the_node->child[RBT_LEFT]->parent = target;                       
 2008e54:	c2 06 60 04 	ld  [ %i1 + 4 ], %g1                           <== NOT EXECUTED
    dir = the_node != the_node->parent->child[0];                     
    the_node->parent->child[dir] = target;                            
                                                                      
    /* set target's new children to the original node's children */   
    target->child[RBT_RIGHT] = the_node->child[RBT_RIGHT];            
    the_node->child[RBT_RIGHT]->parent = target;                      
 2008e58:	fa 20 c0 00 	st  %i5, [ %g3 ]                               <== NOT EXECUTED
    target->child[RBT_LEFT] = the_node->child[RBT_LEFT];              
    the_node->child[RBT_LEFT]->parent = target;                       
 2008e5c:	fa 20 40 00 	st  %i5, [ %g1 ]                               <== NOT EXECUTED
    /* 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;                                
 2008e60:	c2 06 40 00 	ld  [ %i1 ], %g1                               <== NOT EXECUTED
 2008e64:	c2 27 40 00 	st  %g1, [ %i5 ]                               <== NOT EXECUTED
   *   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 */             
 2008e68:	80 a0 a0 00 	cmp  %g2, 0                                    
 2008e6c:	32 80 00 0c 	bne,a   2008e9c <_RBTree_Extract_unprotected+0x120>
 2008e70:	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);                    
 2008e74:	80 a7 20 00 	cmp  %i4, 0                                    
 2008e78:	22 80 00 09 	be,a   2008e9c <_RBTree_Extract_unprotected+0x120>
 2008e7c:	c2 06 20 04 	ld  [ %i0 + 4 ], %g1                           
 2008e80:	c2 07 20 10 	ld  [ %i4 + 0x10 ], %g1                        
 2008e84:	80 a0 60 01 	cmp  %g1, 1                                    
 2008e88:	22 80 00 04 	be,a   2008e98 <_RBTree_Extract_unprotected+0x11c><== ALWAYS TAKEN
 2008e8c:	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 */        
 2008e90:	7f ff fe e8 	call  2008a30 <_RBTree_Extract_validate_unprotected><== NOT EXECUTED
 2008e94:	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;          
 2008e98:	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;
 2008e9c:	c0 26 60 08 	clr  [ %i1 + 8 ]                               
 2008ea0:	c0 26 60 04 	clr  [ %i1 + 4 ]                               
 2008ea4:	80 a0 60 00 	cmp  %g1, 0                                    
 2008ea8:	02 80 00 03 	be  2008eb4 <_RBTree_Extract_unprotected+0x138>
 2008eac:	c0 26 40 00 	clr  [ %i1 ]                                   
 2008eb0:	c0 20 60 10 	clr  [ %g1 + 0x10 ]                            
 2008eb4:	81 c7 e0 08 	ret                                            
 2008eb8:	81 e8 00 00 	restore                                        
     * 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;                                
 2008ebc:	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];                     
 2008ec0:	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;                                   
 2008ec4:	c4 06 60 10 	ld  [ %i1 + 0x10 ], %g2                        
                                                                      
    /* remove the_node from the tree */                               
    dir = the_node != the_node->parent->child[0];                     
 2008ec8:	c6 00 60 04 	ld  [ %g1 + 4 ], %g3                           
 2008ecc:	86 18 c0 19 	xor  %g3, %i1, %g3                             
 2008ed0:	80 a0 00 03 	cmp  %g0, %g3                                  
 2008ed4:	86 40 20 00 	addx  %g0, 0, %g3                              
    the_node->parent->child[dir] = leaf;                              
 2008ed8:	87 28 e0 02 	sll  %g3, 2, %g3                               
 2008edc:	82 00 40 03 	add  %g1, %g3, %g1                             
 2008ee0:	10 bf ff e2 	b  2008e68 <_RBTree_Extract_unprotected+0xec>  
 2008ee4:	f8 20 60 04 	st  %i4, [ %g1 + 4 ]                           
        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])                                    
 2008ee8:	80 a7 20 00 	cmp  %i4, 0                                    
 2008eec:	02 80 00 19 	be  2008f50 <_RBTree_Extract_unprotected+0x1d4>
 2008ef0:	ba 97 20 00 	orcc  %i4, 0, %i5                              
   * 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]) {      
 2008ef4:	12 bf ff b1 	bne  2008db8 <_RBTree_Extract_unprotected+0x3c><== ALWAYS TAKEN
 2008ef8:	f8 26 20 0c 	st  %i4, [ %i0 + 0xc ]                         
     * violated. We will fix it later.                                
     * For now we store the color of the node being deleted in victim_color.
     */                                                               
    leaf = the_node->child[RBT_LEFT] ?                                
              the_node->child[RBT_LEFT] : the_node->child[RBT_RIGHT]; 
    if( leaf ) {                                                      
 2008efc:	b8 90 60 00 	orcc  %g1, 0, %i4                              <== NOT EXECUTED
 2008f00:	32 bf ff ef 	bne,a   2008ebc <_RBTree_Extract_unprotected+0x140>
 2008f04:	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);                 
 2008f08:	7f ff fe ca 	call  2008a30 <_RBTree_Extract_validate_unprotected>
 2008f0c:	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];                     
 2008f10:	10 bf ff ed 	b  2008ec4 <_RBTree_Extract_unprotected+0x148> 
 2008f14:	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])                                   
 2008f18:	80 a0 60 00 	cmp  %g1, 0                                    
 2008f1c:	22 80 00 08 	be,a   2008f3c <_RBTree_Extract_unprotected+0x1c0>
 2008f20:	c4 06 40 00 	ld  [ %i1 ], %g2                               
      the_rbtree->first[RBT_LEFT] = the_node->child[RBT_RIGHT];       
 2008f24:	10 bf ff 9e 	b  2008d9c <_RBTree_Extract_unprotected+0x20>  
 2008f28:	c2 26 20 08 	st  %g1, [ %i0 + 8 ]                           
     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);                   
 2008f2c:	7f ff fe c1 	call  2008a30 <_RBTree_Extract_validate_unprotected><== NOT EXECUTED
 2008f30:	90 10 00 1d 	mov  %i5, %o0                                  <== NOT EXECUTED
    }                                                                 
    victim_color = target->color;                                     
    dir = target != target->parent->child[0];                         
 2008f34:	10 bf ff b1 	b  2008df8 <_RBTree_Extract_unprotected+0x7c>  <== NOT EXECUTED
 2008f38:	c4 07 40 00 	ld  [ %i5 ], %g2                               <== NOT EXECUTED
  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,           
 2008f3c:	80 a6 00 02 	cmp  %i0, %g2                                  
 2008f40:	12 bf ff 97 	bne  2008d9c <_RBTree_Extract_unprotected+0x20>
 2008f44:	c4 26 20 08 	st  %g2, [ %i0 + 8 ]                           
            the_rbtree->first[RBT_LEFT]))                             
        the_rbtree->first[RBT_LEFT] = NULL;                           
 2008f48:	10 bf ff 95 	b  2008d9c <_RBTree_Extract_unprotected+0x20>  
 2008f4c:	c0 26 20 08 	clr  [ %i0 + 8 ]                               
  /* 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])                                    
      the_rbtree->first[RBT_RIGHT] = the_node->child[RBT_LEFT];       
    else {                                                            
      the_rbtree->first[RBT_RIGHT] = the_node->parent;                
 2008f50:	c4 06 40 00 	ld  [ %i1 ], %g2                               
      if(_RBTree_Are_nodes_equal((RBTree_Node *)the_rbtree,           
 2008f54:	80 a6 00 02 	cmp  %i0, %g2                                  
 2008f58:	12 bf ff 95 	bne  2008dac <_RBTree_Extract_unprotected+0x30>
 2008f5c:	c4 26 20 0c 	st  %g2, [ %i0 + 0xc ]                         
            the_rbtree->first[RBT_RIGHT]))                            
        the_rbtree->first[RBT_RIGHT] = NULL;                          
 2008f60:	10 bf ff 93 	b  2008dac <_RBTree_Extract_unprotected+0x30>  
 2008f64:	c0 26 20 0c 	clr  [ %i0 + 0xc ]                             
                                                                      

02008a30 <_RBTree_Extract_validate_unprotected>: * of the extract operation. */ void _RBTree_Extract_validate_unprotected( RBTree_Node *the_node ) {
 2008a30:	9d e3 bf a0 	save  %sp, -96, %sp                            
  RBTree_Node *parent, *sibling;                                      
  RBTree_Direction dir;                                               
                                                                      
  parent = the_node->parent;                                          
 2008a34:	c4 06 00 00 	ld  [ %i0 ], %g2                               
  if(!parent->parent) return;                                         
 2008a38:	c2 00 80 00 	ld  [ %g2 ], %g1                               
 2008a3c:	80 a0 60 00 	cmp  %g1, 0                                    
 2008a40:	02 80 00 cd 	be  2008d74 <_RBTree_Extract_validate_unprotected+0x344>
 2008a44:	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])                   
 2008a48:	c2 00 a0 04 	ld  [ %g2 + 4 ], %g1                           
 2008a4c:	80 a6 00 01 	cmp  %i0, %g1                                  
 2008a50:	22 80 00 02 	be,a   2008a58 <_RBTree_Extract_validate_unprotected+0x28>
 2008a54:	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;                                     
 2008a58:	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);                    
 2008a5c:	80 a6 20 00 	cmp  %i0, 0                                    
 2008a60:	22 80 00 07 	be,a   2008a7c <_RBTree_Extract_validate_unprotected+0x4c><== NEVER TAKEN
 2008a64:	c6 00 80 00 	ld  [ %g2 ], %g3                               <== NOT EXECUTED
 2008a68:	c6 06 20 10 	ld  [ %i0 + 0x10 ], %g3                        
 2008a6c:	80 a0 e0 01 	cmp  %g3, 1                                    
 2008a70:	22 80 00 5b 	be,a   2008bdc <_RBTree_Extract_validate_unprotected+0x1ac>
 2008a74:	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) {               
 2008a78:	c6 00 80 00 	ld  [ %g2 ], %g3                               
 2008a7c:	80 a0 e0 00 	cmp  %g3, 0                                    
 2008a80:	02 80 00 56 	be  2008bd8 <_RBTree_Extract_validate_unprotected+0x1a8>
 2008a84:	80 a0 60 00 	cmp  %g1, 0                                    
 2008a88:	02 bf ff f6 	be  2008a60 <_RBTree_Extract_validate_unprotected+0x30><== NEVER TAKEN
 2008a8c:	80 a6 20 00 	cmp  %i0, 0                                    
 2008a90:	c8 00 60 10 	ld  [ %g1 + 0x10 ], %g4                        
 2008a94:	80 a1 20 01 	cmp  %g4, 1                                    
 2008a98:	22 80 00 27 	be,a   2008b34 <_RBTree_Extract_validate_unprotected+0x104>
 2008a9c:	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]) &&                 
 2008aa0:	c6 00 60 08 	ld  [ %g1 + 8 ], %g3                           
 2008aa4:	80 a0 e0 00 	cmp  %g3, 0                                    
 2008aa8:	22 80 00 07 	be,a   2008ac4 <_RBTree_Extract_validate_unprotected+0x94>
 2008aac:	c6 00 60 04 	ld  [ %g1 + 4 ], %g3                           
 2008ab0:	c6 00 e0 10 	ld  [ %g3 + 0x10 ], %g3                        
 2008ab4:	80 a0 e0 01 	cmp  %g3, 1                                    
 2008ab8:	22 80 00 57 	be,a   2008c14 <_RBTree_Extract_validate_unprotected+0x1e4>
 2008abc:	c6 00 a0 04 	ld  [ %g2 + 4 ], %g3                           
        !_RBTree_Is_red(sibling->child[RBT_LEFT])) {                  
 2008ac0:	c6 00 60 04 	ld  [ %g1 + 4 ], %g3                           
 2008ac4:	80 a0 e0 00 	cmp  %g3, 0                                    
 2008ac8:	22 80 00 07 	be,a   2008ae4 <_RBTree_Extract_validate_unprotected+0xb4>
 2008acc:	d6 20 60 10 	st  %o3, [ %g1 + 0x10 ]                        
 2008ad0:	c6 00 e0 10 	ld  [ %g3 + 0x10 ], %g3                        
 2008ad4:	80 a0 e0 01 	cmp  %g3, 1                                    
 2008ad8:	22 80 00 4f 	be,a   2008c14 <_RBTree_Extract_validate_unprotected+0x1e4>
 2008adc:	c6 00 a0 04 	ld  [ %g2 + 4 ], %g3                           
        sibling->color = RBT_RED;                                     
 2008ae0:	d6 20 60 10 	st  %o3, [ %g1 + 0x10 ]                        
 2008ae4:	c2 00 a0 10 	ld  [ %g2 + 0x10 ], %g1                        
 2008ae8:	80 a0 60 01 	cmp  %g1, 1                                    
 2008aec:	22 80 00 3b 	be,a   2008bd8 <_RBTree_Extract_validate_unprotected+0x1a8>
 2008af0:	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;                                    
 2008af4:	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;                                
 2008af8:	80 a0 e0 00 	cmp  %g3, 0                                    
 2008afc:	02 80 00 3e 	be  2008bf4 <_RBTree_Extract_validate_unprotected+0x1c4><== NEVER TAKEN
 2008b00:	b0 10 00 02 	mov  %g2, %i0                                  
  if(!(the_node->parent->parent)) return NULL;                        
 2008b04:	c2 00 c0 00 	ld  [ %g3 ], %g1                               
 2008b08:	80 a0 60 00 	cmp  %g1, 0                                    
 2008b0c:	02 80 00 3d 	be  2008c00 <_RBTree_Extract_validate_unprotected+0x1d0>
 2008b10:	82 10 20 00 	clr  %g1                                       
                                                                      
  if(the_node == the_node->parent->child[RBT_LEFT])                   
 2008b14:	c2 00 e0 04 	ld  [ %g3 + 4 ], %g1                           
 2008b18:	80 a0 80 01 	cmp  %g2, %g1                                  
 2008b1c:	02 80 00 3b 	be  2008c08 <_RBTree_Extract_validate_unprotected+0x1d8>
 2008b20:	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);                    
 2008b24:	12 bf ff d1 	bne  2008a68 <_RBTree_Extract_validate_unprotected+0x38><== ALWAYS TAKEN
 2008b28:	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) {               
 2008b2c:	10 bf ff d4 	b  2008a7c <_RBTree_Extract_validate_unprotected+0x4c><== NOT EXECUTED
 2008b30:	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;                                        
 2008b34:	c8 20 a0 10 	st  %g4, [ %g2 + 0x10 ]                        
      sibling->color = RBT_BLACK;                                     
      dir = the_node != parent->child[0];                             
 2008b38:	9e 1b c0 18 	xor  %o7, %i0, %o7                             
 2008b3c:	80 a0 00 0f 	cmp  %g0, %o7                                  
 2008b40:	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;                       
 2008b44:	88 21 00 0d 	sub  %g4, %o5, %g4                             
 2008b48:	89 29 20 02 	sll  %g4, 2, %g4                               
 2008b4c:	88 00 80 04 	add  %g2, %g4, %g4                             
 2008b50:	de 01 20 04 	ld  [ %g4 + 4 ], %o7                           
 2008b54:	80 a3 e0 00 	cmp  %o7, 0                                    
 2008b58:	02 80 00 16 	be  2008bb0 <_RBTree_Extract_validate_unprotected+0x180><== NEVER TAKEN
 2008b5c:	c0 20 60 10 	clr  [ %g1 + 0x10 ]                            
                                                                      
                                                                      
  c = the_node->child[(1-dir)];                                       
  the_node->child[(1-dir)] = c->child[dir];                           
 2008b60:	83 2b 60 02 	sll  %o5, 2, %g1                               
 2008b64:	98 03 c0 01 	add  %o7, %g1, %o4                             
 2008b68:	d4 03 20 04 	ld  [ %o4 + 4 ], %o2                           
 2008b6c:	d4 21 20 04 	st  %o2, [ %g4 + 4 ]                           
                                                                      
  if (c->child[dir])                                                  
 2008b70:	c8 03 20 04 	ld  [ %o4 + 4 ], %g4                           
 2008b74:	80 a1 20 00 	cmp  %g4, 0                                    
 2008b78:	02 80 00 04 	be  2008b88 <_RBTree_Extract_validate_unprotected+0x158><== NEVER TAKEN
 2008b7c:	82 03 c0 01 	add  %o7, %g1, %g1                             
    c->child[dir]->parent = the_node;                                 
 2008b80:	c4 21 00 00 	st  %g2, [ %g4 ]                               
 2008b84:	c6 00 80 00 	ld  [ %g2 ], %g3                               
                                                                      
  c->child[dir] = the_node;                                           
 2008b88:	c4 20 60 04 	st  %g2, [ %g1 + 4 ]                           
                                                                      
  the_node->parent->child[the_node != the_node->parent->child[0]] = c;
 2008b8c:	c2 00 e0 04 	ld  [ %g3 + 4 ], %g1                           
                                                                      
  c->parent = the_node->parent;                                       
 2008b90:	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;
 2008b94:	82 18 80 01 	xor  %g2, %g1, %g1                             
                                                                      
  c->parent = the_node->parent;                                       
  the_node->parent = c;                                               
 2008b98:	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;
 2008b9c:	80 a0 00 01 	cmp  %g0, %g1                                  
 2008ba0:	82 40 20 00 	addx  %g0, 0, %g1                              
 2008ba4:	83 28 60 02 	sll  %g1, 2, %g1                               
 2008ba8:	86 00 c0 01 	add  %g3, %g1, %g3                             
 2008bac:	de 20 e0 04 	st  %o7, [ %g3 + 4 ]                           
      _RBTree_Rotate(parent, dir);                                    
      sibling = parent->child[!dir];                                  
 2008bb0:	80 a0 00 0d 	cmp  %g0, %o5                                  
 2008bb4:	82 60 3f ff 	subx  %g0, -1, %g1                             
 2008bb8:	83 28 60 02 	sll  %g1, 2, %g1                               
 2008bbc:	82 00 80 01 	add  %g2, %g1, %g1                             
 2008bc0:	c2 00 60 04 	ld  [ %g1 + 4 ], %g1                           
    }                                                                 
                                                                      
    /* sibling is black, see if both of its children are also black. */
    if (sibling &&                                                    
 2008bc4:	80 a0 60 00 	cmp  %g1, 0                                    
 2008bc8:	32 bf ff b7 	bne,a   2008aa4 <_RBTree_Extract_validate_unprotected+0x74><== ALWAYS TAKEN
 2008bcc:	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);                    
 2008bd0:	10 bf ff a4 	b  2008a60 <_RBTree_Extract_validate_unprotected+0x30><== NOT EXECUTED
 2008bd4:	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;          
 2008bd8:	c2 06 00 00 	ld  [ %i0 ], %g1                               
 2008bdc:	c2 00 40 00 	ld  [ %g1 ], %g1                               
 2008be0:	80 a0 60 00 	cmp  %g1, 0                                    
 2008be4:	22 80 00 02 	be,a   2008bec <_RBTree_Extract_validate_unprotected+0x1bc>
 2008be8:	c0 26 20 10 	clr  [ %i0 + 0x10 ]                            
 2008bec:	81 c7 e0 08 	ret                                            
 2008bf0:	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;                                
 2008bf4:	82 10 20 00 	clr  %g1                                       <== NOT EXECUTED
 2008bf8:	10 bf ff 99 	b  2008a5c <_RBTree_Extract_validate_unprotected+0x2c><== NOT EXECUTED
 2008bfc:	84 10 20 00 	clr  %g2                                       <== NOT EXECUTED
  if(!(the_node->parent->parent)) return NULL;                        
 2008c00:	10 bf ff 97 	b  2008a5c <_RBTree_Extract_validate_unprotected+0x2c>
 2008c04:	84 10 00 03 	mov  %g3, %g2                                  
                                                                      
  if(the_node == the_node->parent->child[RBT_LEFT])                   
    return the_node->parent->child[RBT_RIGHT];                        
 2008c08:	c2 00 e0 08 	ld  [ %g3 + 8 ], %g1                           
 2008c0c:	10 bf ff 94 	b  2008a5c <_RBTree_Extract_validate_unprotected+0x2c>
 2008c10:	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];                             
 2008c14:	86 18 c0 18 	xor  %g3, %i0, %g3                             
 2008c18:	80 a0 00 03 	cmp  %g0, %g3                                  
 2008c1c:	86 40 20 00 	addx  %g0, 0, %g3                              
      if (!_RBTree_Is_red(sibling->child[!dir])) {                    
 2008c20:	80 a0 00 03 	cmp  %g0, %g3                                  
 2008c24:	9e 60 3f ff 	subx  %g0, -1, %o7                             
 2008c28:	9f 2b e0 02 	sll  %o7, 2, %o7                               
 2008c2c:	88 00 40 0f 	add  %g1, %o7, %g4                             
 2008c30:	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);                    
 2008c34:	80 a1 20 00 	cmp  %g4, 0                                    
 2008c38:	22 80 00 07 	be,a   2008c54 <_RBTree_Extract_validate_unprotected+0x224>
 2008c3c:	89 28 e0 02 	sll  %g3, 2, %g4                               
 2008c40:	da 01 20 10 	ld  [ %g4 + 0x10 ], %o5                        
 2008c44:	80 a3 60 01 	cmp  %o5, 1                                    
 2008c48:	22 80 00 28 	be,a   2008ce8 <_RBTree_Extract_validate_unprotected+0x2b8>
 2008c4c:	de 00 a0 10 	ld  [ %g2 + 0x10 ], %o7                        
        sibling->color = RBT_RED;                                     
        sibling->child[dir]->color = RBT_BLACK;                       
 2008c50:	89 28 e0 02 	sll  %g3, 2, %g4                               
 2008c54:	88 00 40 04 	add  %g1, %g4, %g4                             
        _RBTree_Rotate(sibling, !dir);                                
 2008c58:	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;                       
 2008c5c:	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;                                     
 2008c60:	88 10 20 01 	mov  1, %g4                                    
 2008c64:	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;                       
 2008c68:	88 21 00 0c 	sub  %g4, %o4, %g4                             
 2008c6c:	9b 29 20 02 	sll  %g4, 2, %o5                               
 2008c70:	9a 00 40 0d 	add  %g1, %o5, %o5                             
 2008c74:	c8 03 60 04 	ld  [ %o5 + 4 ], %g4                           
 2008c78:	80 a1 20 00 	cmp  %g4, 0                                    
 2008c7c:	02 80 00 16 	be  2008cd4 <_RBTree_Extract_validate_unprotected+0x2a4><== NEVER TAKEN
 2008c80:	c0 22 e0 10 	clr  [ %o3 + 0x10 ]                            
                                                                      
                                                                      
  c = the_node->child[(1-dir)];                                       
  the_node->child[(1-dir)] = c->child[dir];                           
 2008c84:	99 2b 20 02 	sll  %o4, 2, %o4                               
 2008c88:	96 01 00 0c 	add  %g4, %o4, %o3                             
 2008c8c:	d4 02 e0 04 	ld  [ %o3 + 4 ], %o2                           
 2008c90:	d4 23 60 04 	st  %o2, [ %o5 + 4 ]                           
                                                                      
  if (c->child[dir])                                                  
 2008c94:	da 02 e0 04 	ld  [ %o3 + 4 ], %o5                           
 2008c98:	80 a3 60 00 	cmp  %o5, 0                                    
 2008c9c:	32 80 00 02 	bne,a   2008ca4 <_RBTree_Extract_validate_unprotected+0x274>
 2008ca0:	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;
 2008ca4:	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;                                           
 2008ca8:	98 01 00 0c 	add  %g4, %o4, %o4                             
 2008cac:	c2 23 20 04 	st  %g1, [ %o4 + 4 ]                           
                                                                      
  the_node->parent->child[the_node != the_node->parent->child[0]] = c;
 2008cb0:	d8 03 60 04 	ld  [ %o5 + 4 ], %o4                           
                                                                      
  c->parent = the_node->parent;                                       
 2008cb4:	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;
 2008cb8:	98 18 40 0c 	xor  %g1, %o4, %o4                             
                                                                      
  c->parent = the_node->parent;                                       
  the_node->parent = c;                                               
 2008cbc:	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;
 2008cc0:	80 a0 00 0c 	cmp  %g0, %o4                                  
 2008cc4:	82 40 20 00 	addx  %g0, 0, %g1                              
 2008cc8:	83 28 60 02 	sll  %g1, 2, %g1                               
 2008ccc:	9a 03 40 01 	add  %o5, %g1, %o5                             
 2008cd0:	c8 23 60 04 	st  %g4, [ %o5 + 4 ]                           
        sibling->child[dir]->color = RBT_BLACK;                       
        _RBTree_Rotate(sibling, !dir);                                
        sibling = parent->child[!dir];                                
 2008cd4:	82 00 80 0f 	add  %g2, %o7, %g1                             
 2008cd8:	c2 00 60 04 	ld  [ %g1 + 4 ], %g1                           
 2008cdc:	9e 00 40 0f 	add  %g1, %o7, %o7                             
 2008ce0:	c8 03 e0 04 	ld  [ %o7 + 4 ], %g4                           
      }                                                               
      sibling->color = parent->color;                                 
 2008ce4:	de 00 a0 10 	ld  [ %g2 + 0x10 ], %o7                        
 2008ce8:	de 20 60 10 	st  %o7, [ %g1 + 0x10 ]                        
      parent->color = RBT_BLACK;                                      
 2008cec:	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;                       
 2008cf0:	9e 10 20 01 	mov  1, %o7                                    
 2008cf4:	9e 23 c0 03 	sub  %o7, %g3, %o7                             
 2008cf8:	9f 2b e0 02 	sll  %o7, 2, %o7                               
 2008cfc:	9e 00 80 0f 	add  %g2, %o7, %o7                             
 2008d00:	c2 03 e0 04 	ld  [ %o7 + 4 ], %g1                           
 2008d04:	80 a0 60 00 	cmp  %g1, 0                                    
 2008d08:	02 bf ff b4 	be  2008bd8 <_RBTree_Extract_validate_unprotected+0x1a8><== NEVER TAKEN
 2008d0c:	c0 21 20 10 	clr  [ %g4 + 0x10 ]                            
                                                                      
                                                                      
  c = the_node->child[(1-dir)];                                       
  the_node->child[(1-dir)] = c->child[dir];                           
 2008d10:	87 28 e0 02 	sll  %g3, 2, %g3                               
 2008d14:	88 00 40 03 	add  %g1, %g3, %g4                             
 2008d18:	da 01 20 04 	ld  [ %g4 + 4 ], %o5                           
 2008d1c:	da 23 e0 04 	st  %o5, [ %o7 + 4 ]                           
                                                                      
  if (c->child[dir])                                                  
 2008d20:	c8 01 20 04 	ld  [ %g4 + 4 ], %g4                           
 2008d24:	80 a1 20 00 	cmp  %g4, 0                                    
 2008d28:	32 80 00 02 	bne,a   2008d30 <_RBTree_Extract_validate_unprotected+0x300>
 2008d2c:	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;
 2008d30:	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;                                           
 2008d34:	86 00 40 03 	add  %g1, %g3, %g3                             
 2008d38:	c4 20 e0 04 	st  %g2, [ %g3 + 4 ]                           
                                                                      
  the_node->parent->child[the_node != the_node->parent->child[0]] = c;
 2008d3c:	c6 01 20 04 	ld  [ %g4 + 4 ], %g3                           
                                                                      
  c->parent = the_node->parent;                                       
 2008d40:	c8 20 40 00 	st  %g4, [ %g1 ]                               
  the_node->parent = c;                                               
 2008d44:	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;
 2008d48:	86 18 c0 02 	xor  %g3, %g2, %g3                             
 2008d4c:	80 a0 00 03 	cmp  %g0, %g3                                  
 2008d50:	84 40 20 00 	addx  %g0, 0, %g2                              
 2008d54:	85 28 a0 02 	sll  %g2, 2, %g2                               
 2008d58:	88 01 00 02 	add  %g4, %g2, %g4                             
 2008d5c:	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;          
 2008d60:	c2 06 00 00 	ld  [ %i0 ], %g1                               
 2008d64:	c2 00 40 00 	ld  [ %g1 ], %g1                               
 2008d68:	80 a0 60 00 	cmp  %g1, 0                                    
 2008d6c:	22 bf ff a0 	be,a   2008bec <_RBTree_Extract_validate_unprotected+0x1bc><== NEVER TAKEN
 2008d70:	c0 26 20 10 	clr  [ %i0 + 0x10 ]                            <== NOT EXECUTED
 2008d74:	81 c7 e0 08 	ret                                            
 2008d78:	81 e8 00 00 	restore                                        
                                                                      

02008fdc <_RBTree_Find>: RBTree_Node *_RBTree_Find( RBTree_Control *the_rbtree, unsigned int the_value ) {
 2008fdc:	9d e3 bf a0 	save  %sp, -96, %sp                            
  ISR_Level          level;                                           
  RBTree_Node *return_node;                                           
                                                                      
  return_node = NULL;                                                 
  _ISR_Disable( level );                                              
 2008fe0:	7f ff e6 8a 	call  2002a08 <sparc_disable_interrupts>       
 2008fe4:	01 00 00 00 	nop                                            
      return_node = _RBTree_Find_unprotected( the_rbtree, the_value );
  _ISR_Enable( level );                                               
  return return_node;                                                 
}                                                                     
 2008fe8:	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) {                                                 
 2008fec:	80 a6 20 00 	cmp  %i0, 0                                    
 2008ff0:	32 80 00 0b 	bne,a   200901c <_RBTree_Find+0x40>            <== ALWAYS TAKEN
 2008ff4:	c2 06 20 0c 	ld  [ %i0 + 0xc ], %g1                         
 2008ff8:	30 80 00 0c 	b,a   2009028 <_RBTree_Find+0x4c>              <== NOT EXECUTED
    if (the_value == iter_node->value) return(iter_node);             
                                                                      
    RBTree_Direction dir = the_value > iter_node->value;              
 2008ffc:	82 40 20 00 	addx  %g0, 0, %g1                              
    iter_node = iter_node->child[dir];                                
 2009000:	83 28 60 02 	sll  %g1, 2, %g1                               
 2009004:	b0 06 00 01 	add  %i0, %g1, %i0                             
 2009008:	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) {                                                 
 200900c:	80 a6 20 00 	cmp  %i0, 0                                    
 2009010:	02 80 00 06 	be  2009028 <_RBTree_Find+0x4c>                <== NEVER TAKEN
 2009014:	01 00 00 00 	nop                                            
    if (the_value == iter_node->value) return(iter_node);             
 2009018:	c2 06 20 0c 	ld  [ %i0 + 0xc ], %g1                         
 200901c:	80 a6 40 01 	cmp  %i1, %g1                                  
 2009020:	12 bf ff f7 	bne  2008ffc <_RBTree_Find+0x20>               
 2009024:	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 );                                               
 2009028:	7f ff e6 7c 	call  2002a18 <sparc_enable_interrupts>        
 200902c:	01 00 00 00 	nop                                            
  return return_node;                                                 
}                                                                     
 2009030:	81 c7 e0 08 	ret                                            
 2009034:	81 e8 00 00 	restore                                        
                                                                      

02008f90 <_RBTree_Find_header>: */ RBTree_Control *_RBTree_Find_header( RBTree_Node *the_node ) {
 2008f90:	9d e3 bf a0 	save  %sp, -96, %sp                            
  ISR_Level          level;                                           
  RBTree_Control *return_header;                                      
                                                                      
  return_header = NULL;                                               
  _ISR_Disable( level );                                              
 2008f94:	7f ff e6 9d 	call  2002a08 <sparc_disable_interrupts>       
 2008f98:	01 00 00 00 	nop                                            
 */                                                                   
RTEMS_INLINE_ROUTINE RBTree_Control *_RBTree_Find_header_unprotected( 
    RBTree_Node *the_node                                             
    )                                                                 
{                                                                     
  if(!the_node) return NULL;                                          
 2008f9c:	80 a6 20 00 	cmp  %i0, 0                                    
 2008fa0:	02 80 00 0b 	be  2008fcc <_RBTree_Find_header+0x3c>         <== NEVER TAKEN
 2008fa4:	ba 10 20 00 	clr  %i5                                       
  if(!(the_node->parent)) return NULL;                                
 2008fa8:	fa 06 00 00 	ld  [ %i0 ], %i5                               
 2008fac:	80 a7 60 00 	cmp  %i5, 0                                    
 2008fb0:	32 80 00 04 	bne,a   2008fc0 <_RBTree_Find_header+0x30>     <== ALWAYS TAKEN
 2008fb4:	c2 07 40 00 	ld  [ %i5 ], %g1                               
 2008fb8:	30 80 00 05 	b,a   2008fcc <_RBTree_Find_header+0x3c>       <== NOT EXECUTED
 2008fbc:	c2 07 40 00 	ld  [ %i5 ], %g1                               
  while(the_node->parent) the_node = the_node->parent;                
 2008fc0:	80 a0 60 00 	cmp  %g1, 0                                    
 2008fc4:	32 bf ff fe 	bne,a   2008fbc <_RBTree_Find_header+0x2c>     
 2008fc8:	ba 10 00 01 	mov  %g1, %i5                                  
      return_header = _RBTree_Find_header_unprotected( the_node );    
  _ISR_Enable( level );                                               
 2008fcc:	7f ff e6 93 	call  2002a18 <sparc_enable_interrupts>        
 2008fd0:	b0 10 00 1d 	mov  %i5, %i0                                  
  return return_header;                                               
}                                                                     
 2008fd4:	81 c7 e0 08 	ret                                            
 2008fd8:	81 e8 00 00 	restore                                        
                                                                      

02009224 <_RBTree_Insert_unprotected>: */ RBTree_Node *_RBTree_Insert_unprotected( RBTree_Control *the_rbtree, RBTree_Node *the_node ) {
 2009224:	9d e3 bf a0 	save  %sp, -96, %sp                            
  if(!the_node) return (RBTree_Node*)-1;                              
 2009228:	80 a6 60 00 	cmp  %i1, 0                                    
 200922c:	02 80 00 14 	be  200927c <_RBTree_Insert_unprotected+0x58>  <== NEVER TAKEN
 2009230:	82 10 3f ff 	mov  -1, %g1                                   
                                                                      
  RBTree_Node *iter_node = the_rbtree->root;                          
 2009234:	c2 06 20 04 	ld  [ %i0 + 4 ], %g1                           
                                                                      
  if (!iter_node) { /* special case: first node inserted */           
 2009238:	80 a0 60 00 	cmp  %g1, 0                                    
 200923c:	22 80 00 23 	be,a   20092c8 <_RBTree_Insert_unprotected+0xa4>
 2009240:	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;                          
 2009244:	10 80 00 0a 	b  200926c <_RBTree_Insert_unprotected+0x48>   
 2009248:	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;      
 200924c:	9e 40 20 00 	addx  %g0, 0, %o7                              
      if (!iter_node->child[dir]) {                                   
 2009250:	89 2b e0 02 	sll  %o7, 2, %g4                               
 2009254:	88 00 40 04 	add  %g1, %g4, %g4                             
 2009258:	c4 01 20 04 	ld  [ %g4 + 4 ], %g2                           
 200925c:	80 a0 a0 00 	cmp  %g2, 0                                    
 2009260:	22 80 00 09 	be,a   2009284 <_RBTree_Insert_unprotected+0x60>
 2009264:	c0 26 60 08 	clr  [ %i1 + 8 ]                               
 2009268:	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);      
 200926c:	c4 00 60 0c 	ld  [ %g1 + 0xc ], %g2                         
 2009270:	80 a0 c0 02 	cmp  %g3, %g2                                  
 2009274:	12 bf ff f6 	bne  200924c <_RBTree_Insert_unprotected+0x28> 
 2009278:	80 a0 80 03 	cmp  %g2, %g3                                  
                                                                      
    /* verify red-black properties */                                 
    _RBTree_Validate_insert_unprotected(the_node);                    
  }                                                                   
  return (RBTree_Node*)0;                                             
}                                                                     
 200927c:	81 c7 e0 08 	ret                                            
 2009280:	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;
 2009284:	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];                                      
 2009288:	9e 03 e0 02 	add  %o7, 2, %o7                               
 200928c:	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)) {           
 2009290:	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;                                    
 2009294:	86 10 20 01 	mov  1, %g3                                    
        iter_node->child[dir] = the_node;                             
 2009298:	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;                                    
 200929c:	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)) {           
 20092a0:	80 a0 40 02 	cmp  %g1, %g2                                  
 20092a4:	02 80 00 07 	be  20092c0 <_RBTree_Insert_unprotected+0x9c>  
 20092a8:	c2 26 40 00 	st  %g1, [ %i1 ]                               
      }                                                               
                                                                      
    } /* while(iter_node) */                                          
                                                                      
    /* verify red-black properties */                                 
    _RBTree_Validate_insert_unprotected(the_node);                    
 20092ac:	7f ff ff 72 	call  2009074 <_RBTree_Validate_insert_unprotected>
 20092b0:	90 10 00 19 	mov  %i1, %o0                                  
  }                                                                   
  return (RBTree_Node*)0;                                             
 20092b4:	82 10 20 00 	clr  %g1                                       
}                                                                     
 20092b8:	81 c7 e0 08 	ret                                            
 20092bc:	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;                          
 20092c0:	10 bf ff fb 	b  20092ac <_RBTree_Insert_unprotected+0x88>   
 20092c4:	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;                                      
 20092c8:	f2 26 20 04 	st  %i1, [ %i0 + 4 ]                           
    the_rbtree->first[0] = the_rbtree->first[1] = the_node;           
 20092cc:	f2 26 20 0c 	st  %i1, [ %i0 + 0xc ]                         
 20092d0:	f2 26 20 08 	st  %i1, [ %i0 + 8 ]                           
    the_node->parent = (RBTree_Node *) the_rbtree;                    
 20092d4:	f0 26 40 00 	st  %i0, [ %i1 ]                               
    the_node->child[RBT_LEFT] = the_node->child[RBT_RIGHT] = NULL;    
 20092d8:	c0 26 60 08 	clr  [ %i1 + 8 ]                               
 20092dc:	10 bf ff e8 	b  200927c <_RBTree_Insert_unprotected+0x58>   
 20092e0:	c0 26 60 04 	clr  [ %i1 + 4 ]                               
                                                                      

02009074 <_RBTree_Validate_insert_unprotected>: * append operation. */ void _RBTree_Validate_insert_unprotected( RBTree_Node *the_node ) {
 2009074:	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) {                                              
 2009078:	96 10 20 01 	mov  1, %o3                                    
  ISR_Level level;                                                    
                                                                      
  _ISR_Disable( level );                                              
    _RBTree_Insert_unprotected( tree, node );                         
  _ISR_Enable( level );                                               
}                                                                     
 200907c:	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;                         
 2009080:	c4 00 40 00 	ld  [ %g1 ], %g2                               
 2009084:	86 90 a0 00 	orcc  %g2, 0, %g3                              
 2009088:	22 80 00 06 	be,a   20090a0 <_RBTree_Validate_insert_unprotected+0x2c>
 200908c:	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);                    
 2009090:	c8 00 60 10 	ld  [ %g1 + 0x10 ], %g4                        
 2009094:	80 a1 20 01 	cmp  %g4, 1                                    
 2009098:	22 80 00 04 	be,a   20090a8 <_RBTree_Validate_insert_unprotected+0x34>
 200909c:	c8 00 80 00 	ld  [ %g2 ], %g4                               
 20090a0:	81 c7 e0 08 	ret                                            
 20090a4:	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;                
 20090a8:	80 a1 20 00 	cmp  %g4, 0                                    
 20090ac:	02 80 00 0c 	be  20090dc <_RBTree_Validate_insert_unprotected+0x68><== NEVER TAKEN
 20090b0:	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])                   
 20090b4:	80 a0 40 0f 	cmp  %g1, %o7                                  
 20090b8:	02 80 00 59 	be  200921c <_RBTree_Validate_insert_unprotected+0x1a8>
 20090bc:	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);                    
 20090c0:	80 a1 20 00 	cmp  %g4, 0                                    
 20090c4:	22 80 00 07 	be,a   20090e0 <_RBTree_Validate_insert_unprotected+0x6c>
 20090c8:	c8 00 60 04 	ld  [ %g1 + 4 ], %g4                           
 20090cc:	da 01 20 10 	ld  [ %g4 + 0x10 ], %o5                        
 20090d0:	80 a3 60 01 	cmp  %o5, 1                                    
 20090d4:	22 80 00 4c 	be,a   2009204 <_RBTree_Validate_insert_unprotected+0x190>
 20090d8:	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];  
 20090dc:	c8 00 60 04 	ld  [ %g1 + 4 ], %g4                           
      RBTree_Direction pdir = the_node->parent != g->child[0];        
 20090e0:	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];  
 20090e4:	88 19 00 18 	xor  %g4, %i0, %g4                             
 20090e8:	80 a0 00 04 	cmp  %g0, %g4                                  
 20090ec:	9a 40 20 00 	addx  %g0, 0, %o5                              
      RBTree_Direction pdir = the_node->parent != g->child[0];        
 20090f0:	80 a0 00 0f 	cmp  %g0, %o7                                  
 20090f4:	88 40 20 00 	addx  %g0, 0, %g4                              
                                                                      
      /* ensure node is on the same branch direction as parent */     
      if (dir != pdir) {                                              
 20090f8:	80 a3 40 04 	cmp  %o5, %g4                                  
 20090fc:	02 80 00 46 	be  2009214 <_RBTree_Validate_insert_unprotected+0x1a0>
 2009100:	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;                       
 2009104:	98 22 c0 04 	sub  %o3, %g4, %o4                             
 2009108:	9b 2b 20 02 	sll  %o4, 2, %o5                               
 200910c:	9a 00 40 0d 	add  %g1, %o5, %o5                             
 2009110:	de 03 60 04 	ld  [ %o5 + 4 ], %o7                           
 2009114:	80 a3 e0 00 	cmp  %o7, 0                                    
 2009118:	02 80 00 16 	be  2009170 <_RBTree_Validate_insert_unprotected+0xfc><== NEVER TAKEN
 200911c:	89 29 20 02 	sll  %g4, 2, %g4                               
                                                                      
                                                                      
  c = the_node->child[(1-dir)];                                       
  the_node->child[(1-dir)] = c->child[dir];                           
 2009120:	94 03 c0 04 	add  %o7, %g4, %o2                             
 2009124:	d2 02 a0 04 	ld  [ %o2 + 4 ], %o1                           
 2009128:	d2 23 60 04 	st  %o1, [ %o5 + 4 ]                           
                                                                      
  if (c->child[dir])                                                  
 200912c:	da 02 a0 04 	ld  [ %o2 + 4 ], %o5                           
 2009130:	80 a3 60 00 	cmp  %o5, 0                                    
 2009134:	22 80 00 05 	be,a   2009148 <_RBTree_Validate_insert_unprotected+0xd4>
 2009138:	9a 03 c0 04 	add  %o7, %g4, %o5                             
    c->child[dir]->parent = the_node;                                 
 200913c:	c2 23 40 00 	st  %g1, [ %o5 ]                               
 2009140:	c4 00 40 00 	ld  [ %g1 ], %g2                               
                                                                      
  c->child[dir] = the_node;                                           
 2009144:	9a 03 c0 04 	add  %o7, %g4, %o5                             
 2009148:	c2 23 60 04 	st  %g1, [ %o5 + 4 ]                           
                                                                      
  the_node->parent->child[the_node != the_node->parent->child[0]] = c;
 200914c:	da 00 a0 04 	ld  [ %g2 + 4 ], %o5                           
                                                                      
  c->parent = the_node->parent;                                       
 2009150:	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;
 2009154:	9a 18 40 0d 	xor  %g1, %o5, %o5                             
                                                                      
  c->parent = the_node->parent;                                       
  the_node->parent = c;                                               
 2009158:	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;
 200915c:	80 a0 00 0d 	cmp  %g0, %o5                                  
 2009160:	82 40 20 00 	addx  %g0, 0, %g1                              
 2009164:	83 28 60 02 	sll  %g1, 2, %g1                               
 2009168:	84 00 80 01 	add  %g2, %g1, %g2                             
 200916c:	de 20 a0 04 	st  %o7, [ %g2 + 4 ]                           
        _RBTree_Rotate(the_node->parent, pdir);                       
        the_node = the_node->child[pdir];                             
 2009170:	b0 06 00 04 	add  %i0, %g4, %i0                             
 2009174:	f0 06 20 04 	ld  [ %i0 + 4 ], %i0                           
 2009178:	c2 06 00 00 	ld  [ %i0 ], %g1                               
      }                                                               
      the_node->parent->color = RBT_BLACK;                            
 200917c:	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;                       
 2009180:	88 00 c0 04 	add  %g3, %g4, %g4                             
 2009184:	c2 01 20 04 	ld  [ %g4 + 4 ], %g1                           
 2009188:	80 a0 60 00 	cmp  %g1, 0                                    
 200918c:	02 bf ff bc 	be  200907c <_RBTree_Validate_insert_unprotected+0x8><== NEVER TAKEN
 2009190:	d6 20 e0 10 	st  %o3, [ %g3 + 0x10 ]                        
                                                                      
                                                                      
  c = the_node->child[(1-dir)];                                       
  the_node->child[(1-dir)] = c->child[dir];                           
 2009194:	99 2b 20 02 	sll  %o4, 2, %o4                               
 2009198:	84 00 40 0c 	add  %g1, %o4, %g2                             
 200919c:	de 00 a0 04 	ld  [ %g2 + 4 ], %o7                           
 20091a0:	de 21 20 04 	st  %o7, [ %g4 + 4 ]                           
                                                                      
  if (c->child[dir])                                                  
 20091a4:	c4 00 a0 04 	ld  [ %g2 + 4 ], %g2                           
 20091a8:	80 a0 a0 00 	cmp  %g2, 0                                    
 20091ac:	32 80 00 02 	bne,a   20091b4 <_RBTree_Validate_insert_unprotected+0x140>
 20091b0:	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;
 20091b4:	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;                                           
 20091b8:	98 00 40 0c 	add  %g1, %o4, %o4                             
 20091bc:	c6 23 20 04 	st  %g3, [ %o4 + 4 ]                           
                                                                      
  the_node->parent->child[the_node != the_node->parent->child[0]] = c;
 20091c0:	c8 00 a0 04 	ld  [ %g2 + 4 ], %g4                           
                                                                      
  c->parent = the_node->parent;                                       
 20091c4:	c4 20 40 00 	st  %g2, [ %g1 ]                               
  the_node->parent = c;                                               
 20091c8:	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;
 20091cc:	88 19 00 03 	xor  %g4, %g3, %g4                             
 20091d0:	80 a0 00 04 	cmp  %g0, %g4                                  
 20091d4:	86 40 20 00 	addx  %g0, 0, %g3                              
 20091d8:	87 28 e0 02 	sll  %g3, 2, %g3                               
 20091dc:	84 00 80 03 	add  %g2, %g3, %g2                             
 20091e0:	c2 20 a0 04 	st  %g1, [ %g2 + 4 ]                           
  ISR_Level level;                                                    
                                                                      
  _ISR_Disable( level );                                              
    _RBTree_Insert_unprotected( tree, node );                         
  _ISR_Enable( level );                                               
}                                                                     
 20091e4:	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;                         
 20091e8:	c4 00 40 00 	ld  [ %g1 ], %g2                               
 20091ec:	86 90 a0 00 	orcc  %g2, 0, %g3                              
 20091f0:	32 bf ff a9 	bne,a   2009094 <_RBTree_Validate_insert_unprotected+0x20><== ALWAYS TAKEN
 20091f4:	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;          
 20091f8:	c0 26 20 10 	clr  [ %i0 + 0x10 ]                            <== NOT EXECUTED
 20091fc:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 2009200:	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;                                           
 2009204:	c0 21 20 10 	clr  [ %g4 + 0x10 ]                            
      g->color = RBT_RED;                                             
 2009208:	da 20 a0 10 	st  %o5, [ %g2 + 0x10 ]                        
 200920c:	10 bf ff 9c 	b  200907c <_RBTree_Validate_insert_unprotected+0x8>
 2009210:	b0 10 00 02 	mov  %g2, %i0                                  
 2009214:	10 bf ff da 	b  200917c <_RBTree_Validate_insert_unprotected+0x108>
 2009218:	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];                        
 200921c:	10 bf ff a9 	b  20090c0 <_RBTree_Validate_insert_unprotected+0x4c>
 2009220:	c8 00 a0 08 	ld  [ %g2 + 8 ], %g4                           
                                                                      

020067ac <_RTEMS_tasks_Initialize_user_tasks_body>: * * Output parameters: NONE */ void _RTEMS_tasks_Initialize_user_tasks_body( void ) {
 20067ac:	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;
 20067b0:	03 00 80 52 	sethi  %hi(0x2014800), %g1                     
 20067b4:	82 10 62 c4 	or  %g1, 0x2c4, %g1	! 2014ac4 <Configuration_RTEMS_API>
 20067b8:	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 )                                                  
 20067bc:	80 a7 60 00 	cmp  %i5, 0                                    
 20067c0:	02 80 00 18 	be  2006820 <_RTEMS_tasks_Initialize_user_tasks_body+0x74>
 20067c4:	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++ ) {                       
 20067c8:	80 a6 e0 00 	cmp  %i3, 0                                    
 20067cc:	02 80 00 15 	be  2006820 <_RTEMS_tasks_Initialize_user_tasks_body+0x74><== NEVER TAKEN
 20067d0:	b8 10 20 00 	clr  %i4                                       
    return_value = rtems_task_create(                                 
 20067d4:	d4 07 60 04 	ld  [ %i5 + 4 ], %o2                           
 20067d8:	d0 07 40 00 	ld  [ %i5 ], %o0                               
 20067dc:	d2 07 60 08 	ld  [ %i5 + 8 ], %o1                           
 20067e0:	d6 07 60 14 	ld  [ %i5 + 0x14 ], %o3                        
 20067e4:	d8 07 60 0c 	ld  [ %i5 + 0xc ], %o4                         
 20067e8:	7f ff ff 70 	call  20065a8 <rtems_task_create>              
 20067ec:	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 ) )                
 20067f0:	94 92 20 00 	orcc  %o0, 0, %o2                              
 20067f4:	12 80 00 0d 	bne  2006828 <_RTEMS_tasks_Initialize_user_tasks_body+0x7c>
 20067f8:	d0 07 bf fc 	ld  [ %fp + -4 ], %o0                          
      _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value );
                                                                      
    return_value = rtems_task_start(                                  
 20067fc:	d4 07 60 18 	ld  [ %i5 + 0x18 ], %o2                        
 2006800:	40 00 00 0e 	call  2006838 <rtems_task_start>               
 2006804:	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 ) )                
 2006808:	94 92 20 00 	orcc  %o0, 0, %o2                              
 200680c:	12 80 00 07 	bne  2006828 <_RTEMS_tasks_Initialize_user_tasks_body+0x7c>
 2006810:	b8 07 20 01 	inc  %i4                                       
    return;                                                           
                                                                      
  /*                                                                  
   *  Now iterate over the initialization tasks and create/start them.
   */                                                                 
  for ( index=0 ; index < maximum ; index++ ) {                       
 2006814:	80 a7 00 1b 	cmp  %i4, %i3                                  
 2006818:	12 bf ff ef 	bne  20067d4 <_RTEMS_tasks_Initialize_user_tasks_body+0x28><== NEVER TAKEN
 200681c:	ba 07 60 1c 	add  %i5, 0x1c, %i5                            
 2006820:	81 c7 e0 08 	ret                                            
 2006824:	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 );
 2006828:	90 10 20 01 	mov  1, %o0                                    
 200682c:	40 00 03 e1 	call  20077b0 <_Internal_error_Occurred>       
 2006830:	92 10 20 01 	mov  1, %o1                                    
                                                                      

0200bc88 <_RTEMS_tasks_Post_switch_extension>: */ void _RTEMS_tasks_Post_switch_extension( Thread_Control *executing ) {
 200bc88:	9d e3 bf 98 	save  %sp, -104, %sp                           
  RTEMS_API_Control *api;                                             
  ASR_Information   *asr;                                             
  rtems_signal_set   signal_set;                                      
  Modes_Control      prev_mode;                                       
                                                                      
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
 200bc8c:	fa 06 21 58 	ld  [ %i0 + 0x158 ], %i5                       
  if ( !api )                                                         
 200bc90:	80 a7 60 00 	cmp  %i5, 0                                    
 200bc94:	02 80 00 1e 	be  200bd0c <_RTEMS_tasks_Post_switch_extension+0x84><== NEVER TAKEN
 200bc98:	01 00 00 00 	nop                                            
   *  Signal Processing                                               
   */                                                                 
                                                                      
  asr = &api->Signal;                                                 
                                                                      
  _ISR_Disable( level );                                              
 200bc9c:	7f ff d8 ad 	call  2001f50 <sparc_disable_interrupts>       
 200bca0:	01 00 00 00 	nop                                            
    signal_set = asr->signals_posted;                                 
 200bca4:	f8 07 60 14 	ld  [ %i5 + 0x14 ], %i4                        
    asr->signals_posted = 0;                                          
 200bca8:	c0 27 60 14 	clr  [ %i5 + 0x14 ]                            
  _ISR_Enable( level );                                               
 200bcac:	7f ff d8 ad 	call  2001f60 <sparc_enable_interrupts>        
 200bcb0:	01 00 00 00 	nop                                            
                                                                      
                                                                      
  if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ 
 200bcb4:	80 a7 20 00 	cmp  %i4, 0                                    
 200bcb8:	32 80 00 04 	bne,a   200bcc8 <_RTEMS_tasks_Post_switch_extension+0x40>
 200bcbc:	c2 07 60 1c 	ld  [ %i5 + 0x1c ], %g1                        
 200bcc0:	81 c7 e0 08 	ret                                            
 200bcc4:	81 e8 00 00 	restore                                        
    return;                                                           
                                                                      
  asr->nest_level += 1;                                               
  rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 
 200bcc8:	d0 07 60 10 	ld  [ %i5 + 0x10 ], %o0                        
                                                                      
                                                                      
  if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ 
    return;                                                           
                                                                      
  asr->nest_level += 1;                                               
 200bccc:	82 00 60 01 	inc  %g1                                       
  rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 
 200bcd0:	94 07 bf fc 	add  %fp, -4, %o2                              
 200bcd4:	37 00 00 3f 	sethi  %hi(0xfc00), %i3                        
                                                                      
                                                                      
  if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ 
    return;                                                           
                                                                      
  asr->nest_level += 1;                                               
 200bcd8:	c2 27 60 1c 	st  %g1, [ %i5 + 0x1c ]                        
  rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 
 200bcdc:	40 00 07 d2 	call  200dc24 <rtems_task_mode>                
 200bce0:	92 16 e3 ff 	or  %i3, 0x3ff, %o1                            
                                                                      
  (*asr->handler)( signal_set );                                      
 200bce4:	c2 07 60 0c 	ld  [ %i5 + 0xc ], %g1                         
 200bce8:	9f c0 40 00 	call  %g1                                      
 200bcec:	90 10 00 1c 	mov  %i4, %o0                                  
                                                                      
  asr->nest_level -= 1;                                               
 200bcf0:	c2 07 60 1c 	ld  [ %i5 + 0x1c ], %g1                        
  rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );     
 200bcf4:	d0 07 bf fc 	ld  [ %fp + -4 ], %o0                          
  asr->nest_level += 1;                                               
  rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 
                                                                      
  (*asr->handler)( signal_set );                                      
                                                                      
  asr->nest_level -= 1;                                               
 200bcf8:	82 00 7f ff 	add  %g1, -1, %g1                              
  rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );     
 200bcfc:	92 16 e3 ff 	or  %i3, 0x3ff, %o1                            
 200bd00:	94 07 bf fc 	add  %fp, -4, %o2                              
 200bd04:	40 00 07 c8 	call  200dc24 <rtems_task_mode>                
 200bd08:	c2 27 60 1c 	st  %g1, [ %i5 + 0x1c ]                        
 200bd0c:	81 c7 e0 08 	ret                                            
 200bd10:	81 e8 00 00 	restore                                        
                                                                      

0200bbf0 <_RTEMS_tasks_Switch_extension>: /* * Per Task Variables */ tvp = executing->task_variables;
 200bbf0:	c2 02 21 64 	ld  [ %o0 + 0x164 ], %g1                       
  while (tvp) {                                                       
 200bbf4:	80 a0 60 00 	cmp  %g1, 0                                    
 200bbf8:	22 80 00 0c 	be,a   200bc28 <_RTEMS_tasks_Switch_extension+0x38>
 200bbfc:	c2 02 61 64 	ld  [ %o1 + 0x164 ], %g1                       
    tvp->tval = *tvp->ptr;                                            
 200bc00:	c4 00 60 04 	ld  [ %g1 + 4 ], %g2                           
    *tvp->ptr = tvp->gval;                                            
 200bc04:	c6 00 60 08 	ld  [ %g1 + 8 ], %g3                           
   *  Per Task Variables                                              
   */                                                                 
                                                                      
  tvp = executing->task_variables;                                    
  while (tvp) {                                                       
    tvp->tval = *tvp->ptr;                                            
 200bc08:	c8 00 80 00 	ld  [ %g2 ], %g4                               
 200bc0c:	c8 20 60 0c 	st  %g4, [ %g1 + 0xc ]                         
    *tvp->ptr = tvp->gval;                                            
 200bc10:	c6 20 80 00 	st  %g3, [ %g2 ]                               
    tvp = (rtems_task_variable_t *)tvp->next;                         
 200bc14:	c2 00 40 00 	ld  [ %g1 ], %g1                               
  /*                                                                  
   *  Per Task Variables                                              
   */                                                                 
                                                                      
  tvp = executing->task_variables;                                    
  while (tvp) {                                                       
 200bc18:	80 a0 60 00 	cmp  %g1, 0                                    
 200bc1c:	32 bf ff fa 	bne,a   200bc04 <_RTEMS_tasks_Switch_extension+0x14><== NEVER TAKEN
 200bc20:	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;                                         
 200bc24:	c2 02 61 64 	ld  [ %o1 + 0x164 ], %g1                       
  while (tvp) {                                                       
 200bc28:	80 a0 60 00 	cmp  %g1, 0                                    
 200bc2c:	02 80 00 0b 	be  200bc58 <_RTEMS_tasks_Switch_extension+0x68>
 200bc30:	01 00 00 00 	nop                                            
    tvp->gval = *tvp->ptr;                                            
 200bc34:	c4 00 60 04 	ld  [ %g1 + 4 ], %g2                           
    *tvp->ptr = tvp->tval;                                            
 200bc38:	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;                                            
 200bc3c:	c8 00 80 00 	ld  [ %g2 ], %g4                               
 200bc40:	c8 20 60 08 	st  %g4, [ %g1 + 8 ]                           
    *tvp->ptr = tvp->tval;                                            
 200bc44:	c6 20 80 00 	st  %g3, [ %g2 ]                               
    tvp = (rtems_task_variable_t *)tvp->next;                         
 200bc48:	c2 00 40 00 	ld  [ %g1 ], %g1                               
    *tvp->ptr = tvp->gval;                                            
    tvp = (rtems_task_variable_t *)tvp->next;                         
  }                                                                   
                                                                      
  tvp = heir->task_variables;                                         
  while (tvp) {                                                       
 200bc4c:	80 a0 60 00 	cmp  %g1, 0                                    
 200bc50:	32 bf ff fa 	bne,a   200bc38 <_RTEMS_tasks_Switch_extension+0x48><== NEVER TAKEN
 200bc54:	c4 00 60 04 	ld  [ %g1 + 4 ], %g2                           <== NOT EXECUTED
 200bc58:	81 c3 e0 08 	retl                                           
                                                                      

02007a74 <_Rate_monotonic_Timeout>: void _Rate_monotonic_Timeout( Objects_Id id, void *ignored ) {
 2007a74:	9d e3 bf 98 	save  %sp, -104, %sp                           
 2007a78:	11 00 80 77 	sethi  %hi(0x201dc00), %o0                     
 2007a7c:	92 10 00 18 	mov  %i0, %o1                                  
 2007a80:	90 12 21 04 	or  %o0, 0x104, %o0                            
 2007a84:	40 00 08 1a 	call  2009aec <_Objects_Get>                   
 2007a88:	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 ) {                                               
 2007a8c:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 2007a90:	80 a0 60 00 	cmp  %g1, 0                                    
 2007a94:	12 80 00 16 	bne  2007aec <_Rate_monotonic_Timeout+0x78>    <== NEVER TAKEN
 2007a98:	ba 10 00 08 	mov  %o0, %i5                                  
                                                                      
    case OBJECTS_LOCAL:                                               
      the_thread = the_period->owner;                                 
 2007a9c:	d0 02 20 40 	ld  [ %o0 + 0x40 ], %o0                        
      if ( _States_Is_waiting_for_period( the_thread->current_state ) &&
 2007aa0:	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);                   
 2007aa4:	c4 02 20 10 	ld  [ %o0 + 0x10 ], %g2                        
 2007aa8:	80 88 80 01 	btst  %g2, %g1                                 
 2007aac:	22 80 00 08 	be,a   2007acc <_Rate_monotonic_Timeout+0x58>  
 2007ab0:	c2 07 60 38 	ld  [ %i5 + 0x38 ], %g1                        
 2007ab4:	c4 02 20 20 	ld  [ %o0 + 0x20 ], %g2                        
 2007ab8:	c2 07 60 08 	ld  [ %i5 + 8 ], %g1                           
 2007abc:	80 a0 80 01 	cmp  %g2, %g1                                  
 2007ac0:	02 80 00 19 	be  2007b24 <_Rate_monotonic_Timeout+0xb0>     
 2007ac4:	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 ) {
 2007ac8:	c2 07 60 38 	ld  [ %i5 + 0x38 ], %g1                        
 2007acc:	80 a0 60 01 	cmp  %g1, 1                                    
 2007ad0:	02 80 00 09 	be  2007af4 <_Rate_monotonic_Timeout+0x80>     
 2007ad4:	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;                   
 2007ad8:	c2 27 60 38 	st  %g1, [ %i5 + 0x38 ]                        
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )             
{                                                                     
  RTEMS_COMPILER_MEMORY_BARRIER();                                    
  _Thread_Dispatch_disable_level -= 1;                                
 2007adc:	03 00 80 77 	sethi  %hi(0x201dc00), %g1                     
 2007ae0:	c4 00 62 70 	ld  [ %g1 + 0x270 ], %g2	! 201de70 <_Thread_Dispatch_disable_level>
 2007ae4:	84 00 bf ff 	add  %g2, -1, %g2                              
 2007ae8:	c4 20 62 70 	st  %g2, [ %g1 + 0x270 ]                       
 2007aec:	81 c7 e0 08 	ret                                            
 2007af0:	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;    
 2007af4:	82 10 20 03 	mov  3, %g1                                    
                                                                      
        _Rate_monotonic_Initiate_statistics( the_period );            
 2007af8:	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;    
 2007afc:	c2 27 60 38 	st  %g1, [ %i5 + 0x38 ]                        
                                                                      
        _Rate_monotonic_Initiate_statistics( the_period );            
 2007b00:	7f ff fe 5c 	call  2007470 <_Rate_monotonic_Initiate_statistics>
 2007b04:	01 00 00 00 	nop                                            
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
 2007b08:	c2 07 60 3c 	ld  [ %i5 + 0x3c ], %g1                        
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 2007b0c:	11 00 80 77 	sethi  %hi(0x201dc00), %o0                     
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
 2007b10:	c2 27 60 1c 	st  %g1, [ %i5 + 0x1c ]                        
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 2007b14:	90 12 23 34 	or  %o0, 0x334, %o0                            
 2007b18:	40 00 0f cf 	call  200ba54 <_Watchdog_Insert>               
 2007b1c:	92 07 60 10 	add  %i5, 0x10, %o1                            
 2007b20:	30 bf ff ef 	b,a   2007adc <_Rate_monotonic_Timeout+0x68>   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unblock (                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
  _Thread_Clear_state( the_thread, STATES_BLOCKED );                  
 2007b24:	40 00 0a af 	call  200a5e0 <_Thread_Clear_state>            
 2007b28:	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 );            
 2007b2c:	10 bf ff f5 	b  2007b00 <_Rate_monotonic_Timeout+0x8c>      
 2007b30:	90 10 00 1d 	mov  %i5, %o0                                  
                                                                      

02008654 <_Scheduler_priority_Yield>: * ready chain * select heir */ void _Scheduler_priority_Yield(void) {
 2008654:	9d e3 bf a0 	save  %sp, -96, %sp                            
  Scheduler_priority_Per_thread *sched_info;                          
  ISR_Level                      level;                               
  Thread_Control                *executing;                           
  Chain_Control                 *ready;                               
                                                                      
  executing  = _Thread_Executing;                                     
 2008658:	37 00 80 56 	sethi  %hi(0x2015800), %i3                     
 200865c:	b6 16 e1 5c 	or  %i3, 0x15c, %i3	! 201595c <_Per_CPU_Information>
 2008660:	fa 06 e0 0c 	ld  [ %i3 + 0xc ], %i5                         
  sched_info = (Scheduler_priority_Per_thread *) executing->scheduler_info;
  ready      = sched_info->ready_chain;                               
 2008664:	c2 07 60 8c 	ld  [ %i5 + 0x8c ], %g1                        
  _ISR_Disable( level );                                              
 2008668:	7f ff e6 3a 	call  2001f50 <sparc_disable_interrupts>       
 200866c:	f8 00 40 00 	ld  [ %g1 ], %i4                               
 2008670:	b0 10 00 08 	mov  %o0, %i0                                  
    if ( !_Chain_Has_only_one_node( ready ) ) {                       
 2008674:	c4 07 00 00 	ld  [ %i4 ], %g2                               
 2008678:	c2 07 20 08 	ld  [ %i4 + 8 ], %g1                           
 200867c:	80 a0 80 01 	cmp  %g2, %g1                                  
 2008680:	02 80 00 16 	be  20086d8 <_Scheduler_priority_Yield+0x84>   
 2008684:	86 07 20 04 	add  %i4, 4, %g3                               
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
 2008688:	c2 07 60 04 	ld  [ %i5 + 4 ], %g1                           
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
 200868c:	c4 07 40 00 	ld  [ %i5 ], %g2                               
  previous       = the_node->previous;                                
  next->previous = previous;                                          
 2008690:	c2 20 a0 04 	st  %g1, [ %g2 + 4 ]                           
  previous->next = next;                                              
 2008694:	c4 20 40 00 	st  %g2, [ %g1 ]                               
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
 2008698:	c2 07 20 08 	ld  [ %i4 + 8 ], %g1                           
                                                                      
  the_node->next = tail;                                              
 200869c:	c6 27 40 00 	st  %g3, [ %i5 ]                               
  tail->previous = the_node;                                          
 20086a0:	fa 27 20 08 	st  %i5, [ %i4 + 8 ]                           
  old_last->next = the_node;                                          
 20086a4:	fa 20 40 00 	st  %i5, [ %g1 ]                               
  the_node->previous = old_last;                                      
 20086a8:	c2 27 60 04 	st  %g1, [ %i5 + 4 ]                           
      _Chain_Extract_unprotected( &executing->Object.Node );          
      _Chain_Append_unprotected( ready, &executing->Object.Node );    
                                                                      
      _ISR_Flash( level );                                            
 20086ac:	7f ff e6 2d 	call  2001f60 <sparc_enable_interrupts>        
 20086b0:	01 00 00 00 	nop                                            
 20086b4:	7f ff e6 27 	call  2001f50 <sparc_disable_interrupts>       
 20086b8:	01 00 00 00 	nop                                            
                                                                      
      if ( _Thread_Is_heir( executing ) )                             
 20086bc:	c2 06 e0 10 	ld  [ %i3 + 0x10 ], %g1                        
 20086c0:	80 a7 40 01 	cmp  %i5, %g1                                  
 20086c4:	02 80 00 0b 	be  20086f0 <_Scheduler_priority_Yield+0x9c>   <== ALWAYS TAKEN
 20086c8:	82 10 20 01 	mov  1, %g1                                    
        _Thread_Heir = (Thread_Control *) _Chain_First( ready );      
      _Thread_Dispatch_necessary = true;                              
    }                                                                 
    else if ( !_Thread_Is_heir( executing ) )                         
      _Thread_Dispatch_necessary = true;                              
 20086cc:	c2 2e e0 18 	stb  %g1, [ %i3 + 0x18 ]                       <== NOT EXECUTED
                                                                      
  _ISR_Enable( level );                                               
 20086d0:	7f ff e6 24 	call  2001f60 <sparc_enable_interrupts>        
 20086d4:	81 e8 00 00 	restore                                        
                                                                      
      if ( _Thread_Is_heir( executing ) )                             
        _Thread_Heir = (Thread_Control *) _Chain_First( ready );      
      _Thread_Dispatch_necessary = true;                              
    }                                                                 
    else if ( !_Thread_Is_heir( executing ) )                         
 20086d8:	c2 06 e0 10 	ld  [ %i3 + 0x10 ], %g1                        
 20086dc:	80 a7 40 01 	cmp  %i5, %g1                                  
 20086e0:	02 bf ff fc 	be  20086d0 <_Scheduler_priority_Yield+0x7c>   <== ALWAYS TAKEN
 20086e4:	82 10 20 01 	mov  1, %g1                                    
      _Thread_Dispatch_necessary = true;                              
 20086e8:	c2 2e e0 18 	stb  %g1, [ %i3 + 0x18 ]                       <== NOT EXECUTED
 20086ec:	30 bf ff f9 	b,a   20086d0 <_Scheduler_priority_Yield+0x7c> <== NOT EXECUTED
      _Chain_Append_unprotected( ready, &executing->Object.Node );    
                                                                      
      _ISR_Flash( level );                                            
                                                                      
      if ( _Thread_Is_heir( executing ) )                             
        _Thread_Heir = (Thread_Control *) _Chain_First( ready );      
 20086f0:	c2 07 00 00 	ld  [ %i4 ], %g1                               
 20086f4:	c2 26 e0 10 	st  %g1, [ %i3 + 0x10 ]                        
      _Thread_Dispatch_necessary = true;                              
    }                                                                 
    else if ( !_Thread_Is_heir( executing ) )                         
      _Thread_Dispatch_necessary = true;                              
 20086f8:	82 10 20 01 	mov  1, %g1                                    
 20086fc:	c2 2e e0 18 	stb  %g1, [ %i3 + 0x18 ]                       
 2008700:	30 bf ff f4 	b,a   20086d0 <_Scheduler_priority_Yield+0x7c> 
                                                                      

020088d0 <_Scheduler_simple_Ready_queue_Enqueue_first>: { Chain_Control *ready; Chain_Node *the_node; Thread_Control *current; ready = (Chain_Control *)_Scheduler.information;
 20088d0:	03 00 80 55 	sethi  %hi(0x2015400), %g1                     
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
 20088d4:	c2 00 62 64 	ld  [ %g1 + 0x264 ], %g1	! 2015664 <_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 ) {
 20088d8:	c6 02 20 14 	ld  [ %o0 + 0x14 ], %g3                        
 20088dc:	c2 00 40 00 	ld  [ %g1 ], %g1                               
 20088e0:	c4 00 60 14 	ld  [ %g1 + 0x14 ], %g2                        
 20088e4:	80 a0 80 03 	cmp  %g2, %g3                                  
 20088e8:	3a 80 00 08 	bcc,a   2008908 <_Scheduler_simple_Ready_queue_Enqueue_first+0x38>
 20088ec:	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 ) {
 20088f0:	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 ) {
 20088f4:	c4 00 60 14 	ld  [ %g1 + 0x14 ], %g2                        
 20088f8:	80 a0 80 03 	cmp  %g2, %g3                                  
 20088fc:	2a bf ff fe 	bcs,a   20088f4 <_Scheduler_simple_Ready_queue_Enqueue_first+0x24><== NEVER TAKEN
 2008900:	c2 00 40 00 	ld  [ %g1 ], %g1                               
      current = (Thread_Control *)current->Object.Node.previous;      
 2008904:	c2 00 60 04 	ld  [ %g1 + 4 ], %g1                           
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
  before_node           = after_node->next;                           
 2008908:	c4 00 40 00 	ld  [ %g1 ], %g2                               
  Chain_Node *the_node                                                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
 200890c:	c2 22 20 04 	st  %g1, [ %o0 + 4 ]                           
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
 2008910:	d0 20 40 00 	st  %o0, [ %g1 ]                               
  the_node->next        = before_node;                                
 2008914:	c4 22 00 00 	st  %g2, [ %o0 ]                               
    }                                                                 
  }                                                                   
                                                                      
  /* enqueue */                                                       
  _Chain_Insert_unprotected( (Chain_Node *)current, &the_thread->Object.Node );
}                                                                     
 2008918:	81 c3 e0 08 	retl                                           
 200891c:	d0 20 a0 04 	st  %o0, [ %g2 + 4 ]                           
                                                                      

020072e4 <_TOD_Tickle_ticks>: * * Output parameters: NONE */ void _TOD_Tickle_ticks( void ) {
 20072e4:	9d e3 bf 98 	save  %sp, -104, %sp                           
                                                                      
  /* Convert the tick quantum to a timestamp */                       
  _Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() );
                                                                      
  /* Update the counter of ticks since boot */                        
  _Watchdog_Ticks_since_boot += 1;                                    
 20072e8:	05 00 80 56 	sethi  %hi(0x2015800), %g2                     
{                                                                     
  Timestamp_Control tick;                                             
  uint32_t          seconds;                                          
                                                                      
  /* Convert the tick quantum to a timestamp */                       
  _Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() );
 20072ec:	03 00 80 52 	sethi  %hi(0x2014800), %g1                     
                                                                      
  /* Update the counter of ticks since boot */                        
  _Watchdog_Ticks_since_boot += 1;                                    
 20072f0:	c6 00 a0 44 	ld  [ %g2 + 0x44 ], %g3                        
{                                                                     
  Timestamp_Control tick;                                             
  uint32_t          seconds;                                          
                                                                      
  /* Convert the tick quantum to a timestamp */                       
  _Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() );
 20072f4:	c2 00 62 88 	ld  [ %g1 + 0x288 ], %g1                       
                                                                      
  /* Update the counter of ticks since boot */                        
  _Watchdog_Ticks_since_boot += 1;                                    
 20072f8:	86 00 e0 01 	inc  %g3                                       
{                                                                     
  Timestamp_Control tick;                                             
  uint32_t          seconds;                                          
                                                                      
  /* Convert the tick quantum to a timestamp */                       
  _Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() );
 20072fc:	bb 28 60 07 	sll  %g1, 7, %i5                               
 2007300:	89 28 60 02 	sll  %g1, 2, %g4                               
 2007304:	88 27 40 04 	sub  %i5, %g4, %g4                             
 2007308:	82 01 00 01 	add  %g4, %g1, %g1                             
 200730c:	83 28 60 03 	sll  %g1, 3, %g1                               
                                                                      
  /* Update the counter of ticks since boot */                        
  _Watchdog_Ticks_since_boot += 1;                                    
                                                                      
  /* Update the timespec format uptime */                             
  _Timestamp_Add_to( &_TOD_Uptime, &tick );                           
 2007310:	92 07 bf f8 	add  %fp, -8, %o1                              
                                                                      
  /* Convert the tick quantum to a timestamp */                       
  _Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() );
                                                                      
  /* Update the counter of ticks since boot */                        
  _Watchdog_Ticks_since_boot += 1;                                    
 2007314:	c6 20 a0 44 	st  %g3, [ %g2 + 0x44 ]                        
{                                                                     
  Timestamp_Control tick;                                             
  uint32_t          seconds;                                          
                                                                      
  /* Convert the tick quantum to a timestamp */                       
  _Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() );
 2007318:	c2 27 bf fc 	st  %g1, [ %fp + -4 ]                          
 200731c:	c0 27 bf f8 	clr  [ %fp + -8 ]                              
                                                                      
  /* Update the counter of ticks since boot */                        
  _Watchdog_Ticks_since_boot += 1;                                    
                                                                      
  /* Update the timespec format uptime */                             
  _Timestamp_Add_to( &_TOD_Uptime, &tick );                           
 2007320:	11 00 80 55 	sethi  %hi(0x2015400), %o0                     
 2007324:	40 00 09 20 	call  20097a4 <_Timespec_Add_to>               
 2007328:	90 12 23 ac 	or  %o0, 0x3ac, %o0	! 20157ac <_TOD_Uptime>    
  /* we do not care how much the uptime changed */                    
                                                                      
  /* Update the timespec format TOD */                                
  seconds = _Timestamp_Add_to_at_tick( &_TOD_Now, &tick );            
 200732c:	92 07 bf f8 	add  %fp, -8, %o1                              
 2007330:	11 00 80 55 	sethi  %hi(0x2015400), %o0                     
 2007334:	40 00 09 1c 	call  20097a4 <_Timespec_Add_to>               
 2007338:	90 12 23 bc 	or  %o0, 0x3bc, %o0	! 20157bc <_TOD_Now>       
  while ( seconds ) {                                                 
 200733c:	ba 92 20 00 	orcc  %o0, 0, %i5                              
 2007340:	02 80 00 08 	be  2007360 <_TOD_Tickle_ticks+0x7c>           
 2007344:	39 00 80 55 	sethi  %hi(0x2015400), %i4                     
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Watchdog_Tickle_seconds( void )            
{                                                                     
                                                                      
  _Watchdog_Tickle( &_Watchdog_Seconds_chain );                       
 2007348:	b8 17 23 e8 	or  %i4, 0x3e8, %i4	! 20157e8 <_Watchdog_Seconds_chain>
 200734c:	40 00 0a a2 	call  2009dd4 <_Watchdog_Tickle>               
 2007350:	90 10 00 1c 	mov  %i4, %o0                                  
 2007354:	ba 87 7f ff 	addcc  %i5, -1, %i5                            
 2007358:	12 bf ff fd 	bne  200734c <_TOD_Tickle_ticks+0x68>          <== NEVER TAKEN
 200735c:	01 00 00 00 	nop                                            
 2007360:	81 c7 e0 08 	ret                                            
 2007364:	81 e8 00 00 	restore                                        
                                                                      

02007498 <_TOD_Validate>: */ bool _TOD_Validate( const rtems_time_of_day *the_tod ) {
 2007498:	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();                 
 200749c:	03 00 80 76 	sethi  %hi(0x201d800), %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;                                                    
 20074a0:	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)                                  ||                  
 20074a4:	80 a6 20 00 	cmp  %i0, 0                                    
 20074a8:	02 80 00 2c 	be  2007558 <_TOD_Validate+0xc0>               <== NEVER TAKEN
 20074ac:	d2 00 62 48 	ld  [ %g1 + 0x248 ], %o1                       
)                                                                     
{                                                                     
  uint32_t   days_in_month;                                           
  uint32_t   ticks_per_second;                                        
                                                                      
  ticks_per_second = TOD_MICROSECONDS_PER_SECOND /                    
 20074b0:	11 00 03 d0 	sethi  %hi(0xf4000), %o0                       
 20074b4:	40 00 48 6f 	call  2019670 <.udiv>                          
 20074b8:	90 12 22 40 	or  %o0, 0x240, %o0	! f4240 <PROM_START+0xf4240>
	    rtems_configuration_get_microseconds_per_tick();                 
  if ((!the_tod)                                  ||                  
 20074bc:	c2 06 20 18 	ld  [ %i0 + 0x18 ], %g1                        
 20074c0:	80 a2 00 01 	cmp  %o0, %g1                                  
 20074c4:	28 80 00 26 	bleu,a   200755c <_TOD_Validate+0xc4>          
 20074c8:	b0 0f 60 01 	and  %i5, 1, %i0                               
      (the_tod->ticks  >= ticks_per_second)       ||                  
 20074cc:	c2 06 20 14 	ld  [ %i0 + 0x14 ], %g1                        
 20074d0:	80 a0 60 3b 	cmp  %g1, 0x3b                                 
 20074d4:	38 80 00 22 	bgu,a   200755c <_TOD_Validate+0xc4>           
 20074d8:	b0 0f 60 01 	and  %i5, 1, %i0                               
      (the_tod->second >= TOD_SECONDS_PER_MINUTE) ||                  
 20074dc:	c2 06 20 10 	ld  [ %i0 + 0x10 ], %g1                        
 20074e0:	80 a0 60 3b 	cmp  %g1, 0x3b                                 
 20074e4:	38 80 00 1e 	bgu,a   200755c <_TOD_Validate+0xc4>           
 20074e8:	b0 0f 60 01 	and  %i5, 1, %i0                               
      (the_tod->minute >= TOD_MINUTES_PER_HOUR)   ||                  
 20074ec:	c2 06 20 0c 	ld  [ %i0 + 0xc ], %g1                         
 20074f0:	80 a0 60 17 	cmp  %g1, 0x17                                 
 20074f4:	38 80 00 1a 	bgu,a   200755c <_TOD_Validate+0xc4>           
 20074f8:	b0 0f 60 01 	and  %i5, 1, %i0                               
      (the_tod->hour   >= TOD_HOURS_PER_DAY)      ||                  
      (the_tod->month  == 0)                      ||                  
 20074fc:	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)      ||                  
 2007500:	80 a0 60 00 	cmp  %g1, 0                                    
 2007504:	02 80 00 15 	be  2007558 <_TOD_Validate+0xc0>               <== NEVER TAKEN
 2007508:	80 a0 60 0c 	cmp  %g1, 0xc                                  
      (the_tod->month  == 0)                      ||                  
 200750c:	38 80 00 14 	bgu,a   200755c <_TOD_Validate+0xc4>           
 2007510:	b0 0f 60 01 	and  %i5, 1, %i0                               
      (the_tod->month  >  TOD_MONTHS_PER_YEAR)    ||                  
      (the_tod->year   <  TOD_BASE_YEAR)          ||                  
 2007514:	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)    ||                  
 2007518:	80 a0 a7 c3 	cmp  %g2, 0x7c3                                
 200751c:	28 80 00 10 	bleu,a   200755c <_TOD_Validate+0xc4>          
 2007520:	b0 0f 60 01 	and  %i5, 1, %i0                               
      (the_tod->year   <  TOD_BASE_YEAR)          ||                  
      (the_tod->day    == 0) )                                        
 2007524:	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)          ||                  
 2007528:	80 a0 e0 00 	cmp  %g3, 0                                    
 200752c:	02 80 00 0b 	be  2007558 <_TOD_Validate+0xc0>               <== NEVER TAKEN
 2007530:	80 88 a0 03 	btst  3, %g2                                   
      (the_tod->day    == 0) )                                        
     return false;                                                    
                                                                      
  if ( (the_tod->year % 4) == 0 )                                     
 2007534:	32 80 00 0c 	bne,a   2007564 <_TOD_Validate+0xcc>           
 2007538:	83 28 60 02 	sll  %g1, 2, %g1                               
    days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ];       
 200753c:	82 00 60 0d 	add  %g1, 0xd, %g1                             
 2007540:	05 00 80 71 	sethi  %hi(0x201c400), %g2                     
 2007544:	83 28 60 02 	sll  %g1, 2, %g1                               
 2007548:	84 10 a3 60 	or  %g2, 0x360, %g2                            
 200754c:	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(                                                   
 2007550:	80 a0 40 03 	cmp  %g1, %g3                                  
 2007554:	ba 60 3f ff 	subx  %g0, -1, %i5                             
                                                                      
  if ( the_tod->day > days_in_month )                                 
    return false;                                                     
                                                                      
  return true;                                                        
}                                                                     
 2007558:	b0 0f 60 01 	and  %i5, 1, %i0                               
 200755c:	81 c7 e0 08 	ret                                            
 2007560:	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 ];       
 2007564:	05 00 80 71 	sethi  %hi(0x201c400), %g2                     
 2007568:	84 10 a3 60 	or  %g2, 0x360, %g2	! 201c760 <_TOD_Days_per_month>
 200756c:	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(                                                   
 2007570:	80 a0 40 03 	cmp  %g1, %g3                                  
 2007574:	10 bf ff f9 	b  2007558 <_TOD_Validate+0xc0>                
 2007578:	ba 60 3f ff 	subx  %g0, -1, %i5                             
                                                                      

0200875c <_Thread_Change_priority>: void _Thread_Change_priority( Thread_Control *the_thread, Priority_Control new_priority, bool prepend_it ) {
 200875c:	9d e3 bf a0 	save  %sp, -96, %sp                            
  States_Control state, original_state;                               
                                                                      
  /*                                                                  
   * Save original state                                              
   */                                                                 
  original_state = the_thread->current_state;                         
 2008760:	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 );                                
 2008764:	40 00 03 96 	call  20095bc <_Thread_Set_transient>          
 2008768:	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 )                  
 200876c:	c2 06 20 14 	ld  [ %i0 + 0x14 ], %g1                        
 2008770:	80 a0 40 19 	cmp  %g1, %i1                                  
 2008774:	02 80 00 05 	be  2008788 <_Thread_Change_priority+0x2c>     
 2008778:	ba 10 00 18 	mov  %i0, %i5                                  
    _Thread_Set_priority( the_thread, new_priority );                 
 200877c:	90 10 00 18 	mov  %i0, %o0                                  
 2008780:	40 00 03 75 	call  2009554 <_Thread_Set_priority>           
 2008784:	92 10 00 19 	mov  %i1, %o1                                  
                                                                      
  _ISR_Disable( level );                                              
 2008788:	7f ff e5 f2 	call  2001f50 <sparc_disable_interrupts>       
 200878c:	01 00 00 00 	nop                                            
 2008790:	b0 10 00 08 	mov  %o0, %i0                                  
                                                                      
  /*                                                                  
   *  If the thread has more than STATES_TRANSIENT set, then it is blocked,
   *  If it is blocked on a thread queue, then we need to requeue it. 
   */                                                                 
  state = the_thread->current_state;                                  
 2008794:	f6 07 60 10 	ld  [ %i5 + 0x10 ], %i3                        
  if ( state != STATES_TRANSIENT ) {                                  
 2008798:	80 a6 e0 04 	cmp  %i3, 4                                    
 200879c:	02 80 00 18 	be  20087fc <_Thread_Change_priority+0xa0>     
 20087a0:	80 8f 20 04 	btst  4, %i4                                   
    /* Only clear the transient state if it wasn't set already */     
    if ( ! _States_Is_transient( original_state ) )                   
 20087a4:	02 80 00 0b 	be  20087d0 <_Thread_Change_priority+0x74>     <== ALWAYS TAKEN
 20087a8:	82 0e ff fb 	and  %i3, -5, %g1                              
      the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
    _ISR_Enable( level );                                             
 20087ac:	7f ff e5 ed 	call  2001f60 <sparc_enable_interrupts>        <== NOT EXECUTED
 20087b0:	90 10 00 18 	mov  %i0, %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);              
 20087b4:	03 00 00 ef 	sethi  %hi(0x3bc00), %g1                       <== NOT EXECUTED
 20087b8:	82 10 62 e0 	or  %g1, 0x2e0, %g1	! 3bee0 <PROM_START+0x3bee0><== NOT EXECUTED
    if ( _States_Is_waiting_on_thread_queue( state ) ) {              
 20087bc:	80 8e c0 01 	btst  %i3, %g1                                 <== NOT EXECUTED
 20087c0:	32 80 00 0d 	bne,a   20087f4 <_Thread_Change_priority+0x98> <== NOT EXECUTED
 20087c4:	f0 07 60 44 	ld  [ %i5 + 0x44 ], %i0                        <== NOT EXECUTED
 20087c8:	81 c7 e0 08 	ret                                            
 20087cc:	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 );
 20087d0:	c2 27 60 10 	st  %g1, [ %i5 + 0x10 ]                        
    _ISR_Enable( level );                                             
 20087d4:	7f ff e5 e3 	call  2001f60 <sparc_enable_interrupts>        
 20087d8:	90 10 00 18 	mov  %i0, %o0                                  
 20087dc:	03 00 00 ef 	sethi  %hi(0x3bc00), %g1                       
 20087e0:	82 10 62 e0 	or  %g1, 0x2e0, %g1	! 3bee0 <PROM_START+0x3bee0>
    if ( _States_Is_waiting_on_thread_queue( state ) ) {              
 20087e4:	80 8e c0 01 	btst  %i3, %g1                                 
 20087e8:	02 bf ff f8 	be  20087c8 <_Thread_Change_priority+0x6c>     
 20087ec:	01 00 00 00 	nop                                            
      _Thread_queue_Requeue( the_thread->Wait.queue, the_thread );    
 20087f0:	f0 07 60 44 	ld  [ %i5 + 0x44 ], %i0                        
 20087f4:	40 00 03 28 	call  2009494 <_Thread_queue_Requeue>          
 20087f8:	93 e8 00 1d 	restore  %g0, %i5, %o1                         
 20087fc:	39 00 80 52 	sethi  %hi(0x2014800), %i4                     
    }                                                                 
    return;                                                           
  }                                                                   
                                                                      
  /* Only clear the transient state if it wasn't set already */       
  if ( ! _States_Is_transient( original_state ) ) {                   
 2008800:	12 80 00 08 	bne  2008820 <_Thread_Change_priority+0xc4>    <== NEVER TAKEN
 2008804:	b8 17 23 64 	or  %i4, 0x364, %i4	! 2014b64 <_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 )                                                 
 2008808:	80 a6 a0 00 	cmp  %i2, 0                                    
 200880c:	02 80 00 1a 	be  2008874 <_Thread_Change_priority+0x118>    
 2008810:	c0 27 60 10 	clr  [ %i5 + 0x10 ]                            
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_Enqueue_first(                   
  Thread_Control    *the_thread                                       
)                                                                     
{                                                                     
  _Scheduler.Operations.enqueue_first( the_thread );                  
 2008814:	c2 07 20 28 	ld  [ %i4 + 0x28 ], %g1                        
 2008818:	9f c0 40 00 	call  %g1                                      
 200881c:	90 10 00 1d 	mov  %i5, %o0                                  
      _Scheduler_Enqueue_first( the_thread );                         
    else                                                              
      _Scheduler_Enqueue( the_thread );                               
  }                                                                   
                                                                      
  _ISR_Flash( level );                                                
 2008820:	7f ff e5 d0 	call  2001f60 <sparc_enable_interrupts>        
 2008824:	90 10 00 18 	mov  %i0, %o0                                  
 2008828:	7f ff e5 ca 	call  2001f50 <sparc_disable_interrupts>       
 200882c:	01 00 00 00 	nop                                            
 *  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();                                   
 2008830:	c2 07 20 08 	ld  [ %i4 + 8 ], %g1                           
 2008834:	9f c0 40 00 	call  %g1                                      
 2008838:	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 );                       
 200883c:	03 00 80 56 	sethi  %hi(0x2015800), %g1                     
 2008840:	82 10 61 5c 	or  %g1, 0x15c, %g1	! 201595c <_Per_CPU_Information>
 2008844:	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() &&                       
 2008848:	c6 00 60 10 	ld  [ %g1 + 0x10 ], %g3                        
 200884c:	80 a0 80 03 	cmp  %g2, %g3                                  
 2008850:	02 80 00 07 	be  200886c <_Thread_Change_priority+0x110>    
 2008854:	01 00 00 00 	nop                                            
 2008858:	c4 08 a0 74 	ldub  [ %g2 + 0x74 ], %g2                      
 200885c:	80 a0 a0 00 	cmp  %g2, 0                                    
 2008860:	02 80 00 03 	be  200886c <_Thread_Change_priority+0x110>    
 2008864:	84 10 20 01 	mov  1, %g2                                    
       _Thread_Executing->is_preemptible )                            
    _Thread_Dispatch_necessary = true;                                
 2008868:	c4 28 60 18 	stb  %g2, [ %g1 + 0x18 ]                       
  _ISR_Enable( level );                                               
 200886c:	7f ff e5 bd 	call  2001f60 <sparc_enable_interrupts>        
 2008870:	81 e8 00 00 	restore                                        
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_Enqueue(                         
  Thread_Control    *the_thread                                       
)                                                                     
{                                                                     
  _Scheduler.Operations.enqueue( the_thread );                        
 2008874:	c2 07 20 24 	ld  [ %i4 + 0x24 ], %g1                        
 2008878:	9f c0 40 00 	call  %g1                                      
 200887c:	90 10 00 1d 	mov  %i5, %o0                                  
 2008880:	30 bf ff e8 	b,a   2008820 <_Thread_Change_priority+0xc4>   
                                                                      

02008a90 <_Thread_Delay_ended>: void _Thread_Delay_ended( Objects_Id id, void *ignored __attribute__((unused)) ) {
 2008a90:	9d e3 bf 98 	save  %sp, -104, %sp                           
  Thread_Control    *the_thread;                                      
  Objects_Locations  location;                                        
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 2008a94:	90 10 00 18 	mov  %i0, %o0                                  
 2008a98:	40 00 00 76 	call  2008c70 <_Thread_Get>                    
 2008a9c:	92 07 bf fc 	add  %fp, -4, %o1                              
  switch ( location ) {                                               
 2008aa0:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 2008aa4:	80 a0 60 00 	cmp  %g1, 0                                    
 2008aa8:	12 80 00 08 	bne  2008ac8 <_Thread_Delay_ended+0x38>        <== NEVER TAKEN
 2008aac:	13 04 00 00 	sethi  %hi(0x10000000), %o1                    
#if defined(RTEMS_MULTIPROCESSING)                                    
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
      break;                                                          
    case OBJECTS_LOCAL:                                               
      _Thread_Clear_state(                                            
 2008ab0:	7f ff ff 75 	call  2008884 <_Thread_Clear_state>            
 2008ab4:	92 12 60 18 	or  %o1, 0x18, %o1	! 10000018 <RAM_END+0xdc00018>
 2008ab8:	03 00 80 55 	sethi  %hi(0x2015400), %g1                     
 2008abc:	c4 00 63 30 	ld  [ %g1 + 0x330 ], %g2	! 2015730 <_Thread_Dispatch_disable_level>
 2008ac0:	84 00 bf ff 	add  %g2, -1, %g2                              
 2008ac4:	c4 20 63 30 	st  %g2, [ %g1 + 0x330 ]                       
 2008ac8:	81 c7 e0 08 	ret                                            
 2008acc:	81 e8 00 00 	restore                                        
                                                                      

02008ad0 <_Thread_Dispatch>: * dispatch thread * no dispatch thread */ void _Thread_Dispatch( void ) {
 2008ad0:	9d e3 bf 90 	save  %sp, -112, %sp                           
  Thread_Control   *executing;                                        
  Thread_Control   *heir;                                             
  ISR_Level         level;                                            
                                                                      
  executing   = _Thread_Executing;                                    
 2008ad4:	37 00 80 56 	sethi  %hi(0x2015800), %i3                     
 2008ad8:	b6 16 e1 5c 	or  %i3, 0x15c, %i3	! 201595c <_Per_CPU_Information>
  _ISR_Disable( level );                                              
 2008adc:	7f ff e5 1d 	call  2001f50 <sparc_disable_interrupts>       
 2008ae0:	fa 06 e0 0c 	ld  [ %i3 + 0xc ], %i5                         
  while ( _Thread_Dispatch_necessary == true ) {                      
 2008ae4:	c2 0e e0 18 	ldub  [ %i3 + 0x18 ], %g1                      
 2008ae8:	80 a0 60 00 	cmp  %g1, 0                                    
 2008aec:	02 80 00 4e 	be  2008c24 <_Thread_Dispatch+0x154>           
 2008af0:	31 00 80 55 	sethi  %hi(0x2015400), %i0                     
    heir = _Thread_Heir;                                              
 2008af4:	f8 06 e0 10 	ld  [ %i3 + 0x10 ], %i4                        
    _Thread_Dispatch_disable_level = 1;                               
 2008af8:	82 10 20 01 	mov  1, %g1                                    
 2008afc:	c2 26 23 30 	st  %g1, [ %i0 + 0x330 ]                       
    _Thread_Dispatch_necessary = false;                               
 2008b00:	c0 2e e0 18 	clrb  [ %i3 + 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 )                                          
 2008b04:	80 a7 40 1c 	cmp  %i5, %i4                                  
 2008b08:	02 80 00 47 	be  2008c24 <_Thread_Dispatch+0x154>           
 2008b0c:	f8 26 e0 0c 	st  %i4, [ %i3 + 0xc ]                         
 2008b10:	35 00 80 55 	sethi  %hi(0x2015400), %i2                     
 2008b14:	23 00 80 55 	sethi  %hi(0x2015400), %l1                     
 2008b18:	b4 16 a3 e0 	or  %i2, 0x3e0, %i2                            
 2008b1c:	a2 14 63 b8 	or  %l1, 0x3b8, %l1                            
#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;            
 2008b20:	27 00 80 55 	sethi  %hi(0x2015400), %l3                     
                                                                      
    #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                        
      {                                                               
        Timestamp_Control uptime, ran;                                
        _TOD_Get_uptime( &uptime );                                   
        _Timestamp_Subtract(                                          
 2008b24:	a0 10 00 1a 	mov  %i2, %l0                                  
#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 );                      
 2008b28:	33 00 80 55 	sethi  %hi(0x2015400), %i1                     
                                                                      
  executing   = _Thread_Executing;                                    
  _ISR_Disable( level );                                              
  while ( _Thread_Dispatch_necessary == true ) {                      
    heir = _Thread_Heir;                                              
    _Thread_Dispatch_disable_level = 1;                               
 2008b2c:	10 80 00 38 	b  2008c0c <_Thread_Dispatch+0x13c>            
 2008b30:	a4 10 20 01 	mov  1, %l2                                    
    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 );                                             
 2008b34:	7f ff e5 0b 	call  2001f60 <sparc_enable_interrupts>        
 2008b38:	01 00 00 00 	nop                                            
                                                                      
    #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                        
      {                                                               
        Timestamp_Control uptime, ran;                                
        _TOD_Get_uptime( &uptime );                                   
 2008b3c:	40 00 0d 69 	call  200c0e0 <_TOD_Get_uptime>                
 2008b40:	90 07 bf f0 	add  %fp, -16, %o0                             
        _Timestamp_Subtract(                                          
 2008b44:	90 10 00 10 	mov  %l0, %o0                                  
 2008b48:	92 07 bf f0 	add  %fp, -16, %o1                             
 2008b4c:	40 00 03 2f 	call  2009808 <_Timespec_Subtract>             
 2008b50:	94 07 bf f8 	add  %fp, -8, %o2                              
          &_Thread_Time_of_last_context_switch,                       
          &uptime,                                                    
          &ran                                                        
        );                                                            
        _Timestamp_Add_to( &executing->cpu_time_used, &ran );         
 2008b54:	90 07 60 84 	add  %i5, 0x84, %o0                            
 2008b58:	40 00 03 13 	call  20097a4 <_Timespec_Add_to>               
 2008b5c:	92 07 bf f8 	add  %fp, -8, %o1                              
        _Thread_Time_of_last_context_switch = uptime;                 
 2008b60:	c4 07 bf f0 	ld  [ %fp + -16 ], %g2                         
    #endif                                                            
                                                                      
    /*                                                                
     * Switch libc's task specific data.                              
     */                                                               
    if ( _Thread_libc_reent ) {                                       
 2008b64:	c2 04 40 00 	ld  [ %l1 ], %g1                               
          &_Thread_Time_of_last_context_switch,                       
          &uptime,                                                    
          &ran                                                        
        );                                                            
        _Timestamp_Add_to( &executing->cpu_time_used, &ran );         
        _Thread_Time_of_last_context_switch = uptime;                 
 2008b68:	c4 26 80 00 	st  %g2, [ %i2 ]                               
 2008b6c:	c4 07 bf f4 	ld  [ %fp + -12 ], %g2                         
    #endif                                                            
                                                                      
    /*                                                                
     * Switch libc's task specific data.                              
     */                                                               
    if ( _Thread_libc_reent ) {                                       
 2008b70:	80 a0 60 00 	cmp  %g1, 0                                    
 2008b74:	02 80 00 06 	be  2008b8c <_Thread_Dispatch+0xbc>            <== NEVER TAKEN
 2008b78:	c4 26 a0 04 	st  %g2, [ %i2 + 4 ]                           
      executing->libc_reent = *_Thread_libc_reent;                    
 2008b7c:	c4 00 40 00 	ld  [ %g1 ], %g2                               
 2008b80:	c4 27 61 54 	st  %g2, [ %i5 + 0x154 ]                       
      *_Thread_libc_reent = heir->libc_reent;                         
 2008b84:	c4 07 21 54 	ld  [ %i4 + 0x154 ], %g2                       
 2008b88:	c4 20 40 00 	st  %g2, [ %g1 ]                               
    }                                                                 
                                                                      
    _User_extensions_Thread_switch( executing, heir );                
 2008b8c:	90 10 00 1d 	mov  %i5, %o0                                  
 2008b90:	40 00 03 e2 	call  2009b18 <_User_extensions_Thread_switch> 
 2008b94:	92 10 00 1c 	mov  %i4, %o1                                  
    if ( executing->fp_context != NULL )                              
      _Context_Save_fp( &executing->fp_context );                     
#endif                                                                
#endif                                                                
                                                                      
    _Context_Switch( &executing->Registers, &heir->Registers );       
 2008b98:	90 07 60 c8 	add  %i5, 0xc8, %o0                            
 2008b9c:	40 00 05 2b 	call  200a048 <_CPU_Context_switch>            
 2008ba0:	92 07 20 c8 	add  %i4, 0xc8, %o1                            
                                                                      
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )        
#if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE )                            
    if ( (executing->fp_context != NULL) &&                           
 2008ba4:	c2 07 61 50 	ld  [ %i5 + 0x150 ], %g1                       
 2008ba8:	80 a0 60 00 	cmp  %g1, 0                                    
 2008bac:	02 80 00 0c 	be  2008bdc <_Thread_Dispatch+0x10c>           
 2008bb0:	d0 06 63 b4 	ld  [ %i1 + 0x3b4 ], %o0                       
 2008bb4:	80 a7 40 08 	cmp  %i5, %o0                                  
 2008bb8:	02 80 00 09 	be  2008bdc <_Thread_Dispatch+0x10c>           
 2008bbc:	80 a2 20 00 	cmp  %o0, 0                                    
         !_Thread_Is_allocated_fp( executing ) ) {                    
      if ( _Thread_Allocated_fp != NULL )                             
 2008bc0:	02 80 00 04 	be  2008bd0 <_Thread_Dispatch+0x100>           
 2008bc4:	01 00 00 00 	nop                                            
        _Context_Save_fp( &_Thread_Allocated_fp->fp_context );        
 2008bc8:	40 00 04 e6 	call  2009f60 <_CPU_Context_save_fp>           
 2008bcc:	90 02 21 50 	add  %o0, 0x150, %o0                           
      _Context_Restore_fp( &executing->fp_context );                  
 2008bd0:	40 00 05 01 	call  2009fd4 <_CPU_Context_restore_fp>        
 2008bd4:	90 07 61 50 	add  %i5, 0x150, %o0                           
      _Thread_Allocated_fp = executing;                               
 2008bd8:	fa 26 63 b4 	st  %i5, [ %i1 + 0x3b4 ]                       
#endif                                                                
#endif                                                                
                                                                      
    executing = _Thread_Executing;                                    
                                                                      
    _ISR_Disable( level );                                            
 2008bdc:	7f ff e4 dd 	call  2001f50 <sparc_disable_interrupts>       
 2008be0:	fa 06 e0 0c 	ld  [ %i3 + 0xc ], %i5                         
  Thread_Control   *heir;                                             
  ISR_Level         level;                                            
                                                                      
  executing   = _Thread_Executing;                                    
  _ISR_Disable( level );                                              
  while ( _Thread_Dispatch_necessary == true ) {                      
 2008be4:	c2 0e e0 18 	ldub  [ %i3 + 0x18 ], %g1                      
 2008be8:	80 a0 60 00 	cmp  %g1, 0                                    
 2008bec:	02 80 00 0e 	be  2008c24 <_Thread_Dispatch+0x154>           
 2008bf0:	01 00 00 00 	nop                                            
    heir = _Thread_Heir;                                              
 2008bf4:	f8 06 e0 10 	ld  [ %i3 + 0x10 ], %i4                        
    _Thread_Dispatch_disable_level = 1;                               
 2008bf8:	e4 26 23 30 	st  %l2, [ %i0 + 0x330 ]                       
    _Thread_Dispatch_necessary = false;                               
 2008bfc:	c0 2e e0 18 	clrb  [ %i3 + 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 )                                          
 2008c00:	80 a7 00 1d 	cmp  %i4, %i5                                  
 2008c04:	02 80 00 08 	be  2008c24 <_Thread_Dispatch+0x154>           <== NEVER TAKEN
 2008c08:	f8 26 e0 0c 	st  %i4, [ %i3 + 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 )
 2008c0c:	c2 07 20 7c 	ld  [ %i4 + 0x7c ], %g1                        
 2008c10:	80 a0 60 01 	cmp  %g1, 1                                    
 2008c14:	12 bf ff c8 	bne  2008b34 <_Thread_Dispatch+0x64>           
 2008c18:	c2 04 e2 94 	ld  [ %l3 + 0x294 ], %g1                       
      heir->cpu_time_budget = _Thread_Ticks_per_timeslice;            
 2008c1c:	10 bf ff c6 	b  2008b34 <_Thread_Dispatch+0x64>             
 2008c20:	c2 27 20 78 	st  %g1, [ %i4 + 0x78 ]                        
                                                                      
    _ISR_Disable( level );                                            
  }                                                                   
                                                                      
post_switch:                                                          
  _Thread_Dispatch_disable_level = 0;                                 
 2008c24:	c0 26 23 30 	clr  [ %i0 + 0x330 ]                           
                                                                      
  _ISR_Enable( level );                                               
 2008c28:	7f ff e4 ce 	call  2001f60 <sparc_enable_interrupts>        
 2008c2c:	01 00 00 00 	nop                                            
                                                                      
  _API_extensions_Run_postswitch();                                   
 2008c30:	7f ff f8 1a 	call  2006c98 <_API_extensions_Run_postswitch> 
 2008c34:	01 00 00 00 	nop                                            
}                                                                     
 2008c38:	81 c7 e0 08 	ret                                            
 2008c3c:	81 e8 00 00 	restore                                        
                                                                      

0200dfc8 <_Thread_Handler>: * * Output parameters: NONE */ void _Thread_Handler( void ) {
 200dfc8:	9d e3 bf a0 	save  %sp, -96, %sp                            
  #if defined(EXECUTE_GLOBAL_CONSTRUCTORS)                            
    static char doneConstructors;                                     
    char doneCons;                                                    
  #endif                                                              
                                                                      
  executing = _Thread_Executing;                                      
 200dfcc:	03 00 80 56 	sethi  %hi(0x2015800), %g1                     
 200dfd0:	fa 00 61 68 	ld  [ %g1 + 0x168 ], %i5	! 2015968 <_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();                          
 200dfd4:	3f 00 80 37 	sethi  %hi(0x200dc00), %i7                     
 200dfd8:	be 17 e3 c8 	or  %i7, 0x3c8, %i7	! 200dfc8 <_Thread_Handler>
  /*                                                                  
   * have to put level into a register for those cpu's that use       
   * inline asm here                                                  
   */                                                                 
                                                                      
  level = executing->Start.isr_level;                                 
 200dfdc:	d0 07 60 ac 	ld  [ %i5 + 0xac ], %o0                        
  _ISR_Set_level(level);                                              
 200dfe0:	7f ff cf e0 	call  2001f60 <sparc_enable_interrupts>        
 200dfe4:	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) &&                         
 200dfe8:	c4 07 61 50 	ld  [ %i5 + 0x150 ], %g2                       
                                                                      
  level = executing->Start.isr_level;                                 
  _ISR_Set_level(level);                                              
                                                                      
  #if defined(EXECUTE_GLOBAL_CONSTRUCTORS)                            
    doneCons = doneConstructors;                                      
 200dfec:	03 00 80 54 	sethi  %hi(0x2015000), %g1                     
    doneConstructors = 1;                                             
 200dff0:	86 10 20 01 	mov  1, %g3                                    
                                                                      
  level = executing->Start.isr_level;                                 
  _ISR_Set_level(level);                                              
                                                                      
  #if defined(EXECUTE_GLOBAL_CONSTRUCTORS)                            
    doneCons = doneConstructors;                                      
 200dff4:	f6 08 63 f0 	ldub  [ %g1 + 0x3f0 ], %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) &&                         
 200dff8:	80 a0 a0 00 	cmp  %g2, 0                                    
 200dffc:	02 80 00 0c 	be  200e02c <_Thread_Handler+0x64>             
 200e000:	c6 28 63 f0 	stb  %g3, [ %g1 + 0x3f0 ]                      
#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 );                      
 200e004:	39 00 80 55 	sethi  %hi(0x2015400), %i4                     
 200e008:	d0 07 23 b4 	ld  [ %i4 + 0x3b4 ], %o0	! 20157b4 <_Thread_Allocated_fp>
 200e00c:	80 a7 40 08 	cmp  %i5, %o0                                  
 200e010:	02 80 00 07 	be  200e02c <_Thread_Handler+0x64>             
 200e014:	80 a2 20 00 	cmp  %o0, 0                                    
            !_Thread_Is_allocated_fp( executing ) ) {                 
        if ( _Thread_Allocated_fp != NULL )                           
 200e018:	22 80 00 05 	be,a   200e02c <_Thread_Handler+0x64>          
 200e01c:	fa 27 23 b4 	st  %i5, [ %i4 + 0x3b4 ]                       
          _Context_Save_fp( &_Thread_Allocated_fp->fp_context );      
 200e020:	7f ff ef d0 	call  2009f60 <_CPU_Context_save_fp>           
 200e024:	90 02 21 50 	add  %o0, 0x150, %o0                           
        _Thread_Allocated_fp = executing;                             
 200e028:	fa 27 23 b4 	st  %i5, [ %i4 + 0x3b4 ]                       
  /*                                                                  
   * 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 );                         
 200e02c:	7f ff ee 39 	call  2009910 <_User_extensions_Thread_begin>  
 200e030:	90 10 00 1d 	mov  %i5, %o0                                  
                                                                      
  /*                                                                  
   *  At this point, the dispatch disable level BETTER be 1.          
   */                                                                 
  _Thread_Enable_dispatch();                                          
 200e034:	7f ff eb 03 	call  2008c40 <_Thread_Enable_dispatch>        
 200e038:	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) */ {                 
 200e03c:	80 a6 e0 00 	cmp  %i3, 0                                    
 200e040:	02 80 00 0c 	be  200e070 <_Thread_Handler+0xa8>             
 200e044:	01 00 00 00 	nop                                            
      INIT_NAME ();                                                   
    }                                                                 
  #endif                                                              
                                                                      
  if ( executing->Start.prototype == THREAD_START_NUMERIC ) {         
 200e048:	c2 07 60 94 	ld  [ %i5 + 0x94 ], %g1                        
 200e04c:	80 a0 60 00 	cmp  %g1, 0                                    
 200e050:	22 80 00 0c 	be,a   200e080 <_Thread_Handler+0xb8>          <== ALWAYS TAKEN
 200e054:	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 );                       
 200e058:	7f ff ee 42 	call  2009960 <_User_extensions_Thread_exitted>
 200e05c:	90 10 00 1d 	mov  %i5, %o0                                  
                                                                      
  _Internal_error_Occurred(                                           
 200e060:	90 10 20 00 	clr  %o0                                       
 200e064:	92 10 20 01 	mov  1, %o1                                    
 200e068:	7f ff e5 d2 	call  20077b0 <_Internal_error_Occurred>       
 200e06c:	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 ();                                                   
 200e070:	40 00 1a 72 	call  2014a38 <_init>                          
 200e074:	01 00 00 00 	nop                                            
    }                                                                 
  #endif                                                              
                                                                      
  if ( executing->Start.prototype == THREAD_START_NUMERIC ) {         
 200e078:	10 bf ff f5 	b  200e04c <_Thread_Handler+0x84>              
 200e07c:	c2 07 60 94 	ld  [ %i5 + 0x94 ], %g1                        
    executing->Wait.return_argument =                                 
      (*(Thread_Entry_numeric) executing->Start.entry_point)(         
 200e080:	9f c0 40 00 	call  %g1                                      
 200e084:	d0 07 60 9c 	ld  [ %i5 + 0x9c ], %o0                        
      INIT_NAME ();                                                   
    }                                                                 
  #endif                                                              
                                                                      
  if ( executing->Start.prototype == THREAD_START_NUMERIC ) {         
    executing->Wait.return_argument =                                 
 200e088:	10 bf ff f4 	b  200e058 <_Thread_Handler+0x90>              
 200e08c:	d0 27 60 28 	st  %o0, [ %i5 + 0x28 ]                        
                                                                      

02008d1c <_Thread_Initialize>: Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) {
 2008d1c:	9d e3 bf a0 	save  %sp, -96, %sp                            
 2008d20:	c2 07 a0 6c 	ld  [ %fp + 0x6c ], %g1                        
 2008d24:	f4 0f a0 5f 	ldub  [ %fp + 0x5f ], %i2                      
 2008d28:	e0 00 40 00 	ld  [ %g1 ], %l0                               
                                                                      
  /*                                                                  
   *  Zero out all the allocated memory fields                        
   */                                                                 
  for ( i=0 ; i <= THREAD_API_LAST ; i++ )                            
    the_thread->API_Extensions[i] = NULL;                             
 2008d2c:	c0 26 61 58 	clr  [ %i1 + 0x158 ]                           
 2008d30:	c0 26 61 5c 	clr  [ %i1 + 0x15c ]                           
                                                                      
  extensions_area = NULL;                                             
  the_thread->libc_reent = NULL;                                      
 2008d34:	c0 26 61 54 	clr  [ %i1 + 0x154 ]                           
                                                                      
  /*                                                                  
   *  Allocate and Initialize the stack for this thread.              
   */                                                                 
  #if !defined(RTEMS_SCORE_THREAD_ENABLE_USER_PROVIDED_STACK_VIA_API) 
    actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size );
 2008d38:	90 10 00 19 	mov  %i1, %o0                                  
 2008d3c:	40 00 02 2f 	call  20095f8 <_Thread_Stack_Allocate>         
 2008d40:	92 10 00 1b 	mov  %i3, %o1                                  
    if ( !actual_stack_size || actual_stack_size < stack_size )       
 2008d44:	80 a2 00 1b 	cmp  %o0, %i3                                  
 2008d48:	0a 80 00 4b 	bcs  2008e74 <_Thread_Initialize+0x158>        
 2008d4c:	80 a2 20 00 	cmp  %o0, 0                                    
 2008d50:	02 80 00 49 	be  2008e74 <_Thread_Initialize+0x158>         <== NEVER TAKEN
 2008d54:	80 a7 20 00 	cmp  %i4, 0                                    
  Stack_Control *the_stack,                                           
  void          *starting_address,                                    
  size_t         size                                                 
)                                                                     
{                                                                     
  the_stack->area = starting_address;                                 
 2008d58:	c2 06 60 c0 	ld  [ %i1 + 0xc0 ], %g1                        
  the_stack->size = size;                                             
 2008d5c:	d0 26 60 b4 	st  %o0, [ %i1 + 0xb4 ]                        
  Stack_Control *the_stack,                                           
  void          *starting_address,                                    
  size_t         size                                                 
)                                                                     
{                                                                     
  the_stack->area = starting_address;                                 
 2008d60:	c2 26 60 b8 	st  %g1, [ %i1 + 0xb8 ]                        
                                                                      
  /*                                                                  
   *  Allocate the floating point area for this thread                
   */                                                                 
  #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )      
    if ( is_fp ) {                                                    
 2008d64:	12 80 00 48 	bne  2008e84 <_Thread_Initialize+0x168>        
 2008d68:	b6 10 20 00 	clr  %i3                                       
  #endif                                                              
                                                                      
  /*                                                                  
   *  Allocate the extensions area for this thread                    
   */                                                                 
  if ( _Thread_Maximum_extensions ) {                                 
 2008d6c:	23 00 80 55 	sethi  %hi(0x2015400), %l1                     
 2008d70:	c2 04 63 c4 	ld  [ %l1 + 0x3c4 ], %g1	! 20157c4 <_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;                           
 2008d74:	f6 26 61 50 	st  %i3, [ %i1 + 0x150 ]                       
    the_thread->Start.fp_context = fp_area;                           
 2008d78:	f6 26 60 bc 	st  %i3, [ %i1 + 0xbc ]                        
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
 2008d7c:	c0 26 60 50 	clr  [ %i1 + 0x50 ]                            
  the_watchdog->routine   = routine;                                  
 2008d80:	c0 26 60 64 	clr  [ %i1 + 0x64 ]                            
  the_watchdog->id        = id;                                       
 2008d84:	c0 26 60 68 	clr  [ %i1 + 0x68 ]                            
  #endif                                                              
                                                                      
  /*                                                                  
   *  Allocate the extensions area for this thread                    
   */                                                                 
  if ( _Thread_Maximum_extensions ) {                                 
 2008d88:	80 a0 60 00 	cmp  %g1, 0                                    
 2008d8c:	12 80 00 46 	bne  2008ea4 <_Thread_Initialize+0x188>        
 2008d90:	c0 26 60 6c 	clr  [ %i1 + 0x6c ]                            
      (_Thread_Maximum_extensions + 1) * sizeof( void * )             
    );                                                                
    if ( !extensions_area )                                           
      goto failed;                                                    
  }                                                                   
  the_thread->extensions = (void **) extensions_area;                 
 2008d94:	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;                                             
 2008d98:	b8 10 20 00 	clr  %i4                                       
  /*                                                                  
   *  General initialization                                          
   */                                                                 
                                                                      
  the_thread->Start.is_preemptible   = is_preemptible;                
  the_thread->Start.budget_algorithm = budget_algorithm;              
 2008d9c:	c4 07 a0 60 	ld  [ %fp + 0x60 ], %g2                        
 */                                                                   
RTEMS_INLINE_ROUTINE void* _Scheduler_Allocate(                       
  Thread_Control    *the_thread                                       
)                                                                     
{                                                                     
  return _Scheduler.Operations.allocate( the_thread );                
 2008da0:	03 00 80 52 	sethi  %hi(0x2014800), %g1                     
 2008da4:	c4 26 60 a4 	st  %g2, [ %i1 + 0xa4 ]                        
  the_thread->Start.budget_callout   = budget_callout;                
 2008da8:	c4 07 a0 64 	ld  [ %fp + 0x64 ], %g2                        
 2008dac:	c2 00 63 7c 	ld  [ %g1 + 0x37c ], %g1                       
 2008db0:	c4 26 60 a8 	st  %g2, [ %i1 + 0xa8 ]                        
      case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:                       
	break;                                                               
    #endif                                                            
  }                                                                   
                                                                      
  the_thread->Start.isr_level         = isr_level;                    
 2008db4:	c4 07 a0 68 	ld  [ %fp + 0x68 ], %g2                        
                                                                      
  /*                                                                  
   *  General initialization                                          
   */                                                                 
                                                                      
  the_thread->Start.is_preemptible   = is_preemptible;                
 2008db8:	f4 2e 60 a0 	stb  %i2, [ %i1 + 0xa0 ]                       
      case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:                       
	break;                                                               
    #endif                                                            
  }                                                                   
                                                                      
  the_thread->Start.isr_level         = isr_level;                    
 2008dbc:	c4 26 60 ac 	st  %g2, [ %i1 + 0xac ]                        
                                                                      
  the_thread->current_state           = STATES_DORMANT;               
 2008dc0:	84 10 20 01 	mov  1, %g2                                    
  the_thread->Wait.queue              = NULL;                         
 2008dc4:	c0 26 60 44 	clr  [ %i1 + 0x44 ]                            
    #endif                                                            
  }                                                                   
                                                                      
  the_thread->Start.isr_level         = isr_level;                    
                                                                      
  the_thread->current_state           = STATES_DORMANT;               
 2008dc8:	c4 26 60 10 	st  %g2, [ %i1 + 0x10 ]                        
  the_thread->Wait.queue              = NULL;                         
  the_thread->resource_count          = 0;                            
 2008dcc:	c0 26 60 1c 	clr  [ %i1 + 0x1c ]                            
  the_thread->real_priority           = priority;                     
 2008dd0:	fa 26 60 18 	st  %i5, [ %i1 + 0x18 ]                        
  the_thread->Start.initial_priority  = priority;                     
 2008dd4:	fa 26 60 b0 	st  %i5, [ %i1 + 0xb0 ]                        
 2008dd8:	9f c0 40 00 	call  %g1                                      
 2008ddc:	90 10 00 19 	mov  %i1, %o0                                  
  sched =_Scheduler_Allocate( the_thread );                           
  if ( !sched )                                                       
 2008de0:	b4 92 20 00 	orcc  %o0, 0, %i2                              
 2008de4:	22 80 00 13 	be,a   2008e30 <_Thread_Initialize+0x114>      
 2008de8:	d0 06 61 54 	ld  [ %i1 + 0x154 ], %o0                       
    goto failed;                                                      
  _Thread_Set_priority( the_thread, priority );                       
 2008dec:	90 10 00 19 	mov  %i1, %o0                                  
 2008df0:	40 00 01 d9 	call  2009554 <_Thread_Set_priority>           
 2008df4:	92 10 00 1d 	mov  %i5, %o1                                  
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 2008df8:	c4 06 20 1c 	ld  [ %i0 + 0x1c ], %g2                        
  Objects_Information *information,                                   
  Objects_Control     *the_object,                                    
  Objects_Name         name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
 2008dfc:	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 );             
 2008e00:	c0 26 60 84 	clr  [ %i1 + 0x84 ]                            
 2008e04:	c0 26 60 88 	clr  [ %i1 + 0x88 ]                            
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 2008e08:	83 28 60 02 	sll  %g1, 2, %g1                               
 2008e0c:	f2 20 80 01 	st  %i1, [ %g2 + %g1 ]                         
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  the_object->name = name;                                            
 2008e10:	e0 26 60 0c 	st  %l0, [ %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 );    
 2008e14:	90 10 00 19 	mov  %i1, %o0                                  
 2008e18:	40 00 02 f9 	call  20099fc <_User_extensions_Thread_create> 
 2008e1c:	b0 10 20 01 	mov  1, %i0                                    
  if ( extension_status )                                             
 2008e20:	80 8a 20 ff 	btst  0xff, %o0                                
 2008e24:	32 80 00 12 	bne,a   2008e6c <_Thread_Initialize+0x150>     
 2008e28:	b0 0e 20 01 	and  %i0, 1, %i0                               
    return true;                                                      
                                                                      
failed:                                                               
  _Workspace_Free( the_thread->libc_reent );                          
 2008e2c:	d0 06 61 54 	ld  [ %i1 + 0x154 ], %o0                       
 2008e30:	40 00 04 37 	call  2009f0c <_Workspace_Free>                
 2008e34:	b0 10 20 00 	clr  %i0                                       
                                                                      
  for ( i=0 ; i <= THREAD_API_LAST ; i++ )                            
    _Workspace_Free( the_thread->API_Extensions[i] );                 
 2008e38:	40 00 04 35 	call  2009f0c <_Workspace_Free>                
 2008e3c:	d0 06 61 58 	ld  [ %i1 + 0x158 ], %o0                       
 2008e40:	40 00 04 33 	call  2009f0c <_Workspace_Free>                
 2008e44:	d0 06 61 5c 	ld  [ %i1 + 0x15c ], %o0                       
                                                                      
  _Workspace_Free( extensions_area );                                 
 2008e48:	40 00 04 31 	call  2009f0c <_Workspace_Free>                
 2008e4c:	90 10 00 1c 	mov  %i4, %o0                                  
                                                                      
  #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )      
    _Workspace_Free( fp_area );                                       
 2008e50:	40 00 04 2f 	call  2009f0c <_Workspace_Free>                
 2008e54:	90 10 00 1b 	mov  %i3, %o0                                  
  #endif                                                              
                                                                      
   _Workspace_Free( sched );                                          
 2008e58:	40 00 04 2d 	call  2009f0c <_Workspace_Free>                
 2008e5c:	90 10 00 1a 	mov  %i2, %o0                                  
                                                                      
   _Thread_Stack_Free( the_thread );                                  
 2008e60:	40 00 02 01 	call  2009664 <_Thread_Stack_Free>             
 2008e64:	90 10 00 19 	mov  %i1, %o0                                  
  return false;                                                       
}                                                                     
 2008e68:	b0 0e 20 01 	and  %i0, 1, %i0                               
 2008e6c:	81 c7 e0 08 	ret                                            
 2008e70:	81 e8 00 00 	restore                                        
   *  Allocate and Initialize the stack for this thread.              
   */                                                                 
  #if !defined(RTEMS_SCORE_THREAD_ENABLE_USER_PROVIDED_STACK_VIA_API) 
    actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size );
    if ( !actual_stack_size || actual_stack_size < stack_size )       
      return false;                     /* stack allocation failed */ 
 2008e74:	b0 10 20 00 	clr  %i0                                       
                                                                      
   _Workspace_Free( sched );                                          
                                                                      
   _Thread_Stack_Free( the_thread );                                  
  return false;                                                       
}                                                                     
 2008e78:	b0 0e 20 01 	and  %i0, 1, %i0                               
 2008e7c:	81 c7 e0 08 	ret                                            
 2008e80:	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 );               
 2008e84:	40 00 04 1a 	call  2009eec <_Workspace_Allocate>            
 2008e88:	90 10 20 88 	mov  0x88, %o0                                 
      if ( !fp_area )                                                 
 2008e8c:	b6 92 20 00 	orcc  %o0, 0, %i3                              
 2008e90:	32 bf ff b8 	bne,a   2008d70 <_Thread_Initialize+0x54>      
 2008e94:	23 00 80 55 	sethi  %hi(0x2015400), %l1                     
   *  Zero out all the allocated memory fields                        
   */                                                                 
  for ( i=0 ; i <= THREAD_API_LAST ; i++ )                            
    the_thread->API_Extensions[i] = NULL;                             
                                                                      
  extensions_area = NULL;                                             
 2008e98:	b8 10 20 00 	clr  %i4                                       
  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;                                  
 2008e9c:	10 bf ff e4 	b  2008e2c <_Thread_Initialize+0x110>          
 2008ea0:	b4 10 20 00 	clr  %i2                                       
                                                                      
  /*                                                                  
   *  Allocate the extensions area for this thread                    
   */                                                                 
  if ( _Thread_Maximum_extensions ) {                                 
    extensions_area = _Workspace_Allocate(                            
 2008ea4:	82 00 60 01 	inc  %g1                                       
 2008ea8:	40 00 04 11 	call  2009eec <_Workspace_Allocate>            
 2008eac:	91 28 60 02 	sll  %g1, 2, %o0                               
      (_Thread_Maximum_extensions + 1) * sizeof( void * )             
    );                                                                
    if ( !extensions_area )                                           
 2008eb0:	b8 92 20 00 	orcc  %o0, 0, %i4                              
 2008eb4:	02 80 00 10 	be  2008ef4 <_Thread_Initialize+0x1d8>         
 2008eb8:	86 10 00 1c 	mov  %i4, %g3                                  
      goto failed;                                                    
  }                                                                   
  the_thread->extensions = (void **) extensions_area;                 
 2008ebc:	f8 26 61 60 	st  %i4, [ %i1 + 0x160 ]                       
 2008ec0:	c8 04 63 c4 	ld  [ %l1 + 0x3c4 ], %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++ )              
 2008ec4:	84 10 20 00 	clr  %g2                                       
      (_Thread_Maximum_extensions + 1) * sizeof( void * )             
    );                                                                
    if ( !extensions_area )                                           
      goto failed;                                                    
  }                                                                   
  the_thread->extensions = (void **) extensions_area;                 
 2008ec8:	10 80 00 03 	b  2008ed4 <_Thread_Initialize+0x1b8>          
 2008ecc:	82 10 20 00 	clr  %g1                                       
 2008ed0:	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;                               
 2008ed4:	85 28 a0 02 	sll  %g2, 2, %g2                               
 2008ed8:	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++ )              
 2008edc:	82 00 60 01 	inc  %g1                                       
 2008ee0:	80 a0 40 04 	cmp  %g1, %g4                                  
 2008ee4:	08 bf ff fb 	bleu  2008ed0 <_Thread_Initialize+0x1b4>       
 2008ee8:	84 10 00 01 	mov  %g1, %g2                                  
  /*                                                                  
   *  General initialization                                          
   */                                                                 
                                                                      
  the_thread->Start.is_preemptible   = is_preemptible;                
  the_thread->Start.budget_algorithm = budget_algorithm;              
 2008eec:	10 bf ff ad 	b  2008da0 <_Thread_Initialize+0x84>           
 2008ef0:	c4 07 a0 60 	ld  [ %fp + 0x60 ], %g2                        
  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;                                  
 2008ef4:	10 bf ff ce 	b  2008e2c <_Thread_Initialize+0x110>          
 2008ef8:	b4 10 20 00 	clr  %i2                                       
                                                                      

02009494 <_Thread_queue_Requeue>: void _Thread_queue_Requeue( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) {
 2009494:	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 )                                            
 2009498:	80 a6 20 00 	cmp  %i0, 0                                    
 200949c:	02 80 00 13 	be  20094e8 <_Thread_queue_Requeue+0x54>       <== NEVER TAKEN
 20094a0:	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 ) {
 20094a4:	f8 06 20 34 	ld  [ %i0 + 0x34 ], %i4                        
 20094a8:	80 a7 20 01 	cmp  %i4, 1                                    
 20094ac:	02 80 00 04 	be  20094bc <_Thread_queue_Requeue+0x28>       <== ALWAYS TAKEN
 20094b0:	01 00 00 00 	nop                                            
 20094b4:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 20094b8:	81 e8 00 00 	restore                                        <== NOT EXECUTED
    Thread_queue_Control *tq = the_thread_queue;                      
    ISR_Level             level;                                      
    ISR_Level             level_ignored;                              
                                                                      
    _ISR_Disable( level );                                            
 20094bc:	7f ff e2 a5 	call  2001f50 <sparc_disable_interrupts>       
 20094c0:	01 00 00 00 	nop                                            
 20094c4:	ba 10 00 08 	mov  %o0, %i5                                  
 20094c8:	c4 06 60 10 	ld  [ %i1 + 0x10 ], %g2                        
 20094cc:	03 00 00 ef 	sethi  %hi(0x3bc00), %g1                       
 20094d0:	82 10 62 e0 	or  %g1, 0x2e0, %g1	! 3bee0 <PROM_START+0x3bee0>
    if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
 20094d4:	80 88 80 01 	btst  %g2, %g1                                 
 20094d8:	12 80 00 06 	bne  20094f0 <_Thread_queue_Requeue+0x5c>      <== ALWAYS TAKEN
 20094dc:	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 );                                             
 20094e0:	7f ff e2 a0 	call  2001f60 <sparc_enable_interrupts>        
 20094e4:	90 10 00 1d 	mov  %i5, %o0                                  
 20094e8:	81 c7 e0 08 	ret                                            
 20094ec:	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 );  
 20094f0:	92 10 00 19 	mov  %i1, %o1                                  
 20094f4:	94 10 20 01 	mov  1, %o2                                    
 20094f8:	40 00 0c 7d 	call  200c6ec <_Thread_queue_Extract_priority_helper>
 20094fc:	f8 26 20 30 	st  %i4, [ %i0 + 0x30 ]                        
      (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored );
 2009500:	90 10 00 18 	mov  %i0, %o0                                  
 2009504:	92 10 00 19 	mov  %i1, %o1                                  
 2009508:	7f ff ff 37 	call  20091e4 <_Thread_queue_Enqueue_priority> 
 200950c:	94 07 bf fc 	add  %fp, -4, %o2                              
 2009510:	30 bf ff f4 	b,a   20094e0 <_Thread_queue_Requeue+0x4c>     
                                                                      

02009514 <_Thread_queue_Timeout>: void _Thread_queue_Timeout( Objects_Id id, void *ignored __attribute__((unused)) ) {
 2009514:	9d e3 bf 98 	save  %sp, -104, %sp                           
  Thread_Control       *the_thread;                                   
  Objects_Locations     location;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 2009518:	90 10 00 18 	mov  %i0, %o0                                  
 200951c:	7f ff fd d5 	call  2008c70 <_Thread_Get>                    
 2009520:	92 07 bf fc 	add  %fp, -4, %o1                              
  switch ( location ) {                                               
 2009524:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 2009528:	80 a0 60 00 	cmp  %g1, 0                                    
 200952c:	12 80 00 08 	bne  200954c <_Thread_queue_Timeout+0x38>      <== NEVER TAKEN
 2009530:	01 00 00 00 	nop                                            
#if defined(RTEMS_MULTIPROCESSING)                                    
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
      break;                                                          
    case OBJECTS_LOCAL:                                               
      _Thread_queue_Process_timeout( the_thread );                    
 2009534:	40 00 0c a7 	call  200c7d0 <_Thread_queue_Process_timeout>  
 2009538:	01 00 00 00 	nop                                            
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )             
{                                                                     
  RTEMS_COMPILER_MEMORY_BARRIER();                                    
  _Thread_Dispatch_disable_level -= 1;                                
 200953c:	03 00 80 55 	sethi  %hi(0x2015400), %g1                     
 2009540:	c4 00 63 30 	ld  [ %g1 + 0x330 ], %g2	! 2015730 <_Thread_Dispatch_disable_level>
 2009544:	84 00 bf ff 	add  %g2, -1, %g2                              
 2009548:	c4 20 63 30 	st  %g2, [ %g1 + 0x330 ]                       
 200954c:	81 c7 e0 08 	ret                                            
 2009550:	81 e8 00 00 	restore                                        
                                                                      

02016520 <_Timer_server_Body>: * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) {
 2016520:	9d e3 bf 88 	save  %sp, -120, %sp                           
 2016524:	23 00 80 f0 	sethi  %hi(0x203c000), %l1                     
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 2016528:	a6 07 bf e8 	add  %fp, -24, %l3                             
 201652c:	b2 07 bf ec 	add  %fp, -20, %i1                             
 2016530:	b6 07 bf f4 	add  %fp, -12, %i3                             
 2016534:	a4 07 bf f8 	add  %fp, -8, %l2                              
 2016538:	21 00 80 f0 	sethi  %hi(0x203c000), %l0                     
 201653c:	29 00 80 f0 	sethi  %hi(0x203c000), %l4                     
 2016540:	f2 27 bf e8 	st  %i1, [ %fp + -24 ]                         
  head->previous = NULL;                                              
 2016544:	c0 27 bf ec 	clr  [ %fp + -20 ]                             
  tail->previous = head;                                              
 2016548:	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;                                                  
 201654c:	e4 27 bf f4 	st  %l2, [ %fp + -12 ]                         
  head->previous = NULL;                                              
 2016550:	c0 27 bf f8 	clr  [ %fp + -8 ]                              
  tail->previous = head;                                              
 2016554:	f6 27 bf fc 	st  %i3, [ %fp + -4 ]                          
 2016558:	a2 14 63 c4 	or  %l1, 0x3c4, %l1                            
 201655c:	b8 06 20 30 	add  %i0, 0x30, %i4                            
 2016560:	a0 14 23 3c 	or  %l0, 0x33c, %l0                            
 2016564:	b4 06 20 68 	add  %i0, 0x68, %i2                            
 2016568:	a8 15 22 b0 	or  %l4, 0x2b0, %l4                            
 201656c:	ae 06 20 08 	add  %i0, 8, %l7                               
 2016570:	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;                                              
 2016574:	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;                                    
 2016578:	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;            
 201657c:	c2 04 40 00 	ld  [ %l1 ], %g1                               
                                                                      
  /*                                                                  
   *  We assume adequate unsigned arithmetic here.                    
   */                                                                 
  Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;      
 2016580:	d2 06 20 3c 	ld  [ %i0 + 0x3c ], %o1                        
                                                                      
  watchdogs->last_snapshot = snapshot;                                
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
 2016584:	94 10 00 1b 	mov  %i3, %o2                                  
 2016588:	90 10 00 1c 	mov  %i4, %o0                                  
  /*                                                                  
   *  We assume adequate unsigned arithmetic here.                    
   */                                                                 
  Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;      
                                                                      
  watchdogs->last_snapshot = snapshot;                                
 201658c:	c2 26 20 3c 	st  %g1, [ %i0 + 0x3c ]                        
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
 2016590:	40 00 12 a6 	call  201b028 <_Watchdog_Adjust_to_chain>      
 2016594:	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;         
 2016598:	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();
 201659c:	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 ) {                                   
 20165a0:	80 a7 40 0a 	cmp  %i5, %o2                                  
 20165a4:	18 80 00 2e 	bgu  201665c <_Timer_server_Body+0x13c>        
 20165a8:	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 ) {                            
 20165ac:	80 a7 40 0a 	cmp  %i5, %o2                                  
 20165b0:	0a 80 00 2f 	bcs  201666c <_Timer_server_Body+0x14c>        
 20165b4:	90 10 00 1a 	mov  %i2, %o0                                  
      */                                                              
     delta = last_snapshot - snapshot;                                
     _Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta ); 
  }                                                                   
                                                                      
  watchdogs->last_snapshot = snapshot;                                
 20165b8:	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 );
 20165bc:	d0 06 20 78 	ld  [ %i0 + 0x78 ], %o0                        
 20165c0:	40 00 02 fb 	call  20171ac <_Chain_Get>                     
 20165c4:	01 00 00 00 	nop                                            
                                                                      
    if ( timer == NULL ) {                                            
 20165c8:	92 92 20 00 	orcc  %o0, 0, %o1                              
 20165cc:	02 80 00 10 	be  201660c <_Timer_server_Body+0xec>          
 20165d0:	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 ) {                 
 20165d4:	c2 02 60 38 	ld  [ %o1 + 0x38 ], %g1                        
 20165d8:	80 a0 60 01 	cmp  %g1, 1                                    
 20165dc:	02 80 00 28 	be  201667c <_Timer_server_Body+0x15c>         
 20165e0:	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 ) {       
 20165e4:	12 bf ff f6 	bne  20165bc <_Timer_server_Body+0x9c>         <== NEVER TAKEN
 20165e8:	92 02 60 10 	add  %o1, 0x10, %o1                            
    _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );     
 20165ec:	40 00 12 c1 	call  201b0f0 <_Watchdog_Insert>               
 20165f0:	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 );
 20165f4:	d0 06 20 78 	ld  [ %i0 + 0x78 ], %o0                        
 20165f8:	40 00 02 ed 	call  20171ac <_Chain_Get>                     
 20165fc:	01 00 00 00 	nop                                            
                                                                      
    if ( timer == NULL ) {                                            
 2016600:	92 92 20 00 	orcc  %o0, 0, %o1                              
 2016604:	32 bf ff f5 	bne,a   20165d8 <_Timer_server_Body+0xb8>      <== NEVER TAKEN
 2016608:	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 );                                            
 201660c:	7f ff e2 33 	call  200eed8 <sparc_disable_interrupts>       
 2016610:	01 00 00 00 	nop                                            
    if ( _Chain_Is_empty( insert_chain ) ) {                          
 2016614:	c2 07 bf e8 	ld  [ %fp + -24 ], %g1                         
 2016618:	80 a0 40 19 	cmp  %g1, %i1                                  
 201661c:	02 80 00 1c 	be  201668c <_Timer_server_Body+0x16c>         <== ALWAYS TAKEN
 2016620:	01 00 00 00 	nop                                            
      ts->insert_chain = NULL;                                        
      _ISR_Enable( level );                                           
                                                                      
      break;                                                          
    } else {                                                          
      _ISR_Enable( level );                                           
 2016624:	7f ff e2 31 	call  200eee8 <sparc_enable_interrupts>        <== NOT EXECUTED
 2016628:	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;            
 201662c:	c2 04 40 00 	ld  [ %l1 ], %g1                               <== NOT EXECUTED
                                                                      
  /*                                                                  
   *  We assume adequate unsigned arithmetic here.                    
   */                                                                 
  Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;      
 2016630:	d2 06 20 3c 	ld  [ %i0 + 0x3c ], %o1                        <== NOT EXECUTED
                                                                      
  watchdogs->last_snapshot = snapshot;                                
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
 2016634:	94 10 00 1b 	mov  %i3, %o2                                  <== NOT EXECUTED
 2016638:	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;                                
 201663c:	c2 26 20 3c 	st  %g1, [ %i0 + 0x3c ]                        <== NOT EXECUTED
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
 2016640:	40 00 12 7a 	call  201b028 <_Watchdog_Adjust_to_chain>      <== NOT EXECUTED
 2016644:	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;         
 2016648:	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();
 201664c:	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 ) {                                   
 2016650:	80 a7 40 0a 	cmp  %i5, %o2                                  <== NOT EXECUTED
 2016654:	08 bf ff d7 	bleu  20165b0 <_Timer_server_Body+0x90>        <== NOT EXECUTED
 2016658:	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 );
 201665c:	90 10 00 1a 	mov  %i2, %o0                                  
 2016660:	40 00 12 72 	call  201b028 <_Watchdog_Adjust_to_chain>      
 2016664:	94 10 00 1b 	mov  %i3, %o2                                  
 2016668:	30 bf ff d4 	b,a   20165b8 <_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 ); 
 201666c:	92 10 20 01 	mov  1, %o1                                    
 2016670:	40 00 12 3f 	call  201af6c <_Watchdog_Adjust>               
 2016674:	94 22 80 1d 	sub  %o2, %i5, %o2                             
 2016678:	30 bf ff d0 	b,a   20165b8 <_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 );
 201667c:	90 10 00 1c 	mov  %i4, %o0                                  
 2016680:	40 00 12 9c 	call  201b0f0 <_Watchdog_Insert>               
 2016684:	92 02 60 10 	add  %o1, 0x10, %o1                            
 2016688:	30 bf ff cd 	b,a   20165bc <_Timer_server_Body+0x9c>        
     */                                                               
    _Timer_server_Process_insertions( ts );                           
                                                                      
    _ISR_Disable( level );                                            
    if ( _Chain_Is_empty( insert_chain ) ) {                          
      ts->insert_chain = NULL;                                        
 201668c:	c0 26 20 78 	clr  [ %i0 + 0x78 ]                            
      _ISR_Enable( level );                                           
 2016690:	7f ff e2 16 	call  200eee8 <sparc_enable_interrupts>        
 2016694:	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 ) ) {                          
 2016698:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         
 201669c:	80 a0 40 12 	cmp  %g1, %l2                                  
 20166a0:	12 80 00 0c 	bne  20166d0 <_Timer_server_Body+0x1b0>        
 20166a4:	01 00 00 00 	nop                                            
 20166a8:	30 80 00 13 	b,a   20166f4 <_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;                                         
 20166ac:	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;                                             
 20166b0:	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;                        
 20166b4:	c0 27 60 08 	clr  [ %i5 + 8 ]                               
          _ISR_Enable( level );                                       
 20166b8:	7f ff e2 0c 	call  200eee8 <sparc_enable_interrupts>        
 20166bc:	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 );    
 20166c0:	d0 07 60 20 	ld  [ %i5 + 0x20 ], %o0                        
 20166c4:	c2 07 60 1c 	ld  [ %i5 + 0x1c ], %g1                        
 20166c8:	9f c0 40 00 	call  %g1                                      
 20166cc:	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 );                                        
 20166d0:	7f ff e2 02 	call  200eed8 <sparc_disable_interrupts>       
 20166d4:	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;                    
 20166d8:	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))                                   
 20166dc:	80 a7 40 12 	cmp  %i5, %l2                                  
 20166e0:	32 bf ff f3 	bne,a   20166ac <_Timer_server_Body+0x18c>     
 20166e4:	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 );                                       
 20166e8:	7f ff e2 00 	call  200eee8 <sparc_enable_interrupts>        
 20166ec:	01 00 00 00 	nop                                            
 20166f0:	30 bf ff a2 	b,a   2016578 <_Timer_server_Body+0x58>        
         *  the active flag of the timer server is true.              
         */                                                           
        (*watchdog->routine)( watchdog->id, watchdog->user_data );    
      }                                                               
    } else {                                                          
      ts->active = false;                                             
 20166f4:	c0 2e 20 7c 	clrb  [ %i0 + 0x7c ]                           
 20166f8:	c2 05 00 00 	ld  [ %l4 ], %g1                               
 20166fc:	82 00 60 01 	inc  %g1                                       
 2016700:	c2 25 00 00 	st  %g1, [ %l4 ]                               
                                                                      
      /*                                                              
       *  Block until there is something to do.                       
       */                                                             
      _Thread_Disable_dispatch();                                     
        _Thread_Set_state( ts->thread, STATES_DELAYING );             
 2016704:	d0 06 00 00 	ld  [ %i0 ], %o0                               
 2016708:	40 00 10 65 	call  201a89c <_Thread_Set_state>              
 201670c:	92 10 20 08 	mov  8, %o1                                    
        _Timer_server_Reset_interval_system_watchdog( ts );           
 2016710:	7f ff ff 5c 	call  2016480 <_Timer_server_Reset_interval_system_watchdog>
 2016714:	90 10 00 18 	mov  %i0, %o0                                  
        _Timer_server_Reset_tod_system_watchdog( ts );                
 2016718:	7f ff ff 6e 	call  20164d0 <_Timer_server_Reset_tod_system_watchdog>
 201671c:	90 10 00 18 	mov  %i0, %o0                                  
      _Thread_Enable_dispatch();                                      
 2016720:	40 00 0d ee 	call  2019ed8 <_Thread_Enable_dispatch>        
 2016724:	01 00 00 00 	nop                                            
                                                                      
static void _Timer_server_Stop_interval_system_watchdog(              
  Timer_server_Control *ts                                            
)                                                                     
{                                                                     
  _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );        
 2016728:	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;                                              
 201672c:	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 );        
 2016730:	40 00 12 d7 	call  201b28c <_Watchdog_Remove>               
 2016734:	01 00 00 00 	nop                                            
                                                                      
static void _Timer_server_Stop_tod_system_watchdog(                   
  Timer_server_Control *ts                                            
)                                                                     
{                                                                     
  _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );             
 2016738:	40 00 12 d5 	call  201b28c <_Watchdog_Remove>               
 201673c:	90 10 00 16 	mov  %l6, %o0                                  
 2016740:	30 bf ff 8e 	b,a   2016578 <_Timer_server_Body+0x58>        
                                                                      

02016744 <_Timer_server_Schedule_operation_method>: static void _Timer_server_Schedule_operation_method( Timer_server_Control *ts, Timer_Control *timer ) {
 2016744:	9d e3 bf a0 	save  %sp, -96, %sp                            
  if ( ts->insert_chain == NULL ) {                                   
 2016748:	c2 06 20 78 	ld  [ %i0 + 0x78 ], %g1                        
 201674c:	80 a0 60 00 	cmp  %g1, 0                                    
 2016750:	02 80 00 05 	be  2016764 <_Timer_server_Schedule_operation_method+0x20>
 2016754:	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 );           
 2016758:	f0 06 20 78 	ld  [ %i0 + 0x78 ], %i0                        
 201675c:	40 00 02 80 	call  201715c <_Chain_Append>                  
 2016760:	81 e8 00 00 	restore                                        
 2016764:	03 00 80 f0 	sethi  %hi(0x203c000), %g1                     
 2016768:	c4 00 62 b0 	ld  [ %g1 + 0x2b0 ], %g2	! 203c2b0 <_Thread_Dispatch_disable_level>
 201676c:	84 00 a0 01 	inc  %g2                                       
 2016770:	c4 20 62 b0 	st  %g2, [ %g1 + 0x2b0 ]                       
   *  being inserted.  This could result in an integer overflow.      
   */                                                                 
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {                 
 2016774:	c2 06 60 38 	ld  [ %i1 + 0x38 ], %g1                        
 2016778:	80 a0 60 01 	cmp  %g1, 1                                    
 201677c:	02 80 00 28 	be  201681c <_Timer_server_Schedule_operation_method+0xd8>
 2016780:	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 ) {       
 2016784:	02 80 00 04 	be  2016794 <_Timer_server_Schedule_operation_method+0x50>
 2016788:	01 00 00 00 	nop                                            
    if ( !ts->active ) {                                              
      _Timer_server_Reset_tod_system_watchdog( ts );                  
    }                                                                 
  }                                                                   
                                                                      
  _Thread_Enable_dispatch();                                          
 201678c:	40 00 0d d3 	call  2019ed8 <_Thread_Enable_dispatch>        
 2016790:	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 );                                            
 2016794:	7f ff e1 d1 	call  200eed8 <sparc_disable_interrupts>       
 2016798:	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;                    
 201679c:	c4 06 20 68 	ld  [ %i0 + 0x68 ], %g2                        
    snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();        
    last_snapshot = ts->TOD_watchdogs.last_snapshot;                  
 20167a0:	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 );                            
 20167a4:	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();        
 20167a8:	03 00 80 f0 	sethi  %hi(0x203c000), %g1                     
    last_snapshot = ts->TOD_watchdogs.last_snapshot;                  
    if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) {             
 20167ac:	80 a0 80 04 	cmp  %g2, %g4                                  
 20167b0:	02 80 00 0d 	be  20167e4 <_Timer_server_Schedule_operation_method+0xa0>
 20167b4:	c2 00 63 3c 	ld  [ %g1 + 0x33c ], %g1                       
      first_watchdog = _Watchdog_First( &ts->TOD_watchdogs.Chain );   
      delta_interval = first_watchdog->delta_interval;                
 20167b8:	de 00 a0 10 	ld  [ %g2 + 0x10 ], %o7                        
      if ( snapshot > last_snapshot ) {                               
 20167bc:	80 a0 40 03 	cmp  %g1, %g3                                  
        }                                                             
      } else {                                                        
        /*                                                            
         *  Someone put us in the past.                               
         */                                                           
        delta = last_snapshot - snapshot;                             
 20167c0:	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 ) {                               
 20167c4:	08 80 00 07 	bleu  20167e0 <_Timer_server_Schedule_operation_method+0x9c>
 20167c8:	88 21 00 01 	sub  %g4, %g1, %g4                             
        /*                                                            
         *  We advanced in time.                                      
         */                                                           
        delta = snapshot - last_snapshot;                             
 20167cc:	86 20 40 03 	sub  %g1, %g3, %g3                             
        if (delta_interval > delta) {                                 
 20167d0:	80 a3 c0 03 	cmp  %o7, %g3                                  
 20167d4:	08 80 00 03 	bleu  20167e0 <_Timer_server_Schedule_operation_method+0x9c><== NEVER TAKEN
 20167d8:	88 10 20 00 	clr  %g4                                       
          delta_interval -= delta;                                    
 20167dc:	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;                
 20167e0:	c8 20 a0 10 	st  %g4, [ %g2 + 0x10 ]                        
    }                                                                 
    ts->TOD_watchdogs.last_snapshot = snapshot;                       
 20167e4:	c2 26 20 74 	st  %g1, [ %i0 + 0x74 ]                        
    _ISR_Enable( level );                                             
 20167e8:	7f ff e1 c0 	call  200eee8 <sparc_enable_interrupts>        
 20167ec:	01 00 00 00 	nop                                            
                                                                      
    _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );     
 20167f0:	90 06 20 68 	add  %i0, 0x68, %o0                            
 20167f4:	40 00 12 3f 	call  201b0f0 <_Watchdog_Insert>               
 20167f8:	92 07 60 10 	add  %i5, 0x10, %o1                            
                                                                      
    if ( !ts->active ) {                                              
 20167fc:	c2 0e 20 7c 	ldub  [ %i0 + 0x7c ], %g1                      
 2016800:	80 a0 60 00 	cmp  %g1, 0                                    
 2016804:	12 bf ff e2 	bne  201678c <_Timer_server_Schedule_operation_method+0x48>
 2016808:	01 00 00 00 	nop                                            
      _Timer_server_Reset_tod_system_watchdog( ts );                  
 201680c:	7f ff ff 31 	call  20164d0 <_Timer_server_Reset_tod_system_watchdog>
 2016810:	90 10 00 18 	mov  %i0, %o0                                  
    }                                                                 
  }                                                                   
                                                                      
  _Thread_Enable_dispatch();                                          
 2016814:	40 00 0d b1 	call  2019ed8 <_Thread_Enable_dispatch>        
 2016818:	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 );                                            
 201681c:	7f ff e1 af 	call  200eed8 <sparc_disable_interrupts>       
 2016820:	01 00 00 00 	nop                                            
    snapshot = _Watchdog_Ticks_since_boot;                            
 2016824:	05 00 80 f0 	sethi  %hi(0x203c000), %g2                     
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(        
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_head( the_chain )->next;                    
 2016828:	c2 06 20 30 	ld  [ %i0 + 0x30 ], %g1                        
 201682c:	c4 00 a3 c4 	ld  [ %g2 + 0x3c4 ], %g2                       
    last_snapshot = ts->Interval_watchdogs.last_snapshot;             
 2016830:	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 );                            
 2016834:	86 06 20 34 	add  %i0, 0x34, %g3                            
    if ( !_Chain_Is_empty( &ts->Interval_watchdogs.Chain ) ) {        
 2016838:	80 a0 40 03 	cmp  %g1, %g3                                  
 201683c:	02 80 00 08 	be  201685c <_Timer_server_Schedule_operation_method+0x118>
 2016840:	88 20 80 04 	sub  %g2, %g4, %g4                             
      /*                                                              
       *  We assume adequate unsigned arithmetic here.                
       */                                                             
      delta = snapshot - last_snapshot;                               
                                                                      
      delta_interval = first_watchdog->delta_interval;                
 2016844:	de 00 60 10 	ld  [ %g1 + 0x10 ], %o7                        
      if (delta_interval > delta) {                                   
 2016848:	80 a1 00 0f 	cmp  %g4, %o7                                  
 201684c:	1a 80 00 03 	bcc  2016858 <_Timer_server_Schedule_operation_method+0x114>
 2016850:	86 10 20 00 	clr  %g3                                       
        delta_interval -= delta;                                      
 2016854:	86 23 c0 04 	sub  %o7, %g4, %g3                             
      } else {                                                        
        delta_interval = 0;                                           
      }                                                               
      first_watchdog->delta_interval = delta_interval;                
 2016858:	c6 20 60 10 	st  %g3, [ %g1 + 0x10 ]                        
    }                                                                 
    ts->Interval_watchdogs.last_snapshot = snapshot;                  
 201685c:	c4 26 20 3c 	st  %g2, [ %i0 + 0x3c ]                        
    _ISR_Enable( level );                                             
 2016860:	7f ff e1 a2 	call  200eee8 <sparc_enable_interrupts>        
 2016864:	01 00 00 00 	nop                                            
                                                                      
    _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
 2016868:	90 06 20 30 	add  %i0, 0x30, %o0                            
 201686c:	40 00 12 21 	call  201b0f0 <_Watchdog_Insert>               
 2016870:	92 07 60 10 	add  %i5, 0x10, %o1                            
                                                                      
    if ( !ts->active ) {                                              
 2016874:	c2 0e 20 7c 	ldub  [ %i0 + 0x7c ], %g1                      
 2016878:	80 a0 60 00 	cmp  %g1, 0                                    
 201687c:	12 bf ff c4 	bne  201678c <_Timer_server_Schedule_operation_method+0x48>
 2016880:	01 00 00 00 	nop                                            
      _Timer_server_Reset_interval_system_watchdog( ts );             
 2016884:	7f ff fe ff 	call  2016480 <_Timer_server_Reset_interval_system_watchdog>
 2016888:	90 10 00 18 	mov  %i0, %o0                                  
    if ( !ts->active ) {                                              
      _Timer_server_Reset_tod_system_watchdog( ts );                  
    }                                                                 
  }                                                                   
                                                                      
  _Thread_Enable_dispatch();                                          
 201688c:	40 00 0d 93 	call  2019ed8 <_Thread_Enable_dispatch>        
 2016890:	81 e8 00 00 	restore                                        
                                                                      

020097a4 <_Timespec_Add_to>: uint32_t _Timespec_Add_to( struct timespec *time, const struct timespec *add ) {
 20097a4:	9d e3 bf a0 	save  %sp, -96, %sp                            
 20097a8:	82 10 00 18 	mov  %i0, %g1                                  
  uint32_t seconds = add->tv_sec;                                     
                                                                      
  /* Add the basics */                                                
  time->tv_sec += add->tv_sec;                                        
 20097ac:	c6 06 00 00 	ld  [ %i0 ], %g3                               
  time->tv_nsec += add->tv_nsec;                                      
 20097b0:	c8 00 60 04 	ld  [ %g1 + 4 ], %g4                           
uint32_t _Timespec_Add_to(                                            
  struct timespec       *time,                                        
  const struct timespec *add                                          
)                                                                     
{                                                                     
  uint32_t seconds = add->tv_sec;                                     
 20097b4:	f0 06 40 00 	ld  [ %i1 ], %i0                               
                                                                      
  /* Add the basics */                                                
  time->tv_sec += add->tv_sec;                                        
  time->tv_nsec += add->tv_nsec;                                      
 20097b8:	c4 06 60 04 	ld  [ %i1 + 4 ], %g2                           
)                                                                     
{                                                                     
  uint32_t seconds = add->tv_sec;                                     
                                                                      
  /* Add the basics */                                                
  time->tv_sec += add->tv_sec;                                        
 20097bc:	86 00 c0 18 	add  %g3, %i0, %g3                             
  time->tv_nsec += add->tv_nsec;                                      
 20097c0:	84 01 00 02 	add  %g4, %g2, %g2                             
)                                                                     
{                                                                     
  uint32_t seconds = add->tv_sec;                                     
                                                                      
  /* Add the basics */                                                
  time->tv_sec += add->tv_sec;                                        
 20097c4:	c6 20 40 00 	st  %g3, [ %g1 ]                               
  time->tv_nsec += add->tv_nsec;                                      
                                                                      
  /* Now adjust it so nanoseconds is in range */                      
  while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {             
 20097c8:	09 0e e6 b2 	sethi  %hi(0x3b9ac800), %g4                    
 20097cc:	88 11 21 ff 	or  %g4, 0x1ff, %g4	! 3b9ac9ff <RAM_END+0x395ac9ff>
 20097d0:	80 a0 80 04 	cmp  %g2, %g4                                  
 20097d4:	08 80 00 0b 	bleu  2009800 <_Timespec_Add_to+0x5c>          
 20097d8:	c4 20 60 04 	st  %g2, [ %g1 + 4 ]                           
    time->tv_nsec -= TOD_NANOSECONDS_PER_SECOND;                      
 20097dc:	1f 31 19 4d 	sethi  %hi(0xc4653400), %o7                    
 20097e0:	9e 13 e2 00 	or  %o7, 0x200, %o7	! c4653600 <RAM_END+0xc2253600>
 20097e4:	84 00 80 0f 	add  %g2, %o7, %g2                             
    time->tv_sec++;                                                   
 20097e8:	86 00 e0 01 	inc  %g3                                       
  /* Add the basics */                                                
  time->tv_sec += add->tv_sec;                                        
  time->tv_nsec += add->tv_nsec;                                      
                                                                      
  /* Now adjust it so nanoseconds is in range */                      
  while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {             
 20097ec:	80 a0 80 04 	cmp  %g2, %g4                                  
 20097f0:	18 bf ff fd 	bgu  20097e4 <_Timespec_Add_to+0x40>           <== NEVER TAKEN
 20097f4:	b0 06 20 01 	inc  %i0                                       
 20097f8:	c4 20 60 04 	st  %g2, [ %g1 + 4 ]                           
 20097fc:	c6 20 40 00 	st  %g3, [ %g1 ]                               
    time->tv_sec++;                                                   
    seconds++;                                                        
  }                                                                   
                                                                      
  return seconds;                                                     
}                                                                     
 2009800:	81 c7 e0 08 	ret                                            
 2009804:	81 e8 00 00 	restore                                        
                                                                      

020099ac <_User_extensions_Fatal>: void _User_extensions_Fatal ( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) {
 20099ac:	9d e3 bf a0 	save  %sp, -96, %sp                            
 20099b0:	39 00 80 56 	sethi  %hi(0x2015800), %i4                     
 20099b4:	b8 17 21 18 	or  %i4, 0x118, %i4	! 2015918 <_User_extensions_List>
 20099b8:	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 );             
 20099bc:	80 a7 40 1c 	cmp  %i5, %i4                                  
 20099c0:	02 80 00 0d 	be  20099f4 <_User_extensions_Fatal+0x48>      <== NEVER TAKEN
 20099c4:	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 )                      
 20099c8:	c2 07 60 30 	ld  [ %i5 + 0x30 ], %g1                        
 20099cc:	80 a0 60 00 	cmp  %g1, 0                                    
 20099d0:	02 80 00 05 	be  20099e4 <_User_extensions_Fatal+0x38>      
 20099d4:	90 10 00 18 	mov  %i0, %o0                                  
      (*the_extension->Callouts.fatal)( the_source, is_internal, the_error );
 20099d8:	92 10 00 19 	mov  %i1, %o1                                  
 20099dc:	9f c0 40 00 	call  %g1                                      
 20099e0:	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 ) {                             
 20099e4:	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 );             
 20099e8:	80 a7 40 1c 	cmp  %i5, %i4                                  
 20099ec:	32 bf ff f8 	bne,a   20099cc <_User_extensions_Fatal+0x20>  
 20099f0:	c2 07 60 30 	ld  [ %i5 + 0x30 ], %g1                        
 20099f4:	81 c7 e0 08 	ret                                            
 20099f8:	81 e8 00 00 	restore                                        
                                                                      

02009858 <_User_extensions_Handler_initialization>: #include <rtems/score/userext.h> #include <rtems/score/wkspace.h> #include <string.h> void _User_extensions_Handler_initialization(void) {
 2009858:	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;  
 200985c:	07 00 80 52 	sethi  %hi(0x2014800), %g3                     
 2009860:	86 10 e2 7c 	or  %g3, 0x27c, %g3	! 2014a7c <Configuration>  
  initial_extensions   = Configuration.User_extension_table;          
 2009864:	f6 00 e0 3c 	ld  [ %g3 + 0x3c ], %i3                        
 2009868:	3b 00 80 56 	sethi  %hi(0x2015800), %i5                     
 200986c:	09 00 80 55 	sethi  %hi(0x2015400), %g4                     
 2009870:	84 17 61 18 	or  %i5, 0x118, %g2                            
 2009874:	82 11 23 34 	or  %g4, 0x334, %g1                            
 2009878:	b4 00 a0 04 	add  %g2, 4, %i2                               
 200987c:	b8 00 60 04 	add  %g1, 4, %i4                               
 2009880:	f4 27 61 18 	st  %i2, [ %i5 + 0x118 ]                       
  head->previous = NULL;                                              
 2009884:	c0 20 a0 04 	clr  [ %g2 + 4 ]                               
  tail->previous = head;                                              
 2009888:	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;                                                  
 200988c:	f8 21 23 34 	st  %i4, [ %g4 + 0x334 ]                       
  head->previous = NULL;                                              
 2009890:	c0 20 60 04 	clr  [ %g1 + 4 ]                               
  tail->previous = head;                                              
 2009894:	c2 20 60 08 	st  %g1, [ %g1 + 8 ]                           
                                                                      
  _Chain_Initialize_empty( &_User_extensions_List );                  
  _Chain_Initialize_empty( &_User_extensions_Switches_list );         
                                                                      
  if ( initial_extensions ) {                                         
 2009898:	80 a6 e0 00 	cmp  %i3, 0                                    
 200989c:	02 80 00 1b 	be  2009908 <_User_extensions_Handler_initialization+0xb0><== NEVER TAKEN
 20098a0:	f4 00 e0 38 	ld  [ %g3 + 0x38 ], %i2                        
    extension = (User_extensions_Control *)                           
      _Workspace_Allocate_or_fatal_error(                             
        number_of_extensions * sizeof( User_extensions_Control )      
 20098a4:	83 2e a0 02 	sll  %i2, 2, %g1                               
 20098a8:	b9 2e a0 04 	sll  %i2, 4, %i4                               
 20098ac:	b8 27 00 01 	sub  %i4, %g1, %i4                             
 20098b0:	b8 07 00 1a 	add  %i4, %i2, %i4                             
 20098b4:	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 *)                           
 20098b8:	40 00 01 9b 	call  2009f24 <_Workspace_Allocate_or_fatal_error>
 20098bc:	90 10 00 1c 	mov  %i4, %o0                                  
      _Workspace_Allocate_or_fatal_error(                             
        number_of_extensions * sizeof( User_extensions_Control )      
      );                                                              
                                                                      
    memset (                                                          
 20098c0:	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 *)                           
 20098c4:	ba 10 00 08 	mov  %o0, %i5                                  
      _Workspace_Allocate_or_fatal_error(                             
        number_of_extensions * sizeof( User_extensions_Control )      
      );                                                              
                                                                      
    memset (                                                          
 20098c8:	40 00 14 ce 	call  200ec00 <memset>                         
 20098cc:	94 10 00 1c 	mov  %i4, %o2                                  
      extension,                                                      
      0,                                                              
      number_of_extensions * sizeof( User_extensions_Control )        
    );                                                                
                                                                      
    for ( i = 0 ; i < number_of_extensions ; i++ ) {                  
 20098d0:	80 a6 a0 00 	cmp  %i2, 0                                    
 20098d4:	02 80 00 0d 	be  2009908 <_User_extensions_Handler_initialization+0xb0><== NEVER TAKEN
 20098d8:	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;                             
 20098dc:	92 10 00 1b 	mov  %i3, %o1                                  
 20098e0:	94 10 20 20 	mov  0x20, %o2                                 
 20098e4:	40 00 14 8b 	call  200eb10 <memcpy>                         
 20098e8:	90 07 60 14 	add  %i5, 0x14, %o0                            
                                                                      
  _User_extensions_Add_set( extension );                              
 20098ec:	40 00 0b dc 	call  200c85c <_User_extensions_Add_set>       
 20098f0:	90 10 00 1d 	mov  %i5, %o0                                  
 20098f4:	b8 07 20 01 	inc  %i4                                       
      _User_extensions_Add_set_with_table (extension, &initial_extensions[i]);
      extension++;                                                    
 20098f8:	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++ ) {                  
 20098fc:	80 a7 00 1a 	cmp  %i4, %i2                                  
 2009900:	12 bf ff f7 	bne  20098dc <_User_extensions_Handler_initialization+0x84>
 2009904:	b6 06 e0 20 	add  %i3, 0x20, %i3                            
 2009908:	81 c7 e0 08 	ret                                            
 200990c:	81 e8 00 00 	restore                                        
                                                                      

02009910 <_User_extensions_Thread_begin>: #include <rtems/score/userext.h> void _User_extensions_Thread_begin ( Thread_Control *executing ) {
 2009910:	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;                              
 2009914:	39 00 80 56 	sethi  %hi(0x2015800), %i4                     
 2009918:	fa 07 21 18 	ld  [ %i4 + 0x118 ], %i5	! 2015918 <_User_extensions_List>
 200991c:	b8 17 21 18 	or  %i4, 0x118, %i4                            
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_List );            
 2009920:	b8 07 20 04 	add  %i4, 4, %i4                               
 2009924:	80 a7 40 1c 	cmp  %i5, %i4                                  
 2009928:	02 80 00 0c 	be  2009958 <_User_extensions_Thread_begin+0x48><== NEVER TAKEN
 200992c:	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 )               
 2009930:	c2 07 60 28 	ld  [ %i5 + 0x28 ], %g1                        
 2009934:	80 a0 60 00 	cmp  %g1, 0                                    
 2009938:	02 80 00 04 	be  2009948 <_User_extensions_Thread_begin+0x38>
 200993c:	90 10 00 18 	mov  %i0, %o0                                  
      (*the_extension->Callouts.thread_begin)( executing );           
 2009940:	9f c0 40 00 	call  %g1                                      
 2009944:	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 ) {                                 
 2009948:	fa 07 40 00 	ld  [ %i5 ], %i5                               
)                                                                     
{                                                                     
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_List );            
 200994c:	80 a7 40 1c 	cmp  %i5, %i4                                  
 2009950:	32 bf ff f9 	bne,a   2009934 <_User_extensions_Thread_begin+0x24>
 2009954:	c2 07 60 28 	ld  [ %i5 + 0x28 ], %g1                        
 2009958:	81 c7 e0 08 	ret                                            
 200995c:	81 e8 00 00 	restore                                        
                                                                      

020099fc <_User_extensions_Thread_create>: #include <rtems/score/userext.h> bool _User_extensions_Thread_create ( Thread_Control *the_thread ) {
 20099fc:	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;                              
 2009a00:	39 00 80 56 	sethi  %hi(0x2015800), %i4                     
 2009a04:	fa 07 21 18 	ld  [ %i4 + 0x118 ], %i5	! 2015918 <_User_extensions_List>
 2009a08:	b8 17 21 18 	or  %i4, 0x118, %i4                            
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
  bool                     status;                                    
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_List );            
 2009a0c:	b8 07 20 04 	add  %i4, 4, %i4                               
 2009a10:	80 a7 40 1c 	cmp  %i5, %i4                                  
 2009a14:	02 80 00 12 	be  2009a5c <_User_extensions_Thread_create+0x60><== NEVER TAKEN
 2009a18:	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)(              
 2009a1c:	37 00 80 56 	sethi  %hi(0x2015800), %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 ) {            
 2009a20:	c2 07 60 14 	ld  [ %i5 + 0x14 ], %g1                        
 2009a24:	80 a0 60 00 	cmp  %g1, 0                                    
 2009a28:	02 80 00 08 	be  2009a48 <_User_extensions_Thread_create+0x4c>
 2009a2c:	84 16 e1 5c 	or  %i3, 0x15c, %g2                            
      status = (*the_extension->Callouts.thread_create)(              
 2009a30:	d0 00 a0 0c 	ld  [ %g2 + 0xc ], %o0                         
 2009a34:	9f c0 40 00 	call  %g1                                      
 2009a38:	92 10 00 18 	mov  %i0, %o1                                  
        _Thread_Executing,                                            
        the_thread                                                    
      );                                                              
      if ( !status )                                                  
 2009a3c:	80 8a 20 ff 	btst  0xff, %o0                                
 2009a40:	02 80 00 0a 	be  2009a68 <_User_extensions_Thread_create+0x6c>
 2009a44:	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 ) {                                 
 2009a48:	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 );            
 2009a4c:	80 a7 40 1c 	cmp  %i5, %i4                                  
 2009a50:	32 bf ff f5 	bne,a   2009a24 <_User_extensions_Thread_create+0x28>
 2009a54:	c2 07 60 14 	ld  [ %i5 + 0x14 ], %g1                        
      if ( !status )                                                  
        return false;                                                 
    }                                                                 
  }                                                                   
                                                                      
  return true;                                                        
 2009a58:	82 10 20 01 	mov  1, %g1                                    
}                                                                     
 2009a5c:	b0 08 60 01 	and  %g1, 1, %i0                               
 2009a60:	81 c7 e0 08 	ret                                            
 2009a64:	81 e8 00 00 	restore                                        
 2009a68:	b0 08 60 01 	and  %g1, 1, %i0                               
 2009a6c:	81 c7 e0 08 	ret                                            
 2009a70:	81 e8 00 00 	restore                                        
                                                                      

02009a74 <_User_extensions_Thread_delete>: #include <rtems/score/userext.h> void _User_extensions_Thread_delete ( Thread_Control *the_thread ) {
 2009a74:	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;                          
 2009a78:	39 00 80 56 	sethi  %hi(0x2015800), %i4                     
 2009a7c:	b8 17 21 18 	or  %i4, 0x118, %i4	! 2015918 <_User_extensions_List>
 2009a80:	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 );             
 2009a84:	80 a7 40 1c 	cmp  %i5, %i4                                  
 2009a88:	02 80 00 0d 	be  2009abc <_User_extensions_Thread_delete+0x48><== NEVER TAKEN
 2009a8c:	37 00 80 56 	sethi  %hi(0x2015800), %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 )              
 2009a90:	c2 07 60 20 	ld  [ %i5 + 0x20 ], %g1                        
 2009a94:	80 a0 60 00 	cmp  %g1, 0                                    
 2009a98:	02 80 00 05 	be  2009aac <_User_extensions_Thread_delete+0x38>
 2009a9c:	84 16 e1 5c 	or  %i3, 0x15c, %g2                            
      (*the_extension->Callouts.thread_delete)(                       
 2009aa0:	d0 00 a0 0c 	ld  [ %g2 + 0xc ], %o0                         
 2009aa4:	9f c0 40 00 	call  %g1                                      
 2009aa8:	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 ) {                             
 2009aac:	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 );             
 2009ab0:	80 a7 40 1c 	cmp  %i5, %i4                                  
 2009ab4:	32 bf ff f8 	bne,a   2009a94 <_User_extensions_Thread_delete+0x20>
 2009ab8:	c2 07 60 20 	ld  [ %i5 + 0x20 ], %g1                        
 2009abc:	81 c7 e0 08 	ret                                            
 2009ac0:	81 e8 00 00 	restore                                        
                                                                      

02009960 <_User_extensions_Thread_exitted>: } void _User_extensions_Thread_exitted ( Thread_Control *executing ) {
 2009960:	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;                          
 2009964:	39 00 80 56 	sethi  %hi(0x2015800), %i4                     
 2009968:	b8 17 21 18 	or  %i4, 0x118, %i4	! 2015918 <_User_extensions_List>
 200996c:	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 );             
 2009970:	80 a7 40 1c 	cmp  %i5, %i4                                  
 2009974:	02 80 00 0c 	be  20099a4 <_User_extensions_Thread_exitted+0x44><== NEVER TAKEN
 2009978:	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 )             
 200997c:	c2 07 60 2c 	ld  [ %i5 + 0x2c ], %g1                        
 2009980:	80 a0 60 00 	cmp  %g1, 0                                    
 2009984:	02 80 00 04 	be  2009994 <_User_extensions_Thread_exitted+0x34>
 2009988:	90 10 00 18 	mov  %i0, %o0                                  
      (*the_extension->Callouts.thread_exitted)( executing );         
 200998c:	9f c0 40 00 	call  %g1                                      
 2009990:	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 ) {                             
 2009994:	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 );             
 2009998:	80 a7 40 1c 	cmp  %i5, %i4                                  
 200999c:	32 bf ff f9 	bne,a   2009980 <_User_extensions_Thread_exitted+0x20>
 20099a0:	c2 07 60 2c 	ld  [ %i5 + 0x2c ], %g1                        
 20099a4:	81 c7 e0 08 	ret                                            
 20099a8:	81 e8 00 00 	restore                                        
                                                                      

0200a800 <_User_extensions_Thread_restart>: #include <rtems/score/userext.h> void _User_extensions_Thread_restart ( Thread_Control *the_thread ) {
 200a800:	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;                              
 200a804:	39 00 80 73 	sethi  %hi(0x201cc00), %i4                     
 200a808:	fa 07 20 b8 	ld  [ %i4 + 0xb8 ], %i5	! 201ccb8 <_User_extensions_List>
 200a80c:	b8 17 20 b8 	or  %i4, 0xb8, %i4                             
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_List );            
 200a810:	b8 07 20 04 	add  %i4, 4, %i4                               
 200a814:	80 a7 40 1c 	cmp  %i5, %i4                                  
 200a818:	02 80 00 0d 	be  200a84c <_User_extensions_Thread_restart+0x4c><== NEVER TAKEN
 200a81c:	37 00 80 73 	sethi  %hi(0x201cc00), %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 )             
 200a820:	c2 07 60 1c 	ld  [ %i5 + 0x1c ], %g1                        
 200a824:	80 a0 60 00 	cmp  %g1, 0                                    
 200a828:	02 80 00 05 	be  200a83c <_User_extensions_Thread_restart+0x3c>
 200a82c:	84 16 e0 fc 	or  %i3, 0xfc, %g2                             
      (*the_extension->Callouts.thread_restart)(                      
 200a830:	d0 00 a0 0c 	ld  [ %g2 + 0xc ], %o0                         
 200a834:	9f c0 40 00 	call  %g1                                      
 200a838:	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 ) {                                 
 200a83c:	fa 07 40 00 	ld  [ %i5 ], %i5                               
)                                                                     
{                                                                     
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_List );            
 200a840:	80 a7 40 1c 	cmp  %i5, %i4                                  
 200a844:	32 bf ff f8 	bne,a   200a824 <_User_extensions_Thread_restart+0x24>
 200a848:	c2 07 60 1c 	ld  [ %i5 + 0x1c ], %g1                        
 200a84c:	81 c7 e0 08 	ret                                            
 200a850:	81 e8 00 00 	restore                                        
                                                                      

02009ac4 <_User_extensions_Thread_start>: #include <rtems/score/userext.h> void _User_extensions_Thread_start ( Thread_Control *the_thread ) {
 2009ac4:	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;                              
 2009ac8:	39 00 80 56 	sethi  %hi(0x2015800), %i4                     
 2009acc:	fa 07 21 18 	ld  [ %i4 + 0x118 ], %i5	! 2015918 <_User_extensions_List>
 2009ad0:	b8 17 21 18 	or  %i4, 0x118, %i4                            
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_List );            
 2009ad4:	b8 07 20 04 	add  %i4, 4, %i4                               
 2009ad8:	80 a7 40 1c 	cmp  %i5, %i4                                  
 2009adc:	02 80 00 0d 	be  2009b10 <_User_extensions_Thread_start+0x4c><== NEVER TAKEN
 2009ae0:	37 00 80 56 	sethi  %hi(0x2015800), %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 )               
 2009ae4:	c2 07 60 18 	ld  [ %i5 + 0x18 ], %g1                        
 2009ae8:	80 a0 60 00 	cmp  %g1, 0                                    
 2009aec:	02 80 00 05 	be  2009b00 <_User_extensions_Thread_start+0x3c>
 2009af0:	84 16 e1 5c 	or  %i3, 0x15c, %g2                            
      (*the_extension->Callouts.thread_start)(                        
 2009af4:	d0 00 a0 0c 	ld  [ %g2 + 0xc ], %o0                         
 2009af8:	9f c0 40 00 	call  %g1                                      
 2009afc:	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 ) {                                 
 2009b00:	fa 07 40 00 	ld  [ %i5 ], %i5                               
)                                                                     
{                                                                     
  Chain_Node              *the_node;                                  
  User_extensions_Control *the_extension;                             
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_List );            
 2009b04:	80 a7 40 1c 	cmp  %i5, %i4                                  
 2009b08:	32 bf ff f8 	bne,a   2009ae8 <_User_extensions_Thread_start+0x24>
 2009b0c:	c2 07 60 18 	ld  [ %i5 + 0x18 ], %g1                        
 2009b10:	81 c7 e0 08 	ret                                            
 2009b14:	81 e8 00 00 	restore                                        
                                                                      

02009b18 <_User_extensions_Thread_switch>: void _User_extensions_Thread_switch ( Thread_Control *executing, Thread_Control *heir ) {
 2009b18:	9d e3 bf a0 	save  %sp, -96, %sp                            
 2009b1c:	39 00 80 55 	sethi  %hi(0x2015400), %i4                     
 2009b20:	fa 07 23 34 	ld  [ %i4 + 0x334 ], %i5	! 2015734 <_User_extensions_Switches_list>
 2009b24:	b8 17 23 34 	or  %i4, 0x334, %i4                            
  Chain_Node                     *the_node;                           
  User_extensions_Switch_control *the_extension_switch;               
                                                                      
  for ( the_node = _Chain_First( &_User_extensions_Switches_list );   
 2009b28:	b8 07 20 04 	add  %i4, 4, %i4                               
 2009b2c:	80 a7 40 1c 	cmp  %i5, %i4                                  
 2009b30:	02 80 00 0a 	be  2009b58 <_User_extensions_Thread_switch+0x40><== NEVER TAKEN
 2009b34:	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 );        
 2009b38:	c2 07 60 08 	ld  [ %i5 + 8 ], %g1                           
 2009b3c:	90 10 00 18 	mov  %i0, %o0                                  
 2009b40:	9f c0 40 00 	call  %g1                                      
 2009b44:	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 ) {                                 
 2009b48:	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 );   
 2009b4c:	80 a7 40 1c 	cmp  %i5, %i4                                  
 2009b50:	32 bf ff fb 	bne,a   2009b3c <_User_extensions_Thread_switch+0x24>
 2009b54:	c2 07 60 08 	ld  [ %i5 + 8 ], %g1                           
 2009b58:	81 c7 e0 08 	ret                                            
 2009b5c:	81 e8 00 00 	restore                                        
                                                                      

0200bb20 <_Watchdog_Adjust>: void _Watchdog_Adjust( Chain_Control *header, Watchdog_Adjust_directions direction, Watchdog_Interval units ) {
 200bb20:	9d e3 bf a0 	save  %sp, -96, %sp                            
  ISR_Level level;                                                    
                                                                      
  _ISR_Disable( level );                                              
 200bb24:	7f ff dc e9 	call  2002ec8 <sparc_disable_interrupts>       
 200bb28:	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;                    
 200bb2c:	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 );                            
 200bb30:	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 ) ) {                                 
 200bb34:	80 a0 40 1b 	cmp  %g1, %i3                                  
 200bb38:	02 80 00 1e 	be  200bbb0 <_Watchdog_Adjust+0x90>            
 200bb3c:	80 a6 60 00 	cmp  %i1, 0                                    
    switch ( direction ) {                                            
 200bb40:	12 80 00 1e 	bne  200bbb8 <_Watchdog_Adjust+0x98>           
 200bb44:	80 a6 60 01 	cmp  %i1, 1                                    
      case WATCHDOG_BACKWARD:                                         
        _Watchdog_First( header )->delta_interval += units;           
        break;                                                        
      case WATCHDOG_FORWARD:                                          
        while ( units ) {                                             
 200bb48:	80 a6 a0 00 	cmp  %i2, 0                                    
 200bb4c:	02 80 00 19 	be  200bbb0 <_Watchdog_Adjust+0x90>            <== NEVER TAKEN
 200bb50:	01 00 00 00 	nop                                            
          if ( units < _Watchdog_First( header )->delta_interval ) {  
 200bb54:	f8 00 60 10 	ld  [ %g1 + 0x10 ], %i4                        
 200bb58:	80 a6 80 1c 	cmp  %i2, %i4                                  
 200bb5c:	1a 80 00 0a 	bcc  200bb84 <_Watchdog_Adjust+0x64>           <== ALWAYS TAKEN
 200bb60:	b2 10 20 01 	mov  1, %i1                                    
            _Watchdog_First( header )->delta_interval -= units;       
 200bb64:	10 80 00 1c 	b  200bbd4 <_Watchdog_Adjust+0xb4>             <== NOT EXECUTED
 200bb68:	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 ) {                                             
 200bb6c:	02 80 00 11 	be  200bbb0 <_Watchdog_Adjust+0x90>            <== NEVER TAKEN
 200bb70:	01 00 00 00 	nop                                            
          if ( units < _Watchdog_First( header )->delta_interval ) {  
 200bb74:	f8 00 60 10 	ld  [ %g1 + 0x10 ], %i4                        
 200bb78:	80 a7 00 1a 	cmp  %i4, %i2                                  
 200bb7c:	38 80 00 16 	bgu,a   200bbd4 <_Watchdog_Adjust+0xb4>        
 200bb80:	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;            
 200bb84:	f2 20 60 10 	st  %i1, [ %g1 + 0x10 ]                        
                                                                      
            _ISR_Enable( level );                                     
 200bb88:	7f ff dc d4 	call  2002ed8 <sparc_enable_interrupts>        
 200bb8c:	01 00 00 00 	nop                                            
                                                                      
            _Watchdog_Tickle( header );                               
 200bb90:	40 00 00 b0 	call  200be50 <_Watchdog_Tickle>               
 200bb94:	90 10 00 1d 	mov  %i5, %o0                                  
                                                                      
            _ISR_Disable( level );                                    
 200bb98:	7f ff dc cc 	call  2002ec8 <sparc_disable_interrupts>       
 200bb9c:	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;                    
 200bba0:	c2 07 40 00 	ld  [ %i5 ], %g1                               
                                                                      
            if ( _Chain_Is_empty( header ) )                          
 200bba4:	80 a6 c0 01 	cmp  %i3, %g1                                  
 200bba8:	32 bf ff f1 	bne,a   200bb6c <_Watchdog_Adjust+0x4c>        
 200bbac:	b4 a6 80 1c 	subcc  %i2, %i4, %i2                           
        }                                                             
        break;                                                        
    }                                                                 
  }                                                                   
                                                                      
  _ISR_Enable( level );                                               
 200bbb0:	7f ff dc ca 	call  2002ed8 <sparc_enable_interrupts>        
 200bbb4:	91 e8 00 08 	restore  %g0, %o0, %o0                         
   *       unmodified across that call.                               
   *                                                                  
   *       Till Straumann, 7/2003                                     
   */                                                                 
  if ( !_Chain_Is_empty( header ) ) {                                 
    switch ( direction ) {                                            
 200bbb8:	12 bf ff fe 	bne  200bbb0 <_Watchdog_Adjust+0x90>           <== NEVER TAKEN
 200bbbc:	01 00 00 00 	nop                                            
      case WATCHDOG_BACKWARD:                                         
        _Watchdog_First( header )->delta_interval += units;           
 200bbc0:	c4 00 60 10 	ld  [ %g1 + 0x10 ], %g2                        
 200bbc4:	b4 00 80 1a 	add  %g2, %i2, %i2                             
 200bbc8:	f4 20 60 10 	st  %i2, [ %g1 + 0x10 ]                        
        }                                                             
        break;                                                        
    }                                                                 
  }                                                                   
                                                                      
  _ISR_Enable( level );                                               
 200bbcc:	7f ff dc c3 	call  2002ed8 <sparc_enable_interrupts>        
 200bbd0:	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;                                                    
 200bbd4:	10 bf ff f7 	b  200bbb0 <_Watchdog_Adjust+0x90>             
 200bbd8:	f8 20 60 10 	st  %i4, [ %g1 + 0x10 ]                        
                                                                      

02009cfc <_Watchdog_Remove>: */ Watchdog_States _Watchdog_Remove( Watchdog_Control *the_watchdog ) {
 2009cfc:	9d e3 bf a0 	save  %sp, -96, %sp                            
  ISR_Level         level;                                            
  Watchdog_States   previous_state;                                   
  Watchdog_Control *next_watchdog;                                    
                                                                      
  _ISR_Disable( level );                                              
 2009d00:	7f ff e0 94 	call  2001f50 <sparc_disable_interrupts>       
 2009d04:	01 00 00 00 	nop                                            
  previous_state = the_watchdog->state;                               
 2009d08:	fa 06 20 08 	ld  [ %i0 + 8 ], %i5                           
  switch ( previous_state ) {                                         
 2009d0c:	80 a7 60 01 	cmp  %i5, 1                                    
 2009d10:	02 80 00 2a 	be  2009db8 <_Watchdog_Remove+0xbc>            
 2009d14:	03 00 80 56 	sethi  %hi(0x2015800), %g1                     
 2009d18:	1a 80 00 09 	bcc  2009d3c <_Watchdog_Remove+0x40>           
 2009d1c:	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;               
 2009d20:	03 00 80 56 	sethi  %hi(0x2015800), %g1                     
 2009d24:	c2 00 60 44 	ld  [ %g1 + 0x44 ], %g1	! 2015844 <_Watchdog_Ticks_since_boot>
 2009d28:	c2 26 20 18 	st  %g1, [ %i0 + 0x18 ]                        
                                                                      
  _ISR_Enable( level );                                               
 2009d2c:	7f ff e0 8d 	call  2001f60 <sparc_enable_interrupts>        
 2009d30:	b0 10 00 1d 	mov  %i5, %i0                                  
  return( previous_state );                                           
}                                                                     
 2009d34:	81 c7 e0 08 	ret                                            
 2009d38:	81 e8 00 00 	restore                                        
  Watchdog_States   previous_state;                                   
  Watchdog_Control *next_watchdog;                                    
                                                                      
  _ISR_Disable( level );                                              
  previous_state = the_watchdog->state;                               
  switch ( previous_state ) {                                         
 2009d3c:	18 bf ff fa 	bgu  2009d24 <_Watchdog_Remove+0x28>           <== NEVER TAKEN
 2009d40:	03 00 80 56 	sethi  %hi(0x2015800), %g1                     
  }                                                                   
  the_watchdog->stop_time = _Watchdog_Ticks_since_boot;               
                                                                      
  _ISR_Enable( level );                                               
  return( previous_state );                                           
}                                                                     
 2009d44:	c2 06 00 00 	ld  [ %i0 ], %g1                               
      break;                                                          
                                                                      
    case WATCHDOG_ACTIVE:                                             
    case WATCHDOG_REMOVE_IT:                                          
                                                                      
      the_watchdog->state = WATCHDOG_INACTIVE;                        
 2009d48:	c0 26 20 08 	clr  [ %i0 + 8 ]                               
      next_watchdog = _Watchdog_Next( the_watchdog );                 
                                                                      
      if ( _Watchdog_Next(next_watchdog) )                            
 2009d4c:	c4 00 40 00 	ld  [ %g1 ], %g2                               
 2009d50:	80 a0 a0 00 	cmp  %g2, 0                                    
 2009d54:	02 80 00 07 	be  2009d70 <_Watchdog_Remove+0x74>            
 2009d58:	05 00 80 56 	sethi  %hi(0x2015800), %g2                     
        next_watchdog->delta_interval += the_watchdog->delta_interval;
 2009d5c:	c6 00 60 10 	ld  [ %g1 + 0x10 ], %g3                        
 2009d60:	c4 06 20 10 	ld  [ %i0 + 0x10 ], %g2                        
 2009d64:	84 00 c0 02 	add  %g3, %g2, %g2                             
 2009d68:	c4 20 60 10 	st  %g2, [ %g1 + 0x10 ]                        
                                                                      
      if ( _Watchdog_Sync_count )                                     
 2009d6c:	05 00 80 56 	sethi  %hi(0x2015800), %g2                     
 2009d70:	c4 00 a0 40 	ld  [ %g2 + 0x40 ], %g2	! 2015840 <_Watchdog_Sync_count>
 2009d74:	80 a0 a0 00 	cmp  %g2, 0                                    
 2009d78:	22 80 00 07 	be,a   2009d94 <_Watchdog_Remove+0x98>         
 2009d7c:	c4 06 20 04 	ld  [ %i0 + 4 ], %g2                           
        _Watchdog_Sync_level = _ISR_Nest_level;                       
 2009d80:	05 00 80 56 	sethi  %hi(0x2015800), %g2                     
 2009d84:	c6 00 a1 64 	ld  [ %g2 + 0x164 ], %g3	! 2015964 <_Per_CPU_Information+0x8>
 2009d88:	05 00 80 55 	sethi  %hi(0x2015400), %g2                     
 2009d8c:	c6 20 a3 d8 	st  %g3, [ %g2 + 0x3d8 ]	! 20157d8 <_Watchdog_Sync_level>
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
 2009d90:	c4 06 20 04 	ld  [ %i0 + 4 ], %g2                           
  next->previous = previous;                                          
 2009d94:	c4 20 60 04 	st  %g2, [ %g1 + 4 ]                           
  previous->next = next;                                              
 2009d98:	c2 20 80 00 	st  %g1, [ %g2 ]                               
                                                                      
      _Chain_Extract_unprotected( &the_watchdog->Node );              
      break;                                                          
  }                                                                   
  the_watchdog->stop_time = _Watchdog_Ticks_since_boot;               
 2009d9c:	03 00 80 56 	sethi  %hi(0x2015800), %g1                     
 2009da0:	c2 00 60 44 	ld  [ %g1 + 0x44 ], %g1	! 2015844 <_Watchdog_Ticks_since_boot>
 2009da4:	c2 26 20 18 	st  %g1, [ %i0 + 0x18 ]                        
                                                                      
  _ISR_Enable( level );                                               
 2009da8:	7f ff e0 6e 	call  2001f60 <sparc_enable_interrupts>        
 2009dac:	b0 10 00 1d 	mov  %i5, %i0                                  
  return( previous_state );                                           
}                                                                     
 2009db0:	81 c7 e0 08 	ret                                            
 2009db4:	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;               
 2009db8:	c2 00 60 44 	ld  [ %g1 + 0x44 ], %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;                        
 2009dbc:	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;               
 2009dc0:	c2 26 20 18 	st  %g1, [ %i0 + 0x18 ]                        
                                                                      
  _ISR_Enable( level );                                               
 2009dc4:	7f ff e0 67 	call  2001f60 <sparc_enable_interrupts>        
 2009dc8:	b0 10 00 1d 	mov  %i5, %i0                                  
  return( previous_state );                                           
}                                                                     
 2009dcc:	81 c7 e0 08 	ret                                            
 2009dd0:	81 e8 00 00 	restore                                        
                                                                      

0200b328 <_Watchdog_Report_chain>: void _Watchdog_Report_chain( const char *name, Chain_Control *header ) {
 200b328:	9d e3 bf a0 	save  %sp, -96, %sp                            
  ISR_Level          level;                                           
  Chain_Node        *node;                                            
                                                                      
  _ISR_Disable( level );                                              
 200b32c:	7f ff dd ba 	call  2002a14 <sparc_disable_interrupts>       
 200b330:	01 00 00 00 	nop                                            
 200b334:	ba 10 00 08 	mov  %o0, %i5                                  
    printk( "Watchdog Chain: %s %p\n", name, header );                
 200b338:	11 00 80 6f 	sethi  %hi(0x201bc00), %o0                     
 200b33c:	94 10 00 19 	mov  %i1, %o2                                  
 200b340:	92 10 00 18 	mov  %i0, %o1                                  
 200b344:	7f ff e4 ce 	call  200467c <printk>                         
 200b348:	90 12 23 f8 	or  %o0, 0x3f8, %o0                            
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(        
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_head( the_chain )->next;                    
 200b34c:	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 );                            
 200b350:	b2 06 60 04 	add  %i1, 4, %i1                               
    if ( !_Chain_Is_empty( header ) ) {                               
 200b354:	80 a7 00 19 	cmp  %i4, %i1                                  
 200b358:	02 80 00 0f 	be  200b394 <_Watchdog_Report_chain+0x6c>      
 200b35c:	11 00 80 70 	sethi  %hi(0x201c000), %o0                     
            node != _Chain_Tail(header) ;                             
            node = node->next )                                       
      {                                                               
        Watchdog_Control *watch = (Watchdog_Control *) node;          
                                                                      
        _Watchdog_Report( NULL, watch );                              
 200b360:	92 10 00 1c 	mov  %i4, %o1                                  
 200b364:	40 00 00 0f 	call  200b3a0 <_Watchdog_Report>               
 200b368:	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 )                                       
 200b36c:	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 ) ;                           
 200b370:	80 a7 00 19 	cmp  %i4, %i1                                  
 200b374:	12 bf ff fc 	bne  200b364 <_Watchdog_Report_chain+0x3c>     <== NEVER TAKEN
 200b378:	92 10 00 1c 	mov  %i4, %o1                                  
      {                                                               
        Watchdog_Control *watch = (Watchdog_Control *) node;          
                                                                      
        _Watchdog_Report( NULL, watch );                              
      }                                                               
      printk( "== end of %s \n", name );                              
 200b37c:	11 00 80 70 	sethi  %hi(0x201c000), %o0                     
 200b380:	92 10 00 18 	mov  %i0, %o1                                  
 200b384:	7f ff e4 be 	call  200467c <printk>                         
 200b388:	90 12 20 10 	or  %o0, 0x10, %o0                             
    } else {                                                          
      printk( "Chain is empty\n" );                                   
    }                                                                 
  _ISR_Enable( level );                                               
 200b38c:	7f ff dd a6 	call  2002a24 <sparc_enable_interrupts>        
 200b390:	91 e8 00 1d 	restore  %g0, %i5, %o0                         
                                                                      
        _Watchdog_Report( NULL, watch );                              
      }                                                               
      printk( "== end of %s \n", name );                              
    } else {                                                          
      printk( "Chain is empty\n" );                                   
 200b394:	7f ff e4 ba 	call  200467c <printk>                         
 200b398:	90 12 20 20 	or  %o0, 0x20, %o0                             
 200b39c:	30 bf ff fc 	b,a   200b38c <_Watchdog_Report_chain+0x64>    
                                                                      

020222e8 <__kill>: #endif int __kill( pid_t pid, int sig ) { return 0; }
 20222e8:	81 c3 e0 08 	retl                                           <== NOT EXECUTED
 20222ec:	90 10 20 00 	clr  %o0                                       <== NOT EXECUTED
                                                                      

02002b38 <_gettimeofday>: int _gettimeofday( struct timeval *tp, struct timezone *tzp ) { return gettimeofday( tp, tzp );
 2002b38:	82 13 c0 00 	mov  %o7, %g1                                  <== NOT EXECUTED
 2002b3c:	7f ff ff e0 	call  2002abc <gettimeofday>                   <== NOT EXECUTED
 2002b40:	9e 10 40 00 	mov  %g1, %o7                                  <== NOT EXECUTED
                                                                      

020072a4 <_rename_r>: int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) {
 20072a4:	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 );              
 20072a8:	7f ff fa 20 	call  2005b28 <rtems_filesystem_dirname>       
 20072ac:	90 10 00 19 	mov  %i1, %o0                                  
                                                                      
  if ( old_parent_pathlen == 0 )                                      
 20072b0:	80 a2 20 00 	cmp  %o0, 0                                    
 20072b4:	12 80 00 2b 	bne  2007360 <_rename_r+0xbc>                  
 20072b8:	b8 10 00 08 	mov  %o0, %i4                                  
    rtems_filesystem_get_start_loc( old, &i, &old_parent_loc );       
 20072bc:	ba 07 bf d0 	add  %fp, -48, %i5                             
 20072c0:	90 10 00 19 	mov  %i1, %o0                                  
 20072c4:	92 07 bf f8 	add  %fp, -8, %o1                              
 20072c8:	94 10 00 1d 	mov  %i5, %o2                                  
 20072cc:	40 00 01 00 	call  20076cc <rtems_filesystem_get_start_loc> 
 20072d0:	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;     
 20072d4:	b6 10 20 00 	clr  %i3                                       
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  old_loc = old_parent_loc;                                           
 20072d8:	c2 07 bf d0 	ld  [ %fp + -48 ], %g1                         
  name = old + old_parent_pathlen;                                    
 20072dc:	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;                                           
 20072e0:	c2 27 bf bc 	st  %g1, [ %fp + -68 ]                         
 20072e4:	c2 07 bf d4 	ld  [ %fp + -44 ], %g1                         
  name = old + old_parent_pathlen;                                    
 20072e8:	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;                                           
 20072ec:	c2 27 bf c0 	st  %g1, [ %fp + -64 ]                         
 20072f0:	c2 07 bf d8 	ld  [ %fp + -40 ], %g1                         
  name = old + old_parent_pathlen;                                    
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
 20072f4:	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;                                           
 20072f8:	c2 27 bf c4 	st  %g1, [ %fp + -60 ]                         
 20072fc:	c2 07 bf dc 	ld  [ %fp + -36 ], %g1                         
 2007300:	c2 27 bf c8 	st  %g1, [ %fp + -56 ]                         
 2007304:	c2 07 bf e0 	ld  [ %fp + -32 ], %g1                         
  name = old + old_parent_pathlen;                                    
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
 2007308:	40 00 38 ba 	call  20155f0 <strlen>                         
 200730c:	c2 27 bf cc 	st  %g1, [ %fp + -52 ]                         
 2007310:	92 10 00 08 	mov  %o0, %o1                                  
 2007314:	7f ff fa 14 	call  2005b64 <rtems_filesystem_prefix_separators>
 2007318:	90 10 00 19 	mov  %i1, %o0                                  
 200731c:	b2 06 40 08 	add  %i1, %o0, %i1                             
 2007320:	f2 27 bf fc 	st  %i1, [ %fp + -4 ]                          
                                                                      
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
 2007324:	40 00 38 b3 	call  20155f0 <strlen>                         
 2007328:	90 10 00 19 	mov  %i1, %o0                                  
 200732c:	94 10 20 00 	clr  %o2                                       
 2007330:	92 10 00 08 	mov  %o0, %o1                                  
 2007334:	96 07 bf bc 	add  %fp, -68, %o3                             
 2007338:	90 10 00 19 	mov  %i1, %o0                                  
 200733c:	7f ff f9 cf 	call  2005a78 <rtems_filesystem_evaluate_relative_path>
 2007340:	98 10 20 00 	clr  %o4                                       
                                                    0, &old_loc, false );
  if ( result != 0 ) {                                                
 2007344:	80 a2 20 00 	cmp  %o0, 0                                    
 2007348:	02 80 00 17 	be  20073a4 <_rename_r+0x100>                  
 200734c:	80 8e e0 ff 	btst  0xff, %i3                                
    if ( free_old_parentloc )                                         
 2007350:	12 80 00 11 	bne  2007394 <_rename_r+0xf0>                  <== ALWAYS TAKEN
 2007354:	b0 10 3f ff 	mov  -1, %i0                                   
  if ( free_old_parentloc )                                           
    rtems_filesystem_freenode( &old_parent_loc );                     
  rtems_filesystem_freenode( &old_loc );                              
                                                                      
  return result;                                                      
}                                                                     
 2007358:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200735c:	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, 
 2007360:	ba 07 bf d0 	add  %fp, -48, %i5                             
 2007364:	90 10 00 19 	mov  %i1, %o0                                  
 2007368:	92 10 00 1c 	mov  %i4, %o1                                  
 200736c:	94 10 20 02 	mov  2, %o2                                    
 2007370:	96 10 00 1d 	mov  %i5, %o3                                  
 2007374:	98 10 20 00 	clr  %o4                                       
 2007378:	7f ff f9 dd 	call  2005aec <rtems_filesystem_evaluate_path> 
 200737c:	b0 10 3f ff 	mov  -1, %i0                                   
                                             RTEMS_LIBIO_PERMS_WRITE, 
                                             &old_parent_loc,         
                                             false );                 
    if ( result != 0 )                                                
 2007380:	80 a2 20 00 	cmp  %o0, 0                                    
 2007384:	12 bf ff f5 	bne  2007358 <_rename_r+0xb4>                  <== NEVER TAKEN
 2007388:	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;                                           
 200738c:	10 bf ff d4 	b  20072dc <_rename_r+0x38>                    
 2007390:	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 );                   
 2007394:	7f ff fa 9d 	call  2005e08 <rtems_filesystem_freenode>      
 2007398:	90 10 00 1d 	mov  %i5, %o0                                  
 200739c:	81 c7 e0 08 	ret                                            
 20073a0:	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 );         
 20073a4:	90 10 00 1a 	mov  %i2, %o0                                  
 20073a8:	92 07 bf f8 	add  %fp, -8, %o1                              
 20073ac:	40 00 00 c8 	call  20076cc <rtems_filesystem_get_start_loc> 
 20073b0:	94 07 bf e4 	add  %fp, -28, %o2                             
                                                                      
  result = (*new_parent_loc.ops->evalformake_h)( &new[i], &new_parent_loc, &name );
 20073b4:	c2 07 bf f0 	ld  [ %fp + -16 ], %g1                         
 20073b8:	d0 07 bf f8 	ld  [ %fp + -8 ], %o0                          
 20073bc:	c2 00 60 04 	ld  [ %g1 + 4 ], %g1                           
 20073c0:	90 06 80 08 	add  %i2, %o0, %o0                             
 20073c4:	92 07 bf e4 	add  %fp, -28, %o1                             
 20073c8:	9f c0 40 00 	call  %g1                                      
 20073cc:	94 07 bf fc 	add  %fp, -4, %o2                              
  if ( result != 0 ) {                                                
 20073d0:	80 a2 20 00 	cmp  %o0, 0                                    
 20073d4:	12 80 00 29 	bne  2007478 <_rename_r+0x1d4>                 
 20073d8:	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 ) {         
 20073dc:	c4 07 bf e0 	ld  [ %fp + -32 ], %g2                         
 20073e0:	80 a0 80 01 	cmp  %g2, %g1                                  
 20073e4:	12 80 00 15 	bne  2007438 <_rename_r+0x194>                 
 20073e8:	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 );
 20073ec:	d6 07 bf fc 	ld  [ %fp + -4 ], %o3                          
 20073f0:	c2 00 60 40 	ld  [ %g1 + 0x40 ], %g1                        
 20073f4:	92 07 bf bc 	add  %fp, -68, %o1                             
 20073f8:	94 07 bf e4 	add  %fp, -28, %o2                             
 20073fc:	9f c0 40 00 	call  %g1                                      
 2007400:	90 10 00 1d 	mov  %i5, %o0                                  
 2007404:	b0 10 00 08 	mov  %o0, %i0                                  
                                                                      
  rtems_filesystem_freenode( &new_parent_loc );                       
 2007408:	7f ff fa 80 	call  2005e08 <rtems_filesystem_freenode>      
 200740c:	90 07 bf e4 	add  %fp, -28, %o0                             
  if ( free_old_parentloc )                                           
 2007410:	80 8e e0 ff 	btst  0xff, %i3                                
 2007414:	12 80 00 06 	bne  200742c <_rename_r+0x188>                 
 2007418:	01 00 00 00 	nop                                            
    rtems_filesystem_freenode( &old_parent_loc );                     
  rtems_filesystem_freenode( &old_loc );                              
 200741c:	7f ff fa 7b 	call  2005e08 <rtems_filesystem_freenode>      
 2007420:	90 07 bf bc 	add  %fp, -68, %o0                             
                                                                      
  return result;                                                      
}                                                                     
 2007424:	81 c7 e0 08 	ret                                            
 2007428:	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 );                     
 200742c:	7f ff fa 77 	call  2005e08 <rtems_filesystem_freenode>      
 2007430:	90 10 00 1d 	mov  %i5, %o0                                  
 2007434:	30 bf ff fa 	b,a   200741c <_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 );                     
 2007438:	7f ff fa 74 	call  2005e08 <rtems_filesystem_freenode>      
 200743c:	90 07 bf e4 	add  %fp, -28, %o0                             
    if ( free_old_parentloc )                                         
 2007440:	80 8e e0 ff 	btst  0xff, %i3                                
 2007444:	12 80 00 0a 	bne  200746c <_rename_r+0x1c8>                 
 2007448:	01 00 00 00 	nop                                            
      rtems_filesystem_freenode( &old_parent_loc );                   
    rtems_filesystem_freenode( &old_loc );                            
 200744c:	7f ff fa 6f 	call  2005e08 <rtems_filesystem_freenode>      
 2007450:	90 07 bf bc 	add  %fp, -68, %o0                             
    rtems_set_errno_and_return_minus_one( EXDEV );                    
 2007454:	40 00 2b 8f 	call  2012290 <__errno>                        
 2007458:	b0 10 3f ff 	mov  -1, %i0                                   
 200745c:	82 10 20 12 	mov  0x12, %g1                                 
 2007460:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2007464:	81 c7 e0 08 	ret                                            
 2007468:	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 );                   
 200746c:	7f ff fa 67 	call  2005e08 <rtems_filesystem_freenode>      
 2007470:	90 10 00 1d 	mov  %i5, %o0                                  
 2007474:	30 bf ff f6 	b,a   200744c <_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 );                     
 2007478:	7f ff fa 64 	call  2005e08 <rtems_filesystem_freenode>      
 200747c:	90 07 bf e4 	add  %fp, -28, %o0                             
    if ( free_old_parentloc )                                         
 2007480:	80 8e e0 ff 	btst  0xff, %i3                                
 2007484:	02 80 00 05 	be  2007498 <_rename_r+0x1f4>                  <== NEVER TAKEN
 2007488:	90 07 bf bc 	add  %fp, -68, %o0                             
      rtems_filesystem_freenode( &old_parent_loc );                   
 200748c:	7f ff fa 5f 	call  2005e08 <rtems_filesystem_freenode>      
 2007490:	90 10 00 1d 	mov  %i5, %o0                                  
    rtems_filesystem_freenode( &old_loc );                            
 2007494:	90 07 bf bc 	add  %fp, -68, %o0                             
 2007498:	7f ff fa 5c 	call  2005e08 <rtems_filesystem_freenode>      
 200749c:	b0 10 3f ff 	mov  -1, %i0                                   
    return -1;                                                        
 20074a0:	81 c7 e0 08 	ret                                            
 20074a4:	81 e8 00 00 	restore                                        
                                                                      

02002afc <chroot>: #include <rtems/seterr.h> int chroot( const char *pathname ) {
 2002afc:	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) {             
 2002b00:	3b 00 80 54 	sethi  %hi(0x2015000), %i5                     
 2002b04:	f8 07 61 d8 	ld  [ %i5 + 0x1d8 ], %i4	! 20151d8 <rtems_current_user_env>
 2002b08:	03 00 80 56 	sethi  %hi(0x2015800), %g1                     
 2002b0c:	82 10 63 14 	or  %g1, 0x314, %g1	! 2015b14 <rtems_global_user_env>
 2002b10:	80 a7 00 01 	cmp  %i4, %g1                                  
 2002b14:	02 80 00 20 	be  2002b94 <chroot+0x98>                      
 2002b18:	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);                                           
 2002b1c:	40 00 24 05 	call  200bb30 <chdir>                          
 2002b20:	90 10 00 18 	mov  %i0, %o0                                  
  if (result) {                                                       
 2002b24:	80 a2 20 00 	cmp  %o0, 0                                    
 2002b28:	12 80 00 27 	bne  2002bc4 <chroot+0xc8>                     
 2002b2c:	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)) {           
 2002b30:	11 00 80 51 	sethi  %hi(0x2014400), %o0                     
 2002b34:	94 10 20 00 	clr  %o2                                       
 2002b38:	90 12 22 20 	or  %o0, 0x220, %o0                            
 2002b3c:	96 07 bf ec 	add  %fp, -20, %o3                             
 2002b40:	40 00 00 68 	call  2002ce0 <rtems_filesystem_evaluate_path> 
 2002b44:	98 10 20 00 	clr  %o4                                       
 2002b48:	80 a2 20 00 	cmp  %o0, 0                                    
 2002b4c:	12 80 00 1e 	bne  2002bc4 <chroot+0xc8>                     <== NEVER TAKEN
 2002b50:	d0 07 61 d8 	ld  [ %i5 + 0x1d8 ], %o0                       
    rtems_set_errno_and_return_minus_one( errno );                    
  }                                                                   
  rtems_filesystem_freenode(&rtems_filesystem_root);                  
  rtems_filesystem_root = loc;                                        
                                                                      
  return 0;                                                           
 2002b54:	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);                  
 2002b58:	40 00 00 9c 	call  2002dc8 <rtems_filesystem_freenode>      
 2002b5c:	90 02 20 18 	add  %o0, 0x18, %o0                            
  rtems_filesystem_root = loc;                                        
 2002b60:	c2 07 61 d8 	ld  [ %i5 + 0x1d8 ], %g1                       
 2002b64:	c4 07 bf ec 	ld  [ %fp + -20 ], %g2                         
 2002b68:	c4 20 60 18 	st  %g2, [ %g1 + 0x18 ]                        
 2002b6c:	c4 07 bf f0 	ld  [ %fp + -16 ], %g2                         
 2002b70:	c4 20 60 1c 	st  %g2, [ %g1 + 0x1c ]                        
 2002b74:	c4 07 bf f4 	ld  [ %fp + -12 ], %g2                         
 2002b78:	c4 20 60 20 	st  %g2, [ %g1 + 0x20 ]                        
 2002b7c:	c4 07 bf f8 	ld  [ %fp + -8 ], %g2                          
 2002b80:	c4 20 60 24 	st  %g2, [ %g1 + 0x24 ]                        
 2002b84:	c4 07 bf fc 	ld  [ %fp + -4 ], %g2                          
 2002b88:	c4 20 60 28 	st  %g2, [ %g1 + 0x28 ]                        
                                                                      
  return 0;                                                           
}                                                                     
 2002b8c:	81 c7 e0 08 	ret                                            
 2002b90:	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*/   
 2002b94:	40 00 05 0c 	call  2003fc4 <rtems_libio_set_private_env>    
 2002b98:	01 00 00 00 	nop                                            
   if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ 
 2002b9c:	c2 07 61 d8 	ld  [ %i5 + 0x1d8 ], %g1                       
 2002ba0:	80 a0 40 1c 	cmp  %g1, %i4                                  
 2002ba4:	12 bf ff de 	bne  2002b1c <chroot+0x20>                     
 2002ba8:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
 2002bac:	40 00 2e fe 	call  200e7a4 <__errno>                        
 2002bb0:	b0 10 3f ff 	mov  -1, %i0	! ffffffff <RAM_END+0xfdbfffff>   
 2002bb4:	82 10 20 86 	mov  0x86, %g1                                 
 2002bb8:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2002bbc:	81 c7 e0 08 	ret                                            
 2002bc0:	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 );                    
 2002bc4:	40 00 2e f8 	call  200e7a4 <__errno>                        
 2002bc8:	b0 10 3f ff 	mov  -1, %i0                                   
 2002bcc:	40 00 2e f6 	call  200e7a4 <__errno>                        
 2002bd0:	ba 10 00 08 	mov  %o0, %i5                                  
 2002bd4:	c2 02 00 00 	ld  [ %o0 ], %g1                               
 2002bd8:	c2 27 40 00 	st  %g1, [ %i5 ]                               
 2002bdc:	81 c7 e0 08 	ret                                            
 2002be0:	81 e8 00 00 	restore                                        
                                                                      

0200a9c8 <devFS_evaluate_path>: const char *pathname, size_t pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) {
 200a9c8:	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 ) )                         
 200a9cc:	80 8e bf f8 	btst  -8, %i2                                  
 200a9d0:	12 80 00 33 	bne  200aa9c <devFS_evaluate_path+0xd4>        <== NEVER TAKEN
 200a9d4:	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;    
 200a9d8:	f4 06 c0 00 	ld  [ %i3 ], %i2                               
  if (!device_name_table)                                             
 200a9dc:	80 a6 a0 00 	cmp  %i2, 0                                    
 200a9e0:	02 80 00 35 	be  200aab4 <devFS_evaluate_path+0xec>         
 200a9e4:	03 00 80 5f 	sethi  %hi(0x2017c00), %g1                     
    rtems_set_errno_and_return_minus_one( EFAULT );                   
                                                                      
  for (i = 0; i < rtems_device_table_size; i++) {                     
 200a9e8:	e0 00 62 c0 	ld  [ %g1 + 0x2c0 ], %l0	! 2017ec0 <rtems_device_table_size>
 *  handlers.                                                         
 */                                                                   
                                                                      
extern rtems_filesystem_file_handlers_r  devFS_file_handlers;         
                                                                      
int devFS_evaluate_path(                                              
 200a9ec:	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++) {                     
 200a9f0:	80 a4 20 00 	cmp  %l0, 0                                    
 200a9f4:	02 80 00 18 	be  200aa54 <devFS_evaluate_path+0x8c>         <== NEVER TAKEN
 200a9f8:	82 10 20 00 	clr  %g1                                       
    if (!device_name_table[i].device_name)                            
 200a9fc:	a3 28 60 02 	sll  %g1, 2, %l1                               
 200aa00:	83 28 60 04 	sll  %g1, 4, %g1                               
 200aa04:	a2 04 40 01 	add  %l1, %g1, %l1                             
 200aa08:	f8 06 80 11 	ld  [ %i2 + %l1 ], %i4                         
 200aa0c:	80 a7 20 00 	cmp  %i4, 0                                    
 200aa10:	02 80 00 0d 	be  200aa44 <devFS_evaluate_path+0x7c>         
 200aa14:	a2 06 80 11 	add  %i2, %l1, %l1                             
      continue;                                                       
                                                                      
    if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0)
 200aa18:	90 10 00 18 	mov  %i0, %o0                                  
 200aa1c:	92 10 00 1c 	mov  %i4, %o1                                  
 200aa20:	40 00 0b 8c 	call  200d850 <strncmp>                        
 200aa24:	94 10 00 19 	mov  %i1, %o2                                  
 200aa28:	80 a2 20 00 	cmp  %o0, 0                                    
 200aa2c:	32 80 00 07 	bne,a   200aa48 <devFS_evaluate_path+0x80>     
 200aa30:	ba 07 60 01 	inc  %i5                                       
      continue;                                                       
                                                                      
    if (device_name_table[i].device_name[pathnamelen] != '\0')        
 200aa34:	c2 4f 00 19 	ldsb  [ %i4 + %i1 ], %g1                       
 200aa38:	80 a0 60 00 	cmp  %g1, 0                                    
 200aa3c:	02 80 00 0c 	be  200aa6c <devFS_evaluate_path+0xa4>         
 200aa40:	03 00 80 60 	sethi  %hi(0x2018000), %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++) {                     
 200aa44:	ba 07 60 01 	inc  %i5                                       
 200aa48:	80 a7 40 10 	cmp  %i5, %l0                                  
 200aa4c:	12 bf ff ec 	bne  200a9fc <devFS_evaluate_path+0x34>        
 200aa50:	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 );                     
 200aa54:	40 00 07 d2 	call  200c99c <__errno>                        
 200aa58:	b0 10 3f ff 	mov  -1, %i0                                   
 200aa5c:	82 10 20 02 	mov  2, %g1                                    
 200aa60:	c2 22 00 00 	st  %g1, [ %o0 ]                               
}                                                                     
 200aa64:	81 c7 e0 08 	ret                                            
 200aa68:	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;               
 200aa6c:	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;                         
 200aa70:	05 00 80 5f 	sethi  %hi(0x2017c00), %g2                     
    pathloc->ops = &devFS_ops;                                        
    pathloc->mt_entry = rtems_filesystem_root.mt_entry;               
 200aa74:	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;                         
 200aa78:	84 10 a3 88 	or  %g2, 0x388, %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];             
 200aa7c:	e2 26 c0 00 	st  %l1, [ %i3 ]                               
    pathloc->handlers = &devFS_file_handlers;                         
 200aa80:	c4 26 e0 08 	st  %g2, [ %i3 + 8 ]                           
    pathloc->ops = &devFS_ops;                                        
    pathloc->mt_entry = rtems_filesystem_root.mt_entry;               
 200aa84:	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;                                        
 200aa88:	05 00 80 5f 	sethi  %hi(0x2017c00), %g2                     
 200aa8c:	84 10 a3 c0 	or  %g2, 0x3c0, %g2	! 2017fc0 <devFS_ops>      
 200aa90:	c4 26 e0 0c 	st  %g2, [ %i3 + 0xc ]                         
    pathloc->mt_entry = rtems_filesystem_root.mt_entry;               
    return 0;                                                         
 200aa94:	81 c7 e0 08 	ret                                            
 200aa98:	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 );                    
 200aa9c:	40 00 07 c0 	call  200c99c <__errno>                        <== NOT EXECUTED
 200aaa0:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
 200aaa4:	82 10 20 01 	mov  1, %g1                                    <== NOT EXECUTED
 200aaa8:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
 200aaac:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200aab0:	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 );                   
 200aab4:	40 00 07 ba 	call  200c99c <__errno>                        
 200aab8:	b0 10 3f ff 	mov  -1, %i0                                   
 200aabc:	82 10 20 0e 	mov  0xe, %g1                                  
 200aac0:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200aac4:	81 c7 e0 08 	ret                                            
 200aac8:	81 e8 00 00 	restore                                        
                                                                      

02002df8 <devFS_mknod>: const char *path, mode_t mode, dev_t dev, rtems_filesystem_location_info_t *pathloc ) {
 2002df8:	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') &&                         
 2002dfc:	c2 4e 00 00 	ldsb  [ %i0 ], %g1                             
 2002e00:	80 a0 60 64 	cmp  %g1, 0x64                                 
 2002e04:	02 80 00 43 	be  2002f10 <devFS_mknod+0x118>                
 2002e08:	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))                               
 2002e0c:	03 00 00 3c 	sethi  %hi(0xf000), %g1                        
 2002e10:	05 00 00 08 	sethi  %hi(0x2000), %g2                        
 2002e14:	82 0e 40 01 	and  %i1, %g1, %g1                             
 2002e18:	80 a0 40 02 	cmp  %g1, %g2                                  
 2002e1c:	12 80 00 4b 	bne  2002f48 <devFS_mknod+0x150>               
 2002e20:	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;    
 2002e24:	f0 07 00 00 	ld  [ %i4 ], %i0                               
  if (!device_name_table)                                             
 2002e28:	80 a6 20 00 	cmp  %i0, 0                                    
 2002e2c:	02 80 00 56 	be  2002f84 <devFS_mknod+0x18c>                
 2002e30:	03 00 80 5f 	sethi  %hi(0x2017c00), %g1                     
    rtems_set_errno_and_return_minus_one( EFAULT );                   
                                                                      
  for (slot = -1, i = 0; i < rtems_device_table_size; i++){           
 2002e34:	e0 00 62 c0 	ld  [ %g1 + 0x2c0 ], %l0	! 2017ec0 <rtems_device_table_size>
 2002e38:	80 a4 20 00 	cmp  %l0, 0                                    
 2002e3c:	02 80 00 4c 	be  2002f6c <devFS_mknod+0x174>                
 2002e40:	82 10 20 00 	clr  %g1                                       
#include <stdlib.h>                                                   
                                                                      
#include <rtems/seterr.h>                                             
#include "devfs.h"                                                    
                                                                      
int devFS_mknod(                                                      
 2002e44:	a2 10 3f ff 	mov  -1, %l1                                   
 2002e48:	10 80 00 0a 	b  2002e70 <devFS_mknod+0x78>                  
 2002e4c:	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)    
 2002e50:	40 00 2a 10 	call  200d690 <strcmp>                         
 2002e54:	01 00 00 00 	nop                                            
 2002e58:	80 a2 20 00 	cmp  %o0, 0                                    
 2002e5c:	02 80 00 27 	be  2002ef8 <devFS_mknod+0x100>                
 2002e60:	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++){           
 2002e64:	80 a7 00 10 	cmp  %i4, %l0                                  
 2002e68:	02 80 00 0e 	be  2002ea0 <devFS_mknod+0xa8>                 
 2002e6c:	82 10 00 1c 	mov  %i4, %g1                                  
      if (device_name_table[i].device_name == NULL)                   
 2002e70:	85 28 60 02 	sll  %g1, 2, %g2                               
 2002e74:	83 28 60 04 	sll  %g1, 4, %g1                               
 2002e78:	82 00 80 01 	add  %g2, %g1, %g1                             
 2002e7c:	d2 06 00 01 	ld  [ %i0 + %g1 ], %o1                         
 2002e80:	80 a2 60 00 	cmp  %o1, 0                                    
 2002e84:	12 bf ff f3 	bne  2002e50 <devFS_mknod+0x58>                
 2002e88:	90 10 00 1d 	mov  %i5, %o0                                  
 2002e8c:	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++){           
 2002e90:	b8 07 20 01 	inc  %i4                                       
 2002e94:	80 a7 00 10 	cmp  %i4, %l0                                  
 2002e98:	12 bf ff f6 	bne  2002e70 <devFS_mknod+0x78>                
 2002e9c:	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)                                                     
 2002ea0:	80 a4 7f ff 	cmp  %l1, -1                                   
 2002ea4:	02 80 00 32 	be  2002f6c <devFS_mknod+0x174>                <== NEVER TAKEN
 2002ea8:	01 00 00 00 	nop                                            
      rtems_set_errno_and_return_minus_one( ENOMEM );                 
                                                                      
  _ISR_Disable(level);                                                
 2002eac:	7f ff ff 44 	call  2002bbc <sparc_disable_interrupts>       
 2002eb0:	01 00 00 00 	nop                                            
 2002eb4:	a0 10 00 08 	mov  %o0, %l0                                  
  device_name_table[slot].device_name  = (char *)path;                
 2002eb8:	83 2c 60 02 	sll  %l1, 2, %g1                               
  device_name_table[slot].device_name_length = strlen(path);          
 2002ebc:	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;                
 2002ec0:	a3 2c 60 04 	sll  %l1, 4, %l1                               
 2002ec4:	a2 00 40 11 	add  %g1, %l1, %l1                             
 2002ec8:	b8 06 00 11 	add  %i0, %l1, %i4                             
  device_name_table[slot].device_name_length = strlen(path);          
 2002ecc:	40 00 2a 2b 	call  200d778 <strlen>                         
 2002ed0:	fa 26 00 11 	st  %i5, [ %i0 + %l1 ]                         
  device_name_table[slot].major = major;                              
 2002ed4:	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);          
 2002ed8:	d0 27 20 04 	st  %o0, [ %i4 + 4 ]                           
  device_name_table[slot].major = major;                              
  device_name_table[slot].minor = minor;                              
 2002edc:	f6 27 20 0c 	st  %i3, [ %i4 + 0xc ]                         
  device_name_table[slot].mode  = mode;                               
 2002ee0:	f2 27 20 10 	st  %i1, [ %i4 + 0x10 ]                        
  _ISR_Enable(level);                                                 
                                                                      
  return 0;                                                           
 2002ee4:	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);                                                 
 2002ee8:	7f ff ff 39 	call  2002bcc <sparc_enable_interrupts>        
 2002eec:	90 10 00 10 	mov  %l0, %o0                                  
                                                                      
  return 0;                                                           
}                                                                     
 2002ef0:	81 c7 e0 08 	ret                                            
 2002ef4:	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 );         
 2002ef8:	40 00 26 a9 	call  200c99c <__errno>                        
 2002efc:	b0 10 3f ff 	mov  -1, %i0                                   
 2002f00:	82 10 20 11 	mov  0x11, %g1                                 
 2002f04:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2002f08:	81 c7 e0 08 	ret                                            
 2002f0c:	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') &&                         
 2002f10:	c2 4e 20 01 	ldsb  [ %i0 + 1 ], %g1                         
 2002f14:	80 a0 60 65 	cmp  %g1, 0x65                                 
 2002f18:	12 bf ff be 	bne  2002e10 <devFS_mknod+0x18>                <== NEVER TAKEN
 2002f1c:	03 00 00 3c 	sethi  %hi(0xf000), %g1                        
 2002f20:	c2 4e 20 02 	ldsb  [ %i0 + 2 ], %g1                         
 2002f24:	80 a0 60 76 	cmp  %g1, 0x76                                 
 2002f28:	12 bf ff ba 	bne  2002e10 <devFS_mknod+0x18>                <== NEVER TAKEN
 2002f2c:	03 00 00 3c 	sethi  %hi(0xf000), %g1                        
      (path[2] == 'v') && (path[3] == '\0'))                          
 2002f30:	c2 4e 20 03 	ldsb  [ %i0 + 3 ], %g1                         
 2002f34:	80 a0 60 00 	cmp  %g1, 0                                    
 2002f38:	12 bf ff b5 	bne  2002e0c <devFS_mknod+0x14>                
 2002f3c:	b0 10 20 00 	clr  %i0                                       
  device_name_table[slot].minor = minor;                              
  device_name_table[slot].mode  = mode;                               
  _ISR_Enable(level);                                                 
                                                                      
  return 0;                                                           
}                                                                     
 2002f40:	81 c7 e0 08 	ret                                            
 2002f44:	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))                               
 2002f48:	80 a0 40 02 	cmp  %g1, %g2                                  
 2002f4c:	22 bf ff b7 	be,a   2002e28 <devFS_mknod+0x30>              
 2002f50:	f0 07 00 00 	ld  [ %i4 ], %i0                               
    rtems_set_errno_and_return_minus_one( EINVAL );                   
 2002f54:	40 00 26 92 	call  200c99c <__errno>                        
 2002f58:	b0 10 3f ff 	mov  -1, %i0                                   
 2002f5c:	82 10 20 16 	mov  0x16, %g1                                 
 2002f60:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2002f64:	81 c7 e0 08 	ret                                            
 2002f68:	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 );                 
 2002f6c:	40 00 26 8c 	call  200c99c <__errno>                        
 2002f70:	b0 10 3f ff 	mov  -1, %i0                                   
 2002f74:	82 10 20 0c 	mov  0xc, %g1                                  
 2002f78:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2002f7c:	81 c7 e0 08 	ret                                            
 2002f80:	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 );                   
 2002f84:	40 00 26 86 	call  200c99c <__errno>                        
 2002f88:	b0 10 3f ff 	mov  -1, %i0                                   
 2002f8c:	82 10 20 0e 	mov  0xe, %g1                                  
 2002f90:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2002f94:	81 c7 e0 08 	ret                                            
 2002f98:	81 e8 00 00 	restore                                        
                                                                      

020039f8 <drainOutput.part.0>: /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty)
 20039f8:	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);                                  
 20039fc:	7f ff f9 55 	call  2001f50 <sparc_disable_interrupts>       
 2003a00:	ba 10 00 18 	mov  %i0, %i5                                  
    while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) {              
 2003a04:	c4 06 20 84 	ld  [ %i0 + 0x84 ], %g2                        
 2003a08:	c2 06 20 80 	ld  [ %i0 + 0x80 ], %g1                        
 2003a0c:	80 a0 80 01 	cmp  %g2, %g1                                  
 2003a10:	02 80 00 14 	be  2003a60 <drainOutput.part.0+0x68>          <== ALWAYS TAKEN
 2003a14:	01 00 00 00 	nop                                            
      tty->rawOutBufState = rob_wait;                                 
 2003a18:	b8 10 20 02 	mov  2, %i4	! 2 <PROM_START+0x2>               <== NOT EXECUTED
 2003a1c:	f8 27 60 94 	st  %i4, [ %i5 + 0x94 ]                        <== NOT EXECUTED
      rtems_interrupt_enable (level);                                 
 2003a20:	7f ff f9 50 	call  2001f60 <sparc_enable_interrupts>        <== NOT EXECUTED
 2003a24:	01 00 00 00 	nop                                            <== NOT EXECUTED
      sc = rtems_semaphore_obtain(                                    
 2003a28:	d0 07 60 8c 	ld  [ %i5 + 0x8c ], %o0                        <== NOT EXECUTED
 2003a2c:	92 10 20 00 	clr  %o1                                       <== NOT EXECUTED
 2003a30:	40 00 0a 6a 	call  20063d8 <rtems_semaphore_obtain>         <== NOT EXECUTED
 2003a34:	94 10 20 00 	clr  %o2                                       <== NOT EXECUTED
        tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);      
      if (sc != RTEMS_SUCCESSFUL)                                     
 2003a38:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
 2003a3c:	12 80 00 0b 	bne  2003a68 <drainOutput.part.0+0x70>         <== NOT EXECUTED
 2003a40:	01 00 00 00 	nop                                            <== NOT EXECUTED
        rtems_fatal_error_occurred (sc);                              
      rtems_interrupt_disable (level);                                
 2003a44:	7f ff f9 43 	call  2001f50 <sparc_disable_interrupts>       <== NOT EXECUTED
 2003a48:	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) {              
 2003a4c:	c4 07 60 84 	ld  [ %i5 + 0x84 ], %g2                        <== NOT EXECUTED
 2003a50:	c2 07 60 80 	ld  [ %i5 + 0x80 ], %g1                        <== NOT EXECUTED
 2003a54:	80 a0 80 01 	cmp  %g2, %g1                                  <== NOT EXECUTED
 2003a58:	32 bf ff f2 	bne,a   2003a20 <drainOutput.part.0+0x28>      <== NOT EXECUTED
 2003a5c:	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);                                   
 2003a60:	7f ff f9 40 	call  2001f60 <sparc_enable_interrupts>        
 2003a64:	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);                              
 2003a68:	40 00 0c 06 	call  2006a80 <rtems_fatal_error_occurred>     <== NOT EXECUTED
                                                                      

0200479c <echo>: /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) {
 200479c:	9d e3 bf 98 	save  %sp, -104, %sp                           
  if ((tty->termios.c_lflag & ECHOCTL) &&                             
 20047a0:	c2 06 60 3c 	ld  [ %i1 + 0x3c ], %g1                        
 20047a4:	80 88 62 00 	btst  0x200, %g1                               
 20047a8:	02 80 00 08 	be  20047c8 <echo+0x2c>                        <== NEVER TAKEN
 20047ac:	03 00 80 53 	sethi  %hi(0x2014c00), %g1                     
       iscntrl(c) && (c != '\t') && (c != '\n')) {                    
 20047b0:	c2 00 61 d4 	ld  [ %g1 + 0x1d4 ], %g1	! 2014dd4 <__ctype_ptr__>
 20047b4:	82 00 40 18 	add  %g1, %i0, %g1                             
 20047b8:	c2 08 60 01 	ldub  [ %g1 + 1 ], %g1                         
 20047bc:	80 88 60 20 	btst  0x20, %g1                                
 20047c0:	12 80 00 07 	bne  20047dc <echo+0x40>                       
 20047c4:	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);                                                   
 20047c8:	90 10 00 18 	mov  %i0, %o0                                  
 20047cc:	7f ff ff 8d 	call  2004600 <oproc>                          
 20047d0:	92 10 00 19 	mov  %i1, %o1                                  
 20047d4:	81 c7 e0 08 	ret                                            
 20047d8:	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')) {                    
 20047dc:	02 bf ff fc 	be  20047cc <echo+0x30>                        
 20047e0:	90 10 00 18 	mov  %i0, %o0                                  
 20047e4:	80 a6 20 0a 	cmp  %i0, 0xa                                  
 20047e8:	02 bf ff f9 	be  20047cc <echo+0x30>                        
 20047ec:	82 10 20 5e 	mov  0x5e, %g1                                 
    char echobuf[2];                                                  
                                                                      
    echobuf[0] = '^';                                                 
    echobuf[1] = c ^ 0x40;                                            
 20047f0:	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] = '^';                                                 
 20047f4:	c2 2f bf f8 	stb  %g1, [ %fp + -8 ]                         
    echobuf[1] = c ^ 0x40;                                            
 20047f8:	f0 2f bf f9 	stb  %i0, [ %fp + -7 ]                         
    rtems_termios_puts (echobuf, 2, tty);                             
 20047fc:	90 07 bf f8 	add  %fp, -8, %o0                              
 2004800:	92 10 20 02 	mov  2, %o1                                    
 2004804:	7f ff ff 2f 	call  20044c0 <rtems_termios_puts>             
 2004808:	94 10 00 19 	mov  %i1, %o2                                  
    tty->column += 2;                                                 
 200480c:	c2 06 60 28 	ld  [ %i1 + 0x28 ], %g1                        
 2004810:	82 00 60 02 	add  %g1, 2, %g1                               
 2004814:	c2 26 60 28 	st  %g1, [ %i1 + 0x28 ]                        
 2004818:	81 c7 e0 08 	ret                                            
 200481c:	81 e8 00 00 	restore                                        
                                                                      

02003bcc <endgrent>: void endgrent(void) { if (group_fp != NULL)
 2003bcc:	03 00 80 5c 	sethi  %hi(0x2017000), %g1                     
 2003bd0:	d0 00 62 10 	ld  [ %g1 + 0x210 ], %o0	! 2017210 <group_fp>  
 2003bd4:	80 a2 20 00 	cmp  %o0, 0                                    
 2003bd8:	02 80 00 05 	be  2003bec <endgrent+0x20>                    <== NEVER TAKEN
 2003bdc:	01 00 00 00 	nop                                            
    fclose(group_fp);                                                 
 2003be0:	82 13 c0 00 	mov  %o7, %g1                                  
 2003be4:	40 00 2e 0a 	call  200f40c <fclose>                         
 2003be8:	9e 10 40 00 	mov  %g1, %o7                                  
 2003bec:	81 c3 e0 08 	retl                                           <== NOT EXECUTED
                                                                      

02003a40 <endpwent>: void endpwent(void) { if (passwd_fp != NULL)
 2003a40:	03 00 80 5c 	sethi  %hi(0x2017000), %g1                     
 2003a44:	d0 00 61 30 	ld  [ %g1 + 0x130 ], %o0	! 2017130 <passwd_fp> 
 2003a48:	80 a2 20 00 	cmp  %o0, 0                                    
 2003a4c:	02 80 00 05 	be  2003a60 <endpwent+0x20>                    <== NEVER TAKEN
 2003a50:	01 00 00 00 	nop                                            
    fclose(passwd_fp);                                                
 2003a54:	82 13 c0 00 	mov  %o7, %g1                                  
 2003a58:	40 00 2e 6d 	call  200f40c <fclose>                         
 2003a5c:	9e 10 40 00 	mov  %g1, %o7                                  
 2003a60:	81 c3 e0 08 	retl                                           <== NOT EXECUTED
                                                                      

02004820 <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) {
 2004820:	9d e3 bf a0 	save  %sp, -96, %sp                            
  if (tty->ccount == 0)                                               
 2004824:	c2 06 20 20 	ld  [ %i0 + 0x20 ], %g1                        
 2004828:	80 a0 60 00 	cmp  %g1, 0                                    
 200482c:	02 80 00 37 	be  2004908 <erase+0xe8>                       
 2004830:	ba 10 00 18 	mov  %i0, %i5                                  
    return;                                                           
  if (lineFlag) {                                                     
    if (!(tty->termios.c_lflag & ECHO)) {                             
 2004834:	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) {                                                     
 2004838:	80 a6 60 00 	cmp  %i1, 0                                    
 200483c:	12 80 00 35 	bne  2004910 <erase+0xf0>                      
 2004840:	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);                       
 2004844:	31 00 80 50 	sethi  %hi(0x2014000), %i0                     
                                                                      
        /*                                                            
         * Back up over the tab                                       
         */                                                           
        while (tty->column > col) {                                   
          rtems_termios_puts ("\b", 1, tty);                          
 2004848:	37 00 80 50 	sethi  %hi(0x2014000), %i3                     
          tty->column--;                                              
        }                                                             
      }                                                               
      else {                                                          
        if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) {        
 200484c:	35 00 80 53 	sethi  %hi(0x2014c00), %i2                     
          rtems_termios_puts ("\b \b", 3, tty);                       
 2004850:	b0 16 21 40 	or  %i0, 0x140, %i0                            
                                                                      
        /*                                                            
         * Back up over the tab                                       
         */                                                           
        while (tty->column > col) {                                   
          rtems_termios_puts ("\b", 1, tty);                          
 2004854:	10 80 00 0d 	b  2004888 <erase+0x68>                        
 2004858:	b6 16 e1 38 	or  %i3, 0x138, %i3                            
          tty->column--;                                              
        }                                                             
      }                                                               
      else {                                                          
        if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) {        
 200485c:	12 80 00 6b 	bne  2004a08 <erase+0x1e8>                     <== NOT EXECUTED
 2004860:	90 10 00 18 	mov  %i0, %o0                                  <== NOT EXECUTED
          if (tty->column)                                            
            tty->column--;                                            
        }                                                             
      }                                                               
    }                                                                 
    if (!lineFlag)                                                    
 2004864:	80 a6 60 00 	cmp  %i1, 0                                    <== NOT EXECUTED
 2004868:	02 80 00 66 	be  2004a00 <erase+0x1e0>                      <== NEVER TAKEN
 200486c:	01 00 00 00 	nop                                            
        echo ('\n', tty);                                             
      return;                                                         
    }                                                                 
  }                                                                   
                                                                      
  while (tty->ccount) {                                               
 2004870:	c2 07 60 20 	ld  [ %i5 + 0x20 ], %g1                        
 2004874:	80 a0 60 00 	cmp  %g1, 0                                    
 2004878:	02 80 00 62 	be  2004a00 <erase+0x1e0>                      
 200487c:	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);                                             
 2004880:	c6 07 60 3c 	ld  [ %i5 + 0x3c ], %g3                        
 2004884:	84 08 e0 08 	and  %g3, 8, %g2                               
      return;                                                         
    }                                                                 
  }                                                                   
                                                                      
  while (tty->ccount) {                                               
    unsigned char c = tty->cbuf[--tty->ccount];                       
 2004888:	c8 07 60 1c 	ld  [ %i5 + 0x1c ], %g4                        
 200488c:	82 00 7f ff 	add  %g1, -1, %g1                              
 2004890:	c2 27 60 20 	st  %g1, [ %i5 + 0x20 ]                        
                                                                      
    if (tty->termios.c_lflag & ECHO) {                                
 2004894:	80 a0 a0 00 	cmp  %g2, 0                                    
 2004898:	02 bf ff f3 	be  2004864 <erase+0x44>                       <== NEVER TAKEN
 200489c:	f8 09 00 01 	ldub  [ %g4 + %g1 ], %i4                       
      if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) {             
 20048a0:	80 a6 60 00 	cmp  %i1, 0                                    
 20048a4:	12 80 00 05 	bne  20048b8 <erase+0x98>                      
 20048a8:	b8 0f 20 ff 	and  %i4, 0xff, %i4                            
 20048ac:	80 88 e0 10 	btst  0x10, %g3                                
 20048b0:	22 80 00 52 	be,a   20049f8 <erase+0x1d8>                   <== NEVER TAKEN
 20048b4:	f0 0f 60 43 	ldub  [ %i5 + 0x43 ], %i0                      <== NOT EXECUTED
        echo (tty->termios.c_cc[VERASE], tty);                        
      } else if (c == '\t') {                                         
 20048b8:	80 a7 20 09 	cmp  %i4, 9                                    
 20048bc:	02 80 00 25 	be  2004950 <erase+0x130>                      
 20048c0:	b8 07 20 01 	inc  %i4                                       
          rtems_termios_puts ("\b", 1, tty);                          
          tty->column--;                                              
        }                                                             
      }                                                               
      else {                                                          
        if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) {        
 20048c4:	c2 06 a1 d4 	ld  [ %i2 + 0x1d4 ], %g1                       
 20048c8:	c2 08 40 1c 	ldub  [ %g1 + %i4 ], %g1                       
 20048cc:	80 88 60 20 	btst  0x20, %g1                                
 20048d0:	12 bf ff e3 	bne  200485c <erase+0x3c>                      <== NEVER TAKEN
 20048d4:	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);                       
 20048d8:	11 00 80 50 	sethi  %hi(0x2014000), %o0                     
 20048dc:	92 10 20 03 	mov  3, %o1                                    
 20048e0:	90 12 21 40 	or  %o0, 0x140, %o0                            
 20048e4:	7f ff fe f7 	call  20044c0 <rtems_termios_puts>             
 20048e8:	94 10 00 1d 	mov  %i5, %o2                                  
          if (tty->column)                                            
 20048ec:	c2 07 60 28 	ld  [ %i5 + 0x28 ], %g1                        
 20048f0:	80 a0 60 00 	cmp  %g1, 0                                    
 20048f4:	02 bf ff dd 	be  2004868 <erase+0x48>                       <== NEVER TAKEN
 20048f8:	80 a6 60 00 	cmp  %i1, 0                                    
            tty->column--;                                            
 20048fc:	82 00 7f ff 	add  %g1, -1, %g1                              
        }                                                             
      }                                                               
    }                                                                 
    if (!lineFlag)                                                    
 2004900:	12 bf ff dc 	bne  2004870 <erase+0x50>                      
 2004904:	c2 27 60 28 	st  %g1, [ %i5 + 0x28 ]                        
 2004908:	81 c7 e0 08 	ret                                            
 200490c:	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)) {                             
 2004910:	84 88 e0 08 	andcc  %g3, 8, %g2                             
 2004914:	22 bf ff fd 	be,a   2004908 <erase+0xe8>                    <== NEVER TAKEN
 2004918:	c0 26 20 20 	clr  [ %i0 + 0x20 ]                            <== NOT EXECUTED
      tty->ccount = 0;                                                
      return;                                                         
    }                                                                 
    if (!(tty->termios.c_lflag & ECHOE)) {                            
 200491c:	80 88 e0 10 	btst  0x10, %g3                                
 2004920:	32 bf ff ca 	bne,a   2004848 <erase+0x28>                   <== ALWAYS TAKEN
 2004924:	31 00 80 50 	sethi  %hi(0x2014000), %i0                     
      tty->ccount = 0;                                                
      echo (tty->termios.c_cc[VKILL], tty);                           
 2004928:	d0 0e 20 44 	ldub  [ %i0 + 0x44 ], %o0	! 2014044 <rtems_filesystem_table+0x3d8><== NOT EXECUTED
    if (!(tty->termios.c_lflag & ECHO)) {                             
      tty->ccount = 0;                                                
      return;                                                         
    }                                                                 
    if (!(tty->termios.c_lflag & ECHOE)) {                            
      tty->ccount = 0;                                                
 200492c:	c0 26 20 20 	clr  [ %i0 + 0x20 ]                            <== NOT EXECUTED
      echo (tty->termios.c_cc[VKILL], tty);                           
 2004930:	7f ff ff 9b 	call  200479c <echo>                           <== NOT EXECUTED
 2004934:	92 10 00 18 	mov  %i0, %o1                                  <== NOT EXECUTED
      if (tty->termios.c_lflag & ECHOK)                               
 2004938:	c2 06 20 3c 	ld  [ %i0 + 0x3c ], %g1                        <== NOT EXECUTED
 200493c:	80 88 60 20 	btst  0x20, %g1                                <== NOT EXECUTED
 2004940:	02 bf ff f2 	be  2004908 <erase+0xe8>                       <== NOT EXECUTED
 2004944:	b0 10 20 0a 	mov  0xa, %i0                                  <== NOT EXECUTED
        echo ('\n', tty);                                             
 2004948:	7f ff ff 95 	call  200479c <echo>                           <== NOT EXECUTED
 200494c:	93 e8 00 1d 	restore  %g0, %i5, %o1                         <== NOT EXECUTED
        int i = 0;                                                    
                                                                      
        /*                                                            
         * Find the character before the tab                          
         */                                                           
        while (i != tty->ccount) {                                    
 2004950:	80 a0 60 00 	cmp  %g1, 0                                    
 2004954:	02 80 00 17 	be  20049b0 <erase+0x190>                      
 2004958:	f8 07 60 2c 	ld  [ %i5 + 0x2c ], %i4                        
          c = tty->cbuf[i++];                                         
          if (c == '\t') {                                            
            col = (col | 7) + 1;                                      
          } else if (iscntrl (c)) {                                   
 200495c:	da 06 a1 d4 	ld  [ %i2 + 0x1d4 ], %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;                                                    
 2004960:	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)                       
 2004964:	10 80 00 07 	b  2004980 <erase+0x160>                       
 2004968:	98 08 e2 00 	and  %g3, 0x200, %o4                           
 200496c:	32 80 00 02 	bne,a   2004974 <erase+0x154>                  <== NOT EXECUTED
 2004970:	b8 07 20 02 	add  %i4, 2, %i4                               <== NOT EXECUTED
        int i = 0;                                                    
                                                                      
        /*                                                            
         * Find the character before the tab                          
         */                                                           
        while (i != tty->ccount) {                                    
 2004974:	80 a0 40 02 	cmp  %g1, %g2                                  
 2004978:	22 80 00 0f 	be,a   20049b4 <erase+0x194>                   <== NEVER TAKEN
 200497c:	c2 07 60 28 	ld  [ %i5 + 0x28 ], %g1                        <== NOT EXECUTED
          c = tty->cbuf[i++];                                         
 2004980:	c6 09 00 02 	ldub  [ %g4 + %g2 ], %g3                       
 2004984:	84 00 a0 01 	inc  %g2                                       
          if (c == '\t') {                                            
 2004988:	80 a0 e0 09 	cmp  %g3, 9                                    
 200498c:	02 80 00 18 	be  20049ec <erase+0x1cc>                      
 2004990:	9e 03 40 03 	add  %o5, %g3, %o7                             
            col = (col | 7) + 1;                                      
          } else if (iscntrl (c)) {                                   
 2004994:	de 0b e0 01 	ldub  [ %o7 + 1 ], %o7                         
 2004998:	80 8b e0 20 	btst  0x20, %o7                                
 200499c:	12 bf ff f4 	bne  200496c <erase+0x14c>                     <== NEVER TAKEN
 20049a0:	80 a3 20 00 	cmp  %o4, 0                                    
        int i = 0;                                                    
                                                                      
        /*                                                            
         * Find the character before the tab                          
         */                                                           
        while (i != tty->ccount) {                                    
 20049a4:	80 a0 40 02 	cmp  %g1, %g2                                  
 20049a8:	12 bf ff f6 	bne  2004980 <erase+0x160>                     
 20049ac:	b8 07 20 01 	inc  %i4                                       
        }                                                             
                                                                      
        /*                                                            
         * Back up over the tab                                       
         */                                                           
        while (tty->column > col) {                                   
 20049b0:	c2 07 60 28 	ld  [ %i5 + 0x28 ], %g1                        
 20049b4:	80 a7 00 01 	cmp  %i4, %g1                                  
 20049b8:	16 bf ff ac 	bge  2004868 <erase+0x48>                      <== NEVER TAKEN
 20049bc:	80 a6 60 00 	cmp  %i1, 0                                    
          rtems_termios_puts ("\b", 1, tty);                          
 20049c0:	90 10 00 1b 	mov  %i3, %o0                                  
 20049c4:	92 10 20 01 	mov  1, %o1                                    
 20049c8:	7f ff fe be 	call  20044c0 <rtems_termios_puts>             
 20049cc:	94 10 00 1d 	mov  %i5, %o2                                  
          tty->column--;                                              
 20049d0:	c2 07 60 28 	ld  [ %i5 + 0x28 ], %g1                        
 20049d4:	82 00 7f ff 	add  %g1, -1, %g1                              
        }                                                             
                                                                      
        /*                                                            
         * Back up over the tab                                       
         */                                                           
        while (tty->column > col) {                                   
 20049d8:	80 a0 40 1c 	cmp  %g1, %i4                                  
 20049dc:	14 bf ff f9 	bg  20049c0 <erase+0x1a0>                      
 20049e0:	c2 27 60 28 	st  %g1, [ %i5 + 0x28 ]                        
          if (tty->column)                                            
            tty->column--;                                            
        }                                                             
      }                                                               
    }                                                                 
    if (!lineFlag)                                                    
 20049e4:	10 bf ff a1 	b  2004868 <erase+0x48>                        
 20049e8:	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;                                      
 20049ec:	b8 17 20 07 	or  %i4, 7, %i4                                
 20049f0:	10 bf ff e1 	b  2004974 <erase+0x154>                       
 20049f4:	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);                        
 20049f8:	7f ff ff 69 	call  200479c <echo>                           <== NOT EXECUTED
 20049fc:	93 e8 00 1d 	restore  %g0, %i5, %o1                         <== NOT EXECUTED
 2004a00:	81 c7 e0 08 	ret                                            
 2004a04:	81 e8 00 00 	restore                                        
          tty->column--;                                              
        }                                                             
      }                                                               
      else {                                                          
        if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) {        
          rtems_termios_puts ("\b \b", 3, tty);                       
 2004a08:	92 10 20 03 	mov  3, %o1                                    <== NOT EXECUTED
 2004a0c:	7f ff fe ad 	call  20044c0 <rtems_termios_puts>             <== NOT EXECUTED
 2004a10:	94 10 00 1d 	mov  %i5, %o2                                  <== NOT EXECUTED
          if (tty->column)                                            
 2004a14:	c2 07 60 28 	ld  [ %i5 + 0x28 ], %g1                        <== NOT EXECUTED
 2004a18:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
 2004a1c:	22 80 00 05 	be,a   2004a30 <erase+0x210>                   <== NOT EXECUTED
 2004a20:	c2 06 a1 d4 	ld  [ %i2 + 0x1d4 ], %g1                       <== NOT EXECUTED
            tty->column--;                                            
 2004a24:	82 00 7f ff 	add  %g1, -1, %g1                              <== NOT EXECUTED
 2004a28:	c2 27 60 28 	st  %g1, [ %i5 + 0x28 ]                        <== NOT EXECUTED
        }                                                             
        if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) {       
 2004a2c:	c2 06 a1 d4 	ld  [ %i2 + 0x1d4 ], %g1                       <== NOT EXECUTED
 2004a30:	c2 08 40 1c 	ldub  [ %g1 + %i4 ], %g1                       <== NOT EXECUTED
 2004a34:	80 88 60 20 	btst  0x20, %g1                                <== NOT EXECUTED
 2004a38:	02 bf ff a9 	be  20048dc <erase+0xbc>                       <== NOT EXECUTED
 2004a3c:	11 00 80 50 	sethi  %hi(0x2014000), %o0                     <== NOT EXECUTED
 2004a40:	c2 07 60 3c 	ld  [ %i5 + 0x3c ], %g1                        <== NOT EXECUTED
 2004a44:	80 88 62 00 	btst  0x200, %g1                               <== NOT EXECUTED
 2004a48:	12 bf ff a6 	bne  20048e0 <erase+0xc0>                      <== NOT EXECUTED
 2004a4c:	92 10 20 03 	mov  3, %o1                                    <== NOT EXECUTED
          if (tty->column)                                            
            tty->column--;                                            
        }                                                             
      }                                                               
    }                                                                 
    if (!lineFlag)                                                    
 2004a50:	10 bf ff 86 	b  2004868 <erase+0x48>                        <== NOT EXECUTED
 2004a54:	80 a6 60 00 	cmp  %i1, 0                                    <== NOT EXECUTED
                                                                      

0200344c <fcntl>: int fcntl( int fd, int cmd, ... ) {
 200344c:	9d e3 bf 90 	save  %sp, -112, %sp                           
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
 2003450:	03 00 80 5a 	sethi  %hi(0x2016800), %g1                     
 2003454:	c4 00 60 cc 	ld  [ %g1 + 0xcc ], %g2	! 20168cc <rtems_libio_number_iops>
  ...                                                                 
)                                                                     
{                                                                     
  int            ret;                                                 
  va_list        ap;                                                  
  va_start( ap, cmd );                                                
 2003458:	f4 27 a0 4c 	st  %i2, [ %fp + 0x4c ]                        
 200345c:	82 07 a0 4c 	add  %fp, 0x4c, %g1                            
 2003460:	f6 27 a0 50 	st  %i3, [ %fp + 0x50 ]                        
 2003464:	f8 27 a0 54 	st  %i4, [ %fp + 0x54 ]                        
 2003468:	fa 27 a0 58 	st  %i5, [ %fp + 0x58 ]                        
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
 200346c:	80 a6 00 02 	cmp  %i0, %g2                                  
 2003470:	1a 80 00 65 	bcc  2003604 <fcntl+0x1b8>                     
 2003474:	c2 27 bf fc 	st  %g1, [ %fp + -4 ]                          
  iop = rtems_libio_iop( fd );                                        
 2003478:	3b 00 80 5c 	sethi  %hi(0x2017000), %i5                     
 200347c:	c6 07 62 94 	ld  [ %i5 + 0x294 ], %g3	! 2017294 <rtems_libio_iops>
 2003480:	93 2e 20 06 	sll  %i0, 6, %o1                               
 2003484:	92 00 c0 09 	add  %g3, %o1, %o1                             
  rtems_libio_check_is_open(iop);                                     
 2003488:	d0 02 60 18 	ld  [ %o1 + 0x18 ], %o0                        
 200348c:	80 8a 21 00 	btst  0x100, %o0                               
 2003490:	02 80 00 5d 	be  2003604 <fcntl+0x1b8>                      
 2003494:	80 a6 60 09 	cmp  %i1, 9                                    
                                                                      
  /*                                                                  
   *  This switch should contain all the cases from POSIX.            
   */                                                                 
                                                                      
  switch ( cmd ) {                                                    
 2003498:	08 80 00 08 	bleu  20034b8 <fcntl+0x6c>                     
 200349c:	89 2e 60 02 	sll  %i1, 2, %g4                               
      errno = ENOTSUP;                                                
      ret = -1;                                                       
      break;                                                          
                                                                      
    default:                                                          
      errno = EINVAL;                                                 
 20034a0:	40 00 2f d2 	call  200f3e8 <__errno>                        
 20034a4:	b0 10 3f ff 	mov  -1, %i0                                   
 20034a8:	82 10 20 16 	mov  0x16, %g1                                 
 20034ac:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 20034b0:	81 c7 e0 08 	ret                                            
 20034b4:	81 e8 00 00 	restore                                        
                                                                      
  /*                                                                  
   *  This switch should contain all the cases from POSIX.            
   */                                                                 
                                                                      
  switch ( cmd ) {                                                    
 20034b8:	31 00 80 0d 	sethi  %hi(0x2003400), %i0                     
 20034bc:	b0 16 20 24 	or  %i0, 0x24, %i0	! 2003424 <rtems_filesystem_prefix_separators+0x70>
 20034c0:	c8 06 00 04 	ld  [ %i0 + %g4 ], %g4                         
 20034c4:	81 c1 00 00 	jmp  %g4                                       
 20034c8:	01 00 00 00 	nop                                            
      errno = ENOTSUP;                                                
      ret = -1;                                                       
      break;                                                          
                                                                      
    case F_GETOWN:       /*  for sockets. */                          
      errno = ENOTSUP;                                                
 20034cc:	40 00 2f c7 	call  200f3e8 <__errno>                        
 20034d0:	01 00 00 00 	nop                                            
 20034d4:	82 10 20 86 	mov  0x86, %g1	! 86 <PROM_START+0x86>          
 20034d8:	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);                                     
 20034dc:	81 c7 e0 08 	ret                                            
 20034e0:	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 ) );           
 20034e4:	d0 00 40 00 	ld  [ %g1 ], %o0                               
 20034e8:	40 00 01 aa 	call  2003b90 <rtems_libio_fcntl_flags>        
 20034ec:	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);             
 20034f0:	d2 07 bf f4 	ld  [ %fp + -12 ], %o1                         
 20034f4:	90 0a 22 01 	and  %o0, 0x201, %o0                           
 20034f8:	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;                                             
 20034fc:	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);             
 2003500:	82 08 7d fe 	and  %g1, -514, %g1                            
 2003504:	82 12 00 01 	or  %o0, %g1, %g1                              
 2003508:	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 );         
 200350c:	c2 02 60 24 	ld  [ %o1 + 0x24 ], %g1                        
 2003510:	c2 00 60 30 	ld  [ %g1 + 0x30 ], %g1                        
 2003514:	9f c0 40 00 	call  %g1                                      
 2003518:	90 10 00 19 	mov  %i1, %o0                                  
    if (err) {                                                        
 200351c:	b2 92 20 00 	orcc  %o0, 0, %i1                              
 2003520:	12 80 00 04 	bne  2003530 <fcntl+0xe4>                      <== NEVER TAKEN
 2003524:	01 00 00 00 	nop                                            
  va_list        ap;                                                  
  va_start( ap, cmd );                                                
  ret = vfcntl(fd,cmd,ap);                                            
  va_end(ap);                                                         
  return ret;                                                         
}                                                                     
 2003528:	81 c7 e0 08 	ret                                            
 200352c:	81 e8 00 00 	restore                                        
   */                                                                 
                                                                      
  if (ret >= 0) {                                                     
    int err = (*iop->pathinfo.handlers->fcntl_h)( cmd, iop );         
    if (err) {                                                        
      errno = err;                                                    
 2003530:	40 00 2f ae 	call  200f3e8 <__errno>                        <== NOT EXECUTED
 2003534:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
 2003538:	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;                                                         
}                                                                     
 200353c:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 2003540:	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 );                 
 2003544:	40 00 01 a0 	call  2003bc4 <rtems_libio_to_fcntl_flags>     
 2003548:	d2 27 bf f4 	st  %o1, [ %fp + -12 ]                         
 200354c:	d2 07 bf f4 	ld  [ %fp + -12 ], %o1                         
 2003550:	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) {                                                     
 2003554:	80 a6 20 00 	cmp  %i0, 0                                    
 2003558:	36 bf ff ee 	bge,a   2003510 <fcntl+0xc4>                   <== ALWAYS TAKEN
 200355c:	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;                                                         
}                                                                     
 2003560:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 2003564:	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 ) )                                        
 2003568:	c2 00 40 00 	ld  [ %g1 ], %g1                               
 200356c:	80 a0 60 00 	cmp  %g1, 0                                    
 2003570:	22 80 00 22 	be,a   20035f8 <fcntl+0x1ac>                   
 2003574:	90 0a 37 ff 	and  %o0, -2049, %o0                           
        iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC;                      
 2003578:	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;                                             
 200357c:	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;                      
 2003580:	10 bf ff e3 	b  200350c <fcntl+0xc0>                        
 2003584:	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);          
 2003588:	90 0a 28 00 	and  %o0, 0x800, %o0                           
 200358c:	80 a0 00 08 	cmp  %g0, %o0                                  
 2003590:	10 bf ff df 	b  200350c <fcntl+0xc0>                        
 2003594:	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 );                                        
 2003598:	c8 00 40 00 	ld  [ %g1 ], %g4                               
      if ( fd2 )                                                      
 200359c:	80 a1 20 00 	cmp  %g4, 0                                    
 20035a0:	02 80 00 1f 	be  200361c <fcntl+0x1d0>                      
 20035a4:	b0 10 20 00 	clr  %i0                                       
        diop = rtems_libio_iop( fd2 );                                
 20035a8:	80 a0 80 04 	cmp  %g2, %g4                                  
 20035ac:	08 80 00 05 	bleu  20035c0 <fcntl+0x174>                    <== NEVER TAKEN
 20035b0:	82 10 20 00 	clr  %g1                                       
 20035b4:	83 29 20 06 	sll  %g4, 6, %g1                               
 20035b8:	82 00 c0 01 	add  %g3, %g1, %g1                             
 20035bc:	b0 10 00 01 	mov  %g1, %i0                                  
          break;                                                      
        }                                                             
      }                                                               
                                                                      
      diop->flags      = iop->flags;                                  
      diop->pathinfo   = iop->pathinfo;                               
 20035c0:	c4 02 60 1c 	ld  [ %o1 + 0x1c ], %g2                        
      ret = (int) (diop - rtems_libio_iops);                          
 20035c4:	b0 26 00 03 	sub  %i0, %g3, %i0                             
          break;                                                      
        }                                                             
      }                                                               
                                                                      
      diop->flags      = iop->flags;                                  
      diop->pathinfo   = iop->pathinfo;                               
 20035c8:	c4 20 60 1c 	st  %g2, [ %g1 + 0x1c ]                        
 20035cc:	c4 02 60 20 	ld  [ %o1 + 0x20 ], %g2                        
          ret = -1;                                                   
          break;                                                      
        }                                                             
      }                                                               
                                                                      
      diop->flags      = iop->flags;                                  
 20035d0:	d0 20 60 18 	st  %o0, [ %g1 + 0x18 ]                        
      diop->pathinfo   = iop->pathinfo;                               
 20035d4:	c4 20 60 20 	st  %g2, [ %g1 + 0x20 ]                        
 20035d8:	c4 02 60 24 	ld  [ %o1 + 0x24 ], %g2                        
      ret = (int) (diop - rtems_libio_iops);                          
 20035dc:	b1 3e 20 06 	sra  %i0, 6, %i0                               
          break;                                                      
        }                                                             
      }                                                               
                                                                      
      diop->flags      = iop->flags;                                  
      diop->pathinfo   = iop->pathinfo;                               
 20035e0:	c4 20 60 24 	st  %g2, [ %g1 + 0x24 ]                        
 20035e4:	c4 02 60 28 	ld  [ %o1 + 0x28 ], %g2                        
 20035e8:	c4 20 60 28 	st  %g2, [ %g1 + 0x28 ]                        
 20035ec:	c4 02 60 2c 	ld  [ %o1 + 0x2c ], %g2                        
 20035f0:	10 bf ff d9 	b  2003554 <fcntl+0x108>                       
 20035f4:	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;                                             
 20035f8:	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;                     
 20035fc:	10 bf ff c4 	b  200350c <fcntl+0xc0>                        
 2003600:	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);                                     
 2003604:	40 00 2f 79 	call  200f3e8 <__errno>                        
 2003608:	b0 10 3f ff 	mov  -1, %i0                                   
 200360c:	82 10 20 09 	mov  9, %g1                                    
 2003610:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2003614:	81 c7 e0 08 	ret                                            
 2003618:	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();                                
 200361c:	40 00 01 81 	call  2003c20 <rtems_libio_allocate>           
 2003620:	d2 27 bf f4 	st  %o1, [ %fp + -12 ]                         
        if ( diop == 0 ) {                                            
 2003624:	82 92 20 00 	orcc  %o0, 0, %g1                              
 2003628:	02 bf ff ad 	be  20034dc <fcntl+0x90>                       <== NEVER TAKEN
 200362c:	d2 07 bf f4 	ld  [ %fp + -12 ], %o1                         
 2003630:	d0 02 60 18 	ld  [ %o1 + 0x18 ], %o0                        
 2003634:	c6 07 62 94 	ld  [ %i5 + 0x294 ], %g3                       
 2003638:	10 bf ff e2 	b  20035c0 <fcntl+0x174>                       
 200363c:	b0 10 00 01 	mov  %g1, %i0                                  
                                                                      

0200d428 <fifo_open>: */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) {
 200d428:	9d e3 bf 98 	save  %sp, -104, %sp                           
                                                                      
static rtems_status_code pipe_lock(void)                              
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (pipe_semaphore == RTEMS_ID_NONE) {                              
 200d42c:	3b 00 80 81 	sethi  %hi(0x2020400), %i5                     
 200d430:	d0 07 63 c0 	ld  [ %i5 + 0x3c0 ], %o0	! 20207c0 <pipe_semaphore>
 */                                                                   
int fifo_open(                                                        
  pipe_control_t **pipep,                                             
  rtems_libio_t *iop                                                  
)                                                                     
{                                                                     
 200d434:	b8 10 00 18 	mov  %i0, %i4                                  
                                                                      
static rtems_status_code pipe_lock(void)                              
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (pipe_semaphore == RTEMS_ID_NONE) {                              
 200d438:	80 a2 20 00 	cmp  %o0, 0                                    
 200d43c:	02 80 00 54 	be  200d58c <fifo_open+0x164>                  
 200d440:	b4 17 63 c0 	or  %i5, 0x3c0, %i2                            
                                                                      
    rtems_libio_unlock();                                             
  }                                                                   
                                                                      
  if (sc == RTEMS_SUCCESSFUL) {                                       
    sc = rtems_semaphore_obtain(pipe_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
 200d444:	92 10 20 00 	clr  %o1                                       
 200d448:	94 10 20 00 	clr  %o2                                       
 200d44c:	7f ff ec 32 	call  2008514 <rtems_semaphore_obtain>         
 200d450:	b0 10 3f f4 	mov  -12, %i0                                  
  }                                                                   
                                                                      
  if (sc == RTEMS_SUCCESSFUL) {                                       
 200d454:	80 a2 20 00 	cmp  %o0, 0                                    
 200d458:	12 80 01 06 	bne  200d870 <fifo_open+0x448>                 <== NEVER TAKEN
 200d45c:	01 00 00 00 	nop                                            
                                                                      
  err = pipe_lock();                                                  
  if (err)                                                            
    return err;                                                       
                                                                      
  pipe = *pipep;                                                      
 200d460:	f6 07 00 00 	ld  [ %i4 ], %i3                               
  if (pipe == NULL) {                                                 
 200d464:	80 a6 e0 00 	cmp  %i3, 0                                    
 200d468:	02 80 00 91 	be  200d6ac <fifo_open+0x284>                  
 200d46c:	01 00 00 00 	nop                                            
    err = pipe_alloc(&pipe);                                          
    if (err)                                                          
      goto out;                                                       
  }                                                                   
                                                                      
  if (! PIPE_LOCK(pipe))                                              
 200d470:	d0 06 e0 28 	ld  [ %i3 + 0x28 ], %o0                        
 200d474:	92 10 20 00 	clr  %o1                                       
 200d478:	7f ff ec 27 	call  2008514 <rtems_semaphore_obtain>         
 200d47c:	94 10 20 00 	clr  %o2                                       
    err = -EINTR;                                                     
                                                                      
  if (*pipep == NULL) {                                               
 200d480:	c2 07 00 00 	ld  [ %i4 ], %g1                               
    err = pipe_alloc(&pipe);                                          
    if (err)                                                          
      goto out;                                                       
  }                                                                   
                                                                      
  if (! PIPE_LOCK(pipe))                                              
 200d484:	80 a0 00 08 	cmp  %g0, %o0                                  
 200d488:	b0 60 20 00 	subx  %g0, 0, %i0                              
    err = -EINTR;                                                     
                                                                      
  if (*pipep == NULL) {                                               
 200d48c:	80 a0 60 00 	cmp  %g1, 0                                    
 200d490:	02 80 00 c7 	be  200d7ac <fifo_open+0x384>                  
 200d494:	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);                       
 200d498:	7f ff ec 68 	call  2008638 <rtems_semaphore_release>        
 200d49c:	d0 07 63 c0 	ld  [ %i5 + 0x3c0 ], %o0                       
  pipe_control_t *pipe;                                               
  unsigned int prevCounter;                                           
  int err;                                                            
                                                                      
  err = pipe_new(pipep);                                              
  if (err)                                                            
 200d4a0:	80 a6 20 00 	cmp  %i0, 0                                    
 200d4a4:	12 80 00 f3 	bne  200d870 <fifo_open+0x448>                 <== NEVER TAKEN
 200d4a8:	01 00 00 00 	nop                                            
    return err;                                                       
  pipe = *pipep;                                                      
                                                                      
  switch (LIBIO_ACCMODE(iop)) {                                       
 200d4ac:	c2 06 60 18 	ld  [ %i1 + 0x18 ], %g1                        
 200d4b0:	82 08 60 06 	and  %g1, 6, %g1                               
 200d4b4:	80 a0 60 04 	cmp  %g1, 4                                    
 200d4b8:	02 80 00 42 	be  200d5c0 <fifo_open+0x198>                  
 200d4bc:	fa 07 00 00 	ld  [ %i4 ], %i5                               
 200d4c0:	80 a0 60 06 	cmp  %g1, 6                                    
 200d4c4:	02 80 00 65 	be  200d658 <fifo_open+0x230>                  
 200d4c8:	80 a0 60 02 	cmp  %g1, 2                                    
 200d4cc:	22 80 00 07 	be,a   200d4e8 <fifo_open+0xc0>                <== ALWAYS TAKEN
 200d4d0:	c2 07 60 10 	ld  [ %i5 + 0x10 ], %g1                        
      if (pipe->Writers ++ == 0)                                      
        PIPE_WAKEUPREADERS(pipe);                                     
      break;                                                          
  }                                                                   
                                                                      
  PIPE_UNLOCK(pipe);                                                  
 200d4d4:	d0 07 60 28 	ld  [ %i5 + 0x28 ], %o0                        <== NOT EXECUTED
 200d4d8:	7f ff ec 58 	call  2008638 <rtems_semaphore_release>        
 200d4dc:	b0 10 20 00 	clr  %i0                                       
  return 0;                                                           
 200d4e0:	81 c7 e0 08 	ret                                            
 200d4e4:	81 e8 00 00 	restore                                        
    return err;                                                       
  pipe = *pipep;                                                      
                                                                      
  switch (LIBIO_ACCMODE(iop)) {                                       
    case LIBIO_FLAGS_READ:                                            
      pipe->readerCounter ++;                                         
 200d4e8:	c4 07 60 20 	ld  [ %i5 + 0x20 ], %g2                        
      if (pipe->Readers ++ == 0)                                      
 200d4ec:	86 00 60 01 	add  %g1, 1, %g3                               
    return err;                                                       
  pipe = *pipep;                                                      
                                                                      
  switch (LIBIO_ACCMODE(iop)) {                                       
    case LIBIO_FLAGS_READ:                                            
      pipe->readerCounter ++;                                         
 200d4f0:	84 00 a0 01 	inc  %g2                                       
      if (pipe->Readers ++ == 0)                                      
 200d4f4:	c6 27 60 10 	st  %g3, [ %i5 + 0x10 ]                        
 200d4f8:	80 a0 60 00 	cmp  %g1, 0                                    
 200d4fc:	02 80 00 c2 	be  200d804 <fifo_open+0x3dc>                  <== ALWAYS TAKEN
 200d500:	c4 27 60 20 	st  %g2, [ %i5 + 0x20 ]                        
        PIPE_WAKEUPWRITERS(pipe);                                     
                                                                      
      if (pipe->Writers == 0) {                                       
 200d504:	c2 07 60 14 	ld  [ %i5 + 0x14 ], %g1                        <== NOT EXECUTED
 200d508:	80 a0 60 00 	cmp  %g1, 0                                    
 200d50c:	32 bf ff f3 	bne,a   200d4d8 <fifo_open+0xb0>               
 200d510:	d0 07 60 28 	ld  [ %i5 + 0x28 ], %o0                        
        /* Not an error */                                            
        if (LIBIO_NODELAY(iop))                                       
 200d514:	c2 06 60 18 	ld  [ %i1 + 0x18 ], %g1                        
 200d518:	80 88 60 01 	btst  1, %g1                                   
 200d51c:	32 bf ff ef 	bne,a   200d4d8 <fifo_open+0xb0>               
 200d520:	d0 07 60 28 	ld  [ %i5 + 0x28 ], %o0                        
          break;                                                      
                                                                      
        prevCounter = pipe->writerCounter;                            
 200d524:	10 80 00 0c 	b  200d554 <fifo_open+0x12c>                   
 200d528:	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))                                      
 200d52c:	92 10 20 00 	clr  %o1                                       
 200d530:	7f ff eb f9 	call  2008514 <rtems_semaphore_obtain>         
 200d534:	94 10 20 00 	clr  %o2                                       
 200d538:	80 a2 20 00 	cmp  %o0, 0                                    
 200d53c:	12 80 00 0f 	bne  200d578 <fifo_open+0x150>                 <== NEVER TAKEN
 200d540:	b0 10 3f fc 	mov  -4, %i0                                   
            goto out_error;                                           
        } while (prevCounter == pipe->writerCounter);                 
 200d544:	c2 07 60 24 	ld  [ %i5 + 0x24 ], %g1                        
 200d548:	80 a0 40 1b 	cmp  %g1, %i3                                  
 200d54c:	32 bf ff e3 	bne,a   200d4d8 <fifo_open+0xb0>               <== ALWAYS TAKEN
 200d550:	d0 07 60 28 	ld  [ %i5 + 0x28 ], %o0                        
                                                                      
        prevCounter = pipe->writerCounter;                            
        err = -EINTR;                                                 
        /* Wait until a writer opens the pipe */                      
        do {                                                          
          PIPE_UNLOCK(pipe);                                          
 200d554:	7f ff ec 39 	call  2008638 <rtems_semaphore_release>        
 200d558:	d0 07 60 28 	ld  [ %i5 + 0x28 ], %o0                        
          if (! PIPE_READWAIT(pipe))                                  
 200d55c:	d0 07 60 2c 	ld  [ %i5 + 0x2c ], %o0                        
 200d560:	40 00 04 ed 	call  200e914 <rtems_barrier_wait>             
 200d564:	92 10 20 00 	clr  %o1                                       
 200d568:	80 a2 20 00 	cmp  %o0, 0                                    
 200d56c:	22 bf ff f0 	be,a   200d52c <fifo_open+0x104>               <== ALWAYS TAKEN
 200d570:	d0 07 60 28 	ld  [ %i5 + 0x28 ], %o0                        
        goto out_error;                                               
      }                                                               
                                                                      
      if (pipe->Readers == 0) {                                       
        prevCounter = pipe->readerCounter;                            
        err = -EINTR;                                                 
 200d574:	b0 10 3f fc 	mov  -4, %i0                                   <== NOT EXECUTED
                                                                      
  PIPE_UNLOCK(pipe);                                                  
  return 0;                                                           
                                                                      
out_error:                                                            
  pipe_release(pipep, iop);                                           
 200d578:	90 10 00 1c 	mov  %i4, %o0                                  <== NOT EXECUTED
 200d57c:	7f ff ff 68 	call  200d31c <pipe_release>                   
 200d580:	92 10 00 19 	mov  %i1, %o1                                  
  return err;                                                         
}                                                                     
 200d584:	81 c7 e0 08 	ret                                            
 200d588:	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 );
 200d58c:	37 00 80 82 	sethi  %hi(0x2020800), %i3                     
 200d590:	d0 06 e1 40 	ld  [ %i3 + 0x140 ], %o0	! 2020940 <rtems_libio_semaphore>
 200d594:	92 10 20 00 	clr  %o1                                       
 200d598:	7f ff eb df 	call  2008514 <rtems_semaphore_obtain>         
 200d59c:	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) {                            
 200d5a0:	c2 07 63 c0 	ld  [ %i5 + 0x3c0 ], %g1                       
 200d5a4:	80 a0 60 00 	cmp  %g1, 0                                    
 200d5a8:	02 80 00 88 	be  200d7c8 <fifo_open+0x3a0>                  <== ALWAYS TAKEN
 200d5ac:	98 10 00 1a 	mov  %i2, %o4                                  
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
 200d5b0:	7f ff ec 22 	call  2008638 <rtems_semaphore_release>        <== NOT EXECUTED
 200d5b4:	d0 06 e1 40 	ld  [ %i3 + 0x140 ], %o0                       <== NOT EXECUTED
 200d5b8:	10 bf ff a3 	b  200d444 <fifo_open+0x1c>                    <== NOT EXECUTED
 200d5bc:	d0 07 63 c0 	ld  [ %i5 + 0x3c0 ], %o0                       <== NOT EXECUTED
      break;                                                          
                                                                      
    case LIBIO_FLAGS_WRITE:                                           
      pipe->writerCounter ++;                                         
                                                                      
      if (pipe->Writers ++ == 0)                                      
 200d5c0:	c2 07 60 14 	ld  [ %i5 + 0x14 ], %g1                        
        } while (prevCounter == pipe->writerCounter);                 
      }                                                               
      break;                                                          
                                                                      
    case LIBIO_FLAGS_WRITE:                                           
      pipe->writerCounter ++;                                         
 200d5c4:	c4 07 60 24 	ld  [ %i5 + 0x24 ], %g2                        
                                                                      
      if (pipe->Writers ++ == 0)                                      
 200d5c8:	86 00 60 01 	add  %g1, 1, %g3                               
        } while (prevCounter == pipe->writerCounter);                 
      }                                                               
      break;                                                          
                                                                      
    case LIBIO_FLAGS_WRITE:                                           
      pipe->writerCounter ++;                                         
 200d5cc:	84 00 a0 01 	inc  %g2                                       
                                                                      
      if (pipe->Writers ++ == 0)                                      
 200d5d0:	c6 27 60 14 	st  %g3, [ %i5 + 0x14 ]                        
 200d5d4:	80 a0 60 00 	cmp  %g1, 0                                    
 200d5d8:	02 80 00 95 	be  200d82c <fifo_open+0x404>                  <== ALWAYS TAKEN
 200d5dc:	c4 27 60 24 	st  %g2, [ %i5 + 0x24 ]                        
        PIPE_WAKEUPREADERS(pipe);                                     
                                                                      
      if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {                 
 200d5e0:	c2 07 60 10 	ld  [ %i5 + 0x10 ], %g1                        <== NOT EXECUTED
 200d5e4:	80 a0 60 00 	cmp  %g1, 0                                    
 200d5e8:	32 bf ff bc 	bne,a   200d4d8 <fifo_open+0xb0>               
 200d5ec:	d0 07 60 28 	ld  [ %i5 + 0x28 ], %o0                        
 200d5f0:	c2 06 60 18 	ld  [ %i1 + 0x18 ], %g1                        
 200d5f4:	80 88 60 01 	btst  1, %g1                                   
 200d5f8:	32 80 00 a0 	bne,a   200d878 <fifo_open+0x450>              
 200d5fc:	d0 07 60 28 	ld  [ %i5 + 0x28 ], %o0                        
        err = -ENXIO;                                                 
        goto out_error;                                               
      }                                                               
                                                                      
      if (pipe->Readers == 0) {                                       
        prevCounter = pipe->readerCounter;                            
 200d600:	10 80 00 0c 	b  200d630 <fifo_open+0x208>                   
 200d604:	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))                                      
 200d608:	92 10 20 00 	clr  %o1                                       
 200d60c:	7f ff eb c2 	call  2008514 <rtems_semaphore_obtain>         
 200d610:	94 10 20 00 	clr  %o2                                       
 200d614:	80 a2 20 00 	cmp  %o0, 0                                    
 200d618:	12 bf ff d8 	bne  200d578 <fifo_open+0x150>                 <== NEVER TAKEN
 200d61c:	b0 10 3f fc 	mov  -4, %i0                                   
            goto out_error;                                           
        } while (prevCounter == pipe->readerCounter);                 
 200d620:	c2 07 60 20 	ld  [ %i5 + 0x20 ], %g1                        
 200d624:	80 a0 40 1b 	cmp  %g1, %i3                                  
 200d628:	32 bf ff ac 	bne,a   200d4d8 <fifo_open+0xb0>               <== ALWAYS TAKEN
 200d62c:	d0 07 60 28 	ld  [ %i5 + 0x28 ], %o0                        
                                                                      
      if (pipe->Readers == 0) {                                       
        prevCounter = pipe->readerCounter;                            
        err = -EINTR;                                                 
        do {                                                          
          PIPE_UNLOCK(pipe);                                          
 200d630:	7f ff ec 02 	call  2008638 <rtems_semaphore_release>        
 200d634:	d0 07 60 28 	ld  [ %i5 + 0x28 ], %o0                        
          if (! PIPE_WRITEWAIT(pipe))                                 
 200d638:	d0 07 60 30 	ld  [ %i5 + 0x30 ], %o0                        
 200d63c:	40 00 04 b6 	call  200e914 <rtems_barrier_wait>             
 200d640:	92 10 20 00 	clr  %o1                                       
 200d644:	80 a2 20 00 	cmp  %o0, 0                                    
 200d648:	22 bf ff f0 	be,a   200d608 <fifo_open+0x1e0>               <== ALWAYS TAKEN
 200d64c:	d0 07 60 28 	ld  [ %i5 + 0x28 ], %o0                        
        goto out_error;                                               
      }                                                               
                                                                      
      if (pipe->Readers == 0) {                                       
        prevCounter = pipe->readerCounter;                            
        err = -EINTR;                                                 
 200d650:	10 bf ff ca 	b  200d578 <fifo_open+0x150>                   <== NOT EXECUTED
 200d654:	b0 10 3f fc 	mov  -4, %i0                                   <== NOT EXECUTED
      }                                                               
      break;                                                          
                                                                      
    case LIBIO_FLAGS_READ_WRITE:                                      
      pipe->readerCounter ++;                                         
      if (pipe->Readers ++ == 0)                                      
 200d658:	c2 07 60 10 	ld  [ %i5 + 0x10 ], %g1                        
        } while (prevCounter == pipe->readerCounter);                 
      }                                                               
      break;                                                          
                                                                      
    case LIBIO_FLAGS_READ_WRITE:                                      
      pipe->readerCounter ++;                                         
 200d65c:	c4 07 60 20 	ld  [ %i5 + 0x20 ], %g2                        
      if (pipe->Readers ++ == 0)                                      
 200d660:	86 00 60 01 	add  %g1, 1, %g3                               
        } while (prevCounter == pipe->readerCounter);                 
      }                                                               
      break;                                                          
                                                                      
    case LIBIO_FLAGS_READ_WRITE:                                      
      pipe->readerCounter ++;                                         
 200d664:	84 00 a0 01 	inc  %g2                                       
      if (pipe->Readers ++ == 0)                                      
 200d668:	c6 27 60 10 	st  %g3, [ %i5 + 0x10 ]                        
 200d66c:	80 a0 60 00 	cmp  %g1, 0                                    
 200d670:	02 80 00 6a 	be  200d818 <fifo_open+0x3f0>                  <== ALWAYS TAKEN
 200d674:	c4 27 60 20 	st  %g2, [ %i5 + 0x20 ]                        
        PIPE_WAKEUPWRITERS(pipe);                                     
      pipe->writerCounter ++;                                         
      if (pipe->Writers ++ == 0)                                      
 200d678:	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 ++;                                         
 200d67c:	c4 07 60 24 	ld  [ %i5 + 0x24 ], %g2                        
      if (pipe->Writers ++ == 0)                                      
 200d680:	86 00 60 01 	add  %g1, 1, %g3                               
                                                                      
    case LIBIO_FLAGS_READ_WRITE:                                      
      pipe->readerCounter ++;                                         
      if (pipe->Readers ++ == 0)                                      
        PIPE_WAKEUPWRITERS(pipe);                                     
      pipe->writerCounter ++;                                         
 200d684:	84 00 a0 01 	inc  %g2                                       
      if (pipe->Writers ++ == 0)                                      
 200d688:	c6 27 60 14 	st  %g3, [ %i5 + 0x14 ]                        
 200d68c:	80 a0 60 00 	cmp  %g1, 0                                    
 200d690:	12 bf ff 91 	bne  200d4d4 <fifo_open+0xac>                  <== NEVER TAKEN
 200d694:	c4 27 60 24 	st  %g2, [ %i5 + 0x24 ]                        
        PIPE_WAKEUPREADERS(pipe);                                     
 200d698:	d0 07 60 2c 	ld  [ %i5 + 0x2c ], %o0                        
 200d69c:	40 00 04 87 	call  200e8b8 <rtems_barrier_release>          
 200d6a0:	92 07 bf fc 	add  %fp, -4, %o1                              
      break;                                                          
  }                                                                   
                                                                      
  PIPE_UNLOCK(pipe);                                                  
 200d6a4:	10 bf ff 8d 	b  200d4d8 <fifo_open+0xb0>                    
 200d6a8:	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));                              
 200d6ac:	7f ff dd cd 	call  2004de0 <malloc>                         
 200d6b0:	90 10 20 34 	mov  0x34, %o0                                 
  if (pipe == NULL)                                                   
 200d6b4:	b6 92 20 00 	orcc  %o0, 0, %i3                              
 200d6b8:	02 80 00 7c 	be  200d8a8 <fifo_open+0x480>                  
 200d6bc:	82 10 22 00 	mov  0x200, %g1                                
    return err;                                                       
  memset(pipe, 0, sizeof(pipe_control_t));                            
 200d6c0:	c0 26 c0 00 	clr  [ %i3 ]                                   
 200d6c4:	c0 26 e0 08 	clr  [ %i3 + 8 ]                               
 200d6c8:	c0 26 e0 0c 	clr  [ %i3 + 0xc ]                             
 200d6cc:	c0 26 e0 10 	clr  [ %i3 + 0x10 ]                            
 200d6d0:	c0 26 e0 14 	clr  [ %i3 + 0x14 ]                            
 200d6d4:	c0 26 e0 18 	clr  [ %i3 + 0x18 ]                            
 200d6d8:	c0 26 e0 1c 	clr  [ %i3 + 0x1c ]                            
 200d6dc:	c0 26 e0 20 	clr  [ %i3 + 0x20 ]                            
 200d6e0:	c0 26 e0 24 	clr  [ %i3 + 0x24 ]                            
 200d6e4:	c0 26 e0 28 	clr  [ %i3 + 0x28 ]                            
 200d6e8:	c0 26 e0 2c 	clr  [ %i3 + 0x2c ]                            
 200d6ec:	c0 26 e0 30 	clr  [ %i3 + 0x30 ]                            
                                                                      
  pipe->Size = PIPE_BUF;                                              
  pipe->Buffer = malloc(pipe->Size);                                  
 200d6f0:	90 10 22 00 	mov  0x200, %o0                                
 200d6f4:	7f ff dd bb 	call  2004de0 <malloc>                         
 200d6f8:	c2 26 e0 04 	st  %g1, [ %i3 + 4 ]                           
  if (! pipe->Buffer)                                                 
 200d6fc:	80 a2 20 00 	cmp  %o0, 0                                    
 200d700:	02 80 00 68 	be  200d8a0 <fifo_open+0x478>                  <== NEVER TAKEN
 200d704:	d0 26 c0 00 	st  %o0, [ %i3 ]                               
    goto err_buf;                                                     
                                                                      
  err = -ENOMEM;                                                      
                                                                      
  if (rtems_barrier_create(                                           
        rtems_build_name ('P', 'I', 'r', c),                          
 200d708:	35 00 80 80 	sethi  %hi(0x2020000), %i2                     
 200d70c:	d0 4e a0 38 	ldsb  [ %i2 + 0x38 ], %o0	! 2020038 <c.5717>   
  if (! pipe->Buffer)                                                 
    goto err_buf;                                                     
                                                                      
  err = -ENOMEM;                                                      
                                                                      
  if (rtems_barrier_create(                                           
 200d710:	31 14 12 5c 	sethi  %hi(0x50497000), %i0                    
 200d714:	82 16 22 00 	or  %i0, 0x200, %g1	! 50497200 <RAM_END+0x4e097200>
 200d718:	92 10 20 00 	clr  %o1                                       
 200d71c:	94 10 20 00 	clr  %o2                                       
 200d720:	90 12 00 01 	or  %o0, %g1, %o0                              
 200d724:	40 00 04 0c 	call  200e754 <rtems_barrier_create>           
 200d728:	96 06 e0 2c 	add  %i3, 0x2c, %o3                            
 200d72c:	80 a2 20 00 	cmp  %o0, 0                                    
 200d730:	12 80 00 5a 	bne  200d898 <fifo_open+0x470>                 
 200d734:	d0 4e a0 38 	ldsb  [ %i2 + 0x38 ], %o0                      
        rtems_build_name ('P', 'I', 'r', c),                          
        RTEMS_BARRIER_MANUAL_RELEASE, 0,                              
        &pipe->readBarrier) != RTEMS_SUCCESSFUL)                      
    goto err_rbar;                                                    
  if (rtems_barrier_create(                                           
 200d738:	03 14 12 5d 	sethi  %hi(0x50497400), %g1                    
 200d73c:	82 10 63 00 	or  %g1, 0x300, %g1	! 50497700 <RAM_END+0x4e097700>
 200d740:	92 10 20 00 	clr  %o1                                       
 200d744:	94 10 20 00 	clr  %o2                                       
 200d748:	90 12 00 01 	or  %o0, %g1, %o0                              
 200d74c:	40 00 04 02 	call  200e754 <rtems_barrier_create>           
 200d750:	96 06 e0 30 	add  %i3, 0x30, %o3                            
 200d754:	80 a2 20 00 	cmp  %o0, 0                                    
 200d758:	12 80 00 4e 	bne  200d890 <fifo_open+0x468>                 
 200d75c:	d0 4e a0 38 	ldsb  [ %i2 + 0x38 ], %o0                      
        rtems_build_name ('P', 'I', 'w', c),                          
        RTEMS_BARRIER_MANUAL_RELEASE, 0,                              
        &pipe->writeBarrier) != RTEMS_SUCCESSFUL)                     
    goto err_wbar;                                                    
  if (rtems_semaphore_create(                                         
 200d760:	b0 16 23 00 	or  %i0, 0x300, %i0                            
 200d764:	92 10 20 01 	mov  1, %o1                                    
 200d768:	90 12 00 18 	or  %o0, %i0, %o0                              
 200d76c:	94 10 20 10 	mov  0x10, %o2                                 
 200d770:	96 10 20 00 	clr  %o3                                       
 200d774:	7f ff ea c2 	call  200827c <rtems_semaphore_create>         
 200d778:	98 06 e0 28 	add  %i3, 0x28, %o4                            
 200d77c:	80 a2 20 00 	cmp  %o0, 0                                    
 200d780:	12 80 00 42 	bne  200d888 <fifo_open+0x460>                 
 200d784:	c2 0e a0 38 	ldub  [ %i2 + 0x38 ], %g1                      
#ifdef RTEMS_POSIX_API                                                
  pipe_interruptible(pipe);                                           
#endif                                                                
                                                                      
  *pipep = pipe;                                                      
  if (c ++ == 'z')                                                    
 200d788:	84 00 60 01 	add  %g1, 1, %g2                               
 200d78c:	83 28 60 18 	sll  %g1, 0x18, %g1                            
 200d790:	83 38 60 18 	sra  %g1, 0x18, %g1                            
 200d794:	80 a0 60 7a 	cmp  %g1, 0x7a                                 
 200d798:	12 bf ff 36 	bne  200d470 <fifo_open+0x48>                  
 200d79c:	c4 2e a0 38 	stb  %g2, [ %i2 + 0x38 ]                       
    c = 'a';                                                          
 200d7a0:	82 10 20 61 	mov  0x61, %g1                                 
 200d7a4:	10 bf ff 33 	b  200d470 <fifo_open+0x48>                    
 200d7a8:	c2 2e a0 38 	stb  %g1, [ %i2 + 0x38 ]                       
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    err = -EINTR;                                                     
                                                                      
  if (*pipep == NULL) {                                               
    if (err)                                                          
 200d7ac:	80 a6 20 00 	cmp  %i0, 0                                    
 200d7b0:	12 80 00 24 	bne  200d840 <fifo_open+0x418>                 <== NEVER TAKEN
 200d7b4:	d0 07 63 c0 	ld  [ %i5 + 0x3c0 ], %o0                       
                                                                      
static void pipe_unlock(void)                                         
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  sc = rtems_semaphore_release(pipe_semaphore);                       
 200d7b8:	7f ff eb a0 	call  2008638 <rtems_semaphore_release>        
 200d7bc:	f6 27 00 00 	st  %i3, [ %i4 ]                               
  err = pipe_new(pipep);                                              
  if (err)                                                            
    return err;                                                       
  pipe = *pipep;                                                      
                                                                      
  switch (LIBIO_ACCMODE(iop)) {                                       
 200d7c0:	10 bf ff 3c 	b  200d4b0 <fifo_open+0x88>                    
 200d7c4:	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(                                    
 200d7c8:	92 10 20 01 	mov  1, %o1                                    
 200d7cc:	94 10 20 54 	mov  0x54, %o2                                 
 200d7d0:	96 10 20 00 	clr  %o3                                       
 200d7d4:	11 14 12 54 	sethi  %hi(0x50495000), %o0                    
 200d7d8:	7f ff ea a9 	call  200827c <rtems_semaphore_create>         
 200d7dc:	90 12 20 45 	or  %o0, 0x45, %o0	! 50495045 <RAM_END+0x4e095045>
 200d7e0:	b4 10 00 08 	mov  %o0, %i2                                  
 200d7e4:	d0 06 e1 40 	ld  [ %i3 + 0x140 ], %o0                       
 200d7e8:	7f ff eb 94 	call  2008638 <rtems_semaphore_release>        
 200d7ec:	b0 10 3f f4 	mov  -12, %i0                                  
    }                                                                 
                                                                      
    rtems_libio_unlock();                                             
  }                                                                   
                                                                      
  if (sc == RTEMS_SUCCESSFUL) {                                       
 200d7f0:	80 a6 a0 00 	cmp  %i2, 0                                    
 200d7f4:	12 bf ff 3b 	bne  200d4e0 <fifo_open+0xb8>                  
 200d7f8:	d0 07 63 c0 	ld  [ %i5 + 0x3c0 ], %o0                       
    sc = rtems_semaphore_obtain(pipe_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
 200d7fc:	10 bf ff 13 	b  200d448 <fifo_open+0x20>                    
 200d800:	92 10 20 00 	clr  %o1                                       
                                                                      
  switch (LIBIO_ACCMODE(iop)) {                                       
    case LIBIO_FLAGS_READ:                                            
      pipe->readerCounter ++;                                         
      if (pipe->Readers ++ == 0)                                      
        PIPE_WAKEUPWRITERS(pipe);                                     
 200d804:	d0 07 60 30 	ld  [ %i5 + 0x30 ], %o0                        
 200d808:	40 00 04 2c 	call  200e8b8 <rtems_barrier_release>          
 200d80c:	92 07 bf fc 	add  %fp, -4, %o1                              
                                                                      
      if (pipe->Writers == 0) {                                       
 200d810:	10 bf ff 3e 	b  200d508 <fifo_open+0xe0>                    
 200d814:	c2 07 60 14 	ld  [ %i5 + 0x14 ], %g1                        
      break;                                                          
                                                                      
    case LIBIO_FLAGS_READ_WRITE:                                      
      pipe->readerCounter ++;                                         
      if (pipe->Readers ++ == 0)                                      
        PIPE_WAKEUPWRITERS(pipe);                                     
 200d818:	d0 07 60 30 	ld  [ %i5 + 0x30 ], %o0                        
 200d81c:	40 00 04 27 	call  200e8b8 <rtems_barrier_release>          
 200d820:	92 07 bf fc 	add  %fp, -4, %o1                              
      pipe->writerCounter ++;                                         
      if (pipe->Writers ++ == 0)                                      
 200d824:	10 bf ff 96 	b  200d67c <fifo_open+0x254>                   
 200d828:	c2 07 60 14 	ld  [ %i5 + 0x14 ], %g1                        
                                                                      
    case LIBIO_FLAGS_WRITE:                                           
      pipe->writerCounter ++;                                         
                                                                      
      if (pipe->Writers ++ == 0)                                      
        PIPE_WAKEUPREADERS(pipe);                                     
 200d82c:	d0 07 60 2c 	ld  [ %i5 + 0x2c ], %o0                        
 200d830:	40 00 04 22 	call  200e8b8 <rtems_barrier_release>          
 200d834:	92 07 bf fc 	add  %fp, -4, %o1                              
                                                                      
      if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {                 
 200d838:	10 bf ff 6b 	b  200d5e4 <fifo_open+0x1bc>                   
 200d83c:	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);                            
 200d840:	40 00 03 f5 	call  200e814 <rtems_barrier_delete>           <== NOT EXECUTED
 200d844:	d0 06 e0 2c 	ld  [ %i3 + 0x2c ], %o0                        <== NOT EXECUTED
  rtems_barrier_delete(pipe->writeBarrier);                           
 200d848:	40 00 03 f3 	call  200e814 <rtems_barrier_delete>           <== NOT EXECUTED
 200d84c:	d0 06 e0 30 	ld  [ %i3 + 0x30 ], %o0                        <== NOT EXECUTED
  rtems_semaphore_delete(pipe->Semaphore);                            
 200d850:	7f ff ea fa 	call  2008438 <rtems_semaphore_delete>         <== NOT EXECUTED
 200d854:	d0 06 e0 28 	ld  [ %i3 + 0x28 ], %o0                        <== NOT EXECUTED
  free(pipe->Buffer);                                                 
 200d858:	7f ff db 6a 	call  2004600 <free>                           <== NOT EXECUTED
 200d85c:	d0 06 c0 00 	ld  [ %i3 ], %o0                               <== NOT EXECUTED
  free(pipe);                                                         
 200d860:	7f ff db 68 	call  2004600 <free>                           <== NOT EXECUTED
 200d864:	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);                       
 200d868:	7f ff eb 74 	call  2008638 <rtems_semaphore_release>        
 200d86c:	d0 07 63 c0 	ld  [ %i5 + 0x3c0 ], %o0                       
 200d870:	81 c7 e0 08 	ret                                            
 200d874:	81 e8 00 00 	restore                                        
                                                                      
      if (pipe->Writers ++ == 0)                                      
        PIPE_WAKEUPREADERS(pipe);                                     
                                                                      
      if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {                 
	PIPE_UNLOCK(pipe);                                                   
 200d878:	7f ff eb 70 	call  2008638 <rtems_semaphore_release>        
 200d87c:	b0 10 3f fa 	mov  -6, %i0                                   
        err = -ENXIO;                                                 
        goto out_error;                                               
 200d880:	10 bf ff 3f 	b  200d57c <fifo_open+0x154>                   
 200d884:	90 10 00 1c 	mov  %i4, %o0                                  
  if (c ++ == 'z')                                                    
    c = 'a';                                                          
  return 0;                                                           
                                                                      
err_sem:                                                              
  rtems_barrier_delete(pipe->writeBarrier);                           
 200d888:	40 00 03 e3 	call  200e814 <rtems_barrier_delete>           
 200d88c:	d0 06 e0 30 	ld  [ %i3 + 0x30 ], %o0                        
err_wbar:                                                             
  rtems_barrier_delete(pipe->readBarrier);                            
 200d890:	40 00 03 e1 	call  200e814 <rtems_barrier_delete>           
 200d894:	d0 06 e0 2c 	ld  [ %i3 + 0x2c ], %o0                        
err_rbar:                                                             
  free(pipe->Buffer);                                                 
 200d898:	7f ff db 5a 	call  2004600 <free>                           
 200d89c:	d0 06 c0 00 	ld  [ %i3 ], %o0                               
err_buf:                                                              
  free(pipe);                                                         
 200d8a0:	7f ff db 58 	call  2004600 <free>                           
 200d8a4:	90 10 00 1b 	mov  %i3, %o0                                  
)                                                                     
{                                                                     
  pipe_control_t *pipe;                                               
  int err = 0;                                                        
                                                                      
  err = pipe_lock();                                                  
 200d8a8:	10 bf ff f0 	b  200d868 <fifo_open+0x440>                   
 200d8ac:	b0 10 3f f4 	mov  -12, %i0                                  
                                                                      

0200370c <fpathconf>: long fpathconf( int fd, int name ) {
 200370c:	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);                                           
 2003710:	03 00 80 5a 	sethi  %hi(0x2016800), %g1                     
 2003714:	c2 00 60 cc 	ld  [ %g1 + 0xcc ], %g1	! 20168cc <rtems_libio_number_iops>
 2003718:	80 a6 00 01 	cmp  %i0, %g1                                  
 200371c:	1a 80 00 3d 	bcc  2003810 <fpathconf+0x104>                 
 2003720:	03 00 80 5c 	sethi  %hi(0x2017000), %g1                     
  iop = rtems_libio_iop(fd);                                          
 2003724:	c2 00 62 94 	ld  [ %g1 + 0x294 ], %g1	! 2017294 <rtems_libio_iops>
 2003728:	b1 2e 20 06 	sll  %i0, 6, %i0                               
 200372c:	b0 00 40 18 	add  %g1, %i0, %i0                             
  rtems_libio_check_is_open(iop);                                     
 2003730:	c2 06 20 18 	ld  [ %i0 + 0x18 ], %g1                        
 2003734:	80 88 61 00 	btst  0x100, %g1                               
 2003738:	02 80 00 36 	be  2003810 <fpathconf+0x104>                  <== NEVER TAKEN
 200373c:	80 88 60 02 	btst  2, %g1                                   
  rtems_libio_check_permissions(iop, LIBIO_FLAGS_READ);               
 2003740:	02 80 00 3a 	be  2003828 <fpathconf+0x11c>                  
 2003744:	80 a6 60 0b 	cmp  %i1, 0xb                                  
   *  Now process the information request.                            
   */                                                                 
                                                                      
  the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options;  
                                                                      
  switch ( name ) {                                                   
 2003748:	08 80 00 08 	bleu  2003768 <fpathconf+0x5c>                 
 200374c:	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 );                 
 2003750:	40 00 2f 26 	call  200f3e8 <__errno>                        
 2003754:	b0 10 3f ff 	mov  -1, %i0                                   
 2003758:	82 10 20 16 	mov  0x16, %g1                                 
 200375c:	c2 22 00 00 	st  %g1, [ %o0 ]                               
      break;                                                          
  }                                                                   
                                                                      
  return return_value;                                                
}                                                                     
 2003760:	81 c7 e0 08 	ret                                            
 2003764:	81 e8 00 00 	restore                                        
   *  Now process the information request.                            
   */                                                                 
                                                                      
  the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options;  
                                                                      
  switch ( name ) {                                                   
 2003768:	b3 2e 60 02 	sll  %i1, 2, %i1                               
 200376c:	05 00 80 0d 	sethi  %hi(0x2003400), %g2                     
 2003770:	84 10 a2 dc 	or  %g2, 0x2dc, %g2	! 20036dc <fdatasync+0x84> 
 2003774:	c4 00 80 19 	ld  [ %g2 + %i1 ], %g2                         
 2003778:	81 c0 80 00 	jmp  %g2                                       
 200377c:	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;                       
 2003780:	f0 00 60 5c 	ld  [ %g1 + 0x5c ], %i0                        
      break;                                                          
 2003784:	81 c7 e0 08 	ret                                            
 2003788:	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;                      
 200378c:	f0 00 60 50 	ld  [ %g1 + 0x50 ], %i0                        
      break;                                                          
 2003790:	81 c7 e0 08 	ret                                            
 2003794:	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;                      
 2003798:	f0 00 60 64 	ld  [ %g1 + 0x64 ], %i0                        
      break;                                                          
 200379c:	81 c7 e0 08 	ret                                            
 20037a0:	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;                      
 20037a4:	f0 00 60 58 	ld  [ %g1 + 0x58 ], %i0                        
      break;                                                          
 20037a8:	81 c7 e0 08 	ret                                            
 20037ac:	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;            
 20037b0:	f0 00 60 54 	ld  [ %g1 + 0x54 ], %i0                        
      break;                                                          
 20037b4:	81 c7 e0 08 	ret                                            
 20037b8:	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;                            
 20037bc:	f0 00 60 4c 	ld  [ %g1 + 0x4c ], %i0                        
      break;                                                          
 20037c0:	81 c7 e0 08 	ret                                            
 20037c4:	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;                            
 20037c8:	f0 00 60 48 	ld  [ %g1 + 0x48 ], %i0                        
      break;                                                          
 20037cc:	81 c7 e0 08 	ret                                            
 20037d0:	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;                            
 20037d4:	f0 00 60 44 	ld  [ %g1 + 0x44 ], %i0                        
      break;                                                          
 20037d8:	81 c7 e0 08 	ret                                            
 20037dc:	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;                           
 20037e0:	f0 00 60 40 	ld  [ %g1 + 0x40 ], %i0                        
      break;                                                          
 20037e4:	81 c7 e0 08 	ret                                            
 20037e8:	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;                           
 20037ec:	f0 00 60 3c 	ld  [ %g1 + 0x3c ], %i0                        
      break;                                                          
 20037f0:	81 c7 e0 08 	ret                                            
 20037f4:	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;                            
 20037f8:	f0 00 60 38 	ld  [ %g1 + 0x38 ], %i0                        
      break;                                                          
 20037fc:	81 c7 e0 08 	ret                                            
 2003800:	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;                       
 2003804:	f0 00 60 60 	ld  [ %g1 + 0x60 ], %i0                        
      break;                                                          
 2003808:	81 c7 e0 08 	ret                                            
 200380c:	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);                                     
 2003810:	40 00 2e f6 	call  200f3e8 <__errno>                        
 2003814:	b0 10 3f ff 	mov  -1, %i0                                   
 2003818:	82 10 20 09 	mov  9, %g1                                    
 200381c:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2003820:	81 c7 e0 08 	ret                                            
 2003824:	81 e8 00 00 	restore                                        
  rtems_libio_check_permissions(iop, LIBIO_FLAGS_READ);               
 2003828:	40 00 2e f0 	call  200f3e8 <__errno>                        
 200382c:	b0 10 3f ff 	mov  -1, %i0                                   
 2003830:	82 10 20 16 	mov  0x16, %g1                                 
 2003834:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2003838:	81 c7 e0 08 	ret                                            
 200383c:	81 e8 00 00 	restore                                        
                                                                      

02002a14 <free>: #include <stdlib.h> void free( void *ptr ) {
 2002a14:	9d e3 bf a0 	save  %sp, -96, %sp                            
  MSBUMP(free_calls, 1);                                              
 2002a18:	03 00 80 55 	sethi  %hi(0x2015400), %g1                     
 2002a1c:	82 10 61 80 	or  %g1, 0x180, %g1	! 2015580 <rtems_malloc_statistics>
 2002a20:	c4 00 60 0c 	ld  [ %g1 + 0xc ], %g2                         
#include <stdlib.h>                                                   
                                                                      
void free(                                                            
  void *ptr                                                           
)                                                                     
{                                                                     
 2002a24:	b2 10 00 18 	mov  %i0, %i1                                  
  MSBUMP(free_calls, 1);                                              
 2002a28:	84 00 a0 01 	inc  %g2                                       
                                                                      
  if ( !ptr )                                                         
 2002a2c:	80 a6 20 00 	cmp  %i0, 0                                    
 2002a30:	02 80 00 15 	be  2002a84 <free+0x70>                        
 2002a34:	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()) &&                    
 2002a38:	03 00 80 56 	sethi  %hi(0x2015800), %g1                     
 2002a3c:	c2 00 60 8c 	ld  [ %g1 + 0x8c ], %g1	! 201588c <_System_state_Current>
 2002a40:	80 a0 60 03 	cmp  %g1, 3                                    
 2002a44:	02 80 00 17 	be  2002aa0 <free+0x8c>                        <== ALWAYS TAKEN
 2002a48:	03 00 80 54 	sethi  %hi(0x2015000), %g1                     
  }                                                                   
                                                                      
  /*                                                                  
   *  If configured, update the statistics                            
   */                                                                 
  if ( rtems_malloc_statistics_helpers )                              
 2002a4c:	c2 00 62 c8 	ld  [ %g1 + 0x2c8 ], %g1	! 20152c8 <rtems_malloc_statistics_helpers>
 2002a50:	80 a0 60 00 	cmp  %g1, 0                                    
 2002a54:	02 80 00 06 	be  2002a6c <free+0x58>                        
 2002a58:	3b 00 80 52 	sethi  %hi(0x2014800), %i5                     
    (*rtems_malloc_statistics_helpers->at_free)(ptr);                 
 2002a5c:	c2 00 60 08 	ld  [ %g1 + 8 ], %g1                           
 2002a60:	9f c0 40 00 	call  %g1                                      
 2002a64:	90 10 00 19 	mov  %i1, %o0                                  
                                                                      
  if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) {            
 2002a68:	3b 00 80 52 	sethi  %hi(0x2014800), %i5                     
 2002a6c:	d0 07 63 60 	ld  [ %i5 + 0x360 ], %o0	! 2014b60 <RTEMS_Malloc_Heap>
 2002a70:	40 00 15 95 	call  20080c4 <_Protected_heap_Free>           
 2002a74:	92 10 00 19 	mov  %i1, %o1                                  
 2002a78:	80 8a 20 ff 	btst  0xff, %o0                                
 2002a7c:	22 80 00 04 	be,a   2002a8c <free+0x78>                     
 2002a80:	c2 07 63 60 	ld  [ %i5 + 0x360 ], %g1                       
 2002a84:	81 c7 e0 08 	ret                                            
 2002a88:	81 e8 00 00 	restore                                        
    printk( "Program heap: free of bad pointer %p -- range %p - %p \n",
 2002a8c:	31 00 80 50 	sethi  %hi(0x2014000), %i0                     
 2002a90:	f4 00 60 18 	ld  [ %g1 + 0x18 ], %i2                        
 2002a94:	f6 00 60 1c 	ld  [ %g1 + 0x1c ], %i3                        
 2002a98:	40 00 03 8d 	call  20038cc <printk>                         
 2002a9c:	91 ee 20 b0 	restore  %i0, 0xb0, %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() ) {                               
 2002aa0:	40 00 00 5f 	call  2002c1c <malloc_is_system_state_OK>      
 2002aa4:	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()) &&                    
 2002aa8:	80 8a 20 ff 	btst  0xff, %o0                                
 2002aac:	12 bf ff e8 	bne  2002a4c <free+0x38>                       
 2002ab0:	03 00 80 54 	sethi  %hi(0x2015000), %g1                     
       !malloc_is_system_state_OK() ) {                               
      malloc_deferred_free(ptr);                                      
 2002ab4:	40 00 00 79 	call  2002c98 <malloc_deferred_free>           
 2002ab8:	81 e8 00 00 	restore                                        
                                                                      

02003f8c <free_user_env>: * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) {
 2003f8c:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_user_env_t *env = (rtems_user_env_t*) venv ;                  
                                                                      
  if (env != &rtems_global_user_env                                   
 2003f90:	03 00 80 56 	sethi  %hi(0x2015800), %g1                     
 2003f94:	82 10 63 14 	or  %g1, 0x314, %g1	! 2015b14 <rtems_global_user_env>
 2003f98:	80 a6 00 01 	cmp  %i0, %g1                                  
 2003f9c:	02 80 00 08 	be  2003fbc <free_user_env+0x30>               <== NEVER TAKEN
 2003fa0:	01 00 00 00 	nop                                            
  #ifdef HAVE_USERENV_REFCNT                                          
      && --env->refcnt <= 0                                           
  #endif                                                              
  ) {                                                                 
    rtems_filesystem_freenode( &env->current_directory);              
 2003fa4:	7f ff fb 89 	call  2002dc8 <rtems_filesystem_freenode>      
 2003fa8:	90 06 20 04 	add  %i0, 4, %o0                               
    rtems_filesystem_freenode( &env->root_directory);                 
 2003fac:	7f ff fb 87 	call  2002dc8 <rtems_filesystem_freenode>      
 2003fb0:	90 06 20 18 	add  %i0, 0x18, %o0                            
    free(env);                                                        
 2003fb4:	7f ff fb 8c 	call  2002de4 <free>                           
 2003fb8:	81 e8 00 00 	restore                                        
 2003fbc:	81 c7 e0 08 	ret                                            
 2003fc0:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

02014c40 <getdents>: int getdents( int dd_fd, char *dd_buf, int dd_len ) {
 2014c40:	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 );                                     
 2014c44:	03 00 80 5d 	sethi  %hi(0x2017400), %g1                     
 2014c48:	c2 00 63 d4 	ld  [ %g1 + 0x3d4 ], %g1	! 20177d4 <rtems_libio_number_iops>
 2014c4c:	80 a6 00 01 	cmp  %i0, %g1                                  
 2014c50:	1a 80 00 06 	bcc  2014c68 <getdents+0x28>                   <== NEVER TAKEN
 2014c54:	ba 10 20 00 	clr  %i5                                       
 2014c58:	03 00 80 60 	sethi  %hi(0x2018000), %g1                     
 2014c5c:	fa 00 62 e0 	ld  [ %g1 + 0x2e0 ], %i5	! 20182e0 <rtems_libio_iops>
 2014c60:	b1 2e 20 06 	sll  %i0, 6, %i0                               
 2014c64:	ba 07 40 18 	add  %i5, %i0, %i5                             
                                                                      
  /*                                                                  
   *  Make sure we are working on a directory                         
   */                                                                 
  loc = iop->pathinfo;                                                
 2014c68:	c4 07 60 28 	ld  [ %i5 + 0x28 ], %g2                        
 2014c6c:	de 07 60 1c 	ld  [ %i5 + 0x1c ], %o7                        
  if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY )
 2014c70:	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;                                                
 2014c74:	f0 07 60 20 	ld  [ %i5 + 0x20 ], %i0                        
 2014c78:	c8 07 60 24 	ld  [ %i5 + 0x24 ], %g4                        
 2014c7c:	c6 07 60 2c 	ld  [ %i5 + 0x2c ], %g3                        
 2014c80:	de 27 bf ec 	st  %o7, [ %fp + -20 ]                         
 2014c84:	f0 27 bf f0 	st  %i0, [ %fp + -16 ]                         
 2014c88:	c8 27 bf f4 	st  %g4, [ %fp + -12 ]                         
 2014c8c:	c4 27 bf f8 	st  %g2, [ %fp + -8 ]                          
 2014c90:	c6 27 bf fc 	st  %g3, [ %fp + -4 ]                          
  if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY )
 2014c94:	9f c0 40 00 	call  %g1                                      
 2014c98:	90 07 bf ec 	add  %fp, -20, %o0                             
 2014c9c:	80 a2 20 01 	cmp  %o0, 1                                    
 2014ca0:	12 80 00 09 	bne  2014cc4 <getdents+0x84>                   
 2014ca4:	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  );   
 2014ca8:	c2 07 60 24 	ld  [ %i5 + 0x24 ], %g1                        
 2014cac:	c2 00 60 08 	ld  [ %g1 + 8 ], %g1                           
 2014cb0:	92 10 00 19 	mov  %i1, %o1                                  
 2014cb4:	9f c0 40 00 	call  %g1                                      
 2014cb8:	94 10 00 1a 	mov  %i2, %o2                                  
}                                                                     
 2014cbc:	81 c7 e0 08 	ret                                            
 2014cc0:	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 );                  
 2014cc4:	7f ff e8 bf 	call  200efc0 <__errno>                        
 2014cc8:	b0 10 3f ff 	mov  -1, %i0                                   
 2014ccc:	82 10 20 14 	mov  0x14, %g1                                 
 2014cd0:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2014cd4:	81 c7 e0 08 	ret                                            
 2014cd8:	81 e8 00 00 	restore                                        
                                                                      

02002abc <gettimeofday>: */ int gettimeofday( struct timeval *tp, void * __tz __attribute__((unused)) ) {
 2002abc:	9d e3 bf 98 	save  %sp, -104, %sp                           
  /* struct timezone* tzp = (struct timezone*) __tz; */               
  if ( !tp )                                                          
 2002ac0:	ba 96 20 00 	orcc  %i0, 0, %i5                              
 2002ac4:	02 80 00 12 	be  2002b0c <gettimeofday+0x50>                <== NEVER TAKEN
 2002ac8:	01 00 00 00 	nop                                            
{                                                                     
  ISR_Level       level;                                              
  struct timespec now;                                                
  suseconds_t     useconds;                                           
                                                                      
  _ISR_Disable(level);                                                
 2002acc:	7f ff fd 21 	call  2001f50 <sparc_disable_interrupts>       
 2002ad0:	01 00 00 00 	nop                                            
 2002ad4:	b8 10 00 08 	mov  %o0, %i4                                  
    _TOD_Get( &now );                                                 
 2002ad8:	40 00 11 d9 	call  200723c <_TOD_Get>                       
 2002adc:	90 07 bf f8 	add  %fp, -8, %o0                              
  _ISR_Enable(level);                                                 
 2002ae0:	7f ff fd 20 	call  2001f60 <sparc_enable_interrupts>        
 2002ae4:	90 10 00 1c 	mov  %i4, %o0                                  
                                                                      
  useconds = (suseconds_t)now.tv_nsec;                                
  useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND;           
                                                                      
  time->tv_sec  = now.tv_sec;                                         
 2002ae8:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
  _ISR_Disable(level);                                                
    _TOD_Get( &now );                                                 
  _ISR_Enable(level);                                                 
                                                                      
  useconds = (suseconds_t)now.tv_nsec;                                
  useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND;           
 2002aec:	d0 07 bf fc 	ld  [ %fp + -4 ], %o0                          
                                                                      
  time->tv_sec  = now.tv_sec;                                         
 2002af0:	c2 27 40 00 	st  %g1, [ %i5 ]                               
  _ISR_Disable(level);                                                
    _TOD_Get( &now );                                                 
  _ISR_Enable(level);                                                 
                                                                      
  useconds = (suseconds_t)now.tv_nsec;                                
  useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND;           
 2002af4:	92 10 23 e8 	mov  0x3e8, %o1                                
 2002af8:	40 00 3b c1 	call  20119fc <.div>                           
 2002afc:	b0 10 20 00 	clr  %i0                                       
                                                                      
  time->tv_sec  = now.tv_sec;                                         
  time->tv_usec = useconds;                                           
 2002b00:	d0 27 60 04 	st  %o0, [ %i5 + 4 ]                           
   *  with Eric Norum, this is how GNU/Linux, Solaris, and MacOS X    
   *  do it.  This puts us in good company.                           
   */                                                                 
                                                                      
  return 0;                                                           
}                                                                     
 2002b04:	81 c7 e0 08 	ret                                            
 2002b08:	81 e8 00 00 	restore                                        
  void * __tz __attribute__((unused))                                 
)                                                                     
{                                                                     
  /* struct timezone* tzp = (struct timezone*) __tz; */               
  if ( !tp )                                                          
    rtems_set_errno_and_return_minus_one( EFAULT );                   
 2002b0c:	40 00 2d c6 	call  200e224 <__errno>                        <== NOT EXECUTED
 2002b10:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
 2002b14:	82 10 20 0e 	mov  0xe, %g1                                  <== NOT EXECUTED
 2002b18:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
 2002b1c:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 2002b20:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

0200d7a8 <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 )
 200d7a8:	c4 02 20 1c 	ld  [ %o0 + 0x1c ], %g2                        
 200d7ac:	c4 00 a0 4c 	ld  [ %g2 + 0x4c ], %g2                        
 200d7b0:	80 a0 a0 01 	cmp  %g2, 1                                    
 200d7b4:	12 80 00 05 	bne  200d7c8 <imfs_dir_open+0x20>              <== NEVER TAKEN
 200d7b8:	82 10 3f ff 	mov  -1, %g1                                   
     return -1;      /* It wasn't a directory --> return error */     
                                                                      
  iop->offset = 0;                                                    
 200d7bc:	c0 22 20 10 	clr  [ %o0 + 0x10 ]                            
 200d7c0:	c0 22 20 14 	clr  [ %o0 + 0x14 ]                            
  return 0;                                                           
 200d7c4:	82 10 20 00 	clr  %g1                                       
}                                                                     
 200d7c8:	81 c3 e0 08 	retl                                           
 200d7cc:	90 10 00 01 	mov  %g1, %o0                                  
                                                                      

0200d7d0 <imfs_dir_read>: ssize_t imfs_dir_read( rtems_libio_t *iop, void *buffer, size_t count ) {
 200d7d0:	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;             
 200d7d4:	f6 06 20 1c 	ld  [ %i0 + 0x1c ], %i3                        
ssize_t imfs_dir_read(                                                
  rtems_libio_t  *iop,                                                
  void           *buffer,                                             
  size_t          count                                               
)                                                                     
{                                                                     
 200d7d8:	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;                    
 200d7dc:	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 );                            
 200d7e0:	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 ) )                           
 200d7e4:	80 a7 00 1b 	cmp  %i4, %i3                                  
 200d7e8:	02 80 00 34 	be  200d8b8 <imfs_dir_read+0xe8>               
 200d7ec:	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;                                         
 200d7f0:	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);
 200d7f4:	90 10 00 1a 	mov  %i2, %o0                                  
 200d7f8:	40 00 10 7f 	call  20119f4 <.udiv>                          
 200d7fc:	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 ) ){              
 200d800:	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);
 200d804:	83 2a 20 03 	sll  %o0, 3, %g1                               
 200d808:	91 2a 20 05 	sll  %o0, 5, %o0                               
 200d80c:	82 00 40 08 	add  %g1, %o0, %g1                             
 200d810:	a3 28 60 03 	sll  %g1, 3, %l1                               
 200d814:	a2 24 40 01 	sub  %l1, %g1, %l1                             
 200d818:	a2 04 40 10 	add  %l1, %l0, %l1                             
                                                                      
   /* The directory was not empty so try to move to the desired entry in chain*/
   for (                                                              
 200d81c:	80 a4 60 00 	cmp  %l1, 0                                    
 200d820:	14 80 00 09 	bg  200d844 <imfs_dir_read+0x74>               <== ALWAYS TAKEN
 200d824:	a4 10 21 18 	mov  0x118, %l2                                
 200d828:	30 80 00 24 	b,a   200d8b8 <imfs_dir_read+0xe8>             <== NOT EXECUTED
 200d82c:	80 a4 40 1a 	cmp  %l1, %i2                                  
 200d830:	04 80 00 22 	ble  200d8b8 <imfs_dir_read+0xe8>              <== NEVER TAKEN
 200d834:	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 ) ){              
 200d838:	80 a7 00 1b 	cmp  %i4, %i3                                  
 200d83c:	02 80 00 1f 	be  200d8b8 <imfs_dir_read+0xe8>               
 200d840:	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 ) {                            
 200d844:	80 a4 00 1a 	cmp  %l0, %i2                                  
 200d848:	34 bf ff f9 	bg,a   200d82c <imfs_dir_read+0x5c>            
 200d84c:	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;                        
 200d850:	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;                            
 200d854:	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 );             
 200d858:	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;                            
 200d85c:	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;                        
 200d860:	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;                            
 200d864:	f4 27 be f4 	st  %i2, [ %fp + -268 ]                        
         tmp_dirent.d_reclen = sizeof( struct dirent );               
 200d868:	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 );             
 200d86c:	40 00 06 12 	call  200f0b4 <strlen>                         
 200d870:	90 10 00 13 	mov  %l3, %o0                                  
         strcpy( tmp_dirent.d_name, the_jnode->name );                
 200d874:	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 );             
 200d878:	d0 37 be fa 	sth  %o0, [ %fp + -262 ]                       
         strcpy( tmp_dirent.d_name, the_jnode->name );                
 200d87c:	40 00 05 d5 	call  200efd0 <strcpy>                         
 200d880:	90 07 be fc 	add  %fp, -260, %o0                            
         memcpy(                                                      
 200d884:	90 06 40 18 	add  %i1, %i0, %o0                             
 200d888:	92 07 be e8 	add  %fp, -280, %o1                            
 200d88c:	40 00 04 a1 	call  200eb10 <memcpy>                         
 200d890:	94 10 21 18 	mov  0x118, %o2                                
            buffer + bytes_transferred,                               
            (void *)&tmp_dirent,                                      
            sizeof( struct dirent )                                   
         );                                                           
         iop->offset = iop->offset + sizeof(struct dirent);           
 200d894:	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(                                                
 200d898:	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);           
 200d89c:	86 80 e1 18 	addcc  %g3, 0x118, %g3                         
 200d8a0:	84 40 a0 00 	addx  %g2, 0, %g2                              
 200d8a4:	c4 3f 60 10 	std  %g2, [ %i5 + 0x10 ]                       
         bytes_transferred = bytes_transferred + sizeof( struct dirent );
 200d8a8:	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 (                                                              
 200d8ac:	80 a4 40 1a 	cmp  %l1, %i2                                  
 200d8b0:	14 bf ff e2 	bg  200d838 <imfs_dir_read+0x68>               <== NEVER TAKEN
 200d8b4:	f8 07 00 00 	ld  [ %i4 ], %i4                               
      the_node = the_node->next;                                      
   }                                                                  
                                                                      
   /* Success */                                                      
   return bytes_transferred;                                          
}                                                                     
 200d8b8:	81 c7 e0 08 	ret                                            
 200d8bc:	81 e8 00 00 	restore                                        
                                                                      

0200da18 <imfs_dir_rmnod>: int imfs_dir_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) {
 200da18:	9d e3 bf a0 	save  %sp, -96, %sp                            
  IMFS_jnode_t *the_jnode;                                            
                                                                      
  the_jnode = (IMFS_jnode_t *) pathloc->node_access;                  
 200da1c:	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 ) ) 
 200da20:	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 );                            
 200da24:	82 07 60 54 	add  %i5, 0x54, %g1                            
 200da28:	80 a0 80 01 	cmp  %g2, %g1                                  
 200da2c:	12 80 00 18 	bne  200da8c <imfs_dir_rmnod+0x74>             
 200da30:	01 00 00 00 	nop                                            
                                                                      
  /*                                                                  
   * You cannot remove the file system root node.                     
   */                                                                 
                                                                      
  if ( pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access )
 200da34:	c2 06 60 10 	ld  [ %i1 + 0x10 ], %g1                        
 200da38:	c2 00 60 1c 	ld  [ %g1 + 0x1c ], %g1                        
 200da3c:	80 a7 40 01 	cmp  %i5, %g1                                  
 200da40:	02 80 00 0d 	be  200da74 <imfs_dir_rmnod+0x5c>              
 200da44:	01 00 00 00 	nop                                            
                                                                      
  /*                                                                  
   * You cannot remove a mountpoint.                                  
   */                                                                 
                                                                      
   if ( the_jnode->info.directory.mt_fs != NULL )                     
 200da48:	c2 07 60 5c 	ld  [ %i5 + 0x5c ], %g1                        
 200da4c:	80 a0 60 00 	cmp  %g1, 0                                    
 200da50:	12 80 00 09 	bne  200da74 <imfs_dir_rmnod+0x5c>             <== NEVER TAKEN
 200da54:	01 00 00 00 	nop                                            
     rtems_set_errno_and_return_minus_one( EBUSY );                   
                                                                      
  IMFS_create_orphan( the_jnode );                                    
 200da58:	7f ff f5 97 	call  200b0b4 <IMFS_create_orphan>             
 200da5c:	90 10 00 1d 	mov  %i5, %o0                                  
  IMFS_check_node_remove( the_jnode );                                
 200da60:	90 10 00 1d 	mov  %i5, %o0                                  
 200da64:	7f ff f5 a6 	call  200b0fc <IMFS_check_node_remove>         
 200da68:	b0 10 20 00 	clr  %i0                                       
                                                                      
  return 0;                                                           
}                                                                     
 200da6c:	81 c7 e0 08 	ret                                            
 200da70:	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 );                   
 200da74:	40 00 01 ec 	call  200e224 <__errno>                        
 200da78:	b0 10 3f ff 	mov  -1, %i0                                   
 200da7c:	82 10 20 10 	mov  0x10, %g1                                 
 200da80:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200da84:	81 c7 e0 08 	ret                                            
 200da88:	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 );               
 200da8c:	40 00 01 e6 	call  200e224 <__errno>                        
 200da90:	b0 10 3f ff 	mov  -1, %i0                                   
 200da94:	82 10 20 5a 	mov  0x5a, %g1                                 
 200da98:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200da9c:	81 c7 e0 08 	ret                                            
 200daa0:	81 e8 00 00 	restore                                        
                                                                      

02003630 <init_etc_passwd_group>: /* * Initialize useable but dummy databases */ void init_etc_passwd_group(void) {
 2003630:	9d e3 bf a0 	save  %sp, -96, %sp                            
  FILE *fp;                                                           
  static char etc_passwd_initted = 0;                                 
                                                                      
  if (etc_passwd_initted)                                             
 2003634:	03 00 80 5c 	sethi  %hi(0x2017000), %g1                     
 2003638:	c4 48 60 48 	ldsb  [ %g1 + 0x48 ], %g2	! 2017048 <etc_passwd_initted.6467>
 200363c:	80 a0 a0 00 	cmp  %g2, 0                                    
 2003640:	22 80 00 04 	be,a   2003650 <init_etc_passwd_group+0x20>    
 2003644:	84 10 20 01 	mov  1, %g2                                    
 2003648:	81 c7 e0 08 	ret                                            
 200364c:	81 e8 00 00 	restore                                        
    return;                                                           
  etc_passwd_initted = 1;                                             
  mkdir("/etc", 0777);                                                
 2003650:	92 10 21 ff 	mov  0x1ff, %o1                                
  FILE *fp;                                                           
  static char etc_passwd_initted = 0;                                 
                                                                      
  if (etc_passwd_initted)                                             
    return;                                                           
  etc_passwd_initted = 1;                                             
 2003654:	c4 28 60 48 	stb  %g2, [ %g1 + 0x48 ]                       
  mkdir("/etc", 0777);                                                
 2003658:	11 00 80 57 	sethi  %hi(0x2015c00), %o0                     
 200365c:	40 00 02 6e 	call  2004014 <mkdir>                          
 2003660:	90 12 21 78 	or  %o0, 0x178, %o0	! 2015d78 <IMFS_ops+0x94>  
                                                                      
  /*                                                                  
   *  Initialize /etc/passwd                                          
   */                                                                 
  if ((fp = fopen("/etc/passwd", "r")) != NULL) {                     
 2003664:	39 00 80 57 	sethi  %hi(0x2015c00), %i4                     
 2003668:	3b 00 80 57 	sethi  %hi(0x2015c00), %i5                     
 200366c:	90 17 21 80 	or  %i4, 0x180, %o0                            
 2003670:	40 00 31 3f 	call  200fb6c <fopen>                          
 2003674:	92 17 61 90 	or  %i5, 0x190, %o1                            
 2003678:	80 a2 20 00 	cmp  %o0, 0                                    
 200367c:	22 80 00 0d 	be,a   20036b0 <init_etc_passwd_group+0x80>    
 2003680:	90 17 21 80 	or  %i4, 0x180, %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);                                                       
 2003684:	40 00 2f 62 	call  200f40c <fclose>                         
 2003688:	01 00 00 00 	nop                                            
  }                                                                   
                                                                      
  /*                                                                  
   *  Initialize /etc/group                                           
   */                                                                 
  if ((fp = fopen("/etc/group", "r")) != NULL) {                      
 200368c:	39 00 80 57 	sethi  %hi(0x2015c00), %i4                     
 2003690:	92 17 61 90 	or  %i5, 0x190, %o1                            
 2003694:	40 00 31 36 	call  200fb6c <fopen>                          
 2003698:	90 17 22 08 	or  %i4, 0x208, %o0                            
 200369c:	80 a2 20 00 	cmp  %o0, 0                                    
 20036a0:	22 80 00 11 	be,a   20036e4 <init_etc_passwd_group+0xb4>    
 20036a4:	90 17 22 08 	or  %i4, 0x208, %o0                            
    fclose(fp);                                                       
 20036a8:	40 00 2f 59 	call  200f40c <fclose>                         
 20036ac:	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) {                
 20036b0:	13 00 80 57 	sethi  %hi(0x2015c00), %o1                     
 20036b4:	40 00 31 2e 	call  200fb6c <fopen>                          
 20036b8:	92 12 61 98 	or  %o1, 0x198, %o1	! 2015d98 <IMFS_ops+0xb4>  
 20036bc:	b0 92 20 00 	orcc  %o0, 0, %i0                              
 20036c0:	02 bf ff f3 	be  200368c <init_etc_passwd_group+0x5c>       <== NEVER TAKEN
 20036c4:	92 10 20 01 	mov  1, %o1                                    
    fprintf(fp, "root:*:0:0:root::/:/bin/sh\n"                        
 20036c8:	94 10 20 66 	mov  0x66, %o2                                 
 20036cc:	96 10 00 18 	mov  %i0, %o3                                  
 20036d0:	11 00 80 57 	sethi  %hi(0x2015c00), %o0                     
 20036d4:	40 00 33 10 	call  2010314 <fwrite>                         
 20036d8:	90 12 21 a0 	or  %o0, 0x1a0, %o0	! 2015da0 <IMFS_ops+0xbc>  
                 "rtems:*:1:1:RTEMS Application::/:/bin/sh\n"         
                 "tty:!:2:2:tty owner::/:/bin/false\n" );             
    fclose(fp);                                                       
 20036dc:	10 bf ff ea 	b  2003684 <init_etc_passwd_group+0x54>        
 20036e0:	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) {                 
 20036e4:	13 00 80 57 	sethi  %hi(0x2015c00), %o1                     
 20036e8:	40 00 31 21 	call  200fb6c <fopen>                          
 20036ec:	92 12 61 98 	or  %o1, 0x198, %o1	! 2015d98 <IMFS_ops+0xb4>  
 20036f0:	b0 92 20 00 	orcc  %o0, 0, %i0                              
 20036f4:	02 bf ff d5 	be  2003648 <init_etc_passwd_group+0x18>       <== NEVER TAKEN
 20036f8:	01 00 00 00 	nop                                            
    fprintf( fp, "root:x:0:root\n"                                    
 20036fc:	92 10 20 01 	mov  1, %o1	! 1 <PROM_START+0x1>               
 2003700:	11 00 80 57 	sethi  %hi(0x2015c00), %o0                     
 2003704:	94 10 20 2a 	mov  0x2a, %o2                                 
 2003708:	96 10 00 18 	mov  %i0, %o3                                  
 200370c:	40 00 33 02 	call  2010314 <fwrite>                         
 2003710:	90 12 22 18 	or  %o0, 0x218, %o0                            
                 "rtems:x:1:rtems\n"                                  
                 "tty:x:2:tty\n" );                                   
    fclose(fp);                                                       
 2003714:	40 00 2f 3e 	call  200f40c <fclose>                         
 2003718:	81 e8 00 00 	restore                                        
                                                                      

02004a58 <iproc>: /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) {
 2004a58:	9d e3 bf a0 	save  %sp, -96, %sp                            
  if (tty->termios.c_iflag & ISTRIP)                                  
 2004a5c:	c2 06 60 30 	ld  [ %i1 + 0x30 ], %g1                        
 2004a60:	80 88 60 20 	btst  0x20, %g1                                
 2004a64:	02 80 00 03 	be  2004a70 <iproc+0x18>                       <== ALWAYS TAKEN
 2004a68:	ba 10 00 18 	mov  %i0, %i5                                  
    c &= 0x7f;                                                        
 2004a6c:	ba 0e 20 7f 	and  %i0, 0x7f, %i5                            <== NOT EXECUTED
                                                                      
  if (tty->termios.c_iflag & IUCLC)                                   
 2004a70:	80 88 62 00 	btst  0x200, %g1                               
 2004a74:	02 80 00 0d 	be  2004aa8 <iproc+0x50>                       
 2004a78:	80 a7 60 0d 	cmp  %i5, 0xd                                  
    c = tolower (c);                                                  
 2004a7c:	05 00 80 53 	sethi  %hi(0x2014c00), %g2                     
 2004a80:	c6 00 a1 d4 	ld  [ %g2 + 0x1d4 ], %g3	! 2014dd4 <__ctype_ptr__>
 2004a84:	84 10 00 1d 	mov  %i5, %g2                                  
 2004a88:	ba 00 c0 1d 	add  %g3, %i5, %i5                             
 2004a8c:	c6 0f 60 01 	ldub  [ %i5 + 1 ], %g3                         
 2004a90:	86 08 e0 03 	and  %g3, 3, %g3                               
 2004a94:	80 a0 e0 01 	cmp  %g3, 1                                    
 2004a98:	22 80 00 02 	be,a   2004aa0 <iproc+0x48>                    
 2004a9c:	84 00 a0 20 	add  %g2, 0x20, %g2                            
 2004aa0:	ba 08 a0 ff 	and  %g2, 0xff, %i5                            
                                                                      
  if (c == '\r') {                                                    
 2004aa4:	80 a7 60 0d 	cmp  %i5, 0xd                                  
 2004aa8:	02 80 00 17 	be  2004b04 <iproc+0xac>                       
 2004aac:	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)) {         
 2004ab0:	02 80 00 40 	be  2004bb0 <iproc+0x158>                      
 2004ab4:	80 a7 60 00 	cmp  %i5, 0                                    
    c = '\r';                                                         
  }                                                                   
                                                                      
  if ((c != '\0') && (tty->termios.c_lflag & ICANON)) {               
 2004ab8:	32 80 00 1a 	bne,a   2004b20 <iproc+0xc8>                   <== ALWAYS TAKEN
 2004abc:	c2 06 60 3c 	ld  [ %i1 + 0x3c ], %g1                        
  }                                                                   
                                                                      
  /*                                                                  
   * FIXME: Should do IMAXBEL handling somehow                        
   */                                                                 
  if (tty->ccount < (CBUFSIZE-1)) {                                   
 2004ac0:	c2 06 60 20 	ld  [ %i1 + 0x20 ], %g1                        <== NOT EXECUTED
 2004ac4:	05 00 80 53 	sethi  %hi(0x2014c00), %g2                     
 2004ac8:	c4 00 a0 78 	ld  [ %g2 + 0x78 ], %g2	! 2014c78 <rtems_termios_cbufsize>
 2004acc:	84 00 bf ff 	add  %g2, -1, %g2                              
 2004ad0:	80 a0 40 02 	cmp  %g1, %g2                                  
 2004ad4:	16 80 00 46 	bge  2004bec <iproc+0x194>                     <== NEVER TAKEN
 2004ad8:	b0 10 20 00 	clr  %i0                                       
    if (tty->termios.c_lflag & ECHO)                                  
 2004adc:	c4 06 60 3c 	ld  [ %i1 + 0x3c ], %g2                        
 2004ae0:	80 88 a0 08 	btst  8, %g2                                   
 2004ae4:	12 80 00 38 	bne  2004bc4 <iproc+0x16c>                     <== ALWAYS TAKEN
 2004ae8:	90 10 00 1d 	mov  %i5, %o0                                  
      echo (c, tty);                                                  
    tty->cbuf[tty->ccount++] = c;                                     
 2004aec:	c6 06 60 1c 	ld  [ %i1 + 0x1c ], %g3                        
 2004af0:	84 00 60 01 	add  %g1, 1, %g2                               
 2004af4:	fa 28 c0 01 	stb  %i5, [ %g3 + %g1 ]                        
 2004af8:	c4 26 60 20 	st  %g2, [ %i1 + 0x20 ]                        
  }                                                                   
  return 0;                                                           
}                                                                     
 2004afc:	81 c7 e0 08 	ret                                            
 2004b00:	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)                                 
 2004b04:	80 88 60 80 	btst  0x80, %g1                                
 2004b08:	12 80 00 39 	bne  2004bec <iproc+0x194>                     <== NEVER TAKEN
 2004b0c:	b0 10 20 00 	clr  %i0                                       
      return 0;                                                       
    if (tty->termios.c_iflag & ICRNL)                                 
 2004b10:	80 88 61 00 	btst  0x100, %g1                               
 2004b14:	32 80 00 02 	bne,a   2004b1c <iproc+0xc4>                   <== ALWAYS TAKEN
 2004b18:	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)) {               
 2004b1c:	c2 06 60 3c 	ld  [ %i1 + 0x3c ], %g1                        
 2004b20:	80 88 60 02 	btst  2, %g1                                   
 2004b24:	22 bf ff e8 	be,a   2004ac4 <iproc+0x6c>                    
 2004b28:	c2 06 60 20 	ld  [ %i1 + 0x20 ], %g1                        
    if (c == tty->termios.c_cc[VERASE]) {                             
 2004b2c:	c4 0e 60 43 	ldub  [ %i1 + 0x43 ], %g2                      
 2004b30:	80 a0 80 1d 	cmp  %g2, %i5                                  
 2004b34:	02 80 00 3d 	be  2004c28 <iproc+0x1d0>                      
 2004b38:	90 10 00 19 	mov  %i1, %o0                                  
      erase (tty, 0);                                                 
      return 0;                                                       
    }                                                                 
    else if (c == tty->termios.c_cc[VKILL]) {                         
 2004b3c:	c4 0e 60 44 	ldub  [ %i1 + 0x44 ], %g2                      
 2004b40:	80 a0 80 1d 	cmp  %g2, %i5                                  
 2004b44:	02 80 00 28 	be  2004be4 <iproc+0x18c>                      
 2004b48:	92 10 20 01 	mov  1, %o1                                    
      erase (tty, 1);                                                 
      return 0;                                                       
    }                                                                 
    else if (c == tty->termios.c_cc[VEOF]) {                          
 2004b4c:	c4 0e 60 45 	ldub  [ %i1 + 0x45 ], %g2                      
 2004b50:	80 a0 80 1d 	cmp  %g2, %i5                                  
 2004b54:	02 80 00 26 	be  2004bec <iproc+0x194>                      <== NEVER TAKEN
 2004b58:	b0 10 20 01 	mov  1, %i0                                    
      return 1;                                                       
    } else if (c == '\n') {                                           
 2004b5c:	80 a7 60 0a 	cmp  %i5, 0xa                                  
 2004b60:	02 80 00 25 	be  2004bf4 <iproc+0x19c>                      
 2004b64:	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]) ||                      
 2004b68:	c4 0e 60 4c 	ldub  [ %i1 + 0x4c ], %g2                      
 2004b6c:	80 a0 80 1d 	cmp  %g2, %i5                                  
 2004b70:	02 80 00 07 	be  2004b8c <iproc+0x134>                      <== NEVER TAKEN
 2004b74:	80 88 60 08 	btst  8, %g1                                   
 2004b78:	c4 0e 60 51 	ldub  [ %i1 + 0x51 ], %g2                      
 2004b7c:	80 a0 80 1d 	cmp  %g2, %i5                                  
 2004b80:	32 bf ff d1 	bne,a   2004ac4 <iproc+0x6c>                   <== ALWAYS TAKEN
 2004b84:	c2 06 60 20 	ld  [ %i1 + 0x20 ], %g1                        
               (c == tty->termios.c_cc[VEOL2])) {                     
      if (tty->termios.c_lflag & ECHO)                                
 2004b88:	80 88 60 08 	btst  8, %g1                                   <== NOT EXECUTED
 2004b8c:	32 80 00 12 	bne,a   2004bd4 <iproc+0x17c>                  <== NOT EXECUTED
 2004b90:	90 10 00 1d 	mov  %i5, %o0                                  <== NOT EXECUTED
        echo (c, tty);                                                
      tty->cbuf[tty->ccount++] = c;                                   
 2004b94:	c2 06 60 20 	ld  [ %i1 + 0x20 ], %g1                        <== NOT EXECUTED
 2004b98:	c6 06 60 1c 	ld  [ %i1 + 0x1c ], %g3                        <== NOT EXECUTED
 2004b9c:	84 00 60 01 	add  %g1, 1, %g2                               <== NOT EXECUTED
 2004ba0:	fa 28 c0 01 	stb  %i5, [ %g3 + %g1 ]                        <== NOT EXECUTED
 2004ba4:	c4 26 60 20 	st  %g2, [ %i1 + 0x20 ]                        <== NOT EXECUTED
      return 1;                                                       
 2004ba8:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 2004bac:	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)) {         
 2004bb0:	80 88 60 40 	btst  0x40, %g1                                
 2004bb4:	32 bf ff da 	bne,a   2004b1c <iproc+0xc4>                   <== NEVER TAKEN
 2004bb8:	ba 10 20 0d 	mov  0xd, %i5                                  <== NOT EXECUTED
    c = '\r';                                                         
  }                                                                   
                                                                      
  if ((c != '\0') && (tty->termios.c_lflag & ICANON)) {               
 2004bbc:	10 bf ff d9 	b  2004b20 <iproc+0xc8>                        
 2004bc0:	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);                                                  
 2004bc4:	7f ff fe f6 	call  200479c <echo>                           
 2004bc8:	92 10 00 19 	mov  %i1, %o1                                  
 2004bcc:	10 bf ff c8 	b  2004aec <iproc+0x94>                        
 2004bd0:	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);                                                
 2004bd4:	7f ff fe f2 	call  200479c <echo>                           <== NOT EXECUTED
 2004bd8:	92 10 00 19 	mov  %i1, %o1                                  <== NOT EXECUTED
      tty->cbuf[tty->ccount++] = c;                                   
 2004bdc:	10 bf ff ef 	b  2004b98 <iproc+0x140>                       <== NOT EXECUTED
 2004be0:	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);                                                 
 2004be4:	7f ff ff 0f 	call  2004820 <erase>                          
 2004be8:	b0 10 20 00 	clr  %i0                                       
      return 0;                                                       
 2004bec:	81 c7 e0 08 	ret                                            
 2004bf0:	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))                     
 2004bf4:	22 80 00 06 	be,a   2004c0c <iproc+0x1b4>                   <== NEVER TAKEN
 2004bf8:	c2 06 60 20 	ld  [ %i1 + 0x20 ], %g1                        <== NOT EXECUTED
        echo (c, tty);                                                
 2004bfc:	90 10 20 0a 	mov  0xa, %o0                                  
 2004c00:	7f ff fe e7 	call  200479c <echo>                           
 2004c04:	92 10 00 19 	mov  %i1, %o1                                  
      tty->cbuf[tty->ccount++] = c;                                   
 2004c08:	c2 06 60 20 	ld  [ %i1 + 0x20 ], %g1                        
 2004c0c:	c4 06 60 1c 	ld  [ %i1 + 0x1c ], %g2                        
 2004c10:	86 10 20 0a 	mov  0xa, %g3                                  
 2004c14:	c6 28 80 01 	stb  %g3, [ %g2 + %g1 ]                        
 2004c18:	82 00 60 01 	inc  %g1                                       
 2004c1c:	c2 26 60 20 	st  %g1, [ %i1 + 0x20 ]                        
      return 1;                                                       
 2004c20:	81 c7 e0 08 	ret                                            
 2004c24:	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);                                                 
 2004c28:	92 10 20 00 	clr  %o1                                       
 2004c2c:	7f ff fe fd 	call  2004820 <erase>                          
 2004c30:	b0 10 20 00 	clr  %i0                                       
      return 0;                                                       
 2004c34:	81 c7 e0 08 	ret                                            
 2004c38:	81 e8 00 00 	restore                                        
                                                                      

020222d8 <kill>: #if !defined(RTEMS_POSIX_API) int kill( pid_t pid, int sig ) { return 0; }
 20222d8:	81 c3 e0 08 	retl                                           <== NOT EXECUTED
 20222dc:	90 10 20 00 	clr  %o0                                       <== NOT EXECUTED
                                                                      

020132d4 <libc_wrapup>: extern void _wrapup_reent(struct _reent *); extern void _reclaim_reent(struct _reent *); void libc_wrapup(void) {
 20132d4:	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()))                      
 20132d8:	03 00 80 56 	sethi  %hi(0x2015800), %g1                     
 20132dc:	c2 00 60 8c 	ld  [ %g1 + 0x8c ], %g1	! 201588c <_System_state_Current>
 20132e0:	80 a0 60 03 	cmp  %g1, 3                                    
 20132e4:	02 80 00 04 	be  20132f4 <libc_wrapup+0x20>                 <== ALWAYS TAKEN
 20132e8:	3b 00 80 53 	sethi  %hi(0x2014c00), %i5                     
 20132ec:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 20132f0:	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) {                                 
 20132f4:	05 00 80 52 	sethi  %hi(0x2014800), %g2                     
 20132f8:	c2 07 61 d8 	ld  [ %i5 + 0x1d8 ], %g1                       
 20132fc:	f8 00 a0 c0 	ld  [ %g2 + 0xc0 ], %i4                        
 2013300:	80 a0 40 1c 	cmp  %g1, %i4                                  
 2013304:	02 80 00 05 	be  2013318 <libc_wrapup+0x44>                 
 2013308:	01 00 00 00 	nop                                            
      _wrapup_reent(_global_impure_ptr);                              
 201330c:	40 00 01 c5 	call  2013a20 <_wrapup_reent>                  
 2013310:	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;                                    
 2013314:	f8 27 61 d8 	st  %i4, [ %i5 + 0x1d8 ]                       
   *                                                                  
   * Should this be changed to do *all* file streams?                 
   *    _fwalk (_REENT, fclose);                                      
   */                                                                 
                                                                      
  fclose (stdin);                                                     
 2013318:	7f ff ec 15 	call  200e36c <fclose>                         
 201331c:	d0 07 20 04 	ld  [ %i4 + 4 ], %o0                           
  fclose (stdout);                                                    
 2013320:	c2 07 61 d8 	ld  [ %i5 + 0x1d8 ], %g1                       
 2013324:	7f ff ec 12 	call  200e36c <fclose>                         
 2013328:	d0 00 60 08 	ld  [ %g1 + 8 ], %o0                           
  fclose (stderr);                                                    
 201332c:	c2 07 61 d8 	ld  [ %i5 + 0x1d8 ], %g1                       
 2013330:	f0 00 60 0c 	ld  [ %g1 + 0xc ], %i0                         
 2013334:	7f ff ec 0e 	call  200e36c <fclose>                         
 2013338:	81 e8 00 00 	restore                                        
                                                                      

020131ac <lseek>: off_t lseek( int fd, off_t offset, int whence ) {
 20131ac:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_libio_t *iop;                                                 
  off_t          old_offset;                                          
  off_t          status;                                              
                                                                      
  rtems_libio_check_fd( fd );                                         
 20131b0:	03 00 80 52 	sethi  %hi(0x2014800), %g1                     
 20131b4:	c2 00 63 9c 	ld  [ %g1 + 0x39c ], %g1	! 2014b9c <rtems_libio_number_iops>
off_t lseek(                                                          
  int     fd,                                                         
  off_t   offset,                                                     
  int     whence                                                      
)                                                                     
{                                                                     
 20131b8:	98 10 00 19 	mov  %i1, %o4                                  
  rtems_libio_t *iop;                                                 
  off_t          old_offset;                                          
  off_t          status;                                              
                                                                      
  rtems_libio_check_fd( fd );                                         
 20131bc:	80 a6 00 01 	cmp  %i0, %g1                                  
 20131c0:	1a 80 00 32 	bcc  2013288 <lseek+0xdc>                      
 20131c4:	9a 10 00 1a 	mov  %i2, %o5                                  
  iop = rtems_libio_iop( fd );                                        
 20131c8:	03 00 80 55 	sethi  %hi(0x2015400), %g1                     
 20131cc:	fa 00 61 64 	ld  [ %g1 + 0x164 ], %i5	! 2015564 <rtems_libio_iops>
 20131d0:	b1 2e 20 06 	sll  %i0, 6, %i0                               
 20131d4:	ba 07 40 18 	add  %i5, %i0, %i5                             
  rtems_libio_check_is_open(iop);                                     
 20131d8:	c2 07 60 18 	ld  [ %i5 + 0x18 ], %g1                        
 20131dc:	80 88 61 00 	btst  0x100, %g1                               
 20131e0:	02 80 00 2a 	be  2013288 <lseek+0xdc>                       
 20131e4:	80 a6 e0 01 	cmp  %i3, 1                                    
  /*                                                                  
   *  Now process the lseek().                                        
   */                                                                 
                                                                      
  old_offset = iop->offset;                                           
  switch ( whence ) {                                                 
 20131e8:	02 80 00 24 	be  2013278 <lseek+0xcc>                       
 20131ec:	e0 1f 60 10 	ldd  [ %i5 + 0x10 ], %l0                       
 20131f0:	80 a6 e0 02 	cmp  %i3, 2                                    
 20131f4:	02 80 00 15 	be  2013248 <lseek+0x9c>                       
 20131f8:	80 a6 e0 00 	cmp  %i3, 0                                    
 20131fc:	12 80 00 18 	bne  201325c <lseek+0xb0>                      
 2013200:	01 00 00 00 	nop                                            
    case SEEK_SET:                                                    
      iop->offset = offset;                                           
 2013204:	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 ); 
 2013208:	c2 07 60 24 	ld  [ %i5 + 0x24 ], %g1                        
 201320c:	90 10 00 1d 	mov  %i5, %o0                                  
 2013210:	c2 00 60 14 	ld  [ %g1 + 0x14 ], %g1                        
 2013214:	92 10 00 0c 	mov  %o4, %o1                                  
 2013218:	94 10 00 0d 	mov  %o5, %o2                                  
 201321c:	9f c0 40 00 	call  %g1                                      
 2013220:	96 10 00 1b 	mov  %i3, %o3                                  
 2013224:	b0 10 00 08 	mov  %o0, %i0                                  
  if ( status == (off_t) -1 )                                         
 2013228:	80 a6 3f ff 	cmp  %i0, -1                                   
 201322c:	12 80 00 05 	bne  2013240 <lseek+0x94>                      
 2013230:	b2 10 00 09 	mov  %o1, %i1                                  
 2013234:	80 a2 7f ff 	cmp  %o1, -1                                   
 2013238:	22 80 00 02 	be,a   2013240 <lseek+0x94>                    <== ALWAYS TAKEN
 201323c:	e0 3f 60 10 	std  %l0, [ %i5 + 0x10 ]                       
  /*                                                                  
   *  So if the operation failed, we have to restore iop->offset.     
   */                                                                 
                                                                      
  return status;                                                      
}                                                                     
 2013240:	81 c7 e0 08 	ret                                            
 2013244:	81 e8 00 00 	restore                                        
    case SEEK_CUR:                                                    
      iop->offset += offset;                                          
      break;                                                          
                                                                      
    case SEEK_END:                                                    
      iop->offset = iop->size + offset;                               
 2013248:	c4 1f 60 08 	ldd  [ %i5 + 8 ], %g2                          
 201324c:	86 80 c0 1a 	addcc  %g3, %i2, %g3                           
 2013250:	84 40 80 19 	addx  %g2, %i1, %g2                            
      break;                                                          
 2013254:	10 bf ff ed 	b  2013208 <lseek+0x5c>                        
 2013258:	c4 3f 60 10 	std  %g2, [ %i5 + 0x10 ]                       
                                                                      
    default:                                                          
      rtems_set_errno_and_return_minus_one( EINVAL );                 
 201325c:	7f ff eb f2 	call  200e224 <__errno>                        
 2013260:	31 3f ff ff 	sethi  %hi(0xfffffc00), %i0                    
 2013264:	82 10 20 16 	mov  0x16, %g1                                 
 2013268:	b0 16 23 ff 	or  %i0, 0x3ff, %i0                            
 201326c:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2013270:	81 c7 e0 08 	ret                                            
 2013274:	93 e8 00 18 	restore  %g0, %i0, %o1                         
    case SEEK_SET:                                                    
      iop->offset = offset;                                           
      break;                                                          
                                                                      
    case SEEK_CUR:                                                    
      iop->offset += offset;                                          
 2013278:	86 84 40 1a 	addcc  %l1, %i2, %g3                           
 201327c:	84 44 00 19 	addx  %l0, %i1, %g2                            
      break;                                                          
 2013280:	10 bf ff e2 	b  2013208 <lseek+0x5c>                        
 2013284:	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);                                     
 2013288:	7f ff eb e7 	call  200e224 <__errno>                        
 201328c:	31 3f ff ff 	sethi  %hi(0xfffffc00), %i0                    
 2013290:	82 10 20 09 	mov  9, %g1                                    
 2013294:	b0 16 23 ff 	or  %i0, 0x3ff, %i0                            
 2013298:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 201329c:	81 c7 e0 08 	ret                                            
 20132a0:	93 e8 00 18 	restore  %g0, %i0, %o1                         
                                                                      

02002da0 <malloc>: #include "malloc_p.h" void *malloc( size_t size ) {
 2002da0:	9d e3 bf a0 	save  %sp, -96, %sp                            
  void        *return_this;                                           
                                                                      
  MSBUMP(malloc_calls, 1);                                            
 2002da4:	03 00 80 55 	sethi  %hi(0x2015400), %g1                     
 2002da8:	82 10 61 80 	or  %g1, 0x180, %g1	! 2015580 <rtems_malloc_statistics>
 2002dac:	c4 00 60 04 	ld  [ %g1 + 4 ], %g2                           
#include "malloc_p.h"                                                 
                                                                      
void *malloc(                                                         
  size_t  size                                                        
)                                                                     
{                                                                     
 2002db0:	ba 10 00 18 	mov  %i0, %i5                                  
  void        *return_this;                                           
                                                                      
  MSBUMP(malloc_calls, 1);                                            
 2002db4:	84 00 a0 01 	inc  %g2                                       
                                                                      
  /*                                                                  
   *  If some free's have been deferred, then do them now.            
   */                                                                 
  malloc_deferred_frees_process();                                    
 2002db8:	7f ff ff ab 	call  2002c64 <malloc_deferred_frees_process>  
 2002dbc:	c4 20 60 04 	st  %g2, [ %g1 + 4 ]                           
                                                                      
  /*                                                                  
   * Validate the parameters                                          
   */                                                                 
  if ( !size )                                                        
 2002dc0:	80 a7 60 00 	cmp  %i5, 0                                    
 2002dc4:	02 80 00 1e 	be  2002e3c <malloc+0x9c>                      
 2002dc8:	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()) &&                    
 2002dcc:	03 00 80 56 	sethi  %hi(0x2015800), %g1                     
 2002dd0:	c2 00 60 8c 	ld  [ %g1 + 0x8c ], %g1	! 201588c <_System_state_Current>
 2002dd4:	80 a0 60 03 	cmp  %g1, 3                                    
 2002dd8:	02 80 00 1b 	be  2002e44 <malloc+0xa4>                      
 2002ddc:	03 00 80 52 	sethi  %hi(0x2014800), %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 );
 2002de0:	d0 00 63 60 	ld  [ %g1 + 0x360 ], %o0	! 2014b60 <RTEMS_Malloc_Heap>
 2002de4:	92 10 00 1d 	mov  %i5, %o1                                  
 2002de8:	94 10 20 00 	clr  %o2                                       
 2002dec:	40 00 14 a8 	call  200808c <_Protected_heap_Allocate_aligned_with_boundary>
 2002df0:	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 ) {                                               
 2002df4:	b0 92 20 00 	orcc  %o0, 0, %i0                              
 2002df8:	02 80 00 21 	be  2002e7c <malloc+0xdc>                      <== NEVER TAKEN
 2002dfc:	03 00 80 54 	sethi  %hi(0x2015000), %g1                     
  }                                                                   
                                                                      
  /*                                                                  
   *  If the user wants us to dirty the allocated memory, then do it. 
   */                                                                 
  if ( rtems_malloc_dirty_helper )                                    
 2002e00:	03 00 80 54 	sethi  %hi(0x2015000), %g1                     
 2002e04:	c2 00 62 c0 	ld  [ %g1 + 0x2c0 ], %g1	! 20152c0 <rtems_malloc_dirty_helper>
 2002e08:	80 a0 60 00 	cmp  %g1, 0                                    
 2002e0c:	02 80 00 04 	be  2002e1c <malloc+0x7c>                      
 2002e10:	90 10 00 18 	mov  %i0, %o0                                  
    (*rtems_malloc_dirty_helper)( return_this, size );                
 2002e14:	9f c0 40 00 	call  %g1                                      
 2002e18:	92 10 00 1d 	mov  %i5, %o1                                  
                                                                      
  /*                                                                  
   *  If configured, update the statistics                            
   */                                                                 
  if ( rtems_malloc_statistics_helpers )                              
 2002e1c:	03 00 80 54 	sethi  %hi(0x2015000), %g1                     
 2002e20:	c2 00 62 c8 	ld  [ %g1 + 0x2c8 ], %g1	! 20152c8 <rtems_malloc_statistics_helpers>
 2002e24:	80 a0 60 00 	cmp  %g1, 0                                    
 2002e28:	02 80 00 25 	be  2002ebc <malloc+0x11c>                     
 2002e2c:	01 00 00 00 	nop                                            
    (*rtems_malloc_statistics_helpers->at_malloc)(return_this);       
 2002e30:	c2 00 60 04 	ld  [ %g1 + 4 ], %g1                           
 2002e34:	9f c0 40 00 	call  %g1                                      
 2002e38:	90 10 00 18 	mov  %i0, %o0                                  
                                                                      
  return return_this;                                                 
}                                                                     
 2002e3c:	81 c7 e0 08 	ret                                            
 2002e40:	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() )                                 
 2002e44:	7f ff ff 76 	call  2002c1c <malloc_is_system_state_OK>      
 2002e48:	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()) &&                    
 2002e4c:	80 8a 20 ff 	btst  0xff, %o0                                
 2002e50:	02 bf ff fb 	be  2002e3c <malloc+0x9c>                      <== NEVER TAKEN
 2002e54:	03 00 80 52 	sethi  %hi(0x2014800), %g1                     
 2002e58:	d0 00 63 60 	ld  [ %g1 + 0x360 ], %o0	! 2014b60 <RTEMS_Malloc_Heap>
 2002e5c:	92 10 00 1d 	mov  %i5, %o1                                  
 2002e60:	94 10 20 00 	clr  %o2                                       
 2002e64:	40 00 14 8a 	call  200808c <_Protected_heap_Allocate_aligned_with_boundary>
 2002e68:	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 ) {                                               
 2002e6c:	b0 92 20 00 	orcc  %o0, 0, %i0                              
 2002e70:	12 bf ff e5 	bne  2002e04 <malloc+0x64>                     
 2002e74:	03 00 80 54 	sethi  %hi(0x2015000), %g1                     
    if (rtems_malloc_sbrk_helpers)                                    
 2002e78:	03 00 80 54 	sethi  %hi(0x2015000), %g1                     
 2002e7c:	c2 00 62 c4 	ld  [ %g1 + 0x2c4 ], %g1	! 20152c4 <rtems_malloc_sbrk_helpers>
 2002e80:	80 a0 60 00 	cmp  %g1, 0                                    
 2002e84:	02 80 00 0a 	be  2002eac <malloc+0x10c>                     
 2002e88:	01 00 00 00 	nop                                            
      return_this = (*rtems_malloc_sbrk_helpers->extend)( size );     
 2002e8c:	c2 00 60 04 	ld  [ %g1 + 4 ], %g1                           
 2002e90:	9f c0 40 00 	call  %g1                                      
 2002e94:	90 10 00 1d 	mov  %i5, %o0                                  
    if ( !return_this ) {                                             
 2002e98:	80 a2 20 00 	cmp  %o0, 0                                    
 2002e9c:	02 80 00 04 	be  2002eac <malloc+0x10c>                     
 2002ea0:	01 00 00 00 	nop                                            
 2002ea4:	10 bf ff d7 	b  2002e00 <malloc+0x60>                       
 2002ea8:	b0 10 00 08 	mov  %o0, %i0                                  
      errno = ENOMEM;                                                 
 2002eac:	40 00 2c de 	call  200e224 <__errno>                        
 2002eb0:	01 00 00 00 	nop                                            
 2002eb4:	82 10 20 0c 	mov  0xc, %g1	! c <PROM_START+0xc>             
 2002eb8:	c2 22 00 00 	st  %g1, [ %o0 ]                               
      return (void *) 0;                                              
 2002ebc:	81 c7 e0 08 	ret                                            
 2002ec0:	81 e8 00 00 	restore                                        
                                                                      

02003174 <malloc_sbrk_extend_and_allocate>: } void *malloc_sbrk_extend_and_allocate( size_t size ) {
 2003174:	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;                             
 2003178:	03 00 80 57 	sethi  %hi(0x2015c00), %g1                     
 200317c:	fa 00 61 28 	ld  [ %g1 + 0x128 ], %i5	! 2015d28 <RTEMS_Malloc_Sbrk_amount>
                                                                      
  if ( sbrk_amount == 0 )                                             
 2003180:	80 a7 60 00 	cmp  %i5, 0                                    
 2003184:	02 80 00 20 	be  2003204 <malloc_sbrk_extend_and_allocate+0x90><== NEVER TAKEN
 2003188:	b2 10 00 18 	mov  %i0, %i1                                  
    return (void *) 0;                                                
                                                                      
  the_size = ((size + sbrk_amount) / sbrk_amount * sbrk_amount);      
 200318c:	92 10 00 1d 	mov  %i5, %o1                                  
 2003190:	40 00 3b 6d 	call  2011f44 <.udiv>                          
 2003194:	90 06 00 1d 	add  %i0, %i5, %o0                             
 2003198:	40 00 3b 31 	call  2011e5c <.umul>                          
 200319c:	92 10 00 1d 	mov  %i5, %o1                                  
                                                                      
  starting_address = (void *) sbrk(the_size);                         
 20031a0:	7f ff f8 c7 	call  20014bc <sbrk>                           
 20031a4:	ba 10 00 08 	mov  %o0, %i5                                  
  if ( starting_address == (void*) -1 )                               
 20031a8:	80 a2 3f ff 	cmp  %o0, -1                                   
 20031ac:	02 80 00 16 	be  2003204 <malloc_sbrk_extend_and_allocate+0x90>
 20031b0:	92 10 00 08 	mov  %o0, %o1                                  
    return (void *) 0;                                                
                                                                      
  if ( !_Protected_heap_Extend(                                       
 20031b4:	39 00 80 54 	sethi  %hi(0x2015000), %i4                     
 20031b8:	d0 07 21 90 	ld  [ %i4 + 0x190 ], %o0	! 2015190 <RTEMS_Malloc_Heap>
 20031bc:	40 00 14 68 	call  200835c <_Protected_heap_Extend>         
 20031c0:	94 10 00 1d 	mov  %i5, %o2                                  
 20031c4:	80 8a 20 ff 	btst  0xff, %o0                                
 20031c8:	02 80 00 09 	be  20031ec <malloc_sbrk_extend_and_allocate+0x78>
 20031cc:	03 00 80 57 	sethi  %hi(0x2015c00), %g1                     
 20031d0:	f0 07 21 90 	ld  [ %i4 + 0x190 ], %i0                       
    sbrk(-the_size);                                                  
    errno = ENOMEM;                                                   
    return (void *) 0;                                                
  }                                                                   
                                                                      
  MSBUMP(space_available, the_size);                                  
 20031d4:	c4 00 60 f8 	ld  [ %g1 + 0xf8 ], %g2                        
 20031d8:	b4 10 20 00 	clr  %i2                                       
 20031dc:	ba 07 40 02 	add  %i5, %g2, %i5                             
 20031e0:	fa 20 60 f8 	st  %i5, [ %g1 + 0xf8 ]                        
 20031e4:	40 00 14 50 	call  2008324 <_Protected_heap_Allocate_aligned_with_boundary>
 20031e8:	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);                                                  
 20031ec:	7f ff f8 b4 	call  20014bc <sbrk>                           
 20031f0:	90 20 00 1d 	neg  %i5, %o0                                  
    errno = ENOMEM;                                                   
 20031f4:	40 00 2d 8d 	call  200e828 <__errno>                        
 20031f8:	01 00 00 00 	nop                                            
 20031fc:	82 10 20 0c 	mov  0xc, %g1	! c <PROM_START+0xc>             
 2003200:	c2 22 00 00 	st  %g1, [ %o0 ]                               
                                                                      
  MSBUMP(space_available, the_size);                                  
                                                                      
  return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size );  
  return return_this;                                                 
}                                                                     
 2003204:	81 c7 e0 08 	ret                                            
 2003208:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      

0200ce54 <memfile_free_blocks_in_table>: */ void memfile_free_blocks_in_table( block_p **block_table, int entries ) {
 200ce54:	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++ ) {                                     
 200ce58:	80 a6 60 00 	cmp  %i1, 0                                    
 200ce5c:	04 80 00 0f 	ble  200ce98 <memfile_free_blocks_in_table+0x44><== NEVER TAKEN
 200ce60:	d0 06 00 00 	ld  [ %i0 ], %o0                               
 200ce64:	ba 10 00 08 	mov  %o0, %i5                                  
 200ce68:	b8 10 20 00 	clr  %i4                                       
    if ( b[i] ) {                                                     
 200ce6c:	d0 07 40 00 	ld  [ %i5 ], %o0                               
 200ce70:	80 a2 20 00 	cmp  %o0, 0                                    
 200ce74:	02 80 00 05 	be  200ce88 <memfile_free_blocks_in_table+0x34>
 200ce78:	b8 07 20 01 	inc  %i4                                       
      memfile_free_block( b[i] );                                     
 200ce7c:	7f ff ff ed 	call  200ce30 <memfile_free_block>             
 200ce80:	01 00 00 00 	nop                                            
      b[i] = 0;                                                       
 200ce84:	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++ ) {                                     
 200ce88:	80 a7 00 19 	cmp  %i4, %i1                                  
 200ce8c:	12 bf ff f8 	bne  200ce6c <memfile_free_blocks_in_table+0x18>
 200ce90:	ba 07 60 04 	add  %i5, 4, %i5                               
 200ce94:	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 );                                 
 200ce98:	7f ff ff e6 	call  200ce30 <memfile_free_block>             
 200ce9c:	01 00 00 00 	nop                                            
  *block_table = 0;                                                   
 200cea0:	c0 26 00 00 	clr  [ %i0 ]                                   
}                                                                     
 200cea4:	81 c7 e0 08 	ret                                            
 200cea8:	81 e8 00 00 	restore                                        
                                                                      

0200d458 <memfile_ftruncate>: */ int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) {
 200d458:	9d e3 bf 98 	save  %sp, -104, %sp                           
  IMFS_jnode_t   *the_jnode;                                          
                                                                      
  the_jnode = iop->pathinfo.node_access;                              
 200d45c:	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 )                           
 200d460:	c2 07 60 50 	ld  [ %i5 + 0x50 ], %g1                        
 200d464:	80 a0 40 19 	cmp  %g1, %i1                                  
 200d468:	06 80 00 13 	bl  200d4b4 <memfile_ftruncate+0x5c>           <== NEVER TAKEN
 200d46c:	90 10 00 1d 	mov  %i5, %o0                                  
 200d470:	22 80 00 0d 	be,a   200d4a4 <memfile_ftruncate+0x4c>        <== ALWAYS TAKEN
 200d474:	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;                                 
 200d478:	f2 27 60 50 	st  %i1, [ %i5 + 0x50 ]                        <== NOT EXECUTED
 200d47c:	f4 27 60 54 	st  %i2, [ %i5 + 0x54 ]                        
  iop->size = the_jnode->info.file.size;                              
 200d480:	f2 26 20 08 	st  %i1, [ %i0 + 8 ]                           
 200d484:	f4 26 20 0c 	st  %i2, [ %i0 + 0xc ]                         
                                                                      
  IMFS_update_atime( the_jnode );                                     
 200d488:	90 07 bf f8 	add  %fp, -8, %o0                              
 200d48c:	7f ff d5 8c 	call  2002abc <gettimeofday>                   
 200d490:	92 10 20 00 	clr  %o1                                       
 200d494:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
 200d498:	c2 27 60 40 	st  %g1, [ %i5 + 0x40 ]                        
                                                                      
  return 0;                                                           
}                                                                     
 200d49c:	81 c7 e0 08 	ret                                            
 200d4a0:	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 )                           
 200d4a4:	80 a0 40 1a 	cmp  %g1, %i2                                  
 200d4a8:	3a bf ff f5 	bcc,a   200d47c <memfile_ftruncate+0x24>       
 200d4ac:	f2 27 60 50 	st  %i1, [ %i5 + 0x50 ]                        
    return IMFS_memfile_extend( the_jnode, length );                  
 200d4b0:	90 10 00 1d 	mov  %i5, %o0                                  
 200d4b4:	92 10 00 19 	mov  %i1, %o1                                  
 200d4b8:	7f ff fe e7 	call  200d054 <IMFS_memfile_extend>            
 200d4bc:	94 10 00 1a 	mov  %i2, %o2                                  
 200d4c0:	81 c7 e0 08 	ret                                            
 200d4c4:	91 e8 00 08 	restore  %g0, %o0, %o0                         
                                                                      

0200d4c8 <memfile_lseek>: rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) {
 200d4c8:	9d e3 bf a0 	save  %sp, -96, %sp                            
  IMFS_jnode_t   *the_jnode;                                          
                                                                      
  the_jnode = iop->pathinfo.node_access;                              
 200d4cc:	fa 06 20 1c 	ld  [ %i0 + 0x1c ], %i5                        
                                                                      
  if (the_jnode->type == IMFS_LINEAR_FILE) {                          
 200d4d0:	c2 07 60 4c 	ld  [ %i5 + 0x4c ], %g1                        
 200d4d4:	80 a0 60 06 	cmp  %g1, 6                                    
 200d4d8:	02 80 00 0f 	be  200d514 <memfile_lseek+0x4c>               
 200d4dc:	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 ))                
 200d4e0:	90 10 00 1d 	mov  %i5, %o0                                  
 200d4e4:	92 10 00 02 	mov  %g2, %o1                                  
 200d4e8:	7f ff fe db 	call  200d054 <IMFS_memfile_extend>            
 200d4ec:	94 10 00 03 	mov  %g3, %o2                                  
 200d4f0:	80 a2 20 00 	cmp  %o0, 0                                    
 200d4f4:	12 80 00 19 	bne  200d558 <memfile_lseek+0x90>              
 200d4f8:	01 00 00 00 	nop                                            
      rtems_set_errno_and_return_minus_one( ENOSPC );                 
                                                                      
    iop->size = the_jnode->info.file.size;                            
 200d4fc:	d8 1f 60 50 	ldd  [ %i5 + 0x50 ], %o4                       
 200d500:	c4 1e 20 10 	ldd  [ %i0 + 0x10 ], %g2                       
 200d504:	d8 3e 20 08 	std  %o4, [ %i0 + 8 ]                          
  }                                                                   
  return iop->offset;                                                 
}                                                                     
 200d508:	b0 10 00 02 	mov  %g2, %i0                                  
 200d50c:	81 c7 e0 08 	ret                                            
 200d510:	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)                
 200d514:	c2 07 60 50 	ld  [ %i5 + 0x50 ], %g1                        
 200d518:	80 a0 80 01 	cmp  %g2, %g1                                  
 200d51c:	14 80 00 08 	bg  200d53c <memfile_lseek+0x74>               <== NEVER TAKEN
 200d520:	c8 07 60 54 	ld  [ %i5 + 0x54 ], %g4                        
 200d524:	80 a0 80 01 	cmp  %g2, %g1                                  
 200d528:	32 bf ff f9 	bne,a   200d50c <memfile_lseek+0x44>           <== NEVER TAKEN
 200d52c:	b0 10 00 02 	mov  %g2, %i0                                  <== NOT EXECUTED
 200d530:	80 a0 c0 04 	cmp  %g3, %g4                                  
 200d534:	28 bf ff f6 	bleu,a   200d50c <memfile_lseek+0x44>          <== ALWAYS TAKEN
 200d538:	b0 10 00 02 	mov  %g2, %i0                                  
      iop->offset = the_jnode->info.linearfile.size;                  
 200d53c:	c2 26 20 10 	st  %g1, [ %i0 + 0x10 ]                        <== NOT EXECUTED
 200d540:	84 10 00 01 	mov  %g1, %g2                                  <== NOT EXECUTED
 200d544:	c8 26 20 14 	st  %g4, [ %i0 + 0x14 ]                        <== NOT EXECUTED
 200d548:	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;                                                 
}                                                                     
 200d54c:	b0 10 00 02 	mov  %g2, %i0                                  <== NOT EXECUTED
 200d550:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200d554:	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 );                 
 200d558:	40 00 03 33 	call  200e224 <__errno>                        
 200d55c:	01 00 00 00 	nop                                            
 200d560:	05 3f ff ff 	sethi  %hi(0xfffffc00), %g2                    
 200d564:	82 10 20 1c 	mov  0x1c, %g1                                 
 200d568:	84 10 a3 ff 	or  %g2, 0x3ff, %g2                            
 200d56c:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200d570:	10 bf ff e6 	b  200d508 <memfile_lseek+0x40>                
 200d574:	86 10 00 02 	mov  %g2, %g3                                  
                                                                      

0200d3a8 <memfile_open>: rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) {
 200d3a8:	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))         
 200d3ac:	c2 06 20 18 	ld  [ %i0 + 0x18 ], %g1                        
  rtems_libio_t *iop,                                                 
  const char    *pathname,                                            
  uint32_t       flag,                                                
  uint32_t       mode                                                 
)                                                                     
{                                                                     
 200d3b0:	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))         
 200d3b4:	80 88 62 04 	btst  0x204, %g1                               
 200d3b8:	02 80 00 06 	be  200d3d0 <memfile_open+0x28>                
 200d3bc:	f8 06 20 1c 	ld  [ %i0 + 0x1c ], %i4                        
   && (the_jnode->type == IMFS_LINEAR_FILE)) {                        
 200d3c0:	c4 07 20 4c 	ld  [ %i4 + 0x4c ], %g2                        
 200d3c4:	80 a0 a0 06 	cmp  %g2, 6                                    
 200d3c8:	22 80 00 0c 	be,a   200d3f8 <memfile_open+0x50>             <== NEVER TAKEN
 200d3cc:	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))      
 200d3d0:	c4 1f 20 50 	ldd  [ %i4 + 0x50 ], %g2                       
        return -1;                                                    
  }                                                                   
  if (iop->flags & LIBIO_FLAGS_APPEND)                                
 200d3d4:	80 88 62 00 	btst  0x200, %g1                               
 200d3d8:	22 80 00 05 	be,a   200d3ec <memfile_open+0x44>             
 200d3dc:	c4 3f 60 08 	std  %g2, [ %i5 + 8 ]                          
    iop->offset = the_jnode->info.file.size;                          
 200d3e0:	c4 3f 60 10 	std  %g2, [ %i5 + 0x10 ]                       
 200d3e4:	c4 1f 20 50 	ldd  [ %i4 + 0x50 ], %g2                       
                                                                      
  iop->size = the_jnode->info.file.size;                              
 200d3e8:	c4 3f 60 08 	std  %g2, [ %i5 + 8 ]                          
  return 0;                                                           
 200d3ec:	b0 10 20 00 	clr  %i0                                       
}                                                                     
 200d3f0:	81 c7 e0 08 	ret                                            
 200d3f4:	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;  
 200d3f8:	d6 07 20 58 	ld  [ %i4 + 0x58 ], %o3                        <== NOT EXECUTED
                                                                      
    the_jnode->type = IMFS_MEMORY_FILE;                               
 200d3fc:	82 10 20 05 	mov  5, %g1                                    <== NOT EXECUTED
    the_jnode->info.file.size            = 0;                         
 200d400:	c0 27 20 50 	clr  [ %i4 + 0x50 ]                            <== NOT EXECUTED
 200d404:	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;                               
 200d408:	c2 27 20 4c 	st  %g1, [ %i4 + 0x4c ]                        <== NOT EXECUTED
    the_jnode->info.file.size            = 0;                         
    the_jnode->info.file.indirect        = 0;                         
 200d40c:	c0 27 20 58 	clr  [ %i4 + 0x58 ]                            <== NOT EXECUTED
    the_jnode->info.file.doubly_indirect = 0;                         
 200d410:	c0 27 20 5c 	clr  [ %i4 + 0x5c ]                            <== NOT EXECUTED
    the_jnode->info.file.triply_indirect = 0;                         
    if ((count != 0)                                                  
 200d414:	80 a3 20 00 	cmp  %o4, 0                                    <== NOT EXECUTED
 200d418:	12 80 00 06 	bne  200d430 <memfile_open+0x88>               <== NOT EXECUTED
 200d41c:	c0 27 20 60 	clr  [ %i4 + 0x60 ]                            <== NOT EXECUTED
 200d420:	c2 06 20 18 	ld  [ %i0 + 0x18 ], %g1                        <== NOT EXECUTED
 200d424:	84 10 20 00 	clr  %g2                                       <== NOT EXECUTED
 200d428:	10 bf ff eb 	b  200d3d4 <memfile_open+0x2c>                 <== NOT EXECUTED
 200d42c:	86 10 20 00 	clr  %g3                                       <== NOT EXECUTED
     && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1))      
 200d430:	90 10 00 1c 	mov  %i4, %o0                                  <== NOT EXECUTED
 200d434:	92 10 20 00 	clr  %o1                                       <== NOT EXECUTED
 200d438:	94 10 20 00 	clr  %o2                                       <== NOT EXECUTED
 200d43c:	7f ff ff 57 	call  200d198 <IMFS_memfile_write>             <== NOT EXECUTED
 200d440:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
 200d444:	80 a2 3f ff 	cmp  %o0, -1                                   <== NOT EXECUTED
 200d448:	02 bf ff ea 	be  200d3f0 <memfile_open+0x48>                <== NOT EXECUTED
 200d44c:	01 00 00 00 	nop                                            <== NOT EXECUTED
 200d450:	10 bf ff e0 	b  200d3d0 <memfile_open+0x28>                 <== NOT EXECUTED
 200d454:	c2 07 60 18 	ld  [ %i5 + 0x18 ], %g1                        <== NOT EXECUTED
                                                                      

02002ee0 <mknod>: int mknod( const char *pathname, mode_t mode, dev_t dev ) {
 2002ee0:	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)                                              
 2002ee4:	05 00 00 10 	sethi  %hi(0x4000), %g2                        
 2002ee8:	03 00 00 3c 	sethi  %hi(0xf000), %g1                        
 2002eec:	82 0e 40 01 	and  %i1, %g1, %g1                             
 2002ef0:	80 a0 40 02 	cmp  %g1, %g2                                  
 2002ef4:	02 80 00 18 	be  2002f54 <mknod+0x74>                       
 2002ef8:	90 10 00 18 	mov  %i0, %o0                                  
 2002efc:	08 80 00 0f 	bleu  2002f38 <mknod+0x58>                     
 2002f00:	05 00 00 04 	sethi  %hi(0x1000), %g2                        
 2002f04:	05 00 00 18 	sethi  %hi(0x6000), %g2                        
 2002f08:	80 a0 40 02 	cmp  %g1, %g2                                  
 2002f0c:	02 80 00 12 	be  2002f54 <mknod+0x74>                       
 2002f10:	05 00 00 20 	sethi  %hi(0x8000), %g2                        
 2002f14:	80 a0 40 02 	cmp  %g1, %g2                                  
 2002f18:	02 80 00 10 	be  2002f58 <mknod+0x78>                       <== ALWAYS TAKEN
 2002f1c:	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 );                 
 2002f20:	40 00 2c c1 	call  200e224 <__errno>                        
 2002f24:	b0 10 3f ff 	mov  -1, %i0                                   
 2002f28:	82 10 20 16 	mov  0x16, %g1                                 
 2002f2c:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2002f30:	81 c7 e0 08 	ret                                            
 2002f34:	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)                                              
 2002f38:	80 a0 40 02 	cmp  %g1, %g2                                  
 2002f3c:	02 80 00 05 	be  2002f50 <mknod+0x70>                       
 2002f40:	05 00 00 08 	sethi  %hi(0x2000), %g2                        
 2002f44:	80 a0 40 02 	cmp  %g1, %g2                                  
 2002f48:	12 bf ff f6 	bne  2002f20 <mknod+0x40>                      
 2002f4c:	01 00 00 00 	nop                                            
      break;                                                          
    default:                                                          
      rtems_set_errno_and_return_minus_one( EINVAL );                 
  }                                                                   
                                                                      
  rtems_filesystem_get_start_loc( pathname, &i, &temp_loc );          
 2002f50:	90 10 00 18 	mov  %i0, %o0                                  
 2002f54:	92 07 bf f8 	add  %fp, -8, %o1                              
 2002f58:	40 00 02 69 	call  20038fc <rtems_filesystem_get_start_loc> 
 2002f5c:	94 07 bf e4 	add  %fp, -28, %o2                             
                                                                      
  result = (*temp_loc.ops->evalformake_h)(                            
 2002f60:	c2 07 bf f0 	ld  [ %fp + -16 ], %g1                         
 2002f64:	d0 07 bf f8 	ld  [ %fp + -8 ], %o0                          
 2002f68:	c2 00 60 04 	ld  [ %g1 + 4 ], %g1                           
 2002f6c:	90 06 00 08 	add  %i0, %o0, %o0                             
 2002f70:	92 07 bf e4 	add  %fp, -28, %o1                             
 2002f74:	94 07 bf fc 	add  %fp, -4, %o2                              
 2002f78:	9f c0 40 00 	call  %g1                                      
 2002f7c:	b0 10 3f ff 	mov  -1, %i0                                   
    &pathname[i],                                                     
    &temp_loc,                                                        
    &name_start                                                       
  );                                                                  
  if ( result != 0 )                                                  
 2002f80:	80 a2 20 00 	cmp  %o0, 0                                    
 2002f84:	12 bf ff eb 	bne  2002f30 <mknod+0x50>                      
 2002f88:	c2 07 bf f0 	ld  [ %fp + -16 ], %g1                         
    return -1;                                                        
                                                                      
  result =  (*temp_loc.ops->mknod_h)( name_start, mode, dev, &temp_loc );
 2002f8c:	d0 07 bf fc 	ld  [ %fp + -4 ], %o0                          
 2002f90:	c2 00 60 14 	ld  [ %g1 + 0x14 ], %g1                        
 2002f94:	92 10 00 19 	mov  %i1, %o1                                  
 2002f98:	94 10 00 1a 	mov  %i2, %o2                                  
 2002f9c:	96 10 00 1b 	mov  %i3, %o3                                  
 2002fa0:	9f c0 40 00 	call  %g1                                      
 2002fa4:	98 07 bf e4 	add  %fp, -28, %o4                             
 2002fa8:	b0 10 00 08 	mov  %o0, %i0                                  
                                                                      
  rtems_filesystem_freenode( &temp_loc );                             
 2002fac:	7f ff fe 93 	call  20029f8 <rtems_filesystem_freenode>      
 2002fb0:	90 07 bf e4 	add  %fp, -28, %o0                             
                                                                      
  return result;                                                      
}                                                                     
 2002fb4:	81 c7 e0 08 	ret                                            
 2002fb8:	81 e8 00 00 	restore                                        
                                                                      

02003044 <mount>: const char *target, const char *filesystemtype, rtems_filesystem_options_t options, const void *data ) {
 2003044:	9d e3 bf 88 	save  %sp, -120, %sp                           
                                                                      
  /*                                                                  
   *  Are the file system options valid?                              
   */                                                                 
                                                                      
  if ( options != RTEMS_FILESYSTEM_READ_ONLY &&                       
 2003048:	80 a6 e0 01 	cmp  %i3, 1                                    
 200304c:	18 80 00 85 	bgu  2003260 <mount+0x21c>                     
 2003050:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  /*                                                                  
   *  Get mount handler                                               
   */                                                                 
  mount_h = rtems_filesystem_get_mount_handler( filesystemtype );     
 2003054:	40 00 21 d6 	call  200b7ac <rtems_filesystem_get_mount_handler>
 2003058:	90 10 00 1a 	mov  %i2, %o0                                  
  if ( !mount_h )                                                     
 200305c:	a2 92 20 00 	orcc  %o0, 0, %l1                              
 2003060:	02 80 00 80 	be  2003260 <mount+0x21c>                      
 2003064:	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 : "/"; 
 2003068:	a0 40 20 00 	addx  %g0, 0, %l0                              
 200306c:	80 a4 20 00 	cmp  %l0, 0                                    
 2003070:	02 80 00 77 	be  200324c <mount+0x208>                      
 2003074:	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(                                                            
 2003078:	40 00 30 0f 	call  200f0b4 <strlen>                         
 200307c:	ae 10 00 19 	mov  %i1, %l7                                  
 2003080:	ac 10 00 08 	mov  %o0, %l6                                  
 2003084:	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;          
 2003088:	40 00 30 0b 	call  200f0b4 <strlen>                         
 200308c:	90 10 00 1a 	mov  %i2, %o0                                  
  size_t source_size = source_or_null != NULL ?                       
    strlen( source_or_null ) + 1 : 0;                                 
 2003090:	a4 10 20 00 	clr  %l2                                       
 2003094:	80 a6 20 00 	cmp  %i0, 0                                    
 2003098:	02 80 00 05 	be  20030ac <mount+0x68>                       
 200309c:	aa 10 00 08 	mov  %o0, %l5                                  
 20030a0:	40 00 30 05 	call  200f0b4 <strlen>                         
 20030a4:	90 10 00 18 	mov  %i0, %o0                                  
 20030a8:	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;                
 20030ac:	92 05 40 14 	add  %l5, %l4, %o1                             
  rtems_filesystem_mount_table_entry_t *mt_entry = calloc( 1, size ); 
 20030b0:	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;                
 20030b4:	92 02 60 75 	add  %o1, 0x75, %o1                            
  rtems_filesystem_mount_table_entry_t *mt_entry = calloc( 1, size ); 
 20030b8:	7f ff fd e4 	call  2002848 <calloc>                         
 20030bc:	92 02 40 12 	add  %o1, %l2, %o1                             
                                                                      
  if ( mt_entry != NULL ) {                                           
 20030c0:	ba 92 20 00 	orcc  %o0, 0, %i5                              
 20030c4:	02 80 00 5c 	be  2003234 <mount+0x1f0>                      <== NEVER TAKEN
 20030c8:	a6 07 60 74 	add  %i5, 0x74, %l3                            
    char *str = (char *) mt_entry + sizeof( *mt_entry );              
                                                                      
    memcpy( str, filesystemtype, filesystemtype_size );               
 20030cc:	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;          
 20030d0:	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 );               
 20030d4:	90 10 00 13 	mov  %l3, %o0                                  
 20030d8:	40 00 2e 8e 	call  200eb10 <memcpy>                         
 20030dc:	94 10 00 15 	mov  %l5, %o2                                  
    mt_entry->type = str;                                             
    str += filesystemtype_size;                                       
 20030e0:	b4 04 c0 15 	add  %l3, %l5, %i2                             
                                                                      
    memcpy( str, source_or_null, source_size );                       
 20030e4:	94 10 00 12 	mov  %l2, %o2                                  
 20030e8:	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;                                             
 20030ec:	e6 27 60 6c 	st  %l3, [ %i5 + 0x6c ]                        
    str += filesystemtype_size;                                       
                                                                      
    memcpy( str, source_or_null, source_size );                       
 20030f0:	40 00 2e 88 	call  200eb10 <memcpy>                         
 20030f4:	90 10 00 1a 	mov  %i2, %o0                                  
    mt_entry->dev = str;                                              
    str += source_size;                                               
 20030f8:	a4 06 80 12 	add  %i2, %l2, %l2                             
                                                                      
    memcpy( str, target, target_size );                               
 20030fc:	92 10 00 17 	mov  %l7, %o1                                  
 2003100:	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;                                              
 2003104:	f4 27 60 70 	st  %i2, [ %i5 + 0x70 ]                        
    str += source_size;                                               
                                                                      
    memcpy( str, target, target_size );                               
 2003108:	40 00 2e 82 	call  200eb10 <memcpy>                         
 200310c:	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;
 2003110:	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;                                           
 2003114:	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;                           
 2003118:	fa 27 60 2c 	st  %i5, [ %i5 + 0x2c ]                        
  mt_entry->options = options;                                        
 200311c:	f6 27 60 30 	st  %i3, [ %i5 + 0x30 ]                        
  mt_entry->pathconf_limits_and_options = rtems_filesystem_default_pathconf;
 2003120:	94 10 20 30 	mov  0x30, %o2                                 
 2003124:	13 00 80 50 	sethi  %hi(0x2014000), %o1                     
 2003128:	40 00 2e 7a 	call  200eb10 <memcpy>                         
 200312c:	92 12 60 e8 	or  %o1, 0xe8, %o1	! 20140e8 <rtems_filesystem_default_pathconf>
  /*                                                                  
   *  The mount_point should be a directory with read/write/execute   
   *  permissions in the existing tree.                               
   */                                                                 
                                                                      
  if ( has_target ) {                                                 
 2003130:	80 a4 20 00 	cmp  %l0, 0                                    
 2003134:	12 80 00 11 	bne  2003178 <mount+0x134>                     
 2003138:	03 00 80 53 	sethi  %hi(0x2014c00), %g1                     
    }                                                                 
  } else {                                                            
    /*                                                                
     * Do we already have a base file system ?                        
     */                                                               
    if ( !rtems_chain_is_empty( &mount_chain ) ) {                    
 200313c:	c4 00 60 60 	ld  [ %g1 + 0x60 ], %g2	! 2014c60 <mount_chain>
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(        
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_head( the_chain )->next;                    
 2003140:	82 10 60 60 	or  %g1, 0x60, %g1                             
 2003144:	82 00 60 04 	add  %g1, 4, %g1                               
 2003148:	80 a0 80 01 	cmp  %g2, %g1                                  
 200314c:	02 80 00 26 	be  20031e4 <mount+0x1a0>                      <== ALWAYS TAKEN
 2003150:	b6 10 20 00 	clr  %i3                                       
      errno = EINVAL;                                                 
 2003154:	40 00 2c 34 	call  200e224 <__errno>                        <== NOT EXECUTED
 2003158:	01 00 00 00 	nop                                            <== NOT EXECUTED
 200315c:	82 10 20 16 	mov  0x16, %g1	! 16 <PROM_START+0x16>          <== NOT EXECUTED
 2003160:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
                                                                      
  return 0;                                                           
                                                                      
cleanup_and_bail:                                                     
                                                                      
  free( mt_entry );                                                   
 2003164:	90 10 00 1d 	mov  %i5, %o0                                  <== NOT EXECUTED
 2003168:	7f ff fe 2b 	call  2002a14 <free>                           <== NOT EXECUTED
 200316c:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
 2003170:	81 c7 e0 08 	ret                                            
 2003174:	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(                              
 2003178:	90 10 00 19 	mov  %i1, %o0                                  
 200317c:	92 10 00 16 	mov  %l6, %o1                                  
 2003180:	94 10 20 07 	mov  7, %o2                                    
 2003184:	96 07 bf ec 	add  %fp, -20, %o3                             
 2003188:	7f ff fd e2 	call  2002910 <rtems_filesystem_evaluate_path> 
 200318c:	98 10 20 01 	mov  1, %o4                                    
 2003190:	80 a2 3f ff 	cmp  %o0, -1                                   
 2003194:	02 bf ff f4 	be  2003164 <mount+0x120>                      <== NEVER TAKEN
 2003198:	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 ) {
 200319c:	c2 00 60 10 	ld  [ %g1 + 0x10 ], %g1                        
 20031a0:	9f c0 40 00 	call  %g1                                      
 20031a4:	90 07 bf ec 	add  %fp, -20, %o0                             
 20031a8:	80 a2 20 01 	cmp  %o0, 1                                    
 20031ac:	02 80 00 4e 	be  20032e4 <mount+0x2a0>                      
 20031b0:	d2 07 bf ec 	ld  [ %fp + -20 ], %o1                         
      errno = ENOTDIR;                                                
 20031b4:	40 00 2c 1c 	call  200e224 <__errno>                        
 20031b8:	01 00 00 00 	nop                                            
 20031bc:	82 10 20 14 	mov  0x14, %g1	! 14 <PROM_START+0x14>          
 20031c0:	c2 22 00 00 	st  %g1, [ %o0 ]                               
                                                                      
  return 0;                                                           
                                                                      
cleanup_and_bail:                                                     
                                                                      
  free( mt_entry );                                                   
 20031c4:	7f ff fe 14 	call  2002a14 <free>                           
 20031c8:	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;                                               
 20031cc:	b6 07 bf ec 	add  %fp, -20, %i3                             
  free( mt_entry );                                                   
                                                                      
  if ( loc_to_free )                                                  
    rtems_filesystem_freenode( loc_to_free );                         
                                                                      
  return -1;                                                          
 20031d0:	b0 10 3f ff 	mov  -1, %i0                                   
cleanup_and_bail:                                                     
                                                                      
  free( mt_entry );                                                   
                                                                      
  if ( loc_to_free )                                                  
    rtems_filesystem_freenode( loc_to_free );                         
 20031d4:	7f ff fe 09 	call  20029f8 <rtems_filesystem_freenode>      
 20031d8:	90 10 00 1b 	mov  %i3, %o0                                  
                                                                      
  return -1;                                                          
}                                                                     
 20031dc:	81 c7 e0 08 	ret                                            
 20031e0:	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 ) ) {                               
 20031e4:	90 10 00 1d 	mov  %i5, %o0                                  
 20031e8:	9f c4 40 00 	call  %l1                                      
 20031ec:	92 10 00 1c 	mov  %i4, %o1                                  
 20031f0:	80 a2 20 00 	cmp  %o0, 0                                    
 20031f4:	22 80 00 21 	be,a   2003278 <mount+0x234>                   
 20031f8:	39 00 80 55 	sethi  %hi(0x2015400), %i4                     
    /*                                                                
     * Try to undo the mount operation                                
     */                                                               
    loc.ops->unmount_h( mt_entry );                                   
 20031fc:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
 2003200:	90 10 00 1d 	mov  %i5, %o0                                  
 2003204:	c2 00 60 28 	ld  [ %g1 + 0x28 ], %g1                        
 2003208:	9f c0 40 00 	call  %g1                                      
 200320c:	b0 10 3f ff 	mov  -1, %i0                                   
                                                                      
  return 0;                                                           
                                                                      
cleanup_and_bail:                                                     
                                                                      
  free( mt_entry );                                                   
 2003210:	7f ff fe 01 	call  2002a14 <free>                           
 2003214:	90 10 00 1d 	mov  %i5, %o0                                  
                                                                      
  if ( loc_to_free )                                                  
 2003218:	80 a6 e0 00 	cmp  %i3, 0                                    
 200321c:	02 bf ff d5 	be  2003170 <mount+0x12c>                      <== NEVER TAKEN
 2003220:	90 10 00 1b 	mov  %i3, %o0                                  
    rtems_filesystem_freenode( loc_to_free );                         
 2003224:	7f ff fd f5 	call  20029f8 <rtems_filesystem_freenode>      
 2003228:	b0 10 3f ff 	mov  -1, %i0                                   
                                                                      
  return -1;                                                          
}                                                                     
 200322c:	81 c7 e0 08 	ret                                            
 2003230:	81 e8 00 00 	restore                                        
    target,                                                           
    filesystemtype,                                                   
    &target_length                                                    
  );                                                                  
  if ( !mt_entry )                                                    
    rtems_set_errno_and_return_minus_one( ENOMEM );                   
 2003234:	40 00 2b fc 	call  200e224 <__errno>                        <== NOT EXECUTED
 2003238:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
 200323c:	82 10 20 0c 	mov  0xc, %g1                                  <== NOT EXECUTED
 2003240:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
 2003244:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 2003248:	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 : "/"; 
 200324c:	2f 00 80 50 	sethi  %hi(0x2014000), %l7                     
 2003250:	a8 10 20 02 	mov  2, %l4                                    
 2003254:	ac 10 20 01 	mov  1, %l6                                    
 2003258:	10 bf ff 8c 	b  2003088 <mount+0x44>                        
 200325c:	ae 15 e0 a0 	or  %l7, 0xa0, %l7                             
  /*                                                                  
   *  Get mount handler                                               
   */                                                                 
  mount_h = rtems_filesystem_get_mount_handler( filesystemtype );     
  if ( !mount_h )                                                     
    rtems_set_errno_and_return_minus_one( EINVAL );                   
 2003260:	40 00 2b f1 	call  200e224 <__errno>                        
 2003264:	b0 10 3f ff 	mov  -1, %i0                                   
 2003268:	82 10 20 16 	mov  0x16, %g1                                 
 200326c:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2003270:	81 c7 e0 08 	ret                                            
 2003274:	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 );
 2003278:	d0 07 21 6c 	ld  [ %i4 + 0x16c ], %o0                       
 200327c:	94 10 20 00 	clr  %o2                                       
 2003280:	40 00 0c 56 	call  20063d8 <rtems_semaphore_obtain>         
 2003284:	92 10 20 00 	clr  %o1                                       
 2003288:	92 10 00 1d 	mov  %i5, %o1                                  
 200328c:	11 00 80 53 	sethi  %hi(0x2014c00), %o0                     
 2003290:	40 00 0e cc 	call  2006dc0 <_Chain_Append>                  
 2003294:	90 12 20 60 	or  %o0, 0x60, %o0	! 2014c60 <mount_chain>     
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
 2003298:	d0 07 21 6c 	ld  [ %i4 + 0x16c ], %o0                       
 200329c:	40 00 0c 98 	call  20064fc <rtems_semaphore_release>        
 20032a0:	b0 10 20 00 	clr  %i0                                       
   */                                                                 
  rtems_libio_lock();                                                 
  rtems_chain_append( &mount_chain, &mt_entry->Node );                
  rtems_libio_unlock();                                               
                                                                      
  if ( !has_target )                                                  
 20032a4:	80 a4 20 00 	cmp  %l0, 0                                    
 20032a8:	12 bf ff b2 	bne  2003170 <mount+0x12c>                     
 20032ac:	03 00 80 53 	sethi  %hi(0x2014c00), %g1                     
    rtems_filesystem_root = mt_entry->mt_fs_root;                     
 20032b0:	f6 07 60 1c 	ld  [ %i5 + 0x1c ], %i3                        
 20032b4:	f8 07 60 20 	ld  [ %i5 + 0x20 ], %i4                        
 20032b8:	c8 07 60 24 	ld  [ %i5 + 0x24 ], %g4                        
 20032bc:	c6 07 60 28 	ld  [ %i5 + 0x28 ], %g3                        
 20032c0:	c4 07 60 2c 	ld  [ %i5 + 0x2c ], %g2                        
 20032c4:	c2 00 60 80 	ld  [ %g1 + 0x80 ], %g1                        
 20032c8:	f6 20 60 18 	st  %i3, [ %g1 + 0x18 ]                        
 20032cc:	f8 20 60 1c 	st  %i4, [ %g1 + 0x1c ]                        
 20032d0:	c8 20 60 20 	st  %g4, [ %g1 + 0x20 ]                        
 20032d4:	c6 20 60 24 	st  %g3, [ %g1 + 0x24 ]                        
 20032d8:	c4 20 60 28 	st  %g2, [ %g1 + 0x28 ]                        
 20032dc:	81 c7 e0 08 	ret                                            
 20032e0:	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 ) ) {
 20032e4:	11 00 80 0b 	sethi  %hi(0x2002c00), %o0                     
 20032e8:	7f ff ff 3a 	call  2002fd0 <rtems_filesystem_mount_iterate> 
 20032ec:	90 12 23 bc 	or  %o0, 0x3bc, %o0	! 2002fbc <is_node_fs_root>
 20032f0:	80 8a 20 ff 	btst  0xff, %o0                                
 20032f4:	02 80 00 07 	be  2003310 <mount+0x2cc>                      
 20032f8:	c4 07 bf f8 	ld  [ %fp + -8 ], %g2                          
      errno = EBUSY;                                                  
 20032fc:	40 00 2b ca 	call  200e224 <__errno>                        
 2003300:	01 00 00 00 	nop                                            
 2003304:	82 10 20 10 	mov  0x10, %g1	! 10 <PROM_START+0x10>          
      goto cleanup_and_bail;                                          
 2003308:	10 bf ff af 	b  20031c4 <mount+0x180>                       
 200330c:	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;            
 2003310:	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 ) ) {                             
 2003314:	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;            
 2003318:	c6 27 60 08 	st  %g3, [ %i5 + 8 ]                           
    mt_entry->mt_point_node.handlers = loc.handlers;                  
    mt_entry->mt_point_node.ops = loc.ops;                            
 200331c:	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;                  
 2003320:	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;                  
 2003324:	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;                  
 2003328:	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;                  
 200332c:	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 ) ) {                             
 2003330:	90 10 00 1d 	mov  %i5, %o0                                  
 2003334:	9f c0 40 00 	call  %g1                                      
 2003338:	b6 07 bf ec 	add  %fp, -20, %i3                             
 200333c:	80 a2 20 00 	cmp  %o0, 0                                    
 2003340:	02 bf ff aa 	be  20031e8 <mount+0x1a4>                      <== ALWAYS TAKEN
 2003344:	90 10 00 1d 	mov  %i5, %o0                                  
 2003348:	30 bf ff 9f 	b,a   20031c4 <mount+0x180>                    <== NOT EXECUTED
                                                                      

02003620 <mount_and_make_target_path>: const char *target, const char *filesystemtype, rtems_filesystem_options_t options, const void *data ) {
 2003620:	9d e3 bf a0 	save  %sp, -96, %sp                            
  int rv = -1;                                                        
                                                                      
  if (target != NULL) {                                               
 2003624:	90 96 60 00 	orcc  %i1, 0, %o0                              
 2003628:	02 80 00 0b 	be  2003654 <mount_and_make_target_path+0x34>  
 200362c:	01 00 00 00 	nop                                            
    rv = rtems_mkdir(target, S_IRWXU | S_IRWXG | S_IRWXO);            
 2003630:	40 00 02 5f 	call  2003fac <rtems_mkdir>                    
 2003634:	92 10 21 ff 	mov  0x1ff, %o1	! 1ff <PROM_START+0x1ff>       
    if (rv == 0) {                                                    
 2003638:	82 92 20 00 	orcc  %o0, 0, %g1                              
 200363c:	02 80 00 04 	be  200364c <mount_and_make_target_path+0x2c>  <== ALWAYS TAKEN
 2003640:	01 00 00 00 	nop                                            
  } else {                                                            
    errno = EINVAL;                                                   
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
 2003644:	81 c7 e0 08 	ret                                            
 2003648:	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(                                                     
 200364c:	40 00 00 2a 	call  20036f4 <mount>                          
 2003650:	81 e8 00 00 	restore                                        
        options,                                                      
        data                                                          
      );                                                              
    }                                                                 
  } else {                                                            
    errno = EINVAL;                                                   
 2003654:	40 00 2b ee 	call  200e60c <__errno>                        
 2003658:	01 00 00 00 	nop                                            
 200365c:	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;                                                        
 2003660:	82 10 3f ff 	mov  -1, %g1                                   
        options,                                                      
        data                                                          
      );                                                              
    }                                                                 
  } else {                                                            
    errno = EINVAL;                                                   
 2003664:	10 bf ff f8 	b  2003644 <mount_and_make_target_path+0x24>   
 2003668:	c4 22 00 00 	st  %g2, [ %o0 ]                               
                                                                      

02003564 <newlib_delete_hook>: void newlib_delete_hook( rtems_tcb *current_task, rtems_tcb *deleted_task ) {
 2003564:	9d e3 bf a0 	save  %sp, -96, %sp                            
  /*                                                                  
   * The reentrancy structure was allocated by newlib using malloc()  
   */                                                                 
                                                                      
  if (current_task == deleted_task) {                                 
    ptr = _REENT;                                                     
 2003568:	03 00 80 53 	sethi  %hi(0x2014c00), %g1                     
                                                                      
  /*                                                                  
   * The reentrancy structure was allocated by newlib using malloc()  
   */                                                                 
                                                                      
  if (current_task == deleted_task) {                                 
 200356c:	80 a6 00 19 	cmp  %i0, %i1                                  
 2003570:	02 80 00 03 	be  200357c <newlib_delete_hook+0x18>          
 2003574:	fa 00 61 d8 	ld  [ %g1 + 0x1d8 ], %i5                       
    ptr = _REENT;                                                     
  } else {                                                            
    ptr = deleted_task->libc_reent;                                   
 2003578:	fa 06 61 54 	ld  [ %i1 + 0x154 ], %i5                       
  }                                                                   
                                                                      
  if (ptr && ptr != _global_impure_ptr) {                             
 200357c:	80 a7 60 00 	cmp  %i5, 0                                    
 2003580:	02 80 00 0b 	be  20035ac <newlib_delete_hook+0x48>          <== NEVER TAKEN
 2003584:	03 00 80 52 	sethi  %hi(0x2014800), %g1                     
 2003588:	c2 00 60 c0 	ld  [ %g1 + 0xc0 ], %g1	! 20148c0 <_global_impure_ptr>
 200358c:	80 a7 40 01 	cmp  %i5, %g1                                  
 2003590:	02 80 00 07 	be  20035ac <newlib_delete_hook+0x48>          
 2003594:	13 00 80 0c 	sethi  %hi(0x2003000), %o1                     
    _reclaim_reent(ptr);                                              
*/                                                                    
    /*                                                                
     *  Just in case there are some buffers lying around.             
     */                                                               
    _fwalk(ptr, newlib_free_buffers);                                 
 2003598:	90 10 00 1d 	mov  %i5, %o0                                  
 200359c:	40 00 2d 18 	call  200e9fc <_fwalk>                         
 20035a0:	92 12 63 54 	or  %o1, 0x354, %o1                            
#if REENT_MALLOCED                                                    
    free(ptr);                                                        
#else                                                                 
    _Workspace_Free(ptr);                                             
 20035a4:	40 00 1a 5a 	call  2009f0c <_Workspace_Free>                
 20035a8:	90 10 00 1d 	mov  %i5, %o0                                  
                                                                      
  /*                                                                  
   * Require the switch back to another task to install its own       
   */                                                                 
                                                                      
  if ( current_task == deleted_task ) {                               
 20035ac:	80 a6 00 19 	cmp  %i0, %i1                                  
 20035b0:	12 80 00 04 	bne  20035c0 <newlib_delete_hook+0x5c>         
 20035b4:	c0 26 61 54 	clr  [ %i1 + 0x154 ]                           
    _REENT = 0;                                                       
 20035b8:	03 00 80 53 	sethi  %hi(0x2014c00), %g1                     
 20035bc:	c0 20 61 d8 	clr  [ %g1 + 0x1d8 ]	! 2014dd8 <_impure_ptr>   
 20035c0:	81 c7 e0 08 	ret                                            
 20035c4:	81 e8 00 00 	restore                                        
                                                                      

02003354 <newlib_free_buffers>: */ int newlib_free_buffers( FILE *fp ) {
 2003354:	9d e3 bf a0 	save  %sp, -96, %sp                            
  switch ( fileno(fp) ) {                                             
 2003358:	40 00 2c d2 	call  200e6a0 <fileno>                         
 200335c:	90 10 00 18 	mov  %i0, %o0                                  
 2003360:	80 a2 20 02 	cmp  %o0, 2                                    
 2003364:	28 80 00 06 	bleu,a   200337c <newlib_free_buffers+0x28>    <== ALWAYS TAKEN
 2003368:	c2 16 20 0c 	lduh  [ %i0 + 0xc ], %g1                       
        fp->_flags &= ~__SMBF;                                        
        fp->_bf._base = fp->_p = (unsigned char *) NULL;              
      }                                                               
      break;                                                          
    default:                                                          
     fclose(fp);                                                      
 200336c:	40 00 2c 00 	call  200e36c <fclose>                         
 2003370:	90 10 00 18 	mov  %i0, %o0                                  
  }                                                                   
  return 0;                                                           
}                                                                     
 2003374:	81 c7 e0 08 	ret                                            
 2003378:	91 e8 20 00 	restore  %g0, 0, %o0                           
{                                                                     
  switch ( fileno(fp) ) {                                             
    case 0:                                                           
    case 1:                                                           
    case 2:                                                           
      if (fp->_flags & __SMBF) {                                      
 200337c:	80 88 60 80 	btst  0x80, %g1                                
 2003380:	02 bf ff fd 	be  2003374 <newlib_free_buffers+0x20>         <== ALWAYS TAKEN
 2003384:	01 00 00 00 	nop                                            
        free( fp->_bf._base );                                        
 2003388:	7f ff fd a3 	call  2002a14 <free>                           <== NOT EXECUTED
 200338c:	d0 06 20 10 	ld  [ %i0 + 0x10 ], %o0                        <== NOT EXECUTED
        fp->_flags &= ~__SMBF;                                        
 2003390:	c2 16 20 0c 	lduh  [ %i0 + 0xc ], %g1                       <== NOT EXECUTED
        fp->_bf._base = fp->_p = (unsigned char *) NULL;              
 2003394:	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;                                        
 2003398:	82 08 7f 7f 	and  %g1, -129, %g1                            <== NOT EXECUTED
        fp->_bf._base = fp->_p = (unsigned char *) NULL;              
 200339c:	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;                                        
 20033a0:	c2 36 20 0c 	sth  %g1, [ %i0 + 0xc ]                        <== NOT EXECUTED
      break;                                                          
    default:                                                          
     fclose(fp);                                                      
  }                                                                   
  return 0;                                                           
}                                                                     
 20033a4:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 20033a8:	91 e8 20 00 	restore  %g0, 0, %o0                           <== NOT EXECUTED
                                                                      

0200363c <open>: int open( const char *pathname, int flags, ... ) {
 200363c:	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);                                                
 2003640:	f6 27 a0 50 	st  %i3, [ %fp + 0x50 ]                        
 2003644:	f4 27 a0 4c 	st  %i2, [ %fp + 0x4c ]                        
 2003648:	f8 27 a0 54 	st  %i4, [ %fp + 0x54 ]                        
 200364c:	fa 27 a0 58 	st  %i5, [ %fp + 0x58 ]                        
                                                                      
  /*                                                                  
   * Set the Evaluation flags                                         
   */                                                                 
  eval_flags = 0;                                                     
  status = flags + 1;                                                 
 2003650:	82 06 60 01 	add  %i1, 1, %g1                               
  if ( ( status & _FREAD ) == _FREAD )                                
    eval_flags |= RTEMS_LIBIO_PERMS_READ;                             
 2003654:	b6 08 60 01 	and  %g1, 1, %i3                               
  if ( ( status & _FWRITE ) == _FWRITE )                              
 2003658:	80 88 60 02 	btst  2, %g1                                   
 200365c:	02 80 00 03 	be  2003668 <open+0x2c>                        
 2003660:	b7 2e e0 02 	sll  %i3, 2, %i3                               
    eval_flags |= RTEMS_LIBIO_PERMS_WRITE;                            
 2003664:	b6 16 e0 02 	or  %i3, 2, %i3                                
                                                                      
  va_start(ap, flags);                                                
                                                                      
  mode = va_arg( ap, int );                                           
 2003668:	82 07 a0 50 	add  %fp, 0x50, %g1                            
 200366c:	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();                                       
 2003670:	40 00 1f 89 	call  200b494 <rtems_libio_allocate>           
 2003674:	c2 27 bf fc 	st  %g1, [ %fp + -4 ]                          
  if ( iop == 0 ) {                                                   
 2003678:	ba 92 20 00 	orcc  %o0, 0, %i5                              
 200367c:	22 80 00 2f 	be,a   2003738 <open+0xfc>                     
 2003680:	b6 10 20 17 	mov  0x17, %i3                                 
  }                                                                   
                                                                      
  /*                                                                  
   *  See if the file exists.                                         
   */                                                                 
  status = rtems_filesystem_evaluate_path(                            
 2003684:	40 00 2e 8c 	call  200f0b4 <strlen>                         
 2003688:	90 10 00 18 	mov  %i0, %o0                                  
 200368c:	94 10 00 1b 	mov  %i3, %o2                                  
 2003690:	92 10 00 08 	mov  %o0, %o1                                  
 2003694:	96 07 bf e8 	add  %fp, -24, %o3                             
 2003698:	90 10 00 18 	mov  %i0, %o0                                  
 200369c:	7f ff fc 9d 	call  2002910 <rtems_filesystem_evaluate_path> 
 20036a0:	98 10 20 01 	mov  1, %o4                                    
    pathname, strlen( pathname ), eval_flags, &loc, true );           
                                                                      
  if ( status == -1 ) {                                               
 20036a4:	80 a2 3f ff 	cmp  %o0, -1                                   
 20036a8:	02 80 00 40 	be  20037a8 <open+0x16c>                       
 20036ac:	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)) {        
 20036b0:	80 a0 6a 00 	cmp  %g1, 0xa00                                
 20036b4:	02 80 00 26 	be  200374c <open+0x110>                       
 20036b8:	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 );                 
 20036bc:	f6 07 60 18 	ld  [ %i5 + 0x18 ], %i3                        
 20036c0:	40 00 1f 51 	call  200b404 <rtems_libio_fcntl_flags>        
 20036c4:	90 10 00 19 	mov  %i1, %o0                                  
  iop->pathinfo   = loc;                                              
 20036c8:	c4 07 bf f0 	ld  [ %fp + -16 ], %g2                         
 20036cc:	c6 07 bf e8 	ld  [ %fp + -24 ], %g3                         
                                                                      
  rc = (*iop->pathinfo.handlers->open_h)( iop, pathname, flags, mode );
 20036d0:	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;                                              
 20036d4:	c4 27 60 24 	st  %g2, [ %i5 + 0x24 ]                        
 20036d8:	c4 07 bf f4 	ld  [ %fp + -12 ], %g2                         
 20036dc:	c6 27 60 1c 	st  %g3, [ %i5 + 0x1c ]                        
 20036e0:	c4 27 60 28 	st  %g2, [ %i5 + 0x28 ]                        
 20036e4:	c6 07 bf ec 	ld  [ %fp + -20 ], %g3                         
 20036e8:	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 );                 
 20036ec:	b6 12 00 1b 	or  %o0, %i3, %i3                              
  iop->pathinfo   = loc;                                              
 20036f0:	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 );                 
 20036f4:	f6 27 60 18 	st  %i3, [ %i5 + 0x18 ]                        
  iop->pathinfo   = loc;                                              
 20036f8:	c4 27 60 2c 	st  %g2, [ %i5 + 0x2c ]                        
                                                                      
  rc = (*iop->pathinfo.handlers->open_h)( iop, pathname, flags, mode );
 20036fc:	90 10 00 1d 	mov  %i5, %o0                                  
 2003700:	92 10 00 18 	mov  %i0, %o1                                  
 2003704:	94 10 00 19 	mov  %i1, %o2                                  
 2003708:	9f c0 40 00 	call  %g1                                      
 200370c:	96 10 00 1c 	mov  %i4, %o3                                  
  if ( rc ) {                                                         
 2003710:	80 a2 20 00 	cmp  %o0, 0                                    
 2003714:	12 80 00 1a 	bne  200377c <open+0x140>                      
 2003718:	80 8e 64 00 	btst  0x400, %i1                               
  }                                                                   
                                                                      
  /*                                                                  
   *  Optionally truncate the file.                                   
   */                                                                 
  if ( (flags & O_TRUNC) == O_TRUNC ) {                               
 200371c:	12 80 00 2d 	bne  20037d0 <open+0x194>                      
 2003720:	39 00 80 55 	sethi  %hi(0x2015400), %i4                     
    if ( loc_to_free )                                                
      rtems_filesystem_freenode( loc_to_free );                       
    rtems_set_errno_and_return_minus_one( rc );                       
  }                                                                   
                                                                      
  return iop - rtems_libio_iops;                                      
 2003724:	f0 07 21 64 	ld  [ %i4 + 0x164 ], %i0	! 2015564 <rtems_libio_iops>
 2003728:	ba 27 40 18 	sub  %i5, %i0, %i5                             
 200372c:	b1 3f 60 06 	sra  %i5, 6, %i0                               
}                                                                     
 2003730:	81 c7 e0 08 	ret                                            
 2003734:	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 );                       
 2003738:	40 00 2a bb 	call  200e224 <__errno>                        
 200373c:	b0 10 3f ff 	mov  -1, %i0                                   
 2003740:	f6 22 00 00 	st  %i3, [ %o0 ]                               
 2003744:	81 c7 e0 08 	ret                                            
 2003748:	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;                                                      
 200374c:	b6 10 20 11 	mov  0x11, %i3                                 
   */                                                                 
done:                                                                 
  va_end(ap);                                                         
                                                                      
  if ( rc ) {                                                         
    if ( iop )                                                        
 2003750:	80 a7 60 00 	cmp  %i5, 0                                    
 2003754:	02 80 00 05 	be  2003768 <open+0x12c>                       
 2003758:	80 a6 a0 00 	cmp  %i2, 0                                    
      rtems_libio_free( iop );                                        
 200375c:	40 00 1f 76 	call  200b534 <rtems_libio_free>               
 2003760:	90 10 00 1d 	mov  %i5, %o0                                  
    if ( loc_to_free )                                                
 2003764:	80 a6 a0 00 	cmp  %i2, 0                                    
 2003768:	02 bf ff f4 	be  2003738 <open+0xfc>                        
 200376c:	01 00 00 00 	nop                                            
      rtems_filesystem_freenode( loc_to_free );                       
 2003770:	7f ff fc a2 	call  20029f8 <rtems_filesystem_freenode>      
 2003774:	90 10 00 1a 	mov  %i2, %o0                                  
 2003778:	30 bf ff f0 	b,a   2003738 <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;                                                       
 200377c:	40 00 2a aa 	call  200e224 <__errno>                        
 2003780:	b4 07 bf e8 	add  %fp, -24, %i2                             
 2003784:	f6 02 00 00 	ld  [ %o0 ], %i3                               
 2003788:	39 00 80 55 	sethi  %hi(0x2015400), %i4                     
   *  Single exit and clean up path.                                  
   */                                                                 
done:                                                                 
  va_end(ap);                                                         
                                                                      
  if ( rc ) {                                                         
 200378c:	80 a6 e0 00 	cmp  %i3, 0                                    
 2003790:	12 bf ff f0 	bne  2003750 <open+0x114>                      <== ALWAYS TAKEN
 2003794:	f0 07 21 64 	ld  [ %i4 + 0x164 ], %i0                       
    if ( loc_to_free )                                                
      rtems_filesystem_freenode( loc_to_free );                       
    rtems_set_errno_and_return_minus_one( rc );                       
  }                                                                   
                                                                      
  return iop - rtems_libio_iops;                                      
 2003798:	ba 27 40 18 	sub  %i5, %i0, %i5                             <== NOT EXECUTED
 200379c:	b1 3f 60 06 	sra  %i5, 6, %i0                               <== NOT EXECUTED
}                                                                     
 20037a0:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 20037a4:	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 ) {                                          
 20037a8:	40 00 2a 9f 	call  200e224 <__errno>                        
 20037ac:	01 00 00 00 	nop                                            
 20037b0:	c2 02 00 00 	ld  [ %o0 ], %g1                               
 20037b4:	80 a0 60 02 	cmp  %g1, 2                                    
 20037b8:	02 80 00 1d 	be  200382c <open+0x1f0>                       
 20037bc:	b4 10 20 00 	clr  %i2                                       
      rc = errno;                                                     
 20037c0:	40 00 2a 99 	call  200e224 <__errno>                        
 20037c4:	01 00 00 00 	nop                                            
      goto done;                                                      
 20037c8:	10 bf ff f0 	b  2003788 <open+0x14c>                        
 20037cc:	f6 02 00 00 	ld  [ %o0 ], %i3                               
                                                                      
  /*                                                                  
   *  Optionally truncate the file.                                   
   */                                                                 
  if ( (flags & O_TRUNC) == O_TRUNC ) {                               
    rc = ftruncate( iop - rtems_libio_iops, 0 );                      
 20037d0:	d0 07 21 64 	ld  [ %i4 + 0x164 ], %o0                       
 20037d4:	92 10 20 00 	clr  %o1                                       
 20037d8:	94 10 20 00 	clr  %o2                                       
 20037dc:	90 27 40 08 	sub  %i5, %o0, %o0                             
 20037e0:	40 00 1e cf 	call  200b31c <ftruncate>                      
 20037e4:	91 3a 20 06 	sra  %o0, 6, %o0                               
    if ( rc ) {                                                       
 20037e8:	b6 92 20 00 	orcc  %o0, 0, %i3                              
 20037ec:	02 bf ff cf 	be  2003728 <open+0xec>                        
 20037f0:	f0 07 21 64 	ld  [ %i4 + 0x164 ], %i0                       
      if(errno) rc = errno;                                           
 20037f4:	40 00 2a 8c 	call  200e224 <__errno>                        
 20037f8:	01 00 00 00 	nop                                            
 20037fc:	c2 02 00 00 	ld  [ %o0 ], %g1                               
 2003800:	80 a0 60 00 	cmp  %g1, 0                                    
 2003804:	12 80 00 1a 	bne  200386c <open+0x230>                      <== ALWAYS TAKEN
 2003808:	01 00 00 00 	nop                                            
      close( iop - rtems_libio_iops );                                
 200380c:	d0 07 21 64 	ld  [ %i4 + 0x164 ], %o0                       
      /* those are released by close(): */                            
      iop = 0;                                                        
      loc_to_free = NULL;                                             
 2003810:	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 );                                
 2003814:	90 27 40 08 	sub  %i5, %o0, %o0                             
      /* those are released by close(): */                            
      iop = 0;                                                        
 2003818:	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 );                                
 200381c:	40 00 1e 9e 	call  200b294 <close>                          
 2003820:	91 3a 20 06 	sra  %o0, 6, %o0                               
 2003824:	10 bf ff da 	b  200378c <open+0x150>                        
 2003828:	39 00 80 55 	sethi  %hi(0x2015400), %i4                     
      rc = errno;                                                     
      goto done;                                                      
    }                                                                 
                                                                      
    /* If the file does not exist and we are not trying to create it--> error */
    if ( !(flags & O_CREAT) ) {                                       
 200382c:	80 8e 62 00 	btst  0x200, %i1                               
 2003830:	02 bf ff c8 	be  2003750 <open+0x114>                       
 2003834:	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 );                      
 2003838:	90 10 00 18 	mov  %i0, %o0                                  
 200383c:	13 00 00 20 	sethi  %hi(0x8000), %o1                        
 2003840:	94 10 20 00 	clr  %o2                                       
 2003844:	92 17 00 09 	or  %i4, %o1, %o1                              
 2003848:	7f ff fd a6 	call  2002ee0 <mknod>                          
 200384c:	96 10 20 00 	clr  %o3                                       
    if ( rc ) {                                                       
 2003850:	80 a2 20 00 	cmp  %o0, 0                                    
 2003854:	02 80 00 0a 	be  200387c <open+0x240>                       <== ALWAYS TAKEN
 2003858:	01 00 00 00 	nop                                            
      rc = errno;                                                     
 200385c:	40 00 2a 72 	call  200e224 <__errno>                        <== NOT EXECUTED
 2003860:	39 00 80 55 	sethi  %hi(0x2015400), %i4                     <== NOT EXECUTED
      goto done;                                                      
 2003864:	10 bf ff ca 	b  200378c <open+0x150>                        <== NOT EXECUTED
 2003868:	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;                                           
 200386c:	40 00 2a 6e 	call  200e224 <__errno>                        
 2003870:	01 00 00 00 	nop                                            
 2003874:	10 bf ff e6 	b  200380c <open+0x1d0>                        
 2003878:	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(                          
 200387c:	40 00 2e 0e 	call  200f0b4 <strlen>                         
 2003880:	90 10 00 18 	mov  %i0, %o0                                  
 2003884:	94 10 20 00 	clr  %o2                                       
 2003888:	92 10 00 08 	mov  %o0, %o1                                  
 200388c:	96 07 bf e8 	add  %fp, -24, %o3                             
 2003890:	90 10 00 18 	mov  %i0, %o0                                  
 2003894:	98 10 20 01 	mov  1, %o4                                    
 2003898:	7f ff fc 1e 	call  2002910 <rtems_filesystem_evaluate_path> 
 200389c:	b6 10 20 0d 	mov  0xd, %i3                                  
      pathname, strlen( pathname ), 0x0, &loc, true );                
    if ( status != 0 ) {   /* The file did not exist */               
 20038a0:	80 a2 20 00 	cmp  %o0, 0                                    
 20038a4:	12 bf ff ac 	bne  2003754 <open+0x118>                      <== NEVER TAKEN
 20038a8:	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 );                 
 20038ac:	10 bf ff 85 	b  20036c0 <open+0x84>                         
 20038b0:	f6 07 60 18 	ld  [ %i5 + 0x18 ], %i3                        
                                                                      

02004600 <oproc>: /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) {
 2004600:	9d e3 bf a0 	save  %sp, -96, %sp                            
  int  i;                                                             
                                                                      
  if (tty->termios.c_oflag & OPOST) {                                 
 2004604:	c2 06 60 34 	ld  [ %i1 + 0x34 ], %g1                        
 2004608:	80 88 60 01 	btst  1, %g1                                   
 200460c:	02 80 00 21 	be  2004690 <oproc+0x90>                       <== NEVER TAKEN
 2004610:	f0 2f a0 44 	stb  %i0, [ %fp + 0x44 ]                       
    switch (c) {                                                      
 2004614:	80 a6 20 09 	cmp  %i0, 9                                    
 2004618:	22 80 00 3d 	be,a   200470c <oproc+0x10c>                   
 200461c:	c6 06 60 28 	ld  [ %i1 + 0x28 ], %g3                        
 2004620:	08 80 00 22 	bleu  20046a8 <oproc+0xa8>                     <== NEVER TAKEN
 2004624:	80 a6 20 08 	cmp  %i0, 8                                    
 2004628:	80 a6 20 0a 	cmp  %i0, 0xa                                  
 200462c:	02 80 00 2b 	be  20046d8 <oproc+0xd8>                       
 2004630:	80 a6 20 0d 	cmp  %i0, 0xd                                  
 2004634:	02 80 00 44 	be  2004744 <oproc+0x144>                      <== NEVER TAKEN
 2004638:	80 88 60 10 	btst  0x10, %g1                                
      if (tty->column > 0)                                            
        tty->column--;                                                
      break;                                                          
                                                                      
    default:                                                          
      if (tty->termios.c_oflag & OLCUC)                               
 200463c:	80 88 60 02 	btst  2, %g1                                   
        c = toupper(c);                                               
 2004640:	03 00 80 53 	sethi  %hi(0x2014c00), %g1                     
      if (tty->column > 0)                                            
        tty->column--;                                                
      break;                                                          
                                                                      
    default:                                                          
      if (tty->termios.c_oflag & OLCUC)                               
 2004644:	02 80 00 0b 	be  2004670 <oproc+0x70>                       <== ALWAYS TAKEN
 2004648:	c2 00 61 d4 	ld  [ %g1 + 0x1d4 ], %g1	! 2014dd4 <__ctype_ptr__>
        c = toupper(c);                                               
 200464c:	84 10 00 18 	mov  %i0, %g2                                  <== NOT EXECUTED
 2004650:	b0 00 40 18 	add  %g1, %i0, %i0                             <== NOT EXECUTED
 2004654:	c6 0e 20 01 	ldub  [ %i0 + 1 ], %g3                         <== NOT EXECUTED
 2004658:	86 08 e0 03 	and  %g3, 3, %g3                               <== NOT EXECUTED
 200465c:	80 a0 e0 02 	cmp  %g3, 2                                    <== NOT EXECUTED
 2004660:	22 80 00 02 	be,a   2004668 <oproc+0x68>                    <== NOT EXECUTED
 2004664:	84 00 bf e0 	add  %g2, -32, %g2                             <== NOT EXECUTED
 2004668:	c4 2f a0 44 	stb  %g2, [ %fp + 0x44 ]                       <== NOT EXECUTED
 200466c:	b0 08 a0 ff 	and  %g2, 0xff, %i0                            <== NOT EXECUTED
      if (!iscntrl(c))                                                
 2004670:	b0 00 40 18 	add  %g1, %i0, %i0                             
 2004674:	c2 0e 20 01 	ldub  [ %i0 + 1 ], %g1                         
 2004678:	80 88 60 20 	btst  0x20, %g1                                
 200467c:	12 80 00 06 	bne  2004694 <oproc+0x94>                      <== NEVER TAKEN
 2004680:	90 07 a0 44 	add  %fp, 0x44, %o0                            
        tty->column++;                                                
 2004684:	c2 06 60 28 	ld  [ %i1 + 0x28 ], %g1                        
 2004688:	82 00 60 01 	inc  %g1                                       
 200468c:	c2 26 60 28 	st  %g1, [ %i1 + 0x28 ]                        
      break;                                                          
    }                                                                 
  }                                                                   
  rtems_termios_puts (&c, 1, tty);                                    
 2004690:	90 07 a0 44 	add  %fp, 0x44, %o0                            
 2004694:	92 10 20 01 	mov  1, %o1                                    
 2004698:	7f ff ff 8a 	call  20044c0 <rtems_termios_puts>             
 200469c:	94 10 00 19 	mov  %i1, %o2                                  
 20046a0:	81 c7 e0 08 	ret                                            
 20046a4:	81 e8 00 00 	restore                                        
oproc (unsigned char c, struct rtems_termios_tty *tty)                
{                                                                     
  int  i;                                                             
                                                                      
  if (tty->termios.c_oflag & OPOST) {                                 
    switch (c) {                                                      
 20046a8:	12 bf ff e6 	bne  2004640 <oproc+0x40>                      <== NOT EXECUTED
 20046ac:	80 88 60 02 	btst  2, %g1                                   <== NOT EXECUTED
      }                                                               
      tty->column += i;                                               
      break;                                                          
                                                                      
    case '\b':                                                        
      if (tty->column > 0)                                            
 20046b0:	c2 06 60 28 	ld  [ %i1 + 0x28 ], %g1                        <== NOT EXECUTED
 20046b4:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
 20046b8:	04 bf ff f6 	ble  2004690 <oproc+0x90>                      <== NOT EXECUTED
 20046bc:	82 00 7f ff 	add  %g1, -1, %g1                              <== NOT EXECUTED
      if (!iscntrl(c))                                                
        tty->column++;                                                
      break;                                                          
    }                                                                 
  }                                                                   
  rtems_termios_puts (&c, 1, tty);                                    
 20046c0:	90 07 a0 44 	add  %fp, 0x44, %o0                            <== NOT EXECUTED
      tty->column += i;                                               
      break;                                                          
                                                                      
    case '\b':                                                        
      if (tty->column > 0)                                            
        tty->column--;                                                
 20046c4:	c2 26 60 28 	st  %g1, [ %i1 + 0x28 ]                        <== NOT EXECUTED
      if (!iscntrl(c))                                                
        tty->column++;                                                
      break;                                                          
    }                                                                 
  }                                                                   
  rtems_termios_puts (&c, 1, tty);                                    
 20046c8:	92 10 20 01 	mov  1, %o1                                    <== NOT EXECUTED
 20046cc:	7f ff ff 7d 	call  20044c0 <rtems_termios_puts>             <== NOT EXECUTED
 20046d0:	94 10 00 19 	mov  %i1, %o2                                  <== NOT EXECUTED
 20046d4:	30 80 00 30 	b,a   2004794 <oproc+0x194>                    <== NOT EXECUTED
  int  i;                                                             
                                                                      
  if (tty->termios.c_oflag & OPOST) {                                 
    switch (c) {                                                      
    case '\n':                                                        
      if (tty->termios.c_oflag & ONLRET)                              
 20046d8:	80 88 60 20 	btst  0x20, %g1                                
 20046dc:	32 80 00 02 	bne,a   20046e4 <oproc+0xe4>                   <== NEVER TAKEN
 20046e0:	c0 26 60 28 	clr  [ %i1 + 0x28 ]                            <== NOT EXECUTED
        tty->column = 0;                                              
      if (tty->termios.c_oflag & ONLCR) {                             
 20046e4:	80 88 60 04 	btst  4, %g1                                   
 20046e8:	22 bf ff eb 	be,a   2004694 <oproc+0x94>                    <== NEVER TAKEN
 20046ec:	90 07 a0 44 	add  %fp, 0x44, %o0                            <== NOT EXECUTED
        rtems_termios_puts ("\r", 1, tty);                            
 20046f0:	92 10 20 01 	mov  1, %o1                                    
 20046f4:	11 00 80 50 	sethi  %hi(0x2014000), %o0                     
 20046f8:	94 10 00 19 	mov  %i1, %o2                                  
 20046fc:	7f ff ff 71 	call  20044c0 <rtems_termios_puts>             
 2004700:	90 12 21 20 	or  %o0, 0x120, %o0                            
        tty->column = 0;                                              
 2004704:	10 bf ff e3 	b  2004690 <oproc+0x90>                        
 2004708:	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) {                 
 200470c:	05 00 00 06 	sethi  %hi(0x1800), %g2                        
      }                                                               
      tty->column = 0;                                                
      break;                                                          
                                                                      
    case '\t':                                                        
      i = 8 - (tty->column & 7);                                      
 2004710:	88 08 e0 07 	and  %g3, 7, %g4                               
      if ((tty->termios.c_oflag & TABDLY) == XTABS) {                 
 2004714:	82 08 40 02 	and  %g1, %g2, %g1                             
      }                                                               
      tty->column = 0;                                                
      break;                                                          
                                                                      
    case '\t':                                                        
      i = 8 - (tty->column & 7);                                      
 2004718:	92 10 20 08 	mov  8, %o1                                    
      if ((tty->termios.c_oflag & TABDLY) == XTABS) {                 
 200471c:	80 a0 40 02 	cmp  %g1, %g2                                  
 2004720:	02 80 00 17 	be  200477c <oproc+0x17c>                      <== ALWAYS TAKEN
 2004724:	92 22 40 04 	sub  %o1, %g4, %o1                             
        tty->column += i;                                             
        rtems_termios_puts ( "        ",  i, tty);                    
        return;                                                       
      }                                                               
      tty->column += i;                                               
 2004728:	92 00 c0 09 	add  %g3, %o1, %o1                             <== NOT EXECUTED
      if (!iscntrl(c))                                                
        tty->column++;                                                
      break;                                                          
    }                                                                 
  }                                                                   
  rtems_termios_puts (&c, 1, tty);                                    
 200472c:	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;                                               
 2004730:	d2 26 60 28 	st  %o1, [ %i1 + 0x28 ]                        <== NOT EXECUTED
      if (!iscntrl(c))                                                
        tty->column++;                                                
      break;                                                          
    }                                                                 
  }                                                                   
  rtems_termios_puts (&c, 1, tty);                                    
 2004734:	94 10 00 19 	mov  %i1, %o2                                  <== NOT EXECUTED
 2004738:	7f ff ff 62 	call  20044c0 <rtems_termios_puts>             <== NOT EXECUTED
 200473c:	92 10 20 01 	mov  1, %o1                                    <== NOT EXECUTED
 2004740:	30 80 00 15 	b,a   2004794 <oproc+0x194>                    <== NOT EXECUTED
        tty->column = 0;                                              
      }                                                               
      break;                                                          
                                                                      
    case '\r':                                                        
      if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0))       
 2004744:	02 80 00 06 	be  200475c <oproc+0x15c>                      <== NOT EXECUTED
 2004748:	80 88 60 08 	btst  8, %g1                                   <== NOT EXECUTED
 200474c:	c4 06 60 28 	ld  [ %i1 + 0x28 ], %g2                        <== NOT EXECUTED
 2004750:	80 a0 a0 00 	cmp  %g2, 0                                    <== NOT EXECUTED
 2004754:	02 bf ff d3 	be  20046a0 <oproc+0xa0>                       <== NOT EXECUTED
 2004758:	80 88 60 08 	btst  8, %g1                                   <== NOT EXECUTED
        return;                                                       
      if (tty->termios.c_oflag & OCRNL) {                             
 200475c:	22 bf ff cd 	be,a   2004690 <oproc+0x90>                    <== NOT EXECUTED
 2004760:	c0 26 60 28 	clr  [ %i1 + 0x28 ]                            <== NOT EXECUTED
        c = '\n';                                                     
 2004764:	84 10 20 0a 	mov  0xa, %g2                                  <== NOT EXECUTED
        if (tty->termios.c_oflag & ONLRET)                            
 2004768:	80 88 60 20 	btst  0x20, %g1                                <== NOT EXECUTED
 200476c:	02 bf ff c9 	be  2004690 <oproc+0x90>                       <== NOT EXECUTED
 2004770:	c4 2f a0 44 	stb  %g2, [ %fp + 0x44 ]                       <== NOT EXECUTED
          tty->column = 0;                                            
        break;                                                        
      }                                                               
      tty->column = 0;                                                
      break;                                                          
 2004774:	10 bf ff c7 	b  2004690 <oproc+0x90>                        <== NOT EXECUTED
 2004778:	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;                                             
 200477c:	86 00 c0 09 	add  %g3, %o1, %g3                             
        rtems_termios_puts ( "        ",  i, tty);                    
 2004780:	11 00 80 50 	sethi  %hi(0x2014000), %o0                     
      break;                                                          
                                                                      
    case '\t':                                                        
      i = 8 - (tty->column & 7);                                      
      if ((tty->termios.c_oflag & TABDLY) == XTABS) {                 
        tty->column += i;                                             
 2004784:	c6 26 60 28 	st  %g3, [ %i1 + 0x28 ]                        
        rtems_termios_puts ( "        ",  i, tty);                    
 2004788:	90 12 21 28 	or  %o0, 0x128, %o0                            
 200478c:	7f ff ff 4d 	call  20044c0 <rtems_termios_puts>             
 2004790:	94 10 00 19 	mov  %i1, %o2                                  
        return;                                                       
 2004794:	81 c7 e0 08 	ret                                            
 2004798:	81 e8 00 00 	restore                                        
                                                                      

0200c74c <pipe_create>: * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) {
 200c74c:	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)          
 200c750:	92 10 21 ff 	mov  0x1ff, %o1                                
 200c754:	11 00 80 6f 	sethi  %hi(0x201bc00), %o0                     
    return -1;                                                        
 200c758:	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)          
 200c75c:	40 00 05 ea 	call  200df04 <rtems_mkdir>                    
 200c760:	90 12 23 b0 	or  %o0, 0x3b0, %o0                            
 200c764:	80 a2 20 00 	cmp  %o0, 0                                    
 200c768:	12 80 00 33 	bne  200c834 <pipe_create+0xe8>                <== NEVER TAKEN
 200c76c:	03 00 80 74 	sethi  %hi(0x201d000), %g1                     
    return -1;                                                        
                                                                      
  /* /tmp/.fifoXXXX */                                                
  char fifopath[15];                                                  
  memcpy(fifopath, "/tmp/.fifo", 10);                                 
  sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);                   
 200c770:	d4 10 61 40 	lduh  [ %g1 + 0x140 ], %o2	! 201d140 <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);                                 
 200c774:	05 0b dd 1b 	sethi  %hi(0x2f746c00), %g2                    
  sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);                   
 200c778:	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);                                 
 200c77c:	84 10 a1 70 	or  %g2, 0x170, %g2                            
  sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);                   
 200c780:	c8 30 61 40 	sth  %g4, [ %g1 + 0x140 ]                      
  if (rtems_mkdir("/tmp", S_IRWXU | S_IRWXG | S_IRWXO) != 0)          
    return -1;                                                        
                                                                      
  /* /tmp/.fifoXXXX */                                                
  char fifopath[15];                                                  
  memcpy(fifopath, "/tmp/.fifo", 10);                                 
 200c784:	07 0b cb 99 	sethi  %hi(0x2f2e6400), %g3                    
 200c788:	03 00 00 19 	sethi  %hi(0x6400), %g1                        
 200c78c:	86 10 e2 69 	or  %g3, 0x269, %g3                            
 200c790:	82 10 62 6f 	or  %g1, 0x26f, %g1                            
 200c794:	c4 3f bf f0 	std  %g2, [ %fp + -16 ]                        
 200c798:	c2 37 bf f8 	sth  %g1, [ %fp + -8 ]                         
  sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);                   
 200c79c:	95 2a a0 10 	sll  %o2, 0x10, %o2                            
 200c7a0:	90 07 bf fa 	add  %fp, -6, %o0                              
 200c7a4:	95 32 a0 10 	srl  %o2, 0x10, %o2                            
 200c7a8:	13 00 80 6f 	sethi  %hi(0x201bc00), %o1                     
 200c7ac:	40 00 0f 74 	call  201057c <sprintf>                        
 200c7b0:	92 12 63 b8 	or  %o1, 0x3b8, %o1	! 201bfb8 <_CPU_Trap_slot_template+0x1c>
                                                                      
  /* Try creating FIFO file until find an available file name */      
  while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) {                    
 200c7b4:	90 07 bf f0 	add  %fp, -16, %o0                             
 200c7b8:	40 00 05 19 	call  200dc1c <mkfifo>                         
 200c7bc:	92 10 21 80 	mov  0x180, %o1                                
 200c7c0:	80 a2 20 00 	cmp  %o0, 0                                    
 200c7c4:	12 80 00 31 	bne  200c888 <pipe_create+0x13c>               
 200c7c8:	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);                 
 200c7cc:	7f ff e1 20 	call  2004c4c <open>                           
 200c7d0:	13 00 00 10 	sethi  %hi(0x4000), %o1                        
  if (filsdes[0] < 0) {                                               
 200c7d4:	80 a2 20 00 	cmp  %o0, 0                                    
 200c7d8:	06 80 00 1f 	bl  200c854 <pipe_create+0x108>                
 200c7dc:	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]);                                
 200c7e0:	03 00 80 72 	sethi  %hi(0x201c800), %g1                     
 200c7e4:	c4 00 60 cc 	ld  [ %g1 + 0xcc ], %g2	! 201c8cc <rtems_libio_number_iops>
 200c7e8:	80 a2 00 02 	cmp  %o0, %g2                                  
 200c7ec:	0a 80 00 15 	bcs  200c840 <pipe_create+0xf4>                <== ALWAYS TAKEN
 200c7f0:	82 10 20 00 	clr  %g1                                       
    iop->flags &= ~LIBIO_FLAGS_NO_DELAY;                              
 200c7f4:	c4 00 60 18 	ld  [ %g1 + 0x18 ], %g2                        
                                                                      
    filsdes[1] = open(fifopath, O_WRONLY);                            
 200c7f8:	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;                              
 200c7fc:	84 08 bf fe 	and  %g2, -2, %g2                              
                                                                      
    filsdes[1] = open(fifopath, O_WRONLY);                            
 200c800:	92 10 20 01 	mov  1, %o1                                    
 200c804:	7f ff e1 12 	call  2004c4c <open>                           
 200c808:	c4 20 60 18 	st  %g2, [ %g1 + 0x18 ]                        
 200c80c:	d0 26 20 04 	st  %o0, [ %i0 + 4 ]                           
                                                                      
    if (filsdes[1] < 0) {                                             
 200c810:	80 a2 20 00 	cmp  %o0, 0                                    
 200c814:	06 80 00 17 	bl  200c870 <pipe_create+0x124>                
 200c818:	b8 10 20 00 	clr  %i4                                       
    err = errno;                                                      
    close(filsdes[0]);                                                
    }                                                                 
  unlink(fifopath);                                                   
 200c81c:	7f ff e9 a8 	call  2006ebc <unlink>                         
 200c820:	90 07 bf f0 	add  %fp, -16, %o0                             
  }                                                                   
  if(err != 0)                                                        
    rtems_set_errno_and_return_minus_one(err);                        
  return 0;                                                           
 200c824:	ba 10 20 00 	clr  %i5                                       
    err = errno;                                                      
    close(filsdes[0]);                                                
    }                                                                 
  unlink(fifopath);                                                   
  }                                                                   
  if(err != 0)                                                        
 200c828:	80 a7 20 00 	cmp  %i4, 0                                    
 200c82c:	12 80 00 1a 	bne  200c894 <pipe_create+0x148>               
 200c830:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one(err);                        
  return 0;                                                           
}                                                                     
 200c834:	b0 10 00 1d 	mov  %i5, %i0                                  
 200c838:	81 c7 e0 08 	ret                                            
 200c83c:	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]);                                
 200c840:	03 00 80 74 	sethi  %hi(0x201d000), %g1                     
 200c844:	c2 00 62 bc 	ld  [ %g1 + 0x2bc ], %g1	! 201d2bc <rtems_libio_iops>
 200c848:	91 2a 20 06 	sll  %o0, 6, %o0                               
 200c84c:	10 bf ff ea 	b  200c7f4 <pipe_create+0xa8>                  
 200c850:	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;                                                      
 200c854:	40 00 0c 76 	call  200fa2c <__errno>                        
 200c858:	ba 10 20 00 	clr  %i5                                       
 200c85c:	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);                                                 
 200c860:	7f ff e9 97 	call  2006ebc <unlink>                         
 200c864:	90 07 bf f0 	add  %fp, -16, %o0                             
    err = errno;                                                      
    close(filsdes[0]);                                                
    }                                                                 
  unlink(fifopath);                                                   
  }                                                                   
  if(err != 0)                                                        
 200c868:	10 bf ff f1 	b  200c82c <pipe_create+0xe0>                  
 200c86c:	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;                                                      
 200c870:	40 00 0c 6f 	call  200fa2c <__errno>                        
 200c874:	01 00 00 00 	nop                                            
 200c878:	f8 02 00 00 	ld  [ %o0 ], %i4                               
    close(filsdes[0]);                                                
 200c87c:	7f ff dc ba 	call  2003b64 <close>                          
 200c880:	d0 06 00 00 	ld  [ %i0 ], %o0                               
 200c884:	30 bf ff e6 	b,a   200c81c <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){                                             
 200c888:	40 00 0c 69 	call  200fa2c <__errno>                        
 200c88c:	b0 10 00 1d 	mov  %i5, %i0                                  
 200c890:	30 bf ff ea 	b,a   200c838 <pipe_create+0xec>               
    close(filsdes[0]);                                                
    }                                                                 
  unlink(fifopath);                                                   
  }                                                                   
  if(err != 0)                                                        
    rtems_set_errno_and_return_minus_one(err);                        
 200c894:	40 00 0c 66 	call  200fa2c <__errno>                        
 200c898:	ba 10 3f ff 	mov  -1, %i5                                   
 200c89c:	10 bf ff e6 	b  200c834 <pipe_create+0xe8>                  
 200c8a0:	f8 22 00 00 	st  %i4, [ %o0 ]                               
                                                                      

0200dc4c <pipe_ioctl>: pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) {
 200dc4c:	9d e3 bf a0 	save  %sp, -96, %sp                            
  if (cmd == FIONREAD) {                                              
 200dc50:	03 10 01 19 	sethi  %hi(0x40046400), %g1                    
  pipe_control_t *pipe,                                               
  uint32_t        cmd,                                                
  void           *buffer,                                             
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
 200dc54:	ba 10 00 18 	mov  %i0, %i5                                  
  if (cmd == FIONREAD) {                                              
 200dc58:	82 10 62 7f 	or  %g1, 0x27f, %g1                            
 200dc5c:	80 a6 40 01 	cmp  %i1, %g1                                  
 200dc60:	12 80 00 12 	bne  200dca8 <pipe_ioctl+0x5c>                 
 200dc64:	b0 10 3f ea 	mov  -22, %i0                                  
    if (buffer == NULL)                                               
 200dc68:	80 a6 a0 00 	cmp  %i2, 0                                    
 200dc6c:	02 80 00 0f 	be  200dca8 <pipe_ioctl+0x5c>                  
 200dc70:	b0 10 3f f2 	mov  -14, %i0                                  
      return -EFAULT;                                                 
                                                                      
    if (! PIPE_LOCK(pipe))                                            
 200dc74:	d0 07 60 28 	ld  [ %i5 + 0x28 ], %o0                        
 200dc78:	92 10 20 00 	clr  %o1                                       
 200dc7c:	94 10 20 00 	clr  %o2                                       
 200dc80:	7f ff ea 25 	call  2008514 <rtems_semaphore_obtain>         
 200dc84:	b0 10 3f fc 	mov  -4, %i0                                   
 200dc88:	80 a2 20 00 	cmp  %o0, 0                                    
 200dc8c:	12 80 00 07 	bne  200dca8 <pipe_ioctl+0x5c>                 <== NEVER TAKEN
 200dc90:	01 00 00 00 	nop                                            
      return -EINTR;                                                  
                                                                      
    /* Return length of pipe */                                       
    *(unsigned int *)buffer = pipe->Length;                           
 200dc94:	c2 07 60 0c 	ld  [ %i5 + 0xc ], %g1                         
    PIPE_UNLOCK(pipe);                                                
 200dc98:	d0 07 60 28 	ld  [ %i5 + 0x28 ], %o0                        
    return 0;                                                         
 200dc9c:	b0 10 20 00 	clr  %i0                                       
    if (! PIPE_LOCK(pipe))                                            
      return -EINTR;                                                  
                                                                      
    /* Return length of pipe */                                       
    *(unsigned int *)buffer = pipe->Length;                           
    PIPE_UNLOCK(pipe);                                                
 200dca0:	7f ff ea 66 	call  2008638 <rtems_semaphore_release>        
 200dca4:	c2 26 80 00 	st  %g1, [ %i2 ]                               
    return 0;                                                         
  }                                                                   
                                                                      
  return -EINVAL;                                                     
}                                                                     
 200dca8:	81 c7 e0 08 	ret                                            
 200dcac:	81 e8 00 00 	restore                                        
                                                                      

0200d8b0 <pipe_read>: pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) {
 200d8b0:	9d e3 bf 98 	save  %sp, -104, %sp                           
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
 200d8b4:	d0 06 20 28 	ld  [ %i0 + 0x28 ], %o0                        
  pipe_control_t *pipe,                                               
  void           *buffer,                                             
  size_t          count,                                              
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
 200d8b8:	ba 10 00 18 	mov  %i0, %i5                                  
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
 200d8bc:	92 10 20 00 	clr  %o1                                       
 200d8c0:	94 10 20 00 	clr  %o2                                       
 200d8c4:	7f ff eb 14 	call  2008514 <rtems_semaphore_obtain>         
 200d8c8:	b0 10 3f fc 	mov  -4, %i0                                   
 200d8cc:	80 a2 20 00 	cmp  %o0, 0                                    
 200d8d0:	12 80 00 2c 	bne  200d980 <pipe_read+0xd0>                  <== NEVER TAKEN
 200d8d4:	a0 10 20 00 	clr  %l0                                       
    return -EINTR;                                                    
                                                                      
  while (read < count) {                                              
 200d8d8:	80 a6 a0 00 	cmp  %i2, 0                                    
 200d8dc:	02 80 00 52 	be  200da24 <pipe_read+0x174>                  <== NEVER TAKEN
 200d8e0:	b0 10 20 00 	clr  %i0                                       
    while (PIPE_EMPTY(pipe)) {                                        
 200d8e4:	f8 07 60 0c 	ld  [ %i5 + 0xc ], %i4                         
 200d8e8:	80 a7 20 00 	cmp  %i4, 0                                    
 200d8ec:	12 80 00 29 	bne  200d990 <pipe_read+0xe0>                  
 200d8f0:	82 26 80 10 	sub  %i2, %l0, %g1                             
      /* Not an error */                                              
      if (pipe->Writers == 0)                                         
 200d8f4:	c2 07 60 14 	ld  [ %i5 + 0x14 ], %g1                        
 200d8f8:	80 a0 60 00 	cmp  %g1, 0                                    
 200d8fc:	22 80 00 1c 	be,a   200d96c <pipe_read+0xbc>                
 200d900:	b8 10 20 00 	clr  %i4                                       
        goto out_locked;                                              
                                                                      
      if (LIBIO_NODELAY(iop)) {                                       
 200d904:	c2 06 e0 18 	ld  [ %i3 + 0x18 ], %g1                        
 200d908:	80 88 60 01 	btst  1, %g1                                   
 200d90c:	32 80 00 18 	bne,a   200d96c <pipe_read+0xbc>               
 200d910:	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 ++;                                        
 200d914:	c2 07 60 18 	ld  [ %i5 + 0x18 ], %g1                        
      PIPE_UNLOCK(pipe);                                              
 200d918:	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 ++;                                        
 200d91c:	82 00 60 01 	inc  %g1                                       
      PIPE_UNLOCK(pipe);                                              
 200d920:	7f ff eb 46 	call  2008638 <rtems_semaphore_release>        
 200d924:	c2 27 60 18 	st  %g1, [ %i5 + 0x18 ]                        
      if (! PIPE_READWAIT(pipe))                                      
 200d928:	d0 07 60 2c 	ld  [ %i5 + 0x2c ], %o0                        
 200d92c:	40 00 03 fa 	call  200e914 <rtems_barrier_wait>             
 200d930:	92 10 20 00 	clr  %o1                                       
 200d934:	80 a0 00 08 	cmp  %g0, %o0                                  
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
 200d938:	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))                                      
 200d93c:	b8 60 20 00 	subx  %g0, 0, %i4                              
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
 200d940:	92 10 20 00 	clr  %o1                                       
 200d944:	94 10 20 00 	clr  %o2                                       
 200d948:	7f ff ea f3 	call  2008514 <rtems_semaphore_obtain>         
 200d94c:	b8 0f 3f fc 	and  %i4, -4, %i4                              
 200d950:	80 a2 20 00 	cmp  %o0, 0                                    
 200d954:	12 80 00 36 	bne  200da2c <pipe_read+0x17c>                 <== NEVER TAKEN
 200d958:	80 a7 20 00 	cmp  %i4, 0                                    
        /* WARN waitingReaders not restored! */                       
        ret = -EINTR;                                                 
        goto out_nolock;                                              
      }                                                               
      pipe->waitingReaders --;                                        
 200d95c:	c2 07 60 18 	ld  [ %i5 + 0x18 ], %g1                        
 200d960:	82 00 7f ff 	add  %g1, -1, %g1                              
      if (ret != 0)                                                   
 200d964:	02 bf ff e0 	be  200d8e4 <pipe_read+0x34>                   <== ALWAYS TAKEN
 200d968:	c2 27 60 18 	st  %g1, [ %i5 + 0x18 ]                        
      PIPE_WAKEUPWRITERS(pipe);                                       
    read += chunk;                                                    
  }                                                                   
                                                                      
out_locked:                                                           
  PIPE_UNLOCK(pipe);                                                  
 200d96c:	7f ff eb 33 	call  2008638 <rtems_semaphore_release>        
 200d970:	d0 07 60 28 	ld  [ %i5 + 0x28 ], %o0                        
                                                                      
out_nolock:                                                           
  if (read > 0)                                                       
 200d974:	80 a6 20 00 	cmp  %i0, 0                                    
 200d978:	04 80 00 04 	ble  200d988 <pipe_read+0xd8>                  
 200d97c:	01 00 00 00 	nop                                            
    return read;                                                      
  return ret;                                                         
}                                                                     
 200d980:	81 c7 e0 08 	ret                                            
 200d984:	81 e8 00 00 	restore                                        
 200d988:	81 c7 e0 08 	ret                                            
 200d98c:	91 e8 00 1c 	restore  %g0, %i4, %o0                         
      if (ret != 0)                                                   
        goto out_locked;                                              
    }                                                                 
                                                                      
    /* Read chunk bytes */                                            
    chunk = MIN(count - read,  pipe->Length);                         
 200d990:	80 a7 00 01 	cmp  %i4, %g1                                  
 200d994:	38 80 00 02 	bgu,a   200d99c <pipe_read+0xec>               
 200d998:	b8 10 00 01 	mov  %g1, %i4                                  
    chunk1 = pipe->Size - pipe->Start;                                
 200d99c:	c2 07 60 08 	ld  [ %i5 + 8 ], %g1                           
 200d9a0:	e2 07 60 04 	ld  [ %i5 + 4 ], %l1                           
 200d9a4:	a2 24 40 01 	sub  %l1, %g1, %l1                             
    if (chunk > chunk1) {                                             
 200d9a8:	80 a7 00 11 	cmp  %i4, %l1                                  
 200d9ac:	04 80 00 22 	ble  200da34 <pipe_read+0x184>                 
 200d9b0:	d2 07 40 00 	ld  [ %i5 ], %o1                               
      memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1);      
 200d9b4:	94 10 00 11 	mov  %l1, %o2                                  
 200d9b8:	92 02 40 01 	add  %o1, %g1, %o1                             
 200d9bc:	40 00 0d ce 	call  20110f4 <memcpy>                         
 200d9c0:	90 06 40 10 	add  %i1, %l0, %o0                             
      memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1);   
 200d9c4:	d2 07 40 00 	ld  [ %i5 ], %o1                               
 200d9c8:	90 04 00 11 	add  %l0, %l1, %o0                             
 200d9cc:	94 27 00 11 	sub  %i4, %l1, %o2                             
 200d9d0:	40 00 0d c9 	call  20110f4 <memcpy>                         
 200d9d4:	90 06 40 08 	add  %i1, %o0, %o0                             
    }                                                                 
    else                                                              
      memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);       
                                                                      
    pipe->Start += chunk;                                             
 200d9d8:	d0 07 60 08 	ld  [ %i5 + 8 ], %o0                           
    pipe->Start %= pipe->Size;                                        
 200d9dc:	d2 07 60 04 	ld  [ %i5 + 4 ], %o1                           
 200d9e0:	40 00 3b 9d 	call  201c854 <.urem>                          
 200d9e4:	90 07 00 08 	add  %i4, %o0, %o0                             
    pipe->Length -= chunk;                                            
 200d9e8:	c2 07 60 0c 	ld  [ %i5 + 0xc ], %g1                         
    }                                                                 
    else                                                              
      memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);       
                                                                      
    pipe->Start += chunk;                                             
    pipe->Start %= pipe->Size;                                        
 200d9ec:	d0 27 60 08 	st  %o0, [ %i5 + 8 ]                           
    pipe->Length -= chunk;                                            
 200d9f0:	82 20 40 1c 	sub  %g1, %i4, %g1                             
    /* For buffering optimization */                                  
    if (PIPE_EMPTY(pipe))                                             
 200d9f4:	80 a0 60 00 	cmp  %g1, 0                                    
 200d9f8:	12 80 00 03 	bne  200da04 <pipe_read+0x154>                 
 200d9fc:	c2 27 60 0c 	st  %g1, [ %i5 + 0xc ]                         
      pipe->Start = 0;                                                
 200da00:	c0 27 60 08 	clr  [ %i5 + 8 ]                               
                                                                      
    if (pipe->waitingWriters > 0)                                     
 200da04:	c2 07 60 1c 	ld  [ %i5 + 0x1c ], %g1                        
 200da08:	80 a0 60 00 	cmp  %g1, 0                                    
 200da0c:	32 80 00 10 	bne,a   200da4c <pipe_read+0x19c>              
 200da10:	d0 07 60 30 	ld  [ %i5 + 0x30 ], %o0                        
      PIPE_WAKEUPWRITERS(pipe);                                       
    read += chunk;                                                    
 200da14:	b0 06 00 1c 	add  %i0, %i4, %i0                             
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    return -EINTR;                                                    
                                                                      
  while (read < count) {                                              
 200da18:	80 a6 00 1a 	cmp  %i0, %i2                                  
 200da1c:	0a bf ff b2 	bcs  200d8e4 <pipe_read+0x34>                  <== NEVER TAKEN
 200da20:	a0 10 00 18 	mov  %i0, %l0                                  
    while (PIPE_EMPTY(pipe)) {                                        
      /* Not an error */                                              
      if (pipe->Writers == 0)                                         
 200da24:	10 bf ff d2 	b  200d96c <pipe_read+0xbc>                    
 200da28:	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;                                                 
 200da2c:	10 bf ff d2 	b  200d974 <pipe_read+0xc4>                    <== NOT EXECUTED
 200da30:	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);       
 200da34:	90 06 40 10 	add  %i1, %l0, %o0                             
 200da38:	92 02 40 01 	add  %o1, %g1, %o1                             
 200da3c:	40 00 0d ae 	call  20110f4 <memcpy>                         
 200da40:	94 10 00 1c 	mov  %i4, %o2                                  
                                                                      
    pipe->Start += chunk;                                             
 200da44:	10 bf ff e6 	b  200d9dc <pipe_read+0x12c>                   
 200da48:	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);                                       
 200da4c:	40 00 03 9b 	call  200e8b8 <rtems_barrier_release>          
 200da50:	92 07 bf fc 	add  %fp, -4, %o1                              
    read += chunk;                                                    
 200da54:	10 bf ff f1 	b  200da18 <pipe_read+0x168>                   
 200da58:	b0 06 00 1c 	add  %i0, %i4, %i0                             
                                                                      

0200d31c <pipe_release>: */ void pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) {
 200d31c:	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);                                          
 200d320:	c2 06 60 18 	ld  [ %i1 + 0x18 ], %g1                        
void pipe_release(                                                    
  pipe_control_t **pipep,                                             
  rtems_libio_t *iop                                                  
)                                                                     
{                                                                     
  pipe_control_t *pipe = *pipep;                                      
 200d324:	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)                                        
 200d328:	80 88 60 02 	btst  2, %g1                                   
 200d32c:	02 80 00 05 	be  200d340 <pipe_release+0x24>                
 200d330:	b8 08 60 06 	and  %g1, 6, %i4                               
     pipe->Readers --;                                                
 200d334:	c2 07 60 10 	ld  [ %i5 + 0x10 ], %g1                        
 200d338:	82 00 7f ff 	add  %g1, -1, %g1                              
 200d33c:	c2 27 60 10 	st  %g1, [ %i5 + 0x10 ]                        
  if (mode & LIBIO_FLAGS_WRITE)                                       
 200d340:	80 8f 20 04 	btst  4, %i4                                   
 200d344:	02 80 00 05 	be  200d358 <pipe_release+0x3c>                
 200d348:	01 00 00 00 	nop                                            
     pipe->Writers --;                                                
 200d34c:	c2 07 60 14 	ld  [ %i5 + 0x14 ], %g1                        
 200d350:	82 00 7f ff 	add  %g1, -1, %g1                              
 200d354:	c2 27 60 14 	st  %g1, [ %i5 + 0x14 ]                        
                                                                      
  PIPE_UNLOCK(pipe);                                                  
 200d358:	7f ff ec b8 	call  2008638 <rtems_semaphore_release>        
 200d35c:	d0 07 60 28 	ld  [ %i5 + 0x28 ], %o0                        
                                                                      
  if (pipe->Readers == 0 && pipe->Writers == 0) {                     
 200d360:	c2 07 60 10 	ld  [ %i5 + 0x10 ], %g1                        
 200d364:	80 a0 60 00 	cmp  %g1, 0                                    
 200d368:	12 80 00 0c 	bne  200d398 <pipe_release+0x7c>               
 200d36c:	c2 07 60 14 	ld  [ %i5 + 0x14 ], %g1                        
 200d370:	80 a0 60 00 	cmp  %g1, 0                                    
 200d374:	02 80 00 1d 	be  200d3e8 <pipe_release+0xcc>                
 200d378:	80 a7 20 04 	cmp  %i4, 4                                    
      delfile = TRUE;                                                 
#endif                                                                
    pipe_free(pipe);                                                  
    *pipep = NULL;                                                    
  }                                                                   
  else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE)           
 200d37c:	32 80 00 14 	bne,a   200d3cc <pipe_release+0xb0>            <== ALWAYS TAKEN
 200d380:	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);                       
 200d384:	03 00 80 81 	sethi  %hi(0x2020400), %g1                     <== NOT EXECUTED
 200d388:	7f ff ec ac 	call  2008638 <rtems_semaphore_release>        <== NOT EXECUTED
 200d38c:	d0 00 63 c0 	ld  [ %g1 + 0x3c0 ], %o0	! 20207c0 <pipe_semaphore><== NOT EXECUTED
  iop->flags &= ~LIBIO_FLAGS_OPEN;                                    
  if(iop->pathinfo.ops->unlink_h(&iop->pathinfo))                     
    return;                                                           
#endif                                                                
                                                                      
}                                                                     
 200d390:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200d394:	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)            
 200d398:	80 a0 60 00 	cmp  %g1, 0                                    
 200d39c:	12 bf ff fa 	bne  200d384 <pipe_release+0x68>               <== NEVER TAKEN
 200d3a0:	80 a7 20 02 	cmp  %i4, 2                                    
 200d3a4:	02 bf ff f9 	be  200d388 <pipe_release+0x6c>                <== NEVER TAKEN
 200d3a8:	03 00 80 81 	sethi  %hi(0x2020400), %g1                     
    PIPE_WAKEUPREADERS(pipe);                                         
 200d3ac:	d0 07 60 2c 	ld  [ %i5 + 0x2c ], %o0                        
 200d3b0:	40 00 05 42 	call  200e8b8 <rtems_barrier_release>          
 200d3b4:	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);                       
 200d3b8:	03 00 80 81 	sethi  %hi(0x2020400), %g1                     
 200d3bc:	7f ff ec 9f 	call  2008638 <rtems_semaphore_release>        
 200d3c0:	d0 00 63 c0 	ld  [ %g1 + 0x3c0 ], %o0	! 20207c0 <pipe_semaphore>
  iop->flags &= ~LIBIO_FLAGS_OPEN;                                    
  if(iop->pathinfo.ops->unlink_h(&iop->pathinfo))                     
    return;                                                           
#endif                                                                
                                                                      
}                                                                     
 200d3c4:	81 c7 e0 08 	ret                                            
 200d3c8:	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);                                         
 200d3cc:	40 00 05 3b 	call  200e8b8 <rtems_barrier_release>          
 200d3d0:	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);                       
 200d3d4:	03 00 80 81 	sethi  %hi(0x2020400), %g1                     
 200d3d8:	7f ff ec 98 	call  2008638 <rtems_semaphore_release>        
 200d3dc:	d0 00 63 c0 	ld  [ %g1 + 0x3c0 ], %o0	! 20207c0 <pipe_semaphore>
  iop->flags &= ~LIBIO_FLAGS_OPEN;                                    
  if(iop->pathinfo.ops->unlink_h(&iop->pathinfo))                     
    return;                                                           
#endif                                                                
                                                                      
}                                                                     
 200d3e0:	81 c7 e0 08 	ret                                            
 200d3e4:	81 e8 00 00 	restore                                        
/* Called with pipe_semaphore held. */                                
static inline void pipe_free(                                         
  pipe_control_t *pipe                                                
)                                                                     
{                                                                     
  rtems_barrier_delete(pipe->readBarrier);                            
 200d3e8:	40 00 05 0b 	call  200e814 <rtems_barrier_delete>           
 200d3ec:	d0 07 60 2c 	ld  [ %i5 + 0x2c ], %o0                        
  rtems_barrier_delete(pipe->writeBarrier);                           
 200d3f0:	40 00 05 09 	call  200e814 <rtems_barrier_delete>           
 200d3f4:	d0 07 60 30 	ld  [ %i5 + 0x30 ], %o0                        
  rtems_semaphore_delete(pipe->Semaphore);                            
 200d3f8:	7f ff ec 10 	call  2008438 <rtems_semaphore_delete>         
 200d3fc:	d0 07 60 28 	ld  [ %i5 + 0x28 ], %o0                        
  free(pipe->Buffer);                                                 
 200d400:	7f ff dc 80 	call  2004600 <free>                           
 200d404:	d0 07 40 00 	ld  [ %i5 ], %o0                               
  free(pipe);                                                         
 200d408:	7f ff dc 7e 	call  2004600 <free>                           
 200d40c:	90 10 00 1d 	mov  %i5, %o0                                  
                                                                      
static void pipe_unlock(void)                                         
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  sc = rtems_semaphore_release(pipe_semaphore);                       
 200d410:	03 00 80 81 	sethi  %hi(0x2020400), %g1                     
 200d414:	d0 00 63 c0 	ld  [ %g1 + 0x3c0 ], %o0	! 20207c0 <pipe_semaphore>
 200d418:	7f ff ec 88 	call  2008638 <rtems_semaphore_release>        
 200d41c:	c0 26 00 00 	clr  [ %i0 ]                                   
  iop->flags &= ~LIBIO_FLAGS_OPEN;                                    
  if(iop->pathinfo.ops->unlink_h(&iop->pathinfo))                     
    return;                                                           
#endif                                                                
                                                                      
}                                                                     
 200d420:	81 c7 e0 08 	ret                                            
 200d424:	81 e8 00 00 	restore                                        
                                                                      

0200da5c <pipe_write>: pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) {
 200da5c:	9d e3 bf 98 	save  %sp, -104, %sp                           
 200da60:	ba 10 00 18 	mov  %i0, %i5                                  
  int chunk, chunk1, written = 0, ret = 0;                            
                                                                      
  /* Write nothing */                                                 
  if (count == 0)                                                     
 200da64:	80 a6 a0 00 	cmp  %i2, 0                                    
 200da68:	12 80 00 04 	bne  200da78 <pipe_write+0x1c>                 <== ALWAYS TAKEN
 200da6c:	b0 10 20 00 	clr  %i0                                       
#endif                                                                
                                                                      
  if (written > 0)                                                    
    return written;                                                   
  return ret;                                                         
}                                                                     
 200da70:	81 c7 e0 08 	ret                                            
 200da74:	81 e8 00 00 	restore                                        
                                                                      
  /* Write nothing */                                                 
  if (count == 0)                                                     
    return 0;                                                         
                                                                      
  if (! PIPE_LOCK(pipe))                                              
 200da78:	d0 07 60 28 	ld  [ %i5 + 0x28 ], %o0                        
 200da7c:	92 10 20 00 	clr  %o1                                       
 200da80:	94 10 20 00 	clr  %o2                                       
 200da84:	7f ff ea a4 	call  2008514 <rtems_semaphore_obtain>         
 200da88:	b0 10 3f fc 	mov  -4, %i0                                   
 200da8c:	80 a2 20 00 	cmp  %o0, 0                                    
 200da90:	12 bf ff f8 	bne  200da70 <pipe_write+0x14>                 <== NEVER TAKEN
 200da94:	01 00 00 00 	nop                                            
    return -EINTR;                                                    
                                                                      
  if (pipe->Readers == 0) {                                           
 200da98:	c2 07 60 10 	ld  [ %i5 + 0x10 ], %g1                        
 200da9c:	80 a0 60 00 	cmp  %g1, 0                                    
 200daa0:	02 80 00 5d 	be  200dc14 <pipe_write+0x1b8>                 
 200daa4:	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;                            
 200daa8:	e4 07 60 04 	ld  [ %i5 + 4 ], %l2                           
 200daac:	80 a6 80 12 	cmp  %i2, %l2                                  
 200dab0:	08 80 00 57 	bleu  200dc0c <pipe_write+0x1b0>               <== ALWAYS TAKEN
 200dab4:	a0 10 20 01 	mov  1, %l0                                    
 200dab8:	a2 10 20 00 	clr  %l1                                       
 200dabc:	b0 10 20 00 	clr  %i0                                       
                                                                      
  while (written < count) {                                           
    while (PIPE_SPACE(pipe) < chunk) {                                
 200dac0:	c2 07 60 0c 	ld  [ %i5 + 0xc ], %g1                         
 200dac4:	b8 24 80 01 	sub  %l2, %g1, %i4                             
 200dac8:	80 a7 00 10 	cmp  %i4, %l0                                  
 200dacc:	1a 80 00 27 	bcc  200db68 <pipe_write+0x10c>                
 200dad0:	84 26 80 11 	sub  %i2, %l1, %g2                             
      if (LIBIO_NODELAY(iop)) {                                       
 200dad4:	c2 06 e0 18 	ld  [ %i3 + 0x18 ], %g1                        
 200dad8:	80 88 60 01 	btst  1, %g1                                   
 200dadc:	32 80 00 45 	bne,a   200dbf0 <pipe_write+0x194>             
 200dae0:	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 ++;                                        
 200dae4:	c2 07 60 1c 	ld  [ %i5 + 0x1c ], %g1                        
      PIPE_UNLOCK(pipe);                                              
 200dae8:	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 ++;                                        
 200daec:	82 00 60 01 	inc  %g1                                       
      PIPE_UNLOCK(pipe);                                              
 200daf0:	7f ff ea d2 	call  2008638 <rtems_semaphore_release>        
 200daf4:	c2 27 60 1c 	st  %g1, [ %i5 + 0x1c ]                        
      if (! PIPE_WRITEWAIT(pipe))                                     
 200daf8:	d0 07 60 30 	ld  [ %i5 + 0x30 ], %o0                        
 200dafc:	40 00 03 86 	call  200e914 <rtems_barrier_wait>             
 200db00:	92 10 20 00 	clr  %o1                                       
 200db04:	80 a0 00 08 	cmp  %g0, %o0                                  
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
 200db08:	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))                                     
 200db0c:	b8 60 20 00 	subx  %g0, 0, %i4                              
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
 200db10:	92 10 20 00 	clr  %o1                                       
 200db14:	94 10 20 00 	clr  %o2                                       
 200db18:	7f ff ea 7f 	call  2008514 <rtems_semaphore_obtain>         
 200db1c:	b8 0f 3f fc 	and  %i4, -4, %i4                              
 200db20:	80 a2 20 00 	cmp  %o0, 0                                    
 200db24:	12 80 00 3e 	bne  200dc1c <pipe_write+0x1c0>                <== NEVER TAKEN
 200db28:	80 a7 20 00 	cmp  %i4, 0                                    
        /* WARN waitingWriters not restored! */                       
        ret = -EINTR;                                                 
        goto out_nolock;                                              
      }                                                               
      pipe->waitingWriters --;                                        
 200db2c:	c2 07 60 1c 	ld  [ %i5 + 0x1c ], %g1                        
 200db30:	82 00 7f ff 	add  %g1, -1, %g1                              
      if (ret != 0)                                                   
 200db34:	12 80 00 2f 	bne  200dbf0 <pipe_write+0x194>                <== NEVER TAKEN
 200db38:	c2 27 60 1c 	st  %g1, [ %i5 + 0x1c ]                        
        goto out_locked;                                              
                                                                      
      if (pipe->Readers == 0) {                                       
 200db3c:	c2 07 60 10 	ld  [ %i5 + 0x10 ], %g1                        
 200db40:	80 a0 60 00 	cmp  %g1, 0                                    
 200db44:	02 80 00 2b 	be  200dbf0 <pipe_write+0x194>                 <== NEVER TAKEN
 200db48:	b8 10 3f e0 	mov  -32, %i4                                  
 200db4c:	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) {                                
 200db50:	c2 07 60 0c 	ld  [ %i5 + 0xc ], %g1                         
 200db54:	b8 24 80 01 	sub  %l2, %g1, %i4                             
 200db58:	80 a7 00 10 	cmp  %i4, %l0                                  
 200db5c:	2a bf ff df 	bcs,a   200dad8 <pipe_write+0x7c>              <== NEVER TAKEN
 200db60:	c2 06 e0 18 	ld  [ %i3 + 0x18 ], %g1                        <== NOT EXECUTED
        ret = -EPIPE;                                                 
        goto out_locked;                                              
      }                                                               
    }                                                                 
                                                                      
    chunk = MIN(count - written, PIPE_SPACE(pipe));                   
 200db64:	84 26 80 11 	sub  %i2, %l1, %g2                             
 200db68:	80 a7 00 02 	cmp  %i4, %g2                                  
 200db6c:	38 80 00 02 	bgu,a   200db74 <pipe_write+0x118>             
 200db70:	b8 10 00 02 	mov  %g2, %i4                                  
    chunk1 = pipe->Size - PIPE_WSTART(pipe);                          
 200db74:	d0 07 60 08 	ld  [ %i5 + 8 ], %o0                           
 200db78:	92 10 00 12 	mov  %l2, %o1                                  
 200db7c:	40 00 3b 36 	call  201c854 <.urem>                          
 200db80:	90 00 40 08 	add  %g1, %o0, %o0                             
    if (chunk > chunk1) {                                             
      memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1);
 200db84:	c2 07 40 00 	ld  [ %i5 ], %g1                               
        goto out_locked;                                              
      }                                                               
    }                                                                 
                                                                      
    chunk = MIN(count - written, PIPE_SPACE(pipe));                   
    chunk1 = pipe->Size - PIPE_WSTART(pipe);                          
 200db88:	a0 24 80 08 	sub  %l2, %o0, %l0                             
    if (chunk > chunk1) {                                             
 200db8c:	80 a7 00 10 	cmp  %i4, %l0                                  
 200db90:	04 80 00 25 	ble  200dc24 <pipe_write+0x1c8>                
 200db94:	92 06 40 11 	add  %i1, %l1, %o1                             
      memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1);
 200db98:	94 10 00 10 	mov  %l0, %o2                                  
 200db9c:	40 00 0d 56 	call  20110f4 <memcpy>                         
 200dba0:	90 00 40 08 	add  %g1, %o0, %o0                             
      memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1);
 200dba4:	d0 07 40 00 	ld  [ %i5 ], %o0                               
 200dba8:	92 04 00 11 	add  %l0, %l1, %o1                             
 200dbac:	94 27 00 10 	sub  %i4, %l0, %o2                             
 200dbb0:	40 00 0d 51 	call  20110f4 <memcpy>                         
 200dbb4:	92 06 40 09 	add  %i1, %o1, %o1                             
    }                                                                 
    else                                                              
      memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk);
                                                                      
    pipe->Length += chunk;                                            
 200dbb8:	c4 07 60 0c 	ld  [ %i5 + 0xc ], %g2                         
    if (pipe->waitingReaders > 0)                                     
 200dbbc:	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;                                            
 200dbc0:	84 00 80 1c 	add  %g2, %i4, %g2                             
    if (pipe->waitingReaders > 0)                                     
 200dbc4:	80 a0 60 00 	cmp  %g1, 0                                    
 200dbc8:	12 80 00 1c 	bne  200dc38 <pipe_write+0x1dc>                
 200dbcc:	c4 27 60 0c 	st  %g2, [ %i5 + 0xc ]                         
      PIPE_WAKEUPREADERS(pipe);                                       
    written += chunk;                                                 
 200dbd0:	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) {                                           
 200dbd4:	80 a6 80 18 	cmp  %i2, %i0                                  
 200dbd8:	08 80 00 05 	bleu  200dbec <pipe_write+0x190>               <== ALWAYS TAKEN
 200dbdc:	a2 10 00 18 	mov  %i0, %l1                                  
 200dbe0:	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;                                                        
 200dbe4:	10 bf ff b7 	b  200dac0 <pipe_write+0x64>                   <== NOT EXECUTED
 200dbe8:	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) {                                           
 200dbec:	b8 10 20 00 	clr  %i4                                       
    /* Write of more than PIPE_BUF bytes can be interleaved */        
    chunk = 1;                                                        
  }                                                                   
                                                                      
out_locked:                                                           
  PIPE_UNLOCK(pipe);                                                  
 200dbf0:	7f ff ea 92 	call  2008638 <rtems_semaphore_release>        
 200dbf4:	d0 07 60 28 	ld  [ %i5 + 0x28 ], %o0                        
  /* Signal SIGPIPE */                                                
  if (ret == -EPIPE)                                                  
    kill(getpid(), SIGPIPE);                                          
#endif                                                                
                                                                      
  if (written > 0)                                                    
 200dbf8:	80 a6 20 00 	cmp  %i0, 0                                    
 200dbfc:	14 bf ff 9d 	bg  200da70 <pipe_write+0x14>                  
 200dc00:	01 00 00 00 	nop                                            
    return written;                                                   
  return ret;                                                         
}                                                                     
 200dc04:	81 c7 e0 08 	ret                                            
 200dc08:	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;                            
 200dc0c:	10 bf ff ab 	b  200dab8 <pipe_write+0x5c>                   
 200dc10:	a0 10 00 1a 	mov  %i2, %l0                                  
  const void     *buffer,                                             
  size_t          count,                                              
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
  int chunk, chunk1, written = 0, ret = 0;                            
 200dc14:	10 bf ff f7 	b  200dbf0 <pipe_write+0x194>                  
 200dc18:	b0 10 20 00 	clr  %i0                                       
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_WRITEWAIT(pipe))                                     
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
        /* WARN waitingWriters not restored! */                       
        ret = -EINTR;                                                 
 200dc1c:	10 bf ff f7 	b  200dbf8 <pipe_write+0x19c>                  <== NOT EXECUTED
 200dc20:	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);
 200dc24:	90 00 40 08 	add  %g1, %o0, %o0                             
 200dc28:	40 00 0d 33 	call  20110f4 <memcpy>                         
 200dc2c:	94 10 00 1c 	mov  %i4, %o2                                  
                                                                      
    pipe->Length += chunk;                                            
 200dc30:	10 bf ff e3 	b  200dbbc <pipe_write+0x160>                  
 200dc34:	c4 07 60 0c 	ld  [ %i5 + 0xc ], %g2                         
    if (pipe->waitingReaders > 0)                                     
      PIPE_WAKEUPREADERS(pipe);                                       
 200dc38:	d0 07 60 2c 	ld  [ %i5 + 0x2c ], %o0                        
 200dc3c:	40 00 03 1f 	call  200e8b8 <rtems_barrier_release>          
 200dc40:	92 07 bf fc 	add  %fp, -4, %o1                              
    written += chunk;                                                 
 200dc44:	10 bf ff e4 	b  200dbd4 <pipe_write+0x178>                  
 200dc48:	b0 06 00 1c 	add  %i0, %i4, %i0                             
                                                                      

020073ac <posix_memalign>: ) { /* * Update call statistics */ MSBUMP(memalign_calls, 1);
 20073ac:	05 00 80 8a 	sethi  %hi(0x2022800), %g2                     
 20073b0:	84 10 a1 b0 	or  %g2, 0x1b0, %g2	! 20229b0 <rtems_malloc_statistics>
 20073b4:	c6 00 a0 08 	ld  [ %g2 + 8 ], %g3                           
 20073b8:	86 00 e0 01 	inc  %g3                                       
 20073bc:	c6 20 a0 08 	st  %g3, [ %g2 + 8 ]                           
                                                                      
  if (((alignment - 1) & alignment) != 0 || (alignment < sizeof(void *)))
 20073c0:	84 02 7f ff 	add  %o1, -1, %g2                              
 20073c4:	80 88 80 09 	btst  %g2, %o1                                 
 20073c8:	22 80 00 04 	be,a   20073d8 <posix_memalign+0x2c>           <== ALWAYS TAKEN
 20073cc:	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 );                  
}                                                                     
 20073d0:	81 c3 e0 08 	retl                                           
 20073d4:	90 10 20 16 	mov  0x16, %o0                                 
  /*                                                                  
   *  Update call statistics                                          
   */                                                                 
  MSBUMP(memalign_calls, 1);                                          
                                                                      
  if (((alignment - 1) & alignment) != 0 || (alignment < sizeof(void *)))
 20073d8:	08 bf ff fe 	bleu  20073d0 <posix_memalign+0x24>            
 20073dc:	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 );                  
 20073e0:	82 13 c0 00 	mov  %o7, %g1                                  
 20073e4:	40 00 00 8c 	call  2007614 <rtems_memalign>                 
 20073e8:	9e 10 40 00 	mov  %g1, %o7                                  
                                                                      

0201335c <read>: ssize_t read( int fd, void *buffer, size_t count ) {
 201335c:	9d e3 bf a0 	save  %sp, -96, %sp                            
  ssize_t      rc;                                                    
  rtems_libio_t *iop;                                                 
                                                                      
  rtems_libio_check_fd( fd );                                         
 2013360:	03 00 80 52 	sethi  %hi(0x2014800), %g1                     
 2013364:	c2 00 63 9c 	ld  [ %g1 + 0x39c ], %g1	! 2014b9c <rtems_libio_number_iops>
 2013368:	80 a6 00 01 	cmp  %i0, %g1                                  
 201336c:	1a 80 00 1e 	bcc  20133e4 <read+0x88>                       <== NEVER TAKEN
 2013370:	03 00 80 55 	sethi  %hi(0x2015400), %g1                     
  iop = rtems_libio_iop( fd );                                        
 2013374:	fa 00 61 64 	ld  [ %g1 + 0x164 ], %i5	! 2015564 <rtems_libio_iops>
 2013378:	b1 2e 20 06 	sll  %i0, 6, %i0                               
 201337c:	ba 07 40 18 	add  %i5, %i0, %i5                             
  rtems_libio_check_is_open( iop );                                   
 2013380:	c2 07 60 18 	ld  [ %i5 + 0x18 ], %g1                        
 2013384:	80 88 61 00 	btst  0x100, %g1                               
 2013388:	02 80 00 17 	be  20133e4 <read+0x88>                        
 201338c:	80 a6 60 00 	cmp  %i1, 0                                    
  rtems_libio_check_buffer( buffer );                                 
 2013390:	02 80 00 1b 	be  20133fc <read+0xa0>                        <== NEVER TAKEN
 2013394:	80 a6 a0 00 	cmp  %i2, 0                                    
  rtems_libio_check_count( count );                                   
 2013398:	02 80 00 11 	be  20133dc <read+0x80>                        
 201339c:	b0 10 20 00 	clr  %i0                                       
  rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ );             
 20133a0:	80 88 60 02 	btst  2, %g1                                   
 20133a4:	02 80 00 16 	be  20133fc <read+0xa0>                        
 20133a8:	90 10 00 1d 	mov  %i5, %o0                                  
                                                                      
  /*                                                                  
   *  Now process the read().                                         
   */                                                                 
  rc = (*iop->pathinfo.handlers->read_h)( iop, buffer, count );       
 20133ac:	c2 07 60 24 	ld  [ %i5 + 0x24 ], %g1                        
 20133b0:	c2 00 60 08 	ld  [ %g1 + 8 ], %g1                           
 20133b4:	92 10 00 19 	mov  %i1, %o1                                  
 20133b8:	9f c0 40 00 	call  %g1                                      
 20133bc:	94 10 00 1a 	mov  %i2, %o2                                  
                                                                      
  if ( rc > 0 )                                                       
 20133c0:	b0 92 20 00 	orcc  %o0, 0, %i0                              
 20133c4:	04 80 00 06 	ble  20133dc <read+0x80>                       
 20133c8:	85 3e 20 1f 	sra  %i0, 0x1f, %g2                            
    iop->offset += rc;                                                
 20133cc:	d8 1f 60 10 	ldd  [ %i5 + 0x10 ], %o4                       
 20133d0:	86 83 40 18 	addcc  %o5, %i0, %g3                           
 20133d4:	84 43 00 02 	addx  %o4, %g2, %g2                            
 20133d8:	c4 3f 60 10 	std  %g2, [ %i5 + 0x10 ]                       
                                                                      
  return rc;                                                          
}                                                                     
 20133dc:	81 c7 e0 08 	ret                                            
 20133e0:	81 e8 00 00 	restore                                        
  ssize_t      rc;                                                    
  rtems_libio_t *iop;                                                 
                                                                      
  rtems_libio_check_fd( fd );                                         
  iop = rtems_libio_iop( fd );                                        
  rtems_libio_check_is_open( iop );                                   
 20133e4:	7f ff eb 90 	call  200e224 <__errno>                        
 20133e8:	b0 10 3f ff 	mov  -1, %i0                                   
 20133ec:	82 10 20 09 	mov  9, %g1                                    
 20133f0:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 20133f4:	81 c7 e0 08 	ret                                            
 20133f8:	81 e8 00 00 	restore                                        
  rtems_libio_check_buffer( buffer );                                 
  rtems_libio_check_count( count );                                   
  rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ );             
 20133fc:	7f ff eb 8a 	call  200e224 <__errno>                        
 2013400:	b0 10 3f ff 	mov  -1, %i0                                   
 2013404:	82 10 20 16 	mov  0x16, %g1                                 
 2013408:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 201340c:	81 c7 e0 08 	ret                                            
 2013410:	81 e8 00 00 	restore                                        
                                                                      

02005e8c <readlink>: ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) {
 2005e8c:	9d e3 bf 88 	save  %sp, -120, %sp                           
  rtems_filesystem_location_info_t  loc;                              
  int                               result;                           
                                                                      
  if (!buf)                                                           
 2005e90:	80 a6 60 00 	cmp  %i1, 0                                    
 2005e94:	02 80 00 26 	be  2005f2c <readlink+0xa0>                    
 2005e98:	01 00 00 00 	nop                                            
    rtems_set_errno_and_return_minus_one( EFAULT );                   
                                                                      
  result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ),
 2005e9c:	40 00 33 d8 	call  2012dfc <strlen>                         
 2005ea0:	90 10 00 18 	mov  %i0, %o0                                  
 2005ea4:	94 10 20 00 	clr  %o2                                       
 2005ea8:	92 10 00 08 	mov  %o0, %o1                                  
 2005eac:	96 07 bf ec 	add  %fp, -20, %o3                             
 2005eb0:	90 10 00 18 	mov  %i0, %o0                                  
 2005eb4:	98 10 20 00 	clr  %o4                                       
 2005eb8:	7f ff fb 5f 	call  2004c34 <rtems_filesystem_evaluate_path> 
 2005ebc:	b0 10 3f ff 	mov  -1, %i0                                   
                                           0, &loc, false );          
  if ( result != 0 )                                                  
 2005ec0:	80 a2 20 00 	cmp  %o0, 0                                    
 2005ec4:	12 80 00 10 	bne  2005f04 <readlink+0x78>                   <== NEVER TAKEN
 2005ec8:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
     return -1;                                                       
                                                                      
  if (  (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_SYM_LINK ){
 2005ecc:	c2 00 60 10 	ld  [ %g1 + 0x10 ], %g1                        
 2005ed0:	9f c0 40 00 	call  %g1                                      
 2005ed4:	90 07 bf ec 	add  %fp, -20, %o0                             
 2005ed8:	80 a2 20 04 	cmp  %o0, 4                                    
 2005edc:	12 80 00 0c 	bne  2005f0c <readlink+0x80>                   
 2005ee0:	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 );             
 2005ee4:	92 10 00 19 	mov  %i1, %o1                                  
 2005ee8:	c2 00 60 3c 	ld  [ %g1 + 0x3c ], %g1                        
 2005eec:	94 10 00 1a 	mov  %i2, %o2                                  
 2005ef0:	9f c0 40 00 	call  %g1                                      
 2005ef4:	90 07 bf ec 	add  %fp, -20, %o0                             
 2005ef8:	b0 10 00 08 	mov  %o0, %i0                                  
                                                                      
  rtems_filesystem_freenode( &loc );                                  
 2005efc:	7f ff fb 88 	call  2004d1c <rtems_filesystem_freenode>      
 2005f00:	90 07 bf ec 	add  %fp, -20, %o0                             
                                                                      
  return result;                                                      
}                                                                     
 2005f04:	81 c7 e0 08 	ret                                            
 2005f08:	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 );                                
 2005f0c:	7f ff fb 84 	call  2004d1c <rtems_filesystem_freenode>      
 2005f10:	90 07 bf ec 	add  %fp, -20, %o0                             
    rtems_set_errno_and_return_minus_one( EINVAL );                   
 2005f14:	40 00 2c b8 	call  20111f4 <__errno>                        
 2005f18:	01 00 00 00 	nop                                            
 2005f1c:	82 10 20 16 	mov  0x16, %g1	! 16 <PROM_START+0x16>          
 2005f20:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2005f24:	81 c7 e0 08 	ret                                            
 2005f28:	81 e8 00 00 	restore                                        
{                                                                     
  rtems_filesystem_location_info_t  loc;                              
  int                               result;                           
                                                                      
  if (!buf)                                                           
    rtems_set_errno_and_return_minus_one( EFAULT );                   
 2005f2c:	40 00 2c b2 	call  20111f4 <__errno>                        
 2005f30:	b0 10 3f ff 	mov  -1, %i0                                   
 2005f34:	82 10 20 0e 	mov  0xe, %g1                                  
 2005f38:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2005f3c:	81 c7 e0 08 	ret                                            
 2005f40:	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 59 	sethi  %hi(0x2016400), %g1                     
 2004a54:	c2 00 62 3c 	ld  [ %g1 + 0x23c ], %g1	! 201663c <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 5c 	sethi  %hi(0x2017000), %g1                     
  iop = rtems_libio_iop( fd );                                        
 2004a64:	f8 00 60 04 	ld  [ %g1 + 4 ], %i4	! 2017004 <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( iop, LIBIO_FLAGS_READ );             
 2004a80:	02 80 00 39 	be  2004b64 <readv+0x118>                      <== 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                                   
      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 29 9f 	call  200f1e0 <__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                                        
  rtems_libio_t *iop;                                                 
  bool           all_zeros;                                           
                                                                      
  rtems_libio_check_fd( fd );                                         
  iop = rtems_libio_iop( fd );                                        
  rtems_libio_check_is_open( iop );                                   
 2004b7c:	40 00 29 99 	call  200f1e0 <__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                                        
                                                                      

02013494 <realloc>: void *realloc( void *ptr, size_t size ) {
 2013494:	9d e3 bf 98 	save  %sp, -104, %sp                           
  uintptr_t old_size;                                                 
  char    *new_area;                                                  
                                                                      
  MSBUMP(realloc_calls, 1);                                           
 2013498:	3b 00 80 55 	sethi  %hi(0x2015400), %i5                     
 201349c:	ba 17 61 80 	or  %i5, 0x180, %i5	! 2015580 <rtems_malloc_statistics>
 20134a0:	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())) {                     
 20134a4:	03 00 80 56 	sethi  %hi(0x2015800), %g1                     
 20134a8:	c2 00 60 8c 	ld  [ %g1 + 0x8c ], %g1	! 201588c <_System_state_Current>
)                                                                     
{                                                                     
  uintptr_t old_size;                                                 
  char    *new_area;                                                  
                                                                      
  MSBUMP(realloc_calls, 1);                                           
 20134ac:	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())) {                     
 20134b0:	80 a0 60 03 	cmp  %g1, 3                                    
 20134b4:	02 80 00 2c 	be  2013564 <realloc+0xd0>                     <== ALWAYS TAKEN
 20134b8:	c4 27 60 10 	st  %g2, [ %i5 + 0x10 ]                        
  }                                                                   
                                                                      
  /*                                                                  
   * Continue with realloc().                                         
   */                                                                 
  if ( !ptr )                                                         
 20134bc:	80 a6 20 00 	cmp  %i0, 0                                    <== NOT EXECUTED
 20134c0:	02 80 00 49 	be  20135e4 <realloc+0x150>                    
 20134c4:	01 00 00 00 	nop                                            
    return malloc( size );                                            
                                                                      
  if ( !size ) {                                                      
 20134c8:	80 a6 60 00 	cmp  %i1, 0                                    
 20134cc:	02 80 00 3b 	be  20135b8 <realloc+0x124>                    <== NEVER TAKEN
 20134d0:	39 00 80 52 	sethi  %hi(0x2014800), %i4                     
    free( ptr );                                                      
    return (void *) 0;                                                
  }                                                                   
                                                                      
  if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) {
 20134d4:	d0 07 23 60 	ld  [ %i4 + 0x360 ], %o0	! 2014b60 <RTEMS_Malloc_Heap>
 20134d8:	92 10 00 18 	mov  %i0, %o1                                  
 20134dc:	40 00 00 74 	call  20136ac <_Protected_heap_Get_block_size> 
 20134e0:	94 07 bf fc 	add  %fp, -4, %o2                              
 20134e4:	80 8a 20 ff 	btst  0xff, %o0                                
 20134e8:	02 80 00 39 	be  20135cc <realloc+0x138>                    
 20134ec:	01 00 00 00 	nop                                            
  }                                                                   
                                                                      
  /*                                                                  
   *  Now resize it.                                                  
   */                                                                 
  if ( _Protected_heap_Resize_block( RTEMS_Malloc_Heap, ptr, size ) ) {
 20134f0:	d0 07 23 60 	ld  [ %i4 + 0x360 ], %o0                       
 20134f4:	92 10 00 18 	mov  %i0, %o1                                  
 20134f8:	40 00 00 7b 	call  20136e4 <_Protected_heap_Resize_block>   
 20134fc:	94 10 00 19 	mov  %i1, %o2                                  
 2013500:	80 8a 20 ff 	btst  0xff, %o0                                
 2013504:	02 80 00 04 	be  2013514 <realloc+0x80>                     
 2013508:	01 00 00 00 	nop                                            
  memcpy( new_area, ptr, (size < old_size) ? size : old_size );       
  free( ptr );                                                        
                                                                      
  return new_area;                                                    
                                                                      
}                                                                     
 201350c:	81 c7 e0 08 	ret                                            
 2013510:	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 );                                          
 2013514:	7f ff be 23 	call  2002da0 <malloc>                         
 2013518:	90 10 00 19 	mov  %i1, %o0                                  
                                                                      
  MSBUMP(malloc_calls, (uint32_t) -1);   /* subtract off the malloc */
 201351c:	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 );                                          
 2013520:	b8 10 00 08 	mov  %o0, %i4                                  
                                                                      
  MSBUMP(malloc_calls, (uint32_t) -1);   /* subtract off the malloc */
 2013524:	82 00 7f ff 	add  %g1, -1, %g1                              
                                                                      
  if ( !new_area ) {                                                  
 2013528:	80 a2 20 00 	cmp  %o0, 0                                    
 201352c:	02 80 00 30 	be  20135ec <realloc+0x158>                    
 2013530:	c2 27 60 04 	st  %g1, [ %i5 + 4 ]                           
    return (void *) 0;                                                
  }                                                                   
                                                                      
  memcpy( new_area, ptr, (size < old_size) ? size : old_size );       
 2013534:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 2013538:	80 a6 40 01 	cmp  %i1, %g1                                  
 201353c:	18 80 00 16 	bgu  2013594 <realloc+0x100>                   <== ALWAYS TAKEN
 2013540:	94 10 00 19 	mov  %i1, %o2                                  
 2013544:	92 10 00 18 	mov  %i0, %o1                                  <== NOT EXECUTED
 2013548:	7f ff ed 72 	call  200eb10 <memcpy>                         <== NOT EXECUTED
 201354c:	90 10 00 1c 	mov  %i4, %o0                                  <== NOT EXECUTED
  free( ptr );                                                        
 2013550:	90 10 00 18 	mov  %i0, %o0                                  <== NOT EXECUTED
 2013554:	7f ff bd 30 	call  2002a14 <free>                           <== NOT EXECUTED
 2013558:	b0 10 00 1c 	mov  %i4, %i0                                  <== NOT EXECUTED
                                                                      
  return new_area;                                                    
 201355c:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 2013560:	81 e8 00 00 	restore                                        <== NOT EXECUTED
  /*                                                                  
   *  Do not attempt to allocate memory if in a critical section or ISR.
   */                                                                 
                                                                      
  if (_System_state_Is_up(_System_state_Get())) {                     
    if (_Thread_Dispatch_disable_level > 0)                           
 2013564:	03 00 80 55 	sethi  %hi(0x2015400), %g1                     
 2013568:	c2 00 63 30 	ld  [ %g1 + 0x330 ], %g1	! 2015730 <_Thread_Dispatch_disable_level>
 201356c:	80 a0 60 00 	cmp  %g1, 0                                    
 2013570:	12 80 00 07 	bne  201358c <realloc+0xf8>                    <== NEVER TAKEN
 2013574:	01 00 00 00 	nop                                            
      return (void *) 0;                                              
                                                                      
    if (_ISR_Nest_level > 0)                                          
 2013578:	03 00 80 56 	sethi  %hi(0x2015800), %g1                     
 201357c:	c2 00 61 64 	ld  [ %g1 + 0x164 ], %g1	! 2015964 <_Per_CPU_Information+0x8>
 2013580:	80 a0 60 00 	cmp  %g1, 0                                    
 2013584:	22 bf ff cf 	be,a   20134c0 <realloc+0x2c>                  <== ALWAYS TAKEN
 2013588:	80 a6 20 00 	cmp  %i0, 0                                    
      return (void *) 0;                                              
 201358c:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 2013590:	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 );       
 2013594:	92 10 00 18 	mov  %i0, %o1                                  
 2013598:	94 10 00 01 	mov  %g1, %o2                                  
 201359c:	7f ff ed 5d 	call  200eb10 <memcpy>                         
 20135a0:	90 10 00 1c 	mov  %i4, %o0                                  
  free( ptr );                                                        
 20135a4:	90 10 00 18 	mov  %i0, %o0                                  
 20135a8:	7f ff bd 1b 	call  2002a14 <free>                           
 20135ac:	b0 10 00 1c 	mov  %i4, %i0                                  
                                                                      
  return new_area;                                                    
 20135b0:	81 c7 e0 08 	ret                                            
 20135b4:	81 e8 00 00 	restore                                        
   */                                                                 
  if ( !ptr )                                                         
    return malloc( size );                                            
                                                                      
  if ( !size ) {                                                      
    free( ptr );                                                      
 20135b8:	90 10 00 18 	mov  %i0, %o0                                  <== NOT EXECUTED
 20135bc:	7f ff bd 16 	call  2002a14 <free>                           <== NOT EXECUTED
 20135c0:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
    return (void *) 0;                                                
 20135c4:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 20135c8:	81 e8 00 00 	restore                                        <== NOT EXECUTED
  }                                                                   
                                                                      
  if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) {
    errno = EINVAL;                                                   
 20135cc:	7f ff eb 16 	call  200e224 <__errno>                        
 20135d0:	b0 10 20 00 	clr  %i0                                       
 20135d4:	82 10 20 16 	mov  0x16, %g1                                 
 20135d8:	c2 22 00 00 	st  %g1, [ %o0 ]                               
    return (void *) 0;                                                
 20135dc:	81 c7 e0 08 	ret                                            
 20135e0:	81 e8 00 00 	restore                                        
                                                                      
  /*                                                                  
   * Continue with realloc().                                         
   */                                                                 
  if ( !ptr )                                                         
    return malloc( size );                                            
 20135e4:	7f ff bd ef 	call  2002da0 <malloc>                         
 20135e8:	91 e8 00 19 	restore  %g0, %i1, %o0                         
  memcpy( new_area, ptr, (size < old_size) ? size : old_size );       
  free( ptr );                                                        
                                                                      
  return new_area;                                                    
                                                                      
}                                                                     
 20135ec:	81 c7 e0 08 	ret                                            
 20135f0:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      

02003e04 <rmdir>: #include <rtems/seterr.h> int rmdir( const char *pathname ) {
 2003e04:	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 );              
 2003e08:	90 10 00 18 	mov  %i0, %o0                                  
 2003e0c:	7f ff fc 12 	call  2002e54 <rtems_filesystem_dirname>       
 2003e10:	ba 10 00 18 	mov  %i0, %i5                                  
                                                                      
  if ( parentpathlen == 0 )                                           
 2003e14:	80 a2 20 00 	cmp  %o0, 0                                    
 2003e18:	12 80 00 29 	bne  2003ebc <rmdir+0xb8>                      
 2003e1c:	b6 10 00 08 	mov  %o0, %i3                                  
    rtems_filesystem_get_start_loc( pathname, &i, &parentloc );       
 2003e20:	b8 07 bf d4 	add  %fp, -44, %i4                             
 2003e24:	90 10 00 18 	mov  %i0, %o0                                  
 2003e28:	92 07 bf fc 	add  %fp, -4, %o1                              
 2003e2c:	94 10 00 1c 	mov  %i4, %o2                                  
 2003e30:	40 00 00 56 	call  2003f88 <rtems_filesystem_get_start_loc> 
 2003e34:	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;           
 2003e38:	b4 10 20 00 	clr  %i2                                       
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  loc = parentloc;                                                    
 2003e3c:	c2 07 bf d4 	ld  [ %fp + -44 ], %g1                         
  name = pathname + parentpathlen;                                    
 2003e40:	ba 07 40 1b 	add  %i5, %i3, %i5                             
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  loc = parentloc;                                                    
 2003e44:	c2 27 bf e8 	st  %g1, [ %fp + -24 ]                         
 2003e48:	c2 07 bf d8 	ld  [ %fp + -40 ], %g1                         
  name = pathname + parentpathlen;                                    
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
 2003e4c:	90 10 00 1d 	mov  %i5, %o0                                  
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  loc = parentloc;                                                    
 2003e50:	c2 27 bf ec 	st  %g1, [ %fp + -20 ]                         
 2003e54:	c2 07 bf dc 	ld  [ %fp + -36 ], %g1                         
 2003e58:	c2 27 bf f0 	st  %g1, [ %fp + -16 ]                         
 2003e5c:	c2 07 bf e0 	ld  [ %fp + -32 ], %g1                         
 2003e60:	c2 27 bf f4 	st  %g1, [ %fp + -12 ]                         
 2003e64:	c2 07 bf e4 	ld  [ %fp + -28 ], %g1                         
  name = pathname + parentpathlen;                                    
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
 2003e68:	40 00 2e af 	call  200f924 <strlen>                         
 2003e6c:	c2 27 bf f8 	st  %g1, [ %fp + -8 ]                          
 2003e70:	92 10 00 08 	mov  %o0, %o1                                  
 2003e74:	7f ff fc 07 	call  2002e90 <rtems_filesystem_prefix_separators>
 2003e78:	90 10 00 1d 	mov  %i5, %o0                                  
 2003e7c:	ba 07 40 08 	add  %i5, %o0, %i5                             
                                                                      
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
 2003e80:	40 00 2e a9 	call  200f924 <strlen>                         
 2003e84:	90 10 00 1d 	mov  %i5, %o0                                  
 2003e88:	94 10 20 00 	clr  %o2                                       
 2003e8c:	92 10 00 08 	mov  %o0, %o1                                  
 2003e90:	96 07 bf e8 	add  %fp, -24, %o3                             
 2003e94:	90 10 00 1d 	mov  %i5, %o0                                  
 2003e98:	7f ff fb c3 	call  2002da4 <rtems_filesystem_evaluate_relative_path>
 2003e9c:	98 10 20 00 	clr  %o4                                       
                                                    0, &loc, false ); 
  if ( result != 0 ) {                                                
 2003ea0:	80 a2 20 00 	cmp  %o0, 0                                    
 2003ea4:	02 80 00 17 	be  2003f00 <rmdir+0xfc>                       
 2003ea8:	80 8e a0 ff 	btst  0xff, %i2                                
    if ( free_parentloc )                                             
 2003eac:	12 80 00 11 	bne  2003ef0 <rmdir+0xec>                      
 2003eb0:	b0 10 3f ff 	mov  -1, %i0                                   
  rtems_filesystem_freenode( &loc );                                  
  if ( free_parentloc )                                               
    rtems_filesystem_freenode( &parentloc );                          
                                                                      
  return result;                                                      
}                                                                     
 2003eb4:	81 c7 e0 08 	ret                                            
 2003eb8:	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,  
 2003ebc:	b8 07 bf d4 	add  %fp, -44, %i4                             
 2003ec0:	90 10 00 18 	mov  %i0, %o0                                  
 2003ec4:	92 10 00 1b 	mov  %i3, %o1                                  
 2003ec8:	94 10 20 02 	mov  2, %o2                                    
 2003ecc:	96 10 00 1c 	mov  %i4, %o3                                  
 2003ed0:	98 10 20 00 	clr  %o4                                       
 2003ed4:	7f ff fb d1 	call  2002e18 <rtems_filesystem_evaluate_path> 
 2003ed8:	b0 10 3f ff 	mov  -1, %i0                                   
                                            RTEMS_LIBIO_PERMS_WRITE,  
                                            &parentloc,               
                                            false );                  
    if ( result != 0 )                                                
 2003edc:	80 a2 20 00 	cmp  %o0, 0                                    
 2003ee0:	12 bf ff f5 	bne  2003eb4 <rmdir+0xb0>                      <== NEVER TAKEN
 2003ee4:	b4 10 20 01 	mov  1, %i2                                    
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  loc = parentloc;                                                    
 2003ee8:	10 bf ff d6 	b  2003e40 <rmdir+0x3c>                        
 2003eec:	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 );                        
 2003ef0:	7f ff fc 04 	call  2002f00 <rtems_filesystem_freenode>      
 2003ef4:	90 10 00 1c 	mov  %i4, %o0                                  
 2003ef8:	81 c7 e0 08 	ret                                            
 2003efc:	81 e8 00 00 	restore                                        
  }                                                                   
                                                                      
  /*                                                                  
   * Verify you can remove this node as a directory.                  
   */                                                                 
  if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
 2003f00:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         
 2003f04:	c2 00 60 10 	ld  [ %g1 + 0x10 ], %g1                        
 2003f08:	9f c0 40 00 	call  %g1                                      
 2003f0c:	90 07 bf e8 	add  %fp, -24, %o0                             
 2003f10:	80 a2 20 01 	cmp  %o0, 1                                    
 2003f14:	12 80 00 10 	bne  2003f54 <rmdir+0x150>                     
 2003f18:	c2 07 bf f0 	ld  [ %fp + -16 ], %g1                         
                                                                      
  /*                                                                  
   * Use the filesystems rmnod to remove the node.                    
   */                                                                 
                                                                      
  result =  (*loc.handlers->rmnod_h)( &parentloc, &loc );             
 2003f1c:	92 07 bf e8 	add  %fp, -24, %o1                             
 2003f20:	c2 00 60 34 	ld  [ %g1 + 0x34 ], %g1                        
 2003f24:	9f c0 40 00 	call  %g1                                      
 2003f28:	90 10 00 1c 	mov  %i4, %o0                                  
 2003f2c:	b0 10 00 08 	mov  %o0, %i0                                  
                                                                      
  rtems_filesystem_freenode( &loc );                                  
 2003f30:	7f ff fb f4 	call  2002f00 <rtems_filesystem_freenode>      
 2003f34:	90 07 bf e8 	add  %fp, -24, %o0                             
  if ( free_parentloc )                                               
 2003f38:	80 8e a0 ff 	btst  0xff, %i2                                
 2003f3c:	02 80 00 11 	be  2003f80 <rmdir+0x17c>                      
 2003f40:	01 00 00 00 	nop                                            
    rtems_filesystem_freenode( &parentloc );                          
 2003f44:	7f ff fb ef 	call  2002f00 <rtems_filesystem_freenode>      
 2003f48:	90 10 00 1c 	mov  %i4, %o0                                  
                                                                      
  return result;                                                      
}                                                                     
 2003f4c:	81 c7 e0 08 	ret                                            
 2003f50:	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 );                                
 2003f54:	7f ff fb eb 	call  2002f00 <rtems_filesystem_freenode>      
 2003f58:	90 07 bf e8 	add  %fp, -24, %o0                             
    if ( free_parentloc )                                             
 2003f5c:	80 8e a0 ff 	btst  0xff, %i2                                
 2003f60:	02 80 00 04 	be  2003f70 <rmdir+0x16c>                      <== NEVER TAKEN
 2003f64:	01 00 00 00 	nop                                            
      rtems_filesystem_freenode( &parentloc );                        
 2003f68:	7f ff fb e6 	call  2002f00 <rtems_filesystem_freenode>      
 2003f6c:	90 10 00 1c 	mov  %i4, %o0                                  
    rtems_set_errno_and_return_minus_one( ENOTDIR );                  
 2003f70:	40 00 2a f6 	call  200eb48 <__errno>                        
 2003f74:	b0 10 3f ff 	mov  -1, %i0                                   
 2003f78:	82 10 20 14 	mov  0x14, %g1                                 
 2003f7c:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2003f80:	81 c7 e0 08 	ret                                            
 2003f84:	81 e8 00 00 	restore                                        
                                                                      

0200dae4 <rtems_assoc_local_by_remote_bitfield>: uint32_t rtems_assoc_local_by_remote_bitfield( const rtems_assoc_t *ap, uint32_t remote_value ) {
 200dae4:	9d e3 bf a0 	save  %sp, -96, %sp                            
 200dae8:	b6 10 20 20 	mov  0x20, %i3                                 
 200daec:	ba 10 00 18 	mov  %i0, %i5                                  
  uint32_t   b;                                                       
  uint32_t   local_value = 0;                                         
                                                                      
  for (b = 1; b; b <<= 1) {                                           
 200daf0:	b8 10 20 01 	mov  1, %i4                                    
    const rtems_assoc_t *ap,                                          
    uint32_t       remote_value                                       
)                                                                     
{                                                                     
  uint32_t   b;                                                       
  uint32_t   local_value = 0;                                         
 200daf4:	10 80 00 04 	b  200db04 <rtems_assoc_local_by_remote_bitfield+0x20>
 200daf8:	b0 10 20 00 	clr  %i0                                       
                                                                      
  for (b = 1; b; b <<= 1) {                                           
 200dafc:	02 80 00 0c 	be  200db2c <rtems_assoc_local_by_remote_bitfield+0x48>
 200db00:	b9 2f 20 01 	sll  %i4, 1, %i4                               
    if (b & remote_value)                                             
 200db04:	80 8f 00 19 	btst  %i4, %i1                                 
 200db08:	22 bf ff fd 	be,a   200dafc <rtems_assoc_local_by_remote_bitfield+0x18>
 200db0c:	b6 86 ff ff 	addcc  %i3, -1, %i3                            
      local_value |= rtems_assoc_local_by_remote(ap, b);              
 200db10:	92 10 00 1c 	mov  %i4, %o1                                  
 200db14:	40 00 00 08 	call  200db34 <rtems_assoc_local_by_remote>    
 200db18:	90 10 00 1d 	mov  %i5, %o0                                  
)                                                                     
{                                                                     
  uint32_t   b;                                                       
  uint32_t   local_value = 0;                                         
                                                                      
  for (b = 1; b; b <<= 1) {                                           
 200db1c:	b9 2f 20 01 	sll  %i4, 1, %i4                               
 200db20:	b6 86 ff ff 	addcc  %i3, -1, %i3                            
 200db24:	12 bf ff f8 	bne  200db04 <rtems_assoc_local_by_remote_bitfield+0x20><== ALWAYS TAKEN
 200db28:	b0 16 00 08 	or  %i0, %o0, %i0                              
    if (b & remote_value)                                             
      local_value |= rtems_assoc_local_by_remote(ap, b);              
  }                                                                   
                                                                      
  return local_value;                                                 
}                                                                     
 200db2c:	81 c7 e0 08 	ret                                            
 200db30:	81 e8 00 00 	restore                                        
                                                                      

0200e168 <rtems_assoc_ptr_by_local>: const rtems_assoc_t *rtems_assoc_ptr_by_local( const rtems_assoc_t *ap, uint32_t local_value ) {
 200e168:	9d e3 bf a0 	save  %sp, -96, %sp                            
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
 200e16c:	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                                    
)                                                                     
{                                                                     
 200e170:	ba 10 00 18 	mov  %i0, %i5                                  
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
 200e174:	80 a2 20 00 	cmp  %o0, 0                                    
 200e178:	02 80 00 1b 	be  200e1e4 <rtems_assoc_ptr_by_local+0x7c>    
 200e17c:	b0 10 20 00 	clr  %i0                                       
 200e180:	13 00 80 51 	sethi  %hi(0x2014400), %o1                     
 200e184:	40 00 03 59 	call  200eee8 <strcmp>                         
 200e188:	92 12 61 10 	or  %o1, 0x110, %o1	! 2014510 <CSWTCH.1+0xc>   
 200e18c:	80 a2 20 00 	cmp  %o0, 0                                    
 200e190:	02 80 00 17 	be  200e1ec <rtems_assoc_ptr_by_local+0x84>    
 200e194:	82 10 20 00 	clr  %g1                                       
    default_ap = ap++;                                                
                                                                      
  for ( ; ap->name; ap++)                                             
    if (ap->local_value == local_value)                               
 200e198:	c4 07 60 04 	ld  [ %i5 + 4 ], %g2                           
 200e19c:	80 a0 80 19 	cmp  %g2, %i1                                  
 200e1a0:	02 80 00 11 	be  200e1e4 <rtems_assoc_ptr_by_local+0x7c>    
 200e1a4:	b0 10 00 1d 	mov  %i5, %i0                                  
 200e1a8:	86 07 60 0c 	add  %i5, 0xc, %g3                             
 200e1ac:	10 80 00 06 	b  200e1c4 <rtems_assoc_ptr_by_local+0x5c>     
 200e1b0:	84 20 00 1d 	neg  %i5, %g2                                  
 200e1b4:	c8 07 7f f8 	ld  [ %i5 + -8 ], %g4                          
 200e1b8:	80 a1 00 19 	cmp  %g4, %i1                                  
 200e1bc:	02 80 00 0a 	be  200e1e4 <rtems_assoc_ptr_by_local+0x7c>    
 200e1c0:	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(                        
 200e1c4:	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++)                                             
 200e1c8:	c8 00 c0 04 	ld  [ %g3 + %g4 ], %g4                         
 200e1cc:	b0 06 20 0c 	add  %i0, 0xc, %i0                             
 200e1d0:	80 a1 20 00 	cmp  %g4, 0                                    
    if (ap->local_value == local_value)                               
 200e1d4:	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++)                                             
 200e1d8:	12 bf ff f7 	bne  200e1b4 <rtems_assoc_ptr_by_local+0x4c>   
 200e1dc:	ba 00 c0 1d 	add  %g3, %i5, %i5                             
 200e1e0:	b0 10 00 01 	mov  %g1, %i0                                  
    if (ap->local_value == local_value)                               
      return ap;                                                      
                                                                      
  return default_ap;                                                  
}                                                                     
 200e1e4:	81 c7 e0 08 	ret                                            
 200e1e8:	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++)                                             
 200e1ec:	c2 07 60 0c 	ld  [ %i5 + 0xc ], %g1                         
 200e1f0:	80 a0 60 00 	cmp  %g1, 0                                    
 200e1f4:	02 bf ff fc 	be  200e1e4 <rtems_assoc_ptr_by_local+0x7c>    <== NEVER TAKEN
 200e1f8:	b0 10 00 1d 	mov  %i5, %i0                                  
)                                                                     
{                                                                     
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
    default_ap = ap++;                                                
 200e1fc:	82 10 00 1d 	mov  %i5, %g1                                  
 200e200:	10 bf ff e6 	b  200e198 <rtems_assoc_ptr_by_local+0x30>     
 200e204:	ba 07 60 0c 	add  %i5, 0xc, %i5                             
                                                                      

020034f8 <rtems_assoc_ptr_by_name>: const rtems_assoc_t *rtems_assoc_ptr_by_name( const rtems_assoc_t *ap, const char *name ) {
 20034f8:	9d e3 bf a0 	save  %sp, -96, %sp                            
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
 20034fc:	fa 06 00 00 	ld  [ %i0 ], %i5                               
 2003500:	80 a7 60 00 	cmp  %i5, 0                                    
 2003504:	02 80 00 21 	be  2003588 <rtems_assoc_ptr_by_name+0x90>     
 2003508:	b8 10 20 00 	clr  %i4                                       
 200350c:	90 10 00 1d 	mov  %i5, %o0                                  
 2003510:	13 00 80 54 	sethi  %hi(0x2015000), %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;                                
 2003514:	b6 10 20 00 	clr  %i3                                       
                                                                      
  if (rtems_assoc_is_default(ap))                                     
 2003518:	40 00 31 9e 	call  200fb90 <strcmp>                         
 200351c:	92 12 60 10 	or  %o1, 0x10, %o1                             
 2003520:	80 a2 20 00 	cmp  %o0, 0                                    
 2003524:	12 80 00 12 	bne  200356c <rtems_assoc_ptr_by_name+0x74>    
 2003528:	b8 10 00 18 	mov  %i0, %i4                                  
    default_ap = ap++;                                                
                                                                      
  for ( ; ap->name; ap++)                                             
 200352c:	fa 06 20 0c 	ld  [ %i0 + 0xc ], %i5                         
 2003530:	80 a7 60 00 	cmp  %i5, 0                                    
 2003534:	02 80 00 15 	be  2003588 <rtems_assoc_ptr_by_name+0x90>     <== NEVER TAKEN
 2003538:	b6 10 00 18 	mov  %i0, %i3                                  
    if (strcmp(ap->name, name) == 0)                                  
 200353c:	90 10 00 1d 	mov  %i5, %o0                                  
)                                                                     
{                                                                     
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
    default_ap = ap++;                                                
 2003540:	b0 06 20 0c 	add  %i0, 0xc, %i0                             
                                                                      
  for ( ; ap->name; ap++)                                             
    if (strcmp(ap->name, name) == 0)                                  
 2003544:	92 10 00 19 	mov  %i1, %o1                                  
 2003548:	40 00 31 92 	call  200fb90 <strcmp>                         
 200354c:	b8 10 00 18 	mov  %i0, %i4                                  
 2003550:	80 a2 20 00 	cmp  %o0, 0                                    
 2003554:	02 80 00 0d 	be  2003588 <rtems_assoc_ptr_by_name+0x90>     <== NEVER TAKEN
 2003558:	b0 06 20 0c 	add  %i0, 0xc, %i0                             
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
    default_ap = ap++;                                                
                                                                      
  for ( ; ap->name; ap++)                                             
 200355c:	fa 06 00 00 	ld  [ %i0 ], %i5                               
 2003560:	80 a7 60 00 	cmp  %i5, 0                                    
 2003564:	02 80 00 0b 	be  2003590 <rtems_assoc_ptr_by_name+0x98>     
 2003568:	b8 10 00 18 	mov  %i0, %i4                                  
    if (strcmp(ap->name, name) == 0)                                  
 200356c:	90 10 00 1d 	mov  %i5, %o0                                  
 2003570:	92 10 00 19 	mov  %i1, %o1                                  
 2003574:	40 00 31 87 	call  200fb90 <strcmp>                         
 2003578:	b0 06 20 0c 	add  %i0, 0xc, %i0                             
 200357c:	80 a2 20 00 	cmp  %o0, 0                                    
 2003580:	32 bf ff f8 	bne,a   2003560 <rtems_assoc_ptr_by_name+0x68> 
 2003584:	fa 06 00 00 	ld  [ %i0 ], %i5                               
	return ap;                                                           
                                                                      
  return default_ap;                                                  
}                                                                     
 2003588:	81 c7 e0 08 	ret                                            
 200358c:	91 e8 00 1c 	restore  %g0, %i4, %o0                         
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
    default_ap = ap++;                                                
                                                                      
  for ( ; ap->name; ap++)                                             
 2003590:	b8 10 00 1b 	mov  %i3, %i4                                  
    if (strcmp(ap->name, name) == 0)                                  
	return ap;                                                           
                                                                      
  return default_ap;                                                  
}                                                                     
 2003594:	81 c7 e0 08 	ret                                            
 2003598:	91 e8 00 1c 	restore  %g0, %i4, %o0                         
                                                                      

0200db5c <rtems_assoc_ptr_by_remote>: const rtems_assoc_t *rtems_assoc_ptr_by_remote( const rtems_assoc_t *ap, uint32_t remote_value ) {
 200db5c:	9d e3 bf a0 	save  %sp, -96, %sp                            
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
 200db60:	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                                         
)                                                                     
{                                                                     
 200db64:	ba 10 00 18 	mov  %i0, %i5                                  
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
 200db68:	80 a2 20 00 	cmp  %o0, 0                                    
 200db6c:	02 80 00 1b 	be  200dbd8 <rtems_assoc_ptr_by_remote+0x7c>   
 200db70:	b0 10 20 00 	clr  %i0                                       
 200db74:	13 00 80 51 	sethi  %hi(0x2014400), %o1                     
 200db78:	40 00 04 dc 	call  200eee8 <strcmp>                         
 200db7c:	92 12 61 10 	or  %o1, 0x110, %o1	! 2014510 <CSWTCH.1+0xc>   
 200db80:	80 a2 20 00 	cmp  %o0, 0                                    
 200db84:	02 80 00 17 	be  200dbe0 <rtems_assoc_ptr_by_remote+0x84>   
 200db88:	82 10 20 00 	clr  %g1                                       
    default_ap = ap++;                                                
                                                                      
  for ( ; ap->name; ap++)                                             
    if (ap->remote_value == remote_value)                             
 200db8c:	c4 07 60 08 	ld  [ %i5 + 8 ], %g2                           
 200db90:	80 a0 80 19 	cmp  %g2, %i1                                  
 200db94:	02 80 00 11 	be  200dbd8 <rtems_assoc_ptr_by_remote+0x7c>   
 200db98:	b0 10 00 1d 	mov  %i5, %i0                                  
 200db9c:	86 07 60 0c 	add  %i5, 0xc, %g3                             
 200dba0:	10 80 00 06 	b  200dbb8 <rtems_assoc_ptr_by_remote+0x5c>    
 200dba4:	84 20 00 1d 	neg  %i5, %g2                                  
 200dba8:	c8 07 7f fc 	ld  [ %i5 + -4 ], %g4                          
 200dbac:	80 a1 00 19 	cmp  %g4, %i1                                  
 200dbb0:	02 80 00 0a 	be  200dbd8 <rtems_assoc_ptr_by_remote+0x7c>   
 200dbb4:	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(                       
 200dbb8:	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++)                                             
 200dbbc:	c8 00 c0 04 	ld  [ %g3 + %g4 ], %g4                         
 200dbc0:	b0 06 20 0c 	add  %i0, 0xc, %i0                             
 200dbc4:	80 a1 20 00 	cmp  %g4, 0                                    
    if (ap->remote_value == remote_value)                             
 200dbc8:	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++)                                             
 200dbcc:	12 bf ff f7 	bne  200dba8 <rtems_assoc_ptr_by_remote+0x4c>  
 200dbd0:	ba 00 c0 1d 	add  %g3, %i5, %i5                             
 200dbd4:	b0 10 00 01 	mov  %g1, %i0                                  
    if (ap->remote_value == remote_value)                             
      return ap;                                                      
                                                                      
  return default_ap;                                                  
}                                                                     
 200dbd8:	81 c7 e0 08 	ret                                            
 200dbdc:	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++)                                             
 200dbe0:	c2 07 60 0c 	ld  [ %i5 + 0xc ], %g1                         
 200dbe4:	80 a0 60 00 	cmp  %g1, 0                                    
 200dbe8:	02 bf ff fc 	be  200dbd8 <rtems_assoc_ptr_by_remote+0x7c>   <== NEVER TAKEN
 200dbec:	b0 10 00 1d 	mov  %i5, %i0                                  
)                                                                     
{                                                                     
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
    default_ap = ap++;                                                
 200dbf0:	82 10 00 1d 	mov  %i5, %g1                                  
 200dbf4:	10 bf ff e6 	b  200db8c <rtems_assoc_ptr_by_remote+0x30>    
 200dbf8:	ba 07 60 0c 	add  %i5, 0xc, %i5                             
                                                                      

0200363c <rtems_assoc_remote_by_local_bitfield>: uint32_t rtems_assoc_remote_by_local_bitfield( const rtems_assoc_t *ap, uint32_t local_value ) {
 200363c:	9d e3 bf a0 	save  %sp, -96, %sp                            
 2003640:	b6 10 20 20 	mov  0x20, %i3                                 
 2003644:	ba 10 00 18 	mov  %i0, %i5                                  
  uint32_t   b;                                                       
  uint32_t   remote_value = 0;                                        
                                                                      
  for (b = 1; b; b <<= 1)                                             
 2003648:	b8 10 20 01 	mov  1, %i4                                    
    const rtems_assoc_t *ap,                                          
    uint32_t             local_value                                  
)                                                                     
{                                                                     
  uint32_t   b;                                                       
  uint32_t   remote_value = 0;                                        
 200364c:	10 80 00 04 	b  200365c <rtems_assoc_remote_by_local_bitfield+0x20>
 2003650:	b0 10 20 00 	clr  %i0                                       
                                                                      
  for (b = 1; b; b <<= 1)                                             
 2003654:	02 80 00 0c 	be  2003684 <rtems_assoc_remote_by_local_bitfield+0x48>
 2003658:	b9 2f 20 01 	sll  %i4, 1, %i4                               
    if (b & local_value)                                              
 200365c:	80 8f 00 19 	btst  %i4, %i1                                 
 2003660:	22 bf ff fd 	be,a   2003654 <rtems_assoc_remote_by_local_bitfield+0x18>
 2003664:	b6 86 ff ff 	addcc  %i3, -1, %i3                            
      remote_value |= rtems_assoc_remote_by_local(ap, b);             
 2003668:	92 10 00 1c 	mov  %i4, %o1                                  
 200366c:	40 00 00 08 	call  200368c <rtems_assoc_remote_by_local>    
 2003670:	90 10 00 1d 	mov  %i5, %o0                                  
)                                                                     
{                                                                     
  uint32_t   b;                                                       
  uint32_t   remote_value = 0;                                        
                                                                      
  for (b = 1; b; b <<= 1)                                             
 2003674:	b9 2f 20 01 	sll  %i4, 1, %i4                               
 2003678:	b6 86 ff ff 	addcc  %i3, -1, %i3                            
 200367c:	12 bf ff f8 	bne  200365c <rtems_assoc_remote_by_local_bitfield+0x20><== ALWAYS TAKEN
 2003680:	b0 16 00 08 	or  %i0, %o0, %i0                              
    if (b & local_value)                                              
      remote_value |= rtems_assoc_remote_by_local(ap, b);             
                                                                      
  return remote_value;                                                
}                                                                     
 2003684:	81 c7 e0 08 	ret                                            
 2003688:	81 e8 00 00 	restore                                        
                                                                      

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

02007144 <rtems_chain_get_with_wait>: rtems_chain_control *chain, rtems_event_set events, rtems_interval timeout, rtems_chain_node **node_ptr ) {
 2007144:	9d e3 bf 98 	save  %sp, -104, %sp                           
 2007148:	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 );                                     
 200714c:	40 00 01 7f 	call  2007748 <_Chain_Get>                     
 2007150:	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(                                         
 2007154:	92 10 20 00 	clr  %o1                                       
 2007158:	b8 10 00 08 	mov  %o0, %i4                                  
 200715c:	94 10 00 1a 	mov  %i2, %o2                                  
 2007160:	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                    
 2007164:	80 a7 20 00 	cmp  %i4, 0                                    
 2007168:	12 80 00 0a 	bne  2007190 <rtems_chain_get_with_wait+0x4c>  
 200716c:	96 07 bf fc 	add  %fp, -4, %o3                              
  ) {                                                                 
    rtems_event_set out;                                              
    sc = rtems_event_receive(                                         
 2007170:	7f ff fc f6 	call  2006548 <rtems_event_receive>            
 2007174:	01 00 00 00 	nop                                            
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_chain_node *node = NULL;                                      
                                                                      
  while (                                                             
 2007178:	80 a2 20 00 	cmp  %o0, 0                                    
 200717c:	02 bf ff f4 	be  200714c <rtems_chain_get_with_wait+0x8>    <== NEVER TAKEN
 2007180:	b0 10 00 08 	mov  %o0, %i0                                  
      timeout,                                                        
      &out                                                            
    );                                                                
  }                                                                   
                                                                      
  *node_ptr = node;                                                   
 2007184:	f8 26 c0 00 	st  %i4, [ %i3 ]                               
                                                                      
  return sc;                                                          
}                                                                     
 2007188:	81 c7 e0 08 	ret                                            
 200718c:	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                    
 2007190:	90 10 20 00 	clr  %o0                                       
      timeout,                                                        
      &out                                                            
    );                                                                
  }                                                                   
                                                                      
  *node_ptr = node;                                                   
 2007194:	f8 26 c0 00 	st  %i4, [ %i3 ]                               
                                                                      
  return sc;                                                          
}                                                                     
 2007198:	81 c7 e0 08 	ret                                            
 200719c:	91 e8 00 08 	restore  %g0, %o0, %o0                         
                                                                      

02003004 <rtems_cpu_usage_report_with_plugin>: void rtems_cpu_usage_report_with_plugin( void *context, rtems_printk_plugin_t print ) {
 2003004:	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 )                                                       
 2003008:	80 a6 60 00 	cmp  %i1, 0                                    
 200300c:	02 80 00 79 	be  20031f0 <rtems_cpu_usage_report_with_plugin+0x1ec><== NEVER TAKEN
 2003010:	03 00 80 7b 	sethi  %hi(0x201ec00), %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;            
 2003014:	c4 00 61 a0 	ld  [ %g1 + 0x1a0 ], %g2	! 201eda0 <CPU_usage_Uptime_at_last_reset>
 2003018:	86 10 61 a0 	or  %g1, 0x1a0, %g3                            
 200301c:	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 );                                 
 2003020:	c0 27 bf d0 	clr  [ %fp + -48 ]                             
 2003024:	c0 27 bf d4 	clr  [ %fp + -44 ]                             
    uptime_at_last_reset = CPU_usage_Uptime_at_last_reset;            
 2003028:	c4 27 bf e0 	st  %g2, [ %fp + -32 ]                         
 200302c:	c2 27 bf e4 	st  %g1, [ %fp + -28 ]                         
        }                                                             
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  (*print)(                                                           
 2003030:	90 10 00 18 	mov  %i0, %o0                                  
 2003034:	13 00 80 6f 	sethi  %hi(0x201bc00), %o1                     
 2003038:	21 00 80 7a 	sethi  %hi(0x201e800), %l0                     
 200303c:	92 12 62 a0 	or  %o1, 0x2a0, %o1                            
 2003040:	a0 14 22 4c 	or  %l0, 0x24c, %l0                            
        if ( !the_thread )                                            
          continue;                                                   
                                                                      
        rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
                                                                      
        (*print)(                                                     
 2003044:	35 00 80 70 	sethi  %hi(0x201c000), %i2                     
        }                                                             
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  (*print)(                                                           
 2003048:	9f c6 40 00 	call  %i1                                      
 200304c:	37 00 80 70 	sethi  %hi(0x201c000), %i3                     
/*PAGE                                                                
 *                                                                    
 *  rtems_cpu_usage_report                                            
 */                                                                   
                                                                      
void rtems_cpu_usage_report_with_plugin(                              
 2003050:	a2 04 20 0c 	add  %l0, 0xc, %l1                             
        if ( !the_thread )                                            
          continue;                                                   
                                                                      
        rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
                                                                      
        (*print)(                                                     
 2003054:	b4 16 a0 18 	or  %i2, 0x18, %i2                             
                                                                      
          /*                                                          
           * Print the information                                    
           */                                                         
                                                                      
          (*print)( context,                                          
 2003058:	b6 16 e0 30 	or  %i3, 0x30, %i3                             
     "------------+----------------------------------------+---------------+---------\n"
  );                                                                  
                                                                      
  for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
    #if !defined(RTEMS_POSIX_API) || defined(RTEMS_DEBUG)             
      if ( !_Objects_Information_table[ api_index ] )                 
 200305c:	c2 04 00 00 	ld  [ %l0 ], %g1                               
 2003060:	80 a0 60 00 	cmp  %g1, 0                                    
 2003064:	22 80 00 56 	be,a   20031bc <rtems_cpu_usage_report_with_plugin+0x1b8>
 2003068:	a0 04 20 04 	add  %l0, 4, %l0                               
        continue;                                                     
    #endif                                                            
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
 200306c:	f8 00 60 04 	ld  [ %g1 + 4 ], %i4                           
    if ( information ) {                                              
 2003070:	80 a7 20 00 	cmp  %i4, 0                                    
 2003074:	22 80 00 52 	be,a   20031bc <rtems_cpu_usage_report_with_plugin+0x1b8><== NEVER TAKEN
 2003078:	a0 04 20 04 	add  %l0, 4, %l0                               <== NOT EXECUTED
      for ( i=1 ; i <= information->maximum ; i++ ) {                 
 200307c:	c2 17 20 10 	lduh  [ %i4 + 0x10 ], %g1                      
 2003080:	86 90 60 00 	orcc  %g1, 0, %g3                              
 2003084:	02 80 00 4d 	be  20031b8 <rtems_cpu_usage_report_with_plugin+0x1b4><== NEVER TAKEN
 2003088:	ba 10 20 01 	mov  1, %i5                                    
        the_thread = (Thread_Control *)information->local_table[ i ]; 
 200308c:	10 80 00 1f 	b  2003108 <rtems_cpu_usage_report_with_plugin+0x104>
 2003090:	c4 07 20 1c 	ld  [ %i4 + 0x1c ], %g2                        
            Timestamp_Control last = _Thread_Time_of_last_context_switch;
            _TOD_Get_uptime( &uptime );                               
            _Timestamp_Subtract( &last, &uptime, &used );             
            _Timestamp_Add_to( &ran, &used );                         
          } else {                                                    
            _TOD_Get_uptime( &uptime );                               
 2003094:	40 00 17 4d 	call  2008dc8 <_TOD_Get_uptime>                
 2003098:	90 10 00 13 	mov  %l3, %o0                                  
          }                                                           
          _Timestamp_Subtract( &uptime_at_last_reset, &uptime, &total );
 200309c:	90 07 bf e0 	add  %fp, -32, %o0                             
 20030a0:	92 10 00 13 	mov  %l3, %o1                                  
 20030a4:	40 00 21 b9 	call  200b788 <_Timespec_Subtract>             
 20030a8:	94 07 bf d0 	add  %fp, -48, %o2                             
          _Timestamp_Divide( &ran, &total, &ival, &fval );            
 20030ac:	94 07 bf f8 	add  %fp, -8, %o2                              
 20030b0:	96 07 bf fc 	add  %fp, -4, %o3                              
 20030b4:	90 10 00 14 	mov  %l4, %o0                                  
 20030b8:	40 00 21 1b 	call  200b524 <_Timespec_Divide>               
 20030bc:	92 07 bf d0 	add  %fp, -48, %o1                             
                                                                      
          /*                                                          
           * Print the information                                    
           */                                                         
                                                                      
          (*print)( context,                                          
 20030c0:	d0 07 bf dc 	ld  [ %fp + -36 ], %o0                         
 20030c4:	40 00 59 6b 	call  2019670 <.udiv>                          
 20030c8:	92 10 23 e8 	mov  0x3e8, %o1                                
 20030cc:	e4 07 bf d8 	ld  [ %fp + -40 ], %l2                         
 20030d0:	d8 1f bf f8 	ldd  [ %fp + -8 ], %o4                         
 20030d4:	96 10 00 08 	mov  %o0, %o3                                  
 20030d8:	92 10 00 1b 	mov  %i3, %o1                                  
 20030dc:	90 10 00 18 	mov  %i0, %o0                                  
 20030e0:	9f c6 40 00 	call  %i1                                      
 20030e4:	94 10 00 12 	mov  %l2, %o2                                  
 20030e8:	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++ ) {                 
 20030ec:	ba 07 60 01 	inc  %i5                                       
 20030f0:	83 28 e0 10 	sll  %g3, 0x10, %g1                            
 20030f4:	83 30 60 10 	srl  %g1, 0x10, %g1                            
 20030f8:	80 a0 40 1d 	cmp  %g1, %i5                                  
 20030fc:	2a 80 00 30 	bcs,a   20031bc <rtems_cpu_usage_report_with_plugin+0x1b8>
 2003100:	a0 04 20 04 	add  %l0, 4, %l0                               
        the_thread = (Thread_Control *)information->local_table[ i ]; 
 2003104:	c4 07 20 1c 	ld  [ %i4 + 0x1c ], %g2                        
 2003108:	83 2f 60 02 	sll  %i5, 2, %g1                               
 200310c:	e4 00 80 01 	ld  [ %g2 + %g1 ], %l2                         
                                                                      
        if ( !the_thread )                                            
          continue;                                                   
                                                                      
        rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
 2003110:	94 07 bf b8 	add  %fp, -72, %o2                             
 2003114:	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 )                                            
 2003118:	80 a4 a0 00 	cmp  %l2, 0                                    
 200311c:	02 bf ff f4 	be  20030ec <rtems_cpu_usage_report_with_plugin+0xe8><== NEVER TAKEN
 2003120:	a6 07 bf c8 	add  %fp, -56, %l3                             
          continue;                                                   
                                                                      
        rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
 2003124:	d0 04 a0 08 	ld  [ %l2 + 8 ], %o0                           
 2003128:	40 00 12 11 	call  200796c <rtems_object_get_name>          
 200312c:	a8 07 bf d8 	add  %fp, -40, %l4                             
                                                                      
        (*print)(                                                     
 2003130:	d4 04 a0 08 	ld  [ %l2 + 8 ], %o2                           
 2003134:	90 10 00 18 	mov  %i0, %o0                                  
 2003138:	92 10 00 1a 	mov  %i2, %o1                                  
 200313c:	9f c6 40 00 	call  %i1                                      
 2003140:	96 07 bf b8 	add  %fp, -72, %o3                             
          /*                                                          
           * If this is the currently executing thread, account for time
           * since the last context switch.                           
           */                                                         
          ran = the_thread->cpu_time_used;                            
          if ( _Thread_Executing->Object.id == the_thread->Object.id ) {
 2003144:	03 00 80 7b 	sethi  %hi(0x201ec00), %g1                     
 2003148:	c2 00 61 58 	ld  [ %g1 + 0x158 ], %g1	! 201ed58 <_Per_CPU_Information+0xc>
        #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                    
          /*                                                          
           * If this is the currently executing thread, account for time
           * since the last context switch.                           
           */                                                         
          ran = the_thread->cpu_time_used;                            
 200314c:	c8 04 a0 84 	ld  [ %l2 + 0x84 ], %g4                        
 2003150:	c6 04 a0 88 	ld  [ %l2 + 0x88 ], %g3                        
          if ( _Thread_Executing->Object.id == the_thread->Object.id ) {
 2003154:	c4 00 60 08 	ld  [ %g1 + 8 ], %g2                           
 2003158:	c2 04 a0 08 	ld  [ %l2 + 8 ], %g1                           
        #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                    
          /*                                                          
           * If this is the currently executing thread, account for time
           * since the last context switch.                           
           */                                                         
          ran = the_thread->cpu_time_used;                            
 200315c:	c8 27 bf d8 	st  %g4, [ %fp + -40 ]                         
          if ( _Thread_Executing->Object.id == the_thread->Object.id ) {
 2003160:	80 a0 80 01 	cmp  %g2, %g1                                  
 2003164:	12 bf ff cc 	bne  2003094 <rtems_cpu_usage_report_with_plugin+0x90>
 2003168:	c6 27 bf dc 	st  %g3, [ %fp + -36 ]                         
            Timestamp_Control used;                                   
            Timestamp_Control last = _Thread_Time_of_last_context_switch;
 200316c:	03 00 80 7a 	sethi  %hi(0x201e800), %g1                     
 2003170:	c4 00 63 90 	ld  [ %g1 + 0x390 ], %g2	! 201eb90 <_Thread_Time_of_last_context_switch>
 2003174:	86 10 63 90 	or  %g1, 0x390, %g3                            
 2003178:	c2 00 e0 04 	ld  [ %g3 + 4 ], %g1                           
            _TOD_Get_uptime( &uptime );                               
 200317c:	a6 07 bf c8 	add  %fp, -56, %l3                             
           * since the last context switch.                           
           */                                                         
          ran = the_thread->cpu_time_used;                            
          if ( _Thread_Executing->Object.id == the_thread->Object.id ) {
            Timestamp_Control used;                                   
            Timestamp_Control last = _Thread_Time_of_last_context_switch;
 2003180:	c4 27 bf f0 	st  %g2, [ %fp + -16 ]                         
            _TOD_Get_uptime( &uptime );                               
 2003184:	90 10 00 13 	mov  %l3, %o0                                  
 2003188:	40 00 17 10 	call  2008dc8 <_TOD_Get_uptime>                
 200318c:	c2 27 bf f4 	st  %g1, [ %fp + -12 ]                         
            _Timestamp_Subtract( &last, &uptime, &used );             
 2003190:	90 07 bf f0 	add  %fp, -16, %o0                             
 2003194:	92 10 00 13 	mov  %l3, %o1                                  
 2003198:	40 00 21 7c 	call  200b788 <_Timespec_Subtract>             
 200319c:	94 07 bf e8 	add  %fp, -24, %o2                             
            _Timestamp_Add_to( &ran, &used );                         
 20031a0:	a8 07 bf d8 	add  %fp, -40, %l4                             
 20031a4:	92 07 bf e8 	add  %fp, -24, %o1                             
 20031a8:	40 00 20 c6 	call  200b4c0 <_Timespec_Add_to>               
 20031ac:	90 10 00 14 	mov  %l4, %o0                                  
          } else {                                                    
            _TOD_Get_uptime( &uptime );                               
          }                                                           
          _Timestamp_Subtract( &uptime_at_last_reset, &uptime, &total );
 20031b0:	10 bf ff bc 	b  20030a0 <rtems_cpu_usage_report_with_plugin+0x9c>
 20031b4:	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++ ) {                 
 20031b8:	a0 04 20 04 	add  %l0, 4, %l0                               <== NOT EXECUTED
       " ID         | NAME                                   | TICKS         | PERCENT\n"
     #endif                                                           
     "------------+----------------------------------------+---------------+---------\n"
  );                                                                  
                                                                      
  for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
 20031bc:	80 a4 00 11 	cmp  %l0, %l1                                  
 20031c0:	32 bf ff a8 	bne,a   2003060 <rtems_cpu_usage_report_with_plugin+0x5c>
 20031c4:	c2 04 00 00 	ld  [ %l0 ], %g1                               
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    (*print)(                                                         
 20031c8:	d0 07 bf d4 	ld  [ %fp + -44 ], %o0                         
 20031cc:	fa 07 bf d0 	ld  [ %fp + -48 ], %i5                         
 20031d0:	40 00 59 28 	call  2019670 <.udiv>                          
 20031d4:	92 10 23 e8 	mov  0x3e8, %o1                                
 20031d8:	13 00 80 70 	sethi  %hi(0x201c000), %o1                     
 20031dc:	96 10 00 08 	mov  %o0, %o3                                  
 20031e0:	94 10 00 1d 	mov  %i5, %o2                                  
 20031e4:	90 10 00 18 	mov  %i0, %o0                                  
 20031e8:	9f c6 40 00 	call  %i1                                      
 20031ec:	92 12 60 48 	or  %o1, 0x48, %o1                             
 20031f0:	81 c7 e0 08 	ret                                            
 20031f4:	81 e8 00 00 	restore                                        
                                                                      

0200e120 <rtems_deviceio_errno>: [RTEMS_IO_ERROR] = EIO, [RTEMS_PROXY_BLOCKING] = EIO }; int rtems_deviceio_errno(rtems_status_code sc) {
 200e120:	9d e3 bf a0 	save  %sp, -96, %sp                            
  if (sc == RTEMS_SUCCESSFUL) {                                       
 200e124:	80 a6 20 00 	cmp  %i0, 0                                    
 200e128:	12 80 00 04 	bne  200e138 <rtems_deviceio_errno+0x18>       
 200e12c:	82 10 20 00 	clr  %g1                                       
                                                                      
    errno = eno;                                                      
                                                                      
    return -1;                                                        
  }                                                                   
}                                                                     
 200e130:	81 c7 e0 08 	ret                                            
 200e134:	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) {                   
 200e138:	80 a6 20 1c 	cmp  %i0, 0x1c                                 
 200e13c:	18 80 00 06 	bgu  200e154 <rtems_deviceio_errno+0x34>       <== NEVER TAKEN
 200e140:	ba 10 20 16 	mov  0x16, %i5                                 
      eno = status_code_to_errno [sc];                                
 200e144:	b1 2e 20 02 	sll  %i0, 2, %i0                               
 200e148:	03 00 80 51 	sethi  %hi(0x2014400), %g1                     
 200e14c:	82 10 61 c0 	or  %g1, 0x1c0, %g1	! 20145c0 <status_code_to_errno>
 200e150:	fa 00 40 18 	ld  [ %g1 + %i0 ], %i5                         
    }                                                                 
                                                                      
    errno = eno;                                                      
 200e154:	40 00 00 34 	call  200e224 <__errno>                        
 200e158:	01 00 00 00 	nop                                            
                                                                      
    return -1;                                                        
 200e15c:	82 10 3f ff 	mov  -1, %g1	! ffffffff <RAM_END+0xfdbfffff>   
 200e160:	10 bf ff f4 	b  200e130 <rtems_deviceio_errno+0x10>         
 200e164:	fa 22 00 00 	st  %i5, [ %o0 ]                               
                                                                      

0200b7ac <rtems_filesystem_get_mount_handler>: rtems_filesystem_fsmount_me_t rtems_filesystem_get_mount_handler( const char *type ) {
 200b7ac:	9d e3 bf 98 	save  %sp, -104, %sp                           
  find_arg fa = {                                                     
 200b7b0:	f0 27 bf f8 	st  %i0, [ %fp + -8 ]                          
 200b7b4:	c0 27 bf fc 	clr  [ %fp + -4 ]                              
                                                                      
rtems_filesystem_fsmount_me_t                                         
rtems_filesystem_get_mount_handler(                                   
  const char *type                                                    
)                                                                     
{                                                                     
 200b7b8:	82 10 00 18 	mov  %i0, %g1                                  
  find_arg fa = {                                                     
    .type = type,                                                     
    .mount_h = NULL                                                   
  };                                                                  
                                                                      
  if ( type != NULL ) {                                               
 200b7bc:	80 a0 60 00 	cmp  %g1, 0                                    
 200b7c0:	02 80 00 07 	be  200b7dc <rtems_filesystem_get_mount_handler+0x30><== NEVER TAKEN
 200b7c4:	b0 10 20 00 	clr  %i0                                       
    rtems_filesystem_iterate( find_handler, &fa );                    
 200b7c8:	92 07 bf f8 	add  %fp, -8, %o1                              
 200b7cc:	11 00 80 2d 	sethi  %hi(0x200b400), %o0                     
 200b7d0:	7f ff ff c2 	call  200b6d8 <rtems_filesystem_iterate>       
 200b7d4:	90 12 22 a4 	or  %o0, 0x2a4, %o0	! 200b6a4 <find_handler>   
 200b7d8:	f0 07 bf fc 	ld  [ %fp + -4 ], %i0                          
  }                                                                   
                                                                      
  return fa.mount_h;                                                  
}                                                                     
 200b7dc:	81 c7 e0 08 	ret                                            
 200b7e0:	81 e8 00 00 	restore                                        
                                                                      

02002720 <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 ) {
 2002720:	9d e3 bf 88 	save  %sp, -120, %sp                           
                                                                      
  /*                                                                  
   *  Set the default umask to "022".                                 
   */                                                                 
                                                                      
  rtems_filesystem_umask = 022;                                       
 2002724:	3b 00 80 53 	sethi  %hi(0x2014c00), %i5                     
 2002728:	c2 07 60 80 	ld  [ %i5 + 0x80 ], %g1	! 2014c80 <rtems_current_user_env>
 200272c:	84 10 20 12 	mov  0x12, %g2                                 
 2002730:	c4 20 60 2c 	st  %g2, [ %g1 + 0x2c ]                        
                                                                      
  /*                                                                  
   *  mount the first filesystem.                                     
   */                                                                 
  if ( rtems_filesystem_mount_table_size == 0 )                       
 2002734:	03 00 80 4f 	sethi  %hi(0x2013c00), %g1                     
 2002738:	c2 00 60 58 	ld  [ %g1 + 0x58 ], %g1	! 2013c58 <rtems_filesystem_mount_table_size>
 200273c:	80 a0 60 00 	cmp  %g1, 0                                    
 2002740:	02 80 00 39 	be  2002824 <rtems_filesystem_initialize+0x104><== NEVER TAKEN
 2002744:	03 00 80 52 	sethi  %hi(0x2014800), %g1                     
    rtems_fatal_error_occurred( 0xABCD0001 );                         
                                                                      
  mt = &rtems_filesystem_mount_table[0];                              
 2002748:	c2 00 63 94 	ld  [ %g1 + 0x394 ], %g1	! 2014b94 <rtems_filesystem_mount_table>
                                                                      
  status = mount( mt->device, mt->mount_point, mt->type, mt->fsoptions, NULL );
 200274c:	98 10 20 00 	clr  %o4                                       
 2002750:	d0 00 60 08 	ld  [ %g1 + 8 ], %o0                           
 2002754:	d2 00 60 0c 	ld  [ %g1 + 0xc ], %o1                         
 2002758:	d4 00 40 00 	ld  [ %g1 ], %o2                               
 200275c:	40 00 02 3a 	call  2003044 <mount>                          
 2002760:	d6 00 60 04 	ld  [ %g1 + 4 ], %o3                           
  if ( status == -1 )                                                 
 2002764:	80 a2 3f ff 	cmp  %o0, -1                                   
 2002768:	02 80 00 34 	be  2002838 <rtems_filesystem_initialize+0x118><== NEVER TAKEN
 200276c:	c2 07 60 80 	ld  [ %i5 + 0x80 ], %g1                        
   *       gonna hit performance.                                     
   *                                                                  
   *       Till Straumann, 10/25/2002                                 
   */                                                                 
  /* Clone the root pathloc */                                        
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
 2002770:	39 00 80 50 	sethi  %hi(0x2014000), %i4                     
 2002774:	92 10 20 01 	mov  1, %o1                                    
 2002778:	94 10 20 00 	clr  %o2                                       
 200277c:	96 07 bf ec 	add  %fp, -20, %o3                             
 2002780:	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;                                   
 2002784:	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);                 
 2002788:	40 00 00 62 	call  2002910 <rtems_filesystem_evaluate_path> 
 200278c:	90 17 20 a0 	or  %i4, 0xa0, %o0                             
  rtems_filesystem_root        = loc;                                 
 2002790:	c2 07 60 80 	ld  [ %i5 + 0x80 ], %g1                        
 2002794:	c4 07 bf ec 	ld  [ %fp + -20 ], %g2                         
  /* One more clone for the current node */                           
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
 2002798:	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;                                 
 200279c:	c4 20 60 18 	st  %g2, [ %g1 + 0x18 ]                        
 20027a0:	c4 07 bf f0 	ld  [ %fp + -16 ], %g2                         
  /* One more clone for the current node */                           
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
 20027a4:	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;                                 
 20027a8:	c4 20 60 1c 	st  %g2, [ %g1 + 0x1c ]                        
 20027ac:	c4 07 bf f4 	ld  [ %fp + -12 ], %g2                         
  /* One more clone for the current node */                           
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
 20027b0:	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;                                 
 20027b4:	c4 20 60 20 	st  %g2, [ %g1 + 0x20 ]                        
 20027b8:	c4 07 bf f8 	ld  [ %fp + -8 ], %g2                          
  /* One more clone for the current node */                           
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
 20027bc:	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;                                 
 20027c0:	c4 20 60 24 	st  %g2, [ %g1 + 0x24 ]                        
 20027c4:	c4 07 bf fc 	ld  [ %fp + -4 ], %g2                          
  /* One more clone for the current node */                           
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
 20027c8:	90 17 20 a0 	or  %i4, 0xa0, %o0                             
 20027cc:	40 00 00 51 	call  2002910 <rtems_filesystem_evaluate_path> 
 20027d0:	c4 20 60 28 	st  %g2, [ %g1 + 0x28 ]                        
  rtems_filesystem_current     = loc;                                 
 20027d4:	c2 07 60 80 	ld  [ %i5 + 0x80 ], %g1                        
 20027d8:	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);                                      
 20027dc:	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;                                 
 20027e0:	c4 20 60 04 	st  %g2, [ %g1 + 4 ]                           
 20027e4:	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);                                      
 20027e8:	11 00 80 50 	sethi  %hi(0x2014000), %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;                                 
 20027ec:	c4 20 60 08 	st  %g2, [ %g1 + 8 ]                           
 20027f0:	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);                                      
 20027f4:	90 12 20 a8 	or  %o0, 0xa8, %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;                                 
 20027f8:	c4 20 60 0c 	st  %g2, [ %g1 + 0xc ]                         
 20027fc:	c4 07 bf f8 	ld  [ %fp + -8 ], %g2                          
 2002800:	c4 20 60 10 	st  %g2, [ %g1 + 0x10 ]                        
 2002804:	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);                                      
 2002808:	40 00 01 af 	call  2002ec4 <mkdir>                          
 200280c:	c4 20 60 14 	st  %g2, [ %g1 + 0x14 ]                        
  if ( status != 0 )                                                  
 2002810:	80 a2 20 00 	cmp  %o0, 0                                    
 2002814:	12 80 00 07 	bne  2002830 <rtems_filesystem_initialize+0x110><== NEVER TAKEN
 2002818:	11 2a f3 40 	sethi  %hi(0xabcd0000), %o0                    
 200281c:	81 c7 e0 08 	ret                                            
 2002820:	81 e8 00 00 	restore                                        
                                                                      
  /*                                                                  
   *  mount the first filesystem.                                     
   */                                                                 
  if ( rtems_filesystem_mount_table_size == 0 )                       
    rtems_fatal_error_occurred( 0xABCD0001 );                         
 2002824:	11 2a f3 40 	sethi  %hi(0xabcd0000), %o0                    <== NOT EXECUTED
 2002828:	40 00 10 96 	call  2006a80 <rtems_fatal_error_occurred>     <== NOT EXECUTED
 200282c:	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 );                         
 2002830:	40 00 10 94 	call  2006a80 <rtems_fatal_error_occurred>     <== NOT EXECUTED
 2002834:	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 );                         
 2002838:	11 2a f3 40 	sethi  %hi(0xabcd0000), %o0                    <== NOT EXECUTED
 200283c:	40 00 10 91 	call  2006a80 <rtems_fatal_error_occurred>     <== NOT EXECUTED
 2002840:	90 12 20 02 	or  %o0, 2, %o0	! abcd0002 <RAM_END+0xa98d0002><== NOT EXECUTED
                                                                      

0200b6d8 <rtems_filesystem_iterate>: bool rtems_filesystem_iterate( rtems_per_filesystem_routine routine, void *routine_arg ) {
 200b6d8:	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 ) {                              
 200b6dc:	37 00 80 4f 	sethi  %hi(0x2013c00), %i3                     
 200b6e0:	c2 06 e0 6c 	ld  [ %i3 + 0x6c ], %g1	! 2013c6c <rtems_filesystem_table>
                                                                      
bool rtems_filesystem_iterate(                                        
  rtems_per_filesystem_routine routine,                               
  void *routine_arg                                                   
)                                                                     
{                                                                     
 200b6e4:	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 ) {                              
 200b6e8:	80 a0 60 00 	cmp  %g1, 0                                    
 200b6ec:	02 80 00 13 	be  200b738 <rtems_filesystem_iterate+0x60>    <== NEVER TAKEN
 200b6f0:	b6 16 e0 6c 	or  %i3, 0x6c, %i3                             
 200b6f4:	b8 10 00 1b 	mov  %i3, %i4                                  
 200b6f8:	10 80 00 05 	b  200b70c <rtems_filesystem_iterate+0x34>     
 200b6fc:	b4 06 e0 08 	add  %i3, 8, %i2                               
 200b700:	b0 8a 20 ff 	andcc  %o0, 0xff, %i0                          
 200b704:	12 80 00 28 	bne  200b7a4 <rtems_filesystem_iterate+0xcc>   
 200b708:	01 00 00 00 	nop                                            
    stop = (*routine)( table_entry, routine_arg );                    
 200b70c:	90 10 00 1c 	mov  %i4, %o0                                  
 200b710:	9f c7 40 00 	call  %i5                                      
 200b714:	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(                                        
 200b718:	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 ) {                              
 200b71c:	c2 06 80 01 	ld  [ %i2 + %g1 ], %g1                         
 200b720:	80 a0 60 00 	cmp  %g1, 0                                    
 200b724:	12 bf ff f7 	bne  200b700 <rtems_filesystem_iterate+0x28>   
 200b728:	b8 07 20 08 	add  %i4, 8, %i4                               
    stop = (*routine)( table_entry, routine_arg );                    
    ++table_entry;                                                    
  }                                                                   
                                                                      
  if ( !stop ) {                                                      
 200b72c:	b0 8a 20 ff 	andcc  %o0, 0xff, %i0                          
 200b730:	12 80 00 1d 	bne  200b7a4 <rtems_filesystem_iterate+0xcc>   
 200b734:	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 );
 200b738:	39 00 80 55 	sethi  %hi(0x2015400), %i4                     
 200b73c:	d0 07 21 6c 	ld  [ %i4 + 0x16c ], %o0	! 201556c <rtems_libio_semaphore>
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
 200b740:	35 00 80 53 	sethi  %hi(0x2014c00), %i2                     
 200b744:	92 10 20 00 	clr  %o1                                       
 200b748:	7f ff eb 24 	call  20063d8 <rtems_semaphore_obtain>         
 200b74c:	94 10 20 00 	clr  %o2                                       
 200b750:	f6 06 a0 88 	ld  [ %i2 + 0x88 ], %i3                        
 200b754:	b4 16 a0 88 	or  %i2, 0x88, %i2                             
    rtems_libio_lock();                                               
    for (                                                             
 200b758:	b4 06 a0 04 	add  %i2, 4, %i2                               
 200b75c:	80 a6 c0 1a 	cmp  %i3, %i2                                  
 200b760:	12 80 00 05 	bne  200b774 <rtems_filesystem_iterate+0x9c>   
 200b764:	b0 10 20 00 	clr  %i0                                       
 200b768:	30 80 00 0b 	b,a   200b794 <rtems_filesystem_iterate+0xbc>  
      node = rtems_chain_first( &filesystem_chain );                  
      !rtems_chain_is_tail( &filesystem_chain, node ) && !stop;       
 200b76c:	12 80 00 0a 	bne  200b794 <rtems_filesystem_iterate+0xbc>   <== NEVER TAKEN
 200b770:	01 00 00 00 	nop                                            
      node = rtems_chain_next( node )                                 
    ) {                                                               
      const filesystem_node *fsn = (filesystem_node *) node;          
                                                                      
      stop = (*routine)( &fsn->entry, routine_arg );                  
 200b774:	90 06 e0 08 	add  %i3, 8, %o0                               
 200b778:	9f c7 40 00 	call  %i5                                      
 200b77c:	92 10 00 19 	mov  %i1, %o1                                  
    }                                                                 
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  rtems_set_errno_and_return_minus_one( ENOENT );                     
}                                                                     
 200b780:	f6 06 c0 00 	ld  [ %i3 ], %i3                               
    ++table_entry;                                                    
  }                                                                   
                                                                      
  if ( !stop ) {                                                      
    rtems_libio_lock();                                               
    for (                                                             
 200b784:	80 a6 c0 1a 	cmp  %i3, %i2                                  
 200b788:	32 bf ff f9 	bne,a   200b76c <rtems_filesystem_iterate+0x94>
 200b78c:	b0 8a 20 ff 	andcc  %o0, 0xff, %i0                          
 200b790:	b0 0a 20 ff 	and  %o0, 0xff, %i0                            
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
 200b794:	7f ff eb 5a 	call  20064fc <rtems_semaphore_release>        
 200b798:	d0 07 21 6c 	ld  [ %i4 + 0x16c ], %o0                       
    }                                                                 
    rtems_libio_unlock();                                             
  }                                                                   
                                                                      
  return stop;                                                        
}                                                                     
 200b79c:	81 c7 e0 08 	ret                                            
 200b7a0:	81 e8 00 00 	restore                                        
 200b7a4:	81 c7 e0 08 	ret                                            
 200b7a8:	81 e8 00 00 	restore                                        
                                                                      

02002fd0 <rtems_filesystem_mount_iterate>: bool rtems_filesystem_mount_iterate( rtems_per_filesystem_mount_routine routine, void *routine_arg ) {
 2002fd0:	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 );
 2002fd4:	3b 00 80 55 	sethi  %hi(0x2015400), %i5                     
 2002fd8:	d0 07 61 6c 	ld  [ %i5 + 0x16c ], %o0	! 201556c <rtems_libio_semaphore>
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
 2002fdc:	37 00 80 53 	sethi  %hi(0x2014c00), %i3                     
 2002fe0:	92 10 20 00 	clr  %o1                                       
 2002fe4:	40 00 0c fd 	call  20063d8 <rtems_semaphore_obtain>         
 2002fe8:	94 10 20 00 	clr  %o2                                       
 2002fec:	f8 06 e0 60 	ld  [ %i3 + 0x60 ], %i4                        
 2002ff0:	b4 10 00 18 	mov  %i0, %i2                                  
 2002ff4:	b6 16 e0 60 	or  %i3, 0x60, %i3                             
  rtems_chain_node *node = NULL;                                      
  bool stop = false;                                                  
                                                                      
  rtems_libio_lock();                                                 
  for (                                                               
 2002ff8:	b6 06 e0 04 	add  %i3, 4, %i3                               
 2002ffc:	80 a7 00 1b 	cmp  %i4, %i3                                  
 2003000:	12 80 00 05 	bne  2003014 <rtems_filesystem_mount_iterate+0x44><== ALWAYS TAKEN
 2003004:	b0 10 20 00 	clr  %i0                                       
 2003008:	30 80 00 0b 	b,a   2003034 <rtems_filesystem_mount_iterate+0x64><== NOT EXECUTED
    node = rtems_chain_first( &mount_chain );                         
    !rtems_chain_is_tail( &mount_chain, node ) && !stop;              
 200300c:	12 80 00 0a 	bne  2003034 <rtems_filesystem_mount_iterate+0x64><== NEVER TAKEN
 2003010:	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 );                       
 2003014:	90 10 00 1c 	mov  %i4, %o0                                  
 2003018:	9f c6 80 00 	call  %i2                                      
 200301c:	92 10 00 19 	mov  %i1, %o1                                  
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  return stop;                                                        
}                                                                     
 2003020:	f8 07 00 00 	ld  [ %i4 ], %i4                               
{                                                                     
  rtems_chain_node *node = NULL;                                      
  bool stop = false;                                                  
                                                                      
  rtems_libio_lock();                                                 
  for (                                                               
 2003024:	80 a7 00 1b 	cmp  %i4, %i3                                  
 2003028:	32 bf ff f9 	bne,a   200300c <rtems_filesystem_mount_iterate+0x3c>
 200302c:	b0 8a 20 ff 	andcc  %o0, 0xff, %i0                          
 2003030:	b0 0a 20 ff 	and  %o0, 0xff, %i0                            
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
 2003034:	40 00 0d 32 	call  20064fc <rtems_semaphore_release>        
 2003038:	d0 07 61 6c 	ld  [ %i5 + 0x16c ], %o0                       
    stop = (*routine)( mt_entry, routine_arg );                       
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  return stop;                                                        
}                                                                     
 200303c:	81 c7 e0 08 	ret                                            
 2003040:	81 e8 00 00 	restore                                        
                                                                      

02002988 <rtems_filesystem_prefix_separators>: int rtems_filesystem_prefix_separators( const char *pathname, int pathnamelen ) {
 2002988:	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 ) )
 200298c:	80 a6 60 00 	cmp  %i1, 0                                    
 2002990:	02 80 00 17 	be  20029ec <rtems_filesystem_prefix_separators+0x64><== NEVER TAKEN
 2002994:	d0 0e 00 00 	ldub  [ %i0 ], %o0                             
 2002998:	91 2a 20 18 	sll  %o0, 0x18, %o0                            
 200299c:	ba 10 00 18 	mov  %i0, %i5                                  
 20029a0:	80 a2 20 00 	cmp  %o0, 0                                    
 20029a4:	12 80 00 0b 	bne  20029d0 <rtems_filesystem_prefix_separators+0x48><== ALWAYS TAKEN
 20029a8:	b0 10 20 00 	clr  %i0                                       
 20029ac:	30 80 00 11 	b,a   20029f0 <rtems_filesystem_prefix_separators+0x68><== NOT EXECUTED
  {                                                                   
    pathname++;                                                       
    pathnamelen--;                                                    
    stripped++;                                                       
 20029b0:	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 ) )
 20029b4:	80 a6 40 18 	cmp  %i1, %i0                                  
 20029b8:	02 80 00 0b 	be  20029e4 <rtems_filesystem_prefix_separators+0x5c><== NEVER TAKEN
 20029bc:	ba 07 60 01 	inc  %i5                                       
 20029c0:	91 2a 20 18 	sll  %o0, 0x18, %o0                            
 20029c4:	80 a2 20 00 	cmp  %o0, 0                                    
 20029c8:	02 80 00 0a 	be  20029f0 <rtems_filesystem_prefix_separators+0x68><== NEVER TAKEN
 20029cc:	01 00 00 00 	nop                                            
 20029d0:	40 00 03 ed 	call  2003984 <rtems_filesystem_is_separator>  
 20029d4:	91 3a 20 18 	sra  %o0, 0x18, %o0                            
 20029d8:	80 a2 20 00 	cmp  %o0, 0                                    
 20029dc:	32 bf ff f5 	bne,a   20029b0 <rtems_filesystem_prefix_separators+0x28>
 20029e0:	d0 0f 60 01 	ldub  [ %i5 + 1 ], %o0                         
 20029e4:	81 c7 e0 08 	ret                                            
 20029e8:	81 e8 00 00 	restore                                        
)                                                                     
{                                                                     
  /*                                                                  
   * Eat any separators at start of the path.                         
   */                                                                 
  int stripped = 0;                                                   
 20029ec:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
    pathname++;                                                       
    pathnamelen--;                                                    
    stripped++;                                                       
  }                                                                   
  return stripped;                                                    
}                                                                     
 20029f0:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 20029f4:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

0200b8ac <rtems_filesystem_unregister>: int rtems_filesystem_unregister( const char *type ) {
 200b8ac:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_chain_node *node = NULL;                                      
                                                                      
  if ( type == NULL ) {                                               
 200b8b0:	80 a6 20 00 	cmp  %i0, 0                                    
 200b8b4:	02 80 00 29 	be  200b958 <rtems_filesystem_unregister+0xac> 
 200b8b8:	3b 00 80 55 	sethi  %hi(0x2015400), %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 );
 200b8bc:	d0 07 61 6c 	ld  [ %i5 + 0x16c ], %o0	! 201556c <rtems_libio_semaphore>
 200b8c0:	37 00 80 53 	sethi  %hi(0x2014c00), %i3                     
 200b8c4:	92 10 20 00 	clr  %o1                                       
 200b8c8:	7f ff ea c4 	call  20063d8 <rtems_semaphore_obtain>         
 200b8cc:	94 10 20 00 	clr  %o2                                       
 200b8d0:	f8 06 e0 88 	ld  [ %i3 + 0x88 ], %i4                        
 200b8d4:	b6 16 e0 88 	or  %i3, 0x88, %i3                             
    rtems_set_errno_and_return_minus_one( EINVAL );                   
  }                                                                   
                                                                      
  rtems_libio_lock();                                                 
  for (                                                               
 200b8d8:	b6 06 e0 04 	add  %i3, 4, %i3                               
 200b8dc:	80 a7 00 1b 	cmp  %i4, %i3                                  
 200b8e0:	32 80 00 08 	bne,a   200b900 <rtems_filesystem_unregister+0x54>
 200b8e4:	d0 07 20 08 	ld  [ %i4 + 8 ], %o0                           
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
 200b8e8:	10 80 00 14 	b  200b938 <rtems_filesystem_unregister+0x8c>  
 200b8ec:	d0 07 61 6c 	ld  [ %i5 + 0x16c ], %o0                       
 200b8f0:	80 a7 00 1b 	cmp  %i4, %i3                                  
 200b8f4:	02 80 00 11 	be  200b938 <rtems_filesystem_unregister+0x8c> <== ALWAYS TAKEN
 200b8f8:	d0 07 61 6c 	ld  [ %i5 + 0x16c ], %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 ) {                     
 200b8fc:	d0 07 20 08 	ld  [ %i4 + 8 ], %o0                           <== NOT EXECUTED
 200b900:	40 00 0d 7a 	call  200eee8 <strcmp>                         
 200b904:	92 10 00 18 	mov  %i0, %o1                                  
 200b908:	80 a2 20 00 	cmp  %o0, 0                                    
 200b90c:	32 bf ff f9 	bne,a   200b8f0 <rtems_filesystem_unregister+0x44>
 200b910:	f8 07 00 00 	ld  [ %i4 ], %i4                               
 */                                                                   
RTEMS_INLINE_ROUTINE void rtems_chain_extract(                        
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Extract( the_node );                                         
 200b914:	7f ff ed 36 	call  2006dec <_Chain_Extract>                 
 200b918:	90 10 00 1c 	mov  %i4, %o0                                  
      rtems_chain_extract( node );                                    
      free( fsn );                                                    
 200b91c:	7f ff dc 3e 	call  2002a14 <free>                           
 200b920:	90 10 00 1c 	mov  %i4, %o0                                  
 200b924:	d0 07 61 6c 	ld  [ %i5 + 0x16c ], %o0                       
 200b928:	7f ff ea f5 	call  20064fc <rtems_semaphore_release>        
 200b92c:	b0 10 20 00 	clr  %i0                                       
 200b930:	81 c7 e0 08 	ret                                            
 200b934:	81 e8 00 00 	restore                                        
 200b938:	7f ff ea f1 	call  20064fc <rtems_semaphore_release>        
 200b93c:	b0 10 3f ff 	mov  -1, %i0                                   
      return 0;                                                       
    }                                                                 
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  rtems_set_errno_and_return_minus_one( ENOENT );                     
 200b940:	40 00 0a 39 	call  200e224 <__errno>                        
 200b944:	01 00 00 00 	nop                                            
 200b948:	82 10 20 02 	mov  2, %g1	! 2 <PROM_START+0x2>               
 200b94c:	c2 22 00 00 	st  %g1, [ %o0 ]                               
}                                                                     
 200b950:	81 c7 e0 08 	ret                                            
 200b954:	81 e8 00 00 	restore                                        
)                                                                     
{                                                                     
  rtems_chain_node *node = NULL;                                      
                                                                      
  if ( type == NULL ) {                                               
    rtems_set_errno_and_return_minus_one( EINVAL );                   
 200b958:	40 00 0a 33 	call  200e224 <__errno>                        
 200b95c:	b0 10 3f ff 	mov  -1, %i0                                   
 200b960:	82 10 20 16 	mov  0x16, %g1                                 
 200b964:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 200b968:	81 c7 e0 08 	ret                                            
 200b96c:	81 e8 00 00 	restore                                        
                                                                      

02003474 <rtems_gxx_key_create>: int rtems_gxx_key_create (__gthread_key_t *key, void (*dtor) (void *)) {
 2003474:	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 ) );
 2003478:	40 00 01 1e 	call  20038f0 <malloc>                         
 200347c:	90 10 20 08 	mov  8, %o0                                    
  *key = new_key;                                                     
  new_key->val  = NULL;                                               
 2003480:	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;                                                     
 2003484:	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 ) );
 2003488:	ba 10 00 08 	mov  %o0, %i5                                  
  }                                                                   
  return 0;                                                           
}                                                                     
                                                                      
int rtems_gxx_key_create (__gthread_key_t *key, void (*dtor) (void *))
{                                                                     
 200348c:	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;                                               
 2003490:	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 );
 2003494:	90 10 20 00 	clr  %o0                                       
 2003498:	92 10 00 1d 	mov  %i5, %o1                                  
 200349c:	40 00 10 2a 	call  2007544 <rtems_task_variable_add>        
 20034a0:	b0 10 20 00 	clr  %i0                                       
  if ( status == RTEMS_SUCCESSFUL )                                   
 20034a4:	80 a2 20 00 	cmp  %o0, 0                                    
 20034a8:	02 80 00 04 	be  20034b8 <rtems_gxx_key_create+0x44>        <== ALWAYS TAKEN
 20034ac:	90 10 00 1d 	mov  %i5, %o0                                  
    return 0;                                                         
                                                                      
  free( new_key );                                                    
 20034b0:	7f ff ff 89 	call  20032d4 <free>                           <== NOT EXECUTED
 20034b4:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
  return -1;                                                          
}                                                                     
 20034b8:	81 c7 e0 08 	ret                                            
 20034bc:	81 e8 00 00 	restore                                        
                                                                      

020034cc <rtems_gxx_key_delete>: int rtems_gxx_key_delete (__gthread_key_t key) {
 20034cc:	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 );    
 20034d0:	90 10 20 00 	clr  %o0                                       
 20034d4:	40 00 10 4d 	call  2007608 <rtems_task_variable_delete>     
 20034d8:	92 10 00 18 	mov  %i0, %o1                                  
  if ( status == RTEMS_SUCCESSFUL ) {                                 
 20034dc:	80 a2 20 00 	cmp  %o0, 0                                    
 20034e0:	12 80 00 06 	bne  20034f8 <rtems_gxx_key_delete+0x2c>       <== NEVER TAKEN
 20034e4:	80 a6 20 00 	cmp  %i0, 0                                    
    /* Hmm - hopefully all tasks using this key have gone away... */  
    if ( key ) free( *(void **)key );                                 
 20034e8:	02 80 00 04 	be  20034f8 <rtems_gxx_key_delete+0x2c>        <== NEVER TAKEN
 20034ec:	01 00 00 00 	nop                                            
 20034f0:	7f ff ff 79 	call  20032d4 <free>                           
 20034f4:	d0 06 00 00 	ld  [ %i0 ], %o0                               
    return 0;                                                         
  }                                                                   
  key = NULL;                                                         
  return 0;                                                           
}                                                                     
 20034f8:	81 c7 e0 08 	ret                                            
 20034fc:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      

02003404 <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)) {
 2003404:	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 ) {                    
 2003408:	c2 06 00 00 	ld  [ %i0 ], %g1                               
 200340c:	80 a0 60 00 	cmp  %g1, 0                                    
 2003410:	02 80 00 04 	be  2003420 <rtems_gxx_once+0x1c>              
 2003414:	92 10 21 00 	mov  0x100, %o1                                
    rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode);         
    if ( o == 0 )                                                     
      (*func)();                                                      
  }                                                                   
  return 0;                                                           
}                                                                     
 2003418:	81 c7 e0 08 	ret                                            
 200341c:	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); 
 2003420:	94 07 bf fc 	add  %fp, -4, %o2                              
 2003424:	40 00 0f c1 	call  2007328 <rtems_task_mode>                
 2003428:	90 10 21 00 	mov  0x100, %o0                                
    if ( (o = *(volatile __gthread_once_t *)once) == 0 ) {            
 200342c:	c2 06 00 00 	ld  [ %i0 ], %g1                               
      *(volatile __gthread_once_t *)once = 1;                         
    }                                                                 
    rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode);         
 2003430:	d0 07 bf fc 	ld  [ %fp + -4 ], %o0                          
 2003434:	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 ) {            
 2003438:	80 a0 60 00 	cmp  %g1, 0                                    
 200343c:	12 80 00 0a 	bne  2003464 <rtems_gxx_once+0x60>             <== NEVER TAKEN
 2003440:	94 07 bf fc 	add  %fp, -4, %o2                              
      *(volatile __gthread_once_t *)once = 1;                         
 2003444:	82 10 20 01 	mov  1, %g1                                    
 2003448:	c2 26 00 00 	st  %g1, [ %i0 ]                               
    }                                                                 
    rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode);         
 200344c:	40 00 0f b7 	call  2007328 <rtems_task_mode>                
 2003450:	b0 10 20 00 	clr  %i0                                       
    if ( o == 0 )                                                     
      (*func)();                                                      
 2003454:	9f c6 40 00 	call  %i1                                      
 2003458:	01 00 00 00 	nop                                            
  }                                                                   
  return 0;                                                           
}                                                                     
 200345c:	81 c7 e0 08 	ret                                            
 2003460:	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);         
 2003464:	40 00 0f b1 	call  2007328 <rtems_task_mode>                <== NOT EXECUTED
 2003468:	b0 10 20 00 	clr  %i0                                       <== NOT EXECUTED
    if ( o == 0 )                                                     
      (*func)();                                                      
  }                                                                   
  return 0;                                                           
}                                                                     
 200346c:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 2003470:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

02003568 <rtems_gxx_setspecific>: #endif return p; } int rtems_gxx_setspecific(__gthread_key_t key, const void *ptr) {
 2003568:	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 );
 200356c:	d4 06 20 04 	ld  [ %i0 + 4 ], %o2                           
 2003570:	92 10 00 18 	mov  %i0, %o1                                  
  #endif                                                              
  return p;                                                           
}                                                                     
                                                                      
int rtems_gxx_setspecific(__gthread_key_t key, const void *ptr)       
{                                                                     
 2003574:	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 );
 2003578:	90 10 20 00 	clr  %o0                                       
 200357c:	40 00 0f f2 	call  2007544 <rtems_task_variable_add>        
 2003580:	b0 10 3f ff 	mov  -1, %i0                                   
  if ( status == RTEMS_SUCCESSFUL ) {                                 
 2003584:	80 a2 20 00 	cmp  %o0, 0                                    
 2003588:	12 80 00 04 	bne  2003598 <rtems_gxx_setspecific+0x30>      <== NEVER TAKEN
 200358c:	01 00 00 00 	nop                                            
    /* now let's set the proper value */                              
    key->val =  (void *)ptr;                                          
 2003590:	f2 27 40 00 	st  %i1, [ %i5 ]                               
    return 0;                                                         
 2003594:	b0 10 20 00 	clr  %i0                                       
  }                                                                   
  return -1;                                                          
}                                                                     
 2003598:	81 c7 e0 08 	ret                                            
 200359c:	81 e8 00 00 	restore                                        
                                                                      

020075c0 <rtems_heap_allocate_aligned_with_boundary>: void *rtems_heap_allocate_aligned_with_boundary( size_t size, uintptr_t alignment, uintptr_t boundary ) {
 20075c0:	9d e3 bf a0 	save  %sp, -96, %sp                            
  if (                                                                
 20075c4:	03 00 80 8b 	sethi  %hi(0x2022c00), %g1                     
 20075c8:	c2 00 60 bc 	ld  [ %g1 + 0xbc ], %g1	! 2022cbc <_System_state_Current>
void *rtems_heap_allocate_aligned_with_boundary(                      
  size_t size,                                                        
  uintptr_t alignment,                                                
  uintptr_t boundary                                                  
)                                                                     
{                                                                     
 20075cc:	b8 10 00 18 	mov  %i0, %i4                                  
 20075d0:	ba 10 00 19 	mov  %i1, %i5                                  
  if (                                                                
 20075d4:	80 a0 60 03 	cmp  %g1, 3                                    
 20075d8:	02 80 00 08 	be  20075f8 <rtems_heap_allocate_aligned_with_boundary+0x38><== ALWAYS TAKEN
 20075dc:	b6 10 00 1a 	mov  %i2, %i3                                  
      && !malloc_is_system_state_OK()                                 
  ) {                                                                 
    return NULL;                                                      
  }                                                                   
                                                                      
  malloc_deferred_frees_process();                                    
 20075e0:	7f ff fb 8f 	call  200641c <malloc_deferred_frees_process>  
 20075e4:	b2 10 00 1c 	mov  %i4, %i1                                  
                                                                      
  /* FIXME: Statistics, boundary checks */                            
                                                                      
  return _Protected_heap_Allocate_aligned_with_boundary(              
 20075e8:	03 00 80 85 	sethi  %hi(0x2021400), %g1                     
 20075ec:	f0 00 62 84 	ld  [ %g1 + 0x284 ], %i0	! 2021684 <RTEMS_Malloc_Heap>
 20075f0:	40 00 15 e6 	call  200cd88 <_Protected_heap_Allocate_aligned_with_boundary>
 20075f4:	95 e8 00 1d 	restore  %g0, %i5, %o2                         
  uintptr_t boundary                                                  
)                                                                     
{                                                                     
  if (                                                                
    _System_state_Is_up( _System_state_Get() )                        
      && !malloc_is_system_state_OK()                                 
 20075f8:	7f ff fb 77 	call  20063d4 <malloc_is_system_state_OK>      
 20075fc:	01 00 00 00 	nop                                            
 2007600:	80 8a 20 ff 	btst  0xff, %o0                                
 2007604:	12 bf ff f7 	bne  20075e0 <rtems_heap_allocate_aligned_with_boundary+0x20>
 2007608:	b0 10 20 00 	clr  %i0                                       
    RTEMS_Malloc_Heap,                                                
    size,                                                             
    alignment,                                                        
    boundary                                                          
  );                                                                  
}                                                                     
 200760c:	81 c7 e0 08 	ret                                            
 2007610:	81 e8 00 00 	restore                                        
                                                                      

02002688 <rtems_io_lookup_name>: rtems_status_code rtems_io_lookup_name( const char *name, rtems_driver_name_t *device_info ) {
 2002688:	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(                            
 200268c:	40 00 32 8a 	call  200f0b4 <strlen>                         
 2002690:	90 10 00 18 	mov  %i0, %o0                                  
 2002694:	94 10 20 00 	clr  %o2                                       
 2002698:	92 10 00 08 	mov  %o0, %o1                                  
 200269c:	96 07 bf ec 	add  %fp, -20, %o3                             
 20026a0:	98 10 20 01 	mov  1, %o4                                    
 20026a4:	40 00 00 9b 	call  2002910 <rtems_filesystem_evaluate_path> 
 20026a8:	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 );                        
 20026ac:	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(                            
 20026b0:	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 );                        
 20026b4:	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;                                        
 20026b8:	fa 07 bf ec 	ld  [ %fp + -20 ], %i5                         
                                                                      
  node_type = (*loc.ops->node_type_h)( &loc );                        
 20026bc:	9f c0 40 00 	call  %g1                                      
 20026c0:	90 07 bf ec 	add  %fp, -20, %o0                             
                                                                      
  if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) {      
 20026c4:	80 a2 20 02 	cmp  %o0, 2                                    
 20026c8:	02 80 00 07 	be  20026e4 <rtems_io_lookup_name+0x5c>        
 20026cc:	80 a7 20 00 	cmp  %i4, 0                                    
    rtems_filesystem_freenode( &loc );                                
 20026d0:	90 07 bf ec 	add  %fp, -20, %o0                             
 20026d4:	40 00 00 c9 	call  20029f8 <rtems_filesystem_freenode>      
 20026d8:	b0 10 20 0d 	mov  0xd, %i0                                  
    return RTEMS_UNSATISFIED;                                         
 20026dc:	81 c7 e0 08 	ret                                            
 20026e0:	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 ) {      
 20026e4:	12 bf ff fc 	bne  20026d4 <rtems_io_lookup_name+0x4c>       <== NEVER TAKEN
 20026e8:	90 07 bf ec 	add  %fp, -20, %o0                             
    rtems_filesystem_freenode( &loc );                                
    return RTEMS_UNSATISFIED;                                         
  }                                                                   
                                                                      
  device_info->device_name        = (char *) name;                    
 20026ec:	f0 26 40 00 	st  %i0, [ %i1 ]                               
  device_info->device_name_length = strlen( name );                   
 20026f0:	40 00 32 71 	call  200f0b4 <strlen>                         
 20026f4:	90 10 00 18 	mov  %i0, %o0                                  
 20026f8:	d0 26 60 04 	st  %o0, [ %i1 + 4 ]                           
  device_info->major              = the_jnode->info.device.major;     
 20026fc:	c2 07 60 50 	ld  [ %i5 + 0x50 ], %g1                        
  device_info->minor              = the_jnode->info.device.minor;     
                                                                      
  rtems_filesystem_freenode( &loc );                                  
 2002700:	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;     
 2002704:	c2 26 60 08 	st  %g1, [ %i1 + 8 ]                           
  device_info->minor              = the_jnode->info.device.minor;     
 2002708:	c2 07 60 54 	ld  [ %i5 + 0x54 ], %g1                        
                                                                      
  rtems_filesystem_freenode( &loc );                                  
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 200270c:	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 );                                  
 2002710:	40 00 00 ba 	call  20029f8 <rtems_filesystem_freenode>      
 2002714:	c2 26 60 0c 	st  %g1, [ %i1 + 0xc ]                         
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 2002718:	81 c7 e0 08 	ret                                            
 200271c:	81 e8 00 00 	restore                                        
                                                                      

02007db8 <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 ) {
 2007db8:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_device_major_number major_limit = _IO_Number_of_drivers;      
                                                                      
  if ( rtems_interrupt_is_in_progress() )                             
 2007dbc:	03 00 80 66 	sethi  %hi(0x2019800), %g1                     
 2007dc0:	c4 00 62 d4 	ld  [ %g1 + 0x2d4 ], %g2	! 2019ad4 <_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                  
)                                                                     
{                                                                     
 2007dc4:	86 10 00 19 	mov  %i1, %g3                                  
  rtems_device_major_number major_limit = _IO_Number_of_drivers;      
 2007dc8:	03 00 80 66 	sethi  %hi(0x2019800), %g1                     
                                                                      
  if ( rtems_interrupt_is_in_progress() )                             
    return RTEMS_CALLED_FROM_ISR;                                     
 2007dcc:	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() )                             
 2007dd0:	80 a0 a0 00 	cmp  %g2, 0                                    
 2007dd4:	02 80 00 04 	be  2007de4 <rtems_io_register_driver+0x2c>    
 2007dd8:	de 00 63 64 	ld  [ %g1 + 0x364 ], %o7                       
  _IO_Driver_address_table [major] = *driver_table;                   
                                                                      
  _Thread_Enable_dispatch();                                          
                                                                      
  return rtems_io_initialize( major, 0, NULL );                       
}                                                                     
 2007ddc:	81 c7 e0 08 	ret                                            
 2007de0:	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 )                                     
 2007de4:	80 a6 a0 00 	cmp  %i2, 0                                    
 2007de8:	02 80 00 3f 	be  2007ee4 <rtems_io_register_driver+0x12c>   
 2007dec:	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 )                                         
 2007df0:	02 80 00 3d 	be  2007ee4 <rtems_io_register_driver+0x12c>   
 2007df4:	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;
 2007df8:	c4 06 40 00 	ld  [ %i1 ], %g2                               
 2007dfc:	80 a0 a0 00 	cmp  %g2, 0                                    
 2007e00:	22 80 00 36 	be,a   2007ed8 <rtems_io_register_driver+0x120>
 2007e04:	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 )                                         
 2007e08:	80 a3 c0 18 	cmp  %o7, %i0                                  
 2007e0c:	08 bf ff f4 	bleu  2007ddc <rtems_io_register_driver+0x24>  
 2007e10:	88 10 20 0a 	mov  0xa, %g4                                  
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
 2007e14:	05 00 80 66 	sethi  %hi(0x2019800), %g2                     
 2007e18:	c8 00 a0 a0 	ld  [ %g2 + 0xa0 ], %g4	! 20198a0 <_Thread_Dispatch_disable_level>
 2007e1c:	88 01 20 01 	inc  %g4                                       
 2007e20:	c8 20 a0 a0 	st  %g4, [ %g2 + 0xa0 ]                        
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  if ( major == 0 ) {                                                 
 2007e24:	80 a6 20 00 	cmp  %i0, 0                                    
 2007e28:	12 80 00 32 	bne  2007ef0 <rtems_io_register_driver+0x138>  
 2007e2c:	1f 00 80 66 	sethi  %hi(0x2019800), %o7                     
                                                                      
static rtems_status_code rtems_io_obtain_major_number(                
  rtems_device_major_number *major                                    
)                                                                     
{                                                                     
  rtems_device_major_number n = _IO_Number_of_drivers;                
 2007e30:	c8 00 63 64 	ld  [ %g1 + 0x364 ], %g4                       
  rtems_device_major_number m = 0;                                    
                                                                      
  /* major is error checked by caller */                              
                                                                      
  for ( m = 0; m < n; ++m ) {                                         
 2007e34:	80 a1 20 00 	cmp  %g4, 0                                    
 2007e38:	02 80 00 45 	be  2007f4c <rtems_io_register_driver+0x194>   <== NEVER TAKEN
 2007e3c:	c2 03 e3 68 	ld  [ %o7 + 0x368 ], %g1                       
                                                                      
static inline bool rtems_io_is_empty_table(                           
  const rtems_driver_address_table *table                             
)                                                                     
{                                                                     
  return table->initialization_entry == NULL && table->open_entry == NULL;
 2007e40:	10 80 00 06 	b  2007e58 <rtems_io_register_driver+0xa0>     
 2007e44:	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 ) {                                         
 2007e48:	80 a6 00 04 	cmp  %i0, %g4                                  
 2007e4c:	02 80 00 35 	be  2007f20 <rtems_io_register_driver+0x168>   
 2007e50:	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;
 2007e54:	c4 00 40 00 	ld  [ %g1 ], %g2                               
 2007e58:	80 a0 a0 00 	cmp  %g2, 0                                    
 2007e5c:	32 bf ff fb 	bne,a   2007e48 <rtems_io_register_driver+0x90>
 2007e60:	b0 06 20 01 	inc  %i0                                       
 2007e64:	c4 00 60 04 	ld  [ %g1 + 4 ], %g2                           
 2007e68:	80 a0 a0 00 	cmp  %g2, 0                                    
 2007e6c:	32 bf ff f7 	bne,a   2007e48 <rtems_io_register_driver+0x90>
 2007e70:	b0 06 20 01 	inc  %i0                                       
    if ( rtems_io_is_empty_table( table ) )                           
      break;                                                          
  }                                                                   
                                                                      
  /* Assigns invalid value in case of failure */                      
  *major = m;                                                         
 2007e74:	f0 26 80 00 	st  %i0, [ %i2 ]                               
 2007e78:	83 2e 20 03 	sll  %i0, 3, %g1                               
                                                                      
  if ( m != n )                                                       
 2007e7c:	80 a1 00 18 	cmp  %g4, %i0                                  
 2007e80:	02 80 00 29 	be  2007f24 <rtems_io_register_driver+0x16c>   <== NEVER TAKEN
 2007e84:	9b 2e 20 05 	sll  %i0, 5, %o5                               
    }                                                                 
                                                                      
    *registered_major = major;                                        
  }                                                                   
                                                                      
  _IO_Driver_address_table [major] = *driver_table;                   
 2007e88:	c8 00 c0 00 	ld  [ %g3 ], %g4                               
 2007e8c:	c4 03 e3 68 	ld  [ %o7 + 0x368 ], %g2                       
 2007e90:	82 23 40 01 	sub  %o5, %g1, %g1                             
 2007e94:	c8 20 80 01 	st  %g4, [ %g2 + %g1 ]                         
 2007e98:	c8 00 e0 04 	ld  [ %g3 + 4 ], %g4                           
 2007e9c:	82 00 80 01 	add  %g2, %g1, %g1                             
 2007ea0:	c8 20 60 04 	st  %g4, [ %g1 + 4 ]                           
 2007ea4:	c4 00 e0 08 	ld  [ %g3 + 8 ], %g2                           
                                                                      
  _Thread_Enable_dispatch();                                          
                                                                      
  return rtems_io_initialize( major, 0, NULL );                       
 2007ea8:	b2 10 20 00 	clr  %i1                                       
    }                                                                 
                                                                      
    *registered_major = major;                                        
  }                                                                   
                                                                      
  _IO_Driver_address_table [major] = *driver_table;                   
 2007eac:	c4 20 60 08 	st  %g2, [ %g1 + 8 ]                           
 2007eb0:	c4 00 e0 0c 	ld  [ %g3 + 0xc ], %g2                         
                                                                      
  _Thread_Enable_dispatch();                                          
                                                                      
  return rtems_io_initialize( major, 0, NULL );                       
 2007eb4:	b4 10 20 00 	clr  %i2                                       
    }                                                                 
                                                                      
    *registered_major = major;                                        
  }                                                                   
                                                                      
  _IO_Driver_address_table [major] = *driver_table;                   
 2007eb8:	c4 20 60 0c 	st  %g2, [ %g1 + 0xc ]                         
 2007ebc:	c4 00 e0 10 	ld  [ %g3 + 0x10 ], %g2                        
 2007ec0:	c4 20 60 10 	st  %g2, [ %g1 + 0x10 ]                        
 2007ec4:	c4 00 e0 14 	ld  [ %g3 + 0x14 ], %g2                        
                                                                      
  _Thread_Enable_dispatch();                                          
 2007ec8:	40 00 08 35 	call  2009f9c <_Thread_Enable_dispatch>        
 2007ecc:	c4 20 60 14 	st  %g2, [ %g1 + 0x14 ]                        
                                                                      
  return rtems_io_initialize( major, 0, NULL );                       
 2007ed0:	40 00 20 ea 	call  2010278 <rtems_io_initialize>            
 2007ed4:	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;
 2007ed8:	80 a0 a0 00 	cmp  %g2, 0                                    
 2007edc:	12 bf ff cc 	bne  2007e0c <rtems_io_register_driver+0x54>   
 2007ee0:	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;                                     
 2007ee4:	88 10 20 09 	mov  9, %g4                                    
  _IO_Driver_address_table [major] = *driver_table;                   
                                                                      
  _Thread_Enable_dispatch();                                          
                                                                      
  return rtems_io_initialize( major, 0, NULL );                       
}                                                                     
 2007ee8:	81 c7 e0 08 	ret                                            
 2007eec:	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;
 2007ef0:	c8 03 e3 68 	ld  [ %o7 + 0x368 ], %g4                       
 2007ef4:	83 2e 20 03 	sll  %i0, 3, %g1                               
 2007ef8:	9b 2e 20 05 	sll  %i0, 5, %o5                               
 2007efc:	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;
 2007f00:	d8 01 00 02 	ld  [ %g4 + %g2 ], %o4                         
 2007f04:	80 a3 20 00 	cmp  %o4, 0                                    
 2007f08:	02 80 00 0b 	be  2007f34 <rtems_io_register_driver+0x17c>   
 2007f0c:	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();                                      
 2007f10:	40 00 08 23 	call  2009f9c <_Thread_Enable_dispatch>        
 2007f14:	01 00 00 00 	nop                                            
      return RTEMS_RESOURCE_IN_USE;                                   
 2007f18:	10 bf ff b1 	b  2007ddc <rtems_io_register_driver+0x24>     
 2007f1c:	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;                                                         
 2007f20:	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();                                      
 2007f24:	40 00 08 1e 	call  2009f9c <_Thread_Enable_dispatch>        
 2007f28:	01 00 00 00 	nop                                            
      return sc;                                                      
 2007f2c:	10 bf ff ac 	b  2007ddc <rtems_io_register_driver+0x24>     
 2007f30:	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;
 2007f34:	c4 00 a0 04 	ld  [ %g2 + 4 ], %g2                           
 2007f38:	80 a0 a0 00 	cmp  %g2, 0                                    
 2007f3c:	12 bf ff f5 	bne  2007f10 <rtems_io_register_driver+0x158>  
 2007f40:	01 00 00 00 	nop                                            
    if ( !rtems_io_is_empty_table( table ) ) {                        
      _Thread_Enable_dispatch();                                      
      return RTEMS_RESOURCE_IN_USE;                                   
    }                                                                 
                                                                      
    *registered_major = major;                                        
 2007f44:	10 bf ff d1 	b  2007e88 <rtems_io_register_driver+0xd0>     
 2007f48:	f0 26 80 00 	st  %i0, [ %i2 ]                               
    if ( rtems_io_is_empty_table( table ) )                           
      break;                                                          
  }                                                                   
                                                                      
  /* Assigns invalid value in case of failure */                      
  *major = m;                                                         
 2007f4c:	10 bf ff f6 	b  2007f24 <rtems_io_register_driver+0x16c>    <== NOT EXECUTED
 2007f50:	c0 26 80 00 	clr  [ %i2 ]                                   <== NOT EXECUTED
                                                                      

02009490 <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) {
 2009490:	9d e3 bf a0 	save  %sp, -96, %sp                            
  uint32_t             i;                                             
  uint32_t             api_index;                                     
  Thread_Control      *the_thread;                                    
  Objects_Information *information;                                   
                                                                      
  if ( !routine )                                                     
 2009494:	80 a6 20 00 	cmp  %i0, 0                                    
 2009498:	02 80 00 23 	be  2009524 <rtems_iterate_over_all_threads+0x94><== NEVER TAKEN
 200949c:	37 00 80 7a 	sethi  %hi(0x201e800), %i3                     
 20094a0:	b6 16 e2 4c 	or  %i3, 0x24c, %i3	! 201ea4c <_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) 
 20094a4:	b4 06 e0 0c 	add  %i3, 0xc, %i2                             
  if ( !routine )                                                     
    return;                                                           
                                                                      
  for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
    #if !defined(RTEMS_POSIX_API) || defined(RTEMS_DEBUG)             
      if ( !_Objects_Information_table[ api_index ] )                 
 20094a8:	c2 06 c0 00 	ld  [ %i3 ], %g1                               
 20094ac:	80 a0 60 00 	cmp  %g1, 0                                    
 20094b0:	22 80 00 1a 	be,a   2009518 <rtems_iterate_over_all_threads+0x88>
 20094b4:	b6 06 e0 04 	add  %i3, 4, %i3                               
        continue;                                                     
    #endif                                                            
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
 20094b8:	f8 00 60 04 	ld  [ %g1 + 4 ], %i4                           
    if ( !information )                                               
 20094bc:	80 a7 20 00 	cmp  %i4, 0                                    
 20094c0:	22 80 00 16 	be,a   2009518 <rtems_iterate_over_all_threads+0x88>
 20094c4:	b6 06 e0 04 	add  %i3, 4, %i3                               
      continue;                                                       
                                                                      
    for ( i=1 ; i <= information->maximum ; i++ ) {                   
 20094c8:	c2 17 20 10 	lduh  [ %i4 + 0x10 ], %g1                      
 20094cc:	84 90 60 00 	orcc  %g1, 0, %g2                              
 20094d0:	22 80 00 12 	be,a   2009518 <rtems_iterate_over_all_threads+0x88><== NEVER TAKEN
 20094d4:	b6 06 e0 04 	add  %i3, 4, %i3                               
 20094d8:	ba 10 20 01 	mov  1, %i5                                    
      the_thread = (Thread_Control *)information->local_table[ i ];   
 20094dc:	c6 07 20 1c 	ld  [ %i4 + 0x1c ], %g3                        
 20094e0:	83 2f 60 02 	sll  %i5, 2, %g1                               
 20094e4:	c2 00 c0 01 	ld  [ %g3 + %g1 ], %g1                         
                                                                      
      if ( !the_thread )                                              
 20094e8:	90 90 60 00 	orcc  %g1, 0, %o0                              
 20094ec:	02 80 00 05 	be  2009500 <rtems_iterate_over_all_threads+0x70>
 20094f0:	ba 07 60 01 	inc  %i5                                       
	continue;                                                            
                                                                      
      (*routine)(the_thread);                                         
 20094f4:	9f c6 00 00 	call  %i0                                      
 20094f8:	01 00 00 00 	nop                                            
 20094fc:	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++ ) {                   
 2009500:	83 28 a0 10 	sll  %g2, 0x10, %g1                            
 2009504:	83 30 60 10 	srl  %g1, 0x10, %g1                            
 2009508:	80 a0 40 1d 	cmp  %g1, %i5                                  
 200950c:	3a bf ff f5 	bcc,a   20094e0 <rtems_iterate_over_all_threads+0x50>
 2009510:	c6 07 20 1c 	ld  [ %i4 + 0x1c ], %g3                        
 2009514:	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++ ) {
 2009518:	80 a6 c0 1a 	cmp  %i3, %i2                                  
 200951c:	32 bf ff e4 	bne,a   20094ac <rtems_iterate_over_all_threads+0x1c>
 2009520:	c2 06 c0 00 	ld  [ %i3 ], %g1                               
 2009524:	81 c7 e0 08 	ret                                            
 2009528:	81 e8 00 00 	restore                                        
                                                                      

0200b534 <rtems_libio_free>: */ void rtems_libio_free( rtems_libio_t *iop ) {
 200b534:	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 );
 200b538:	39 00 80 55 	sethi  %hi(0x2015400), %i4                     
 200b53c:	d0 07 21 6c 	ld  [ %i4 + 0x16c ], %o0	! 201556c <rtems_libio_semaphore>
 200b540:	92 10 20 00 	clr  %o1                                       
 200b544:	7f ff eb a5 	call  20063d8 <rtems_semaphore_obtain>         
 200b548:	94 10 20 00 	clr  %o2                                       
  rtems_libio_lock();                                                 
                                                                      
    if (iop->sem)                                                     
 200b54c:	d0 06 20 30 	ld  [ %i0 + 0x30 ], %o0                        
 200b550:	80 a2 20 00 	cmp  %o0, 0                                    
 200b554:	02 80 00 04 	be  200b564 <rtems_libio_free+0x30>            <== NEVER TAKEN
 200b558:	ba 10 00 18 	mov  %i0, %i5                                  
      rtems_semaphore_delete(iop->sem);                               
 200b55c:	7f ff eb 68 	call  20062fc <rtems_semaphore_delete>         
 200b560:	01 00 00 00 	nop                                            
                                                                      
    iop->flags &= ~LIBIO_FLAGS_OPEN;                                  
 200b564:	c4 07 60 18 	ld  [ %i5 + 0x18 ], %g2                        
    iop->data1 = rtems_libio_iop_freelist;                            
 200b568:	03 00 80 55 	sethi  %hi(0x2015400), %g1                     
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
 200b56c:	f0 07 21 6c 	ld  [ %i4 + 0x16c ], %i0                       
 200b570:	c6 00 61 68 	ld  [ %g1 + 0x168 ], %g3                       
  rtems_libio_lock();                                                 
                                                                      
    if (iop->sem)                                                     
      rtems_semaphore_delete(iop->sem);                               
                                                                      
    iop->flags &= ~LIBIO_FLAGS_OPEN;                                  
 200b574:	84 08 be ff 	and  %g2, -257, %g2                            
    iop->data1 = rtems_libio_iop_freelist;                            
 200b578:	c6 27 60 38 	st  %g3, [ %i5 + 0x38 ]                        
  rtems_libio_lock();                                                 
                                                                      
    if (iop->sem)                                                     
      rtems_semaphore_delete(iop->sem);                               
                                                                      
    iop->flags &= ~LIBIO_FLAGS_OPEN;                                  
 200b57c:	c4 27 60 18 	st  %g2, [ %i5 + 0x18 ]                        
    iop->data1 = rtems_libio_iop_freelist;                            
    rtems_libio_iop_freelist = iop;                                   
 200b580:	fa 20 61 68 	st  %i5, [ %g1 + 0x168 ]                       
 200b584:	7f ff eb de 	call  20064fc <rtems_semaphore_release>        
 200b588:	81 e8 00 00 	restore                                        
                                                                      

02002b44 <rtems_libio_init>: * * Called by BSP startup code to initialize the libio subsystem. */ void rtems_libio_init( void ) {
 2002b44:	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)                                  
 2002b48:	03 00 80 52 	sethi  %hi(0x2014800), %g1                     
 2002b4c:	fa 00 63 9c 	ld  [ %g1 + 0x39c ], %i5	! 2014b9c <rtems_libio_number_iops>
 2002b50:	80 a7 60 00 	cmp  %i5, 0                                    
 2002b54:	02 80 00 11 	be  2002b98 <rtems_libio_init+0x54>            <== NEVER TAKEN
 2002b58:	92 10 20 01 	mov  1, %o1                                    
    {                                                                 
        rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops,
 2002b5c:	90 10 00 1d 	mov  %i5, %o0                                  
 2002b60:	7f ff ff 3a 	call  2002848 <calloc>                         
 2002b64:	92 10 20 40 	mov  0x40, %o1                                 
 2002b68:	03 00 80 55 	sethi  %hi(0x2015400), %g1                     
                                                    sizeof(rtems_libio_t));
        if (rtems_libio_iops == NULL)                                 
 2002b6c:	80 a2 20 00 	cmp  %o0, 0                                    
 2002b70:	02 80 00 28 	be  2002c10 <rtems_libio_init+0xcc>            
 2002b74:	d0 20 61 64 	st  %o0, [ %g1 + 0x164 ]                       
            rtems_fatal_error_occurred(RTEMS_NO_MEMORY);              
                                                                      
        iop = rtems_libio_iop_freelist = rtems_libio_iops;            
 2002b78:	03 00 80 55 	sethi  %hi(0x2015400), %g1                     
 2002b7c:	d0 20 61 68 	st  %o0, [ %g1 + 0x168 ]	! 2015568 <rtems_libio_iop_freelist>
        for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++)  
 2002b80:	84 10 00 08 	mov  %o0, %g2                                  
 2002b84:	80 a7 60 01 	cmp  %i5, 1                                    
 2002b88:	18 80 00 17 	bgu  2002be4 <rtems_libio_init+0xa0>           <== ALWAYS TAKEN
 2002b8c:	82 10 20 01 	mov  1, %g1                                    
          iop->data1 = iop + 1;                                       
        iop->data1 = NULL;                                            
 2002b90:	c0 22 20 38 	clr  [ %o0 + 0x38 ]                            
  /*                                                                  
   *  Create the binary semaphore used to provide mutual exclusion    
   *  on the IOP Table.                                               
   */                                                                 
                                                                      
  rc = rtems_semaphore_create(                                        
 2002b94:	92 10 20 01 	mov  1, %o1                                    
 2002b98:	11 13 10 92 	sethi  %hi(0x4c424800), %o0                    
 2002b9c:	94 10 20 54 	mov  0x54, %o2                                 
 2002ba0:	90 12 21 4f 	or  %o0, 0x14f, %o0                            
 2002ba4:	96 10 20 00 	clr  %o3                                       
 2002ba8:	19 00 80 55 	sethi  %hi(0x2015400), %o4                     
 2002bac:	40 00 0d 65 	call  2006140 <rtems_semaphore_create>         
 2002bb0:	98 13 21 6c 	or  %o4, 0x16c, %o4	! 201556c <rtems_libio_semaphore>
    1,                                                                
    RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, 
    RTEMS_NO_PRIORITY,                                                
    &rtems_libio_semaphore                                            
  );                                                                  
  if ( rc != RTEMS_SUCCESSFUL )                                       
 2002bb4:	80 a2 20 00 	cmp  %o0, 0                                    
 2002bb8:	12 80 00 14 	bne  2002c08 <rtems_libio_init+0xc4>           <== NEVER TAKEN
 2002bbc:	03 00 80 52 	sethi  %hi(0x2014800), %g1                     
                                                                      
  /*                                                                  
   *  Initialize the base file system infrastructure.                 
   */                                                                 
                                                                      
  if (rtems_fs_init_helper)                                           
 2002bc0:	c2 00 63 a0 	ld  [ %g1 + 0x3a0 ], %g1	! 2014ba0 <rtems_fs_init_helper>
 2002bc4:	80 a0 60 00 	cmp  %g1, 0                                    
 2002bc8:	02 80 00 04 	be  2002bd8 <rtems_libio_init+0x94>            <== NEVER TAKEN
 2002bcc:	01 00 00 00 	nop                                            
     (* rtems_fs_init_helper)();                                      
 2002bd0:	9f c0 40 00 	call  %g1                                      
 2002bd4:	01 00 00 00 	nop                                            
 2002bd8:	81 c7 e0 08 	ret                                            
 2002bdc:	81 e8 00 00 	restore                                        
                                                    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++)  
 2002be0:	84 10 00 03 	mov  %g3, %g2                                  
          iop->data1 = iop + 1;                                       
 2002be4:	86 00 a0 40 	add  %g2, 0x40, %g3                            
 2002be8:	82 00 60 01 	inc  %g1                                       
                                                    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++)  
 2002bec:	80 a0 40 1d 	cmp  %g1, %i5                                  
 2002bf0:	12 bf ff fc 	bne  2002be0 <rtems_libio_init+0x9c>           
 2002bf4:	c6 20 a0 38 	st  %g3, [ %g2 + 0x38 ]                        
 *  rtems_libio_init                                                  
 *                                                                    
 *  Called by BSP startup code to initialize the libio subsystem.     
 */                                                                   
                                                                      
void rtems_libio_init( void )                                         
 2002bf8:	82 00 7f ff 	add  %g1, -1, %g1                              
 2002bfc:	83 28 60 06 	sll  %g1, 6, %g1                               
                                                    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++)  
 2002c00:	10 bf ff e4 	b  2002b90 <rtems_libio_init+0x4c>             
 2002c04:	90 02 00 01 	add  %o0, %g1, %o0                             
    RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, 
    RTEMS_NO_PRIORITY,                                                
    &rtems_libio_semaphore                                            
  );                                                                  
  if ( rc != RTEMS_SUCCESSFUL )                                       
    rtems_fatal_error_occurred( rc );                                 
 2002c08:	40 00 0f 9e 	call  2006a80 <rtems_fatal_error_occurred>     <== NOT EXECUTED
 2002c0c:	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);              
 2002c10:	40 00 0f 9c 	call  2006a80 <rtems_fatal_error_occurred>     
 2002c14:	90 10 20 1a 	mov  0x1a, %o0	! 1a <PROM_START+0x1a>          
                                                                      

0200b618 <rtems_libio_is_file_open>: */ int rtems_libio_is_file_open( void *node_access ) {
 200b618:	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 );
 200b61c:	3b 00 80 55 	sethi  %hi(0x2015400), %i5                     
 200b620:	d0 07 61 6c 	ld  [ %i5 + 0x16c ], %o0	! 201556c <rtems_libio_semaphore>
 200b624:	92 10 20 00 	clr  %o1                                       
 200b628:	7f ff eb 6c 	call  20063d8 <rtems_semaphore_obtain>         
 200b62c:	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++){
 200b630:	03 00 80 52 	sethi  %hi(0x2014800), %g1                     
 200b634:	c2 00 63 9c 	ld  [ %g1 + 0x39c ], %g1	! 2014b9c <rtems_libio_number_iops>
 200b638:	05 00 80 55 	sethi  %hi(0x2015400), %g2                     
int rtems_libio_is_file_open(                                         
  void         *node_access                                           
)                                                                     
{                                                                     
  rtems_libio_t     *iop;                                             
  int                result=0;                                        
 200b63c:	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++){
 200b640:	80 a0 60 00 	cmp  %g1, 0                                    
 200b644:	02 80 00 0f 	be  200b680 <rtems_libio_is_file_open+0x68>    <== NEVER TAKEN
 200b648:	c4 00 a1 64 	ld  [ %g2 + 0x164 ], %g2                       
 200b64c:	86 10 20 00 	clr  %g3                                       
    if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) {                       
 200b650:	c8 00 a0 18 	ld  [ %g2 + 0x18 ], %g4                        
 200b654:	80 89 21 00 	btst  0x100, %g4                               
 200b658:	02 80 00 06 	be  200b670 <rtems_libio_is_file_open+0x58>    
 200b65c:	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 ) {              
 200b660:	c8 00 a0 1c 	ld  [ %g2 + 0x1c ], %g4                        
 200b664:	80 a1 00 18 	cmp  %g4, %i0                                  
 200b668:	02 80 00 0b 	be  200b694 <rtems_libio_is_file_open+0x7c>    
 200b66c:	d0 07 61 6c 	ld  [ %i5 + 0x16c ], %o0                       
                                                                      
  /*                                                                  
   *  Look for any active file descriptor entry.                      
   */                                                                 
                                                                      
 for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){
 200b670:	80 a0 c0 01 	cmp  %g3, %g1                                  
 200b674:	12 bf ff f7 	bne  200b650 <rtems_libio_is_file_open+0x38>   
 200b678:	84 00 a0 40 	add  %g2, 0x40, %g2                            
int rtems_libio_is_file_open(                                         
  void         *node_access                                           
)                                                                     
{                                                                     
  rtems_libio_t     *iop;                                             
  int                result=0;                                        
 200b67c:	b8 10 20 00 	clr  %i4                                       
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
 200b680:	d0 07 61 6c 	ld  [ %i5 + 0x16c ], %o0                       
 200b684:	7f ff eb 9e 	call  20064fc <rtems_semaphore_release>        
 200b688:	b0 10 00 1c 	mov  %i4, %i0                                  
  }                                                                   
                                                                      
  rtems_libio_unlock();                                               
                                                                      
  return result;                                                      
}                                                                     
 200b68c:	81 c7 e0 08 	ret                                            
 200b690:	81 e8 00 00 	restore                                        
 200b694:	7f ff eb 9a 	call  20064fc <rtems_semaphore_release>        
 200b698:	b8 10 20 01 	mov  1, %i4                                    
 200b69c:	81 c7 e0 08 	ret                                            
 200b6a0:	91 e8 00 1c 	restore  %g0, %i4, %o0                         
                                                                      

0200b58c <rtems_libio_is_open_files_in_fs>: */ int rtems_libio_is_open_files_in_fs( rtems_filesystem_mount_table_entry_t * fs_mt_entry ) {
 200b58c:	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 );
 200b590:	3b 00 80 55 	sethi  %hi(0x2015400), %i5                     
 200b594:	d0 07 61 6c 	ld  [ %i5 + 0x16c ], %o0	! 201556c <rtems_libio_semaphore>
 200b598:	92 10 20 00 	clr  %o1                                       
 200b59c:	7f ff eb 8f 	call  20063d8 <rtems_semaphore_obtain>         
 200b5a0:	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++){
 200b5a4:	03 00 80 52 	sethi  %hi(0x2014800), %g1                     
 200b5a8:	c2 00 63 9c 	ld  [ %g1 + 0x39c ], %g1	! 2014b9c <rtems_libio_number_iops>
 200b5ac:	05 00 80 55 	sethi  %hi(0x2015400), %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;                                      
 200b5b0:	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++){
 200b5b4:	80 a0 60 00 	cmp  %g1, 0                                    
 200b5b8:	02 80 00 0f 	be  200b5f4 <rtems_libio_is_open_files_in_fs+0x68><== NEVER TAKEN
 200b5bc:	c4 00 a1 64 	ld  [ %g2 + 0x164 ], %g2                       
 200b5c0:	86 10 20 00 	clr  %g3                                       
                                                                      
    if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) {                       
 200b5c4:	c8 00 a0 18 	ld  [ %g2 + 0x18 ], %g4                        
 200b5c8:	80 89 21 00 	btst  0x100, %g4                               
 200b5cc:	02 80 00 06 	be  200b5e4 <rtems_libio_is_open_files_in_fs+0x58>
 200b5d0:	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 ) {                 
 200b5d4:	c8 00 a0 2c 	ld  [ %g2 + 0x2c ], %g4                        
 200b5d8:	80 a1 00 18 	cmp  %g4, %i0                                  
 200b5dc:	02 80 00 0b 	be  200b608 <rtems_libio_is_open_files_in_fs+0x7c>
 200b5e0:	d0 07 61 6c 	ld  [ %i5 + 0x16c ], %o0                       
                                                                      
  /*                                                                  
   *  Look for any active file descriptor entry.                      
   */                                                                 
                                                                      
  for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){
 200b5e4:	80 a0 c0 01 	cmp  %g3, %g1                                  
 200b5e8:	12 bf ff f7 	bne  200b5c4 <rtems_libio_is_open_files_in_fs+0x38>
 200b5ec:	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;                                      
 200b5f0:	b8 10 20 00 	clr  %i4                                       
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
 200b5f4:	d0 07 61 6c 	ld  [ %i5 + 0x16c ], %o0                       
 200b5f8:	7f ff eb c1 	call  20064fc <rtems_semaphore_release>        
 200b5fc:	b0 10 00 1c 	mov  %i4, %i0                                  
  }                                                                   
                                                                      
  rtems_libio_unlock();                                               
                                                                      
  return result;                                                      
}                                                                     
 200b600:	81 c7 e0 08 	ret                                            
 200b604:	81 e8 00 00 	restore                                        
 200b608:	7f ff eb bd 	call  20064fc <rtems_semaphore_release>        
 200b60c:	b8 10 20 01 	mov  1, %i4                                    
 200b610:	81 c7 e0 08 	ret                                            
 200b614:	91 e8 00 1c 	restore  %g0, %i4, %o0                         
                                                                      

02003fc4 <rtems_libio_set_private_env>: } } rtems_status_code rtems_libio_set_private_env(void) {
 2003fc4:	9d e3 bf 78 	save  %sp, -136, %sp                           
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_id task_id = rtems_task_self();                               
 2003fc8:	40 00 0c 2d 	call  200707c <rtems_task_self>                
 2003fcc:	3b 00 80 51 	sethi  %hi(0x2014400), %i5                     
 2003fd0:	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);       
 2003fd4:	92 10 20 01 	mov  1, %o1                                    
 2003fd8:	90 17 62 10 	or  %i5, 0x210, %o0                            
 2003fdc:	94 10 20 00 	clr  %o2                                       
 2003fe0:	96 07 bf d8 	add  %fp, -40, %o3                             
 2003fe4:	98 10 20 00 	clr  %o4                                       
 2003fe8:	7f ff fb 3e 	call  2002ce0 <rtems_filesystem_evaluate_path> 
 2003fec:	b0 10 20 1a 	mov  0x1a, %i0                                 
  if (rv != 0)                                                        
 2003ff0:	80 a2 20 00 	cmp  %o0, 0                                    
 2003ff4:	12 80 00 43 	bne  2004100 <rtems_libio_set_private_env+0x13c><== NEVER TAKEN
 2003ff8:	90 17 62 10 	or  %i5, 0x210, %o0                            
    goto error_0;                                                     
                                                                      
  rv = rtems_filesystem_evaluate_path("/", 1, 0, ¤t_loc, 0);    
 2003ffc:	92 10 20 01 	mov  1, %o1                                    
 2004000:	94 10 20 00 	clr  %o2                                       
 2004004:	96 07 bf ec 	add  %fp, -20, %o3                             
 2004008:	7f ff fb 36 	call  2002ce0 <rtems_filesystem_evaluate_path> 
 200400c:	98 10 20 00 	clr  %o4                                       
  if (rv != 0)                                                        
 2004010:	80 a2 20 00 	cmp  %o0, 0                                    
 2004014:	12 80 00 38 	bne  20040f4 <rtems_libio_set_private_env+0x130><== NEVER TAKEN
 2004018:	35 00 80 54 	sethi  %hi(0x2015000), %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                  
 200401c:	fa 06 a1 d8 	ld  [ %i2 + 0x1d8 ], %i5	! 20151d8 <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 (                                                                
 2004020:	37 00 80 56 	sethi  %hi(0x2015800), %i3                     
 2004024:	b6 16 e3 14 	or  %i3, 0x314, %i3	! 2015b14 <rtems_global_user_env>
 2004028:	80 a7 40 1b 	cmp  %i5, %i3                                  
 200402c:	02 80 00 06 	be  2004044 <rtems_libio_set_private_env+0x80> 
 2004030:	01 00 00 00 	nop                                            
    rtems_current_user_env == &rtems_global_user_env                  
      || rtems_current_user_env->task_id != task_id                   
 2004034:	c2 07 40 00 	ld  [ %i5 ], %g1                               
 2004038:	80 a0 40 1c 	cmp  %g1, %i4                                  
 200403c:	02 80 00 10 	be  200407c <rtems_libio_set_private_env+0xb8> 
 2004040:	90 10 00 1d 	mov  %i5, %o0                                  
  ) {                                                                 
    new_env = malloc(sizeof(rtems_user_env_t));                       
 2004044:	7f ff fc fb 	call  2003430 <malloc>                         
 2004048:	90 10 20 48 	mov  0x48, %o0                                 
    if (new_env == NULL)                                              
 200404c:	ba 92 20 00 	orcc  %o0, 0, %i5                              
 2004050:	02 80 00 27 	be  20040ec <rtems_libio_set_private_env+0x128>
 2004054:	90 10 20 00 	clr  %o0                                       
                                                                      
    #ifdef HAVE_USERENV_REFCNT                                        
      new_env->refcnt = 1;                                            
    #endif                                                            
                                                                      
    sc = rtems_task_variable_add(                                     
 2004058:	92 16 a1 d8 	or  %i2, 0x1d8, %o1                            
 200405c:	15 00 80 0f 	sethi  %hi(0x2003c00), %o2                     
 2004060:	40 00 0c 26 	call  20070f8 <rtems_task_variable_add>        
 2004064:	94 12 a3 8c 	or  %o2, 0x38c, %o2	! 2003f8c <free_user_env>  
      RTEMS_SELF,                                                     
      (void*)&rtems_current_user_env,                                 
      (void(*)(void *))free_user_env                                  
    );                                                                
    if (sc != RTEMS_SUCCESSFUL)                                       
 2004068:	80 a2 20 00 	cmp  %o0, 0                                    
 200406c:	12 80 00 1e 	bne  20040e4 <rtems_libio_set_private_env+0x120>
 2004070:	03 00 80 54 	sethi  %hi(0x2015000), %g1                     
      goto error_3;                                                   
                                                                      
    rtems_current_user_env = new_env;                                 
 2004074:	fa 20 61 d8 	st  %i5, [ %g1 + 0x1d8 ]	! 20151d8 <rtems_current_user_env>
  }                                                                   
                                                                      
  /* Inherit the global values */                                     
  *rtems_current_user_env = rtems_global_user_env;                    
 2004078:	90 10 00 1d 	mov  %i5, %o0                                  
 200407c:	92 10 00 1b 	mov  %i3, %o1                                  
 2004080:	40 00 2c 04 	call  200f090 <memcpy>                         
 2004084:	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;                                   
 2004088:	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;                          
 200408c:	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;                                   
 2004090:	c2 27 60 18 	st  %g1, [ %i5 + 0x18 ]                        
 2004094:	c2 07 bf dc 	ld  [ %fp + -36 ], %g1                         
 2004098:	c2 27 60 1c 	st  %g1, [ %i5 + 0x1c ]                        
 200409c:	c2 07 bf e0 	ld  [ %fp + -32 ], %g1                         
 20040a0:	c2 27 60 20 	st  %g1, [ %i5 + 0x20 ]                        
 20040a4:	c2 07 bf e4 	ld  [ %fp + -28 ], %g1                         
 20040a8:	c2 27 60 24 	st  %g1, [ %i5 + 0x24 ]                        
 20040ac:	c2 07 bf e8 	ld  [ %fp + -24 ], %g1                         
 20040b0:	c2 27 60 28 	st  %g1, [ %i5 + 0x28 ]                        
  rtems_filesystem_current = current_loc;                             
 20040b4:	c2 07 bf ec 	ld  [ %fp + -20 ], %g1                         
 20040b8:	c2 27 60 04 	st  %g1, [ %i5 + 4 ]                           
 20040bc:	c2 07 bf f0 	ld  [ %fp + -16 ], %g1                         
 20040c0:	c2 27 60 08 	st  %g1, [ %i5 + 8 ]                           
 20040c4:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         
 20040c8:	c2 27 60 0c 	st  %g1, [ %i5 + 0xc ]                         
 20040cc:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
 20040d0:	c2 27 60 10 	st  %g1, [ %i5 + 0x10 ]                        
 20040d4:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 20040d8:	c2 27 60 14 	st  %g1, [ %i5 + 0x14 ]                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 20040dc:	81 c7 e0 08 	ret                                            
 20040e0:	91 e8 20 00 	restore  %g0, 0, %o0                           
                                                                      
error_3:                                                              
  free(new_env);                                                      
 20040e4:	7f ff fb 40 	call  2002de4 <free>                           
 20040e8:	90 10 00 1d 	mov  %i5, %o0                                  
                                                                      
error_2:                                                              
  rtems_filesystem_freenode(¤t_loc);                            
 20040ec:	7f ff fb 37 	call  2002dc8 <rtems_filesystem_freenode>      
 20040f0:	90 07 bf ec 	add  %fp, -20, %o0                             
                                                                      
error_1:                                                              
  rtems_filesystem_freenode(&root_loc);                               
 20040f4:	90 07 bf d8 	add  %fp, -40, %o0                             
 20040f8:	7f ff fb 34 	call  2002dc8 <rtems_filesystem_freenode>      
 20040fc:	b0 10 20 1a 	mov  0x1a, %i0                                 
                                                                      
error_0:                                                              
  return RTEMS_NO_MEMORY;                                             
}                                                                     
 2004100:	81 c7 e0 08 	ret                                            
 2004104:	81 e8 00 00 	restore                                        
                                                                      

02004108 <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) {
 2004108:	9d e3 bf 98 	save  %sp, -104, %sp                           
  rtems_id           current_task_id;                                 
                                                                      
  /*                                                                  
   * get current task id                                              
   */                                                                 
  current_task_id = rtems_task_self();                                
 200410c:	40 00 0b dc 	call  200707c <rtems_task_self>                
 2004110:	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 )                                    
 2004114:	80 a6 00 08 	cmp  %i0, %o0                                  
 2004118:	02 80 00 10 	be  2004158 <rtems_libio_share_private_env+0x50><== NEVER TAKEN
 200411c:	ba 10 00 08 	mov  %o0, %i5                                  
    return RTEMS_SUCCESSFUL;                                          
  /*                                                                  
   * Try to get the requested user environment                        
   */                                                                 
  sc = rtems_task_variable_get(                                       
 2004120:	90 10 00 18 	mov  %i0, %o0                                  
 2004124:	39 00 80 54 	sethi  %hi(0x2015000), %i4                     
 2004128:	94 07 bf fc 	add  %fp, -4, %o2                              
 200412c:	40 00 0c 24 	call  20071bc <rtems_task_variable_get>        
 2004130:	92 17 21 d8 	or  %i4, 0x1d8, %o1                            
	 (void*)&shared_user_env );                                          
                                                                      
  /*                                                                  
   * If it was not successful, return the error code                  
   */                                                                 
    if (sc != RTEMS_SUCCESSFUL)                                       
 2004134:	b6 92 20 00 	orcc  %o0, 0, %i3                              
 2004138:	12 80 00 09 	bne  200415c <rtems_libio_share_private_env+0x54>
 200413c:	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) {             
 2004140:	d0 07 21 d8 	ld  [ %i4 + 0x1d8 ], %o0                       
 2004144:	c2 02 00 00 	ld  [ %o0 ], %g1                               
 2004148:	80 a0 40 1d 	cmp  %g1, %i5                                  
 200414c:	02 80 00 06 	be  2004164 <rtems_libio_share_private_env+0x5c>
 2004150:	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;                           
 2004154:	c2 27 21 d8 	st  %g1, [ %i4 + 0x1d8 ]                       
#ifdef HAVE_USERENV_REFCNT                                            
  rtems_current_user_env->refcnt++;                                   
#endif                                                                
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 2004158:	b0 10 00 1b 	mov  %i3, %i0                                  
 200415c:	81 c7 e0 08 	ret                                            
 2004160:	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 );                                             
 2004164:	7f ff ff 8a 	call  2003f8c <free_user_env>                  
 2004168:	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;                           
 200416c:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 2004170:	c2 27 21 d8 	st  %g1, [ %i4 + 0x1d8 ]                       
 2004174:	81 c7 e0 08 	ret                                            
 2004178:	81 e8 00 00 	restore                                        
                                                                      

0200b438 <rtems_libio_to_fcntl_flags>: uint32_t flags ) { uint32_t fcntl_flags = 0; if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) {
 200b438:	84 0a 20 06 	and  %o0, 6, %g2                               
 200b43c:	80 a0 a0 06 	cmp  %g2, 6                                    
 200b440:	02 80 00 05 	be  200b454 <rtems_libio_to_fcntl_flags+0x1c>  <== NEVER TAKEN
 200b444:	82 10 20 02 	mov  2, %g1                                    
    fcntl_flags |= O_RDWR;                                            
  } else if ( (flags & LIBIO_FLAGS_READ) == LIBIO_FLAGS_READ) {       
 200b448:	80 8a 20 02 	btst  2, %o0                                   
 200b44c:	02 80 00 0e 	be  200b484 <rtems_libio_to_fcntl_flags+0x4c>  <== NEVER TAKEN
 200b450:	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 ) {     
 200b454:	80 8a 20 01 	btst  1, %o0                                   
 200b458:	02 80 00 04 	be  200b468 <rtems_libio_to_fcntl_flags+0x30>  
 200b45c:	80 8a 22 00 	btst  0x200, %o0                               
    fcntl_flags |= O_NONBLOCK;                                        
 200b460:	05 00 00 10 	sethi  %hi(0x4000), %g2                        
 200b464:	82 10 40 02 	or  %g1, %g2, %g1                              
  }                                                                   
                                                                      
  if ( (flags & LIBIO_FLAGS_APPEND) == LIBIO_FLAGS_APPEND ) {         
 200b468:	32 80 00 02 	bne,a   200b470 <rtems_libio_to_fcntl_flags+0x38>
 200b46c:	82 10 60 08 	or  %g1, 8, %g1                                
    fcntl_flags |= O_APPEND;                                          
  }                                                                   
                                                                      
  if ( (flags & LIBIO_FLAGS_CREATE) == LIBIO_FLAGS_CREATE ) {         
 200b470:	80 8a 24 00 	btst  0x400, %o0                               
 200b474:	32 80 00 02 	bne,a   200b47c <rtems_libio_to_fcntl_flags+0x44>
 200b478:	82 10 62 00 	or  %g1, 0x200, %g1                            
    fcntl_flags |= O_CREAT;                                           
  }                                                                   
                                                                      
  return fcntl_flags;                                                 
}                                                                     
 200b47c:	81 c3 e0 08 	retl                                           
 200b480:	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) {     
 200b484:	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;                                            
 200b488:	80 a0 00 01 	cmp  %g0, %g1                                  <== NOT EXECUTED
 200b48c:	10 bf ff f2 	b  200b454 <rtems_libio_to_fcntl_flags+0x1c>   <== NOT EXECUTED
 200b490:	82 40 20 00 	addx  %g0, 0, %g1                              <== NOT EXECUTED
                                                                      

02006818 <rtems_malloc_statistics_at_free>: * size and thus we skip updating the statistics. */ static void rtems_malloc_statistics_at_free( void *pointer ) {
 2006818:	9d e3 bf 98 	save  %sp, -104, %sp                           
  uintptr_t size;                                                     
                                                                      
  if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) {
 200681c:	03 00 80 85 	sethi  %hi(0x2021400), %g1                     
 2006820:	d0 00 62 84 	ld  [ %g1 + 0x284 ], %o0	! 2021684 <RTEMS_Malloc_Heap>
 2006824:	92 10 00 18 	mov  %i0, %o1                                  
 2006828:	40 00 19 82 	call  200ce30 <_Protected_heap_Get_block_size> 
 200682c:	94 07 bf fc 	add  %fp, -4, %o2                              
 2006830:	80 8a 20 ff 	btst  0xff, %o0                                
 2006834:	02 80 00 08 	be  2006854 <rtems_malloc_statistics_at_free+0x3c><== NEVER TAKEN
 2006838:	c4 07 bf fc 	ld  [ %fp + -4 ], %g2                          
    MSBUMP(lifetime_freed, size);                                     
 200683c:	03 00 80 8a 	sethi  %hi(0x2022800), %g1                     
 2006840:	82 10 61 b0 	or  %g1, 0x1b0, %g1	! 20229b0 <rtems_malloc_statistics>
 2006844:	d8 18 60 28 	ldd  [ %g1 + 0x28 ], %o4                       
 2006848:	86 83 40 02 	addcc  %o5, %g2, %g3                           
 200684c:	84 43 20 00 	addx  %o4, 0, %g2                              
 2006850:	c4 38 60 28 	std  %g2, [ %g1 + 0x28 ]                       
 2006854:	81 c7 e0 08 	ret                                            
 2006858:	81 e8 00 00 	restore                                        
                                                                      

0200685c <rtems_malloc_statistics_at_malloc>: } static void rtems_malloc_statistics_at_malloc( void *pointer ) {
 200685c:	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 )                                                     
 2006860:	80 a6 20 00 	cmp  %i0, 0                                    
 2006864:	02 80 00 14 	be  20068b4 <rtems_malloc_statistics_at_malloc+0x58><== NEVER TAKEN
 2006868:	c0 27 bf fc 	clr  [ %fp + -4 ]                              
    return;                                                           
                                                                      
  _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size);
 200686c:	03 00 80 85 	sethi  %hi(0x2021400), %g1                     
 2006870:	d0 00 62 84 	ld  [ %g1 + 0x284 ], %o0	! 2021684 <RTEMS_Malloc_Heap>
 2006874:	92 10 00 18 	mov  %i0, %o1                                  
 2006878:	40 00 19 6e 	call  200ce30 <_Protected_heap_Get_block_size> 
 200687c:	94 07 bf fc 	add  %fp, -4, %o2                              
                                                                      
  MSBUMP(lifetime_allocated, actual_size);                            
 2006880:	c4 07 bf fc 	ld  [ %fp + -4 ], %g2                          
 2006884:	03 00 80 8a 	sethi  %hi(0x2022800), %g1                     
 2006888:	82 10 61 b0 	or  %g1, 0x1b0, %g1	! 20229b0 <rtems_malloc_statistics>
 200688c:	d8 18 60 20 	ldd  [ %g1 + 0x20 ], %o4                       
                                                                      
  current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed);
 2006890:	f0 00 60 2c 	ld  [ %g1 + 0x2c ], %i0                        
  if (current_depth > s->max_depth)                                   
 2006894:	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);                            
 2006898:	86 83 40 02 	addcc  %o5, %g2, %g3                           
 200689c:	84 43 20 00 	addx  %o4, 0, %g2                              
 20068a0:	c4 38 60 20 	std  %g2, [ %g1 + 0x20 ]                       
                                                                      
  current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed);
 20068a4:	84 20 c0 18 	sub  %g3, %i0, %g2                             
  if (current_depth > s->max_depth)                                   
 20068a8:	80 a0 80 04 	cmp  %g2, %g4                                  
 20068ac:	38 80 00 02 	bgu,a   20068b4 <rtems_malloc_statistics_at_malloc+0x58>
 20068b0:	c4 20 60 18 	st  %g2, [ %g1 + 0x18 ]                        
 20068b4:	81 c7 e0 08 	ret                                            
 20068b8:	81 e8 00 00 	restore                                        
                                                                      

0200fa50 <rtems_memalign>: int rtems_memalign( void **pointer, size_t alignment, size_t size ) {
 200fa50:	9d e3 bf a0 	save  %sp, -96, %sp                            
 200fa54:	ba 10 00 18 	mov  %i0, %i5                                  
  void *return_this;                                                  
                                                                      
  /*                                                                  
   *  Parameter error checks                                          
   */                                                                 
  if ( !pointer )                                                     
 200fa58:	80 a7 60 00 	cmp  %i5, 0                                    
 200fa5c:	02 80 00 22 	be  200fae4 <rtems_memalign+0x94>              
 200fa60:	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()) &&                    
 200fa64:	03 00 80 66 	sethi  %hi(0x2019800), %g1                     
 200fa68:	c2 00 61 fc 	ld  [ %g1 + 0x1fc ], %g1	! 20199fc <_System_state_Current>
 200fa6c:	80 a0 60 03 	cmp  %g1, 3                                    
 200fa70:	02 80 00 18 	be  200fad0 <rtems_memalign+0x80>              <== ALWAYS TAKEN
 200fa74:	c0 27 40 00 	clr  [ %i5 ]                                   
    return EINVAL;                                                    
                                                                      
  /*                                                                  
   *  If some free's have been deferred, then do them now.            
   */                                                                 
  malloc_deferred_frees_process();                                    
 200fa78:	7f ff d0 75 	call  2003c4c <malloc_deferred_frees_process>  
 200fa7c:	b0 10 20 0c 	mov  0xc, %i0                                  
  Heap_Control *heap,                                                 
  uintptr_t size,                                                     
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return                                                              
 200fa80:	03 00 80 62 	sethi  %hi(0x2018800), %g1                     
 200fa84:	d0 00 63 f8 	ld  [ %g1 + 0x3f8 ], %o0	! 2018bf8 <RTEMS_Malloc_Heap>
 200fa88:	94 10 00 19 	mov  %i1, %o2                                  
 200fa8c:	92 10 00 1a 	mov  %i2, %o1                                  
 200fa90:	7f ff e6 37 	call  200936c <_Protected_heap_Allocate_aligned_with_boundary>
 200fa94:	96 10 20 00 	clr  %o3                                       
  return_this = _Protected_heap_Allocate_aligned(                     
    RTEMS_Malloc_Heap,                                                
    size,                                                             
    alignment                                                         
  );                                                                  
  if ( !return_this )                                                 
 200fa98:	80 a2 20 00 	cmp  %o0, 0                                    
 200fa9c:	02 80 00 12 	be  200fae4 <rtems_memalign+0x94>              
 200faa0:	b2 10 00 08 	mov  %o0, %i1                                  
    return ENOMEM;                                                    
                                                                      
  /*                                                                  
   *  If configured, update the more involved statistics              
   */                                                                 
  if ( rtems_malloc_statistics_helpers )                              
 200faa4:	03 00 80 64 	sethi  %hi(0x2019000), %g1                     
 200faa8:	c2 00 63 98 	ld  [ %g1 + 0x398 ], %g1	! 2019398 <rtems_malloc_statistics_helpers>
 200faac:	80 a0 60 00 	cmp  %g1, 0                                    
 200fab0:	22 80 00 06 	be,a   200fac8 <rtems_memalign+0x78>           
 200fab4:	f2 27 40 00 	st  %i1, [ %i5 ]                               
    (*rtems_malloc_statistics_helpers->at_malloc)(pointer);           
 200fab8:	c2 00 60 04 	ld  [ %g1 + 4 ], %g1                           
 200fabc:	9f c0 40 00 	call  %g1                                      
 200fac0:	90 10 00 1d 	mov  %i5, %o0                                  
                                                                      
  *pointer = return_this;                                             
 200fac4:	f2 27 40 00 	st  %i1, [ %i5 ]                               
  return 0;                                                           
}                                                                     
 200fac8:	81 c7 e0 08 	ret                                            
 200facc:	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() )                                 
 200fad0:	7f ff d0 4d 	call  2003c04 <malloc_is_system_state_OK>      
 200fad4:	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()) &&                    
 200fad8:	80 8a 20 ff 	btst  0xff, %o0                                
 200fadc:	12 bf ff e7 	bne  200fa78 <rtems_memalign+0x28>             <== ALWAYS TAKEN
 200fae0:	01 00 00 00 	nop                                            
  if ( rtems_malloc_statistics_helpers )                              
    (*rtems_malloc_statistics_helpers->at_malloc)(pointer);           
                                                                      
  *pointer = return_this;                                             
  return 0;                                                           
}                                                                     
 200fae4:	81 c7 e0 08 	ret                                            
 200fae8:	81 e8 00 00 	restore                                        
                                                                      

0200df04 <rtems_mkdir>: return (retval); } int rtems_mkdir(const char *path, mode_t mode) {
 200df04:	9d e3 bf 58 	save  %sp, -168, %sp                           
  int success = 0;                                                    
  char *dup_path = strdup(path);                                      
 200df08:	90 10 00 18 	mov  %i0, %o0                                  
 200df0c:	40 00 0a 5d 	call  2010880 <strdup>                         
 200df10:	b0 10 3f ff 	mov  -1, %i0                                   
                                                                      
  if (dup_path != NULL) {                                             
 200df14:	80 a2 20 00 	cmp  %o0, 0                                    
 200df18:	02 80 00 2e 	be  200dfd0 <rtems_mkdir+0xcc>                 <== NEVER TAKEN
 200df1c:	ba 10 00 08 	mov  %o0, %i5                                  
  char *p;                                                            
                                                                      
  p = path;                                                           
  oumask = 0;                                                         
  retval = 1;                                                         
  if (p[0] == '/')    /* Skip leading '/'. */                         
 200df20:	c2 0a 00 00 	ldub  [ %o0 ], %g1                             
 200df24:	83 28 60 18 	sll  %g1, 0x18, %g1                            
 200df28:	85 38 60 18 	sra  %g1, 0x18, %g2                            
 200df2c:	80 a0 a0 2f 	cmp  %g2, 0x2f                                 
 200df30:	02 80 00 58 	be  200e090 <rtems_mkdir+0x18c>                
 200df34:	b8 10 00 08 	mov  %o0, %i4                                  
    ++p;                                                              
  for (first = 1, last = 0; !last ; ++p) {                            
    if (p[0] == '\0')                                                 
 200df38:	83 38 60 18 	sra  %g1, 0x18, %g1                            
  char *p;                                                            
                                                                      
  p = path;                                                           
  oumask = 0;                                                         
  retval = 1;                                                         
  if (p[0] == '/')    /* Skip leading '/'. */                         
 200df3c:	b4 10 20 00 	clr  %i2                                       
 200df40:	84 10 20 01 	mov  1, %g2                                    
        retval = 0;                                                   
        break;                                                        
      }                                                               
    }                                                                 
    if (!last)                                                        
        *p = '/';                                                     
 200df44:	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)) {                            
 200df48:	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')                                                 
 200df4c:	80 a0 60 00 	cmp  %g1, 0                                    
 200df50:	02 80 00 0b 	be  200df7c <rtems_mkdir+0x78>                 <== NEVER TAKEN
 200df54:	21 00 00 10 	sethi  %hi(0x4000), %l0                        
      last = 1;                                                       
    else if (p[0] != '/')                                             
 200df58:	80 a0 60 2f 	cmp  %g1, 0x2f                                 
 200df5c:	22 80 00 49 	be,a   200e080 <rtems_mkdir+0x17c>             
 200df60:	c2 4f 20 01 	ldsb  [ %i4 + 1 ], %g1                         
        retval = 0;                                                   
        break;                                                        
      }                                                               
    }                                                                 
    if (!last)                                                        
        *p = '/';                                                     
 200df64:	c2 0f 20 01 	ldub  [ %i4 + 1 ], %g1                         
 200df68:	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')                                                 
 200df6c:	83 38 60 18 	sra  %g1, 0x18, %g1                            
 200df70:	80 a0 60 00 	cmp  %g1, 0                                    
 200df74:	12 bf ff f9 	bne  200df58 <rtems_mkdir+0x54>                
 200df78:	b8 07 20 01 	inc  %i4                                       
      last = 1;                                                       
    else if (p[0] != '/')                                             
      continue;                                                       
    *p = '\0';                                                        
 200df7c:	c0 2f 00 00 	clrb  [ %i4 ]                                  
 200df80:	b6 10 20 01 	mov  1, %i3                                    
    if (!last && p[1] == '\0')                                        
      last = 1;                                                       
    if (first) {                                                      
 200df84:	80 a0 a0 00 	cmp  %g2, 0                                    
 200df88:	12 80 00 37 	bne  200e064 <rtems_mkdir+0x160>               
 200df8c:	01 00 00 00 	nop                                            
      oumask = umask(0);                                              
      numask = oumask & ~(S_IWUSR | S_IXUSR);                         
      (void)umask(numask);                                            
      first = 0;                                                      
    }                                                                 
    if (last)                                                         
 200df90:	80 a6 e0 00 	cmp  %i3, 0                                    
 200df94:	12 80 00 13 	bne  200dfe0 <rtems_mkdir+0xdc>                
 200df98:	92 10 21 ff 	mov  0x1ff, %o1                                
      (void)umask(oumask);                                            
    if (mkdir(path, last ? omode : S_IRWXU | S_IRWXG | S_IRWXO) < 0) {
 200df9c:	7f ff d9 4e 	call  20044d4 <mkdir>                          
 200dfa0:	90 10 00 1d 	mov  %i5, %o0                                  
 200dfa4:	80 a2 20 00 	cmp  %o0, 0                                    
 200dfa8:	06 80 00 16 	bl  200e000 <rtems_mkdir+0xfc>                 
 200dfac:	80 a6 e0 00 	cmp  %i3, 0                                    
      } else {                                                        
        retval = 0;                                                   
        break;                                                        
      }                                                               
    }                                                                 
    if (!last)                                                        
 200dfb0:	22 80 00 0a 	be,a   200dfd8 <rtems_mkdir+0xd4>              
 200dfb4:	f0 2f 00 00 	stb  %i0, [ %i4 ]                              
 200dfb8:	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);                                                   
 200dfbc:	7f ff d7 6a 	call  2003d64 <free>                           
 200dfc0:	90 10 00 1d 	mov  %i5, %o0                                  
  }                                                                   
                                                                      
  return success != 0 ? 0 : -1;                                       
 200dfc4:	80 a7 20 00 	cmp  %i4, 0                                    
 200dfc8:	02 80 00 48 	be  200e0e8 <rtems_mkdir+0x1e4>                <== NEVER TAKEN
 200dfcc:	b0 10 20 00 	clr  %i0                                       
}                                                                     
 200dfd0:	81 c7 e0 08 	ret                                            
 200dfd4:	81 e8 00 00 	restore                                        
        retval = 0;                                                   
        break;                                                        
      }                                                               
    }                                                                 
    if (!last)                                                        
        *p = '/';                                                     
 200dfd8:	10 bf ff e3 	b  200df64 <rtems_mkdir+0x60>                  
 200dfdc:	84 10 20 00 	clr  %g2                                       
      numask = oumask & ~(S_IWUSR | S_IXUSR);                         
      (void)umask(numask);                                            
      first = 0;                                                      
    }                                                                 
    if (last)                                                         
      (void)umask(oumask);                                            
 200dfe0:	40 00 00 7d 	call  200e1d4 <umask>                          
 200dfe4:	90 10 00 1a 	mov  %i2, %o0                                  
    if (mkdir(path, last ? omode : S_IRWXU | S_IRWXG | S_IRWXO) < 0) {
 200dfe8:	92 10 00 19 	mov  %i1, %o1                                  
 200dfec:	7f ff d9 3a 	call  20044d4 <mkdir>                          
 200dff0:	90 10 00 1d 	mov  %i5, %o0                                  
 200dff4:	80 a2 20 00 	cmp  %o0, 0                                    
 200dff8:	16 bf ff ee 	bge  200dfb0 <rtems_mkdir+0xac>                
 200dffc:	80 a6 e0 00 	cmp  %i3, 0                                    
      if (errno == EEXIST || errno == EISDIR) {                       
 200e000:	40 00 06 8b 	call  200fa2c <__errno>                        
 200e004:	01 00 00 00 	nop                                            
 200e008:	c2 02 00 00 	ld  [ %o0 ], %g1                               
 200e00c:	80 a0 60 11 	cmp  %g1, 0x11                                 
 200e010:	02 80 00 08 	be  200e030 <rtems_mkdir+0x12c>                
 200e014:	90 10 00 1d 	mov  %i5, %o0                                  
 200e018:	40 00 06 85 	call  200fa2c <__errno>                        
 200e01c:	01 00 00 00 	nop                                            
 200e020:	c2 02 00 00 	ld  [ %o0 ], %g1                               
 200e024:	80 a0 60 15 	cmp  %g1, 0x15                                 
 200e028:	12 80 00 32 	bne  200e0f0 <rtems_mkdir+0x1ec>               <== ALWAYS TAKEN
 200e02c:	90 10 00 1d 	mov  %i5, %o0                                  
        if (stat(path, &sb) < 0) {                                    
 200e030:	40 00 00 34 	call  200e100 <stat>                           
 200e034:	92 07 bf b8 	add  %fp, -72, %o1                             
 200e038:	80 a2 20 00 	cmp  %o0, 0                                    
 200e03c:	06 80 00 2d 	bl  200e0f0 <rtems_mkdir+0x1ec>                <== NEVER TAKEN
 200e040:	c2 07 bf c4 	ld  [ %fp + -60 ], %g1                         
          retval = 0;                                                 
          break;                                                      
        } else if (!S_ISDIR(sb.st_mode)) {                            
 200e044:	82 08 40 11 	and  %g1, %l1, %g1                             
 200e048:	80 a0 40 10 	cmp  %g1, %l0                                  
 200e04c:	12 80 00 15 	bne  200e0a0 <rtems_mkdir+0x19c>               
 200e050:	80 a6 e0 00 	cmp  %i3, 0                                    
          else                                                        
            errno = ENOTDIR;                                          
          retval = 0;                                                 
          break;                                                      
        }                                                             
        if (last)                                                     
 200e054:	22 bf ff e1 	be,a   200dfd8 <rtems_mkdir+0xd4>              
 200e058:	f0 2f 00 00 	stb  %i0, [ %i4 ]                              
          retval = 2;                                                 
 200e05c:	10 bf ff d8 	b  200dfbc <rtems_mkdir+0xb8>                  
 200e060:	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);                                              
 200e064:	40 00 00 5c 	call  200e1d4 <umask>                          
 200e068:	90 10 20 00 	clr  %o0                                       
 200e06c:	b4 10 00 08 	mov  %o0, %i2                                  
      numask = oumask & ~(S_IWUSR | S_IXUSR);                         
      (void)umask(numask);                                            
 200e070:	40 00 00 59 	call  200e1d4 <umask>                          
 200e074:	90 0a 3f 3f 	and  %o0, -193, %o0                            
      first = 0;                                                      
    }                                                                 
    if (last)                                                         
 200e078:	10 bf ff c7 	b  200df94 <rtems_mkdir+0x90>                  
 200e07c:	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';                                                        
 200e080:	c0 2f 00 00 	clrb  [ %i4 ]                                  
    if (!last && p[1] == '\0')                                        
 200e084:	80 a0 00 01 	cmp  %g0, %g1                                  
 200e088:	10 bf ff bf 	b  200df84 <rtems_mkdir+0x80>                  
 200e08c:	b6 60 3f ff 	subx  %g0, -1, %i3                             
                                                                      
  p = path;                                                           
  oumask = 0;                                                         
  retval = 1;                                                         
  if (p[0] == '/')    /* Skip leading '/'. */                         
    ++p;                                                              
 200e090:	c2 0a 20 01 	ldub  [ %o0 + 1 ], %g1                         
 200e094:	b8 02 20 01 	add  %o0, 1, %i4                               
 200e098:	10 bf ff a8 	b  200df38 <rtems_mkdir+0x34>                  
 200e09c:	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)                                                   
 200e0a0:	02 80 00 0a 	be  200e0c8 <rtems_mkdir+0x1c4>                
 200e0a4:	01 00 00 00 	nop                                            
            errno = EEXIST;                                           
 200e0a8:	40 00 06 61 	call  200fa2c <__errno>                        
 200e0ac:	b0 10 3f ff 	mov  -1, %i0	! ffffffff <RAM_END+0xfdbfffff>   
 200e0b0:	82 10 20 11 	mov  0x11, %g1                                 
 200e0b4:	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);                                                   
 200e0b8:	7f ff d7 2b 	call  2003d64 <free>                           
 200e0bc:	90 10 00 1d 	mov  %i5, %o0                                  
 200e0c0:	81 c7 e0 08 	ret                                            
 200e0c4:	81 e8 00 00 	restore                                        
          break;                                                      
        } else if (!S_ISDIR(sb.st_mode)) {                            
          if (last)                                                   
            errno = EEXIST;                                           
          else                                                        
            errno = ENOTDIR;                                          
 200e0c8:	40 00 06 59 	call  200fa2c <__errno>                        
 200e0cc:	01 00 00 00 	nop                                            
 200e0d0:	82 10 20 14 	mov  0x14, %g1	! 14 <PROM_START+0x14>          
 200e0d4:	c2 22 00 00 	st  %g1, [ %o0 ]                               
    }                                                                 
    if (!last)                                                        
        *p = '/';                                                     
  }                                                                   
  if (!first && !last)                                                
    (void)umask(oumask);                                              
 200e0d8:	40 00 00 3f 	call  200e1d4 <umask>                          
 200e0dc:	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);                                                   
 200e0e0:	7f ff d7 21 	call  2003d64 <free>                           
 200e0e4:	90 10 00 1d 	mov  %i5, %o0                                  
  }                                                                   
                                                                      
  return success != 0 ? 0 : -1;                                       
}                                                                     
 200e0e8:	81 c7 e0 08 	ret                                            
 200e0ec:	91 e8 3f ff 	restore  %g0, -1, %o0                          
      }                                                               
    }                                                                 
    if (!last)                                                        
        *p = '/';                                                     
  }                                                                   
  if (!first && !last)                                                
 200e0f0:	80 a6 e0 00 	cmp  %i3, 0                                    
 200e0f4:	02 bf ff f9 	be  200e0d8 <rtems_mkdir+0x1d4>                <== NEVER TAKEN
 200e0f8:	01 00 00 00 	nop                                            
 200e0fc:	30 bf ff f9 	b,a   200e0e0 <rtems_mkdir+0x1dc>              
                                                                      

02008154 <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 ) {
 2008154:	9d e3 bf a0 	save  %sp, -96, %sp                            
 2008158:	90 10 00 18 	mov  %i0, %o0                                  
  int                  i;                                             
                                                                      
  /*                                                                  
   * Validate parameters and look up information structure.           
   */                                                                 
  if ( !info )                                                        
 200815c:	80 a6 a0 00 	cmp  %i2, 0                                    
 2008160:	02 80 00 21 	be  20081e4 <rtems_object_get_class_information+0x90>
 2008164:	b0 10 20 09 	mov  9, %i0                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  obj_info = _Objects_Get_information( the_api, the_class );          
 2008168:	93 2e 60 10 	sll  %i1, 0x10, %o1                            
  if ( !obj_info )                                                    
    return RTEMS_INVALID_NUMBER;                                      
 200816c:	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 );          
 2008170:	40 00 07 55 	call  2009ec4 <_Objects_Get_information>       
 2008174:	93 32 60 10 	srl  %o1, 0x10, %o1                            
  if ( !obj_info )                                                    
 2008178:	80 a2 20 00 	cmp  %o0, 0                                    
 200817c:	02 80 00 1a 	be  20081e4 <rtems_object_get_class_information+0x90>
 2008180:	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;                           
 2008184:	c4 02 20 0c 	ld  [ %o0 + 0xc ], %g2                         
  info->auto_extend = obj_info->auto_extend;                          
  info->maximum     = obj_info->maximum;                              
 2008188:	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;                           
 200818c:	c6 02 20 08 	ld  [ %o0 + 8 ], %g3                           
  info->maximum_id  = obj_info->maximum_id;                           
  info->auto_extend = obj_info->auto_extend;                          
 2008190:	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;                           
 2008194:	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;                           
 2008198:	c6 26 80 00 	st  %g3, [ %i2 ]                               
  info->maximum_id  = obj_info->maximum_id;                           
  info->auto_extend = obj_info->auto_extend;                          
 200819c:	c2 2e a0 0c 	stb  %g1, [ %i2 + 0xc ]                        
  info->maximum     = obj_info->maximum;                              
 20081a0:	c8 26 a0 08 	st  %g4, [ %i2 + 8 ]                           
                                                                      
  for ( unallocated=0, i=1 ; i <= info->maximum ; i++ )               
 20081a4:	80 a1 20 00 	cmp  %g4, 0                                    
 20081a8:	02 80 00 0d 	be  20081dc <rtems_object_get_class_information+0x88><== NEVER TAKEN
 20081ac:	84 10 20 00 	clr  %g2                                       
 20081b0:	de 02 20 1c 	ld  [ %o0 + 0x1c ], %o7                        
 20081b4:	86 10 20 01 	mov  1, %g3                                    
 20081b8:	82 10 20 01 	mov  1, %g1                                    
    if ( !obj_info->local_table[i] )                                  
 20081bc:	87 28 e0 02 	sll  %g3, 2, %g3                               
 20081c0:	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++ )               
 20081c4:	82 00 60 01 	inc  %g1                                       
    if ( !obj_info->local_table[i] )                                  
      unallocated++;                                                  
 20081c8:	80 a0 00 03 	cmp  %g0, %g3                                  
 20081cc:	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++ )               
 20081d0:	80 a1 00 01 	cmp  %g4, %g1                                  
 20081d4:	1a bf ff fa 	bcc  20081bc <rtems_object_get_class_information+0x68>
 20081d8:	86 10 00 01 	mov  %g1, %g3                                  
    if ( !obj_info->local_table[i] )                                  
      unallocated++;                                                  
                                                                      
  info->unallocated = unallocated;                                    
 20081dc:	c4 26 a0 10 	st  %g2, [ %i2 + 0x10 ]                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 20081e0:	b0 10 20 00 	clr  %i0                                       
}                                                                     
 20081e4:	81 c7 e0 08 	ret                                            
 20081e8:	81 e8 00 00 	restore                                        
                                                                      

02013e74 <rtems_partition_create>: uint32_t length, uint32_t buffer_size, rtems_attribute attribute_set, rtems_id *id ) {
 2013e74:	9d e3 bf a0 	save  %sp, -96, %sp                            
  register Partition_Control *the_partition;                          
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
 2013e78:	80 a6 20 00 	cmp  %i0, 0                                    
 2013e7c:	12 80 00 04 	bne  2013e8c <rtems_partition_create+0x18>     
 2013e80:	82 10 20 03 	mov  3, %g1                                    
    );                                                                
#endif                                                                
                                                                      
  _Thread_Enable_dispatch();                                          
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 2013e84:	81 c7 e0 08 	ret                                            
 2013e88:	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 )                                            
 2013e8c:	80 a6 60 00 	cmp  %i1, 0                                    
 2013e90:	02 bf ff fd 	be  2013e84 <rtems_partition_create+0x10>      
 2013e94:	82 10 20 09 	mov  9, %g1                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !id )                                                          
 2013e98:	80 a7 60 00 	cmp  %i5, 0                                    
 2013e9c:	02 bf ff fa 	be  2013e84 <rtems_partition_create+0x10>      <== NEVER TAKEN
 2013ea0:	80 a6 e0 00 	cmp  %i3, 0                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( length == 0 || buffer_size == 0 || length < buffer_size ||     
 2013ea4:	02 bf ff f8 	be  2013e84 <rtems_partition_create+0x10>      
 2013ea8:	82 10 20 08 	mov  8, %g1                                    
 2013eac:	80 a6 a0 00 	cmp  %i2, 0                                    
 2013eb0:	02 bf ff f5 	be  2013e84 <rtems_partition_create+0x10>      
 2013eb4:	80 a6 80 1b 	cmp  %i2, %i3                                  
 2013eb8:	0a bf ff f3 	bcs  2013e84 <rtems_partition_create+0x10>     
 2013ebc:	80 8e e0 07 	btst  7, %i3                                   
 2013ec0:	12 bf ff f1 	bne  2013e84 <rtems_partition_create+0x10>     
 2013ec4:	80 8e 60 07 	btst  7, %i1                                   
         !_Partition_Is_buffer_size_aligned( buffer_size ) )          
    return RTEMS_INVALID_SIZE;                                        
                                                                      
  if ( !_Addresses_Is_aligned( starting_address ) )                   
 2013ec8:	12 bf ff ef 	bne  2013e84 <rtems_partition_create+0x10>     
 2013ecc:	82 10 20 09 	mov  9, %g1                                    
 2013ed0:	03 00 80 f0 	sethi  %hi(0x203c000), %g1                     
 2013ed4:	c4 00 62 b0 	ld  [ %g1 + 0x2b0 ], %g2	! 203c2b0 <_Thread_Dispatch_disable_level>
 2013ed8:	84 00 a0 01 	inc  %g2                                       
 2013edc:	c4 20 62 b0 	st  %g2, [ %g1 + 0x2b0 ]                       
 *  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 );
 2013ee0:	23 00 80 f0 	sethi  %hi(0x203c000), %l1                     
 2013ee4:	40 00 12 f6 	call  2018abc <_Objects_Allocate>              
 2013ee8:	90 14 60 c4 	or  %l1, 0xc4, %o0	! 203c0c4 <_Partition_Information>
                                                                      
  _Thread_Disable_dispatch();               /* prevents deletion */   
                                                                      
  the_partition = _Partition_Allocate();                              
                                                                      
  if ( !the_partition ) {                                             
 2013eec:	a0 92 20 00 	orcc  %o0, 0, %l0                              
 2013ef0:	02 80 00 1a 	be  2013f58 <rtems_partition_create+0xe4>      
 2013ef4:	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;               
 2013ef8:	f8 24 20 1c 	st  %i4, [ %l0 + 0x1c ]                        
    _Thread_Enable_dispatch();                                        
    return RTEMS_TOO_MANY;                                            
  }                                                                   
#endif                                                                
                                                                      
  the_partition->starting_address      = starting_address;            
 2013efc:	f2 24 20 10 	st  %i1, [ %l0 + 0x10 ]                        
  the_partition->length                = length;                      
 2013f00:	f4 24 20 14 	st  %i2, [ %l0 + 0x14 ]                        
  the_partition->buffer_size           = buffer_size;                 
 2013f04:	f6 24 20 18 	st  %i3, [ %l0 + 0x18 ]                        
  the_partition->attribute_set         = attribute_set;               
  the_partition->number_of_used_blocks = 0;                           
 2013f08:	c0 24 20 20 	clr  [ %l0 + 0x20 ]                            
                                                                      
  _Chain_Initialize( &the_partition->Memory, starting_address,        
                        length / buffer_size, buffer_size );          
 2013f0c:	40 00 61 08 	call  202c32c <.udiv>                          
 2013f10:	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,        
 2013f14:	92 10 00 19 	mov  %i1, %o1                                  
                        length / buffer_size, buffer_size );          
 2013f18:	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,        
 2013f1c:	96 10 00 1b 	mov  %i3, %o3                                  
 2013f20:	b8 04 20 24 	add  %l0, 0x24, %i4                            
 2013f24:	40 00 0c b1 	call  20171e8 <_Chain_Initialize>              
 2013f28:	90 10 00 1c 	mov  %i4, %o0                                  
  Objects_Information *information,                                   
  Objects_Control     *the_object,                                    
  Objects_Name         name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
 2013f2c:	c4 14 20 0a 	lduh  [ %l0 + 0xa ], %g2                       
    );                                                                
#endif                                                                
                                                                      
  _Thread_Enable_dispatch();                                          
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 2013f30:	a2 14 60 c4 	or  %l1, 0xc4, %l1                             
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 2013f34:	c6 04 60 1c 	ld  [ %l1 + 0x1c ], %g3                        
  Objects_Information *information,                                   
  Objects_Control     *the_object,                                    
  Objects_Name         name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
 2013f38:	c2 04 20 08 	ld  [ %l0 + 8 ], %g1                           
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 2013f3c:	85 28 a0 02 	sll  %g2, 2, %g2                               
 2013f40:	e0 20 c0 02 	st  %l0, [ %g3 + %g2 ]                         
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  the_object->name = name;                                            
 2013f44:	f0 24 20 0c 	st  %i0, [ %l0 + 0xc ]                         
      name,                                                           
      0                  /* Not used */                               
    );                                                                
#endif                                                                
                                                                      
  _Thread_Enable_dispatch();                                          
 2013f48:	40 00 17 e4 	call  2019ed8 <_Thread_Enable_dispatch>        
 2013f4c:	c2 27 40 00 	st  %g1, [ %i5 ]                               
  return RTEMS_SUCCESSFUL;                                            
 2013f50:	10 bf ff cd 	b  2013e84 <rtems_partition_create+0x10>       
 2013f54:	82 10 20 00 	clr  %g1                                       
  _Thread_Disable_dispatch();               /* prevents deletion */   
                                                                      
  the_partition = _Partition_Allocate();                              
                                                                      
  if ( !the_partition ) {                                             
    _Thread_Enable_dispatch();                                        
 2013f58:	40 00 17 e0 	call  2019ed8 <_Thread_Enable_dispatch>        
 2013f5c:	01 00 00 00 	nop                                            
    return RTEMS_TOO_MANY;                                            
 2013f60:	10 bf ff c9 	b  2013e84 <rtems_partition_create+0x10>       
 2013f64:	82 10 20 05 	mov  5, %g1	! 5 <PROM_START+0x5>               
                                                                      

020075d0 <rtems_rate_monotonic_period>: rtems_status_code rtems_rate_monotonic_period( rtems_id id, rtems_interval length ) {
 20075d0:	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 *)                                   
 20075d4:	11 00 80 77 	sethi  %hi(0x201dc00), %o0                     
 20075d8:	92 10 00 18 	mov  %i0, %o1                                  
 20075dc:	90 12 21 04 	or  %o0, 0x104, %o0                            
 20075e0:	40 00 09 43 	call  2009aec <_Objects_Get>                   
 20075e4:	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 ) {                                               
 20075e8:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 20075ec:	80 a0 60 00 	cmp  %g1, 0                                    
 20075f0:	12 80 00 0d 	bne  2007624 <rtems_rate_monotonic_period+0x54>
 20075f4:	ba 10 00 08 	mov  %o0, %i5                                  
    case OBJECTS_LOCAL:                                               
      if ( !_Thread_Is_executing( the_period->owner ) ) {             
 20075f8:	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 );                         
 20075fc:	39 00 80 78 	sethi  %hi(0x201e000), %i4                     
 2007600:	b8 17 20 9c 	or  %i4, 0x9c, %i4	! 201e09c <_Per_CPU_Information>
 2007604:	c2 07 20 0c 	ld  [ %i4 + 0xc ], %g1                         
 2007608:	80 a0 80 01 	cmp  %g2, %g1                                  
 200760c:	02 80 00 08 	be  200762c <rtems_rate_monotonic_period+0x5c> 
 2007610:	80 a6 60 00 	cmp  %i1, 0                                    
        _Thread_Enable_dispatch();                                    
 2007614:	40 00 0c e2 	call  200a99c <_Thread_Enable_dispatch>        
 2007618:	b0 10 20 17 	mov  0x17, %i0                                 
        return RTEMS_NOT_OWNER_OF_RESOURCE;                           
 200761c:	81 c7 e0 08 	ret                                            
 2007620:	81 e8 00 00 	restore                                        
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 2007624:	81 c7 e0 08 	ret                                            
 2007628:	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 ) {                          
 200762c:	12 80 00 0e 	bne  2007664 <rtems_rate_monotonic_period+0x94>
 2007630:	01 00 00 00 	nop                                            
        switch ( the_period->state ) {                                
 2007634:	c2 02 20 38 	ld  [ %o0 + 0x38 ], %g1                        
 2007638:	80 a0 60 04 	cmp  %g1, 4                                    
 200763c:	18 80 00 06 	bgu  2007654 <rtems_rate_monotonic_period+0x84><== NEVER TAKEN
 2007640:	b0 10 20 00 	clr  %i0                                       
 2007644:	83 28 60 02 	sll  %g1, 2, %g1                               
 2007648:	05 00 80 6f 	sethi  %hi(0x201bc00), %g2                     
 200764c:	84 10 a1 4c 	or  %g2, 0x14c, %g2	! 201bd4c <CSWTCH.2>       
 2007650:	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();                                    
 2007654:	40 00 0c d2 	call  200a99c <_Thread_Enable_dispatch>        
 2007658:	01 00 00 00 	nop                                            
        return RTEMS_TIMEOUT;                                         
 200765c:	81 c7 e0 08 	ret                                            
 2007660:	81 e8 00 00 	restore                                        
        }                                                             
        _Thread_Enable_dispatch();                                    
        return( return_value );                                       
      }                                                               
                                                                      
      _ISR_Disable( level );                                          
 2007664:	7f ff ed e2 	call  2002dec <sparc_disable_interrupts>       
 2007668:	01 00 00 00 	nop                                            
 200766c:	b4 10 00 08 	mov  %o0, %i2                                  
      if ( the_period->state == RATE_MONOTONIC_INACTIVE ) {           
 2007670:	f6 07 60 38 	ld  [ %i5 + 0x38 ], %i3                        
 2007674:	80 a6 e0 00 	cmp  %i3, 0                                    
 2007678:	02 80 00 14 	be  20076c8 <rtems_rate_monotonic_period+0xf8> 
 200767c:	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 ) {             
 2007680:	02 80 00 29 	be  2007724 <rtems_rate_monotonic_period+0x154>
 2007684:	80 a6 e0 04 	cmp  %i3, 4                                    
                                                                      
        _Thread_Enable_dispatch();                                    
        return RTEMS_SUCCESSFUL;                                      
      }                                                               
                                                                      
      if ( the_period->state == RATE_MONOTONIC_EXPIRED ) {            
 2007688:	12 bf ff e5 	bne  200761c <rtems_rate_monotonic_period+0x4c><== NEVER TAKEN
 200768c:	b0 10 20 04 	mov  4, %i0                                    
        /*                                                            
         *  Update statistics from the concluding period              
         */                                                           
        _Rate_monotonic_Update_statistics( the_period );              
 2007690:	7f ff ff 92 	call  20074d8 <_Rate_monotonic_Update_statistics>
 2007694:	90 10 00 1d 	mov  %i5, %o0                                  
                                                                      
        _ISR_Enable( level );                                         
 2007698:	7f ff ed d9 	call  2002dfc <sparc_enable_interrupts>        
 200769c:	90 10 00 1a 	mov  %i2, %o0                                  
                                                                      
        the_period->state = RATE_MONOTONIC_ACTIVE;                    
 20076a0:	82 10 20 02 	mov  2, %g1                                    
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 20076a4:	92 07 60 10 	add  %i5, 0x10, %o1                            
 20076a8:	11 00 80 77 	sethi  %hi(0x201dc00), %o0                     
        the_period->next_length = length;                             
 20076ac:	f2 27 60 3c 	st  %i1, [ %i5 + 0x3c ]                        
 20076b0:	90 12 23 34 	or  %o0, 0x334, %o0                            
         */                                                           
        _Rate_monotonic_Update_statistics( the_period );              
                                                                      
        _ISR_Enable( level );                                         
                                                                      
        the_period->state = RATE_MONOTONIC_ACTIVE;                    
 20076b4:	c2 27 60 38 	st  %g1, [ %i5 + 0x38 ]                        
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
 20076b8:	f2 27 60 1c 	st  %i1, [ %i5 + 0x1c ]                        
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 20076bc:	40 00 10 e6 	call  200ba54 <_Watchdog_Insert>               
 20076c0:	b0 10 20 06 	mov  6, %i0                                    
 20076c4:	30 bf ff e4 	b,a   2007654 <rtems_rate_monotonic_period+0x84>
        return( return_value );                                       
      }                                                               
                                                                      
      _ISR_Disable( level );                                          
      if ( the_period->state == RATE_MONOTONIC_INACTIVE ) {           
        _ISR_Enable( level );                                         
 20076c8:	7f ff ed cd 	call  2002dfc <sparc_enable_interrupts>        
 20076cc:	01 00 00 00 	nop                                            
                                                                      
        /*                                                            
         *  Baseline statistics information for the beginning of a period.
         */                                                           
        _Rate_monotonic_Initiate_statistics( the_period );            
 20076d0:	7f ff ff 68 	call  2007470 <_Rate_monotonic_Initiate_statistics>
 20076d4:	90 10 00 1d 	mov  %i5, %o0                                  
                                                                      
        the_period->state = RATE_MONOTONIC_ACTIVE;                    
 20076d8:	82 10 20 02 	mov  2, %g1                                    
 20076dc:	92 07 60 10 	add  %i5, 0x10, %o1                            
 20076e0:	c2 27 60 38 	st  %g1, [ %i5 + 0x38 ]                        
 20076e4:	11 00 80 77 	sethi  %hi(0x201dc00), %o0                     
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
 20076e8:	03 00 80 1e 	sethi  %hi(0x2007800), %g1                     
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 20076ec:	90 12 23 34 	or  %o0, 0x334, %o0                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
 20076f0:	82 10 62 74 	or  %g1, 0x274, %g1                            
  the_watchdog->id        = id;                                       
 20076f4:	f0 27 60 30 	st  %i0, [ %i5 + 0x30 ]                        
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
 20076f8:	c2 27 60 2c 	st  %g1, [ %i5 + 0x2c ]                        
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
 20076fc:	c0 27 60 18 	clr  [ %i5 + 0x18 ]                            
  the_watchdog->routine   = routine;                                  
  the_watchdog->id        = id;                                       
  the_watchdog->user_data = user_data;                                
 2007700:	c0 27 60 34 	clr  [ %i5 + 0x34 ]                            
          _Rate_monotonic_Timeout,                                    
          id,                                                         
          NULL                                                        
        );                                                            
                                                                      
        the_period->next_length = length;                             
 2007704:	f2 27 60 3c 	st  %i1, [ %i5 + 0x3c ]                        
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
 2007708:	f2 27 60 1c 	st  %i1, [ %i5 + 0x1c ]                        
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 200770c:	40 00 10 d2 	call  200ba54 <_Watchdog_Insert>               
 2007710:	b0 10 20 00 	clr  %i0                                       
                                                                      
        _Watchdog_Insert_ticks( &the_period->Timer, length );         
        _Thread_Enable_dispatch();                                    
 2007714:	40 00 0c a2 	call  200a99c <_Thread_Enable_dispatch>        
 2007718:	01 00 00 00 	nop                                            
        return RTEMS_SUCCESSFUL;                                      
 200771c:	81 c7 e0 08 	ret                                            
 2007720:	81 e8 00 00 	restore                                        
                                                                      
      if ( the_period->state == RATE_MONOTONIC_ACTIVE ) {             
        /*                                                            
         *  Update statistics from the concluding period.             
         */                                                           
        _Rate_monotonic_Update_statistics( the_period );              
 2007724:	7f ff ff 6d 	call  20074d8 <_Rate_monotonic_Update_statistics>
 2007728:	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;         
 200772c:	82 10 20 01 	mov  1, %g1                                    
        the_period->next_length = length;                             
 2007730:	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;         
 2007734:	c2 27 60 38 	st  %g1, [ %i5 + 0x38 ]                        
        the_period->next_length = length;                             
                                                                      
        _ISR_Enable( level );                                         
 2007738:	7f ff ed b1 	call  2002dfc <sparc_enable_interrupts>        
 200773c:	90 10 00 1a 	mov  %i2, %o0                                  
                                                                      
        _Thread_Executing->Wait.id = the_period->Object.id;           
 2007740:	c2 07 20 0c 	ld  [ %i4 + 0xc ], %g1                         
 2007744:	c4 07 60 08 	ld  [ %i5 + 8 ], %g2                           
        _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
 2007748:	90 10 00 01 	mov  %g1, %o0                                  
 200774c:	13 00 00 10 	sethi  %hi(0x4000), %o1                        
 2007750:	40 00 0e e0 	call  200b2d0 <_Thread_Set_state>              
 2007754:	c4 20 60 20 	st  %g2, [ %g1 + 0x20 ]                        
                                                                      
        /*                                                            
         *  Did the watchdog timer expire while we were actually blocking
         *  on it?                                                    
         */                                                           
        _ISR_Disable( level );                                        
 2007758:	7f ff ed a5 	call  2002dec <sparc_disable_interrupts>       
 200775c:	01 00 00 00 	nop                                            
          local_state = the_period->state;                            
 2007760:	f4 07 60 38 	ld  [ %i5 + 0x38 ], %i2                        
          the_period->state = RATE_MONOTONIC_ACTIVE;                  
 2007764:	f6 27 60 38 	st  %i3, [ %i5 + 0x38 ]                        
        _ISR_Enable( level );                                         
 2007768:	7f ff ed a5 	call  2002dfc <sparc_enable_interrupts>        
 200776c:	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 )   
 2007770:	80 a6 a0 03 	cmp  %i2, 3                                    
 2007774:	22 80 00 06 	be,a   200778c <rtems_rate_monotonic_period+0x1bc>
 2007778:	d0 07 20 0c 	ld  [ %i4 + 0xc ], %o0                         
          _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
                                                                      
        _Thread_Enable_dispatch();                                    
 200777c:	40 00 0c 88 	call  200a99c <_Thread_Enable_dispatch>        
 2007780:	b0 10 20 00 	clr  %i0                                       
        return RTEMS_SUCCESSFUL;                                      
 2007784:	81 c7 e0 08 	ret                                            
 2007788:	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 );
 200778c:	40 00 0b 95 	call  200a5e0 <_Thread_Clear_state>            
 2007790:	13 00 00 10 	sethi  %hi(0x4000), %o1                        
 2007794:	30 bf ff fa 	b,a   200777c <rtems_rate_monotonic_period+0x1ac>
                                                                      

02007798 <rtems_rate_monotonic_report_statistics_with_plugin>: */ void rtems_rate_monotonic_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) {
 2007798:	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 )                                                       
 200779c:	80 a6 60 00 	cmp  %i1, 0                                    
 20077a0:	02 80 00 48 	be  20078c0 <rtems_rate_monotonic_report_statistics_with_plugin+0x128><== NEVER TAKEN
 20077a4:	90 10 00 18 	mov  %i0, %o0                                  
    return;                                                           
                                                                      
  (*print)( context, "Period information by period\n" );              
 20077a8:	13 00 80 6f 	sethi  %hi(0x201bc00), %o1                     
 20077ac:	9f c6 40 00 	call  %i1                                      
 20077b0:	92 12 61 60 	or  %o1, 0x160, %o1	! 201bd60 <CSWTCH.2+0x14>  
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    (*print)( context, "--- CPU times are in seconds ---\n" );        
 20077b4:	90 10 00 18 	mov  %i0, %o0                                  
 20077b8:	13 00 80 6f 	sethi  %hi(0x201bc00), %o1                     
 20077bc:	9f c6 40 00 	call  %i1                                      
 20077c0:	92 12 61 80 	or  %o1, 0x180, %o1	! 201bd80 <CSWTCH.2+0x34>  
    (*print)( context, "--- Wall times are in seconds ---\n" );       
 20077c4:	90 10 00 18 	mov  %i0, %o0                                  
 20077c8:	13 00 80 6f 	sethi  %hi(0x201bc00), %o1                     
 20077cc:	9f c6 40 00 	call  %i1                                      
 20077d0:	92 12 61 a8 	or  %o1, 0x1a8, %o1	! 201bda8 <CSWTCH.2+0x5c>  
  Be sure to test the various cases.                                  
  (*print)( context,"\                                                
1234567890123456789012345678901234567890123456789012345678901234567890123456789\
\n");                                                                 
*/                                                                    
  (*print)( context, "   ID     OWNER COUNT MISSED     "              
 20077d4:	90 10 00 18 	mov  %i0, %o0                                  
 20077d8:	13 00 80 6f 	sethi  %hi(0x201bc00), %o1                     
 20077dc:	9f c6 40 00 	call  %i1                                      
 20077e0:	92 12 61 d0 	or  %o1, 0x1d0, %o1	! 201bdd0 <CSWTCH.2+0x84>  
       #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                     
          "          "                                                
       #endif                                                         
          "   WALL TIME\n"                                            
  );                                                                  
  (*print)( context, "                               "                
 20077e4:	90 10 00 18 	mov  %i0, %o0                                  
 20077e8:	13 00 80 6f 	sethi  %hi(0x201bc00), %o1                     
 20077ec:	9f c6 40 00 	call  %i1                                      
 20077f0:	92 12 62 20 	or  %o1, 0x220, %o1	! 201be20 <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 ;                   
 20077f4:	39 00 80 77 	sethi  %hi(0x201dc00), %i4                     
 20077f8:	b8 17 21 04 	or  %i4, 0x104, %i4	! 201dd04 <_Rate_monotonic_Information>
 20077fc:	fa 07 20 08 	ld  [ %i4 + 8 ], %i5                           
 2007800:	c2 07 20 0c 	ld  [ %i4 + 0xc ], %g1                         
 2007804:	80 a7 40 01 	cmp  %i5, %g1                                  
 2007808:	18 80 00 2e 	bgu  20078c0 <rtems_rate_monotonic_report_statistics_with_plugin+0x128><== NEVER TAKEN
 200780c:	35 00 80 6f 	sethi  %hi(0x201bc00), %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,                                              
 2007810:	23 00 80 6f 	sethi  %hi(0x201bc00), %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,                                              
 2007814:	21 00 80 6f 	sethi  %hi(0x201bc00), %l0                     
                                                                      
    /*                                                                
     *  If the count is zero, don't print statistics                  
     */                                                               
    if (the_stats.count == 0) {                                       
      (*print)( context, "\n" );                                      
 2007818:	37 00 80 6c 	sethi  %hi(0x201b000), %i3                     
    rtems_object_get_name( the_status.owner, sizeof(name), name );    
                                                                      
    /*                                                                
     *  Print part of report line that is not dependent on granularity
     */                                                               
    (*print)( context,                                                
 200781c:	b4 16 a2 70 	or  %i2, 0x270, %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,                                              
 2007820:	a2 14 62 88 	or  %l1, 0x288, %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,                                              
 2007824:	a0 14 22 a8 	or  %l0, 0x2a8, %l0                            
                                                                      
    /*                                                                
     *  If the count is zero, don't print statistics                  
     */                                                               
    if (the_stats.count == 0) {                                       
      (*print)( context, "\n" );                                      
 2007828:	10 80 00 06 	b  2007840 <rtems_rate_monotonic_report_statistics_with_plugin+0xa8>
 200782c:	b6 16 e0 68 	or  %i3, 0x68, %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++ ) {                                                      
 2007830:	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 ;                   
 2007834:	80 a0 40 1d 	cmp  %g1, %i5                                  
 2007838:	0a 80 00 22 	bcs  20078c0 <rtems_rate_monotonic_report_statistics_with_plugin+0x128>
 200783c:	01 00 00 00 	nop                                            
        id <= _Rate_monotonic_Information.maximum_id ;                
        id++ ) {                                                      
    status = rtems_rate_monotonic_get_statistics( id, &the_stats );   
 2007840:	90 10 00 1d 	mov  %i5, %o0                                  
 2007844:	40 00 18 a9 	call  200dae8 <rtems_rate_monotonic_get_statistics>
 2007848:	92 07 bf a0 	add  %fp, -96, %o1                             
    if ( status != RTEMS_SUCCESSFUL )                                 
 200784c:	80 a2 20 00 	cmp  %o0, 0                                    
 2007850:	32 bf ff f8 	bne,a   2007830 <rtems_rate_monotonic_report_statistics_with_plugin+0x98>
 2007854:	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 );      
 2007858:	92 07 bf d8 	add  %fp, -40, %o1                             
 200785c:	40 00 18 d2 	call  200dba4 <rtems_rate_monotonic_get_status>
 2007860:	90 10 00 1d 	mov  %i5, %o0                                  
    #endif                                                            
                                                                      
    rtems_object_get_name( the_status.owner, sizeof(name), name );    
 2007864:	d0 07 bf d8 	ld  [ %fp + -40 ], %o0                         
 2007868:	92 10 20 05 	mov  5, %o1                                    
 200786c:	40 00 00 b2 	call  2007b34 <rtems_object_get_name>          
 2007870:	94 07 bf f8 	add  %fp, -8, %o2                              
                                                                      
    /*                                                                
     *  Print part of report line that is not dependent on granularity
     */                                                               
    (*print)( context,                                                
 2007874:	d8 1f bf a0 	ldd  [ %fp + -96 ], %o4                        
 2007878:	92 10 00 1a 	mov  %i2, %o1                                  
 200787c:	94 10 00 1d 	mov  %i5, %o2                                  
 2007880:	90 10 00 18 	mov  %i0, %o0                                  
 2007884:	9f c6 40 00 	call  %i1                                      
 2007888:	96 07 bf f8 	add  %fp, -8, %o3                              
    );                                                                
                                                                      
    /*                                                                
     *  If the count is zero, don't print statistics                  
     */                                                               
    if (the_stats.count == 0) {                                       
 200788c:	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 );
 2007890:	94 07 bf f0 	add  %fp, -16, %o2                             
 2007894:	90 07 bf b8 	add  %fp, -72, %o0                             
    );                                                                
                                                                      
    /*                                                                
     *  If the count is zero, don't print statistics                  
     */                                                               
    if (the_stats.count == 0) {                                       
 2007898:	80 a0 60 00 	cmp  %g1, 0                                    
 200789c:	12 80 00 0b 	bne  20078c8 <rtems_rate_monotonic_report_statistics_with_plugin+0x130>
 20078a0:	92 10 00 1b 	mov  %i3, %o1                                  
      (*print)( context, "\n" );                                      
 20078a4:	9f c6 40 00 	call  %i1                                      
 20078a8:	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 ;                   
 20078ac:	c2 07 20 0c 	ld  [ %i4 + 0xc ], %g1                         
        id <= _Rate_monotonic_Information.maximum_id ;                
        id++ ) {                                                      
 20078b0:	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 ;                   
 20078b4:	80 a0 40 1d 	cmp  %g1, %i5                                  
 20078b8:	1a bf ff e3 	bcc  2007844 <rtems_rate_monotonic_report_statistics_with_plugin+0xac><== ALWAYS TAKEN
 20078bc:	90 10 00 1d 	mov  %i5, %o0                                  
 20078c0:	81 c7 e0 08 	ret                                            
 20078c4:	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 );
 20078c8:	40 00 0f 27 	call  200b564 <_Timespec_Divide_by_integer>    
 20078cc:	92 10 00 01 	mov  %g1, %o1                                  
      (*print)( context,                                              
 20078d0:	d0 07 bf ac 	ld  [ %fp + -84 ], %o0                         
 20078d4:	40 00 45 aa 	call  2018f7c <.div>                           
 20078d8:	92 10 23 e8 	mov  0x3e8, %o1                                
 20078dc:	aa 10 00 08 	mov  %o0, %l5                                  
 20078e0:	d0 07 bf b4 	ld  [ %fp + -76 ], %o0                         
 20078e4:	40 00 45 a6 	call  2018f7c <.div>                           
 20078e8:	92 10 23 e8 	mov  0x3e8, %o1                                
 20078ec:	c2 07 bf f0 	ld  [ %fp + -16 ], %g1                         
 20078f0:	a6 10 00 08 	mov  %o0, %l3                                  
 20078f4:	d0 07 bf f4 	ld  [ %fp + -12 ], %o0                         
 20078f8:	e4 07 bf a8 	ld  [ %fp + -88 ], %l2                         
 20078fc:	e8 07 bf b0 	ld  [ %fp + -80 ], %l4                         
 2007900:	c2 23 a0 5c 	st  %g1, [ %sp + 0x5c ]                        
 2007904:	40 00 45 9e 	call  2018f7c <.div>                           
 2007908:	92 10 23 e8 	mov  0x3e8, %o1                                
 200790c:	96 10 00 15 	mov  %l5, %o3                                  
 2007910:	98 10 00 14 	mov  %l4, %o4                                  
 2007914:	9a 10 00 13 	mov  %l3, %o5                                  
 2007918:	d0 23 a0 60 	st  %o0, [ %sp + 0x60 ]                        
 200791c:	92 10 00 11 	mov  %l1, %o1                                  
 2007920:	94 10 00 12 	mov  %l2, %o2                                  
 2007924:	9f c6 40 00 	call  %i1                                      
 2007928:	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);
 200792c:	d2 07 bf a0 	ld  [ %fp + -96 ], %o1                         
 2007930:	94 07 bf f0 	add  %fp, -16, %o2                             
 2007934:	40 00 0f 0c 	call  200b564 <_Timespec_Divide_by_integer>    
 2007938:	90 07 bf d0 	add  %fp, -48, %o0                             
      (*print)( context,                                              
 200793c:	d0 07 bf c4 	ld  [ %fp + -60 ], %o0                         
 2007940:	40 00 45 8f 	call  2018f7c <.div>                           
 2007944:	92 10 23 e8 	mov  0x3e8, %o1                                
 2007948:	a8 10 00 08 	mov  %o0, %l4                                  
 200794c:	d0 07 bf cc 	ld  [ %fp + -52 ], %o0                         
 2007950:	40 00 45 8b 	call  2018f7c <.div>                           
 2007954:	92 10 23 e8 	mov  0x3e8, %o1                                
 2007958:	c2 07 bf f0 	ld  [ %fp + -16 ], %g1                         
 200795c:	a4 10 00 08 	mov  %o0, %l2                                  
 2007960:	d0 07 bf f4 	ld  [ %fp + -12 ], %o0                         
 2007964:	ea 07 bf c0 	ld  [ %fp + -64 ], %l5                         
 2007968:	e6 07 bf c8 	ld  [ %fp + -56 ], %l3                         
 200796c:	92 10 23 e8 	mov  0x3e8, %o1                                
 2007970:	40 00 45 83 	call  2018f7c <.div>                           
 2007974:	c2 23 a0 5c 	st  %g1, [ %sp + 0x5c ]                        
 2007978:	92 10 00 10 	mov  %l0, %o1                                  
 200797c:	d0 23 a0 60 	st  %o0, [ %sp + 0x60 ]                        
 2007980:	94 10 00 15 	mov  %l5, %o2                                  
 2007984:	90 10 00 18 	mov  %i0, %o0                                  
 2007988:	96 10 00 14 	mov  %l4, %o3                                  
 200798c:	98 10 00 13 	mov  %l3, %o4                                  
 2007990:	9f c6 40 00 	call  %i1                                      
 2007994:	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 ;                   
 2007998:	10 bf ff a6 	b  2007830 <rtems_rate_monotonic_report_statistics_with_plugin+0x98>
 200799c:	c2 07 20 0c 	ld  [ %i4 + 0xc ], %g1                         
                                                                      

020079b8 <rtems_rate_monotonic_reset_all_statistics>: /* * rtems_rate_monotonic_reset_all_statistics */ void rtems_rate_monotonic_reset_all_statistics( void ) {
 20079b8:	9d e3 bf a0 	save  %sp, -96, %sp                            
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
 20079bc:	03 00 80 77 	sethi  %hi(0x201dc00), %g1                     
 20079c0:	c4 00 62 70 	ld  [ %g1 + 0x270 ], %g2	! 201de70 <_Thread_Dispatch_disable_level>
 20079c4:	84 00 a0 01 	inc  %g2                                       
 20079c8:	c4 20 62 70 	st  %g2, [ %g1 + 0x270 ]                       
                                                                      
    /*                                                                
     * 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 ;                 
 20079cc:	39 00 80 77 	sethi  %hi(0x201dc00), %i4                     
 20079d0:	b8 17 21 04 	or  %i4, 0x104, %i4	! 201dd04 <_Rate_monotonic_Information>
 20079d4:	fa 07 20 08 	ld  [ %i4 + 8 ], %i5                           
 20079d8:	c2 07 20 0c 	ld  [ %i4 + 0xc ], %g1                         
 20079dc:	80 a7 40 01 	cmp  %i5, %g1                                  
 20079e0:	18 80 00 09 	bgu  2007a04 <rtems_rate_monotonic_reset_all_statistics+0x4c><== NEVER TAKEN
 20079e4:	01 00 00 00 	nop                                            
          id <= _Rate_monotonic_Information.maximum_id ;              
          id++ ) {                                                    
      (void) rtems_rate_monotonic_reset_statistics( id );             
 20079e8:	40 00 00 09 	call  2007a0c <rtems_rate_monotonic_reset_statistics>
 20079ec:	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 ;                 
 20079f0:	c2 07 20 0c 	ld  [ %i4 + 0xc ], %g1                         
          id <= _Rate_monotonic_Information.maximum_id ;              
          id++ ) {                                                    
 20079f4:	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 ;                 
 20079f8:	80 a0 40 1d 	cmp  %g1, %i5                                  
 20079fc:	1a bf ff fb 	bcc  20079e8 <rtems_rate_monotonic_reset_all_statistics+0x30>
 2007a00:	01 00 00 00 	nop                                            
    }                                                                 
                                                                      
  /*                                                                  
   *  Done so exit thread dispatching disabled critical section.      
   */                                                                 
  _Thread_Enable_dispatch();                                          
 2007a04:	40 00 0b e6 	call  200a99c <_Thread_Enable_dispatch>        
 2007a08:	81 e8 00 00 	restore                                        
                                                                      

02015418 <rtems_signal_send>: rtems_status_code rtems_signal_send( rtems_id id, rtems_signal_set signal_set ) {
 2015418:	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 )                                                  
 201541c:	80 a6 60 00 	cmp  %i1, 0                                    
 2015420:	12 80 00 04 	bne  2015430 <rtems_signal_send+0x18>          
 2015424:	82 10 20 0a 	mov  0xa, %g1                                  
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 2015428:	81 c7 e0 08 	ret                                            
 201542c:	91 e8 00 01 	restore  %g0, %g1, %o0                         
  ASR_Information         *asr;                                       
                                                                      
  if ( !signal_set )                                                  
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 2015430:	90 10 00 18 	mov  %i0, %o0                                  
 2015434:	40 00 12 b5 	call  2019f08 <_Thread_Get>                    
 2015438:	92 07 bf fc 	add  %fp, -4, %o1                              
  switch ( location ) {                                               
 201543c:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 2015440:	80 a0 60 00 	cmp  %g1, 0                                    
 2015444:	12 80 00 20 	bne  20154c4 <rtems_signal_send+0xac>          
 2015448:	b8 10 00 08 	mov  %o0, %i4                                  
                                                                      
    case OBJECTS_LOCAL:                                               
      api = the_thread->API_Extensions[ THREAD_API_RTEMS ];           
 201544c:	fa 02 21 58 	ld  [ %o0 + 0x158 ], %i5                       
      asr = &api->Signal;                                             
                                                                      
      if ( ! _ASR_Is_null_handler( asr->handler ) ) {                 
 2015450:	c2 07 60 0c 	ld  [ %i5 + 0xc ], %g1                         
 2015454:	80 a0 60 00 	cmp  %g1, 0                                    
 2015458:	02 80 00 1e 	be  20154d0 <rtems_signal_send+0xb8>           
 201545c:	01 00 00 00 	nop                                            
        if ( asr->is_enabled ) {                                      
 2015460:	c2 0f 60 08 	ldub  [ %i5 + 8 ], %g1                         
 2015464:	80 a0 60 00 	cmp  %g1, 0                                    
 2015468:	02 80 00 1e 	be  20154e0 <rtems_signal_send+0xc8>           
 201546c:	01 00 00 00 	nop                                            
  rtems_signal_set *signal_set                                        
)                                                                     
{                                                                     
  ISR_Level              _level;                                      
                                                                      
  _ISR_Disable( _level );                                             
 2015470:	7f ff e6 9a 	call  200eed8 <sparc_disable_interrupts>       
 2015474:	01 00 00 00 	nop                                            
    *signal_set |= signals;                                           
 2015478:	c2 07 60 14 	ld  [ %i5 + 0x14 ], %g1                        
 201547c:	b2 10 40 19 	or  %g1, %i1, %i1                              
 2015480:	f2 27 60 14 	st  %i1, [ %i5 + 0x14 ]                        
  _ISR_Enable( _level );                                              
 2015484:	7f ff e6 99 	call  200eee8 <sparc_enable_interrupts>        
 2015488:	01 00 00 00 	nop                                            
          _ASR_Post_signals( signal_set, &asr->signals_posted );      
                                                                      
          if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
 201548c:	03 00 80 f1 	sethi  %hi(0x203c400), %g1                     
 2015490:	82 10 60 e4 	or  %g1, 0xe4, %g1	! 203c4e4 <_Per_CPU_Information>
 2015494:	c4 00 60 08 	ld  [ %g1 + 8 ], %g2                           
 2015498:	80 a0 a0 00 	cmp  %g2, 0                                    
 201549c:	02 80 00 06 	be  20154b4 <rtems_signal_send+0x9c>           
 20154a0:	01 00 00 00 	nop                                            
 20154a4:	c4 00 60 0c 	ld  [ %g1 + 0xc ], %g2                         
 20154a8:	80 a7 00 02 	cmp  %i4, %g2                                  
 20154ac:	02 80 00 15 	be  2015500 <rtems_signal_send+0xe8>           <== ALWAYS TAKEN
 20154b0:	84 10 20 01 	mov  1, %g2                                    
            _Thread_Dispatch_necessary = true;                        
        } else {                                                      
          _ASR_Post_signals( signal_set, &asr->signals_pending );     
        }                                                             
        _Thread_Enable_dispatch();                                    
 20154b4:	40 00 12 89 	call  2019ed8 <_Thread_Enable_dispatch>        
 20154b8:	01 00 00 00 	nop                                            
        return RTEMS_SUCCESSFUL;                                      
 20154bc:	10 bf ff db 	b  2015428 <rtems_signal_send+0x10>            
 20154c0:	82 10 20 00 	clr  %g1	! 0 <PROM_START>                      
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 20154c4:	82 10 20 04 	mov  4, %g1                                    
}                                                                     
 20154c8:	81 c7 e0 08 	ret                                            
 20154cc:	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();                                      
 20154d0:	40 00 12 82 	call  2019ed8 <_Thread_Enable_dispatch>        
 20154d4:	01 00 00 00 	nop                                            
      return RTEMS_NOT_DEFINED;                                       
 20154d8:	10 bf ff d4 	b  2015428 <rtems_signal_send+0x10>            
 20154dc:	82 10 20 0b 	mov  0xb, %g1	! b <PROM_START+0xb>             
  rtems_signal_set *signal_set                                        
)                                                                     
{                                                                     
  ISR_Level              _level;                                      
                                                                      
  _ISR_Disable( _level );                                             
 20154e0:	7f ff e6 7e 	call  200eed8 <sparc_disable_interrupts>       
 20154e4:	01 00 00 00 	nop                                            
    *signal_set |= signals;                                           
 20154e8:	c2 07 60 18 	ld  [ %i5 + 0x18 ], %g1                        
 20154ec:	b2 10 40 19 	or  %g1, %i1, %i1                              
 20154f0:	f2 27 60 18 	st  %i1, [ %i5 + 0x18 ]                        
  _ISR_Enable( _level );                                              
 20154f4:	7f ff e6 7d 	call  200eee8 <sparc_enable_interrupts>        
 20154f8:	01 00 00 00 	nop                                            
 20154fc:	30 bf ff ee 	b,a   20154b4 <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;                        
 2015500:	c4 28 60 18 	stb  %g2, [ %g1 + 0x18 ]                       
 2015504:	30 bf ff ec 	b,a   20154b4 <rtems_signal_send+0x9c>         
                                                                      

02002140 <rtems_stack_checker_begin_extension>: Thread_Control *the_thread ) { Stack_check_Control *the_pattern; if ( the_thread->Object.id == 0 ) /* skip system tasks */
 2002140:	c2 02 20 08 	ld  [ %o0 + 8 ], %g1                           
 2002144:	80 a0 60 00 	cmp  %g1, 0                                    
 2002148:	02 80 00 0c 	be  2002178 <rtems_stack_checker_begin_extension+0x38><== NEVER TAKEN
 200214c:	05 00 80 55 	sethi  %hi(0x2015400), %g2                     
    return;                                                           
                                                                      
  the_pattern = Stack_check_Get_pattern_area(&the_thread->Start.Initial_stack);
                                                                      
  *the_pattern = Stack_check_Pattern;                                 
 2002150:	c2 02 20 b8 	ld  [ %o0 + 0xb8 ], %g1                        
 2002154:	c6 00 a3 cc 	ld  [ %g2 + 0x3cc ], %g3                       
 2002158:	84 10 a3 cc 	or  %g2, 0x3cc, %g2                            
 200215c:	c6 20 60 08 	st  %g3, [ %g1 + 8 ]                           
 2002160:	c6 00 a0 04 	ld  [ %g2 + 4 ], %g3                           
 2002164:	c6 20 60 0c 	st  %g3, [ %g1 + 0xc ]                         
 2002168:	c6 00 a0 08 	ld  [ %g2 + 8 ], %g3                           
 200216c:	c6 20 60 10 	st  %g3, [ %g1 + 0x10 ]                        
 2002170:	c4 00 a0 0c 	ld  [ %g2 + 0xc ], %g2                         
 2002174:	c4 20 60 14 	st  %g2, [ %g1 + 0x14 ]                        
 2002178:	81 c3 e0 08 	retl                                           
                                                                      

02002110 <rtems_stack_checker_create_extension>: */ bool rtems_stack_checker_create_extension( Thread_Control *running __attribute__((unused)), Thread_Control *the_thread ) {
 2002110:	9d e3 bf a0 	save  %sp, -96, %sp                            
  Stack_check_Initialize();                                           
 2002114:	7f ff ff d9 	call  2002078 <Stack_check_Initialize>         
 2002118:	01 00 00 00 	nop                                            
                                                                      
  if (the_thread)                                                     
 200211c:	80 a6 60 00 	cmp  %i1, 0                                    
 2002120:	02 80 00 06 	be  2002138 <rtems_stack_checker_create_extension+0x28><== NEVER TAKEN
 2002124:	01 00 00 00 	nop                                            
    Stack_check_Dope_stack(&the_thread->Start.Initial_stack);         
 2002128:	d0 06 60 b8 	ld  [ %i1 + 0xb8 ], %o0                        
 200212c:	d4 06 60 b4 	ld  [ %i1 + 0xb4 ], %o2                        
 2002130:	40 00 33 49 	call  200ee54 <memset>                         
 2002134:	92 10 20 a5 	mov  0xa5, %o1                                 
                                                                      
  return true;                                                        
}                                                                     
 2002138:	81 c7 e0 08 	ret                                            
 200213c:	91 e8 20 01 	restore  %g0, 1, %o0                           
                                                                      

02002294 <rtems_stack_checker_is_blown>: /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) {
 2002294:	9d e3 bf a0 	save  %sp, -96, %sp                            
  Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; 
 2002298:	39 00 80 56 	sethi  %hi(0x2015800), %i4                     
 200229c:	b8 17 23 dc 	or  %i4, 0x3dc, %i4	! 2015bdc <_Per_CPU_Information>
 20022a0:	c2 07 20 0c 	ld  [ %i4 + 0xc ], %g1                         
)                                                                     
{                                                                     
  #if defined(__GNUC__)                                               
    void *sp = __builtin_frame_address(0);                            
                                                                      
    if ( sp < the_stack->area ) {                                     
 20022a4:	d0 00 60 b8 	ld  [ %g1 + 0xb8 ], %o0                        
 20022a8:	80 a7 80 08 	cmp  %fp, %o0                                  
 20022ac:	0a 80 00 06 	bcs  20022c4 <rtems_stack_checker_is_blown+0x30><== NEVER TAKEN
 20022b0:	ba 10 20 00 	clr  %i5                                       
      return false;                                                   
    }                                                                 
    if ( sp > (the_stack->area + the_stack->size) ) {                 
 20022b4:	c2 00 60 b4 	ld  [ %g1 + 0xb4 ], %g1                        
 20022b8:	82 02 00 01 	add  %o0, %g1, %g1                             
}                                                                     
                                                                      
/*                                                                    
 *  Check if blown                                                    
 */                                                                   
bool rtems_stack_checker_is_blown( void )                             
 20022bc:	80 a0 40 1e 	cmp  %g1, %fp                                  
 20022c0:	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 ) {                                    
 20022c4:	03 00 80 55 	sethi  %hi(0x2015400), %g1                     
 20022c8:	c2 00 61 3c 	ld  [ %g1 + 0x13c ], %g1	! 201553c <Stack_check_Initialized>
 20022cc:	80 a0 60 00 	cmp  %g1, 0                                    
 20022d0:	02 80 00 09 	be  20022f4 <rtems_stack_checker_is_blown+0x60><== NEVER TAKEN
 20022d4:	92 10 20 01 	mov  1, %o1                                    
    pattern_ok = (!memcmp(                                            
 20022d8:	90 02 20 08 	add  %o0, 8, %o0                               
 20022dc:	94 10 20 10 	mov  0x10, %o2                                 
 20022e0:	13 00 80 55 	sethi  %hi(0x2015400), %o1                     
 20022e4:	40 00 32 72 	call  200ecac <memcmp>                         
 20022e8:	92 12 63 cc 	or  %o1, 0x3cc, %o1	! 20157cc <Stack_check_Pattern>
 20022ec:	80 a0 00 08 	cmp  %g0, %o0                                  
 20022f0:	92 60 3f ff 	subx  %g0, -1, %o1                             
                                                                      
                                                                      
  /*                                                                  
   * Let's report as much as we can.                                  
   */                                                                 
  if ( !sp_ok || !pattern_ok ) {                                      
 20022f4:	80 8f 60 ff 	btst  0xff, %i5                                
 20022f8:	22 80 00 07 	be,a   2002314 <rtems_stack_checker_is_blown+0x80><== NEVER TAKEN
 20022fc:	92 0a 60 ff 	and  %o1, 0xff, %o1                            <== NOT EXECUTED
 2002300:	92 8a 60 ff 	andcc  %o1, 0xff, %o1                          
 2002304:	02 80 00 04 	be  2002314 <rtems_stack_checker_is_blown+0x80><== NEVER TAKEN
 2002308:	b0 10 20 00 	clr  %i0                                       
                                                                      
  /*                                                                  
   * The Stack Pointer and the Pattern Area are OK so return false.   
   */                                                                 
  return false;                                                       
}                                                                     
 200230c:	81 c7 e0 08 	ret                                            
 2002310:	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 );   
 2002314:	7f ff ff 9b 	call  2002180 <Stack_check_report_blown_task>  <== NOT EXECUTED
 2002318:	d0 07 20 0c 	ld  [ %i4 + 0xc ], %o0                         <== NOT EXECUTED
                                                                      

02002320 <rtems_stack_checker_report_usage_with_plugin>: void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) {
 2002320:	9d e3 bf a0 	save  %sp, -96, %sp                            
  if ( !print )                                                       
 2002324:	80 a6 60 00 	cmp  %i1, 0                                    
 2002328:	02 80 00 14 	be  2002378 <rtems_stack_checker_report_usage_with_plugin+0x58><== NEVER TAKEN
 200232c:	39 00 80 55 	sethi  %hi(0x2015400), %i4                     
    return;                                                           
                                                                      
  print_context = context;                                            
  print_handler = print;                                              
 2002330:	3b 00 80 55 	sethi  %hi(0x2015400), %i5                     
)                                                                     
{                                                                     
  if ( !print )                                                       
    return;                                                           
                                                                      
  print_context = context;                                            
 2002334:	f0 27 21 44 	st  %i0, [ %i4 + 0x144 ]                       
  print_handler = print;                                              
 2002338:	f2 27 61 40 	st  %i1, [ %i5 + 0x140 ]                       
                                                                      
  (*print)( context, "Stack usage by thread\n");                      
 200233c:	90 10 00 18 	mov  %i0, %o0                                  
 2002340:	13 00 80 50 	sethi  %hi(0x2014000), %o1                     
 2002344:	9f c6 40 00 	call  %i1                                      
 2002348:	92 12 62 48 	or  %o1, 0x248, %o1	! 2014248 <rtems_filesystem_table+0x4ac>
  (*print)( context,                                                  
 200234c:	90 10 00 18 	mov  %i0, %o0                                  
 2002350:	13 00 80 50 	sethi  %hi(0x2014000), %o1                     
 2002354:	9f c6 40 00 	call  %i1                                      
 2002358:	92 12 62 60 	or  %o1, 0x260, %o1	! 2014260 <rtems_filesystem_table+0x4c4>
"    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 );   
 200235c:	11 00 80 07 	sethi  %hi(0x2001c00), %o0                     
 2002360:	40 00 15 bb 	call  2007a4c <rtems_iterate_over_all_threads> 
 2002364:	90 12 22 d4 	or  %o0, 0x2d4, %o0	! 2001ed4 <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);            
 2002368:	7f ff fe db 	call  2001ed4 <Stack_check_Dump_threads_usage> 
 200236c:	90 10 3f ff 	mov  -1, %o0                                   
  #endif                                                              
                                                                      
  print_context = NULL;                                               
 2002370:	c0 27 21 44 	clr  [ %i4 + 0x144 ]                           
  print_handler = NULL;                                               
 2002374:	c0 27 61 40 	clr  [ %i5 + 0x140 ]                           
 2002378:	81 c7 e0 08 	ret                                            
 200237c:	81 e8 00 00 	restore                                        
                                                                      

02002228 <rtems_stack_checker_switch_extension>: */ void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) {
 2002228:	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);                  
 200222c:	c2 06 20 b8 	ld  [ %i0 + 0xb8 ], %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,                                     
 2002230:	13 00 80 55 	sethi  %hi(0x2015400), %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);                  
 2002234:	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,                                     
 2002238:	94 10 20 10 	mov  0x10, %o2                                 
)                                                                     
{                                                                     
  #if defined(__GNUC__)                                               
    void *sp = __builtin_frame_address(0);                            
                                                                      
    if ( sp < the_stack->area ) {                                     
 200223c:	80 a7 80 01 	cmp  %fp, %g1                                  
 2002240:	0a 80 00 07 	bcs  200225c <rtems_stack_checker_switch_extension+0x34><== NEVER TAKEN
 2002244:	92 12 63 cc 	or  %o1, 0x3cc, %o1                            
      return false;                                                   
    }                                                                 
    if ( sp > (the_stack->area + the_stack->size) ) {                 
 2002248:	c4 06 20 b4 	ld  [ %i0 + 0xb4 ], %g2                        
 200224c:	82 00 40 02 	add  %g1, %g2, %g1                             
 2002250:	80 a7 80 01 	cmp  %fp, %g1                                  
 2002254:	08 80 00 09 	bleu  2002278 <rtems_stack_checker_switch_extension+0x50><== ALWAYS TAKEN
 2002258:	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,                                     
 200225c:	40 00 32 94 	call  200ecac <memcmp>                         <== NOT EXECUTED
 2002260:	01 00 00 00 	nop                                            <== NOT EXECUTED
 2002264:	80 a0 00 08 	cmp  %g0, %o0                                  <== NOT EXECUTED
 2002268:	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 );             
 200226c:	90 10 00 18 	mov  %i0, %o0                                  
 2002270:	7f ff ff c4 	call  2002180 <Stack_check_report_blown_task>  
 2002274:	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,                                     
 2002278:	40 00 32 8d 	call  200ecac <memcmp>                         
 200227c:	01 00 00 00 	nop                                            
            (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES));
                                                                      
  if ( !sp_ok || !pattern_ok ) {                                      
 2002280:	80 a2 20 00 	cmp  %o0, 0                                    
 2002284:	12 bf ff fa 	bne  200226c <rtems_stack_checker_switch_extension+0x44>
 2002288:	92 10 20 00 	clr  %o1                                       
 200228c:	81 c7 e0 08 	ret                                            
 2002290:	81 e8 00 00 	restore                                        
                                                                      

0200c540 <rtems_string_to_double>: rtems_status_code rtems_string_to_double ( const char *s, double *n, char **endptr ) {
 200c540:	9d e3 bf 90 	save  %sp, -112, %sp                           
 200c544:	ba 10 00 18 	mov  %i0, %i5                                  
  double result;                                                      
  char *end;                                                          
                                                                      
  if ( !n )                                                           
 200c548:	80 a6 60 00 	cmp  %i1, 0                                    
 200c54c:	02 80 00 2d 	be  200c600 <rtems_string_to_double+0xc0>      
 200c550:	b0 10 20 09 	mov  9, %i0                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
 200c554:	40 00 0a 18 	call  200edb4 <__errno>                        
 200c558:	01 00 00 00 	nop                                            
 200c55c:	c0 22 00 00 	clr  [ %o0 ]                                   
  *n = 0;                                                             
 200c560:	c0 26 40 00 	clr  [ %i1 ]                                   
 200c564:	c0 26 60 04 	clr  [ %i1 + 4 ]                               
                                                                      
  result = strtod( s, &end );                                         
 200c568:	90 10 00 1d 	mov  %i5, %o0                                  
 200c56c:	40 00 15 86 	call  2011b84 <strtod>                         
 200c570:	92 07 bf fc 	add  %fp, -4, %o1                              
                                                                      
  if ( endptr )                                                       
 200c574:	80 a6 a0 00 	cmp  %i2, 0                                    
 200c578:	02 80 00 03 	be  200c584 <rtems_string_to_double+0x44>      
 200c57c:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
    *endptr = end;                                                    
 200c580:	c2 26 80 00 	st  %g1, [ %i2 ]                               
                                                                      
  if ( end == s )                                                     
 200c584:	80 a7 40 01 	cmp  %i5, %g1                                  
 200c588:	02 80 00 1e 	be  200c600 <rtems_string_to_double+0xc0>      
 200c58c:	b0 10 20 0b 	mov  0xb, %i0                                  
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 200c590:	c1 27 bf f4 	st  %f0, [ %fp + -12 ]                         
 200c594:	40 00 0a 08 	call  200edb4 <__errno>                        
 200c598:	c3 27 bf f0 	st  %f1, [ %fp + -16 ]                         
 200c59c:	c2 02 00 00 	ld  [ %o0 ], %g1                               
 200c5a0:	c1 07 bf f4 	ld  [ %fp + -12 ], %f0                         
 200c5a4:	80 a0 60 22 	cmp  %g1, 0x22                                 
 200c5a8:	02 80 00 05 	be  200c5bc <rtems_string_to_double+0x7c>      
 200c5ac:	c3 07 bf f0 	ld  [ %fp + -16 ], %f1                         
    (( result == 0 ) || ( result == HUGE_VAL ) || ( result == -HUGE_VAL )))
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
 200c5b0:	c1 3e 40 00 	std  %f0, [ %i1 ]                              
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 200c5b4:	81 c7 e0 08 	ret                                            
 200c5b8:	91 e8 20 00 	restore  %g0, 0, %o0                           
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 200c5bc:	03 00 80 76 	sethi  %hi(0x201d800), %g1                     
 200c5c0:	d1 18 61 e8 	ldd  [ %g1 + 0x1e8 ], %f8	! 201d9e8 <_rodata_start+0x16f8>
 200c5c4:	81 a8 0a 48 	fcmpd  %f0, %f8                                
 200c5c8:	01 00 00 00 	nop                                            
 200c5cc:	13 80 00 0d 	fbe  200c600 <rtems_string_to_double+0xc0>     
 200c5d0:	b0 10 20 0a 	mov  0xa, %i0	! a <PROM_START+0xa>             
    (( result == 0 ) || ( result == HUGE_VAL ) || ( result == -HUGE_VAL )))
 200c5d4:	03 00 80 79 	sethi  %hi(0x201e400), %g1                     
 200c5d8:	d1 18 60 80 	ldd  [ %g1 + 0x80 ], %f8	! 201e480 <_CPU_Trap_slot_template+0x14>
 200c5dc:	81 a8 0a c8 	fcmped  %f0, %f8                               
 200c5e0:	01 00 00 00 	nop                                            
 200c5e4:	0d 80 00 07 	fbg  200c600 <rtems_string_to_double+0xc0>     
 200c5e8:	03 00 80 79 	sethi  %hi(0x201e400), %g1                     
 200c5ec:	d1 18 60 88 	ldd  [ %g1 + 0x88 ], %f8	! 201e488 <_CPU_Trap_slot_template+0x1c>
 200c5f0:	81 a8 0a c8 	fcmped  %f0, %f8                               <== NOT EXECUTED
 200c5f4:	01 00 00 00 	nop                                            <== NOT EXECUTED
 200c5f8:	19 bf ff ee 	fbuge  200c5b0 <rtems_string_to_double+0x70>   <== NOT EXECUTED
 200c5fc:	01 00 00 00 	nop                                            <== NOT EXECUTED
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 200c600:	81 c7 e0 08 	ret                                            
 200c604:	81 e8 00 00 	restore                                        
                                                                      

0200c608 <rtems_string_to_float>: rtems_status_code rtems_string_to_float ( const char *s, float *n, char **endptr ) {
 200c608:	9d e3 bf 90 	save  %sp, -112, %sp                           
 200c60c:	ba 10 00 18 	mov  %i0, %i5                                  
  float result;                                                       
  char *end;                                                          
                                                                      
  if ( !n )                                                           
 200c610:	80 a6 60 00 	cmp  %i1, 0                                    
 200c614:	02 80 00 2a 	be  200c6bc <rtems_string_to_float+0xb4>       
 200c618:	b0 10 20 09 	mov  9, %i0                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
 200c61c:	40 00 09 e6 	call  200edb4 <__errno>                        
 200c620:	01 00 00 00 	nop                                            
 200c624:	c0 22 00 00 	clr  [ %o0 ]                                   
  *n = 0;                                                             
 200c628:	c0 26 40 00 	clr  [ %i1 ]                                   
                                                                      
  result = strtof( s, &end );                                         
 200c62c:	90 10 00 1d 	mov  %i5, %o0                                  
 200c630:	40 00 15 5c 	call  2011ba0 <strtof>                         
 200c634:	92 07 bf fc 	add  %fp, -4, %o1                              
                                                                      
  if ( endptr )                                                       
 200c638:	80 a6 a0 00 	cmp  %i2, 0                                    
 200c63c:	02 80 00 03 	be  200c648 <rtems_string_to_float+0x40>       
 200c640:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
    *endptr = end;                                                    
 200c644:	c2 26 80 00 	st  %g1, [ %i2 ]                               
                                                                      
  if ( end == s )                                                     
 200c648:	80 a7 40 01 	cmp  %i5, %g1                                  
 200c64c:	02 80 00 1c 	be  200c6bc <rtems_string_to_float+0xb4>       
 200c650:	b0 10 20 0b 	mov  0xb, %i0                                  
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 200c654:	40 00 09 d8 	call  200edb4 <__errno>                        
 200c658:	c1 27 bf f4 	st  %f0, [ %fp + -12 ]                         
 200c65c:	c2 02 00 00 	ld  [ %o0 ], %g1                               
 200c660:	80 a0 60 22 	cmp  %g1, 0x22                                 
 200c664:	02 80 00 05 	be  200c678 <rtems_string_to_float+0x70>       
 200c668:	c1 07 bf f4 	ld  [ %fp + -12 ], %f0                         
    (( result == 0 ) || ( result == HUGE_VALF ) || ( result == -HUGE_VALF )))
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
 200c66c:	c1 26 40 00 	st  %f0, [ %i1 ]                               
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 200c670:	81 c7 e0 08 	ret                                            
 200c674:	91 e8 20 00 	restore  %g0, 0, %o0                           
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 200c678:	03 00 80 76 	sethi  %hi(0x201d800), %g1                     
 200c67c:	d1 00 61 dc 	ld  [ %g1 + 0x1dc ], %f8	! 201d9dc <_rodata_start+0x16ec>
 200c680:	81 a8 0a 28 	fcmps  %f0, %f8                                
 200c684:	01 00 00 00 	nop                                            
 200c688:	13 80 00 0d 	fbe  200c6bc <rtems_string_to_float+0xb4>      
 200c68c:	b0 10 20 0a 	mov  0xa, %i0	! a <PROM_START+0xa>             
    (( result == 0 ) || ( result == HUGE_VALF ) || ( result == -HUGE_VALF )))
 200c690:	03 00 80 79 	sethi  %hi(0x201e400), %g1                     
 200c694:	d1 00 60 90 	ld  [ %g1 + 0x90 ], %f8	! 201e490 <_CPU_Trap_slot_template+0x24>
 200c698:	81 a8 0a a8 	fcmpes  %f0, %f8                               
 200c69c:	01 00 00 00 	nop                                            
 200c6a0:	0d 80 00 07 	fbg  200c6bc <rtems_string_to_float+0xb4>      
 200c6a4:	03 00 80 79 	sethi  %hi(0x201e400), %g1                     
 200c6a8:	d1 00 60 94 	ld  [ %g1 + 0x94 ], %f8	! 201e494 <_CPU_Trap_slot_template+0x28><== NOT EXECUTED
 200c6ac:	81 a8 0a a8 	fcmpes  %f0, %f8                               <== NOT EXECUTED
 200c6b0:	01 00 00 00 	nop                                            <== NOT EXECUTED
 200c6b4:	19 bf ff ee 	fbuge  200c66c <rtems_string_to_float+0x64>    <== NOT EXECUTED
 200c6b8:	01 00 00 00 	nop                                            <== NOT EXECUTED
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 200c6bc:	81 c7 e0 08 	ret                                            
 200c6c0:	81 e8 00 00 	restore                                        
                                                                      

0200c6c4 <rtems_string_to_int>: const char *s, int *n, char **endptr, int base ) {
 200c6c4:	9d e3 bf 98 	save  %sp, -104, %sp                           
 200c6c8:	ba 10 00 18 	mov  %i0, %i5                                  
  long result;                                                        
  char *end;                                                          
                                                                      
  if ( !n )                                                           
 200c6cc:	80 a6 60 00 	cmp  %i1, 0                                    
 200c6d0:	02 80 00 1f 	be  200c74c <rtems_string_to_int+0x88>         
 200c6d4:	b0 10 20 09 	mov  9, %i0                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
 200c6d8:	40 00 09 b7 	call  200edb4 <__errno>                        
 200c6dc:	01 00 00 00 	nop                                            
 200c6e0:	c0 22 00 00 	clr  [ %o0 ]                                   
  *n = 0;                                                             
                                                                      
  result = strtol( s, &end, base );                                   
 200c6e4:	94 10 00 1b 	mov  %i3, %o2                                  
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
 200c6e8:	c0 26 40 00 	clr  [ %i1 ]                                   
                                                                      
  result = strtol( s, &end, base );                                   
 200c6ec:	90 10 00 1d 	mov  %i5, %o0                                  
 200c6f0:	40 00 15 ce 	call  2011e28 <strtol>                         
 200c6f4:	92 07 bf fc 	add  %fp, -4, %o1                              
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
 200c6f8:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
  errno = 0;                                                          
  *n = 0;                                                             
                                                                      
  result = strtol( s, &end, base );                                   
                                                                      
  if ( endptr )                                                       
 200c6fc:	80 a6 a0 00 	cmp  %i2, 0                                    
 200c700:	02 80 00 03 	be  200c70c <rtems_string_to_int+0x48>         
 200c704:	b6 10 00 08 	mov  %o0, %i3                                  
    *endptr = end;                                                    
 200c708:	c2 26 80 00 	st  %g1, [ %i2 ]                               
                                                                      
  if ( end == s )                                                     
 200c70c:	80 a7 40 01 	cmp  %i5, %g1                                  
 200c710:	02 80 00 0f 	be  200c74c <rtems_string_to_int+0x88>         
 200c714:	b0 10 20 0b 	mov  0xb, %i0                                  
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 200c718:	40 00 09 a7 	call  200edb4 <__errno>                        
 200c71c:	01 00 00 00 	nop                                            
 200c720:	c2 02 00 00 	ld  [ %o0 ], %g1                               
 200c724:	80 a0 60 22 	cmp  %g1, 0x22                                 
 200c728:	02 80 00 05 	be  200c73c <rtems_string_to_int+0x78>         
 200c72c:	03 20 00 00 	sethi  %hi(0x80000000), %g1                    
    errno = ERANGE;                                                   
    return RTEMS_INVALID_NUMBER;                                      
  }                                                                   
#endif                                                                
                                                                      
  *n = result;                                                        
 200c730:	f6 26 40 00 	st  %i3, [ %i1 ]                               
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 200c734:	81 c7 e0 08 	ret                                            
 200c738:	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 )))
 200c73c:	82 38 40 1b 	xnor  %g1, %i3, %g1                            
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 200c740:	80 a0 60 00 	cmp  %g1, 0                                    
 200c744:	12 80 00 04 	bne  200c754 <rtems_string_to_int+0x90>        <== NEVER TAKEN
 200c748:	b0 10 20 0a 	mov  0xa, %i0                                  
#endif                                                                
                                                                      
  *n = result;                                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 200c74c:	81 c7 e0 08 	ret                                            
 200c750:	81 e8 00 00 	restore                                        
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 200c754:	80 a6 e0 00 	cmp  %i3, 0                                    <== NOT EXECUTED
 200c758:	02 bf ff fd 	be  200c74c <rtems_string_to_int+0x88>         <== NOT EXECUTED
 200c75c:	03 20 00 00 	sethi  %hi(0x80000000), %g1                    <== NOT EXECUTED
    (( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
 200c760:	80 a6 c0 01 	cmp  %i3, %g1                                  <== NOT EXECUTED
 200c764:	32 bf ff f4 	bne,a   200c734 <rtems_string_to_int+0x70>     <== NOT EXECUTED
 200c768:	f6 26 40 00 	st  %i3, [ %i1 ]                               <== NOT EXECUTED
 200c76c:	30 bf ff f8 	b,a   200c74c <rtems_string_to_int+0x88>       <== NOT EXECUTED
                                                                      

0200c848 <rtems_string_to_long>: const char *s, long *n, char **endptr, int base ) {
 200c848:	9d e3 bf 98 	save  %sp, -104, %sp                           
 200c84c:	ba 10 00 18 	mov  %i0, %i5                                  
  long result;                                                        
  char *end;                                                          
                                                                      
  if ( !n )                                                           
 200c850:	80 a6 60 00 	cmp  %i1, 0                                    
 200c854:	02 80 00 1f 	be  200c8d0 <rtems_string_to_long+0x88>        
 200c858:	b0 10 20 09 	mov  9, %i0                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
 200c85c:	40 00 09 56 	call  200edb4 <__errno>                        
 200c860:	01 00 00 00 	nop                                            
 200c864:	c0 22 00 00 	clr  [ %o0 ]                                   
  *n = 0;                                                             
                                                                      
  result = strtol( s, &end, base );                                   
 200c868:	94 10 00 1b 	mov  %i3, %o2                                  
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
 200c86c:	c0 26 40 00 	clr  [ %i1 ]                                   
                                                                      
  result = strtol( s, &end, base );                                   
 200c870:	90 10 00 1d 	mov  %i5, %o0                                  
 200c874:	40 00 15 6d 	call  2011e28 <strtol>                         
 200c878:	92 07 bf fc 	add  %fp, -4, %o1                              
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
 200c87c:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
  errno = 0;                                                          
  *n = 0;                                                             
                                                                      
  result = strtol( s, &end, base );                                   
                                                                      
  if ( endptr )                                                       
 200c880:	80 a6 a0 00 	cmp  %i2, 0                                    
 200c884:	02 80 00 03 	be  200c890 <rtems_string_to_long+0x48>        
 200c888:	b6 10 00 08 	mov  %o0, %i3                                  
    *endptr = end;                                                    
 200c88c:	c2 26 80 00 	st  %g1, [ %i2 ]                               
                                                                      
  if ( end == s )                                                     
 200c890:	80 a7 40 01 	cmp  %i5, %g1                                  
 200c894:	02 80 00 0f 	be  200c8d0 <rtems_string_to_long+0x88>        
 200c898:	b0 10 20 0b 	mov  0xb, %i0                                  
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 200c89c:	40 00 09 46 	call  200edb4 <__errno>                        
 200c8a0:	01 00 00 00 	nop                                            
 200c8a4:	c2 02 00 00 	ld  [ %o0 ], %g1                               
 200c8a8:	80 a0 60 22 	cmp  %g1, 0x22                                 
 200c8ac:	02 80 00 05 	be  200c8c0 <rtems_string_to_long+0x78>        
 200c8b0:	03 20 00 00 	sethi  %hi(0x80000000), %g1                    
    (( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
 200c8b4:	f6 26 40 00 	st  %i3, [ %i1 ]                               
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 200c8b8:	81 c7 e0 08 	ret                                            
 200c8bc:	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 )))
 200c8c0:	82 38 40 1b 	xnor  %g1, %i3, %g1                            
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 200c8c4:	80 a0 60 00 	cmp  %g1, 0                                    
 200c8c8:	12 80 00 04 	bne  200c8d8 <rtems_string_to_long+0x90>       
 200c8cc:	b0 10 20 0a 	mov  0xa, %i0                                  
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 200c8d0:	81 c7 e0 08 	ret                                            
 200c8d4:	81 e8 00 00 	restore                                        
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 200c8d8:	80 a6 e0 00 	cmp  %i3, 0                                    
 200c8dc:	02 bf ff fd 	be  200c8d0 <rtems_string_to_long+0x88>        <== NEVER TAKEN
 200c8e0:	03 20 00 00 	sethi  %hi(0x80000000), %g1                    
    (( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
 200c8e4:	80 a6 c0 01 	cmp  %i3, %g1                                  
 200c8e8:	32 bf ff f4 	bne,a   200c8b8 <rtems_string_to_long+0x70>    <== NEVER TAKEN
 200c8ec:	f6 26 40 00 	st  %i3, [ %i1 ]                               <== NOT EXECUTED
 200c8f0:	30 bf ff f8 	b,a   200c8d0 <rtems_string_to_long+0x88>      
                                                                      

0200c770 <rtems_string_to_long_long>: const char *s, long long *n, char **endptr, int base ) {
 200c770:	9d e3 bf 98 	save  %sp, -104, %sp                           
  long long result;                                                   
  char *end;                                                          
                                                                      
  if ( !n )                                                           
 200c774:	80 a6 60 00 	cmp  %i1, 0                                    
 200c778:	02 80 00 1c 	be  200c7e8 <rtems_string_to_long_long+0x78>   
 200c77c:	82 10 20 09 	mov  9, %g1                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
 200c780:	40 00 09 8d 	call  200edb4 <__errno>                        
 200c784:	01 00 00 00 	nop                                            
 200c788:	c0 22 00 00 	clr  [ %o0 ]                                   
  *n = 0;                                                             
 200c78c:	c0 26 40 00 	clr  [ %i1 ]                                   
 200c790:	c0 26 60 04 	clr  [ %i1 + 4 ]                               
                                                                      
  result = strtoll( s, &end, base );                                  
 200c794:	90 10 00 18 	mov  %i0, %o0                                  
 200c798:	92 07 bf fc 	add  %fp, -4, %o1                              
 200c79c:	40 00 15 ac 	call  2011e4c <strtoll>                        
 200c7a0:	94 10 00 1b 	mov  %i3, %o2                                  
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
 200c7a4:	c4 07 bf fc 	ld  [ %fp + -4 ], %g2                          
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
                                                                      
  result = strtoll( s, &end, base );                                  
 200c7a8:	b8 10 00 08 	mov  %o0, %i4                                  
                                                                      
  if ( endptr )                                                       
 200c7ac:	80 a6 a0 00 	cmp  %i2, 0                                    
 200c7b0:	02 80 00 03 	be  200c7bc <rtems_string_to_long_long+0x4c>   
 200c7b4:	ba 10 00 09 	mov  %o1, %i5                                  
    *endptr = end;                                                    
 200c7b8:	c4 26 80 00 	st  %g2, [ %i2 ]                               
                                                                      
  if ( end == s )                                                     
 200c7bc:	80 a6 00 02 	cmp  %i0, %g2                                  
 200c7c0:	02 80 00 0a 	be  200c7e8 <rtems_string_to_long_long+0x78>   
 200c7c4:	82 10 20 0b 	mov  0xb, %g1                                  
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 200c7c8:	40 00 09 7b 	call  200edb4 <__errno>                        
 200c7cc:	01 00 00 00 	nop                                            
 200c7d0:	c2 02 00 00 	ld  [ %o0 ], %g1                               
 200c7d4:	80 a0 60 22 	cmp  %g1, 0x22                                 
 200c7d8:	02 80 00 06 	be  200c7f0 <rtems_string_to_long_long+0x80>   
 200c7dc:	05 1f ff ff 	sethi  %hi(0x7ffffc00), %g2                    
    (( result == 0 ) || ( result == LONG_LONG_MAX ) || ( result == LONG_LONG_MIN )))
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
 200c7e0:	f8 3e 40 00 	std  %i4, [ %i1 ]                              
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 200c7e4:	82 10 20 00 	clr  %g1                                       
}                                                                     
 200c7e8:	81 c7 e0 08 	ret                                            
 200c7ec:	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 )))
 200c7f0:	07 3f ff ff 	sethi  %hi(0xfffffc00), %g3                    
 200c7f4:	84 10 a3 ff 	or  %g2, 0x3ff, %g2                            
 200c7f8:	86 10 e3 ff 	or  %g3, 0x3ff, %g3                            
 200c7fc:	84 1f 00 02 	xor  %i4, %g2, %g2                             
 200c800:	86 1f 40 03 	xor  %i5, %g3, %g3                             
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 200c804:	80 90 80 03 	orcc  %g2, %g3, %g0                            
 200c808:	12 80 00 04 	bne  200c818 <rtems_string_to_long_long+0xa8>  
 200c80c:	80 97 00 1d 	orcc  %i4, %i5, %g0                            
    (( result == 0 ) || ( result == LONG_LONG_MAX ) || ( result == LONG_LONG_MIN )))
      return RTEMS_INVALID_NUMBER;                                    
 200c810:	10 bf ff f6 	b  200c7e8 <rtems_string_to_long_long+0x78>    
 200c814:	82 10 20 0a 	mov  0xa, %g1                                  
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 200c818:	02 bf ff f4 	be  200c7e8 <rtems_string_to_long_long+0x78>   <== NEVER TAKEN
 200c81c:	82 10 20 0a 	mov  0xa, %g1                                  
    (( result == 0 ) || ( result == LONG_LONG_MAX ) || ( result == LONG_LONG_MIN )))
 200c820:	03 20 00 00 	sethi  %hi(0x80000000), %g1                    
 200c824:	80 a7 00 01 	cmp  %i4, %g1                                  
 200c828:	32 bf ff ef 	bne,a   200c7e4 <rtems_string_to_long_long+0x74><== NEVER TAKEN
 200c82c:	f8 3e 40 00 	std  %i4, [ %i1 ]                              <== NOT EXECUTED
 200c830:	80 a7 60 00 	cmp  %i5, 0                                    
 200c834:	22 bf ff ed 	be,a   200c7e8 <rtems_string_to_long_long+0x78><== ALWAYS TAKEN
 200c838:	82 10 20 0a 	mov  0xa, %g1                                  
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
 200c83c:	f8 3e 40 00 	std  %i4, [ %i1 ]                              <== NOT EXECUTED
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 200c840:	10 bf ff ea 	b  200c7e8 <rtems_string_to_long_long+0x78>    <== NOT EXECUTED
 200c844:	82 10 20 00 	clr  %g1                                       <== NOT EXECUTED
                                                                      

0200c904 <rtems_string_to_unsigned_char>: const char *s, unsigned char *n, char **endptr, int base ) {
 200c904:	9d e3 bf 98 	save  %sp, -104, %sp                           
 200c908:	ba 10 00 18 	mov  %i0, %i5                                  
  unsigned long result;                                               
  char *end;                                                          
                                                                      
  if ( !n )                                                           
 200c90c:	80 a6 60 00 	cmp  %i1, 0                                    
 200c910:	02 80 00 22 	be  200c998 <rtems_string_to_unsigned_char+0x94>
 200c914:	b0 10 20 09 	mov  9, %i0                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
 200c918:	40 00 09 27 	call  200edb4 <__errno>                        
 200c91c:	01 00 00 00 	nop                                            
 200c920:	c0 22 00 00 	clr  [ %o0 ]                                   
  *n = 0;                                                             
                                                                      
  result = strtoul( s, &end, base );                                  
 200c924:	94 10 00 1b 	mov  %i3, %o2                                  
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
 200c928:	c0 2e 40 00 	clrb  [ %i1 ]                                  
                                                                      
  result = strtoul( s, &end, base );                                  
 200c92c:	90 10 00 1d 	mov  %i5, %o0                                  
 200c930:	40 00 16 97 	call  201238c <strtoul>                        
 200c934:	92 07 bf fc 	add  %fp, -4, %o1                              
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
 200c938:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
  errno = 0;                                                          
  *n = 0;                                                             
                                                                      
  result = strtoul( s, &end, base );                                  
                                                                      
  if ( endptr )                                                       
 200c93c:	80 a6 a0 00 	cmp  %i2, 0                                    
 200c940:	02 80 00 03 	be  200c94c <rtems_string_to_unsigned_char+0x48>
 200c944:	b6 10 00 08 	mov  %o0, %i3                                  
    *endptr = end;                                                    
 200c948:	c2 26 80 00 	st  %g1, [ %i2 ]                               
                                                                      
  if ( end == s )                                                     
 200c94c:	80 a7 40 01 	cmp  %i5, %g1                                  
 200c950:	02 80 00 12 	be  200c998 <rtems_string_to_unsigned_char+0x94>
 200c954:	b0 10 20 0b 	mov  0xb, %i0                                  
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 200c958:	40 00 09 17 	call  200edb4 <__errno>                        
 200c95c:	01 00 00 00 	nop                                            
 200c960:	c2 02 00 00 	ld  [ %o0 ], %g1                               
 200c964:	80 a0 60 22 	cmp  %g1, 0x22                                 
 200c968:	02 80 00 0e 	be  200c9a0 <rtems_string_to_unsigned_char+0x9c><== NEVER TAKEN
 200c96c:	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 ) {                                         
 200c970:	80 a6 e0 ff 	cmp  %i3, 0xff                                 
 200c974:	18 80 00 05 	bgu  200c988 <rtems_string_to_unsigned_char+0x84><== NEVER TAKEN
 200c978:	01 00 00 00 	nop                                            
    errno = ERANGE;                                                   
    return RTEMS_INVALID_NUMBER;                                      
  }                                                                   
#endif                                                                
                                                                      
  *n = result;                                                        
 200c97c:	f6 2e 40 00 	stb  %i3, [ %i1 ]                              
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 200c980:	81 c7 e0 08 	ret                                            
 200c984:	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;                                                   
 200c988:	40 00 09 0b 	call  200edb4 <__errno>                        <== NOT EXECUTED
 200c98c:	b0 10 20 0a 	mov  0xa, %i0                                  <== NOT EXECUTED
 200c990:	82 10 20 22 	mov  0x22, %g1                                 <== NOT EXECUTED
 200c994:	c2 22 00 00 	st  %g1, [ %o0 ]                               <== NOT EXECUTED
    return RTEMS_INVALID_NUMBER;                                      
 200c998:	81 c7 e0 08 	ret                                            
 200c99c:	81 e8 00 00 	restore                                        
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 200c9a0:	80 a0 7f fd 	cmp  %g1, -3                                   <== NOT EXECUTED
 200c9a4:	08 bf ff f3 	bleu  200c970 <rtems_string_to_unsigned_char+0x6c><== NOT EXECUTED
 200c9a8:	b0 10 20 0a 	mov  0xa, %i0                                  <== NOT EXECUTED
#endif                                                                
                                                                      
  *n = result;                                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 200c9ac:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200c9b0:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      

0200c9b4 <rtems_string_to_unsigned_int>: const char *s, unsigned int *n, char **endptr, int base ) {
 200c9b4:	9d e3 bf 98 	save  %sp, -104, %sp                           
 200c9b8:	ba 10 00 18 	mov  %i0, %i5                                  
  unsigned long result;                                               
  char *end;                                                          
                                                                      
  if ( !n )                                                           
 200c9bc:	80 a6 60 00 	cmp  %i1, 0                                    
 200c9c0:	02 80 00 1e 	be  200ca38 <rtems_string_to_unsigned_int+0x84>
 200c9c4:	b0 10 20 09 	mov  9, %i0                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
 200c9c8:	40 00 08 fb 	call  200edb4 <__errno>                        
 200c9cc:	01 00 00 00 	nop                                            
 200c9d0:	c0 22 00 00 	clr  [ %o0 ]                                   
  *n = 0;                                                             
                                                                      
  result = strtoul( s, &end, base );                                  
 200c9d4:	94 10 00 1b 	mov  %i3, %o2                                  
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
 200c9d8:	c0 26 40 00 	clr  [ %i1 ]                                   
                                                                      
  result = strtoul( s, &end, base );                                  
 200c9dc:	90 10 00 1d 	mov  %i5, %o0                                  
 200c9e0:	40 00 16 6b 	call  201238c <strtoul>                        
 200c9e4:	92 07 bf fc 	add  %fp, -4, %o1                              
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
 200c9e8:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
  errno = 0;                                                          
  *n = 0;                                                             
                                                                      
  result = strtoul( s, &end, base );                                  
                                                                      
  if ( endptr )                                                       
 200c9ec:	80 a6 a0 00 	cmp  %i2, 0                                    
 200c9f0:	02 80 00 03 	be  200c9fc <rtems_string_to_unsigned_int+0x48>
 200c9f4:	b6 10 00 08 	mov  %o0, %i3                                  
    *endptr = end;                                                    
 200c9f8:	c2 26 80 00 	st  %g1, [ %i2 ]                               
                                                                      
  if ( end == s )                                                     
 200c9fc:	80 a7 40 01 	cmp  %i5, %g1                                  
 200ca00:	02 80 00 0e 	be  200ca38 <rtems_string_to_unsigned_int+0x84>
 200ca04:	b0 10 20 0b 	mov  0xb, %i0                                  
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 200ca08:	40 00 08 eb 	call  200edb4 <__errno>                        
 200ca0c:	01 00 00 00 	nop                                            
 200ca10:	c2 02 00 00 	ld  [ %o0 ], %g1                               
 200ca14:	80 a0 60 22 	cmp  %g1, 0x22                                 
 200ca18:	02 80 00 05 	be  200ca2c <rtems_string_to_unsigned_int+0x78>
 200ca1c:	82 06 ff ff 	add  %i3, -1, %g1                              
    errno = ERANGE;                                                   
    return RTEMS_INVALID_NUMBER;                                      
  }                                                                   
#endif                                                                
                                                                      
  *n = result;                                                        
 200ca20:	f6 26 40 00 	st  %i3, [ %i1 ]                               
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 200ca24:	81 c7 e0 08 	ret                                            
 200ca28:	91 e8 20 00 	restore  %g0, 0, %o0                           
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 200ca2c:	80 a0 7f fd 	cmp  %g1, -3                                   
 200ca30:	08 bf ff fc 	bleu  200ca20 <rtems_string_to_unsigned_int+0x6c><== NEVER TAKEN
 200ca34:	b0 10 20 0a 	mov  0xa, %i0                                  
#endif                                                                
                                                                      
  *n = result;                                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 200ca38:	81 c7 e0 08 	ret                                            
 200ca3c:	81 e8 00 00 	restore                                        
                                                                      

0200cae0 <rtems_string_to_unsigned_long>: const char *s, unsigned long *n, char **endptr, int base ) {
 200cae0:	9d e3 bf 98 	save  %sp, -104, %sp                           
 200cae4:	ba 10 00 18 	mov  %i0, %i5                                  
  unsigned long result;                                               
  char *end;                                                          
                                                                      
  if ( !n )                                                           
 200cae8:	80 a6 60 00 	cmp  %i1, 0                                    
 200caec:	02 80 00 1e 	be  200cb64 <rtems_string_to_unsigned_long+0x84>
 200caf0:	b0 10 20 09 	mov  9, %i0                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
 200caf4:	40 00 08 b0 	call  200edb4 <__errno>                        
 200caf8:	01 00 00 00 	nop                                            
 200cafc:	c0 22 00 00 	clr  [ %o0 ]                                   
  *n = 0;                                                             
                                                                      
  result = strtoul( s, &end, base );                                  
 200cb00:	94 10 00 1b 	mov  %i3, %o2                                  
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
 200cb04:	c0 26 40 00 	clr  [ %i1 ]                                   
                                                                      
  result = strtoul( s, &end, base );                                  
 200cb08:	90 10 00 1d 	mov  %i5, %o0                                  
 200cb0c:	40 00 16 20 	call  201238c <strtoul>                        
 200cb10:	92 07 bf fc 	add  %fp, -4, %o1                              
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
 200cb14:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
  errno = 0;                                                          
  *n = 0;                                                             
                                                                      
  result = strtoul( s, &end, base );                                  
                                                                      
  if ( endptr )                                                       
 200cb18:	80 a6 a0 00 	cmp  %i2, 0                                    
 200cb1c:	02 80 00 03 	be  200cb28 <rtems_string_to_unsigned_long+0x48>
 200cb20:	b6 10 00 08 	mov  %o0, %i3                                  
    *endptr = end;                                                    
 200cb24:	c2 26 80 00 	st  %g1, [ %i2 ]                               
                                                                      
  if ( end == s )                                                     
 200cb28:	80 a7 40 01 	cmp  %i5, %g1                                  
 200cb2c:	02 80 00 0e 	be  200cb64 <rtems_string_to_unsigned_long+0x84>
 200cb30:	b0 10 20 0b 	mov  0xb, %i0                                  
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 200cb34:	40 00 08 a0 	call  200edb4 <__errno>                        
 200cb38:	01 00 00 00 	nop                                            
 200cb3c:	c2 02 00 00 	ld  [ %o0 ], %g1                               
 200cb40:	80 a0 60 22 	cmp  %g1, 0x22                                 
 200cb44:	02 80 00 05 	be  200cb58 <rtems_string_to_unsigned_long+0x78>
 200cb48:	82 06 ff ff 	add  %i3, -1, %g1                              
    (( result == 0 ) || ( result == ULONG_MAX )))                     
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
 200cb4c:	f6 26 40 00 	st  %i3, [ %i1 ]                               
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 200cb50:	81 c7 e0 08 	ret                                            
 200cb54:	91 e8 20 00 	restore  %g0, 0, %o0                           
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 200cb58:	80 a0 7f fd 	cmp  %g1, -3                                   
 200cb5c:	08 bf ff fc 	bleu  200cb4c <rtems_string_to_unsigned_long+0x6c><== NEVER TAKEN
 200cb60:	b0 10 20 0a 	mov  0xa, %i0                                  
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 200cb64:	81 c7 e0 08 	ret                                            
 200cb68:	81 e8 00 00 	restore                                        
                                                                      

0200ca40 <rtems_string_to_unsigned_long_long>: const char *s, unsigned long long *n, char **endptr, int base ) {
 200ca40:	9d e3 bf 98 	save  %sp, -104, %sp                           
  unsigned long long result;                                          
  char *end;                                                          
                                                                      
  if ( !n )                                                           
 200ca44:	80 a6 60 00 	cmp  %i1, 0                                    
 200ca48:	02 80 00 1c 	be  200cab8 <rtems_string_to_unsigned_long_long+0x78>
 200ca4c:	82 10 20 09 	mov  9, %g1                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
 200ca50:	40 00 08 d9 	call  200edb4 <__errno>                        
 200ca54:	01 00 00 00 	nop                                            
 200ca58:	c0 22 00 00 	clr  [ %o0 ]                                   
  *n = 0;                                                             
 200ca5c:	c0 26 40 00 	clr  [ %i1 ]                                   
 200ca60:	c0 26 60 04 	clr  [ %i1 + 4 ]                               
                                                                      
  result = strtoull( s, &end, base );                                 
 200ca64:	90 10 00 18 	mov  %i0, %o0                                  
 200ca68:	92 07 bf fc 	add  %fp, -4, %o1                              
 200ca6c:	40 00 16 51 	call  20123b0 <strtoull>                       
 200ca70:	94 10 00 1b 	mov  %i3, %o2                                  
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
 200ca74:	c4 07 bf fc 	ld  [ %fp + -4 ], %g2                          
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
                                                                      
  result = strtoull( s, &end, base );                                 
 200ca78:	b8 10 00 08 	mov  %o0, %i4                                  
                                                                      
  if ( endptr )                                                       
 200ca7c:	80 a6 a0 00 	cmp  %i2, 0                                    
 200ca80:	02 80 00 03 	be  200ca8c <rtems_string_to_unsigned_long_long+0x4c>
 200ca84:	ba 10 00 09 	mov  %o1, %i5                                  
    *endptr = end;                                                    
 200ca88:	c4 26 80 00 	st  %g2, [ %i2 ]                               
                                                                      
  if ( end == s )                                                     
 200ca8c:	80 a6 00 02 	cmp  %i0, %g2                                  
 200ca90:	02 80 00 0a 	be  200cab8 <rtems_string_to_unsigned_long_long+0x78>
 200ca94:	82 10 20 0b 	mov  0xb, %g1                                  
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 200ca98:	40 00 08 c7 	call  200edb4 <__errno>                        
 200ca9c:	01 00 00 00 	nop                                            
 200caa0:	c2 02 00 00 	ld  [ %o0 ], %g1                               
 200caa4:	80 a0 60 22 	cmp  %g1, 0x22                                 
 200caa8:	02 80 00 06 	be  200cac0 <rtems_string_to_unsigned_long_long+0x80>
 200caac:	86 87 7f ff 	addcc  %i5, -1, %g3                            
    (( result == 0 ) || ( result == ULONG_LONG_MAX )))                
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
 200cab0:	f8 3e 40 00 	std  %i4, [ %i1 ]                              
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 200cab4:	82 10 20 00 	clr  %g1                                       
}                                                                     
 200cab8:	81 c7 e0 08 	ret                                            
 200cabc:	91 e8 00 01 	restore  %g0, %g1, %o0                         
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
    (( result == 0 ) || ( result == ULONG_LONG_MAX )))                
 200cac0:	84 47 3f ff 	addx  %i4, -1, %g2                             
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 200cac4:	80 a0 bf ff 	cmp  %g2, -1                                   
 200cac8:	12 bf ff fa 	bne  200cab0 <rtems_string_to_unsigned_long_long+0x70><== NEVER TAKEN
 200cacc:	80 a0 ff fd 	cmp  %g3, -3                                   
 200cad0:	18 bf ff fa 	bgu  200cab8 <rtems_string_to_unsigned_long_long+0x78><== ALWAYS TAKEN
 200cad4:	82 10 20 0a 	mov  0xa, %g1                                  
    (( result == 0 ) || ( result == ULONG_LONG_MAX )))                
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
 200cad8:	10 bf ff f7 	b  200cab4 <rtems_string_to_unsigned_long_long+0x74><== NOT EXECUTED
 200cadc:	f8 3e 40 00 	std  %i4, [ %i1 ]                              <== NOT EXECUTED
                                                                      

02002650 <rtems_tarfs_load>: int rtems_tarfs_load( char *mountpoint, uint8_t *tar_image, size_t tar_size ) {
 2002650:	9d e3 be 10 	save  %sp, -496, %sp                           
   int                              offset;                           
   unsigned long                    nblocks;                          
   IMFS_jnode_t                    *node;                             
   int                              status;                           
                                                                      
   status = rtems_filesystem_evaluate_path(                           
 2002654:	40 00 41 86 	call  2012c6c <strlen>                         
 2002658:	90 10 00 18 	mov  %i0, %o0                                  
int rtems_tarfs_load(                                                 
  char    *mountpoint,                                                
  uint8_t *tar_image,                                                 
  size_t   tar_size                                                   
)                                                                     
{                                                                     
 200265c:	ba 10 00 18 	mov  %i0, %i5                                  
   int                              offset;                           
   unsigned long                    nblocks;                          
   IMFS_jnode_t                    *node;                             
   int                              status;                           
                                                                      
   status = rtems_filesystem_evaluate_path(                           
 2002660:	92 10 00 08 	mov  %o0, %o1                                  
 2002664:	94 10 20 00 	clr  %o2                                       
 2002668:	90 10 00 18 	mov  %i0, %o0                                  
 200266c:	96 07 bf d4 	add  %fp, -44, %o3                             
 2002670:	40 00 02 e5 	call  2003204 <rtems_filesystem_evaluate_path> 
 2002674:	98 10 20 00 	clr  %o4                                       
      strlen(mountpoint),                                             
      0,                                                              
      &root_loc,                                                      
      0                                                               
   );                                                                 
   if (status != 0)                                                   
 2002678:	b0 92 20 00 	orcc  %o0, 0, %i0                              
 200267c:	12 80 00 75 	bne  2002850 <rtems_tarfs_load+0x200>          
 2002680:	c2 07 bf e0 	ld  [ %fp + -32 ], %g1                         
     return -1;                                                       
                                                                      
   if (root_loc.ops != &IMFS_ops && root_loc.ops != &fifoIMFS_ops)    
 2002684:	05 00 80 7a 	sethi  %hi(0x201e800), %g2                     
 2002688:	84 10 a0 80 	or  %g2, 0x80, %g2	! 201e880 <IMFS_ops>        
 200268c:	80 a0 40 02 	cmp  %g1, %g2                                  
 2002690:	02 80 00 06 	be  20026a8 <rtems_tarfs_load+0x58>            
 2002694:	05 00 80 7c 	sethi  %hi(0x201f000), %g2                     
 2002698:	84 10 a1 34 	or  %g2, 0x134, %g2	! 201f134 <fifoIMFS_ops>   
 200269c:	80 a0 40 02 	cmp  %g1, %g2                                  
 20026a0:	12 80 00 6a 	bne  2002848 <rtems_tarfs_load+0x1f8>          <== ALWAYS TAKEN
 20026a4:	01 00 00 00 	nop                                            
 20026a8:	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))                           
 20026ac:	21 00 80 7a 	sethi  %hi(0x201e800), %l0                     
   /*                                                                 
    * Create an IMFS node structure pointing to tar image memory.     
    */                                                                
   offset = 0;                                                        
   while (1) {                                                        
    if (offset + 512 > tar_size)                                      
 20026b0:	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))                           
 20026b4:	a0 14 20 c8 	or  %l0, 0xc8, %l0                             
    else if (linkflag == REGTYPE) {                                   
      const char  *name;                                              
                                                                      
      loc = root_loc;                                                 
      if (IMFS_evaluate_for_make(filename, &loc, &name) == 0) {       
        node = IMFS_create_node(                                      
 20026b8:	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)                                      
 20026bc:	80 a7 00 1a 	cmp  %i4, %i2                                  
 20026c0:	18 80 00 29 	bgu  2002764 <rtems_tarfs_load+0x114>          <== NEVER TAKEN
 20026c4:	a2 10 20 2f 	mov  0x2f, %l1                                 
      break;                                                          
                                                                      
    /*                                                                
     * Read a header.                                                 
     */                                                               
    hdr_ptr = (char *) &tar_image[offset];                            
 20026c8:	a6 06 40 13 	add  %i1, %l3, %l3                             
    offset += 512;                                                    
    if (strncmp(&hdr_ptr[257], "ustar", 5))                           
 20026cc:	92 10 00 10 	mov  %l0, %o1                                  
 20026d0:	90 04 e1 01 	add  %l3, 0x101, %o0                           
 20026d4:	40 00 41 9c 	call  2012d44 <strncmp>                        
 20026d8:	94 10 20 05 	mov  5, %o2                                    
 20026dc:	80 a2 20 00 	cmp  %o0, 0                                    
 20026e0:	12 80 00 21 	bne  2002764 <rtems_tarfs_load+0x114>          
 20026e4:	94 10 20 63 	mov  0x63, %o2                                 
      break;                                                          
                                                                      
    strncpy(filename, hdr_ptr, MAX_NAME_FIELD_SIZE);                  
 20026e8:	92 10 00 13 	mov  %l3, %o1                                  
 20026ec:	40 00 41 f5 	call  2012ec0 <strncpy>                        
 20026f0:	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);                
 20026f4:	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';                             
 20026f8:	c0 2f bf d3 	clrb  [ %fp + -45 ]                            
                                                                      
    linkflag   = hdr_ptr[156];                                        
 20026fc:	ea 0c e0 9c 	ldub  [ %l3 + 0x9c ], %l5                      
    file_mode  = _rtems_octal2ulong(&hdr_ptr[100], 8);                
 2002700:	40 00 21 cb 	call  200ae2c <_rtems_octal2ulong>             
 2002704:	90 04 e0 64 	add  %l3, 0x64, %o0                            
    file_size  = _rtems_octal2ulong(&hdr_ptr[124], 12);               
 2002708:	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);                
 200270c:	a8 10 00 08 	mov  %o0, %l4                                  
    file_size  = _rtems_octal2ulong(&hdr_ptr[124], 12);               
 2002710:	40 00 21 c7 	call  200ae2c <_rtems_octal2ulong>             
 2002714:	90 04 e0 7c 	add  %l3, 0x7c, %o0                            
    hdr_chksum = _rtems_octal2ulong(&hdr_ptr[148], 8);                
 2002718:	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);               
 200271c:	b6 10 00 08 	mov  %o0, %i3                                  
    hdr_chksum = _rtems_octal2ulong(&hdr_ptr[148], 8);                
 2002720:	40 00 21 c3 	call  200ae2c <_rtems_octal2ulong>             
 2002724:	90 04 e0 94 	add  %l3, 0x94, %o0                            
 2002728:	ac 10 00 08 	mov  %o0, %l6                                  
                                                                      
    if (_rtems_tar_header_checksum(hdr_ptr) != hdr_chksum)            
 200272c:	40 00 23 12 	call  200b374 <_rtems_tar_header_checksum>     
 2002730:	90 10 00 13 	mov  %l3, %o0                                  
 2002734:	80 a2 00 16 	cmp  %o0, %l6                                  
 2002738:	12 80 00 0b 	bne  2002764 <rtems_tarfs_load+0x114>          <== NEVER TAKEN
 200273c:	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) {                                        
 2002740:	80 a5 60 35 	cmp  %l5, 0x35                                 
 2002744:	02 80 00 20 	be  20027c4 <rtems_tarfs_load+0x174>           
 2002748:	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) {                                   
 200274c:	02 80 00 08 	be  200276c <rtems_tarfs_load+0x11c>           
 2002750:	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)                                      
 2002754:	b8 04 e2 00 	add  %l3, 0x200, %i4                           
 2002758:	80 a7 00 1a 	cmp  %i4, %i2                                  
 200275c:	08 bf ff dc 	bleu  20026cc <rtems_tarfs_load+0x7c>          <== ALWAYS TAKEN
 2002760:	a6 06 40 13 	add  %i1, %l3, %l3                             
      nblocks = (((file_size) + 511) & ~511) / 512;                   
      offset += 512 * nblocks;                                        
    }                                                                 
  }                                                                   
  return status;                                                      
}                                                                     
 2002764:	81 c7 e0 08 	ret                                            
 2002768:	81 e8 00 00 	restore                                        
     *        should not have this path.                              
     */                                                               
    else if (linkflag == REGTYPE) {                                   
      const char  *name;                                              
                                                                      
      loc = root_loc;                                                 
 200276c:	c2 07 bf d4 	ld  [ %fp + -44 ], %g1                         
      if (IMFS_evaluate_for_make(filename, &loc, &name) == 0) {       
 2002770:	90 07 bf 70 	add  %fp, -144, %o0                            
     *        should not have this path.                              
     */                                                               
    else if (linkflag == REGTYPE) {                                   
      const char  *name;                                              
                                                                      
      loc = root_loc;                                                 
 2002774:	c2 27 bf e8 	st  %g1, [ %fp + -24 ]                         
 2002778:	c2 07 bf d8 	ld  [ %fp + -40 ], %g1                         
      if (IMFS_evaluate_for_make(filename, &loc, &name) == 0) {       
 200277c:	92 07 bf e8 	add  %fp, -24, %o1                             
     *        should not have this path.                              
     */                                                               
    else if (linkflag == REGTYPE) {                                   
      const char  *name;                                              
                                                                      
      loc = root_loc;                                                 
 2002780:	c2 27 bf ec 	st  %g1, [ %fp + -20 ]                         
 2002784:	c2 07 bf dc 	ld  [ %fp + -36 ], %g1                         
      if (IMFS_evaluate_for_make(filename, &loc, &name) == 0) {       
 2002788:	94 07 bf fc 	add  %fp, -4, %o2                              
     *        should not have this path.                              
     */                                                               
    else if (linkflag == REGTYPE) {                                   
      const char  *name;                                              
                                                                      
      loc = root_loc;                                                 
 200278c:	c2 27 bf f0 	st  %g1, [ %fp + -16 ]                         
 2002790:	c2 07 bf e0 	ld  [ %fp + -32 ], %g1                         
 2002794:	c2 27 bf f4 	st  %g1, [ %fp + -12 ]                         
 2002798:	c2 07 bf e4 	ld  [ %fp + -28 ], %g1                         
      if (IMFS_evaluate_for_make(filename, &loc, &name) == 0) {       
 200279c:	40 00 25 20 	call  200bc1c <IMFS_evaluate_for_make>         
 20027a0:	c2 27 bf f8 	st  %g1, [ %fp + -8 ]                          
 20027a4:	80 a2 20 00 	cmp  %o0, 0                                    
 20027a8:	02 80 00 1d 	be  200281c <rtems_tarfs_load+0x1cc>           <== ALWAYS TAKEN
 20027ac:	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;                   
 20027b0:	b6 06 e1 ff 	add  %i3, 0x1ff, %i3                           
      offset += 512 * nblocks;                                        
 20027b4:	b6 0e fe 00 	and  %i3, -512, %i3                            
 20027b8:	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)    
 20027bc:	10 bf ff e6 	b  2002754 <rtems_tarfs_load+0x104>            
 20027c0:	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);                              
 20027c4:	92 10 00 1d 	mov  %i5, %o1                                  
 20027c8:	40 00 3f 74 	call  2012598 <strcpy>                         
 20027cc:	90 07 be 70 	add  %fp, -400, %o0                            
      if (full_filename[strlen(full_filename)-1] != '/')              
 20027d0:	40 00 41 27 	call  2012c6c <strlen>                         
 20027d4:	90 07 be 70 	add  %fp, -400, %o0                            
 20027d8:	82 07 80 08 	add  %fp, %o0, %g1                             
 20027dc:	c2 48 7e 6f 	ldsb  [ %g1 + -401 ], %g1                      
 20027e0:	80 a0 60 2f 	cmp  %g1, 0x2f                                 
 20027e4:	02 80 00 05 	be  20027f8 <rtems_tarfs_load+0x1a8>           <== ALWAYS TAKEN
 20027e8:	82 07 be 70 	add  %fp, -400, %g1                            
        strcat(full_filename, "/");                                   
 20027ec:	e2 28 40 08 	stb  %l1, [ %g1 + %o0 ]                        <== NOT EXECUTED
 20027f0:	90 00 40 08 	add  %g1, %o0, %o0                             <== NOT EXECUTED
 20027f4:	c0 2a 20 01 	clrb  [ %o0 + 1 ]                              <== NOT EXECUTED
      strcat(full_filename, filename);                                
 20027f8:	92 07 bf 70 	add  %fp, -144, %o1                            
 20027fc:	40 00 3f 0c 	call  201242c <strcat>                         
 2002800:	90 07 be 70 	add  %fp, -400, %o0                            
      mkdir(full_filename, S_IRWXU | S_IRWXG | S_IRWXO);              
 2002804:	90 07 be 70 	add  %fp, -400, %o0                            
 2002808:	92 10 21 ff 	mov  0x1ff, %o1                                
 200280c:	40 00 04 d9 	call  2003b70 <mkdir>                          
 2002810:	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)                                      
 2002814:	10 bf ff d1 	b  2002758 <rtems_tarfs_load+0x108>            
 2002818:	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,      
 200281c:	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(                                      
 2002820:	90 07 bf e8 	add  %fp, -24, %o0                             
 2002824:	92 10 20 06 	mov  6, %o1                                    
 2002828:	96 12 c0 12 	or  %o3, %l2, %o3                              
 200282c:	40 00 23 46 	call  200b544 <IMFS_create_node>               
 2002830:	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];            
 2002834:	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;                     
 2002838:	c0 22 20 50 	clr  [ %o0 + 0x50 ]                            
 200283c:	f6 22 20 54 	st  %i3, [ %o0 + 0x54 ]                        
        node->info.linearfile.direct = &tar_image[offset];            
 2002840:	10 bf ff dc 	b  20027b0 <rtems_tarfs_load+0x160>            
 2002844:	c2 22 20 58 	st  %g1, [ %o0 + 0x58 ]                        
      nblocks = (((file_size) + 511) & ~511) / 512;                   
      offset += 512 * nblocks;                                        
    }                                                                 
  }                                                                   
  return status;                                                      
}                                                                     
 2002848:	81 c7 e0 08 	ret                                            
 200284c:	91 e8 3f ff 	restore  %g0, -1, %o0                          
      0,                                                              
      &root_loc,                                                      
      0                                                               
   );                                                                 
   if (status != 0)                                                   
     return -1;                                                       
 2002850:	81 c7 e0 08 	ret                                            
 2002854:	91 e8 3f ff 	restore  %g0, -1, %o0                          
                                                                      

0200dc24 <rtems_task_mode>: rtems_status_code rtems_task_mode( rtems_mode mode_set, rtems_mode mask, rtems_mode *previous_mode_set ) {
 200dc24:	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 )                                           
 200dc28:	80 a6 a0 00 	cmp  %i2, 0                                    
 200dc2c:	02 80 00 3b 	be  200dd18 <rtems_task_mode+0xf4>             
 200dc30:	82 10 20 09 	mov  9, %g1                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  executing     = _Thread_Executing;                                  
 200dc34:	21 00 80 56 	sethi  %hi(0x2015800), %l0                     
 200dc38:	a0 14 21 5c 	or  %l0, 0x15c, %l0	! 201595c <_Per_CPU_Information>
 200dc3c:	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;
 200dc40:	c4 0f 60 74 	ldub  [ %i5 + 0x74 ], %g2                      
                                                                      
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
 200dc44:	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;
 200dc48:	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 ];                
 200dc4c:	f8 07 61 58 	ld  [ %i5 + 0x158 ], %i4                       
  asr = &api->Signal;                                                 
                                                                      
  old_mode  = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
 200dc50:	b6 60 3f ff 	subx  %g0, -1, %i3                             
                                                                      
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
 200dc54:	80 a0 60 00 	cmp  %g1, 0                                    
 200dc58:	12 80 00 40 	bne  200dd58 <rtems_task_mode+0x134>           
 200dc5c:	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;           
 200dc60:	c2 0f 20 08 	ldub  [ %i4 + 8 ], %g1                         
 200dc64:	80 a0 00 01 	cmp  %g0, %g1                                  
  old_mode |= _ISR_Get_level();                                       
 200dc68:	7f ff f1 53 	call  200a1b4 <_CPU_ISR_Get_level>             
 200dc6c:	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;           
 200dc70:	a3 2c 60 0a 	sll  %l1, 0xa, %l1                             
 200dc74:	a2 14 40 08 	or  %l1, %o0, %l1                              
  old_mode |= _ISR_Get_level();                                       
 200dc78:	b6 14 40 1b 	or  %l1, %i3, %i3                              
  *previous_mode_set = old_mode;                                      
                                                                      
  /*                                                                  
   *  These are generic thread scheduling characteristics.            
   */                                                                 
  if ( mask & RTEMS_PREEMPT_MASK )                                    
 200dc7c:	80 8e 61 00 	btst  0x100, %i1                               
 200dc80:	02 80 00 06 	be  200dc98 <rtems_task_mode+0x74>             
 200dc84:	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;           
 200dc88:	82 0e 21 00 	and  %i0, 0x100, %g1                           
    executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false;
 200dc8c:	80 a0 00 01 	cmp  %g0, %g1                                  
 200dc90:	82 60 3f ff 	subx  %g0, -1, %g1                             
 200dc94:	c2 2f 60 74 	stb  %g1, [ %i5 + 0x74 ]                       
                                                                      
  if ( mask & RTEMS_TIMESLICE_MASK ) {                                
 200dc98:	80 8e 62 00 	btst  0x200, %i1                               
 200dc9c:	12 80 00 21 	bne  200dd20 <rtems_task_mode+0xfc>            
 200dca0:	80 8e 22 00 	btst  0x200, %i0                               
  }                                                                   
                                                                      
  /*                                                                  
   *  Set the new interrupt level                                     
   */                                                                 
  if ( mask & RTEMS_INTERRUPT_MASK )                                  
 200dca4:	80 8e 60 0f 	btst  0xf, %i1                                 
 200dca8:	12 80 00 27 	bne  200dd44 <rtems_task_mode+0x120>           
 200dcac:	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 ) {                                      
 200dcb0:	80 8e 64 00 	btst  0x400, %i1                               
 200dcb4:	02 80 00 14 	be  200dd04 <rtems_task_mode+0xe0>             
 200dcb8:	86 10 20 00 	clr  %g3                                       
    is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true;
    if ( is_asr_enabled != asr->is_enabled ) {                        
 200dcbc:	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;                
 200dcc0:	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(                                    
 200dcc4:	80 a0 00 18 	cmp  %g0, %i0                                  
 200dcc8:	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 ) {                        
 200dccc:	80 a0 80 01 	cmp  %g2, %g1                                  
 200dcd0:	22 80 00 0e 	be,a   200dd08 <rtems_task_mode+0xe4>          
 200dcd4:	03 00 80 56 	sethi  %hi(0x2015800), %g1                     
)                                                                     
{                                                                     
  rtems_signal_set _signals;                                          
  ISR_Level        _level;                                            
                                                                      
  _ISR_Disable( _level );                                             
 200dcd8:	7f ff d0 9e 	call  2001f50 <sparc_disable_interrupts>       
 200dcdc:	c2 2f 20 08 	stb  %g1, [ %i4 + 8 ]                          
    _signals                     = information->signals_pending;      
 200dce0:	c4 07 20 18 	ld  [ %i4 + 0x18 ], %g2                        
    information->signals_pending = information->signals_posted;       
 200dce4:	c2 07 20 14 	ld  [ %i4 + 0x14 ], %g1                        
    information->signals_posted  = _signals;                          
 200dce8:	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;       
 200dcec:	c2 27 20 18 	st  %g1, [ %i4 + 0x18 ]                        
    information->signals_posted  = _signals;                          
  _ISR_Enable( _level );                                              
 200dcf0:	7f ff d0 9c 	call  2001f60 <sparc_enable_interrupts>        
 200dcf4:	01 00 00 00 	nop                                            
      asr->is_enabled = is_asr_enabled;                               
      _ASR_Swap_signals( asr );                                       
      if ( _ASR_Are_signals_pending( asr ) ) {                        
 200dcf8:	c2 07 20 14 	ld  [ %i4 + 0x14 ], %g1                        
                                                                      
  /*                                                                  
   *  This is specific to the RTEMS API                               
   */                                                                 
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
 200dcfc:	80 a0 00 01 	cmp  %g0, %g1                                  
 200dd00:	86 40 20 00 	addx  %g0, 0, %g3                              
        needs_asr_dispatching = true;                                 
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if ( _System_state_Is_up( _System_state_Get() ) ) {                 
 200dd04:	03 00 80 56 	sethi  %hi(0x2015800), %g1                     
 200dd08:	c4 00 60 8c 	ld  [ %g1 + 0x8c ], %g2	! 201588c <_System_state_Current>
 200dd0c:	80 a0 a0 03 	cmp  %g2, 3                                    
 200dd10:	02 80 00 1f 	be  200dd8c <rtems_task_mode+0x168>            
 200dd14:	82 10 20 00 	clr  %g1                                       
     if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) )
      _Thread_Dispatch();                                             
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 200dd18:	81 c7 e0 08 	ret                                            
 200dd1c:	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) ) {                            
 200dd20:	22 bf ff e1 	be,a   200dca4 <rtems_task_mode+0x80>          
 200dd24:	c0 27 60 7c 	clr  [ %i5 + 0x7c ]                            
      executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
      executing->cpu_time_budget  = _Thread_Ticks_per_timeslice;      
 200dd28:	03 00 80 55 	sethi  %hi(0x2015400), %g1                     
 200dd2c:	c2 00 62 94 	ld  [ %g1 + 0x294 ], %g1	! 2015694 <_Thread_Ticks_per_timeslice>
  }                                                                   
                                                                      
  /*                                                                  
   *  Set the new interrupt level                                     
   */                                                                 
  if ( mask & RTEMS_INTERRUPT_MASK )                                  
 200dd30:	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;      
 200dd34:	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;
 200dd38:	82 10 20 01 	mov  1, %g1                                    
  }                                                                   
                                                                      
  /*                                                                  
   *  Set the new interrupt level                                     
   */                                                                 
  if ( mask & RTEMS_INTERRUPT_MASK )                                  
 200dd3c:	02 bf ff dd 	be  200dcb0 <rtems_task_mode+0x8c>             
 200dd40:	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 );                         
 200dd44:	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 ) );           
 200dd48:	7f ff d0 86 	call  2001f60 <sparc_enable_interrupts>        
 200dd4c:	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 ) {                                      
 200dd50:	10 bf ff d9 	b  200dcb4 <rtems_task_mode+0x90>              
 200dd54:	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;           
 200dd58:	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;                                      
 200dd5c:	b6 16 e2 00 	or  %i3, 0x200, %i3                            
                                                                      
  old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;           
 200dd60:	80 a0 00 01 	cmp  %g0, %g1                                  
  old_mode |= _ISR_Get_level();                                       
 200dd64:	7f ff f1 14 	call  200a1b4 <_CPU_ISR_Get_level>             
 200dd68:	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;           
 200dd6c:	a3 2c 60 0a 	sll  %l1, 0xa, %l1                             
 200dd70:	a2 14 40 08 	or  %l1, %o0, %l1                              
  old_mode |= _ISR_Get_level();                                       
 200dd74:	b6 14 40 1b 	or  %l1, %i3, %i3                              
  *previous_mode_set = old_mode;                                      
                                                                      
  /*                                                                  
   *  These are generic thread scheduling characteristics.            
   */                                                                 
  if ( mask & RTEMS_PREEMPT_MASK )                                    
 200dd78:	80 8e 61 00 	btst  0x100, %i1                               
 200dd7c:	02 bf ff c7 	be  200dc98 <rtems_task_mode+0x74>             
 200dd80:	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;           
 200dd84:	10 bf ff c2 	b  200dc8c <rtems_task_mode+0x68>              
 200dd88:	82 0e 21 00 	and  %i0, 0x100, %g1                           
{                                                                     
  Thread_Control     *executing;                                      
                                                                      
  executing = _Thread_Executing;                                      
                                                                      
  if ( are_signals_pending ||                                         
 200dd8c:	80 88 e0 ff 	btst  0xff, %g3                                
 200dd90:	12 80 00 0a 	bne  200ddb8 <rtems_task_mode+0x194>           
 200dd94:	c4 04 20 0c 	ld  [ %l0 + 0xc ], %g2                         
 200dd98:	c6 04 20 10 	ld  [ %l0 + 0x10 ], %g3                        
 200dd9c:	80 a0 80 03 	cmp  %g2, %g3                                  
 200dda0:	02 bf ff de 	be  200dd18 <rtems_task_mode+0xf4>             
 200dda4:	01 00 00 00 	nop                                            
       (!_Thread_Is_heir( executing ) && executing->is_preemptible) ) {
 200dda8:	c4 08 a0 74 	ldub  [ %g2 + 0x74 ], %g2                      
 200ddac:	80 a0 a0 00 	cmp  %g2, 0                                    
 200ddb0:	02 bf ff da 	be  200dd18 <rtems_task_mode+0xf4>             <== NEVER TAKEN
 200ddb4:	01 00 00 00 	nop                                            
    _Thread_Dispatch_necessary = true;                                
 200ddb8:	82 10 20 01 	mov  1, %g1	! 1 <PROM_START+0x1>               
 200ddbc:	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();                                             
 200ddc0:	7f ff eb 44 	call  2008ad0 <_Thread_Dispatch>               
 200ddc4:	01 00 00 00 	nop                                            
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 200ddc8:	82 10 20 00 	clr  %g1	! 0 <PROM_START>                      
}                                                                     
 200ddcc:	81 c7 e0 08 	ret                                            
 200ddd0:	91 e8 00 01 	restore  %g0, %g1, %o0                         
                                                                      

0200b1b0 <rtems_task_set_priority>: rtems_status_code rtems_task_set_priority( rtems_id id, rtems_task_priority new_priority, rtems_task_priority *old_priority ) {
 200b1b0:	9d e3 bf 98 	save  %sp, -104, %sp                           
  register Thread_Control *the_thread;                                
  Objects_Locations        location;                                  
                                                                      
  if ( new_priority != RTEMS_CURRENT_PRIORITY &&                      
 200b1b4:	80 a6 60 00 	cmp  %i1, 0                                    
 200b1b8:	02 80 00 07 	be  200b1d4 <rtems_task_set_priority+0x24>     
 200b1bc:	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 ) );             
 200b1c0:	03 00 80 65 	sethi  %hi(0x2019400), %g1                     
 200b1c4:	c2 08 60 bc 	ldub  [ %g1 + 0xbc ], %g1	! 20194bc <rtems_maximum_priority>
 */                                                                   
RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid (            
  rtems_task_priority the_priority                                    
)                                                                     
{                                                                     
  return (  ( the_priority >= RTEMS_MINIMUM_PRIORITY ) &&             
 200b1c8:	80 a6 40 01 	cmp  %i1, %g1                                  
 200b1cc:	18 80 00 1c 	bgu  200b23c <rtems_task_set_priority+0x8c>    
 200b1d0:	b0 10 20 13 	mov  0x13, %i0                                 
       !_RTEMS_tasks_Priority_is_valid( new_priority ) )              
    return RTEMS_INVALID_PRIORITY;                                    
                                                                      
  if ( !old_priority )                                                
 200b1d4:	80 a6 a0 00 	cmp  %i2, 0                                    
 200b1d8:	02 80 00 19 	be  200b23c <rtems_task_set_priority+0x8c>     
 200b1dc:	b0 10 20 09 	mov  9, %i0                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 200b1e0:	40 00 09 a3 	call  200d86c <_Thread_Get>                    
 200b1e4:	92 07 bf fc 	add  %fp, -4, %o1                              
  switch ( location ) {                                               
 200b1e8:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 200b1ec:	80 a0 60 00 	cmp  %g1, 0                                    
 200b1f0:	12 80 00 13 	bne  200b23c <rtems_task_set_priority+0x8c>    
 200b1f4:	b0 10 20 04 	mov  4, %i0                                    
                                                                      
    case OBJECTS_LOCAL:                                               
      /* XXX need helper to "convert" from core priority */           
      *old_priority = the_thread->current_priority;                   
 200b1f8:	c2 02 20 14 	ld  [ %o0 + 0x14 ], %g1                        
      if ( new_priority != RTEMS_CURRENT_PRIORITY ) {                 
 200b1fc:	80 a6 60 00 	cmp  %i1, 0                                    
 200b200:	02 80 00 0d 	be  200b234 <rtems_task_set_priority+0x84>     
 200b204:	c2 26 80 00 	st  %g1, [ %i2 ]                               
        the_thread->real_priority = new_priority;                     
        if ( the_thread->resource_count == 0 ||                       
 200b208:	c2 02 20 1c 	ld  [ %o0 + 0x1c ], %g1                        
 200b20c:	80 a0 60 00 	cmp  %g1, 0                                    
 200b210:	02 80 00 06 	be  200b228 <rtems_task_set_priority+0x78>     
 200b214:	f2 22 20 18 	st  %i1, [ %o0 + 0x18 ]                        
 200b218:	c2 02 20 14 	ld  [ %o0 + 0x14 ], %g1                        
 200b21c:	80 a6 40 01 	cmp  %i1, %g1                                  
 200b220:	1a 80 00 05 	bcc  200b234 <rtems_task_set_priority+0x84>    <== ALWAYS TAKEN
 200b224:	01 00 00 00 	nop                                            
             the_thread->current_priority > new_priority )            
          _Thread_Change_priority( the_thread, new_priority, false ); 
 200b228:	92 10 00 19 	mov  %i1, %o1                                  
 200b22c:	40 00 08 4b 	call  200d358 <_Thread_Change_priority>        
 200b230:	94 10 20 00 	clr  %o2                                       
      }                                                               
      _Thread_Enable_dispatch();                                      
 200b234:	40 00 09 82 	call  200d83c <_Thread_Enable_dispatch>        
 200b238:	b0 10 20 00 	clr  %i0                                       
      return RTEMS_SUCCESSFUL;                                        
 200b23c:	81 c7 e0 08 	ret                                            
 200b240:	81 e8 00 00 	restore                                        
                                                                      

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

020076c0 <rtems_task_variable_get>: rtems_status_code rtems_task_variable_get( rtems_id tid, void **ptr, void **result ) {
 20076c0:	9d e3 bf 98 	save  %sp, -104, %sp                           
 20076c4:	90 10 00 18 	mov  %i0, %o0                                  
  Thread_Control        *the_thread;                                  
  Objects_Locations      location;                                    
  rtems_task_variable_t *tvp;                                         
                                                                      
  if ( !ptr )                                                         
 20076c8:	80 a6 60 00 	cmp  %i1, 0                                    
 20076cc:	02 80 00 1b 	be  2007738 <rtems_task_variable_get+0x78>     
 20076d0:	b0 10 20 09 	mov  9, %i0                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !result )                                                      
 20076d4:	80 a6 a0 00 	cmp  %i2, 0                                    
 20076d8:	02 80 00 1c 	be  2007748 <rtems_task_variable_get+0x88>     
 20076dc:	01 00 00 00 	nop                                            
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  the_thread = _Thread_Get (tid, &location);                          
 20076e0:	40 00 08 f6 	call  2009ab8 <_Thread_Get>                    
 20076e4:	92 07 bf fc 	add  %fp, -4, %o1                              
  switch (location) {                                                 
 20076e8:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 20076ec:	80 a0 60 00 	cmp  %g1, 0                                    
 20076f0:	12 80 00 12 	bne  2007738 <rtems_task_variable_get+0x78>    
 20076f4:	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;                               
 20076f8:	c2 02 21 64 	ld  [ %o0 + 0x164 ], %g1                       
      while (tvp) {                                                   
 20076fc:	80 a0 60 00 	cmp  %g1, 0                                    
 2007700:	32 80 00 07 	bne,a   200771c <rtems_task_variable_get+0x5c> 
 2007704:	c4 00 60 04 	ld  [ %g1 + 4 ], %g2                           
 2007708:	30 80 00 0e 	b,a   2007740 <rtems_task_variable_get+0x80>   
 200770c:	80 a0 60 00 	cmp  %g1, 0                                    
 2007710:	02 80 00 0c 	be  2007740 <rtems_task_variable_get+0x80>     <== NEVER TAKEN
 2007714:	01 00 00 00 	nop                                            
        if (tvp->ptr == ptr) {                                        
 2007718:	c4 00 60 04 	ld  [ %g1 + 4 ], %g2                           
 200771c:	80 a0 80 19 	cmp  %g2, %i1                                  
 2007720:	32 bf ff fb 	bne,a   200770c <rtems_task_variable_get+0x4c> 
 2007724:	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;                                        
 2007728:	c2 00 60 0c 	ld  [ %g1 + 0xc ], %g1                         
          _Thread_Enable_dispatch();                                  
          return RTEMS_SUCCESSFUL;                                    
 200772c:	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();                                  
 2007730:	40 00 08 d6 	call  2009a88 <_Thread_Enable_dispatch>        
 2007734:	c2 26 80 00 	st  %g1, [ %i2 ]                               
          return RTEMS_SUCCESSFUL;                                    
 2007738:	81 c7 e0 08 	ret                                            
 200773c:	81 e8 00 00 	restore                                        
        }                                                             
        tvp = (rtems_task_variable_t *)tvp->next;                     
      }                                                               
      _Thread_Enable_dispatch();                                      
 2007740:	40 00 08 d2 	call  2009a88 <_Thread_Enable_dispatch>        
 2007744:	b0 10 20 09 	mov  9, %i0                                    
      return RTEMS_INVALID_ADDRESS;                                   
 2007748:	81 c7 e0 08 	ret                                            
 200774c:	81 e8 00 00 	restore                                        
                                                                      

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

02003e9c <rtems_termios_close>: } } rtems_status_code rtems_termios_close (void *arg) {
 2003e9c:	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(                                        
 2003ea0:	39 00 80 55 	sethi  %hi(0x2015400), %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;                   
 2003ea4:	c2 06 00 00 	ld  [ %i0 ], %g1                               
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain(                                        
 2003ea8:	d0 07 21 b0 	ld  [ %i4 + 0x1b0 ], %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;                   
 2003eac:	fa 00 60 38 	ld  [ %g1 + 0x38 ], %i5                        
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain(                                        
 2003eb0:	92 10 20 00 	clr  %o1                                       
 2003eb4:	40 00 09 49 	call  20063d8 <rtems_semaphore_obtain>         
 2003eb8:	94 10 20 00 	clr  %o2                                       
    rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);            
  if (sc != RTEMS_SUCCESSFUL)                                         
 2003ebc:	80 a2 20 00 	cmp  %o0, 0                                    
 2003ec0:	12 80 00 6f 	bne  200407c <rtems_termios_close+0x1e0>       <== NEVER TAKEN
 2003ec4:	01 00 00 00 	nop                                            
    rtems_fatal_error_occurred (sc);                                  
  if (--tty->refcount == 0) {                                         
 2003ec8:	c2 07 60 08 	ld  [ %i5 + 8 ], %g1                           
 2003ecc:	82 00 7f ff 	add  %g1, -1, %g1                              
 2003ed0:	80 a0 60 00 	cmp  %g1, 0                                    
 2003ed4:	12 80 00 39 	bne  2003fb8 <rtems_termios_close+0x11c>       
 2003ed8:	c2 27 60 08 	st  %g1, [ %i5 + 8 ]                           
    if (rtems_termios_linesw[tty->t_line].l_close != NULL) {          
 2003edc:	c4 07 60 cc 	ld  [ %i5 + 0xcc ], %g2                        
 2003ee0:	03 00 80 54 	sethi  %hi(0x2015000), %g1                     
 2003ee4:	85 28 a0 05 	sll  %g2, 5, %g2                               
 2003ee8:	82 10 62 e4 	or  %g1, 0x2e4, %g1                            
 2003eec:	82 00 40 02 	add  %g1, %g2, %g1                             
 2003ef0:	c2 00 60 04 	ld  [ %g1 + 4 ], %g1                           
 2003ef4:	80 a0 60 00 	cmp  %g1, 0                                    
 2003ef8:	22 80 00 45 	be,a   200400c <rtems_termios_close+0x170>     
 2003efc:	d0 07 60 18 	ld  [ %i5 + 0x18 ], %o0                        
      /*                                                              
       * call discipline-specific close                               
       */                                                             
      sc = rtems_termios_linesw[tty->t_line].l_close(tty);            
 2003f00:	9f c0 40 00 	call  %g1                                      
 2003f04:	90 10 00 1d 	mov  %i5, %o0                                  
      }                                                               
      drainOutput (tty);                                              
      rtems_semaphore_release (tty->osem);                            
    }                                                                 
                                                                      
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
 2003f08:	c2 07 60 b4 	ld  [ %i5 + 0xb4 ], %g1                        
 2003f0c:	80 a0 60 02 	cmp  %g1, 2                                    
 2003f10:	22 80 00 50 	be,a   2004050 <rtems_termios_close+0x1b4>     <== NEVER TAKEN
 2003f14:	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)                                        
 2003f18:	c2 07 60 9c 	ld  [ %i5 + 0x9c ], %g1                        
 2003f1c:	80 a0 60 00 	cmp  %g1, 0                                    
 2003f20:	22 80 00 07 	be,a   2003f3c <rtems_termios_close+0xa0>      <== ALWAYS TAKEN
 2003f24:	c2 07 40 00 	ld  [ %i5 ], %g1                               
       (*tty->device.lastClose)(tty->major, tty->minor, arg);         
 2003f28:	d0 07 60 0c 	ld  [ %i5 + 0xc ], %o0                         <== NOT EXECUTED
 2003f2c:	d2 07 60 10 	ld  [ %i5 + 0x10 ], %o1                        <== NOT EXECUTED
 2003f30:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
 2003f34:	94 10 00 18 	mov  %i0, %o2                                  <== NOT EXECUTED
    if (tty->forw == NULL) {                                          
 2003f38:	c2 07 40 00 	ld  [ %i5 ], %g1                               <== NOT EXECUTED
 2003f3c:	80 a0 60 00 	cmp  %g1, 0                                    
 2003f40:	02 80 00 2c 	be  2003ff0 <rtems_termios_close+0x154>        
 2003f44:	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;                                    
 2003f48:	c4 20 60 04 	st  %g2, [ %g1 + 4 ]                           
 2003f4c:	c4 07 60 04 	ld  [ %i5 + 4 ], %g2                           
    }                                                                 
                                                                      
    if (tty->back == NULL) {                                          
 2003f50:	80 a0 a0 00 	cmp  %g2, 0                                    
 2003f54:	22 80 00 22 	be,a   2003fdc <rtems_termios_close+0x140>     <== ALWAYS TAKEN
 2003f58:	05 00 80 55 	sethi  %hi(0x2015400), %g2                     
      rtems_termios_ttyHead = tty->forw;                              
      if ( rtems_termios_ttyHead != NULL ) {                          
        rtems_termios_ttyHead->back = NULL;                           
      }                                                               
    } else {                                                          
      tty->back->forw = tty->forw;                                    
 2003f5c:	c2 20 80 00 	st  %g1, [ %g2 ]                               
    }                                                                 
                                                                      
    rtems_semaphore_delete (tty->isem);                               
 2003f60:	40 00 08 e7 	call  20062fc <rtems_semaphore_delete>         
 2003f64:	d0 07 60 14 	ld  [ %i5 + 0x14 ], %o0                        
    rtems_semaphore_delete (tty->osem);                               
 2003f68:	40 00 08 e5 	call  20062fc <rtems_semaphore_delete>         
 2003f6c:	d0 07 60 18 	ld  [ %i5 + 0x18 ], %o0                        
    rtems_semaphore_delete (tty->rawOutBuf.Semaphore);                
 2003f70:	40 00 08 e3 	call  20062fc <rtems_semaphore_delete>         
 2003f74:	d0 07 60 8c 	ld  [ %i5 + 0x8c ], %o0                        
    if ((tty->device.pollRead == NULL) ||                             
 2003f78:	c2 07 60 a0 	ld  [ %i5 + 0xa0 ], %g1                        
 2003f7c:	80 a0 60 00 	cmp  %g1, 0                                    
 2003f80:	02 80 00 13 	be  2003fcc <rtems_termios_close+0x130>        
 2003f84:	01 00 00 00 	nop                                            
 2003f88:	c2 07 60 b4 	ld  [ %i5 + 0xb4 ], %g1                        
 2003f8c:	80 a0 60 02 	cmp  %g1, 2                                    
 2003f90:	02 80 00 0f 	be  2003fcc <rtems_termios_close+0x130>        
 2003f94:	01 00 00 00 	nop                                            
        (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN))    
      rtems_semaphore_delete (tty->rawInBuf.Semaphore);               
    free (tty->rawInBuf.theBuf);                                      
 2003f98:	7f ff fa 9f 	call  2002a14 <free>                           
 2003f9c:	d0 07 60 58 	ld  [ %i5 + 0x58 ], %o0                        
    free (tty->rawOutBuf.theBuf);                                     
 2003fa0:	7f ff fa 9d 	call  2002a14 <free>                           
 2003fa4:	d0 07 60 7c 	ld  [ %i5 + 0x7c ], %o0                        
    free (tty->cbuf);                                                 
 2003fa8:	7f ff fa 9b 	call  2002a14 <free>                           
 2003fac:	d0 07 60 1c 	ld  [ %i5 + 0x1c ], %o0                        
    free (tty);                                                       
 2003fb0:	7f ff fa 99 	call  2002a14 <free>                           
 2003fb4:	90 10 00 1d 	mov  %i5, %o0                                  
  }                                                                   
  rtems_semaphore_release (rtems_termios_ttyMutex);                   
 2003fb8:	d0 07 21 b0 	ld  [ %i4 + 0x1b0 ], %o0                       
 2003fbc:	40 00 09 50 	call  20064fc <rtems_semaphore_release>        
 2003fc0:	b0 10 20 00 	clr  %i0                                       
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 2003fc4:	81 c7 e0 08 	ret                                            
 2003fc8:	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);               
 2003fcc:	40 00 08 cc 	call  20062fc <rtems_semaphore_delete>         
 2003fd0:	d0 07 60 68 	ld  [ %i5 + 0x68 ], %o0                        
 2003fd4:	30 bf ff f1 	b,a   2003f98 <rtems_termios_close+0xfc>       
    } else {                                                          
      tty->forw->back = tty->back;                                    
    }                                                                 
                                                                      
    if (tty->back == NULL) {                                          
      rtems_termios_ttyHead = tty->forw;                              
 2003fd8:	05 00 80 55 	sethi  %hi(0x2015400), %g2                     
      if ( rtems_termios_ttyHead != NULL ) {                          
 2003fdc:	80 a0 60 00 	cmp  %g1, 0                                    
 2003fe0:	02 bf ff e0 	be  2003f60 <rtems_termios_close+0xc4>         
 2003fe4:	c2 20 a1 b8 	st  %g1, [ %g2 + 0x1b8 ]                       
        rtems_termios_ttyHead->back = NULL;                           
 2003fe8:	10 bf ff de 	b  2003f60 <rtems_termios_close+0xc4>          
 2003fec:	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;                              
 2003ff0:	07 00 80 55 	sethi  %hi(0x2015400), %g3                     
      if ( rtems_termios_ttyTail != NULL ) {                          
 2003ff4:	80 a0 a0 00 	cmp  %g2, 0                                    
 2003ff8:	02 bf ff f8 	be  2003fd8 <rtems_termios_close+0x13c>        
 2003ffc:	c4 20 e1 b4 	st  %g2, [ %g3 + 0x1b4 ]                       
        rtems_termios_ttyTail->forw = NULL;                           
 2004000:	c0 20 80 00 	clr  [ %g2 ]                                   
 2004004:	10 bf ff d6 	b  2003f5c <rtems_termios_close+0xc0>          
 2004008:	c2 07 40 00 	ld  [ %i5 ], %g1                               
      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);
 200400c:	92 10 20 00 	clr  %o1                                       
 2004010:	40 00 08 f2 	call  20063d8 <rtems_semaphore_obtain>         
 2004014:	94 10 20 00 	clr  %o2                                       
      if (sc != RTEMS_SUCCESSFUL) {                                   
 2004018:	80 a2 20 00 	cmp  %o0, 0                                    
 200401c:	12 80 00 18 	bne  200407c <rtems_termios_close+0x1e0>       <== NEVER TAKEN
 2004020:	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) {           
 2004024:	c2 07 60 b4 	ld  [ %i5 + 0xb4 ], %g1                        
 2004028:	80 a0 60 00 	cmp  %g1, 0                                    
 200402c:	12 80 00 16 	bne  2004084 <rtems_termios_close+0x1e8>       
 2004030:	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);                            
 2004034:	40 00 09 32 	call  20064fc <rtems_semaphore_release>        
 2004038:	d0 07 60 18 	ld  [ %i5 + 0x18 ], %o0                        
    }                                                                 
                                                                      
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
 200403c:	c2 07 60 b4 	ld  [ %i5 + 0xb4 ], %g1                        
 2004040:	80 a0 60 02 	cmp  %g1, 2                                    
 2004044:	32 bf ff b6 	bne,a   2003f1c <rtems_termios_close+0x80>     
 2004048:	c2 07 60 9c 	ld  [ %i5 + 0x9c ], %g1                        
      /*                                                              
       * send "terminate" to I/O tasks                                
       */                                                             
      sc = rtems_event_send( tty->rxTaskId, TERMIOS_RX_TERMINATE_EVENT );
 200404c:	d0 07 60 c4 	ld  [ %i5 + 0xc4 ], %o0                        
 2004050:	40 00 07 a2 	call  2005ed8 <rtems_event_send>               
 2004054:	92 10 20 01 	mov  1, %o1                                    
      if (sc != RTEMS_SUCCESSFUL)                                     
 2004058:	80 a2 20 00 	cmp  %o0, 0                                    
 200405c:	12 80 00 08 	bne  200407c <rtems_termios_close+0x1e0>       <== NEVER TAKEN
 2004060:	01 00 00 00 	nop                                            
        rtems_fatal_error_occurred (sc);                              
      sc = rtems_event_send( tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT );
 2004064:	d0 07 60 c8 	ld  [ %i5 + 0xc8 ], %o0                        
 2004068:	40 00 07 9c 	call  2005ed8 <rtems_event_send>               
 200406c:	92 10 20 01 	mov  1, %o1                                    
      if (sc != RTEMS_SUCCESSFUL)                                     
 2004070:	80 a2 20 00 	cmp  %o0, 0                                    
 2004074:	22 bf ff aa 	be,a   2003f1c <rtems_termios_close+0x80>      <== ALWAYS TAKEN
 2004078:	c2 07 60 9c 	ld  [ %i5 + 0x9c ], %g1                        
        rtems_fatal_error_occurred (sc);                              
 200407c:	40 00 0a 81 	call  2006a80 <rtems_fatal_error_occurred>     <== NOT EXECUTED
 2004080:	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) {           
 2004084:	7f ff fe 5d 	call  20039f8 <drainOutput.part.0>             
 2004088:	90 10 00 1d 	mov  %i5, %o0                                  
 200408c:	30 bf ff ea 	b,a   2004034 <rtems_termios_close+0x198>      
                                                                      

02005764 <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) {
 2005764:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_status_code sc;                                               
                                                                      
  /*                                                                  
   * sum up character count already sent                              
   */                                                                 
  tty->t_dqlen += len;                                                
 2005768:	c4 06 20 90 	ld  [ %i0 + 0x90 ], %g2                        
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {      
 200576c:	c2 06 20 b4 	ld  [ %i0 + 0xb4 ], %g1                        
  rtems_status_code sc;                                               
                                                                      
  /*                                                                  
   * sum up character count already sent                              
   */                                                                 
  tty->t_dqlen += len;                                                
 2005770:	84 00 80 19 	add  %g2, %i1, %g2                             
 2005774:	c4 26 20 90 	st  %g2, [ %i0 + 0x90 ]                        
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {      
 2005778:	80 a0 60 02 	cmp  %g1, 2                                    
 200577c:	02 80 00 10 	be  20057bc <rtems_termios_dequeue_characters+0x58>
 2005780:	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 ) {                                      
 2005784:	c2 06 20 cc 	ld  [ %i0 + 0xcc ], %g1                        
 2005788:	80 a0 60 05 	cmp  %g1, 5                                    
 200578c:	02 80 00 04 	be  200579c <rtems_termios_dequeue_characters+0x38>
 2005790:	03 00 80 54 	sethi  %hi(0x2015000), %g1                     
      rtems_termios_linesw[tty->t_line].l_start(tty);                 
    }                                                                 
    return 0; /* nothing to output in IRQ... */                       
  }                                                                   
                                                                      
  return rtems_termios_refill_transmitter(tty);                       
 2005794:	7f ff ff 58 	call  20054f4 <rtems_termios_refill_transmitter>
 2005798:	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) {          
 200579c:	c2 00 63 98 	ld  [ %g1 + 0x398 ], %g1                       
 20057a0:	80 a0 60 00 	cmp  %g1, 0                                    
 20057a4:	02 80 00 04 	be  20057b4 <rtems_termios_dequeue_characters+0x50><== NEVER TAKEN
 20057a8:	01 00 00 00 	nop                                            
      rtems_termios_linesw[tty->t_line].l_start(tty);                 
 20057ac:	9f c0 40 00 	call  %g1                                      
 20057b0:	01 00 00 00 	nop                                            
    }                                                                 
    return 0; /* nothing to output in IRQ... */                       
  }                                                                   
                                                                      
  return rtems_termios_refill_transmitter(tty);                       
}                                                                     
 20057b4:	81 c7 e0 08 	ret                                            
 20057b8:	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);     
 20057bc:	d0 06 20 c8 	ld  [ %i0 + 0xc8 ], %o0                        
 20057c0:	40 00 01 c6 	call  2005ed8 <rtems_event_send>               
 20057c4:	92 10 20 02 	mov  2, %o1                                    
    if (sc != RTEMS_SUCCESSFUL)                                       
 20057c8:	80 a2 20 00 	cmp  %o0, 0                                    
 20057cc:	02 bf ff fa 	be  20057b4 <rtems_termios_dequeue_characters+0x50><== ALWAYS TAKEN
 20057d0:	01 00 00 00 	nop                                            
      rtems_fatal_error_occurred (sc);                                
 20057d4:	40 00 04 ab 	call  2006a80 <rtems_fatal_error_occurred>     <== NOT EXECUTED
                                                                      

0200515c <rtems_termios_enqueue_raw_characters>: * device receive interrupt handler. * Returns the number of characters dropped because of overflow. */ int rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len) {
 200515c:	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) {             
 2005160:	c2 06 20 cc 	ld  [ %i0 + 0xcc ], %g1                        
 2005164:	39 00 80 54 	sethi  %hi(0x2015000), %i4                     
 2005168:	83 28 60 05 	sll  %g1, 5, %g1                               
 200516c:	b8 17 22 e4 	or  %i4, 0x2e4, %i4                            
 2005170:	82 07 00 01 	add  %i4, %g1, %g1                             
 2005174:	c2 00 60 10 	ld  [ %g1 + 0x10 ], %g1                        
 2005178:	80 a0 60 00 	cmp  %g1, 0                                    
 200517c:	02 80 00 27 	be  2005218 <rtems_termios_enqueue_raw_characters+0xbc>
 2005180:	ba 10 00 18 	mov  %i0, %i5                                  
    while (len--) {                                                   
 2005184:	80 a6 a0 00 	cmp  %i2, 0                                    
 2005188:	22 80 00 10 	be,a   20051c8 <rtems_termios_enqueue_raw_characters+0x6c><== NEVER TAKEN
 200518c:	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, char *buf, int len) 
 2005190:	b4 06 bf ff 	add  %i2, -1, %i2                              
 2005194:	10 80 00 06 	b  20051ac <rtems_termios_enqueue_raw_characters+0x50>
 2005198:	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--) {                                                   
 200519c:	b6 06 e0 01 	inc  %i3                                       
 20051a0:	83 28 60 05 	sll  %g1, 5, %g1                               
 20051a4:	82 07 00 01 	add  %i4, %g1, %g1                             
 20051a8:	c2 00 60 10 	ld  [ %g1 + 0x10 ], %g1                        
      c = *buf++;                                                     
      rtems_termios_linesw[tty->t_line].l_rint(c,tty);                
 20051ac:	d0 4e 40 1b 	ldsb  [ %i1 + %i3 ], %o0                       
 20051b0:	9f c0 40 00 	call  %g1                                      
 20051b4:	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--) {                                                   
 20051b8:	80 a6 c0 1a 	cmp  %i3, %i2                                  
 20051bc:	32 bf ff f8 	bne,a   200519c <rtems_termios_enqueue_raw_characters+0x40>
 20051c0:	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 )) { 
 20051c4:	c2 07 60 e4 	ld  [ %i5 + 0xe4 ], %g1                        
 20051c8:	80 a0 60 00 	cmp  %g1, 0                                    
 20051cc:	12 80 00 0b 	bne  20051f8 <rtems_termios_enqueue_raw_characters+0x9c><== NEVER TAKEN
 20051d0:	b0 10 20 00 	clr  %i0                                       
 20051d4:	c2 07 60 dc 	ld  [ %i5 + 0xdc ], %g1                        
 20051d8:	80 a0 60 00 	cmp  %g1, 0                                    
 20051dc:	02 80 00 0d 	be  2005210 <rtems_termios_enqueue_raw_characters+0xb4>
 20051e0:	01 00 00 00 	nop                                            
      (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg);     
 20051e4:	d2 07 60 e0 	ld  [ %i5 + 0xe0 ], %o1                        
 20051e8:	9f c0 40 00 	call  %g1                                      
 20051ec:	90 07 60 30 	add  %i5, 0x30, %o0                            
      tty->tty_rcvwakeup = 1;                                         
 20051f0:	82 10 20 01 	mov  1, %g1                                    
 20051f4:	c2 27 60 e4 	st  %g1, [ %i5 + 0xe4 ]                        
 20051f8:	81 c7 e0 08 	ret                                            
 20051fc:	81 e8 00 00 	restore                                        
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  tty->rawInBufDropped += dropped;                                    
  rtems_semaphore_release (tty->rawInBuf.Semaphore);                  
 2005200:	d0 07 60 68 	ld  [ %i5 + 0x68 ], %o0                        
        }                                                             
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  tty->rawInBufDropped += dropped;                                    
 2005204:	82 00 40 18 	add  %g1, %i0, %g1                             
  rtems_semaphore_release (tty->rawInBuf.Semaphore);                  
 2005208:	40 00 04 bd 	call  20064fc <rtems_semaphore_release>        
 200520c:	c2 27 60 78 	st  %g1, [ %i5 + 0x78 ]                        
  return dropped;                                                     
}                                                                     
 2005210:	81 c7 e0 08 	ret                                            
 2005214:	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, char *buf, int len) 
 2005218:	b4 06 40 1a 	add  %i1, %i2, %i2                             
 200521c:	a0 10 20 00 	clr  %l0                                       
 2005220:	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); 
 2005224:	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,                          
 2005228:	a6 07 60 4a 	add  %i5, 0x4a, %l3                            
      tty->tty_rcvwakeup = 1;                                         
        }                                                             
    return 0;                                                         
  }                                                                   
                                                                      
  while (len--) {                                                     
 200522c:	80 a6 40 1a 	cmp  %i1, %i2                                  
 2005230:	22 bf ff f4 	be,a   2005200 <rtems_termios_enqueue_raw_characters+0xa4>
 2005234:	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) {                                  
 2005238:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        
        }                                                             
    return 0;                                                         
  }                                                                   
                                                                      
  while (len--) {                                                     
    c = *buf++;                                                       
 200523c:	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) {                                  
 2005240:	80 88 62 00 	btst  0x200, %g1                               
 2005244:	02 80 00 0b 	be  2005270 <rtems_termios_enqueue_raw_characters+0x114>
 2005248:	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]) {                            
 200524c:	c4 0f 60 4a 	ldub  [ %i5 + 0x4a ], %g2                      
 2005250:	83 2f 20 18 	sll  %i4, 0x18, %g1                            
 2005254:	83 38 60 18 	sra  %g1, 0x18, %g1                            
 2005258:	80 a0 40 02 	cmp  %g1, %g2                                  
 200525c:	02 80 00 54 	be  20053ac <rtems_termios_enqueue_raw_characters+0x250>
 2005260:	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]) {                      
 2005264:	80 a0 40 02 	cmp  %g1, %g2                                  
 2005268:	02 80 00 59 	be  20053cc <rtems_termios_enqueue_raw_characters+0x270><== NEVER TAKEN
 200526c:	01 00 00 00 	nop                                            
        /* restart output  */                                         
        tty->flow_ctrl &= ~FL_ORCVXOF;                                
        flow_rcv = true;                                              
      }                                                               
    }                                                                 
    if (flow_rcv) {                                                   
 2005270:	80 8c 20 ff 	btst  0xff, %l0                                
 2005274:	02 80 00 15 	be  20052c8 <rtems_termios_enqueue_raw_characters+0x16c><== ALWAYS TAKEN
 2005278:	01 00 00 00 	nop                                            
      /* restart output according to FL_ORCVXOF flag */               
      if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) {   
 200527c:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        
 2005280:	82 08 60 30 	and  %g1, 0x30, %g1                            
 2005284:	80 a0 60 20 	cmp  %g1, 0x20                                 
 2005288:	12 bf ff ea 	bne  2005230 <rtems_termios_enqueue_raw_characters+0xd4><== ALWAYS TAKEN
 200528c:	80 a6 40 1a 	cmp  %i1, %i2                                  
        /* disable interrupts    */                                   
        rtems_interrupt_disable(level);                               
 2005290:	7f ff f3 30 	call  2001f50 <sparc_disable_interrupts>       <== NOT EXECUTED
 2005294:	01 00 00 00 	nop                                            <== NOT EXECUTED
 2005298:	b8 10 00 08 	mov  %o0, %i4                                  <== NOT EXECUTED
        tty->flow_ctrl &= ~FL_OSTOP;                                  
 200529c:	c4 07 60 b8 	ld  [ %i5 + 0xb8 ], %g2                        <== NOT EXECUTED
        /* check for chars in output buffer (or rob_state?) */        
        if (tty->rawOutBufState != rob_idle) {                        
 20052a0:	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;                                  
 20052a4:	84 08 bf df 	and  %g2, -33, %g2                             <== NOT EXECUTED
 20052a8:	c4 27 60 b8 	st  %g2, [ %i5 + 0xb8 ]                        <== NOT EXECUTED
        /* check for chars in output buffer (or rob_state?) */        
        if (tty->rawOutBufState != rob_idle) {                        
 20052ac:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
 20052b0:	12 80 00 4f 	bne  20053ec <rtems_termios_enqueue_raw_characters+0x290><== NOT EXECUTED
 20052b4:	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);                                
 20052b8:	7f ff f3 2a 	call  2001f60 <sparc_enable_interrupts>        <== NOT EXECUTED
 20052bc:	90 10 00 1c 	mov  %i4, %o0                                  <== NOT EXECUTED
      tty->tty_rcvwakeup = 1;                                         
        }                                                             
    return 0;                                                         
  }                                                                   
                                                                      
  while (len--) {                                                     
 20052c0:	10 bf ff dc 	b  2005230 <rtems_termios_enqueue_raw_characters+0xd4><== NOT EXECUTED
 20052c4:	80 a6 40 1a 	cmp  %i1, %i2                                  <== NOT EXECUTED
        }                                                             
        /* reenable interrupts */                                     
        rtems_interrupt_enable(level);                                
      }                                                               
    } else {                                                          
      newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size;        
 20052c8:	d0 07 60 60 	ld  [ %i5 + 0x60 ], %o0                        
 20052cc:	d2 07 60 64 	ld  [ %i5 + 0x64 ], %o1                        
 20052d0:	40 00 32 75 	call  2011ca4 <.urem>                          
 20052d4:	90 02 20 01 	inc  %o0                                       
      /* if chars_in_buffer > highwater                */             
      rtems_interrupt_disable(level);                                 
 20052d8:	7f ff f3 1e 	call  2001f50 <sparc_disable_interrupts>       
 20052dc:	b6 10 00 08 	mov  %o0, %i3                                  
 20052e0:	a2 10 00 08 	mov  %o0, %l1                                  
      if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size)       
 20052e4:	c2 07 60 5c 	ld  [ %i5 + 0x5c ], %g1                        
 20052e8:	d0 07 60 64 	ld  [ %i5 + 0x64 ], %o0                        
            % tty->rawInBuf.Size) > tty->highwater) &&                
 20052ec:	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)       
 20052f0:	90 22 00 01 	sub  %o0, %g1, %o0                             
            % tty->rawInBuf.Size) > tty->highwater) &&                
 20052f4:	40 00 32 6c 	call  2011ca4 <.urem>                          
 20052f8:	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)       
 20052fc:	c2 07 60 c0 	ld  [ %i5 + 0xc0 ], %g1                        
 2005300:	80 a2 00 01 	cmp  %o0, %g1                                  
 2005304:	08 80 00 13 	bleu  2005350 <rtems_termios_enqueue_raw_characters+0x1f4><== ALWAYS TAKEN
 2005308:	01 00 00 00 	nop                                            
            % tty->rawInBuf.Size) > tty->highwater) &&                
          !(tty->flow_ctrl & FL_IREQXOF)) {                           
 200530c:	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) &&                
 2005310:	80 88 60 01 	btst  1, %g1                                   <== NOT EXECUTED
 2005314:	12 80 00 0f 	bne  2005350 <rtems_termios_enqueue_raw_characters+0x1f4><== NOT EXECUTED
 2005318:	01 00 00 00 	nop                                            <== NOT EXECUTED
          !(tty->flow_ctrl & FL_IREQXOF)) {                           
        /* incoming data stream should be stopped */                  
        tty->flow_ctrl |= FL_IREQXOF;                                 
 200531c:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        <== NOT EXECUTED
 2005320:	82 10 60 01 	or  %g1, 1, %g1                                <== NOT EXECUTED
 2005324:	c2 27 60 b8 	st  %g1, [ %i5 + 0xb8 ]                        <== NOT EXECUTED
        if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF))                
 2005328:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        <== NOT EXECUTED
 200532c:	82 08 64 02 	and  %g1, 0x402, %g1                           <== NOT EXECUTED
 2005330:	80 a0 64 00 	cmp  %g1, 0x400                                <== NOT EXECUTED
            ==                (FL_MDXOF             ) ) {             
          if ((tty->flow_ctrl & FL_OSTOP) ||                          
 2005334:	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))                
 2005338:	02 80 00 35 	be  200540c <rtems_termios_enqueue_raw_characters+0x2b0><== NOT EXECUTED
 200533c:	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) ) {
 2005340:	82 08 61 04 	and  %g1, 0x104, %g1                           <== NOT EXECUTED
 2005344:	80 a0 61 00 	cmp  %g1, 0x100                                <== NOT EXECUTED
 2005348:	02 80 00 40 	be  2005448 <rtems_termios_enqueue_raw_characters+0x2ec><== NOT EXECUTED
 200534c:	01 00 00 00 	nop                                            <== NOT EXECUTED
          }                                                           
        }                                                             
      }                                                               
                                                                      
      /* reenable interrupts */                                       
      rtems_interrupt_enable(level);                                  
 2005350:	7f ff f3 04 	call  2001f60 <sparc_enable_interrupts>        
 2005354:	90 10 00 11 	mov  %l1, %o0                                  
                                                                      
      if (newTail == tty->rawInBuf.Head) {                            
 2005358:	c2 07 60 5c 	ld  [ %i5 + 0x5c ], %g1                        
 200535c:	80 a0 40 1b 	cmp  %g1, %i3                                  
 2005360:	22 bf ff b3 	be,a   200522c <rtems_termios_enqueue_raw_characters+0xd0><== NEVER TAKEN
 2005364:	b0 06 20 01 	inc  %i0                                       <== NOT EXECUTED
        dropped++;                                                    
      } else {                                                        
        tty->rawInBuf.theBuf[newTail] = c;                            
 2005368:	c2 07 60 58 	ld  [ %i5 + 0x58 ], %g1                        
 200536c:	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 )) {
 2005370:	c2 07 60 e4 	ld  [ %i5 + 0xe4 ], %g1                        
                                                                      
      if (newTail == tty->rawInBuf.Head) {                            
        dropped++;                                                    
      } else {                                                        
        tty->rawInBuf.theBuf[newTail] = c;                            
        tty->rawInBuf.Tail = newTail;                                 
 2005374:	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 )) {
 2005378:	80 a0 60 00 	cmp  %g1, 0                                    
 200537c:	12 bf ff ad 	bne  2005230 <rtems_termios_enqueue_raw_characters+0xd4><== NEVER TAKEN
 2005380:	80 a6 40 1a 	cmp  %i1, %i2                                  
 2005384:	c2 07 60 dc 	ld  [ %i5 + 0xdc ], %g1                        
 2005388:	80 a0 60 00 	cmp  %g1, 0                                    
 200538c:	02 bf ff a9 	be  2005230 <rtems_termios_enqueue_raw_characters+0xd4><== ALWAYS TAKEN
 2005390:	80 a6 40 1a 	cmp  %i1, %i2                                  
          (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 
 2005394:	d2 07 60 e0 	ld  [ %i5 + 0xe0 ], %o1                        <== NOT EXECUTED
 2005398:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
 200539c:	90 10 00 12 	mov  %l2, %o0                                  <== NOT EXECUTED
          tty->tty_rcvwakeup = 1;                                     
 20053a0:	82 10 20 01 	mov  1, %g1                                    <== NOT EXECUTED
 20053a4:	10 bf ff a2 	b  200522c <rtems_termios_enqueue_raw_characters+0xd0><== NOT EXECUTED
 20053a8:	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]) {                         
 20053ac:	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;               
 20053b0:	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]) {                         
 20053b4:	22 80 00 0b 	be,a   20053e0 <rtems_termios_enqueue_raw_characters+0x284><== NEVER TAKEN
 20053b8:	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;                               
 20053bc:	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, char *buf, int len) 
 20053c0:	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;                               
 20053c4:	c2 27 60 b8 	st  %g1, [ %i5 + 0xb8 ]                        
 20053c8:	30 bf ff ad 	b,a   200527c <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;                                
 20053cc:	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, char *buf, int len) 
 20053d0:	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;                                
 20053d4:	82 08 7f ef 	and  %g1, -17, %g1                             <== NOT EXECUTED
 20053d8:	c2 27 60 b8 	st  %g1, [ %i5 + 0xb8 ]                        <== NOT EXECUTED
 20053dc:	30 bf ff a8 	b,a   200527c <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, char *buf, int len) 
 20053e0:	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;               
 20053e4:	c2 27 60 b8 	st  %g1, [ %i5 + 0xb8 ]                        <== NOT EXECUTED
 20053e8:	30 bf ff a5 	b,a   200527c <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);
 20053ec:	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)(                                       
 20053f0:	d2 07 60 7c 	ld  [ %i5 + 0x7c ], %o1                        <== NOT EXECUTED
 20053f4:	c2 07 60 a4 	ld  [ %i5 + 0xa4 ], %g1                        <== NOT EXECUTED
 20053f8:	d0 07 60 10 	ld  [ %i5 + 0x10 ], %o0                        <== NOT EXECUTED
 20053fc:	92 02 40 02 	add  %o1, %g2, %o1                             <== NOT EXECUTED
 2005400:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
 2005404:	94 10 20 01 	mov  1, %o2                                    <== NOT EXECUTED
 2005408:	30 bf ff ac 	b,a   20052b8 <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) ||                          
 200540c:	12 80 00 06 	bne  2005424 <rtems_termios_enqueue_raw_characters+0x2c8><== NOT EXECUTED
 2005410:	01 00 00 00 	nop                                            <== NOT EXECUTED
 2005414:	c2 07 60 94 	ld  [ %i5 + 0x94 ], %g1                        <== NOT EXECUTED
 2005418:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
 200541c:	12 bf ff cd 	bne  2005350 <rtems_termios_enqueue_raw_characters+0x1f4><== NOT EXECUTED
 2005420:	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;                             
 2005424:	c4 07 60 b8 	ld  [ %i5 + 0xb8 ], %g2                        <== NOT EXECUTED
            (*tty->device.write)(tty->minor,                          
 2005428:	c2 07 60 a4 	ld  [ %i5 + 0xa4 ], %g1                        <== NOT EXECUTED
 200542c:	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;                             
 2005430:	84 10 a0 02 	or  %g2, 2, %g2                                <== NOT EXECUTED
            (*tty->device.write)(tty->minor,                          
 2005434:	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;                             
 2005438:	c4 27 60 b8 	st  %g2, [ %i5 + 0xb8 ]                        <== NOT EXECUTED
            (*tty->device.write)(tty->minor,                          
 200543c:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
 2005440:	94 10 20 01 	mov  1, %o2                                    <== NOT EXECUTED
 2005444:	30 bf ff c3 	b,a   2005350 <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;                               
 2005448:	c4 07 60 b8 	ld  [ %i5 + 0xb8 ], %g2                        <== NOT EXECUTED
          /* deactivate RTS line */                                   
          if (tty->device.stopRemoteTx != NULL) {                     
 200544c:	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;                               
 2005450:	84 10 a0 04 	or  %g2, 4, %g2                                <== NOT EXECUTED
 2005454:	c4 27 60 b8 	st  %g2, [ %i5 + 0xb8 ]                        <== NOT EXECUTED
          /* deactivate RTS line */                                   
          if (tty->device.stopRemoteTx != NULL) {                     
 2005458:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
 200545c:	02 bf ff bd 	be  2005350 <rtems_termios_enqueue_raw_characters+0x1f4><== NOT EXECUTED
 2005460:	01 00 00 00 	nop                                            <== NOT EXECUTED
            tty->device.stopRemoteTx(tty->minor);                     
 2005464:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
 2005468:	d0 07 60 10 	ld  [ %i5 + 0x10 ], %o0                        <== NOT EXECUTED
 200546c:	30 bf ff b9 	b,a   2005350 <rtems_termios_enqueue_raw_characters+0x1f4><== NOT EXECUTED
                                                                      

020040b0 <rtems_termios_ioctl>: } } rtems_status_code rtems_termios_ioctl (void *arg) {
 20040b0:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_libio_ioctl_args_t *args = arg;                               
  struct rtems_termios_tty *tty = args->iop->data1;                   
 20040b4:	c2 06 00 00 	ld  [ %i0 ], %g1                               
  struct ttywakeup         *wakeup = (struct ttywakeup *)args->buffer;
 20040b8:	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;                   
 20040bc:	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);
 20040c0:	92 10 20 00 	clr  %o1                                       
 20040c4:	d0 07 60 18 	ld  [ %i5 + 0x18 ], %o0                        
 20040c8:	94 10 20 00 	clr  %o2                                       
 20040cc:	40 00 08 c3 	call  20063d8 <rtems_semaphore_obtain>         
 20040d0:	c0 26 20 0c 	clr  [ %i0 + 0xc ]                             
  if (sc != RTEMS_SUCCESSFUL) {                                       
 20040d4:	b8 92 20 00 	orcc  %o0, 0, %i4                              
 20040d8:	32 80 00 1a 	bne,a   2004140 <rtems_termios_ioctl+0x90>     <== NEVER TAKEN
 20040dc:	f8 26 20 0c 	st  %i4, [ %i0 + 0xc ]                         <== NOT EXECUTED
    args->ioctl_return = sc;                                          
    return sc;                                                        
  }                                                                   
  switch (args->command) {                                            
 20040e0:	c2 06 20 04 	ld  [ %i0 + 4 ], %g1                           
 20040e4:	80 a0 60 04 	cmp  %g1, 4                                    
 20040e8:	22 80 00 10 	be,a   2004128 <rtems_termios_ioctl+0x78>      
 20040ec:	c2 06 c0 00 	ld  [ %i3 ], %g1                               
 20040f0:	18 80 00 16 	bgu  2004148 <rtems_termios_ioctl+0x98>        
 20040f4:	05 10 01 19 	sethi  %hi(0x40046400), %g2                    
 20040f8:	80 a0 60 02 	cmp  %g1, 2                                    
 20040fc:	22 80 00 2a 	be,a   20041a4 <rtems_termios_ioctl+0xf4>      
 2004100:	d2 06 20 08 	ld  [ %i0 + 8 ], %o1                           
 2004104:	08 80 00 99 	bleu  2004368 <rtems_termios_ioctl+0x2b8>      
 2004108:	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) {           
 200410c:	c2 07 60 b4 	ld  [ %i5 + 0xb4 ], %g1                        
 2004110:	80 a0 60 00 	cmp  %g1, 0                                    
 2004114:	02 80 00 08 	be  2004134 <rtems_termios_ioctl+0x84>         <== ALWAYS TAKEN
 2004118:	01 00 00 00 	nop                                            
 200411c:	7f ff fe 37 	call  20039f8 <drainOutput.part.0>             <== NOT EXECUTED
 2004120:	90 10 00 1d 	mov  %i5, %o0                                  <== NOT EXECUTED
 2004124:	30 80 00 04 	b,a   2004134 <rtems_termios_ioctl+0x84>       <== NOT EXECUTED
  case RTEMS_IO_SNDWAKEUP:                                            
    tty->tty_snd = *wakeup;                                           
    break;                                                            
                                                                      
  case RTEMS_IO_RCVWAKEUP:                                            
    tty->tty_rcv = *wakeup;                                           
 2004128:	c2 27 60 dc 	st  %g1, [ %i5 + 0xdc ]                        
 200412c:	c2 06 e0 04 	ld  [ %i3 + 4 ], %g1                           
 2004130:	c2 27 60 e0 	st  %g1, [ %i5 + 0xe0 ]                        
      *(int *)args->buffer = tty->ccount - tty->cindex + rawnc;       
    }                                                                 
    break;                                                            
  }                                                                   
                                                                      
  rtems_semaphore_release (tty->osem);                                
 2004134:	40 00 08 f2 	call  20064fc <rtems_semaphore_release>        
 2004138:	d0 07 60 18 	ld  [ %i5 + 0x18 ], %o0                        
  args->ioctl_return = sc;                                            
 200413c:	f8 26 20 0c 	st  %i4, [ %i0 + 0xc ]                         
  return sc;                                                          
}                                                                     
 2004140:	81 c7 e0 08 	ret                                            
 2004144:	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) {                                            
 2004148:	84 10 a2 7f 	or  %g2, 0x27f, %g2                            
 200414c:	80 a0 40 02 	cmp  %g1, %g2                                  
 2004150:	02 80 00 7a 	be  2004338 <rtems_termios_ioctl+0x288>        <== NEVER TAKEN
 2004154:	01 00 00 00 	nop                                            
 2004158:	18 80 00 8b 	bgu  2004384 <rtems_termios_ioctl+0x2d4>       
 200415c:	05 10 01 1d 	sethi  %hi(0x40047400), %g2                    
 2004160:	80 a0 60 05 	cmp  %g1, 5                                    
 2004164:	22 80 00 ac 	be,a   2004414 <rtems_termios_ioctl+0x364>     
 2004168:	c2 06 c0 00 	ld  [ %i3 ], %g1                               
  default:                                                            
    if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) {          
 200416c:	c4 07 60 cc 	ld  [ %i5 + 0xcc ], %g2                        
 2004170:	03 00 80 54 	sethi  %hi(0x2015000), %g1                     
 2004174:	85 28 a0 05 	sll  %g2, 5, %g2                               
 2004178:	82 10 62 e4 	or  %g1, 0x2e4, %g1                            
 200417c:	82 00 40 02 	add  %g1, %g2, %g1                             
 2004180:	c2 00 60 18 	ld  [ %g1 + 0x18 ], %g1                        
 2004184:	80 a0 60 00 	cmp  %g1, 0                                    
 2004188:	02 bf ff eb 	be  2004134 <rtems_termios_ioctl+0x84>         <== NEVER TAKEN
 200418c:	b8 10 20 0a 	mov  0xa, %i4                                  
      sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args);       
 2004190:	90 10 00 1d 	mov  %i5, %o0                                  
 2004194:	9f c0 40 00 	call  %g1                                      
 2004198:	92 10 00 18 	mov  %i0, %o1                                  
 200419c:	10 bf ff e6 	b  2004134 <rtems_termios_ioctl+0x84>          
 20041a0:	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;                   
 20041a4:	b6 07 60 30 	add  %i5, 0x30, %i3                            
 20041a8:	94 10 20 24 	mov  0x24, %o2                                 
 20041ac:	40 00 2a 59 	call  200eb10 <memcpy>                         
 20041b0:	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) &&                                 
 20041b4:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        
 20041b8:	80 88 62 00 	btst  0x200, %g1                               
 20041bc:	02 80 00 19 	be  2004220 <rtems_termios_ioctl+0x170>        
 20041c0:	01 00 00 00 	nop                                            
      !(tty->termios.c_iflag & IXON)) {                               
 20041c4:	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) &&                                 
 20041c8:	80 88 64 00 	btst  0x400, %g1                               
 20041cc:	12 80 00 15 	bne  2004220 <rtems_termios_ioctl+0x170>       
 20041d0:	01 00 00 00 	nop                                            
      !(tty->termios.c_iflag & IXON)) {                               
    /* clear related flags in flow_ctrl */                            
    tty->flow_ctrl &= ~(FL_MDXON | FL_ORCVXOF);                       
 20041d4:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        
 20041d8:	82 08 7d ef 	and  %g1, -529, %g1                            
 20041dc:	c2 27 60 b8 	st  %g1, [ %i5 + 0xb8 ]                        
                                                                      
    /* has output been stopped due to received XOFF? */               
    if (tty->flow_ctrl & FL_OSTOP) {                                  
 20041e0:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        
 20041e4:	80 88 60 20 	btst  0x20, %g1                                
 20041e8:	02 80 00 0e 	be  2004220 <rtems_termios_ioctl+0x170>        <== ALWAYS TAKEN
 20041ec:	01 00 00 00 	nop                                            
      /* disable interrupts    */                                     
      rtems_interrupt_disable(level);                                 
 20041f0:	7f ff f7 58 	call  2001f50 <sparc_disable_interrupts>       <== NOT EXECUTED
 20041f4:	01 00 00 00 	nop                                            <== NOT EXECUTED
 20041f8:	b4 10 00 08 	mov  %o0, %i2                                  <== NOT EXECUTED
      tty->flow_ctrl &= ~FL_OSTOP;                                    
 20041fc:	c4 07 60 b8 	ld  [ %i5 + 0xb8 ], %g2                        <== NOT EXECUTED
      /* check for chars in output buffer (or rob_state?) */          
      if (tty->rawOutBufState != rob_idle) {                          
 2004200:	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;                                    
 2004204:	84 08 bf df 	and  %g2, -33, %g2                             <== NOT EXECUTED
 2004208:	c4 27 60 b8 	st  %g2, [ %i5 + 0xb8 ]                        <== NOT EXECUTED
      /* check for chars in output buffer (or rob_state?) */          
      if (tty->rawOutBufState != rob_idle) {                          
 200420c:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
 2004210:	12 80 00 a4 	bne  20044a0 <rtems_termios_ioctl+0x3f0>       <== NOT EXECUTED
 2004214:	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);                                  
 2004218:	7f ff f7 52 	call  2001f60 <sparc_enable_interrupts>        <== NOT EXECUTED
 200421c:	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)) {
 2004220:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        
 2004224:	80 88 64 00 	btst  0x400, %g1                               
 2004228:	02 80 00 0c 	be  2004258 <rtems_termios_ioctl+0x1a8>        
 200422c:	03 00 00 04 	sethi  %hi(0x1000), %g1                        
 2004230:	c4 07 60 30 	ld  [ %i5 + 0x30 ], %g2                        
 2004234:	80 88 80 01 	btst  %g2, %g1                                 
 2004238:	12 80 00 08 	bne  2004258 <rtems_termios_ioctl+0x1a8>       <== NEVER TAKEN
 200423c:	01 00 00 00 	nop                                            
    /* clear related flags in flow_ctrl */                            
    tty->flow_ctrl &= ~(FL_MDXOF);                                    
 2004240:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        
 2004244:	82 08 7b ff 	and  %g1, -1025, %g1                           
 2004248:	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);                                  
 200424c:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        
 2004250:	82 08 7f fd 	and  %g1, -3, %g1                              
 2004254:	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)) {
 2004258:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        
 200425c:	80 88 61 00 	btst  0x100, %g1                               
 2004260:	02 80 00 16 	be  20042b8 <rtems_termios_ioctl+0x208>        <== ALWAYS TAKEN
 2004264:	c4 07 60 38 	ld  [ %i5 + 0x38 ], %g2                        
 2004268:	80 a0 a0 00 	cmp  %g2, 0                                    <== NOT EXECUTED
 200426c:	06 80 00 82 	bl  2004474 <rtems_termios_ioctl+0x3c4>        <== NOT EXECUTED
 2004270:	01 00 00 00 	nop                                            <== NOT EXECUTED
    /* clear related flags in flow_ctrl */                            
    tty->flow_ctrl &= ~(FL_MDRTS);                                    
 2004274:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        <== NOT EXECUTED
 2004278:	82 08 7e ff 	and  %g1, -257, %g1                            <== NOT EXECUTED
 200427c:	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)) {
 2004280:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        <== NOT EXECUTED
 2004284:	80 88 60 04 	btst  4, %g1                                   <== NOT EXECUTED
 2004288:	02 80 00 09 	be  20042ac <rtems_termios_ioctl+0x1fc>        <== NOT EXECUTED
 200428c:	01 00 00 00 	nop                                            <== NOT EXECUTED
 2004290:	c2 07 60 b0 	ld  [ %i5 + 0xb0 ], %g1                        <== NOT EXECUTED
 2004294:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
 2004298:	02 80 00 05 	be  20042ac <rtems_termios_ioctl+0x1fc>        <== NOT EXECUTED
 200429c:	01 00 00 00 	nop                                            <== NOT EXECUTED
      tty->device.startRemoteTx(tty->minor);                          
 20042a0:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
 20042a4:	d0 07 60 10 	ld  [ %i5 + 0x10 ], %o0                        <== NOT EXECUTED
 20042a8:	c4 07 60 38 	ld  [ %i5 + 0x38 ], %g2                        <== NOT EXECUTED
    }                                                                 
    tty->flow_ctrl &= ~(FL_IRTSOFF);                                  
 20042ac:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        <== NOT EXECUTED
 20042b0:	82 08 7f fb 	and  %g1, -5, %g1                              <== NOT EXECUTED
 20042b4:	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) {                               
 20042b8:	80 a0 a0 00 	cmp  %g2, 0                                    
 20042bc:	06 80 00 6e 	bl  2004474 <rtems_termios_ioctl+0x3c4>        <== NEVER TAKEN
 20042c0:	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) {                                 
 20042c4:	c2 07 60 30 	ld  [ %i5 + 0x30 ], %g1                        
 20042c8:	05 00 00 04 	sethi  %hi(0x1000), %g2                        
 20042cc:	80 88 40 02 	btst  %g1, %g2                                 
 20042d0:	02 80 00 06 	be  20042e8 <rtems_termios_ioctl+0x238>        
 20042d4:	80 88 64 00 	btst  0x400, %g1                               
    tty->flow_ctrl |= FL_MDXOF;                                       
 20042d8:	c4 07 60 b8 	ld  [ %i5 + 0xb8 ], %g2                        
 20042dc:	84 10 a4 00 	or  %g2, 0x400, %g2                            
 20042e0:	c4 27 60 b8 	st  %g2, [ %i5 + 0xb8 ]                        
  }                                                                   
  /* check for outgoing XON/XOF flow control switched on */           
  if (tty->termios.c_iflag & IXON) {                                  
 20042e4:	80 88 64 00 	btst  0x400, %g1                               
 20042e8:	22 80 00 06 	be,a   2004300 <rtems_termios_ioctl+0x250>     
 20042ec:	c2 07 60 3c 	ld  [ %i5 + 0x3c ], %g1                        
    tty->flow_ctrl |= FL_MDXON;                                       
 20042f0:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        
 20042f4:	82 10 62 00 	or  %g1, 0x200, %g1                            
 20042f8:	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) {                              
 20042fc:	c2 07 60 3c 	ld  [ %i5 + 0x3c ], %g1                        
 2004300:	80 88 60 02 	btst  2, %g1                                   
 2004304:	02 80 00 48 	be  2004424 <rtems_termios_ioctl+0x374>        
 2004308:	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;                 
 200430c:	c0 27 60 6c 	clr  [ %i5 + 0x6c ]                            
          tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;           
 2004310:	c0 27 60 70 	clr  [ %i5 + 0x70 ]                            
          tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;      
 2004314:	c0 27 60 74 	clr  [ %i5 + 0x74 ]                            
        } else {                                                      
          tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT;              
        }                                                             
      }                                                               
    }                                                                 
    if (tty->device.setAttributes)                                    
 2004318:	c2 07 60 a8 	ld  [ %i5 + 0xa8 ], %g1                        
 200431c:	80 a0 60 00 	cmp  %g1, 0                                    
 2004320:	02 bf ff 85 	be  2004134 <rtems_termios_ioctl+0x84>         <== NEVER TAKEN
 2004324:	01 00 00 00 	nop                                            
      (*tty->device.setAttributes)(tty->minor, &tty->termios);        
 2004328:	d0 07 60 10 	ld  [ %i5 + 0x10 ], %o0                        
 200432c:	9f c0 40 00 	call  %g1                                      
 2004330:	92 10 00 1b 	mov  %i3, %o1                                  
 2004334:	30 bf ff 80 	b,a   2004134 <rtems_termios_ioctl+0x84>       
  case TIOCGETD:                                                      
    *(int*)(args->buffer)=tty->t_line;                                
    break;                                                            
#endif                                                                
   case FIONREAD: {                                                   
      int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head;            
 2004338:	c4 07 60 60 	ld  [ %i5 + 0x60 ], %g2                        <== NOT EXECUTED
 200433c:	c2 07 60 5c 	ld  [ %i5 + 0x5c ], %g1                        <== NOT EXECUTED
      if ( rawnc < 0 )                                                
 2004340:	82 a0 80 01 	subcc  %g2, %g1, %g1                           <== NOT EXECUTED
 2004344:	0c 80 00 49 	bneg  2004468 <rtems_termios_ioctl+0x3b8>      <== NOT EXECUTED
 2004348:	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;       
 200434c:	c8 07 60 20 	ld  [ %i5 + 0x20 ], %g4                        <== NOT EXECUTED
 2004350:	c4 07 60 24 	ld  [ %i5 + 0x24 ], %g2                        <== NOT EXECUTED
 2004354:	c6 06 20 08 	ld  [ %i0 + 8 ], %g3                           <== NOT EXECUTED
 2004358:	84 21 00 02 	sub  %g4, %g2, %g2                             <== NOT EXECUTED
 200435c:	82 00 80 01 	add  %g2, %g1, %g1                             <== NOT EXECUTED
    }                                                                 
    break;                                                            
 2004360:	10 bf ff 75 	b  2004134 <rtems_termios_ioctl+0x84>          <== NOT EXECUTED
 2004364:	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) {                                            
 2004368:	32 bf ff 82 	bne,a   2004170 <rtems_termios_ioctl+0xc0>     <== NEVER TAKEN
 200436c:	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;                   
 2004370:	d0 06 20 08 	ld  [ %i0 + 8 ], %o0                           
 2004374:	92 07 60 30 	add  %i5, 0x30, %o1                            
 2004378:	40 00 29 e6 	call  200eb10 <memcpy>                         
 200437c:	94 10 20 24 	mov  0x24, %o2                                 
    break;                                                            
 2004380:	30 bf ff 6d 	b,a   2004134 <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) {                                            
 2004384:	84 10 a0 1a 	or  %g2, 0x1a, %g2                             
 2004388:	80 a0 40 02 	cmp  %g1, %g2                                  
 200438c:	02 80 00 1e 	be  2004404 <rtems_termios_ioctl+0x354>        
 2004390:	05 20 01 1d 	sethi  %hi(0x80047400), %g2                    
 2004394:	84 10 a0 1b 	or  %g2, 0x1b, %g2	! 8004741b <RAM_END+0x7dc4741b>
 2004398:	80 a0 40 02 	cmp  %g1, %g2                                  
 200439c:	32 bf ff 75 	bne,a   2004170 <rtems_termios_ioctl+0xc0>     <== NEVER TAKEN
 20043a0:	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) {          
 20043a4:	c2 07 60 cc 	ld  [ %i5 + 0xcc ], %g1                        
 20043a8:	37 00 80 54 	sethi  %hi(0x2015000), %i3                     
 20043ac:	83 28 60 05 	sll  %g1, 5, %g1                               
 20043b0:	b6 16 e2 e4 	or  %i3, 0x2e4, %i3                            
 20043b4:	82 06 c0 01 	add  %i3, %g1, %g1                             
 20043b8:	c2 00 60 04 	ld  [ %g1 + 4 ], %g1                           
 20043bc:	80 a0 60 00 	cmp  %g1, 0                                    
 20043c0:	22 80 00 06 	be,a   20043d8 <rtems_termios_ioctl+0x328>     
 20043c4:	c2 06 20 08 	ld  [ %i0 + 8 ], %g1                           
      sc = rtems_termios_linesw[tty->t_line].l_close(tty);            
 20043c8:	9f c0 40 00 	call  %g1                                      
 20043cc:	90 10 00 1d 	mov  %i5, %o0                                  
 20043d0:	b8 10 00 08 	mov  %o0, %i4                                  
    }                                                                 
    tty->t_line=*(int*)(args->buffer);                                
 20043d4:	c2 06 20 08 	ld  [ %i0 + 8 ], %g1                           
 20043d8:	c4 00 40 00 	ld  [ %g1 ], %g2                               
    tty->t_sc = NULL; /* ensure that no more valid data */            
 20043dc:	c0 27 60 d0 	clr  [ %i5 + 0xd0 ]                            
    /*                                                                
     * open new line discipline                                       
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_open != NULL) {           
 20043e0:	83 28 a0 05 	sll  %g2, 5, %g1                               
 20043e4:	c2 06 c0 01 	ld  [ %i3 + %g1 ], %g1                         
 20043e8:	80 a0 60 00 	cmp  %g1, 0                                    
 20043ec:	02 bf ff 52 	be  2004134 <rtems_termios_ioctl+0x84>         
 20043f0:	c4 27 60 cc 	st  %g2, [ %i5 + 0xcc ]                        
      sc = rtems_termios_linesw[tty->t_line].l_open(tty);             
 20043f4:	9f c0 40 00 	call  %g1                                      
 20043f8:	90 10 00 1d 	mov  %i5, %o0                                  
 20043fc:	10 bf ff 4e 	b  2004134 <rtems_termios_ioctl+0x84>          
 2004400:	b8 10 00 08 	mov  %o0, %i4                                  
    }                                                                 
    break;                                                            
  case TIOCGETD:                                                      
    *(int*)(args->buffer)=tty->t_line;                                
 2004404:	c4 07 60 cc 	ld  [ %i5 + 0xcc ], %g2                        
 2004408:	c2 06 20 08 	ld  [ %i0 + 8 ], %g1                           
    break;                                                            
 200440c:	10 bf ff 4a 	b  2004134 <rtems_termios_ioctl+0x84>          
 2004410:	c4 20 40 00 	st  %g2, [ %g1 ]                               
  case RTEMS_IO_TCDRAIN:                                              
    drainOutput (tty);                                                
    break;                                                            
                                                                      
  case RTEMS_IO_SNDWAKEUP:                                            
    tty->tty_snd = *wakeup;                                           
 2004414:	c2 27 60 d4 	st  %g1, [ %i5 + 0xd4 ]                        
 2004418:	c2 06 e0 04 	ld  [ %i3 + 4 ], %g1                           
    break;                                                            
 200441c:	10 bf ff 46 	b  2004134 <rtems_termios_ioctl+0x84>          
 2004420:	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;          
 2004424:	40 00 06 20 	call  2005ca4 <rtems_clock_get_ticks_per_second>
 2004428:	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] *                    
 200442c:	40 00 35 38 	call  201190c <.umul>                          
 2004430:	92 10 00 1a 	mov  %i2, %o1                                  
                    rtems_clock_get_ticks_per_second() / 10;          
 2004434:	40 00 35 70 	call  20119f4 <.udiv>                          
 2004438:	92 10 20 0a 	mov  0xa, %o1                                  
      if (tty->termios.c_cc[VTIME]) {                                 
 200443c:	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] *                    
 2004440:	d0 27 60 54 	st  %o0, [ %i5 + 0x54 ]                        
                    rtems_clock_get_ticks_per_second() / 10;          
      if (tty->termios.c_cc[VTIME]) {                                 
 2004444:	80 a0 60 00 	cmp  %g1, 0                                    
 2004448:	02 80 00 10 	be  2004488 <rtems_termios_ioctl+0x3d8>        
 200444c:	c2 0f 60 47 	ldub  [ %i5 + 0x47 ], %g1                      
        tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                   
 2004450:	c0 27 60 6c 	clr  [ %i5 + 0x6c ]                            
        tty->rawInBufSemaphoreTimeout = tty->vtimeTicks;              
        if (tty->termios.c_cc[VMIN])                                  
 2004454:	80 a0 60 00 	cmp  %g1, 0                                    
 2004458:	12 bf ff af 	bne  2004314 <rtems_termios_ioctl+0x264>       
 200445c:	d0 27 60 70 	st  %o0, [ %i5 + 0x70 ]                        
          tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;      
        else                                                          
          tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks;       
 2004460:	10 bf ff ae 	b  2004318 <rtems_termios_ioctl+0x268>         
 2004464:	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;                                  
 2004468:	c4 07 60 64 	ld  [ %i5 + 0x64 ], %g2                        <== NOT EXECUTED
 200446c:	10 bf ff b8 	b  200434c <rtems_termios_ioctl+0x29c>         <== NOT EXECUTED
 2004470:	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;                                       
 2004474:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        <== NOT EXECUTED
 2004478:	82 10 61 00 	or  %g1, 0x100, %g1                            <== NOT EXECUTED
 200447c:	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) {                                 
 2004480:	10 bf ff 92 	b  20042c8 <rtems_termios_ioctl+0x218>         <== NOT EXECUTED
 2004484:	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]) {                                
 2004488:	80 a0 60 00 	cmp  %g1, 0                                    
 200448c:	32 bf ff a1 	bne,a   2004310 <rtems_termios_ioctl+0x260>    <== NEVER TAKEN
 2004490:	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;              
 2004494:	82 10 20 01 	mov  1, %g1                                    
 2004498:	10 bf ff a0 	b  2004318 <rtems_termios_ioctl+0x268>         
 200449c:	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); 
 20044a0:	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)(                                         
 20044a4:	d2 07 60 7c 	ld  [ %i5 + 0x7c ], %o1                        <== NOT EXECUTED
 20044a8:	c2 07 60 a4 	ld  [ %i5 + 0xa4 ], %g1                        <== NOT EXECUTED
 20044ac:	d0 07 60 10 	ld  [ %i5 + 0x10 ], %o0                        <== NOT EXECUTED
 20044b0:	92 02 40 02 	add  %o1, %g2, %o1                             <== NOT EXECUTED
 20044b4:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
 20044b8:	94 10 20 01 	mov  1, %o2                                    <== NOT EXECUTED
 20044bc:	30 bf ff 57 	b,a   2004218 <rtems_termios_ioctl+0x168>      <== NOT EXECUTED
                                                                      

02003a74 <rtems_termios_open>: rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) {
 2003a74:	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(                                        
 2003a78:	39 00 80 55 	sethi  %hi(0x2015400), %i4                     
 2003a7c:	d0 07 21 b0 	ld  [ %i4 + 0x1b0 ], %o0	! 20155b0 <rtems_termios_ttyMutex>
 2003a80:	92 10 20 00 	clr  %o1                                       
 2003a84:	40 00 0a 55 	call  20063d8 <rtems_semaphore_obtain>         
 2003a88:	94 10 20 00 	clr  %o2                                       
    rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);            
  if (sc != RTEMS_SUCCESSFUL)                                         
 2003a8c:	ba 92 20 00 	orcc  %o0, 0, %i5                              
 2003a90:	12 80 00 27 	bne  2003b2c <rtems_termios_open+0xb8>         <== NEVER TAKEN
 2003a94:	25 00 80 55 	sethi  %hi(0x2015400), %l2                     
    return sc;                                                        
                                                                      
  for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { 
 2003a98:	e2 04 a1 b8 	ld  [ %l2 + 0x1b8 ], %l1	! 20155b8 <rtems_termios_ttyHead>
 2003a9c:	80 a4 60 00 	cmp  %l1, 0                                    
 2003aa0:	02 80 00 34 	be  2003b70 <rtems_termios_open+0xfc>          
 2003aa4:	a0 10 00 11 	mov  %l1, %l0                                  
    if ((tty->major == major) && (tty->minor == minor))               
 2003aa8:	10 80 00 06 	b  2003ac0 <rtems_termios_open+0x4c>           
 2003aac:	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) { 
 2003ab0:	80 a4 20 00 	cmp  %l0, 0                                    
 2003ab4:	02 80 00 30 	be  2003b74 <rtems_termios_open+0x100>         <== ALWAYS TAKEN
 2003ab8:	90 10 20 01 	mov  1, %o0                                    
    if ((tty->major == major) && (tty->minor == minor))               
 2003abc:	c2 04 20 0c 	ld  [ %l0 + 0xc ], %g1                         <== NOT EXECUTED
 2003ac0:	80 a0 40 18 	cmp  %g1, %i0                                  
 2003ac4:	32 bf ff fb 	bne,a   2003ab0 <rtems_termios_open+0x3c>      
 2003ac8:	e0 04 00 00 	ld  [ %l0 ], %l0                               
 2003acc:	c2 04 20 10 	ld  [ %l0 + 0x10 ], %g1                        
 2003ad0:	80 a0 40 19 	cmp  %g1, %i1                                  
 2003ad4:	32 bf ff f7 	bne,a   2003ab0 <rtems_termios_open+0x3c>      <== NEVER TAKEN
 2003ad8:	e0 04 00 00 	ld  [ %l0 ], %l0                               <== NOT EXECUTED
     */                                                               
    if (c++ == 'z')                                                   
      c = 'a';                                                        
                                                                      
  }                                                                   
  args->iop->data1 = tty;                                             
 2003adc:	c4 06 80 00 	ld  [ %i2 ], %g2                               
  if (!tty->refcount++) {                                             
 2003ae0:	c2 04 20 08 	ld  [ %l0 + 8 ], %g1                           
     */                                                               
    if (c++ == 'z')                                                   
      c = 'a';                                                        
                                                                      
  }                                                                   
  args->iop->data1 = tty;                                             
 2003ae4:	e0 20 a0 38 	st  %l0, [ %g2 + 0x38 ]                        
  if (!tty->refcount++) {                                             
 2003ae8:	84 00 60 01 	add  %g1, 1, %g2                               
 2003aec:	80 a0 60 00 	cmp  %g1, 0                                    
 2003af0:	12 80 00 0d 	bne  2003b24 <rtems_termios_open+0xb0>         
 2003af4:	c4 24 20 08 	st  %g2, [ %l0 + 8 ]                           
    if (tty->device.firstOpen)                                        
 2003af8:	c2 04 20 98 	ld  [ %l0 + 0x98 ], %g1                        
 2003afc:	80 a0 60 00 	cmp  %g1, 0                                    
 2003b00:	02 80 00 05 	be  2003b14 <rtems_termios_open+0xa0>          
 2003b04:	90 10 00 18 	mov  %i0, %o0                                  
      (*tty->device.firstOpen)(major, minor, arg);                    
 2003b08:	92 10 00 19 	mov  %i1, %o1                                  
 2003b0c:	9f c0 40 00 	call  %g1                                      
 2003b10:	94 10 00 1a 	mov  %i2, %o2                                  
                                                                      
    /*                                                                
     * start I/O tasks, if needed                                     
     */                                                               
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
 2003b14:	c2 04 20 b4 	ld  [ %l0 + 0xb4 ], %g1                        
 2003b18:	80 a0 60 02 	cmp  %g1, 2                                    
 2003b1c:	22 80 00 06 	be,a   2003b34 <rtems_termios_open+0xc0>       
 2003b20:	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);                   
 2003b24:	40 00 0a 76 	call  20064fc <rtems_semaphore_release>        
 2003b28:	d0 07 21 b0 	ld  [ %i4 + 0x1b0 ], %o0                       
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 2003b2c:	81 c7 e0 08 	ret                                            
 2003b30:	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(                                          
 2003b34:	94 10 00 10 	mov  %l0, %o2                                  
 2003b38:	13 00 80 15 	sethi  %hi(0x2005400), %o1                     
 2003b3c:	40 00 0b 3f 	call  2006838 <rtems_task_start>               
 2003b40:	92 12 60 70 	or  %o1, 0x70, %o1	! 2005470 <rtems_termios_rxdaemon>
        tty->rxTaskId, rtems_termios_rxdaemon, (rtems_task_argument)tty);
      if (sc != RTEMS_SUCCESSFUL)                                     
 2003b44:	80 a2 20 00 	cmp  %o0, 0                                    
 2003b48:	12 80 00 ba 	bne  2003e30 <rtems_termios_open+0x3bc>        <== NEVER TAKEN
 2003b4c:	94 10 00 10 	mov  %l0, %o2                                  
        rtems_fatal_error_occurred (sc);                              
                                                                      
      sc = rtems_task_start(                                          
 2003b50:	d0 04 20 c8 	ld  [ %l0 + 0xc8 ], %o0                        
 2003b54:	13 00 80 15 	sethi  %hi(0x2005400), %o1                     
 2003b58:	40 00 0b 38 	call  2006838 <rtems_task_start>               
 2003b5c:	92 12 62 f4 	or  %o1, 0x2f4, %o1	! 20056f4 <rtems_termios_txdaemon>
        tty->txTaskId, rtems_termios_txdaemon, (rtems_task_argument)tty);
      if (sc != RTEMS_SUCCESSFUL)                                     
 2003b60:	80 a2 20 00 	cmp  %o0, 0                                    
 2003b64:	02 bf ff f0 	be  2003b24 <rtems_termios_open+0xb0>          <== ALWAYS TAKEN
 2003b68:	01 00 00 00 	nop                                            
 2003b6c:	30 80 00 b1 	b,a   2003e30 <rtems_termios_open+0x3bc>       <== NOT EXECUTED
    static char c = 'a';                                              
                                                                      
    /*                                                                
     * Create a new device                                            
     */                                                               
    tty = calloc (1, sizeof (struct rtems_termios_tty));              
 2003b70:	90 10 20 01 	mov  1, %o0	! 1 <PROM_START+0x1>               
 2003b74:	7f ff fb 35 	call  2002848 <calloc>                         
 2003b78:	92 10 20 e8 	mov  0xe8, %o1                                 
    if (tty == NULL) {                                                
 2003b7c:	a0 92 20 00 	orcc  %o0, 0, %l0                              
 2003b80:	02 80 00 9d 	be  2003df4 <rtems_termios_open+0x380>         
 2003b84:	03 00 80 53 	sethi  %hi(0x2014c00), %g1                     
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
    /*                                                                
     * allocate raw input buffer                                      
     */                                                               
    tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE;                       
 2003b88:	c2 00 60 70 	ld  [ %g1 + 0x70 ], %g1	! 2014c70 <rtems_termios_raw_input_size>
 2003b8c:	c2 24 20 64 	st  %g1, [ %l0 + 0x64 ]                        
    tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size);               
 2003b90:	d0 04 20 64 	ld  [ %l0 + 0x64 ], %o0                        
 2003b94:	7f ff fc 83 	call  2002da0 <malloc>                         
 2003b98:	01 00 00 00 	nop                                            
 2003b9c:	d0 24 20 58 	st  %o0, [ %l0 + 0x58 ]                        
    if (tty->rawInBuf.theBuf == NULL) {                               
 2003ba0:	80 a2 20 00 	cmp  %o0, 0                                    
 2003ba4:	02 80 00 92 	be  2003dec <rtems_termios_open+0x378>         
 2003ba8:	a6 10 00 08 	mov  %o0, %l3                                  
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
    /*                                                                
     * allocate raw output buffer                                     
     */                                                               
    tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE;                     
 2003bac:	03 00 80 53 	sethi  %hi(0x2014c00), %g1                     
 2003bb0:	c2 00 60 74 	ld  [ %g1 + 0x74 ], %g1	! 2014c74 <rtems_termios_raw_output_size>
 2003bb4:	c2 24 20 88 	st  %g1, [ %l0 + 0x88 ]                        
    tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size);             
 2003bb8:	d0 04 20 88 	ld  [ %l0 + 0x88 ], %o0                        
 2003bbc:	7f ff fc 79 	call  2002da0 <malloc>                         
 2003bc0:	01 00 00 00 	nop                                            
 2003bc4:	d0 24 20 7c 	st  %o0, [ %l0 + 0x7c ]                        
    if (tty->rawOutBuf.theBuf == NULL) {                              
 2003bc8:	80 a2 20 00 	cmp  %o0, 0                                    
 2003bcc:	02 80 00 86 	be  2003de4 <rtems_termios_open+0x370>         
 2003bd0:	a8 10 00 08 	mov  %o0, %l4                                  
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
    /*                                                                
     * allocate cooked buffer                                         
     */                                                               
    tty->cbuf  = malloc (CBUFSIZE);                                   
 2003bd4:	03 00 80 53 	sethi  %hi(0x2014c00), %g1                     
 2003bd8:	7f ff fc 72 	call  2002da0 <malloc>                         
 2003bdc:	d0 00 60 78 	ld  [ %g1 + 0x78 ], %o0	! 2014c78 <rtems_termios_cbufsize>
    if (tty->cbuf == NULL) {                                          
 2003be0:	80 a2 20 00 	cmp  %o0, 0                                    
 2003be4:	02 80 00 7e 	be  2003ddc <rtems_termios_open+0x368>         <== NEVER TAKEN
 2003be8:	d0 24 20 1c 	st  %o0, [ %l0 + 0x1c ]                        
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
    /*                                                                
     * Initialize wakeup callbacks                                    
     */                                                               
    tty->tty_snd.sw_pfn = NULL;                                       
 2003bec:	c0 24 20 d4 	clr  [ %l0 + 0xd4 ]                            
    tty->tty_snd.sw_arg = NULL;                                       
 2003bf0:	c0 24 20 d8 	clr  [ %l0 + 0xd8 ]                            
    tty->tty_rcv.sw_pfn = NULL;                                       
 2003bf4:	c0 24 20 dc 	clr  [ %l0 + 0xdc ]                            
    tty->tty_rcv.sw_arg = NULL;                                       
 2003bf8:	c0 24 20 e0 	clr  [ %l0 + 0xe0 ]                            
    tty->tty_rcvwakeup  = 0;                                          
 2003bfc:	c0 24 20 e4 	clr  [ %l0 + 0xe4 ]                            
                                                                      
    /*                                                                
     * link tty                                                       
     */                                                               
    tty->forw = rtems_termios_ttyHead;                                
 2003c00:	e2 24 00 00 	st  %l1, [ %l0 ]                               
    tty->back = NULL;                                                 
    if (rtems_termios_ttyHead != NULL)                                
 2003c04:	80 a4 60 00 	cmp  %l1, 0                                    
 2003c08:	02 80 00 03 	be  2003c14 <rtems_termios_open+0x1a0>         
 2003c0c:	c0 24 20 04 	clr  [ %l0 + 4 ]                               
      rtems_termios_ttyHead->back = tty;                              
 2003c10:	e0 24 60 04 	st  %l0, [ %l1 + 4 ]                           
    rtems_termios_ttyHead = tty;                                      
    if (rtems_termios_ttyTail == NULL)                                
 2003c14:	03 00 80 55 	sethi  %hi(0x2015400), %g1                     
 2003c18:	c4 00 61 b4 	ld  [ %g1 + 0x1b4 ], %g2	! 20155b4 <rtems_termios_ttyTail>
 2003c1c:	80 a0 a0 00 	cmp  %g2, 0                                    
 2003c20:	02 80 00 9d 	be  2003e94 <rtems_termios_open+0x420>         
 2003c24:	e0 24 a1 b8 	st  %l0, [ %l2 + 0x1b8 ]                       
                                                                      
    /*                                                                
     * Set up mutex semaphores                                        
     */                                                               
    sc = rtems_semaphore_create (                                     
      rtems_build_name ('T', 'R', 'i', c),                            
 2003c28:	23 00 80 53 	sethi  %hi(0x2014c00), %l1                     
 2003c2c:	d0 4c 60 7c 	ldsb  [ %l1 + 0x7c ], %o0	! 2014c7c <c.6421>   
    tty->major = major;                                               
                                                                      
    /*                                                                
     * Set up mutex semaphores                                        
     */                                                               
    sc = rtems_semaphore_create (                                     
 2003c30:	03 15 14 9a 	sethi  %hi(0x54526800), %g1                    
 2003c34:	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;                                               
 2003c38:	f2 24 20 10 	st  %i1, [ %l0 + 0x10 ]                        
    tty->major = major;                                               
 2003c3c:	f0 24 20 0c 	st  %i0, [ %l0 + 0xc ]                         
                                                                      
    /*                                                                
     * Set up mutex semaphores                                        
     */                                                               
    sc = rtems_semaphore_create (                                     
 2003c40:	92 10 20 01 	mov  1, %o1                                    
 2003c44:	94 10 20 54 	mov  0x54, %o2                                 
 2003c48:	90 12 00 01 	or  %o0, %g1, %o0                              
 2003c4c:	96 10 20 00 	clr  %o3                                       
 2003c50:	40 00 09 3c 	call  2006140 <rtems_semaphore_create>         
 2003c54:	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)                                       
 2003c58:	80 a2 20 00 	cmp  %o0, 0                                    
 2003c5c:	12 80 00 75 	bne  2003e30 <rtems_termios_open+0x3bc>        
 2003c60:	03 15 14 9b 	sethi  %hi(0x54526c00), %g1                    
      rtems_fatal_error_occurred (sc);                                
    sc = rtems_semaphore_create (                                     
      rtems_build_name ('T', 'R', 'o', c),                            
 2003c64:	d0 4c 60 7c 	ldsb  [ %l1 + 0x7c ], %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 (                                     
 2003c68:	82 10 63 00 	or  %g1, 0x300, %g1                            
 2003c6c:	92 10 20 01 	mov  1, %o1                                    
 2003c70:	94 10 20 54 	mov  0x54, %o2                                 
 2003c74:	90 12 00 01 	or  %o0, %g1, %o0                              
 2003c78:	96 10 20 00 	clr  %o3                                       
 2003c7c:	40 00 09 31 	call  2006140 <rtems_semaphore_create>         
 2003c80:	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)                                       
 2003c84:	80 a2 20 00 	cmp  %o0, 0                                    
 2003c88:	12 80 00 6a 	bne  2003e30 <rtems_termios_open+0x3bc>        
 2003c8c:	03 15 14 9e 	sethi  %hi(0x54527800), %g1                    
      rtems_fatal_error_occurred (sc);                                
    sc = rtems_semaphore_create (                                     
      rtems_build_name ('T', 'R', 'x', c),                            
 2003c90:	d0 4c 60 7c 	ldsb  [ %l1 + 0x7c ], %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 (                                     
 2003c94:	92 10 20 00 	clr  %o1                                       
 2003c98:	90 12 00 01 	or  %o0, %g1, %o0                              
 2003c9c:	94 10 20 20 	mov  0x20, %o2                                 
 2003ca0:	96 10 20 00 	clr  %o3                                       
 2003ca4:	40 00 09 27 	call  2006140 <rtems_semaphore_create>         
 2003ca8:	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)                                       
 2003cac:	80 a2 20 00 	cmp  %o0, 0                                    
 2003cb0:	12 80 00 60 	bne  2003e30 <rtems_termios_open+0x3bc>        
 2003cb4:	92 10 00 1b 	mov  %i3, %o1                                  
      rtems_fatal_error_occurred (sc);                                
    tty->rawOutBufState = rob_idle;                                   
 2003cb8:	c0 24 20 94 	clr  [ %l0 + 0x94 ]                            
                                                                      
    /*                                                                
     * Set callbacks                                                  
     */                                                               
    tty->device = *callbacks;                                         
 2003cbc:	90 04 20 98 	add  %l0, 0x98, %o0                            
 2003cc0:	40 00 2b 94 	call  200eb10 <memcpy>                         
 2003cc4:	94 10 20 20 	mov  0x20, %o2                                 
                                                                      
    /*                                                                
     * Create I/O tasks                                               
     */                                                               
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
 2003cc8:	c2 04 20 b4 	ld  [ %l0 + 0xb4 ], %g1                        
 2003ccc:	80 a0 60 02 	cmp  %g1, 2                                    
 2003cd0:	02 80 00 5a 	be  2003e38 <rtems_termios_open+0x3c4>         
 2003cd4:	d0 4c 60 7c 	ldsb  [ %l1 + 0x7c ], %o0                      
           &tty->rxTaskId);                                           
      if (sc != RTEMS_SUCCESSFUL)                                     
        rtems_fatal_error_occurred (sc);                              
                                                                      
    }                                                                 
    if ((tty->device.pollRead == NULL) ||                             
 2003cd8:	c2 04 20 a0 	ld  [ %l0 + 0xa0 ], %g1                        
 2003cdc:	80 a0 60 00 	cmp  %g1, 0                                    
 2003ce0:	02 80 00 49 	be  2003e04 <rtems_termios_open+0x390>         
 2003ce4:	d0 4c 60 7c 	ldsb  [ %l1 + 0x7c ], %o0                      
 2003ce8:	c2 04 20 b4 	ld  [ %l0 + 0xb4 ], %g1                        
 2003cec:	80 a0 60 02 	cmp  %g1, 2                                    
 2003cf0:	02 80 00 46 	be  2003e08 <rtems_termios_open+0x394>         
 2003cf4:	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;                                               
 2003cf8:	c0 24 20 b8 	clr  [ %l0 + 0xb8 ]                            
    /*                                                                
     * set low/highwater mark for XON/XOFF support                    
     */                                                               
    tty->lowwater  = tty->rawInBuf.Size * 1/2;                        
 2003cfc:	c8 04 20 64 	ld  [ %l0 + 0x64 ], %g4                        
    tty->highwater = tty->rawInBuf.Size * 3/4;                        
 2003d00:	c4 04 20 64 	ld  [ %l0 + 0x64 ], %g2                        
    /*                                                                
     * Bump name characer                                             
     */                                                               
    if (c++ == 'z')                                                   
 2003d04:	c2 0c 60 7c 	ldub  [ %l1 + 0x7c ], %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;                        
 2003d08:	b7 28 a0 01 	sll  %g2, 1, %i3                               
 2003d0c:	84 06 c0 02 	add  %i3, %g2, %g2                             
    }                                                                 
                                                                      
    /*                                                                
     * Set default parameters                                         
     */                                                               
    tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;           
 2003d10:	37 00 00 09 	sethi  %hi(0x2400), %i3                        
 2003d14:	b6 16 e1 02 	or  %i3, 0x102, %i3	! 2502 <PROM_START+0x2502> 
 2003d18:	f6 24 20 30 	st  %i3, [ %l0 + 0x30 ]                        
    tty->termios.c_oflag = OPOST | ONLCR | XTABS;                     
 2003d1c:	37 00 00 06 	sethi  %hi(0x1800), %i3                        
 2003d20:	b6 16 e0 05 	or  %i3, 5, %i3	! 1805 <PROM_START+0x1805>     
 2003d24:	f6 24 20 34 	st  %i3, [ %l0 + 0x34 ]                        
    tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL;              
 2003d28:	b6 10 28 bd 	mov  0x8bd, %i3                                
 2003d2c:	f6 24 20 38 	st  %i3, [ %l0 + 0x38 ]                        
    tty->termios.c_lflag =                                            
 2003d30:	37 00 00 20 	sethi  %hi(0x8000), %i3                        
 2003d34:	b6 16 e2 3b 	or  %i3, 0x23b, %i3	! 823b <PROM_START+0x823b> 
 2003d38:	f6 24 20 3c 	st  %i3, [ %l0 + 0x3c ]                        
       ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL;       
                                                                      
    tty->termios.c_cc[VINTR] = '\003';                                
 2003d3c:	b6 10 20 03 	mov  3, %i3                                    
 2003d40:	f6 2c 20 41 	stb  %i3, [ %l0 + 0x41 ]                       
    tty->termios.c_cc[VQUIT] = '\034';                                
 2003d44:	b6 10 20 1c 	mov  0x1c, %i3                                 
 2003d48:	f6 2c 20 42 	stb  %i3, [ %l0 + 0x42 ]                       
    tty->termios.c_cc[VERASE] = '\177';                               
 2003d4c:	b6 10 20 7f 	mov  0x7f, %i3                                 
 2003d50:	f6 2c 20 43 	stb  %i3, [ %l0 + 0x43 ]                       
    tty->termios.c_cc[VKILL] = '\025';                                
 2003d54:	b6 10 20 15 	mov  0x15, %i3                                 
 2003d58:	f6 2c 20 44 	stb  %i3, [ %l0 + 0x44 ]                       
    tty->termios.c_cc[VEOF] = '\004';                                 
 2003d5c:	b6 10 20 04 	mov  4, %i3                                    
 2003d60:	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';                               
 2003d64:	b6 10 20 11 	mov  0x11, %i3                                 
 2003d68:	f6 2c 20 49 	stb  %i3, [ %l0 + 0x49 ]                       
    tty->termios.c_cc[VSTOP] = '\023';                                
 2003d6c:	b6 10 20 13 	mov  0x13, %i3                                 
 2003d70:	f6 2c 20 4a 	stb  %i3, [ %l0 + 0x4a ]                       
    tty->termios.c_cc[VSUSP] = '\032';                                
 2003d74:	b6 10 20 1a 	mov  0x1a, %i3                                 
 2003d78:	f6 2c 20 4b 	stb  %i3, [ %l0 + 0x4b ]                       
    tty->termios.c_cc[VREPRINT] = '\022';                             
 2003d7c:	b6 10 20 12 	mov  0x12, %i3                                 
 2003d80:	f6 2c 20 4d 	stb  %i3, [ %l0 + 0x4d ]                       
    tty->termios.c_cc[VDISCARD] = '\017';                             
 2003d84:	b6 10 20 0f 	mov  0xf, %i3                                  
 2003d88:	f6 2c 20 4e 	stb  %i3, [ %l0 + 0x4e ]                       
    tty->termios.c_cc[VWERASE] = '\027';                              
 2003d8c:	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')                                                   
 2003d90:	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;                        
 2003d94:	89 31 20 01 	srl  %g4, 1, %g4                               
    tty->highwater = tty->rawInBuf.Size * 3/4;                        
 2003d98:	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';                              
 2003d9c:	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';                                 
 2003da0:	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';                               
 2003da4:	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';                                
 2003da8:	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';                               
 2003dac:	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;                        
 2003db0:	c8 24 20 bc 	st  %g4, [ %l0 + 0xbc ]                        
    tty->highwater = tty->rawInBuf.Size * 3/4;                        
 2003db4:	c4 24 20 c0 	st  %g2, [ %l0 + 0xc0 ]                        
    /*                                                                
     * Bump name characer                                             
     */                                                               
    if (c++ == 'z')                                                   
 2003db8:	83 28 60 18 	sll  %g1, 0x18, %g1                            
 2003dbc:	83 38 60 18 	sra  %g1, 0x18, %g1                            
 2003dc0:	80 a0 60 7a 	cmp  %g1, 0x7a                                 
 2003dc4:	12 bf ff 46 	bne  2003adc <rtems_termios_open+0x68>         
 2003dc8:	c6 2c 60 7c 	stb  %g3, [ %l1 + 0x7c ]                       
      c = 'a';                                                        
 2003dcc:	84 10 20 61 	mov  0x61, %g2                                 
 2003dd0:	03 00 80 53 	sethi  %hi(0x2014c00), %g1                     
 2003dd4:	10 bf ff 42 	b  2003adc <rtems_termios_open+0x68>           
 2003dd8:	c4 28 60 7c 	stb  %g2, [ %g1 + 0x7c ]	! 2014c7c <c.6421>    
    /*                                                                
     * allocate cooked buffer                                         
     */                                                               
    tty->cbuf  = malloc (CBUFSIZE);                                   
    if (tty->cbuf == NULL) {                                          
            free((void *)(tty->rawOutBuf.theBuf));                    
 2003ddc:	7f ff fb 0e 	call  2002a14 <free>                           <== NOT EXECUTED
 2003de0:	90 10 00 14 	mov  %l4, %o0                                  <== NOT EXECUTED
            free((void *)(tty->rawInBuf.theBuf));                     
 2003de4:	7f ff fb 0c 	call  2002a14 <free>                           
 2003de8:	90 10 00 13 	mov  %l3, %o0                                  
            free(tty);                                                
 2003dec:	7f ff fb 0a 	call  2002a14 <free>                           
 2003df0:	90 10 00 10 	mov  %l0, %o0                                  
      rtems_semaphore_release (rtems_termios_ttyMutex);               
 2003df4:	d0 07 21 b0 	ld  [ %i4 + 0x1b0 ], %o0                       
 2003df8:	40 00 09 c1 	call  20064fc <rtems_semaphore_release>        
 2003dfc:	ba 10 20 1a 	mov  0x1a, %i5                                 
      return RTEMS_NO_MEMORY;                                         
 2003e00:	30 bf ff 4b 	b,a   2003b2c <rtems_termios_open+0xb8>        
        rtems_fatal_error_occurred (sc);                              
                                                                      
    }                                                                 
    if ((tty->device.pollRead == NULL) ||                             
        (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){   
      sc = rtems_semaphore_create (                                   
 2003e04:	03 15 14 9c 	sethi  %hi(0x54527000), %g1                    
 2003e08:	82 10 62 00 	or  %g1, 0x200, %g1	! 54527200 <RAM_END+0x52127200>
 2003e0c:	92 10 20 00 	clr  %o1                                       
 2003e10:	94 10 20 24 	mov  0x24, %o2                                 
 2003e14:	90 12 00 01 	or  %o0, %g1, %o0                              
 2003e18:	96 10 20 00 	clr  %o3                                       
 2003e1c:	40 00 08 c9 	call  2006140 <rtems_semaphore_create>         
 2003e20:	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)                                     
 2003e24:	80 a2 20 00 	cmp  %o0, 0                                    
 2003e28:	02 bf ff b4 	be  2003cf8 <rtems_termios_open+0x284>         <== ALWAYS TAKEN
 2003e2c:	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);                              
 2003e30:	40 00 0b 14 	call  2006a80 <rtems_fatal_error_occurred>     
 2003e34:	01 00 00 00 	nop                                            
                                                                      
    /*                                                                
     * Create I/O tasks                                               
     */                                                               
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
      sc = rtems_task_create (                                        
 2003e38:	03 15 1e 15 	sethi  %hi(0x54785400), %g1                    
 2003e3c:	92 10 20 0a 	mov  0xa, %o1                                  
 2003e40:	90 12 00 01 	or  %o0, %g1, %o0                              
 2003e44:	94 10 24 00 	mov  0x400, %o2                                
 2003e48:	96 10 25 00 	mov  0x500, %o3                                
 2003e4c:	98 10 20 00 	clr  %o4                                       
 2003e50:	40 00 09 d6 	call  20065a8 <rtems_task_create>              
 2003e54:	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)                                     
 2003e58:	80 a2 20 00 	cmp  %o0, 0                                    
 2003e5c:	12 bf ff f5 	bne  2003e30 <rtems_termios_open+0x3bc>        <== NEVER TAKEN
 2003e60:	03 14 9e 15 	sethi  %hi(0x52785400), %g1                    
        rtems_fatal_error_occurred (sc);                              
      sc = rtems_task_create (                                        
                                   rtems_build_name ('R', 'x', 'T', c),
 2003e64:	d0 4c 60 7c 	ldsb  [ %l1 + 0x7c ], %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 (                                        
 2003e68:	92 10 20 09 	mov  9, %o1                                    
 2003e6c:	90 12 00 01 	or  %o0, %g1, %o0                              
 2003e70:	94 10 24 00 	mov  0x400, %o2                                
 2003e74:	96 10 25 00 	mov  0x500, %o3                                
 2003e78:	98 10 20 00 	clr  %o4                                       
 2003e7c:	40 00 09 cb 	call  20065a8 <rtems_task_create>              
 2003e80:	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)                                     
 2003e84:	80 a2 20 00 	cmp  %o0, 0                                    
 2003e88:	22 bf ff 95 	be,a   2003cdc <rtems_termios_open+0x268>      <== ALWAYS TAKEN
 2003e8c:	c2 04 20 a0 	ld  [ %l0 + 0xa0 ], %g1                        
 2003e90:	30 bf ff e8 	b,a   2003e30 <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;                                    
 2003e94:	10 bf ff 65 	b  2003c28 <rtems_termios_open+0x1b4>          
 2003e98:	e0 20 61 b4 	st  %l0, [ %g1 + 0x1b4 ]                       
                                                                      

020044c0 <rtems_termios_puts>: * Send characters to device-specific code */ void rtems_termios_puts ( const void *_buf, int len, struct rtems_termios_tty *tty) {
 20044c0:	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) {           
 20044c4:	c2 06 a0 b4 	ld  [ %i2 + 0xb4 ], %g1                        
 20044c8:	80 a0 60 00 	cmp  %g1, 0                                    
 20044cc:	22 80 00 44 	be,a   20045dc <rtems_termios_puts+0x11c>      
 20044d0:	c2 06 a0 a4 	ld  [ %i2 + 0xa4 ], %g1                        
    (*tty->device.write)(tty->minor, (void *)buf, len);               
    return;                                                           
  }                                                                   
  newHead = tty->rawOutBuf.Head;                                      
 20044d4:	e0 06 a0 80 	ld  [ %i2 + 0x80 ], %l0                        
  while (len) {                                                       
 20044d8:	80 a6 60 00 	cmp  %i1, 0                                    
 20044dc:	02 80 00 35 	be  20045b0 <rtems_termios_puts+0xf0>          <== NEVER TAKEN
 20044e0:	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;                                 
 20044e4:	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;                    
 20044e8:	d2 06 a0 88 	ld  [ %i2 + 0x88 ], %o1                        
 20044ec:	40 00 35 ee 	call  2011ca4 <.urem>                          
 20044f0:	90 04 20 01 	add  %l0, 1, %o0                               
    rtems_interrupt_disable (level);                                  
 20044f4:	7f ff f6 97 	call  2001f50 <sparc_disable_interrupts>       
 20044f8:	a0 10 00 08 	mov  %o0, %l0                                  
 20044fc:	ba 10 00 08 	mov  %o0, %i5                                  
    while (newHead == tty->rawOutBuf.Tail) {                          
 2004500:	f8 06 a0 84 	ld  [ %i2 + 0x84 ], %i4                        
 2004504:	80 a7 00 10 	cmp  %i4, %l0                                  
 2004508:	32 80 00 14 	bne,a   2004558 <rtems_termios_puts+0x98>      
 200450c:	c6 0e 00 00 	ldub  [ %i0 ], %g3                             
      tty->rawOutBufState = rob_wait;                                 
 2004510:	f6 26 a0 94 	st  %i3, [ %i2 + 0x94 ]                        
      rtems_interrupt_enable (level);                                 
 2004514:	7f ff f6 93 	call  2001f60 <sparc_enable_interrupts>        
 2004518:	90 10 00 1d 	mov  %i5, %o0                                  
      sc = rtems_semaphore_obtain(                                    
 200451c:	d0 06 a0 8c 	ld  [ %i2 + 0x8c ], %o0                        
 2004520:	92 10 20 00 	clr  %o1                                       
 2004524:	40 00 07 ad 	call  20063d8 <rtems_semaphore_obtain>         
 2004528:	94 10 20 00 	clr  %o2                                       
        tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);      
      if (sc != RTEMS_SUCCESSFUL)                                     
 200452c:	80 a2 20 00 	cmp  %o0, 0                                    
 2004530:	12 80 00 31 	bne  20045f4 <rtems_termios_puts+0x134>        <== NEVER TAKEN
 2004534:	01 00 00 00 	nop                                            
        rtems_fatal_error_occurred (sc);                              
      rtems_interrupt_disable (level);                                
 2004538:	7f ff f6 86 	call  2001f50 <sparc_disable_interrupts>       
 200453c:	01 00 00 00 	nop                                            
 2004540:	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) {                          
 2004544:	c2 06 a0 84 	ld  [ %i2 + 0x84 ], %g1                        
 2004548:	80 a0 40 1c 	cmp  %g1, %i4                                  
 200454c:	22 bf ff f2 	be,a   2004514 <rtems_termios_puts+0x54>       <== NEVER TAKEN
 2004550:	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++;              
 2004554:	c6 0e 00 00 	ldub  [ %i0 ], %g3                             
 2004558:	c2 06 a0 80 	ld  [ %i2 + 0x80 ], %g1                        
 200455c:	c4 06 a0 7c 	ld  [ %i2 + 0x7c ], %g2                        
 2004560:	b0 06 20 01 	inc  %i0                                       
 2004564:	c6 28 80 01 	stb  %g3, [ %g2 + %g1 ]                        
    tty->rawOutBuf.Head = newHead;                                    
    if (tty->rawOutBufState == rob_idle) {                            
 2004568:	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;                                    
 200456c:	e0 26 a0 80 	st  %l0, [ %i2 + 0x80 ]                        
    if (tty->rawOutBufState == rob_idle) {                            
 2004570:	80 a0 60 00 	cmp  %g1, 0                                    
 2004574:	12 80 00 0a 	bne  200459c <rtems_termios_puts+0xdc>         
 2004578:	01 00 00 00 	nop                                            
      /* check, whether XOFF has been received */                     
      if (!(tty->flow_ctrl & FL_ORCVXOF)) {                           
 200457c:	c2 06 a0 b8 	ld  [ %i2 + 0xb8 ], %g1                        
 2004580:	80 88 60 10 	btst  0x10, %g1                                
 2004584:	02 80 00 0d 	be  20045b8 <rtems_termios_puts+0xf8>          <== ALWAYS TAKEN
 2004588:	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;                                   
 200458c:	c2 06 a0 b8 	ld  [ %i2 + 0xb8 ], %g1                        <== NOT EXECUTED
 2004590:	82 10 60 20 	or  %g1, 0x20, %g1                             <== NOT EXECUTED
 2004594:	c2 26 a0 b8 	st  %g1, [ %i2 + 0xb8 ]                        <== NOT EXECUTED
      }                                                               
      tty->rawOutBufState = rob_busy;                                 
 2004598:	e2 26 a0 94 	st  %l1, [ %i2 + 0x94 ]                        <== NOT EXECUTED
    }                                                                 
    rtems_interrupt_enable (level);                                   
 200459c:	7f ff f6 71 	call  2001f60 <sparc_enable_interrupts>        
 20045a0:	90 10 00 1d 	mov  %i5, %o0                                  
  if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {           
    (*tty->device.write)(tty->minor, (void *)buf, len);               
    return;                                                           
  }                                                                   
  newHead = tty->rawOutBuf.Head;                                      
  while (len) {                                                       
 20045a4:	b2 86 7f ff 	addcc  %i1, -1, %i1                            
 20045a8:	12 bf ff d0 	bne  20044e8 <rtems_termios_puts+0x28>         
 20045ac:	01 00 00 00 	nop                                            
 20045b0:	81 c7 e0 08 	ret                                            
 20045b4:	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);         
 20045b8:	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,                              
 20045bc:	d2 06 a0 7c 	ld  [ %i2 + 0x7c ], %o1                        
 20045c0:	c2 06 a0 a4 	ld  [ %i2 + 0xa4 ], %g1                        
 20045c4:	d0 06 a0 10 	ld  [ %i2 + 0x10 ], %o0                        
 20045c8:	92 02 40 02 	add  %o1, %g2, %o1                             
 20045cc:	9f c0 40 00 	call  %g1                                      
 20045d0:	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;                                 
 20045d4:	10 bf ff f2 	b  200459c <rtems_termios_puts+0xdc>           
 20045d8:	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, (void *)buf, len);               
 20045dc:	d0 06 a0 10 	ld  [ %i2 + 0x10 ], %o0                        
 20045e0:	92 10 00 18 	mov  %i0, %o1                                  
 20045e4:	9f c0 40 00 	call  %g1                                      
 20045e8:	94 10 00 19 	mov  %i1, %o2                                  
    return;                                                           
 20045ec:	81 c7 e0 08 	ret                                            
 20045f0:	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);                              
 20045f4:	40 00 09 23 	call  2006a80 <rtems_fatal_error_occurred>     <== NOT EXECUTED
                                                                      

02004d50 <rtems_termios_read>: return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) {
 2004d50:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_libio_rw_args_t *args = arg;                                  
  struct rtems_termios_tty *tty = args->iop->data1;                   
 2004d54:	c2 06 00 00 	ld  [ %i0 ], %g1                               
  uint32_t   count = args->count;                                     
 2004d58:	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;                   
 2004d5c:	fa 00 60 38 	ld  [ %g1 + 0x38 ], %i5                        
  uint32_t   count = args->count;                                     
  char      *buffer = args->buffer;                                   
 2004d60:	e4 06 20 10 	ld  [ %i0 + 0x10 ], %l2                        
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
 2004d64:	d0 07 60 14 	ld  [ %i5 + 0x14 ], %o0                        
 2004d68:	92 10 20 00 	clr  %o1                                       
 2004d6c:	40 00 05 9b 	call  20063d8 <rtems_semaphore_obtain>         
 2004d70:	94 10 20 00 	clr  %o2                                       
  if (sc != RTEMS_SUCCESSFUL)                                         
 2004d74:	a0 92 20 00 	orcc  %o0, 0, %l0                              
 2004d78:	12 80 00 10 	bne  2004db8 <rtems_termios_read+0x68>         <== NEVER TAKEN
 2004d7c:	03 00 80 54 	sethi  %hi(0x2015000), %g1                     
    return sc;                                                        
                                                                      
  if (rtems_termios_linesw[tty->t_line].l_read != NULL) {             
 2004d80:	c4 07 60 cc 	ld  [ %i5 + 0xcc ], %g2                        
 2004d84:	85 28 a0 05 	sll  %g2, 5, %g2                               
 2004d88:	82 10 62 e4 	or  %g1, 0x2e4, %g1                            
 2004d8c:	82 00 40 02 	add  %g1, %g2, %g1                             
 2004d90:	c2 00 60 08 	ld  [ %g1 + 8 ], %g1                           
 2004d94:	80 a0 60 00 	cmp  %g1, 0                                    
 2004d98:	02 80 00 0a 	be  2004dc0 <rtems_termios_read+0x70>          
 2004d9c:	90 10 00 1d 	mov  %i5, %o0                                  
    sc = rtems_termios_linesw[tty->t_line].l_read(tty,args);          
 2004da0:	9f c0 40 00 	call  %g1                                      
 2004da4:	92 10 00 18 	mov  %i0, %o1                                  
 2004da8:	a0 10 00 08 	mov  %o0, %l0                                  
    tty->tty_rcvwakeup = 0;                                           
    rtems_semaphore_release (tty->isem);                              
 2004dac:	d0 07 60 14 	ld  [ %i5 + 0x14 ], %o0                        
 2004db0:	40 00 05 d3 	call  20064fc <rtems_semaphore_release>        
 2004db4:	c0 27 60 e4 	clr  [ %i5 + 0xe4 ]                            
  }                                                                   
  args->bytes_moved = args->count - count;                            
  tty->tty_rcvwakeup = 0;                                             
  rtems_semaphore_release (tty->isem);                                
  return sc;                                                          
}                                                                     
 2004db8:	81 c7 e0 08 	ret                                            
 2004dbc:	91 e8 00 10 	restore  %g0, %l0, %o0                         
    tty->tty_rcvwakeup = 0;                                           
    rtems_semaphore_release (tty->isem);                              
    return sc;                                                        
  }                                                                   
                                                                      
  if (tty->cindex == tty->ccount) {                                   
 2004dc0:	c4 07 60 24 	ld  [ %i5 + 0x24 ], %g2                        
 2004dc4:	c2 07 60 20 	ld  [ %i5 + 0x20 ], %g1                        
 2004dc8:	80 a0 80 01 	cmp  %g2, %g1                                  
 2004dcc:	22 80 00 20 	be,a   2004e4c <rtems_termios_read+0xfc>       <== ALWAYS TAKEN
 2004dd0:	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)) {                      
 2004dd4:	80 a6 a0 00 	cmp  %i2, 0                                    <== NOT EXECUTED
 2004dd8:	22 80 00 15 	be,a   2004e2c <rtems_termios_read+0xdc>       <== NEVER TAKEN
 2004ddc:	c2 06 20 14 	ld  [ %i0 + 0x14 ], %g1                        <== NOT EXECUTED
 2004de0:	c2 07 60 24 	ld  [ %i5 + 0x24 ], %g1                        
 2004de4:	c4 07 60 20 	ld  [ %i5 + 0x20 ], %g2                        
 2004de8:	80 a0 40 02 	cmp  %g1, %g2                                  
 2004dec:	36 80 00 10 	bge,a   2004e2c <rtems_termios_read+0xdc>      <== NEVER TAKEN
 2004df0:	c2 06 20 14 	ld  [ %i0 + 0x14 ], %g1                        <== NOT EXECUTED
 2004df4:	10 80 00 06 	b  2004e0c <rtems_termios_read+0xbc>           
 2004df8:	a4 24 80 01 	sub  %l2, %g1, %l2                             
 2004dfc:	c4 07 60 20 	ld  [ %i5 + 0x20 ], %g2                        
 2004e00:	80 a0 80 01 	cmp  %g2, %g1                                  
 2004e04:	24 80 00 0a 	ble,a   2004e2c <rtems_termios_read+0xdc>      
 2004e08:	c2 06 20 14 	ld  [ %i0 + 0x14 ], %g1                        
    *buffer++ = tty->cbuf[tty->cindex++];                             
 2004e0c:	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)) {                      
 2004e10:	b4 86 bf ff 	addcc  %i2, -1, %i2                            
    *buffer++ = tty->cbuf[tty->cindex++];                             
 2004e14:	c4 08 80 01 	ldub  [ %g2 + %g1 ], %g2                       
 2004e18:	c4 2c 80 01 	stb  %g2, [ %l2 + %g1 ]                        
 2004e1c:	82 00 60 01 	inc  %g1                                       
      sc = fillBufferQueue (tty);                                     
                                                                      
    if (sc != RTEMS_SUCCESSFUL)                                       
      tty->cindex = tty->ccount = 0;                                  
  }                                                                   
  while (count && (tty->cindex < tty->ccount)) {                      
 2004e20:	12 bf ff f7 	bne  2004dfc <rtems_termios_read+0xac>         
 2004e24:	c2 27 60 24 	st  %g1, [ %i5 + 0x24 ]                        
    *buffer++ = tty->cbuf[tty->cindex++];                             
    count--;                                                          
  }                                                                   
  args->bytes_moved = args->count - count;                            
 2004e28:	c2 06 20 14 	ld  [ %i0 + 0x14 ], %g1                        
  tty->tty_rcvwakeup = 0;                                             
  rtems_semaphore_release (tty->isem);                                
 2004e2c:	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;                            
 2004e30:	b4 20 40 1a 	sub  %g1, %i2, %i2                             
 2004e34:	f4 26 20 1c 	st  %i2, [ %i0 + 0x1c ]                        
  tty->tty_rcvwakeup = 0;                                             
 2004e38:	c0 27 60 e4 	clr  [ %i5 + 0xe4 ]                            
  rtems_semaphore_release (tty->isem);                                
 2004e3c:	40 00 05 b0 	call  20064fc <rtems_semaphore_release>        
 2004e40:	b0 10 00 10 	mov  %l0, %i0                                  
  return sc;                                                          
}                                                                     
 2004e44:	81 c7 e0 08 	ret                                            
 2004e48:	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 &&                               
 2004e4c:	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;                                    
 2004e50:	c0 27 60 20 	clr  [ %i5 + 0x20 ]                            
 2004e54:	c0 27 60 24 	clr  [ %i5 + 0x24 ]                            
    tty->read_start_column = tty->column;                             
    if (tty->device.pollRead != NULL &&                               
 2004e58:	80 a0 60 00 	cmp  %g1, 0                                    
 2004e5c:	02 80 00 06 	be  2004e74 <rtems_termios_read+0x124>         
 2004e60:	c4 27 60 2c 	st  %g2, [ %i5 + 0x2c ]                        
 2004e64:	c4 07 60 b4 	ld  [ %i5 + 0xb4 ], %g2                        
 2004e68:	80 a0 a0 00 	cmp  %g2, 0                                    
 2004e6c:	22 80 00 73 	be,a   2005038 <rtems_termios_read+0x2e8>      
 2004e70:	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;        
 2004e74:	f8 07 60 74 	ld  [ %i5 + 0x74 ], %i4                        
  rtems_status_code sc;                                               
  int               wait = (int)1;                                    
 2004e78:	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))) {                
 2004e7c:	23 00 80 53 	sethi  %hi(0x2014c00), %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)(                                       
 2004e80:	a6 07 60 49 	add  %i5, 0x49, %l3                            
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
 2004e84:	c4 07 60 5c 	ld  [ %i5 + 0x5c ], %g2                        
 2004e88:	c2 07 60 60 	ld  [ %i5 + 0x60 ], %g1                        
 2004e8c:	80 a0 80 01 	cmp  %g2, %g1                                  
 2004e90:	02 80 00 51 	be  2004fd4 <rtems_termios_read+0x284>         
 2004e94:	c4 04 60 78 	ld  [ %l1 + 0x78 ], %g2                        
 2004e98:	c2 07 60 20 	ld  [ %i5 + 0x20 ], %g1                        
                       (tty->ccount < (CBUFSIZE-1))) {                
 2004e9c:	84 00 bf ff 	add  %g2, -1, %g2                              
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
 2004ea0:	80 a0 80 01 	cmp  %g2, %g1                                  
 2004ea4:	14 80 00 14 	bg  2004ef4 <rtems_termios_read+0x1a4>         <== ALWAYS TAKEN
 2004ea8:	b2 14 60 78 	or  %l1, 0x78, %i1                             
    }                                                                 
                                                                      
    /*                                                                
     * Wait for characters                                            
     */                                                               
    if ( wait ) {                                                     
 2004eac:	10 80 00 4b 	b  2004fd8 <rtems_termios_read+0x288>          <== NOT EXECUTED
 2004eb0:	80 a6 e0 00 	cmp  %i3, 0                                    <== NOT EXECUTED
        }                                                             
      }                                                               
                                                                      
      /* continue processing new character */                         
      if (tty->termios.c_lflag & ICANON) {                            
        if (siproc (c, tty))                                          
 2004eb4:	7f ff ff 62 	call  2004c3c <siproc>                         
 2004eb8:	01 00 00 00 	nop                                            
          wait = 0;                                                   
 2004ebc:	80 a0 00 08 	cmp  %g0, %o0                                  
 2004ec0:	82 40 3f ff 	addx  %g0, -1, %g1                             
 2004ec4:	b6 0e c0 01 	and  %i3, %g1, %i3                             
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
 2004ec8:	c4 07 60 5c 	ld  [ %i5 + 0x5c ], %g2                        
 2004ecc:	c2 07 60 60 	ld  [ %i5 + 0x60 ], %g1                        
 2004ed0:	80 a0 80 01 	cmp  %g2, %g1                                  
 2004ed4:	02 80 00 40 	be  2004fd4 <rtems_termios_read+0x284>         
 2004ed8:	f8 07 60 70 	ld  [ %i5 + 0x70 ], %i4                        
                       (tty->ccount < (CBUFSIZE-1))) {                
 2004edc:	c2 06 40 00 	ld  [ %i1 ], %g1                               
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
 2004ee0:	c4 07 60 20 	ld  [ %i5 + 0x20 ], %g2                        
                       (tty->ccount < (CBUFSIZE-1))) {                
 2004ee4:	82 00 7f ff 	add  %g1, -1, %g1                              
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
 2004ee8:	80 a0 80 01 	cmp  %g2, %g1                                  
 2004eec:	16 80 00 3b 	bge  2004fd8 <rtems_termios_read+0x288>        <== NEVER TAKEN
 2004ef0:	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;        
 2004ef4:	d0 07 60 5c 	ld  [ %i5 + 0x5c ], %o0                        
 2004ef8:	d2 07 60 64 	ld  [ %i5 + 0x64 ], %o1                        
 2004efc:	40 00 33 6a 	call  2011ca4 <.urem>                          
 2004f00:	90 02 20 01 	inc  %o0                                       
      c = tty->rawInBuf.theBuf[newHead];                              
 2004f04:	c2 07 60 58 	ld  [ %i5 + 0x58 ], %g1                        
 2004f08:	f8 08 40 08 	ldub  [ %g1 + %o0 ], %i4                       
      tty->rawInBuf.Head = newHead;                                   
 2004f0c:	d0 27 60 5c 	st  %o0, [ %i5 + 0x5c ]                        
      if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size)             
 2004f10:	c2 07 60 60 	ld  [ %i5 + 0x60 ], %g1                        
 2004f14:	c4 07 60 64 	ld  [ %i5 + 0x64 ], %g2                        
          % tty->rawInBuf.Size)                                       
 2004f18:	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)             
 2004f1c:	82 00 80 01 	add  %g2, %g1, %g1                             
          % tty->rawInBuf.Size)                                       
 2004f20:	40 00 33 61 	call  2011ca4 <.urem>                          
 2004f24:	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)             
 2004f28:	c2 07 60 bc 	ld  [ %i5 + 0xbc ], %g1                        
 2004f2c:	80 a2 00 01 	cmp  %o0, %g1                                  
 2004f30:	3a 80 00 18 	bcc,a   2004f90 <rtems_termios_read+0x240>     <== NEVER TAKEN
 2004f34:	c2 07 60 3c 	ld  [ %i5 + 0x3c ], %g1                        <== NOT EXECUTED
          % tty->rawInBuf.Size)                                       
         < tty->lowwater) {                                           
        tty->flow_ctrl &= ~FL_IREQXOF;                                
 2004f38:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        
 2004f3c:	82 08 7f fe 	and  %g1, -2, %g1                              
 2004f40:	c2 27 60 b8 	st  %g1, [ %i5 + 0xb8 ]                        
        /* if tx stopped and XON should be sent... */                 
        if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF))               
 2004f44:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        
 2004f48:	82 08 62 02 	and  %g1, 0x202, %g1                           
 2004f4c:	80 a0 62 02 	cmp  %g1, 0x202                                
 2004f50:	22 80 00 2c 	be,a   2005000 <rtems_termios_read+0x2b0>      <== NEVER TAKEN
 2004f54:	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) {                       
 2004f58:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        
 2004f5c:	80 88 61 00 	btst  0x100, %g1                               
 2004f60:	22 80 00 0c 	be,a   2004f90 <rtems_termios_read+0x240>      <== ALWAYS TAKEN
 2004f64:	c2 07 60 3c 	ld  [ %i5 + 0x3c ], %g1                        
          tty->flow_ctrl &= ~FL_IRTSOFF;                              
 2004f68:	c4 07 60 b8 	ld  [ %i5 + 0xb8 ], %g2                        <== NOT EXECUTED
          /* activate RTS line */                                     
          if (tty->device.startRemoteTx != NULL) {                    
 2004f6c:	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;                              
 2004f70:	84 08 bf fb 	and  %g2, -5, %g2                              <== NOT EXECUTED
 2004f74:	c4 27 60 b8 	st  %g2, [ %i5 + 0xb8 ]                        <== NOT EXECUTED
          /* activate RTS line */                                     
          if (tty->device.startRemoteTx != NULL) {                    
 2004f78:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
 2004f7c:	22 80 00 05 	be,a   2004f90 <rtems_termios_read+0x240>      <== NOT EXECUTED
 2004f80:	c2 07 60 3c 	ld  [ %i5 + 0x3c ], %g1                        <== NOT EXECUTED
            tty->device.startRemoteTx(tty->minor);                    
 2004f84:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
 2004f88:	d0 07 60 10 	ld  [ %i5 + 0x10 ], %o0                        <== NOT EXECUTED
          }                                                           
        }                                                             
      }                                                               
                                                                      
      /* continue processing new character */                         
      if (tty->termios.c_lflag & ICANON) {                            
 2004f8c:	c2 07 60 3c 	ld  [ %i5 + 0x3c ], %g1                        <== NOT EXECUTED
        if (siproc (c, tty))                                          
 2004f90:	90 0f 20 ff 	and  %i4, 0xff, %o0                            
          }                                                           
        }                                                             
      }                                                               
                                                                      
      /* continue processing new character */                         
      if (tty->termios.c_lflag & ICANON) {                            
 2004f94:	80 88 60 02 	btst  2, %g1                                   
 2004f98:	12 bf ff c7 	bne  2004eb4 <rtems_termios_read+0x164>        <== ALWAYS TAKEN
 2004f9c:	92 10 00 1d 	mov  %i5, %o1                                  
        if (siproc (c, tty))                                          
          wait = 0;                                                   
      } else {                                                        
        siproc (c, tty);                                              
 2004fa0:	7f ff ff 27 	call  2004c3c <siproc>                         <== NOT EXECUTED
 2004fa4:	01 00 00 00 	nop                                            <== NOT EXECUTED
        if (tty->ccount >= tty->termios.c_cc[VMIN])                   
 2004fa8:	c2 0f 60 47 	ldub  [ %i5 + 0x47 ], %g1                      <== NOT EXECUTED
 2004fac:	c4 07 60 20 	ld  [ %i5 + 0x20 ], %g2                        <== NOT EXECUTED
 2004fb0:	80 a0 80 01 	cmp  %g2, %g1                                  <== NOT EXECUTED
 2004fb4:	06 bf ff c5 	bl  2004ec8 <rtems_termios_read+0x178>         <== NOT EXECUTED
 2004fb8:	01 00 00 00 	nop                                            <== NOT EXECUTED
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
 2004fbc:	c4 07 60 5c 	ld  [ %i5 + 0x5c ], %g2                        <== NOT EXECUTED
 2004fc0:	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;                                                   
 2004fc4:	b6 10 20 00 	clr  %i3                                       <== NOT EXECUTED
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
 2004fc8:	80 a0 80 01 	cmp  %g2, %g1                                  <== NOT EXECUTED
 2004fcc:	12 bf ff c4 	bne  2004edc <rtems_termios_read+0x18c>        <== NOT EXECUTED
 2004fd0:	f8 07 60 70 	ld  [ %i5 + 0x70 ], %i4                        <== NOT EXECUTED
    }                                                                 
                                                                      
    /*                                                                
     * Wait for characters                                            
     */                                                               
    if ( wait ) {                                                     
 2004fd4:	80 a6 e0 00 	cmp  %i3, 0                                    
 2004fd8:	02 bf ff 80 	be  2004dd8 <rtems_termios_read+0x88>          
 2004fdc:	80 a6 a0 00 	cmp  %i2, 0                                    
      sc = rtems_semaphore_obtain(                                    
 2004fe0:	d0 07 60 68 	ld  [ %i5 + 0x68 ], %o0                        
 2004fe4:	d2 07 60 6c 	ld  [ %i5 + 0x6c ], %o1                        
 2004fe8:	40 00 04 fc 	call  20063d8 <rtems_semaphore_obtain>         
 2004fec:	94 10 00 1c 	mov  %i4, %o2                                  
        tty->rawInBuf.Semaphore, tty->rawInBufSemaphoreOptions, timeout);
      if (sc != RTEMS_SUCCESSFUL)                                     
 2004ff0:	80 a2 20 00 	cmp  %o0, 0                                    
 2004ff4:	02 bf ff a4 	be  2004e84 <rtems_termios_read+0x134>         <== ALWAYS TAKEN
 2004ff8:	80 a6 a0 00 	cmp  %i2, 0                                    
 2004ffc:	30 bf ff 77 	b,a   2004dd8 <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)                     
 2005000:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
 2005004:	22 80 00 07 	be,a   2005020 <rtems_termios_read+0x2d0>      <== NOT EXECUTED
 2005008:	c2 07 60 a4 	ld  [ %i5 + 0xa4 ], %g1                        <== NOT EXECUTED
          || (tty->flow_ctrl & FL_OSTOP))) {                          
 200500c:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        <== NOT EXECUTED
 2005010:	80 88 60 20 	btst  0x20, %g1                                <== NOT EXECUTED
 2005014:	02 bf ff d1 	be  2004f58 <rtems_termios_read+0x208>         <== NOT EXECUTED
 2005018:	01 00 00 00 	nop                                            <== NOT EXECUTED
          /* XON should be sent now... */                             
          (*tty->device.write)(                                       
 200501c:	c2 07 60 a4 	ld  [ %i5 + 0xa4 ], %g1                        <== NOT EXECUTED
 2005020:	d0 07 60 10 	ld  [ %i5 + 0x10 ], %o0                        <== NOT EXECUTED
 2005024:	92 10 00 13 	mov  %l3, %o1                                  <== NOT EXECUTED
 2005028:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
 200502c:	94 10 20 01 	mov  1, %o2                                    <== NOT EXECUTED
          }                                                           
        }                                                             
      }                                                               
                                                                      
      /* continue processing new character */                         
      if (tty->termios.c_lflag & ICANON) {                            
 2005030:	10 bf ff d8 	b  2004f90 <rtems_termios_read+0x240>          <== NOT EXECUTED
 2005034:	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) {                                
 2005038:	80 88 a0 02 	btst  2, %g2                                   
 200503c:	02 80 00 0e 	be  2005074 <rtems_termios_read+0x324>         
 2005040:	01 00 00 00 	nop                                            
    for (;;) {                                                        
      n = (*tty->device.pollRead)(tty->minor);                        
 2005044:	9f c0 40 00 	call  %g1                                      
 2005048:	d0 07 60 10 	ld  [ %i5 + 0x10 ], %o0                        
      if (n < 0) {                                                    
 200504c:	80 a2 20 00 	cmp  %o0, 0                                    
 2005050:	06 80 00 3a 	bl  2005138 <rtems_termios_read+0x3e8>         
 2005054:	90 0a 20 ff 	and  %o0, 0xff, %o0                            
        rtems_task_wake_after (1);                                    
      } else {                                                        
        if  (siproc (n, tty))                                         
 2005058:	7f ff fe f9 	call  2004c3c <siproc>                         
 200505c:	92 10 00 1d 	mov  %i5, %o1                                  
 2005060:	80 a2 20 00 	cmp  %o0, 0                                    
 2005064:	12 bf ff 5d 	bne  2004dd8 <rtems_termios_read+0x88>         
 2005068:	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) {                                
 200506c:	10 bf ff f6 	b  2005044 <rtems_termios_read+0x2f4>          
 2005070:	c2 07 60 a0 	ld  [ %i5 + 0xa0 ], %g1                        
      }                                                               
    }                                                                 
  } else {                                                            
    rtems_interval then, now;                                         
                                                                      
    then = rtems_clock_get_ticks_since_boot();                        
 2005074:	40 00 03 14 	call  2005cc4 <rtems_clock_get_ticks_since_boot>
 2005078:	01 00 00 00 	nop                                            
 200507c:	b8 10 00 08 	mov  %o0, %i4                                  
    for (;;) {                                                        
      n = (*tty->device.pollRead)(tty->minor);                        
 2005080:	c2 07 60 a0 	ld  [ %i5 + 0xa0 ], %g1                        
 2005084:	9f c0 40 00 	call  %g1                                      
 2005088:	d0 07 60 10 	ld  [ %i5 + 0x10 ], %o0                        
      if (n < 0) {                                                    
 200508c:	80 a2 20 00 	cmp  %o0, 0                                    
 2005090:	06 80 00 10 	bl  20050d0 <rtems_termios_read+0x380>         
 2005094:	90 0a 20 ff 	and  %o0, 0xff, %o0                            
            break;                                                    
          }                                                           
        }                                                             
        rtems_task_wake_after (1);                                    
      } else {                                                        
        siproc (n, tty);                                              
 2005098:	7f ff fe e9 	call  2004c3c <siproc>                         
 200509c:	92 10 00 1d 	mov  %i5, %o1                                  
        if (tty->ccount >= tty->termios.c_cc[VMIN])                   
 20050a0:	c2 0f 60 47 	ldub  [ %i5 + 0x47 ], %g1                      
 20050a4:	c4 07 60 20 	ld  [ %i5 + 0x20 ], %g2                        
 20050a8:	80 a0 80 01 	cmp  %g2, %g1                                  
 20050ac:	16 bf ff 4a 	bge  2004dd4 <rtems_termios_read+0x84>         <== NEVER TAKEN
 20050b0:	80 a0 60 00 	cmp  %g1, 0                                    
          break;                                                      
        if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME])      
 20050b4:	22 bf ff f4 	be,a   2005084 <rtems_termios_read+0x334>      <== NEVER TAKEN
 20050b8:	c2 07 60 a0 	ld  [ %i5 + 0xa0 ], %g1                        <== NOT EXECUTED
 20050bc:	c2 0f 60 46 	ldub  [ %i5 + 0x46 ], %g1                      
 20050c0:	80 a0 60 00 	cmp  %g1, 0                                    
 20050c4:	22 bf ff f0 	be,a   2005084 <rtems_termios_read+0x334>      <== NEVER TAKEN
 20050c8:	c2 07 60 a0 	ld  [ %i5 + 0xa0 ], %g1                        <== NOT EXECUTED
 20050cc:	30 bf ff ea 	b,a   2005074 <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]) {                                
 20050d0:	c2 0f 60 47 	ldub  [ %i5 + 0x47 ], %g1                      
 20050d4:	80 a0 60 00 	cmp  %g1, 0                                    
 20050d8:	02 80 00 0d 	be  200510c <rtems_termios_read+0x3bc>         <== NEVER TAKEN
 20050dc:	c2 0f 60 46 	ldub  [ %i5 + 0x46 ], %g1                      
          if (tty->termios.c_cc[VTIME] && tty->ccount) {              
 20050e0:	80 a0 60 00 	cmp  %g1, 0                                    
 20050e4:	02 80 00 06 	be  20050fc <rtems_termios_read+0x3ac>         <== NEVER TAKEN
 20050e8:	01 00 00 00 	nop                                            
 20050ec:	c2 07 60 20 	ld  [ %i5 + 0x20 ], %g1                        
 20050f0:	80 a0 60 00 	cmp  %g1, 0                                    
 20050f4:	12 80 00 09 	bne  2005118 <rtems_termios_read+0x3c8>        
 20050f8:	01 00 00 00 	nop                                            
          now = rtems_clock_get_ticks_since_boot();                   
          if ((now - then) > tty->vtimeTicks) {                       
            break;                                                    
          }                                                           
        }                                                             
        rtems_task_wake_after (1);                                    
 20050fc:	40 00 05 ea 	call  20068a4 <rtems_task_wake_after>          
 2005100:	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);                        
 2005104:	10 bf ff e0 	b  2005084 <rtems_termios_read+0x334>          
 2005108:	c2 07 60 a0 	ld  [ %i5 + 0xa0 ], %g1                        
            if ((now - then) > tty->vtimeTicks) {                     
              break;                                                  
            }                                                         
          }                                                           
        } else {                                                      
          if (!tty->termios.c_cc[VTIME])                              
 200510c:	80 a0 60 00 	cmp  %g1, 0                                    <== NOT EXECUTED
 2005110:	02 bf ff 32 	be  2004dd8 <rtems_termios_read+0x88>          <== NOT EXECUTED
 2005114:	80 a6 a0 00 	cmp  %i2, 0                                    <== NOT EXECUTED
            break;                                                    
          now = rtems_clock_get_ticks_since_boot();                   
 2005118:	40 00 02 eb 	call  2005cc4 <rtems_clock_get_ticks_since_boot>
 200511c:	01 00 00 00 	nop                                            
          if ((now - then) > tty->vtimeTicks) {                       
 2005120:	c2 07 60 54 	ld  [ %i5 + 0x54 ], %g1                        
 2005124:	90 22 00 1c 	sub  %o0, %i4, %o0                             
 2005128:	80 a2 00 01 	cmp  %o0, %g1                                  
 200512c:	08 bf ff f4 	bleu  20050fc <rtems_termios_read+0x3ac>       
 2005130:	80 a6 a0 00 	cmp  %i2, 0                                    
 2005134:	30 bf ff 29 	b,a   2004dd8 <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);                                    
 2005138:	40 00 05 db 	call  20068a4 <rtems_task_wake_after>          
 200513c:	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) {                                
 2005140:	10 bf ff c1 	b  2005044 <rtems_termios_read+0x2f4>          
 2005144:	c2 07 60 a0 	ld  [ %i5 + 0xa0 ], %g1                        
                                                                      

020054f4 <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) {
 20054f4:	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))         
 20054f8:	c2 06 20 b8 	ld  [ %i0 + 0xb8 ], %g1                        
 20054fc:	82 08 64 03 	and  %g1, 0x403, %g1                           
 2005500:	80 a0 64 01 	cmp  %g1, 0x401                                
 2005504:	02 80 00 44 	be  2005614 <rtems_termios_refill_transmitter+0x120><== NEVER TAKEN
 2005508:	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) {
 200550c:	c2 06 20 b8 	ld  [ %i0 + 0xb8 ], %g1                        
 2005510:	82 08 60 03 	and  %g1, 3, %g1                               
 2005514:	80 a0 60 02 	cmp  %g1, 2                                    
 2005518:	22 80 00 50 	be,a   2005658 <rtems_termios_refill_transmitter+0x164><== NEVER TAKEN
 200551c:	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 ) {               
 2005520:	c4 06 20 80 	ld  [ %i0 + 0x80 ], %g2                        
 2005524:	c2 06 20 84 	ld  [ %i0 + 0x84 ], %g1                        
 2005528:	80 a0 80 01 	cmp  %g2, %g1                                  
 200552c:	22 80 00 30 	be,a   20055ec <rtems_termios_refill_transmitter+0xf8>
 2005530:	c2 06 20 94 	ld  [ %i0 + 0x94 ], %g1                        
        rtems_semaphore_release (tty->rawOutBuf.Semaphore);           
      }                                                               
      return 0;                                                       
    }                                                                 
                                                                      
    rtems_interrupt_disable(level);                                   
 2005534:	7f ff f2 87 	call  2001f50 <sparc_disable_interrupts>       
 2005538:	01 00 00 00 	nop                                            
    len = tty->t_dqlen;                                               
 200553c:	f8 06 20 90 	ld  [ %i0 + 0x90 ], %i4                        
    tty->t_dqlen = 0;                                                 
 2005540:	c0 26 20 90 	clr  [ %i0 + 0x90 ]                            
    rtems_interrupt_enable(level);                                    
 2005544:	7f ff f2 87 	call  2001f60 <sparc_enable_interrupts>        
 2005548:	01 00 00 00 	nop                                            
                                                                      
    newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size;      
 200554c:	d0 06 20 84 	ld  [ %i0 + 0x84 ], %o0                        
 2005550:	d2 06 20 88 	ld  [ %i0 + 0x88 ], %o1                        
 2005554:	40 00 31 d4 	call  2011ca4 <.urem>                          
 2005558:	90 07 00 08 	add  %i4, %o0, %o0                             
    tty->rawOutBuf.Tail = newTail;                                    
    if (tty->rawOutBufState == rob_wait) {                            
 200555c:	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;                                    
 2005560:	d0 27 60 84 	st  %o0, [ %i5 + 0x84 ]                        
    if (tty->rawOutBufState == rob_wait) {                            
 2005564:	80 a0 60 02 	cmp  %g1, 2                                    
 2005568:	02 80 00 55 	be  20056bc <rtems_termios_refill_transmitter+0x1c8>
 200556c:	b8 10 00 08 	mov  %o0, %i4                                  
       * wake up any pending writer task                              
       */                                                             
      rtems_semaphore_release (tty->rawOutBuf.Semaphore);             
    }                                                                 
                                                                      
    if (newTail == tty->rawOutBuf.Head) {                             
 2005570:	c2 07 60 80 	ld  [ %i5 + 0x80 ], %g1                        
 2005574:	80 a0 40 1c 	cmp  %g1, %i4                                  
 2005578:	22 80 00 48 	be,a   2005698 <rtems_termios_refill_transmitter+0x1a4>
 200557c:	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))               
 2005580:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        
 2005584:	82 08 62 10 	and  %g1, 0x210, %g1                           
 2005588:	80 a0 62 10 	cmp  %g1, 0x210                                
 200558c:	02 80 00 4f 	be  20056c8 <rtems_termios_refill_transmitter+0x1d4><== NEVER TAKEN
 2005590:	01 00 00 00 	nop                                            
      nToSend = 0;                                                    
    } else {                                                          
      /*                                                              
       * Buffer not empty, start tranmitter                           
       */                                                             
      if (newTail > tty->rawOutBuf.Head)                              
 2005594:	c2 07 60 80 	ld  [ %i5 + 0x80 ], %g1                        
 2005598:	80 a7 00 01 	cmp  %i4, %g1                                  
 200559c:	18 80 00 1b 	bgu  2005608 <rtems_termios_refill_transmitter+0x114>
 20055a0:	01 00 00 00 	nop                                            
        nToSend = tty->rawOutBuf.Size - newTail;                      
      else                                                            
        nToSend = tty->rawOutBuf.Head - newTail;                      
 20055a4:	f0 07 60 80 	ld  [ %i5 + 0x80 ], %i0                        
 20055a8:	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)) {                   
 20055ac:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        
 20055b0:	80 88 66 00 	btst  0x600, %g1                               
 20055b4:	02 80 00 04 	be  20055c4 <rtems_termios_refill_transmitter+0xd0>
 20055b8:	94 10 00 18 	mov  %i0, %o2                                  
 20055bc:	94 10 20 01 	mov  1, %o2                                    
        nToSend = 1;                                                  
 20055c0:	b0 10 20 01 	mov  1, %i0                                    
      }                                                               
      tty->rawOutBufState = rob_busy; /*apm*/                         
      (*tty->device.write)(                                           
 20055c4:	d2 07 60 7c 	ld  [ %i5 + 0x7c ], %o1                        
 20055c8:	c2 07 60 a4 	ld  [ %i5 + 0xa4 ], %g1                        
 20055cc:	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*/                         
 20055d0:	84 10 20 01 	mov  1, %g2                                    
      (*tty->device.write)(                                           
 20055d4:	92 02 40 1c 	add  %o1, %i4, %o1                             
 20055d8:	9f c0 40 00 	call  %g1                                      
 20055dc:	c4 27 60 94 	st  %g2, [ %i5 + 0x94 ]                        
        tty->minor, &tty->rawOutBuf.theBuf[newTail], nToSend);        
    }                                                                 
    tty->rawOutBuf.Tail = newTail; /*apm*/                            
 20055e0:	f8 27 60 84 	st  %i4, [ %i5 + 0x84 ]                        
  }                                                                   
  return nToSend;                                                     
}                                                                     
 20055e4:	81 c7 e0 08 	ret                                            
 20055e8:	81 e8 00 00 	restore                                        
  } else {                                                            
    if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) {               
      /*                                                              
       * buffer was empty                                             
       */                                                             
      if (tty->rawOutBufState == rob_wait) {                          
 20055ec:	80 a0 60 02 	cmp  %g1, 2                                    
 20055f0:	12 bf ff fd 	bne  20055e4 <rtems_termios_refill_transmitter+0xf0><== ALWAYS TAKEN
 20055f4:	b0 10 20 00 	clr  %i0                                       
        /*                                                            
         * this should never happen...                                
         */                                                           
        rtems_semaphore_release (tty->rawOutBuf.Semaphore);           
 20055f8:	40 00 03 c1 	call  20064fc <rtems_semaphore_release>        <== NOT EXECUTED
 20055fc:	d0 07 60 8c 	ld  [ %i5 + 0x8c ], %o0                        <== NOT EXECUTED
 2005600:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 2005604:	81 e8 00 00 	restore                                        <== NOT EXECUTED
    } else {                                                          
      /*                                                              
       * Buffer not empty, start tranmitter                           
       */                                                             
      if (newTail > tty->rawOutBuf.Head)                              
        nToSend = tty->rawOutBuf.Size - newTail;                      
 2005608:	f0 07 60 88 	ld  [ %i5 + 0x88 ], %i0                        
 200560c:	10 bf ff e8 	b  20055ac <rtems_termios_refill_transmitter+0xb8>
 2005610:	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);
 2005614:	c2 06 20 a4 	ld  [ %i0 + 0xa4 ], %g1                        <== NOT EXECUTED
 2005618:	d0 06 20 10 	ld  [ %i0 + 0x10 ], %o0                        <== NOT EXECUTED
 200561c:	92 06 20 4a 	add  %i0, 0x4a, %o1                            <== NOT EXECUTED
 2005620:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
 2005624:	94 10 20 01 	mov  1, %o2                                    <== NOT EXECUTED
                                                                      
    rtems_interrupt_disable(level);                                   
 2005628:	7f ff f2 4a 	call  2001f50 <sparc_disable_interrupts>       <== NOT EXECUTED
 200562c:	01 00 00 00 	nop                                            <== NOT EXECUTED
    tty->t_dqlen--;                                                   
 2005630:	c4 06 20 90 	ld  [ %i0 + 0x90 ], %g2                        <== NOT EXECUTED
    tty->flow_ctrl |= FL_ISNTXOF;                                     
 2005634:	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--;                                                   
 2005638:	84 00 bf ff 	add  %g2, -1, %g2                              <== NOT EXECUTED
    tty->flow_ctrl |= FL_ISNTXOF;                                     
 200563c:	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--;                                                   
 2005640:	c4 27 60 90 	st  %g2, [ %i5 + 0x90 ]                        <== NOT EXECUTED
    tty->flow_ctrl &= ~FL_ISNTXOF;                                    
 2005644:	c2 27 60 b8 	st  %g1, [ %i5 + 0xb8 ]                        <== NOT EXECUTED
    rtems_interrupt_enable(level);                                    
 2005648:	7f ff f2 46 	call  2001f60 <sparc_enable_interrupts>        <== NOT EXECUTED
 200564c:	b0 10 20 01 	mov  1, %i0                                    <== NOT EXECUTED
 2005650:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 2005654:	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);
 2005658:	d0 06 20 10 	ld  [ %i0 + 0x10 ], %o0                        <== NOT EXECUTED
 200565c:	92 06 20 49 	add  %i0, 0x49, %o1                            <== NOT EXECUTED
 2005660:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
 2005664:	94 10 20 01 	mov  1, %o2                                    <== NOT EXECUTED
                                                                      
    rtems_interrupt_disable(level);                                   
 2005668:	7f ff f2 3a 	call  2001f50 <sparc_disable_interrupts>       <== NOT EXECUTED
 200566c:	01 00 00 00 	nop                                            <== NOT EXECUTED
    tty->t_dqlen--;                                                   
 2005670:	c4 06 20 90 	ld  [ %i0 + 0x90 ], %g2                        <== NOT EXECUTED
    tty->flow_ctrl &= ~FL_ISNTXOF;                                    
 2005674:	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--;                                                   
 2005678:	84 00 bf ff 	add  %g2, -1, %g2                              <== NOT EXECUTED
    tty->flow_ctrl &= ~FL_ISNTXOF;                                    
 200567c:	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--;                                                   
 2005680:	c4 27 60 90 	st  %g2, [ %i5 + 0x90 ]                        <== NOT EXECUTED
    tty->flow_ctrl &= ~FL_ISNTXOF;                                    
 2005684:	c2 27 60 b8 	st  %g1, [ %i5 + 0xb8 ]                        <== NOT EXECUTED
    rtems_interrupt_enable(level);                                    
 2005688:	7f ff f2 36 	call  2001f60 <sparc_enable_interrupts>        <== NOT EXECUTED
 200568c:	b0 10 20 01 	mov  1, %i0                                    <== NOT EXECUTED
 2005690:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 2005694:	81 e8 00 00 	restore                                        <== NOT EXECUTED
                                                                      
    if (newTail == tty->rawOutBuf.Head) {                             
      /*                                                              
       * Buffer has become empty                                      
       */                                                             
      tty->rawOutBufState = rob_idle;                                 
 2005698:	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) {                             
 200569c:	80 a0 60 00 	cmp  %g1, 0                                    
 20056a0:	02 bf ff d0 	be  20055e0 <rtems_termios_refill_transmitter+0xec><== ALWAYS TAKEN
 20056a4:	b0 10 20 00 	clr  %i0                                       
        (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg);   
 20056a8:	d2 07 60 d8 	ld  [ %i5 + 0xd8 ], %o1                        <== NOT EXECUTED
 20056ac:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
 20056b0:	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*/                            
 20056b4:	f8 27 60 84 	st  %i4, [ %i5 + 0x84 ]                        <== NOT EXECUTED
 20056b8:	30 bf ff f6 	b,a   2005690 <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);             
 20056bc:	40 00 03 90 	call  20064fc <rtems_semaphore_release>        
 20056c0:	d0 06 20 8c 	ld  [ %i0 + 0x8c ], %o0                        
 20056c4:	30 bf ff ab 	b,a   2005570 <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);                                 
 20056c8:	7f ff f2 22 	call  2001f50 <sparc_disable_interrupts>       <== NOT EXECUTED
 20056cc:	01 00 00 00 	nop                                            <== NOT EXECUTED
      tty->flow_ctrl |= FL_OSTOP;                                     
 20056d0:	c2 07 60 b8 	ld  [ %i5 + 0xb8 ], %g1                        <== NOT EXECUTED
      tty->rawOutBufState = rob_busy; /*apm*/                         
 20056d4:	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;                                     
 20056d8:	82 10 60 20 	or  %g1, 0x20, %g1                             <== NOT EXECUTED
      tty->rawOutBufState = rob_busy; /*apm*/                         
 20056dc:	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;                                     
 20056e0:	c2 27 60 b8 	st  %g1, [ %i5 + 0xb8 ]                        <== NOT EXECUTED
      tty->rawOutBufState = rob_busy; /*apm*/                         
      rtems_interrupt_enable(level);                                  
 20056e4:	7f ff f2 1f 	call  2001f60 <sparc_enable_interrupts>        <== NOT EXECUTED
 20056e8:	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*/                            
 20056ec:	f8 27 60 84 	st  %i4, [ %i5 + 0x84 ]                        <== NOT EXECUTED
 20056f0:	30 bf ff e8 	b,a   2005690 <rtems_termios_refill_transmitter+0x19c><== NOT EXECUTED
                                                                      

02005470 <rtems_termios_rxdaemon>: /* * this task actually processes any receive events */ static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument) {
 2005470:	9d e3 bf 98 	save  %sp, -104, %sp                           
                                                                      
  while (1) {                                                         
    /*                                                                
     * wait for rtems event                                           
     */                                                               
    rtems_event_receive(                                              
 2005474:	10 80 00 08 	b  2005494 <rtems_termios_rxdaemon+0x24>       
 2005478:	96 07 bf f8 	add  %fp, -8, %o3                              
    }                                                                 
                                                                      
    /*                                                                
     * do something                                                   
     */                                                               
    c = tty->device.pollRead(tty->minor);                             
 200547c:	9f c0 40 00 	call  %g1                                      
 2005480:	d0 06 20 10 	ld  [ %i0 + 0x10 ], %o0                        
    if (c != EOF) {                                                   
 2005484:	80 a2 3f ff 	cmp  %o0, -1                                   
 2005488:	32 80 00 15 	bne,a   20054dc <rtems_termios_rxdaemon+0x6c>  
 200548c:	d0 2f bf ff 	stb  %o0, [ %fp + -1 ]                         
                                                                      
  while (1) {                                                         
    /*                                                                
     * wait for rtems event                                           
     */                                                               
    rtems_event_receive(                                              
 2005490:	96 07 bf f8 	add  %fp, -8, %o3                              
 2005494:	92 10 20 02 	mov  2, %o1                                    
 2005498:	94 10 20 00 	clr  %o2                                       
 200549c:	40 00 02 2d 	call  2005d50 <rtems_event_receive>            
 20054a0:	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) {              
 20054a4:	c2 07 bf f8 	ld  [ %fp + -8 ], %g1                          
 20054a8:	80 88 60 01 	btst  1, %g1                                   
 20054ac:	22 bf ff f4 	be,a   200547c <rtems_termios_rxdaemon+0xc>    <== ALWAYS TAKEN
 20054b0:	c2 06 20 a0 	ld  [ %i0 + 0xa0 ], %g1                        
      tty->rxTaskId = 0;                                              
 20054b4:	c0 26 20 c4 	clr  [ %i0 + 0xc4 ]                            <== NOT EXECUTED
      rtems_task_delete(RTEMS_SELF);                                  
 20054b8:	40 00 04 86 	call  20066d0 <rtems_task_delete>              <== NOT EXECUTED
 20054bc:	90 10 20 00 	clr  %o0                                       <== NOT EXECUTED
    }                                                                 
                                                                      
    /*                                                                
     * do something                                                   
     */                                                               
    c = tty->device.pollRead(tty->minor);                             
 20054c0:	c2 06 20 a0 	ld  [ %i0 + 0xa0 ], %g1                        <== NOT EXECUTED
 20054c4:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
 20054c8:	d0 06 20 10 	ld  [ %i0 + 0x10 ], %o0                        <== NOT EXECUTED
    if (c != EOF) {                                                   
 20054cc:	80 a2 3f ff 	cmp  %o0, -1                                   <== NOT EXECUTED
 20054d0:	22 bf ff f1 	be,a   2005494 <rtems_termios_rxdaemon+0x24>   <== NOT EXECUTED
 20054d4:	96 07 bf f8 	add  %fp, -8, %o3                              <== NOT EXECUTED
      /*                                                              
       * pollRead did call enqueue on its own                         
       */                                                             
      c_buf = c;                                                      
 20054d8:	d0 2f bf ff 	stb  %o0, [ %fp + -1 ]                         <== NOT EXECUTED
      rtems_termios_enqueue_raw_characters ( tty,&c_buf,1);           
 20054dc:	92 07 bf ff 	add  %fp, -1, %o1                              
 20054e0:	90 10 00 18 	mov  %i0, %o0                                  
 20054e4:	7f ff ff 1e 	call  200515c <rtems_termios_enqueue_raw_characters>
 20054e8:	94 10 20 01 	mov  1, %o2                                    
                                                                      
  while (1) {                                                         
    /*                                                                
     * wait for rtems event                                           
     */                                                               
    rtems_event_receive(                                              
 20054ec:	10 bf ff ea 	b  2005494 <rtems_termios_rxdaemon+0x24>       
 20054f0:	96 07 bf f8 	add  %fp, -8, %o3                              
                                                                      

020056f4 <rtems_termios_txdaemon>: /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) {
 20056f4:	9d e3 bf 98 	save  %sp, -104, %sp                           
 20056f8:	3b 00 80 54 	sethi  %hi(0x2015000), %i5                     
 20056fc:	10 80 00 0c 	b  200572c <rtems_termios_txdaemon+0x38>       
 2005700:	ba 17 62 e4 	or  %i5, 0x2e4, %i5	! 20152e4 <rtems_termios_linesw>
    }                                                                 
                                                                      
    /*                                                                
     * call any line discipline start function                        
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_start != NULL) {          
 2005704:	83 28 60 05 	sll  %g1, 5, %g1                               
 2005708:	82 07 40 01 	add  %i5, %g1, %g1                             
 200570c:	c2 00 60 14 	ld  [ %g1 + 0x14 ], %g1                        
 2005710:	80 a0 60 00 	cmp  %g1, 0                                    
 2005714:	02 80 00 04 	be  2005724 <rtems_termios_txdaemon+0x30>      <== ALWAYS TAKEN
 2005718:	90 10 00 18 	mov  %i0, %o0                                  
      rtems_termios_linesw[tty->t_line].l_start(tty);                 
 200571c:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
 2005720:	01 00 00 00 	nop                                            <== NOT EXECUTED
    }                                                                 
                                                                      
    /*                                                                
     * try to push further characters to device                       
     */                                                               
    rtems_termios_refill_transmitter(tty);                            
 2005724:	7f ff ff 74 	call  20054f4 <rtems_termios_refill_transmitter>
 2005728:	90 10 00 18 	mov  %i0, %o0                                  
                                                                      
  while (1) {                                                         
    /*                                                                
     * wait for rtems event                                           
     */                                                               
    rtems_event_receive(                                              
 200572c:	92 10 20 02 	mov  2, %o1                                    
 2005730:	94 10 20 00 	clr  %o2                                       
 2005734:	96 07 bf fc 	add  %fp, -4, %o3                              
 2005738:	40 00 01 86 	call  2005d50 <rtems_event_receive>            
 200573c:	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) {              
 2005740:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 2005744:	80 88 60 01 	btst  1, %g1                                   
 2005748:	22 bf ff ef 	be,a   2005704 <rtems_termios_txdaemon+0x10>   <== ALWAYS TAKEN
 200574c:	c2 06 20 cc 	ld  [ %i0 + 0xcc ], %g1                        
      tty->txTaskId = 0;                                              
 2005750:	c0 26 20 c8 	clr  [ %i0 + 0xc8 ]                            <== NOT EXECUTED
      rtems_task_delete(RTEMS_SELF);                                  
 2005754:	40 00 03 df 	call  20066d0 <rtems_task_delete>              <== NOT EXECUTED
 2005758:	90 10 20 00 	clr  %o0                                       <== NOT EXECUTED
    }                                                                 
                                                                      
    /*                                                                
     * call any line discipline start function                        
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_start != NULL) {          
 200575c:	10 bf ff ea 	b  2005704 <rtems_termios_txdaemon+0x10>       <== NOT EXECUTED
 2005760:	c2 06 20 cc 	ld  [ %i0 + 0xcc ], %g1                        <== NOT EXECUTED
                                                                      

02004c84 <rtems_termios_write>: rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) {
 2004c84:	9d e3 bf a0 	save  %sp, -96, %sp                            
  rtems_libio_rw_args_t *args = arg;                                  
  struct rtems_termios_tty *tty = args->iop->data1;                   
 2004c88:	c2 06 00 00 	ld  [ %i0 ], %g1                               
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
 2004c8c:	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;                   
 2004c90:	fa 00 60 38 	ld  [ %g1 + 0x38 ], %i5                        
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
 2004c94:	94 10 20 00 	clr  %o2                                       
 2004c98:	40 00 05 d0 	call  20063d8 <rtems_semaphore_obtain>         
 2004c9c:	d0 07 60 18 	ld  [ %i5 + 0x18 ], %o0                        
  if (sc != RTEMS_SUCCESSFUL)                                         
 2004ca0:	b8 92 20 00 	orcc  %o0, 0, %i4                              
 2004ca4:	12 80 00 0f 	bne  2004ce0 <rtems_termios_write+0x5c>        <== NEVER TAKEN
 2004ca8:	03 00 80 54 	sethi  %hi(0x2015000), %g1                     
    return sc;                                                        
  if (rtems_termios_linesw[tty->t_line].l_write != NULL) {            
 2004cac:	c4 07 60 cc 	ld  [ %i5 + 0xcc ], %g2                        
 2004cb0:	85 28 a0 05 	sll  %g2, 5, %g2                               
 2004cb4:	82 10 62 e4 	or  %g1, 0x2e4, %g1                            
 2004cb8:	82 00 40 02 	add  %g1, %g2, %g1                             
 2004cbc:	c2 00 60 0c 	ld  [ %g1 + 0xc ], %g1                         
 2004cc0:	80 a0 60 00 	cmp  %g1, 0                                    
 2004cc4:	02 80 00 09 	be  2004ce8 <rtems_termios_write+0x64>         
 2004cc8:	90 10 00 1d 	mov  %i5, %o0                                  
    sc = rtems_termios_linesw[tty->t_line].l_write(tty,args);         
 2004ccc:	9f c0 40 00 	call  %g1                                      
 2004cd0:	92 10 00 18 	mov  %i0, %o1                                  
 2004cd4:	b8 10 00 08 	mov  %o0, %i4                                  
    rtems_semaphore_release (tty->osem);                              
 2004cd8:	40 00 06 09 	call  20064fc <rtems_semaphore_release>        
 2004cdc:	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;                                                          
}                                                                     
 2004ce0:	81 c7 e0 08 	ret                                            
 2004ce4:	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) {                                 
 2004ce8:	c2 07 60 34 	ld  [ %i5 + 0x34 ], %g1                        
 2004cec:	80 88 60 01 	btst  1, %g1                                   
 2004cf0:	22 80 00 14 	be,a   2004d40 <rtems_termios_write+0xbc>      <== NEVER TAKEN
 2004cf4:	d0 1e 20 10 	ldd  [ %i0 + 0x10 ], %o0                       <== NOT EXECUTED
    uint32_t   count = args->count;                                   
    char      *buffer = args->buffer;                                 
 2004cf8:	f4 1e 20 10 	ldd  [ %i0 + 0x10 ], %i2                       
    while (count--)                                                   
 2004cfc:	80 a6 e0 00 	cmp  %i3, 0                                    
 2004d00:	02 80 00 0a 	be  2004d28 <rtems_termios_write+0xa4>         <== NEVER TAKEN
 2004d04:	82 10 20 00 	clr  %g1                                       
      oproc (*buffer++, tty);                                         
 2004d08:	d0 0e 80 00 	ldub  [ %i2 ], %o0                             
 2004d0c:	92 10 00 1d 	mov  %i5, %o1                                  
 2004d10:	7f ff fe 3c 	call  2004600 <oproc>                          
 2004d14:	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--)                                                   
 2004d18:	b6 86 ff ff 	addcc  %i3, -1, %i3                            
 2004d1c:	12 bf ff fb 	bne  2004d08 <rtems_termios_write+0x84>        
 2004d20:	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;                                  
 2004d24:	c2 06 20 14 	ld  [ %i0 + 0x14 ], %g1                        
  }                                                                   
  rtems_semaphore_release (tty->osem);                                
 2004d28:	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;                                  
 2004d2c:	c2 26 20 1c 	st  %g1, [ %i0 + 0x1c ]                        
  }                                                                   
  rtems_semaphore_release (tty->osem);                                
 2004d30:	40 00 05 f3 	call  20064fc <rtems_semaphore_release>        
 2004d34:	b0 10 00 1c 	mov  %i4, %i0                                  
  return sc;                                                          
}                                                                     
 2004d38:	81 c7 e0 08 	ret                                            
 2004d3c:	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);              
 2004d40:	7f ff fd e0 	call  20044c0 <rtems_termios_puts>             <== NOT EXECUTED
 2004d44:	94 10 00 1d 	mov  %i5, %o2                                  <== NOT EXECUTED
    args->bytes_moved = args->count;                                  
 2004d48:	10 bf ff f8 	b  2004d28 <rtems_termios_write+0xa4>          <== NOT EXECUTED
 2004d4c:	c2 06 20 14 	ld  [ %i0 + 0x14 ], %g1                        <== NOT EXECUTED
                                                                      

02015e70 <rtems_timer_cancel>: */ rtems_status_code rtems_timer_cancel( rtems_id id ) {
 2015e70:	9d e3 bf 98 	save  %sp, -104, %sp                           
RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get (                      
  Objects_Id         id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (Timer_Control *)                                            
 2015e74:	11 00 80 f1 	sethi  %hi(0x203c400), %o0                     
 2015e78:	92 10 00 18 	mov  %i0, %o1                                  
 2015e7c:	90 12 21 74 	or  %o0, 0x174, %o0                            
 2015e80:	40 00 0c 6a 	call  2019028 <_Objects_Get>                   
 2015e84:	94 07 bf fc 	add  %fp, -4, %o2                              
  Timer_Control   *the_timer;                                         
  Objects_Locations       location;                                   
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  switch ( location ) {                                               
 2015e88:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 2015e8c:	80 a0 60 00 	cmp  %g1, 0                                    
 2015e90:	12 80 00 0c 	bne  2015ec0 <rtems_timer_cancel+0x50>         
 2015e94:	01 00 00 00 	nop                                            
                                                                      
    case OBJECTS_LOCAL:                                               
      if ( !_Timer_Is_dormant_class( the_timer->the_class ) )         
 2015e98:	c2 02 20 38 	ld  [ %o0 + 0x38 ], %g1                        
 2015e9c:	80 a0 60 04 	cmp  %g1, 4                                    
 2015ea0:	02 80 00 04 	be  2015eb0 <rtems_timer_cancel+0x40>          <== NEVER TAKEN
 2015ea4:	01 00 00 00 	nop                                            
        (void) _Watchdog_Remove( &the_timer->Ticker );                
 2015ea8:	40 00 14 f9 	call  201b28c <_Watchdog_Remove>               
 2015eac:	90 02 20 10 	add  %o0, 0x10, %o0                            
      _Thread_Enable_dispatch();                                      
 2015eb0:	40 00 10 0a 	call  2019ed8 <_Thread_Enable_dispatch>        
 2015eb4:	b0 10 20 00 	clr  %i0                                       
      return RTEMS_SUCCESSFUL;                                        
 2015eb8:	81 c7 e0 08 	ret                                            
 2015ebc:	81 e8 00 00 	restore                                        
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 2015ec0:	81 c7 e0 08 	ret                                            
 2015ec4:	91 e8 20 04 	restore  %g0, 4, %o0                           
                                                                      

02016394 <rtems_timer_server_fire_when>: rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) {
 2016394:	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;                 
 2016398:	03 00 80 f1 	sethi  %hi(0x203c400), %g1                     
 201639c:	fa 00 61 b4 	ld  [ %g1 + 0x1b4 ], %i5	! 203c5b4 <_Timer_server>
  rtems_id                           id,                              
  rtems_time_of_day                  *wall_time,                      
  rtems_timer_service_routine_entry  routine,                         
  void                              *user_data                        
)                                                                     
{                                                                     
 20163a0:	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 )                                                
 20163a4:	80 a7 60 00 	cmp  %i5, 0                                    
 20163a8:	02 80 00 32 	be  2016470 <rtems_timer_server_fire_when+0xdc>
 20163ac:	b0 10 20 0e 	mov  0xe, %i0                                  
    return RTEMS_INCORRECT_STATE;                                     
                                                                      
  if ( !_TOD_Is_set )                                                 
 20163b0:	03 00 80 f0 	sethi  %hi(0x203c000), %g1                     
 20163b4:	c2 08 62 c0 	ldub  [ %g1 + 0x2c0 ], %g1	! 203c2c0 <_TOD_Is_set>
 20163b8:	80 a0 60 00 	cmp  %g1, 0                                    
 20163bc:	02 80 00 2d 	be  2016470 <rtems_timer_server_fire_when+0xdc><== NEVER TAKEN
 20163c0:	b0 10 20 0b 	mov  0xb, %i0                                  
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( !routine )                                                     
 20163c4:	80 a6 a0 00 	cmp  %i2, 0                                    
 20163c8:	02 80 00 2a 	be  2016470 <rtems_timer_server_fire_when+0xdc>
 20163cc:	b0 10 20 09 	mov  9, %i0                                    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !_TOD_Validate( wall_time ) )                                  
 20163d0:	90 10 00 19 	mov  %i1, %o0                                  
 20163d4:	7f ff f3 df 	call  2013350 <_TOD_Validate>                  
 20163d8:	b0 10 20 14 	mov  0x14, %i0                                 
 20163dc:	80 8a 20 ff 	btst  0xff, %o0                                
 20163e0:	02 80 00 24 	be  2016470 <rtems_timer_server_fire_when+0xdc>
 20163e4:	01 00 00 00 	nop                                            
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  seconds = _TOD_To_seconds( wall_time );                             
 20163e8:	7f ff f3 a6 	call  2013280 <_TOD_To_seconds>                
 20163ec:	90 10 00 19 	mov  %i1, %o0                                  
  if ( seconds <= _TOD_Seconds_since_epoch() )                        
 20163f0:	21 00 80 f0 	sethi  %hi(0x203c000), %l0                     
 20163f4:	c2 04 23 3c 	ld  [ %l0 + 0x33c ], %g1	! 203c33c <_TOD_Now>  
 20163f8:	80 a2 00 01 	cmp  %o0, %g1                                  
 20163fc:	08 80 00 1d 	bleu  2016470 <rtems_timer_server_fire_when+0xdc>
 2016400:	b2 10 00 08 	mov  %o0, %i1                                  
 2016404:	92 10 00 1c 	mov  %i4, %o1                                  
 2016408:	11 00 80 f1 	sethi  %hi(0x203c400), %o0                     
 201640c:	94 07 bf fc 	add  %fp, -4, %o2                              
 2016410:	40 00 0b 06 	call  2019028 <_Objects_Get>                   
 2016414:	90 12 21 74 	or  %o0, 0x174, %o0                            
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  switch ( location ) {                                               
 2016418:	c2 07 bf fc 	ld  [ %fp + -4 ], %g1                          
 201641c:	80 a0 60 00 	cmp  %g1, 0                                    
 2016420:	12 80 00 16 	bne  2016478 <rtems_timer_server_fire_when+0xe4>
 2016424:	b0 10 00 08 	mov  %o0, %i0                                  
                                                                      
    case OBJECTS_LOCAL:                                               
      (void) _Watchdog_Remove( &the_timer->Ticker );                  
 2016428:	40 00 13 99 	call  201b28c <_Watchdog_Remove>               
 201642c:	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();
 2016430:	c4 04 23 3c 	ld  [ %l0 + 0x33c ], %g2                       
                                                                      
      (*timer_server->schedule_operation)( timer_server, the_timer ); 
 2016434:	c2 07 60 04 	ld  [ %i5 + 4 ], %g1                           
 2016438:	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();
 201643c:	b2 26 40 02 	sub  %i1, %g2, %i1                             
                                                                      
      (*timer_server->schedule_operation)( timer_server, the_timer ); 
 2016440:	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;               
 2016444:	84 10 20 03 	mov  3, %g2                                    
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
 2016448:	f4 26 20 2c 	st  %i2, [ %i0 + 0x2c ]                        
 201644c:	c4 26 20 38 	st  %g2, [ %i0 + 0x38 ]                        
  the_watchdog->id        = id;                                       
 2016450:	f8 26 20 30 	st  %i4, [ %i0 + 0x30 ]                        
  the_watchdog->user_data = user_data;                                
 2016454:	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();
 2016458:	f2 26 20 1c 	st  %i1, [ %i0 + 0x1c ]                        
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
 201645c:	c0 26 20 18 	clr  [ %i0 + 0x18 ]                            
                                                                      
      (*timer_server->schedule_operation)( timer_server, the_timer ); 
 2016460:	9f c0 40 00 	call  %g1                                      
 2016464:	b0 10 20 00 	clr  %i0                                       
                                                                      
      _Thread_Enable_dispatch();                                      
 2016468:	40 00 0e 9c 	call  2019ed8 <_Thread_Enable_dispatch>        
 201646c:	01 00 00 00 	nop                                            
      return RTEMS_SUCCESSFUL;                                        
 2016470:	81 c7 e0 08 	ret                                            
 2016474:	81 e8 00 00 	restore                                        
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 2016478:	81 c7 e0 08 	ret                                            
 201647c:	91 e8 20 04 	restore  %g0, 4, %o0                           
                                                                      

020079d0 <rtems_verror>: static int rtems_verror( rtems_error_code_t error_flag, const char *printf_format, va_list arglist ) {
 20079d0:	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) {                               
 20079d4:	03 08 00 00 	sethi  %hi(0x20000000), %g1                    
 20079d8:	80 8e 00 01 	btst  %i0, %g1                                 
 20079dc:	02 80 00 10 	be  2007a1c <rtems_verror+0x4c>                
 20079e0:	b8 10 00 18 	mov  %i0, %i4                                  
    if (rtems_panic_in_progress++)                                    
 20079e4:	05 00 80 96 	sethi  %hi(0x2025800), %g2                     
 20079e8:	c6 00 a0 a0 	ld  [ %g2 + 0xa0 ], %g3	! 20258a0 <rtems_panic_in_progress>
 20079ec:	82 00 e0 01 	add  %g3, 1, %g1                               
 20079f0:	80 a0 e0 00 	cmp  %g3, 0                                    
 20079f4:	02 80 00 07 	be  2007a10 <rtems_verror+0x40>                <== ALWAYS TAKEN
 20079f8:	c2 20 a0 a0 	st  %g1, [ %g2 + 0xa0 ]                        
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
 20079fc:	03 00 80 96 	sethi  %hi(0x2025800), %g1                     <== NOT EXECUTED
 2007a00:	c6 00 62 70 	ld  [ %g1 + 0x270 ], %g3	! 2025a70 <_Thread_Dispatch_disable_level><== NOT EXECUTED
 2007a04:	86 00 e0 01 	inc  %g3                                       <== NOT EXECUTED
 2007a08:	c6 20 62 70 	st  %g3, [ %g1 + 0x270 ]                       <== NOT EXECUTED
  RTEMS_COMPILER_MEMORY_BARRIER();                                    
 2007a0c:	c2 00 a0 a0 	ld  [ %g2 + 0xa0 ], %g1                        <== NOT EXECUTED
      _Thread_Disable_dispatch();       /* disable task switches */   
                                                                      
    /* don't aggravate things */                                      
    if (rtems_panic_in_progress > 2)                                  
 2007a10:	80 a0 60 02 	cmp  %g1, 2                                    
 2007a14:	14 80 00 2f 	bg  2007ad0 <rtems_verror+0x100>               <== NEVER TAKEN
 2007a18:	b0 10 20 00 	clr  %i0                                       
      return 0;                                                       
  }                                                                   
                                                                      
  (void) fflush(stdout);            /* in case stdout/stderr same */  
 2007a1c:	3b 00 80 94 	sethi  %hi(0x2025000), %i5                     
 2007a20:	c2 07 60 10 	ld  [ %i5 + 0x10 ], %g1	! 2025010 <_impure_ptr>
                                                                      
  status = error_flag & ~RTEMS_ERROR_MASK;                            
 2007a24:	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 */  
 2007a28:	d0 00 60 08 	ld  [ %g1 + 8 ], %o0                           
 2007a2c:	40 00 32 19 	call  2014290 <fflush>                         
 2007a30:	b6 10 20 00 	clr  %i3                                       
                                                                      
  status = error_flag & ~RTEMS_ERROR_MASK;                            
  if (error_flag & RTEMS_ERROR_ERRNO)     /* include errno? */        
 2007a34:	03 10 00 00 	sethi  %hi(0x40000000), %g1                    
 2007a38:	80 8f 00 01 	btst  %i4, %g1                                 
 2007a3c:	12 80 00 33 	bne  2007b08 <rtems_verror+0x138>              
 2007a40:	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);          
 2007a44:	c2 07 60 10 	ld  [ %i5 + 0x10 ], %g1                        
 2007a48:	92 10 00 19 	mov  %i1, %o1                                  
 2007a4c:	d0 00 60 0c 	ld  [ %g1 + 0xc ], %o0                         
 2007a50:	40 00 4b 7e 	call  201a848 <vfprintf>                       
 2007a54:	94 10 00 1a 	mov  %i2, %o2                                  
                                                                      
  if (status)                                                         
 2007a58:	80 a4 20 00 	cmp  %l0, 0                                    
 2007a5c:	12 80 00 1f 	bne  2007ad8 <rtems_verror+0x108>              
 2007a60:	b0 10 00 08 	mov  %o0, %i0                                  
    chars_written +=                                                  
      fprintf(stderr, " (status: %s)", rtems_status_text(status));    
                                                                      
  if (local_errno) {                                                  
 2007a64:	80 a6 e0 00 	cmp  %i3, 0                                    
 2007a68:	02 80 00 12 	be  2007ab0 <rtems_verror+0xe0>                
 2007a6c:	c2 07 60 10 	ld  [ %i5 + 0x10 ], %g1                        
    if ((local_errno > 0) && *strerror(local_errno))                  
 2007a70:	80 a6 e0 00 	cmp  %i3, 0                                    
 2007a74:	04 80 00 09 	ble  2007a98 <rtems_verror+0xc8>               
 2007a78:	13 00 80 8d 	sethi  %hi(0x2023400), %o1                     
 2007a7c:	40 00 36 48 	call  201539c <strerror>                       
 2007a80:	90 10 00 1b 	mov  %i3, %o0                                  
 2007a84:	c2 4a 00 00 	ldsb  [ %o0 ], %g1                             
 2007a88:	80 a0 60 00 	cmp  %g1, 0                                    
 2007a8c:	12 80 00 23 	bne  2007b18 <rtems_verror+0x148>              <== ALWAYS TAKEN
 2007a90:	c2 07 60 10 	ld  [ %i5 + 0x10 ], %g1                        
      chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
    else                                                              
      chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno);
 2007a94:	13 00 80 8d 	sethi  %hi(0x2023400), %o1                     <== NOT EXECUTED
 2007a98:	d0 00 60 0c 	ld  [ %g1 + 0xc ], %o0                         
 2007a9c:	92 12 60 b0 	or  %o1, 0xb0, %o1                             
 2007aa0:	40 00 32 d4 	call  20145f0 <fprintf>                        
 2007aa4:	94 10 00 1b 	mov  %i3, %o2                                  
 2007aa8:	b0 06 00 08 	add  %i0, %o0, %i0                             
  }                                                                   
                                                                      
  chars_written += fprintf(stderr, "\n");                             
 2007aac:	c2 07 60 10 	ld  [ %i5 + 0x10 ], %g1                        
 2007ab0:	13 00 80 8c 	sethi  %hi(0x2023000), %o1                     
 2007ab4:	d0 00 60 0c 	ld  [ %g1 + 0xc ], %o0                         
 2007ab8:	40 00 32 ce 	call  20145f0 <fprintf>                        
 2007abc:	92 12 63 38 	or  %o1, 0x338, %o1                            
                                                                      
  (void) fflush(stderr);                                              
 2007ac0:	c2 07 60 10 	ld  [ %i5 + 0x10 ], %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");                             
 2007ac4:	b0 02 00 18 	add  %o0, %i0, %i0                             
                                                                      
  (void) fflush(stderr);                                              
 2007ac8:	40 00 31 f2 	call  2014290 <fflush>                         
 2007acc:	d0 00 60 0c 	ld  [ %g1 + 0xc ], %o0                         
                                                                      
  return chars_written;                                               
}                                                                     
 2007ad0:	81 c7 e0 08 	ret                                            
 2007ad4:	81 e8 00 00 	restore                                        
                                                                      
  chars_written += vfprintf(stderr, printf_format, arglist);          
                                                                      
  if (status)                                                         
    chars_written +=                                                  
      fprintf(stderr, " (status: %s)", rtems_status_text(status));    
 2007ad8:	03 00 80 94 	sethi  %hi(0x2025000), %g1                     
 2007adc:	c2 00 60 10 	ld  [ %g1 + 0x10 ], %g1	! 2025010 <_impure_ptr>
 2007ae0:	90 10 00 10 	mov  %l0, %o0                                  
 2007ae4:	7f ff ff b5 	call  20079b8 <rtems_status_text>              
 2007ae8:	f8 00 60 0c 	ld  [ %g1 + 0xc ], %i4                         
 2007aec:	13 00 80 8d 	sethi  %hi(0x2023400), %o1                     
 2007af0:	94 10 00 08 	mov  %o0, %o2                                  
 2007af4:	92 12 60 90 	or  %o1, 0x90, %o1                             
 2007af8:	40 00 32 be 	call  20145f0 <fprintf>                        
 2007afc:	90 10 00 1c 	mov  %i4, %o0                                  
  #endif                                                              
                                                                      
  chars_written += vfprintf(stderr, printf_format, arglist);          
                                                                      
  if (status)                                                         
    chars_written +=                                                  
 2007b00:	10 bf ff d9 	b  2007a64 <rtems_verror+0x94>                 
 2007b04:	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;                                              
 2007b08:	40 00 30 d2 	call  2013e50 <__errno>                        
 2007b0c:	01 00 00 00 	nop                                            
 2007b10:	10 bf ff cd 	b  2007a44 <rtems_verror+0x74>                 
 2007b14:	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));
 2007b18:	90 10 00 1b 	mov  %i3, %o0                                  
 2007b1c:	40 00 36 20 	call  201539c <strerror>                       
 2007b20:	f8 00 60 0c 	ld  [ %g1 + 0xc ], %i4                         
 2007b24:	13 00 80 8d 	sethi  %hi(0x2023400), %o1                     
 2007b28:	94 10 00 08 	mov  %o0, %o2                                  
 2007b2c:	92 12 60 a0 	or  %o1, 0xa0, %o1                             
 2007b30:	40 00 32 b0 	call  20145f0 <fprintf>                        
 2007b34:	90 10 00 1c 	mov  %i4, %o0                                  
 2007b38:	10 bf ff dd 	b  2007aac <rtems_verror+0xdc>                 
 2007b3c:	b0 06 00 08 	add  %i0, %o0, %i0                             
                                                                      

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

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

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

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

02004c3c <siproc>: /* * Process input character, with semaphore. */ static int siproc (unsigned char c, struct rtems_termios_tty *tty) {
 2004c3c:	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)) {
 2004c40:	c2 06 60 3c 	ld  [ %i1 + 0x3c ], %g1                        
 2004c44:	80 88 6e 78 	btst  0xe78, %g1                               
 2004c48:	32 80 00 04 	bne,a   2004c58 <siproc+0x1c>                  <== ALWAYS TAKEN
 2004c4c:	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);                                               
 2004c50:	7f ff ff 82 	call  2004a58 <iproc>                          <== NOT EXECUTED
 2004c54:	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); 
 2004c58:	94 10 20 00 	clr  %o2                                       
 2004c5c:	40 00 05 df 	call  20063d8 <rtems_semaphore_obtain>         
 2004c60:	92 10 20 00 	clr  %o1                                       
    i = iproc (c, tty);                                               
 2004c64:	90 10 00 18 	mov  %i0, %o0                                  
 2004c68:	7f ff ff 7c 	call  2004a58 <iproc>                          
 2004c6c:	92 10 00 19 	mov  %i1, %o1                                  
 2004c70:	b0 10 00 08 	mov  %o0, %i0                                  
    rtems_semaphore_release (tty->osem);                              
 2004c74:	40 00 06 22 	call  20064fc <rtems_semaphore_release>        
 2004c78:	d0 06 60 18 	ld  [ %i1 + 0x18 ], %o0                        
  }                                                                   
  else {                                                              
    i = iproc (c, tty);                                               
  }                                                                   
  return i;                                                           
}                                                                     
 2004c7c:	81 c7 e0 08 	ret                                            
 2004c80:	81 e8 00 00 	restore                                        
                                                                      

02006168 <statvfs>: #include <sys/statvfs.h> int statvfs (const char *path, struct statvfs *sb) {
 2006168:	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 ) )
 200616c:	40 00 33 24 	call  2012dfc <strlen>                         
 2006170:	90 10 00 18 	mov  %i0, %o0                                  
 2006174:	94 10 20 00 	clr  %o2                                       
 2006178:	92 10 00 08 	mov  %o0, %o1                                  
 200617c:	96 07 bf ec 	add  %fp, -20, %o3                             
 2006180:	90 10 00 18 	mov  %i0, %o0                                  
 2006184:	98 10 20 01 	mov  1, %o4                                    
 2006188:	7f ff fa ab 	call  2004c34 <rtems_filesystem_evaluate_path> 
 200618c:	b0 10 3f ff 	mov  -1, %i0                                   
 2006190:	80 a2 20 00 	cmp  %o0, 0                                    
 2006194:	12 80 00 0e 	bne  20061cc <statvfs+0x64>                    <== NEVER TAKEN
 2006198:	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));                            
 200619c:	92 10 20 00 	clr  %o1                                       
 20061a0:	94 10 20 38 	mov  0x38, %o2                                 
 20061a4:	40 00 2e 99 	call  2011c08 <memset>                         
 20061a8:	90 10 00 19 	mov  %i1, %o0                                  
                                                                      
  result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb );    
 20061ac:	c2 07 60 28 	ld  [ %i5 + 0x28 ], %g1                        
 20061b0:	92 10 00 19 	mov  %i1, %o1                                  
 20061b4:	c2 00 60 44 	ld  [ %g1 + 0x44 ], %g1                        
 20061b8:	9f c0 40 00 	call  %g1                                      
 20061bc:	90 07 60 1c 	add  %i5, 0x1c, %o0                            
 20061c0:	b0 10 00 08 	mov  %o0, %i0                                  
                                                                      
  rtems_filesystem_freenode( &loc );                                  
 20061c4:	7f ff fa d6 	call  2004d1c <rtems_filesystem_freenode>      
 20061c8:	90 07 bf ec 	add  %fp, -20, %o0                             
                                                                      
  return result;                                                      
}                                                                     
 20061cc:	81 c7 e0 08 	ret                                            
 20061d0:	81 e8 00 00 	restore                                        
                                                                      

02004db0 <sync_per_thread>: fdatasync(fn); } /* iterate over all FILE *'s for this thread */ static void sync_per_thread(Thread_Control *t) {
 2004db0:	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;                                        
 2004db4:	c2 06 21 54 	ld  [ %i0 + 0x154 ], %g1                       
   if ( this_reent ) {                                                
 2004db8:	80 a0 60 00 	cmp  %g1, 0                                    
 2004dbc:	02 80 00 0c 	be  2004dec <sync_per_thread+0x3c>             <== NEVER TAKEN
 2004dc0:	3b 00 80 5d 	sethi  %hi(0x2017400), %i5                     
     current_reent = _Thread_Executing->libc_reent;                   
 2004dc4:	ba 17 62 8c 	or  %i5, 0x28c, %i5	! 201768c <_Per_CPU_Information>
 2004dc8:	c4 07 60 0c 	ld  [ %i5 + 0xc ], %g2                         
     _Thread_Executing->libc_reent = this_reent;                      
     _fwalk (t->libc_reent, sync_wrapper);                            
 2004dcc:	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;                   
 2004dd0:	f8 00 a1 54 	ld  [ %g2 + 0x154 ], %i4                       
     _Thread_Executing->libc_reent = this_reent;                      
 2004dd4:	c2 20 a1 54 	st  %g1, [ %g2 + 0x154 ]                       
     _fwalk (t->libc_reent, sync_wrapper);                            
 2004dd8:	d0 06 21 54 	ld  [ %i0 + 0x154 ], %o0                       
 2004ddc:	40 00 2d 42 	call  20102e4 <_fwalk>                         
 2004de0:	92 12 61 f4 	or  %o1, 0x1f4, %o1                            
     _Thread_Executing->libc_reent = current_reent;                   
 2004de4:	c2 07 60 0c 	ld  [ %i5 + 0xc ], %g1                         
 2004de8:	f8 20 61 54 	st  %i4, [ %g1 + 0x154 ]                       
 2004dec:	81 c7 e0 08 	ret                                            
 2004df0:	81 e8 00 00 	restore                                        
                                                                      

0200c9d0 <tcsetattr>: int tcsetattr( int fd, int opt, struct termios *tp ) {
 200c9d0:	9d e3 bf a0 	save  %sp, -96, %sp                            
  switch (opt) {                                                      
 200c9d4:	80 a6 60 00 	cmp  %i1, 0                                    
 200c9d8:	02 80 00 10 	be  200ca18 <tcsetattr+0x48>                   
 200c9dc:	80 a6 60 01 	cmp  %i1, 1                                    
 200c9e0:	22 80 00 08 	be,a   200ca00 <tcsetattr+0x30>                
 200c9e4:	90 10 00 18 	mov  %i0, %o0                                  
  default:                                                            
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
 200c9e8:	40 00 0c a9 	call  200fc8c <__errno>                        
 200c9ec:	01 00 00 00 	nop                                            
 200c9f0:	82 10 20 86 	mov  0x86, %g1	! 86 <PROM_START+0x86>          
 200c9f4:	c2 22 00 00 	st  %g1, [ %o0 ]                               
     * Fall through to....                                            
     */                                                               
  case TCSANOW:                                                       
    return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp );                  
  }                                                                   
}                                                                     
 200c9f8:	81 c7 e0 08 	ret                                            
 200c9fc:	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)                      
 200ca00:	92 10 20 03 	mov  3, %o1                                    
 200ca04:	7f ff fe f8 	call  200c5e4 <ioctl>                          
 200ca08:	94 10 20 00 	clr  %o2                                       
 200ca0c:	80 a2 20 00 	cmp  %o0, 0                                    
 200ca10:	06 bf ff fa 	bl  200c9f8 <tcsetattr+0x28>                   <== NEVER TAKEN
 200ca14:	01 00 00 00 	nop                                            
    	return -1;                                                       
    /*                                                                
     * Fall through to....                                            
     */                                                               
  case TCSANOW:                                                       
    return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp );                  
 200ca18:	7f ff fe f3 	call  200c5e4 <ioctl>                          
 200ca1c:	93 e8 20 02 	restore  %g0, 2, %o1                           
                                                                      

02006964 <unlink>: #include <rtems/seterr.h> int unlink( const char *path ) {
 2006964:	9d e3 bf 70 	save  %sp, -144, %sp                           
                                                                      
  /*                                                                  
   * Get the node to be unlinked. Find the parent path first.         
   */                                                                 
                                                                      
  parentpathlen = rtems_filesystem_dirname ( path );                  
 2006968:	90 10 00 18 	mov  %i0, %o0                                  
 200696c:	7f ff f3 f2 	call  2003934 <rtems_filesystem_dirname>       
 2006970:	ba 10 00 18 	mov  %i0, %i5                                  
                                                                      
  if ( parentpathlen == 0 )                                           
 2006974:	80 a2 20 00 	cmp  %o0, 0                                    
 2006978:	12 80 00 29 	bne  2006a1c <unlink+0xb8>                     
 200697c:	b6 10 00 08 	mov  %o0, %i3                                  
    rtems_filesystem_get_start_loc( path, &i, &parentloc );           
 2006980:	b8 07 bf d4 	add  %fp, -44, %i4                             
 2006984:	90 10 00 18 	mov  %i0, %o0                                  
 2006988:	92 07 bf fc 	add  %fp, -4, %o1                              
 200698c:	94 10 00 1c 	mov  %i4, %o2                                  
 2006990:	7f ff f8 2d 	call  2004a44 <rtems_filesystem_get_start_loc> 
 2006994:	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;           
 2006998:	b4 10 20 00 	clr  %i2                                       
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  loc = parentloc;                                                    
 200699c:	c2 07 bf d4 	ld  [ %fp + -44 ], %g1                         
  name = path + parentpathlen;                                        
 20069a0:	ba 07 40 1b 	add  %i5, %i3, %i5                             
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  loc = parentloc;                                                    
 20069a4:	c2 27 bf e8 	st  %g1, [ %fp + -24 ]                         
 20069a8:	c2 07 bf d8 	ld  [ %fp + -40 ], %g1                         
  name = path + parentpathlen;                                        
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
 20069ac:	90 10 00 1d 	mov  %i5, %o0                                  
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  loc = parentloc;                                                    
 20069b0:	c2 27 bf ec 	st  %g1, [ %fp + -20 ]                         
 20069b4:	c2 07 bf dc 	ld  [ %fp + -36 ], %g1                         
 20069b8:	c2 27 bf f0 	st  %g1, [ %fp + -16 ]                         
 20069bc:	c2 07 bf e0 	ld  [ %fp + -32 ], %g1                         
 20069c0:	c2 27 bf f4 	st  %g1, [ %fp + -12 ]                         
 20069c4:	c2 07 bf e4 	ld  [ %fp + -28 ], %g1                         
  name = path + parentpathlen;                                        
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
 20069c8:	40 00 32 79 	call  20133ac <strlen>                         
 20069cc:	c2 27 bf f8 	st  %g1, [ %fp + -8 ]                          
 20069d0:	92 10 00 08 	mov  %o0, %o1                                  
 20069d4:	7f ff f3 e7 	call  2003970 <rtems_filesystem_prefix_separators>
 20069d8:	90 10 00 1d 	mov  %i5, %o0                                  
 20069dc:	ba 07 40 08 	add  %i5, %o0, %i5                             
                                                                      
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
 20069e0:	40 00 32 73 	call  20133ac <strlen>                         
 20069e4:	90 10 00 1d 	mov  %i5, %o0                                  
 20069e8:	94 10 20 00 	clr  %o2                                       
 20069ec:	92 10 00 08 	mov  %o0, %o1                                  
 20069f0:	96 07 bf e8 	add  %fp, -24, %o3                             
 20069f4:	90 10 00 1d 	mov  %i5, %o0                                  
 20069f8:	7f ff f3 a3 	call  2003884 <rtems_filesystem_evaluate_relative_path>
 20069fc:	98 10 20 00 	clr  %o4                                       
                                                    0, &loc, false ); 
  if ( result != 0 ) {                                                
 2006a00:	80 a2 20 00 	cmp  %o0, 0                                    
 2006a04:	02 80 00 17 	be  2006a60 <unlink+0xfc>                      
 2006a08:	80 8e a0 ff 	btst  0xff, %i2                                
    if ( free_parentloc )                                             
 2006a0c:	12 80 00 11 	bne  2006a50 <unlink+0xec>                     <== ALWAYS TAKEN
 2006a10:	b0 10 3f ff 	mov  -1, %i0                                   
  rtems_filesystem_freenode( &loc );                                  
  if ( free_parentloc )                                               
    rtems_filesystem_freenode( &parentloc );                          
                                                                      
  return result;                                                      
}                                                                     
 2006a14:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 2006a18:	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,     
 2006a1c:	b8 07 bf d4 	add  %fp, -44, %i4                             
 2006a20:	90 10 00 18 	mov  %i0, %o0                                  
 2006a24:	92 10 00 1b 	mov  %i3, %o1                                  
 2006a28:	94 10 20 02 	mov  2, %o2                                    
 2006a2c:	96 10 00 1c 	mov  %i4, %o3                                  
 2006a30:	98 10 20 00 	clr  %o4                                       
 2006a34:	7f ff f3 b1 	call  20038f8 <rtems_filesystem_evaluate_path> 
 2006a38:	b0 10 3f ff 	mov  -1, %i0                                   
                                             RTEMS_LIBIO_PERMS_WRITE, 
                                             &parentloc,              
                                             false );                 
    if ( result != 0 )                                                
 2006a3c:	80 a2 20 00 	cmp  %o0, 0                                    
 2006a40:	12 bf ff f5 	bne  2006a14 <unlink+0xb0>                     <== NEVER TAKEN
 2006a44:	b4 10 20 01 	mov  1, %i2                                    
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  loc = parentloc;                                                    
 2006a48:	10 bf ff d6 	b  20069a0 <unlink+0x3c>                       
 2006a4c:	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 );                        
 2006a50:	7f ff f3 e4 	call  20039e0 <rtems_filesystem_freenode>      
 2006a54:	90 10 00 1c 	mov  %i4, %o0                                  
 2006a58:	81 c7 e0 08 	ret                                            
 2006a5c:	81 e8 00 00 	restore                                        
    return -1;                                                        
  }                                                                   
                                                                      
  if (  (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) {
 2006a60:	c2 07 bf f4 	ld  [ %fp + -12 ], %g1                         
 2006a64:	c2 00 60 10 	ld  [ %g1 + 0x10 ], %g1                        
 2006a68:	9f c0 40 00 	call  %g1                                      
 2006a6c:	90 07 bf e8 	add  %fp, -24, %o0                             
 2006a70:	80 a2 20 01 	cmp  %o0, 1                                    
 2006a74:	02 80 00 10 	be  2006ab4 <unlink+0x150>                     
 2006a78:	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 );                  
 2006a7c:	92 07 bf e8 	add  %fp, -24, %o1                             
 2006a80:	c2 00 60 0c 	ld  [ %g1 + 0xc ], %g1                         
 2006a84:	9f c0 40 00 	call  %g1                                      
 2006a88:	90 10 00 1c 	mov  %i4, %o0                                  
 2006a8c:	b0 10 00 08 	mov  %o0, %i0                                  
                                                                      
  rtems_filesystem_freenode( &loc );                                  
 2006a90:	7f ff f3 d4 	call  20039e0 <rtems_filesystem_freenode>      
 2006a94:	90 07 bf e8 	add  %fp, -24, %o0                             
  if ( free_parentloc )                                               
 2006a98:	80 8e a0 ff 	btst  0xff, %i2                                
 2006a9c:	02 80 00 11 	be  2006ae0 <unlink+0x17c>                     
 2006aa0:	01 00 00 00 	nop                                            
    rtems_filesystem_freenode( &parentloc );                          
 2006aa4:	7f ff f3 cf 	call  20039e0 <rtems_filesystem_freenode>      
 2006aa8:	90 10 00 1c 	mov  %i4, %o0                                  
                                                                      
  return result;                                                      
}                                                                     
 2006aac:	81 c7 e0 08 	ret                                            
 2006ab0:	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 );                                
 2006ab4:	7f ff f3 cb 	call  20039e0 <rtems_filesystem_freenode>      
 2006ab8:	90 07 bf e8 	add  %fp, -24, %o0                             
    if ( free_parentloc )                                             
 2006abc:	80 8e a0 ff 	btst  0xff, %i2                                
 2006ac0:	02 80 00 04 	be  2006ad0 <unlink+0x16c>                     
 2006ac4:	01 00 00 00 	nop                                            
      rtems_filesystem_freenode( &parentloc );                        
 2006ac8:	7f ff f3 c6 	call  20039e0 <rtems_filesystem_freenode>      
 2006acc:	90 10 00 1c 	mov  %i4, %o0                                  
    rtems_set_errno_and_return_minus_one( EISDIR );                   
 2006ad0:	40 00 2e c0 	call  20125d0 <__errno>                        
 2006ad4:	b0 10 3f ff 	mov  -1, %i0                                   
 2006ad8:	82 10 20 15 	mov  0x15, %g1                                 
 2006adc:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2006ae0:	81 c7 e0 08 	ret                                            
 2006ae4:	81 e8 00 00 	restore                                        
                                                                      

02006a60 <unmount>: */ int unmount( const char *path ) {
 2006a60:	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 ) )
 2006a64:	40 00 26 93 	call  20104b0 <strlen>                         
 2006a68:	90 10 00 18 	mov  %i0, %o0                                  
 2006a6c:	94 10 20 00 	clr  %o2                                       
 2006a70:	92 10 00 08 	mov  %o0, %o1                                  
 2006a74:	96 07 bf ec 	add  %fp, -20, %o3                             
 2006a78:	90 10 00 18 	mov  %i0, %o0                                  
 2006a7c:	7f ff f3 09 	call  20036a0 <rtems_filesystem_evaluate_path> 
 2006a80:	98 10 20 01 	mov  1, %o4                                    
 2006a84:	80 a2 20 00 	cmp  %o0, 0                                    
 2006a88:	12 80 00 53 	bne  2006bd4 <unmount+0x174>                   
 2006a8c:	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 ){                 
 2006a90:	c2 07 bf ec 	ld  [ %fp + -20 ], %g1                         
 2006a94:	c4 07 60 1c 	ld  [ %i5 + 0x1c ], %g2                        
 2006a98:	80 a0 80 01 	cmp  %g2, %g1                                  
 2006a9c:	12 80 00 3c 	bne  2006b8c <unmount+0x12c>                   
 2006aa0:	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 );                                  
 2006aa4:	7f ff f3 39 	call  2003788 <rtems_filesystem_freenode>      
 2006aa8:	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 )                
 2006aac:	03 00 80 5e 	sethi  %hi(0x2017800), %g1                     
 2006ab0:	c2 00 61 5c 	ld  [ %g1 + 0x15c ], %g1	! 201795c <rtems_current_user_env>
 2006ab4:	c2 00 60 14 	ld  [ %g1 + 0x14 ], %g1                        
 2006ab8:	80 a0 40 1d 	cmp  %g1, %i5                                  
 2006abc:	02 80 00 40 	be  2006bbc <unmount+0x15c>                    
 2006ac0:	11 00 80 1a 	sethi  %hi(0x2006800), %o0                     
                                                                      
  /*                                                                  
   *  Verify there are no file systems below the path specified       
   */                                                                 
                                                                      
  if ( rtems_filesystem_mount_iterate( is_fs_below_mount_point,       
 2006ac4:	d2 07 60 2c 	ld  [ %i5 + 0x2c ], %o1                        
 2006ac8:	7f ff f5 8b 	call  20040f4 <rtems_filesystem_mount_iterate> 
 2006acc:	90 12 22 4c 	or  %o0, 0x24c, %o0                            
 2006ad0:	80 8a 20 ff 	btst  0xff, %o0                                
 2006ad4:	12 80 00 3a 	bne  2006bbc <unmount+0x15c>                   
 2006ad8:	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 )             
 2006adc:	7f ff f4 16 	call  2003b34 <rtems_libio_is_open_files_in_fs>
 2006ae0:	90 10 00 1d 	mov  %i5, %o0                                  
 2006ae4:	80 a2 20 01 	cmp  %o0, 1                                    
 2006ae8:	02 80 00 35 	be  2006bbc <unmount+0x15c>                    
 2006aec:	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 )             
 2006af0:	c2 07 60 14 	ld  [ %i5 + 0x14 ], %g1                        
 2006af4:	c2 00 60 28 	ld  [ %g1 + 0x28 ], %g1                        
 2006af8:	9f c0 40 00 	call  %g1                                      
 2006afc:	90 10 00 1d 	mov  %i5, %o0                                  
 2006b00:	80 a2 20 00 	cmp  %o0, 0                                    
 2006b04:	12 80 00 2a 	bne  2006bac <unmount+0x14c>                   <== NEVER TAKEN
 2006b08:	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){          
 2006b0c:	c2 07 60 28 	ld  [ %i5 + 0x28 ], %g1                        
 2006b10:	c2 00 60 2c 	ld  [ %g1 + 0x2c ], %g1                        
 2006b14:	9f c0 40 00 	call  %g1                                      
 2006b18:	90 10 00 1d 	mov  %i5, %o0                                  
 2006b1c:	80 a2 20 00 	cmp  %o0, 0                                    
 2006b20:	02 80 00 0c 	be  2006b50 <unmount+0xf0>                     <== ALWAYS TAKEN
 2006b24:	39 00 80 60 	sethi  %hi(0x2018000), %i4                     
    if (( fs_mount_loc->ops->mount_h )( mt_entry ) != 0 )             
 2006b28:	c2 07 60 14 	ld  [ %i5 + 0x14 ], %g1                        <== NOT EXECUTED
 2006b2c:	90 10 00 1d 	mov  %i5, %o0                                  <== NOT EXECUTED
 2006b30:	c2 00 60 20 	ld  [ %g1 + 0x20 ], %g1                        <== NOT EXECUTED
 2006b34:	9f c0 40 00 	call  %g1                                      <== NOT EXECUTED
 2006b38:	b0 10 3f ff 	mov  -1, %i0                                   <== NOT EXECUTED
 2006b3c:	80 a2 20 00 	cmp  %o0, 0                                    <== NOT EXECUTED
 2006b40:	12 80 00 1d 	bne  2006bb4 <unmount+0x154>                   <== NOT EXECUTED
 2006b44:	01 00 00 00 	nop                                            <== NOT EXECUTED
                                                                      
  rtems_filesystem_freenode( fs_mount_loc );                          
  free( mt_entry );                                                   
                                                                      
  return 0;                                                           
}                                                                     
 2006b48:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 2006b4c:	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 );
 2006b50:	d0 07 22 e8 	ld  [ %i4 + 0x2e8 ], %o0                       
 2006b54:	92 10 20 00 	clr  %o1                                       
 2006b58:	40 00 02 f1 	call  200771c <rtems_semaphore_obtain>         
 2006b5c:	94 10 20 00 	clr  %o2                                       
 */                                                                   
RTEMS_INLINE_ROUTINE void rtems_chain_extract(                        
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Extract( the_node );                                         
 2006b60:	40 00 05 5c 	call  20080d0 <_Chain_Extract>                 
 2006b64:	90 10 00 1d 	mov  %i5, %o0                                  
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
 2006b68:	d0 07 22 e8 	ld  [ %i4 + 0x2e8 ], %o0                       
 2006b6c:	40 00 03 35 	call  2007840 <rtems_semaphore_release>        
 2006b70:	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 );                          
 2006b74:	7f ff f3 05 	call  2003788 <rtems_filesystem_freenode>      
 2006b78:	90 07 60 08 	add  %i5, 8, %o0                               
  free( mt_entry );                                                   
 2006b7c:	7f ff f3 0a 	call  20037a4 <free>                           
 2006b80:	90 10 00 1d 	mov  %i5, %o0                                  
                                                                      
  return 0;                                                           
 2006b84:	81 c7 e0 08 	ret                                            
 2006b88:	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 );                                
 2006b8c:	7f ff f2 ff 	call  2003788 <rtems_filesystem_freenode>      
 2006b90:	b0 10 3f ff 	mov  -1, %i0                                   
    rtems_set_errno_and_return_minus_one( EACCES );                   
 2006b94:	40 00 21 0b 	call  200efc0 <__errno>                        
 2006b98:	01 00 00 00 	nop                                            
 2006b9c:	82 10 20 0d 	mov  0xd, %g1	! d <PROM_START+0xd>             
 2006ba0:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2006ba4:	81 c7 e0 08 	ret                                            
 2006ba8:	81 e8 00 00 	restore                                        
                                                                      
  rtems_filesystem_freenode( fs_mount_loc );                          
  free( mt_entry );                                                   
                                                                      
  return 0;                                                           
}                                                                     
 2006bac:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 2006bb0:	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 );                                
 2006bb4:	40 00 04 6c 	call  2007d64 <rtems_fatal_error_occurred>     <== NOT EXECUTED
 2006bb8:	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 );                    
 2006bbc:	40 00 21 01 	call  200efc0 <__errno>                        
 2006bc0:	b0 10 3f ff 	mov  -1, %i0                                   
 2006bc4:	82 10 20 10 	mov  0x10, %g1                                 
 2006bc8:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2006bcc:	81 c7 e0 08 	ret                                            
 2006bd0:	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;                                                        
 2006bd4:	81 c7 e0 08 	ret                                            
 2006bd8:	91 e8 3f ff 	restore  %g0, -1, %o0                          
                                                                      

0200581c <vprintk>: */ void vprintk( const char *fmt, va_list ap ) {
 200581c:	9d e3 bf 88 	save  %sp, -120, %sp                           
  for (; *fmt != '\0'; fmt++) {                                       
 2005820:	c2 0e 00 00 	ldub  [ %i0 ], %g1                             
 2005824:	83 28 60 18 	sll  %g1, 0x18, %g1                            
 2005828:	80 a0 60 00 	cmp  %g1, 0                                    
 200582c:	02 80 00 83 	be  2005a38 <vprintk+0x21c>                    <== NEVER TAKEN
 2005830:	29 00 80 53 	sethi  %hi(0x2014c00), %l4                     
 *  console is not yet initialized or in ISR's.                       
 *                                                                    
 * Arguments:                                                         
 *    as in printf: fmt - format string, ... - unnamed arguments.     
 */                                                                   
void vprintk(                                                         
 2005834:	a2 07 bf e8 	add  %fp, -24, %l1                             
 2005838:	a6 07 bf e7 	add  %fp, -25, %l3                             
 200583c:	2d 00 80 50 	sethi  %hi(0x2014000), %l6                     
      char *s, *str;                                                  
                                                                      
      str = va_arg(ap, char *);                                       
                                                                      
      if ( str == NULL ) {                                            
        str = "";                                                     
 2005840:	2f 00 80 50 	sethi  %hi(0x2014000), %l7                     
    bool minus = false;                                               
    bool sign = false;                                                
    char lead = ' ';                                                  
    char c;                                                           
                                                                      
    if (*fmt != '%') {                                                
 2005844:	91 38 60 18 	sra  %g1, 0x18, %o0                            
 2005848:	80 a2 20 25 	cmp  %o0, 0x25                                 
 200584c:	12 80 00 93 	bne  2005a98 <vprintk+0x27c>                   
 2005850:	c2 05 20 5c 	ld  [ %l4 + 0x5c ], %g1                        
      BSP_output_char(*fmt);                                          
      continue;                                                       
    }                                                                 
    fmt++;                                                            
    if (*fmt == '0' ) {                                               
 2005854:	c2 0e 20 01 	ldub  [ %i0 + 1 ], %g1                         
 2005858:	87 28 60 18 	sll  %g1, 0x18, %g3                            
 200585c:	85 38 e0 18 	sra  %g3, 0x18, %g2                            
 2005860:	80 a0 a0 30 	cmp  %g2, 0x30                                 
 2005864:	22 80 00 9c 	be,a   2005ad4 <vprintk+0x2b8>                 
 2005868:	c2 0e 20 02 	ldub  [ %i0 + 2 ], %g1                         
                                                                      
    if (*fmt != '%') {                                                
      BSP_output_char(*fmt);                                          
      continue;                                                       
    }                                                                 
    fmt++;                                                            
 200586c:	84 06 20 01 	add  %i0, 1, %g2                               
    unsigned base = 0;                                                
    unsigned width = 0;                                               
    bool lflag = false;                                               
    bool minus = false;                                               
    bool sign = false;                                                
    char lead = ' ';                                                  
 2005870:	aa 10 20 20 	mov  0x20, %l5                                 
    fmt++;                                                            
    if (*fmt == '0' ) {                                               
      lead = '0';                                                     
      fmt++;                                                          
    }                                                                 
    if (*fmt == '-' ) {                                               
 2005874:	89 38 e0 18 	sra  %g3, 0x18, %g4                            
 2005878:	80 a1 20 2d 	cmp  %g4, 0x2d                                 
 200587c:	02 80 00 91 	be  2005ac0 <vprintk+0x2a4>                    
 2005880:	a4 10 20 00 	clr  %l2                                       
      minus = true;                                                   
      fmt++;                                                          
    }                                                                 
    while (*fmt >= '0' && *fmt <= '9' ) {                             
 2005884:	82 00 7f d0 	add  %g1, -48, %g1                             
 2005888:	b0 10 00 02 	mov  %g2, %i0                                  
 200588c:	82 08 60 ff 	and  %g1, 0xff, %g1                            
 2005890:	80 a0 60 09 	cmp  %g1, 9                                    
 2005894:	08 80 00 06 	bleu  20058ac <vprintk+0x90>                   
 2005898:	ba 10 20 00 	clr  %i5                                       
      width *= 10;                                                    
      width += ((unsigned) *fmt - '0');                               
      fmt++;                                                          
    }                                                                 
                                                                      
    if ((c = *fmt) == 'l') {                                          
 200589c:	10 80 00 12 	b  20058e4 <vprintk+0xc8>                      
 20058a0:	83 38 e0 18 	sra  %g3, 0x18, %g1                            
    }                                                                 
    if (*fmt == '-' ) {                                               
      minus = true;                                                   
      fmt++;                                                          
    }                                                                 
    while (*fmt >= '0' && *fmt <= '9' ) {                             
 20058a4:	84 10 00 18 	mov  %i0, %g2                                  
 20058a8:	87 28 60 18 	sll  %g1, 0x18, %g3                            
 20058ac:	c2 08 a0 01 	ldub  [ %g2 + 1 ], %g1                         
      width *= 10;                                                    
 20058b0:	89 2f 60 01 	sll  %i5, 1, %g4                               
      width += ((unsigned) *fmt - '0');                               
 20058b4:	87 38 e0 18 	sra  %g3, 0x18, %g3                            
    if (*fmt == '-' ) {                                               
      minus = true;                                                   
      fmt++;                                                          
    }                                                                 
    while (*fmt >= '0' && *fmt <= '9' ) {                             
      width *= 10;                                                    
 20058b8:	bb 2f 60 03 	sll  %i5, 3, %i5                               
      width += ((unsigned) *fmt - '0');                               
      fmt++;                                                          
 20058bc:	b0 00 a0 01 	add  %g2, 1, %i0                               
    if (*fmt == '-' ) {                                               
      minus = true;                                                   
      fmt++;                                                          
    }                                                                 
    while (*fmt >= '0' && *fmt <= '9' ) {                             
      width *= 10;                                                    
 20058c0:	ba 01 00 1d 	add  %g4, %i5, %i5                             
    }                                                                 
    if (*fmt == '-' ) {                                               
      minus = true;                                                   
      fmt++;                                                          
    }                                                                 
    while (*fmt >= '0' && *fmt <= '9' ) {                             
 20058c4:	84 00 7f d0 	add  %g1, -48, %g2                             
      width *= 10;                                                    
      width += ((unsigned) *fmt - '0');                               
 20058c8:	ba 07 40 03 	add  %i5, %g3, %i5                             
    }                                                                 
    if (*fmt == '-' ) {                                               
      minus = true;                                                   
      fmt++;                                                          
    }                                                                 
    while (*fmt >= '0' && *fmt <= '9' ) {                             
 20058cc:	84 08 a0 ff 	and  %g2, 0xff, %g2                            
 20058d0:	80 a0 a0 09 	cmp  %g2, 9                                    
 20058d4:	08 bf ff f4 	bleu  20058a4 <vprintk+0x88>                   
 20058d8:	ba 07 7f d0 	add  %i5, -48, %i5                             
 20058dc:	87 28 60 18 	sll  %g1, 0x18, %g3                            
      width *= 10;                                                    
      width += ((unsigned) *fmt - '0');                               
      fmt++;                                                          
    }                                                                 
                                                                      
    if ((c = *fmt) == 'l') {                                          
 20058e0:	83 38 e0 18 	sra  %g3, 0x18, %g1                            
 20058e4:	80 a0 60 6c 	cmp  %g1, 0x6c                                 
 20058e8:	02 80 00 7f 	be  2005ae4 <vprintk+0x2c8>                    
 20058ec:	83 38 e0 18 	sra  %g3, 0x18, %g1                            
      lflag = true;                                                   
      c = *++fmt;                                                     
    }                                                                 
    if ( c == 'c' ) {                                                 
 20058f0:	80 a0 60 63 	cmp  %g1, 0x63                                 
 20058f4:	22 80 00 83 	be,a   2005b00 <vprintk+0x2e4>                 
 20058f8:	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' ) {                                                 
 20058fc:	80 a0 60 73 	cmp  %g1, 0x73                                 
 2005900:	02 80 00 8b 	be  2005b2c <vprintk+0x310>                    
 2005904:	80 a0 60 4f 	cmp  %g1, 0x4f                                 
                                                                      
      continue;                                                       
    }                                                                 
                                                                      
    /* must be a numeric format or something unsupported */           
    if ( c == 'o' || c == 'O' ) {                                     
 2005908:	22 80 00 6c 	be,a   2005ab8 <vprintk+0x29c>                 
 200590c:	82 10 20 00 	clr  %g1                                       
 2005910:	80 a0 60 6f 	cmp  %g1, 0x6f                                 
 2005914:	22 80 00 69 	be,a   2005ab8 <vprintk+0x29c>                 
 2005918:	82 10 20 00 	clr  %g1                                       
      base = 8; sign = false;                                         
    } else if ( c == 'i' || c == 'I' ||                               
 200591c:	80 a0 60 49 	cmp  %g1, 0x49                                 
 2005920:	22 80 00 06 	be,a   2005938 <vprintk+0x11c>                 
 2005924:	82 10 20 01 	mov  1, %g1                                    
 2005928:	80 a0 60 69 	cmp  %g1, 0x69                                 
 200592c:	12 80 00 45 	bne  2005a40 <vprintk+0x224>                   
 2005930:	80 a0 60 44 	cmp  %g1, 0x44                                 
                c == 'd' || c == 'D' ) {                              
      base = 10; sign = true;                                         
 2005934:	82 10 20 01 	mov  1, %g1                                    
 2005938:	a0 10 20 0a 	mov  0xa, %l0                                  
    } else {                                                          
      BSP_output_char(c);                                             
      continue;                                                       
    }                                                                 
                                                                      
    printNum(                                                         
 200593c:	f4 06 40 00 	ld  [ %i1 ], %i2                               
  unsigned long unsigned_num;                                         
  unsigned long n;                                                    
  unsigned count;                                                     
  char toPrint[20];                                                   
                                                                      
  if ( sign && (num <  0) ) {                                         
 2005940:	80 88 60 ff 	btst  0xff, %g1                                
 2005944:	02 80 00 05 	be  2005958 <vprintk+0x13c>                    
 2005948:	b2 06 60 04 	add  %i1, 4, %i1                               
 200594c:	80 a6 a0 00 	cmp  %i2, 0                                    
 2005950:	06 80 00 bf 	bl  2005c4c <vprintk+0x430>                    
 2005954:	c2 05 20 5c 	ld  [ %l4 + 0x5c ], %g1                        
  } else {                                                            
    unsigned_num = (unsigned long) num;                               
  }                                                                   
                                                                      
  count = 0;                                                          
  while ((n = unsigned_num / base) > 0) {                             
 2005958:	90 10 00 1a 	mov  %i2, %o0                                  
 200595c:	92 10 00 10 	mov  %l0, %o1                                  
 2005960:	40 00 30 25 	call  20119f4 <.udiv>                          
 2005964:	a4 10 00 10 	mov  %l0, %l2                                  
 2005968:	b8 92 20 00 	orcc  %o0, 0, %i4                              
 200596c:	12 80 00 06 	bne  2005984 <vprintk+0x168>                   
 2005970:	b6 10 20 00 	clr  %i3                                       
 2005974:	10 80 00 c4 	b  2005c84 <vprintk+0x468>                     
 2005978:	b8 10 00 1a 	mov  %i2, %i4                                  
 200597c:	b4 10 00 1c 	mov  %i4, %i2                                  
 2005980:	b8 10 00 08 	mov  %o0, %i4                                  
    toPrint[count++] = (char) (unsigned_num - (n * base));            
 2005984:	92 10 00 1c 	mov  %i4, %o1                                  
 2005988:	40 00 2f e1 	call  201190c <.umul>                          
 200598c:	90 10 00 12 	mov  %l2, %o0                                  
  } else {                                                            
    unsigned_num = (unsigned long) num;                               
  }                                                                   
                                                                      
  count = 0;                                                          
  while ((n = unsigned_num / base) > 0) {                             
 2005990:	92 10 00 10 	mov  %l0, %o1                                  
    toPrint[count++] = (char) (unsigned_num - (n * base));            
 2005994:	b4 26 80 08 	sub  %i2, %o0, %i2                             
  } else {                                                            
    unsigned_num = (unsigned long) num;                               
  }                                                                   
                                                                      
  count = 0;                                                          
  while ((n = unsigned_num / base) > 0) {                             
 2005998:	90 10 00 1c 	mov  %i4, %o0                                  
 200599c:	40 00 30 16 	call  20119f4 <.udiv>                          
 20059a0:	f4 2c 40 1b 	stb  %i2, [ %l1 + %i3 ]                        
 20059a4:	80 a2 20 00 	cmp  %o0, 0                                    
 20059a8:	12 bf ff f5 	bne  200597c <vprintk+0x160>                   
 20059ac:	b6 06 e0 01 	inc  %i3                                       
 20059b0:	b4 06 e0 01 	add  %i3, 1, %i2                               
    toPrint[count++] = (char) (unsigned_num - (n * base));            
    unsigned_num = n;                                                 
  }                                                                   
  toPrint[count++] = (char) unsigned_num;                             
 20059b4:	b6 07 80 1b 	add  %fp, %i3, %i3                             
                                                                      
  for (n=maxwidth ; n > count; n-- )                                  
 20059b8:	80 a7 40 1a 	cmp  %i5, %i2                                  
 20059bc:	08 80 00 0b 	bleu  20059e8 <vprintk+0x1cc>                  
 20059c0:	f8 2e ff e8 	stb  %i4, [ %i3 + -24 ]                        
 20059c4:	b8 15 20 5c 	or  %l4, 0x5c, %i4                             
    BSP_output_char(lead);                                            
 20059c8:	aa 0d 60 30 	and  %l5, 0x30, %l5                            
 20059cc:	c2 07 00 00 	ld  [ %i4 ], %g1                               
 20059d0:	9f c0 40 00 	call  %g1                                      
 20059d4:	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-- )                                  
 20059d8:	ba 07 7f ff 	add  %i5, -1, %i5                              
 20059dc:	80 a7 40 1a 	cmp  %i5, %i2                                  
 20059e0:	38 bf ff fc 	bgu,a   20059d0 <vprintk+0x1b4>                
 20059e4:	c2 07 00 00 	ld  [ %i4 ], %g1                               
    BSP_output_char(lead);                                            
                                                                      
  for (n = 0; n < count; n++) {                                       
 20059e8:	80 a6 a0 00 	cmp  %i2, 0                                    
 20059ec:	22 80 00 0f 	be,a   2005a28 <vprintk+0x20c>                 <== NEVER TAKEN
 20059f0:	c2 0e 20 01 	ldub  [ %i0 + 1 ], %g1                         <== NOT EXECUTED
    BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]); 
 20059f4:	ba 06 bf ff 	add  %i2, -1, %i5                              
 20059f8:	b8 15 20 5c 	or  %l4, 0x5c, %i4                             
 *  console is not yet initialized or in ISR's.                       
 *                                                                    
 * Arguments:                                                         
 *    as in printf: fmt - format string, ... - unnamed arguments.     
 */                                                                   
void vprintk(                                                         
 20059fc:	ba 04 40 1d 	add  %l1, %i5, %i5                             
 2005a00:	b6 15 a1 48 	or  %l6, 0x148, %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)])]); 
 2005a04:	c4 4f 40 00 	ldsb  [ %i5 ], %g2                             
 2005a08:	c2 07 00 00 	ld  [ %i4 ], %g1                               
 2005a0c:	d0 4e c0 02 	ldsb  [ %i3 + %g2 ], %o0                       
 2005a10:	9f c0 40 00 	call  %g1                                      
 2005a14:	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++) {                                       
 2005a18:	80 a7 40 13 	cmp  %i5, %l3                                  
 2005a1c:	32 bf ff fb 	bne,a   2005a08 <vprintk+0x1ec>                
 2005a20:	c4 4f 40 00 	ldsb  [ %i5 ], %g2                             
void vprintk(                                                         
  const char *fmt,                                                    
  va_list     ap                                                      
)                                                                     
{                                                                     
  for (; *fmt != '\0'; fmt++) {                                       
 2005a24:	c2 0e 20 01 	ldub  [ %i0 + 1 ], %g1                         
 2005a28:	83 28 60 18 	sll  %g1, 0x18, %g1                            
 2005a2c:	80 a0 60 00 	cmp  %g1, 0                                    
 2005a30:	12 bf ff 85 	bne  2005844 <vprintk+0x28>                    
 2005a34:	b0 06 20 01 	inc  %i0                                       
 2005a38:	81 c7 e0 08 	ret                                            
 2005a3c:	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' ) {                              
 2005a40:	22 bf ff be 	be,a   2005938 <vprintk+0x11c>                 
 2005a44:	82 10 20 01 	mov  1, %g1                                    
 2005a48:	80 a0 60 64 	cmp  %g1, 0x64                                 
 2005a4c:	22 bf ff bb 	be,a   2005938 <vprintk+0x11c>                 
 2005a50:	82 10 20 01 	mov  1, %g1                                    
      base = 10; sign = true;                                         
    } else if ( c == 'u' || c == 'U' ) {                              
 2005a54:	80 a0 60 55 	cmp  %g1, 0x55                                 
 2005a58:	22 80 00 8d 	be,a   2005c8c <vprintk+0x470>                 
 2005a5c:	82 10 20 00 	clr  %g1                                       
 2005a60:	80 a0 60 75 	cmp  %g1, 0x75                                 
 2005a64:	02 80 00 8a 	be  2005c8c <vprintk+0x470>                    
 2005a68:	82 10 20 00 	clr  %g1                                       
      base = 10; sign = false;                                        
    } else if ( c == 'x' || c == 'X' ) {                              
 2005a6c:	91 38 e0 18 	sra  %g3, 0x18, %o0                            
 2005a70:	80 a2 20 58 	cmp  %o0, 0x58                                 
 2005a74:	02 80 00 88 	be  2005c94 <vprintk+0x478>                    
 2005a78:	01 00 00 00 	nop                                            
 2005a7c:	80 a2 20 78 	cmp  %o0, 0x78                                 
 2005a80:	02 bf ff af 	be  200593c <vprintk+0x120>                    
 2005a84:	a0 10 20 10 	mov  0x10, %l0                                 
      base = 16; sign = false;                                        
    } else if ( c == 'p' ) {                                          
 2005a88:	80 a2 20 70 	cmp  %o0, 0x70                                 
 2005a8c:	02 bf ff ac 	be  200593c <vprintk+0x120>                    
 2005a90:	01 00 00 00 	nop                                            
      base = 16; sign = false; lflag = true;                          
    } else {                                                          
      BSP_output_char(c);                                             
 2005a94:	c2 05 20 5c 	ld  [ %l4 + 0x5c ], %g1                        
 2005a98:	9f c0 40 00 	call  %g1                                      
 2005a9c:	01 00 00 00 	nop                                            
void vprintk(                                                         
  const char *fmt,                                                    
  va_list     ap                                                      
)                                                                     
{                                                                     
  for (; *fmt != '\0'; fmt++) {                                       
 2005aa0:	c2 0e 20 01 	ldub  [ %i0 + 1 ], %g1                         
 2005aa4:	83 28 60 18 	sll  %g1, 0x18, %g1                            
 2005aa8:	80 a0 60 00 	cmp  %g1, 0                                    
 2005aac:	12 bf ff 66 	bne  2005844 <vprintk+0x28>                    
 2005ab0:	b0 06 20 01 	inc  %i0                                       
 2005ab4:	30 80 00 64 	b,a   2005c44 <vprintk+0x428>                  
      continue;                                                       
    }                                                                 
                                                                      
    /* must be a numeric format or something unsupported */           
    if ( c == 'o' || c == 'O' ) {                                     
      base = 8; sign = false;                                         
 2005ab8:	10 bf ff a1 	b  200593c <vprintk+0x120>                     
 2005abc:	a0 10 20 08 	mov  8, %l0                                    
      lead = '0';                                                     
      fmt++;                                                          
    }                                                                 
    if (*fmt == '-' ) {                                               
      minus = true;                                                   
      fmt++;                                                          
 2005ac0:	c2 08 a0 01 	ldub  [ %g2 + 1 ], %g1                         
    if (*fmt == '0' ) {                                               
      lead = '0';                                                     
      fmt++;                                                          
    }                                                                 
    if (*fmt == '-' ) {                                               
      minus = true;                                                   
 2005ac4:	a4 10 20 01 	mov  1, %l2                                    
      fmt++;                                                          
 2005ac8:	84 00 a0 01 	inc  %g2                                       
 2005acc:	10 bf ff 6e 	b  2005884 <vprintk+0x68>                      
 2005ad0:	87 28 60 18 	sll  %g1, 0x18, %g3                            
      continue;                                                       
    }                                                                 
    fmt++;                                                            
    if (*fmt == '0' ) {                                               
      lead = '0';                                                     
      fmt++;                                                          
 2005ad4:	84 06 20 02 	add  %i0, 2, %g2                               
      BSP_output_char(*fmt);                                          
      continue;                                                       
    }                                                                 
    fmt++;                                                            
    if (*fmt == '0' ) {                                               
      lead = '0';                                                     
 2005ad8:	aa 10 20 30 	mov  0x30, %l5                                 
 2005adc:	10 bf ff 66 	b  2005874 <vprintk+0x58>                      
 2005ae0:	87 28 60 18 	sll  %g1, 0x18, %g3                            
      fmt++;                                                          
    }                                                                 
                                                                      
    if ((c = *fmt) == 'l') {                                          
      lflag = true;                                                   
      c = *++fmt;                                                     
 2005ae4:	c2 0e 20 01 	ldub  [ %i0 + 1 ], %g1                         
 2005ae8:	87 28 60 18 	sll  %g1, 0x18, %g3                            
    }                                                                 
    if ( c == 'c' ) {                                                 
 2005aec:	83 38 e0 18 	sra  %g3, 0x18, %g1                            
 2005af0:	80 a0 60 63 	cmp  %g1, 0x63                                 
 2005af4:	12 bf ff 82 	bne  20058fc <vprintk+0xe0>                    <== ALWAYS TAKEN
 2005af8:	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);                              
 2005afc:	d0 06 40 00 	ld  [ %i1 ], %o0                               <== NOT EXECUTED
      BSP_output_char(chr);                                           
 2005b00:	c2 05 20 5c 	ld  [ %l4 + 0x5c ], %g1                        
 2005b04:	91 2a 20 18 	sll  %o0, 0x18, %o0                            
 2005b08:	9f c0 40 00 	call  %g1                                      
 2005b0c:	91 3a 20 18 	sra  %o0, 0x18, %o0                            
void vprintk(                                                         
  const char *fmt,                                                    
  va_list     ap                                                      
)                                                                     
{                                                                     
  for (; *fmt != '\0'; fmt++) {                                       
 2005b10:	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);                              
 2005b14:	b2 06 60 04 	add  %i1, 4, %i1                               
void vprintk(                                                         
  const char *fmt,                                                    
  va_list     ap                                                      
)                                                                     
{                                                                     
  for (; *fmt != '\0'; fmt++) {                                       
 2005b18:	83 28 60 18 	sll  %g1, 0x18, %g1                            
 2005b1c:	80 a0 60 00 	cmp  %g1, 0                                    
 2005b20:	12 bf ff 49 	bne  2005844 <vprintk+0x28>                    <== ALWAYS TAKEN
 2005b24:	b0 06 20 01 	inc  %i0                                       
 2005b28:	30 80 00 47 	b,a   2005c44 <vprintk+0x428>                  <== NOT EXECUTED
    }                                                                 
    if ( c == 's' ) {                                                 
      unsigned i, len;                                                
      char *s, *str;                                                  
                                                                      
      str = va_arg(ap, char *);                                       
 2005b2c:	f6 06 40 00 	ld  [ %i1 ], %i3                               
                                                                      
      if ( str == NULL ) {                                            
 2005b30:	80 a6 e0 00 	cmp  %i3, 0                                    
 2005b34:	02 80 00 5a 	be  2005c9c <vprintk+0x480>                    
 2005b38:	b2 06 60 04 	add  %i1, 4, %i1                               
        str = "";                                                     
      }                                                               
                                                                      
      /* calculate length of string */                                
      for ( len=0, s=str ; *s ; len++, s++ )                          
 2005b3c:	c2 4e c0 00 	ldsb  [ %i3 ], %g1                             
 2005b40:	80 a0 60 00 	cmp  %g1, 0                                    
 2005b44:	02 80 00 08 	be  2005b64 <vprintk+0x348>                    
 2005b48:	b4 10 20 00 	clr  %i2                                       
 2005b4c:	82 10 00 1b 	mov  %i3, %g1                                  
 2005b50:	82 00 60 01 	inc  %g1                                       
 2005b54:	c4 48 40 00 	ldsb  [ %g1 ], %g2                             
 2005b58:	80 a0 a0 00 	cmp  %g2, 0                                    
 2005b5c:	12 bf ff fd 	bne  2005b50 <vprintk+0x334>                   
 2005b60:	b4 06 a0 01 	inc  %i2                                       
        ;                                                             
                                                                      
      /* leading spaces */                                            
      if ( !minus )                                                   
 2005b64:	a4 8c a0 ff 	andcc  %l2, 0xff, %l2                          
 2005b68:	12 80 00 0f 	bne  2005ba4 <vprintk+0x388>                   
 2005b6c:	80 a7 60 00 	cmp  %i5, 0                                    
        for ( i=len ; i<width ; i++ )                                 
 2005b70:	80 a7 40 1a 	cmp  %i5, %i2                                  
 2005b74:	08 80 00 0c 	bleu  2005ba4 <vprintk+0x388>                  
 2005b78:	80 a7 60 00 	cmp  %i5, 0                                    
 2005b7c:	a0 10 00 1a 	mov  %i2, %l0                                  
 2005b80:	b8 15 20 5c 	or  %l4, 0x5c, %i4                             
          BSP_output_char(' ');                                       
 2005b84:	c2 07 00 00 	ld  [ %i4 ], %g1                               
 2005b88:	9f c0 40 00 	call  %g1                                      
 2005b8c:	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++ )                                 
 2005b90:	a0 04 20 01 	inc  %l0                                       
 2005b94:	80 a7 40 10 	cmp  %i5, %l0                                  
 2005b98:	38 bf ff fc 	bgu,a   2005b88 <vprintk+0x36c>                
 2005b9c:	c2 07 00 00 	ld  [ %i4 ], %g1                               
          BSP_output_char(' ');                                       
                                                                      
      /* no width option */                                           
      if (width == 0) {                                               
 2005ba0:	80 a7 60 00 	cmp  %i5, 0                                    
 2005ba4:	32 80 00 07 	bne,a   2005bc0 <vprintk+0x3a4>                
 2005ba8:	d0 4e c0 00 	ldsb  [ %i3 ], %o0                             
          width = len;                                                
      }                                                               
                                                                      
      /* output the string */                                         
      for ( i=0 ; i<width && *str ; str++ )                           
 2005bac:	80 a6 a0 00 	cmp  %i2, 0                                    
 2005bb0:	02 80 00 13 	be  2005bfc <vprintk+0x3e0>                    
 2005bb4:	80 a4 a0 00 	cmp  %l2, 0                                    
 2005bb8:	ba 10 00 1a 	mov  %i2, %i5                                  
 2005bbc:	d0 4e c0 00 	ldsb  [ %i3 ], %o0                             
 2005bc0:	80 a2 20 00 	cmp  %o0, 0                                    
 2005bc4:	02 80 00 0d 	be  2005bf8 <vprintk+0x3dc>                    <== NEVER TAKEN
 2005bc8:	c2 05 20 5c 	ld  [ %l4 + 0x5c ], %g1                        
        BSP_output_char(*str);                                        
 2005bcc:	9f c0 40 00 	call  %g1                                      
 2005bd0:	b8 15 20 5c 	or  %l4, 0x5c, %i4                             
      if (width == 0) {                                               
          width = len;                                                
      }                                                               
                                                                      
      /* output the string */                                         
      for ( i=0 ; i<width && *str ; str++ )                           
 2005bd4:	10 80 00 05 	b  2005be8 <vprintk+0x3cc>                     
 2005bd8:	b6 06 e0 01 	inc  %i3                                       
        BSP_output_char(*str);                                        
 2005bdc:	c2 07 00 00 	ld  [ %i4 ], %g1                               
 2005be0:	9f c0 40 00 	call  %g1                                      
 2005be4:	01 00 00 00 	nop                                            
      if (width == 0) {                                               
          width = len;                                                
      }                                                               
                                                                      
      /* output the string */                                         
      for ( i=0 ; i<width && *str ; str++ )                           
 2005be8:	d0 4e c0 00 	ldsb  [ %i3 ], %o0                             
 2005bec:	80 a2 20 00 	cmp  %o0, 0                                    
 2005bf0:	12 bf ff fb 	bne  2005bdc <vprintk+0x3c0>                   
 2005bf4:	b6 06 e0 01 	inc  %i3                                       
        BSP_output_char(*str);                                        
                                                                      
      /* trailing spaces */                                           
      if ( minus )                                                    
 2005bf8:	80 a4 a0 00 	cmp  %l2, 0                                    
 2005bfc:	22 bf ff 8b 	be,a   2005a28 <vprintk+0x20c>                 
 2005c00:	c2 0e 20 01 	ldub  [ %i0 + 1 ], %g1                         
        for ( i=len ; i<width ; i++ )                                 
 2005c04:	80 a6 80 1d 	cmp  %i2, %i5                                  
 2005c08:	3a bf ff 88 	bcc,a   2005a28 <vprintk+0x20c>                
 2005c0c:	c2 0e 20 01 	ldub  [ %i0 + 1 ], %g1                         
 2005c10:	b8 15 20 5c 	or  %l4, 0x5c, %i4                             
          BSP_output_char(' ');                                       
 2005c14:	c2 07 00 00 	ld  [ %i4 ], %g1                               
 2005c18:	9f c0 40 00 	call  %g1                                      
 2005c1c:	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++ )                                 
 2005c20:	b4 06 a0 01 	inc  %i2                                       
 2005c24:	80 a6 80 1d 	cmp  %i2, %i5                                  
 2005c28:	2a bf ff fc 	bcs,a   2005c18 <vprintk+0x3fc>                
 2005c2c:	c2 07 00 00 	ld  [ %i4 ], %g1                               
void vprintk(                                                         
  const char *fmt,                                                    
  va_list     ap                                                      
)                                                                     
{                                                                     
  for (; *fmt != '\0'; fmt++) {                                       
 2005c30:	c2 0e 20 01 	ldub  [ %i0 + 1 ], %g1                         
 2005c34:	83 28 60 18 	sll  %g1, 0x18, %g1                            
 2005c38:	80 a0 60 00 	cmp  %g1, 0                                    
 2005c3c:	12 bf ff 02 	bne  2005844 <vprintk+0x28>                    <== ALWAYS TAKEN
 2005c40:	b0 06 20 01 	inc  %i0                                       
 2005c44:	81 c7 e0 08 	ret                                            
 2005c48:	81 e8 00 00 	restore                                        
  unsigned long n;                                                    
  unsigned count;                                                     
  char toPrint[20];                                                   
                                                                      
  if ( sign && (num <  0) ) {                                         
    BSP_output_char('-');                                             
 2005c4c:	9f c0 40 00 	call  %g1                                      
 2005c50:	90 10 20 2d 	mov  0x2d, %o0                                 
    unsigned_num = (unsigned long) -num;                              
    if (maxwidth) maxwidth--;                                         
 2005c54:	80 a0 00 1d 	cmp  %g0, %i5                                  
  unsigned count;                                                     
  char toPrint[20];                                                   
                                                                      
  if ( sign && (num <  0) ) {                                         
    BSP_output_char('-');                                             
    unsigned_num = (unsigned long) -num;                              
 2005c58:	b4 20 00 1a 	neg  %i2                                       
    if (maxwidth) maxwidth--;                                         
 2005c5c:	ba 67 60 00 	subx  %i5, 0, %i5                              
  } else {                                                            
    unsigned_num = (unsigned long) num;                               
  }                                                                   
                                                                      
  count = 0;                                                          
  while ((n = unsigned_num / base) > 0) {                             
 2005c60:	90 10 00 1a 	mov  %i2, %o0                                  
 2005c64:	92 10 00 10 	mov  %l0, %o1                                  
 2005c68:	40 00 2f 63 	call  20119f4 <.udiv>                          
 2005c6c:	a4 10 00 10 	mov  %l0, %l2                                  
 2005c70:	b8 92 20 00 	orcc  %o0, 0, %i4                              
 2005c74:	12 bf ff 44 	bne  2005984 <vprintk+0x168>                   <== ALWAYS TAKEN
 2005c78:	b6 10 20 00 	clr  %i3                                       
 2005c7c:	b8 10 00 1a 	mov  %i2, %i4                                  <== NOT EXECUTED
    if (maxwidth) maxwidth--;                                         
  } else {                                                            
    unsigned_num = (unsigned long) num;                               
  }                                                                   
                                                                      
  count = 0;                                                          
 2005c80:	b6 10 20 00 	clr  %i3                                       <== NOT EXECUTED
  while ((n = unsigned_num / base) > 0) {                             
 2005c84:	10 bf ff 4c 	b  20059b4 <vprintk+0x198>                     
 2005c88:	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;                                        
 2005c8c:	10 bf ff 2c 	b  200593c <vprintk+0x120>                     
 2005c90:	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;                          
 2005c94:	10 bf ff 2a 	b  200593c <vprintk+0x120>                     
 2005c98:	a0 10 20 10 	mov  0x10, %l0                                 
      char *s, *str;                                                  
                                                                      
      str = va_arg(ap, char *);                                       
                                                                      
      if ( str == NULL ) {                                            
        str = "";                                                     
 2005c9c:	10 bf ff a8 	b  2005b3c <vprintk+0x320>                     
 2005ca0:	b6 15 e0 08 	or  %l7, 8, %i3                                
                                                                      

020135f4 <write>: ssize_t write( int fd, const void *buffer, size_t count ) {
 20135f4:	9d e3 bf a0 	save  %sp, -96, %sp                            
  ssize_t  rc;                                                        
  rtems_libio_t     *iop;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
 20135f8:	03 00 80 52 	sethi  %hi(0x2014800), %g1                     
 20135fc:	c2 00 63 9c 	ld  [ %g1 + 0x39c ], %g1	! 2014b9c <rtems_libio_number_iops>
 2013600:	80 a6 00 01 	cmp  %i0, %g1                                  
 2013604:	1a 80 00 1e 	bcc  201367c <write+0x88>                      
 2013608:	03 00 80 55 	sethi  %hi(0x2015400), %g1                     
  iop = rtems_libio_iop( fd );                                        
 201360c:	fa 00 61 64 	ld  [ %g1 + 0x164 ], %i5	! 2015564 <rtems_libio_iops>
 2013610:	b1 2e 20 06 	sll  %i0, 6, %i0                               
 2013614:	ba 07 40 18 	add  %i5, %i0, %i5                             
  rtems_libio_check_is_open( iop );                                   
 2013618:	c2 07 60 18 	ld  [ %i5 + 0x18 ], %g1                        
 201361c:	80 88 61 00 	btst  0x100, %g1                               
 2013620:	02 80 00 17 	be  201367c <write+0x88>                       
 2013624:	80 a6 60 00 	cmp  %i1, 0                                    
  rtems_libio_check_buffer( buffer );                                 
 2013628:	02 80 00 1b 	be  2013694 <write+0xa0>                       <== NEVER TAKEN
 201362c:	80 a6 a0 00 	cmp  %i2, 0                                    
  rtems_libio_check_count( count );                                   
 2013630:	02 80 00 11 	be  2013674 <write+0x80>                       
 2013634:	b0 10 20 00 	clr  %i0                                       
  rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );            
 2013638:	80 88 60 04 	btst  4, %g1                                   
 201363c:	02 80 00 16 	be  2013694 <write+0xa0>                       
 2013640:	90 10 00 1d 	mov  %i5, %o0                                  
                                                                      
  /*                                                                  
   *  Now process the write() request.                                
   */                                                                 
  rc = (*iop->pathinfo.handlers->write_h)( iop, buffer, count );      
 2013644:	c2 07 60 24 	ld  [ %i5 + 0x24 ], %g1                        
 2013648:	c2 00 60 0c 	ld  [ %g1 + 0xc ], %g1                         
 201364c:	92 10 00 19 	mov  %i1, %o1                                  
 2013650:	9f c0 40 00 	call  %g1                                      
 2013654:	94 10 00 1a 	mov  %i2, %o2                                  
                                                                      
  if ( rc > 0 )                                                       
 2013658:	b0 92 20 00 	orcc  %o0, 0, %i0                              
 201365c:	04 80 00 06 	ble  2013674 <write+0x80>                      
 2013660:	85 3e 20 1f 	sra  %i0, 0x1f, %g2                            
    iop->offset += rc;                                                
 2013664:	d8 1f 60 10 	ldd  [ %i5 + 0x10 ], %o4                       
 2013668:	86 83 40 18 	addcc  %o5, %i0, %g3                           
 201366c:	84 43 00 02 	addx  %o4, %g2, %g2                            
 2013670:	c4 3f 60 10 	std  %g2, [ %i5 + 0x10 ]                       
                                                                      
  return rc;                                                          
}                                                                     
 2013674:	81 c7 e0 08 	ret                                            
 2013678:	81 e8 00 00 	restore                                        
  ssize_t  rc;                                                        
  rtems_libio_t     *iop;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
  iop = rtems_libio_iop( fd );                                        
  rtems_libio_check_is_open( iop );                                   
 201367c:	7f ff ea ea 	call  200e224 <__errno>                        
 2013680:	b0 10 3f ff 	mov  -1, %i0                                   
 2013684:	82 10 20 09 	mov  9, %g1                                    
 2013688:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 201368c:	81 c7 e0 08 	ret                                            
 2013690:	81 e8 00 00 	restore                                        
  rtems_libio_check_buffer( buffer );                                 
  rtems_libio_check_count( count );                                   
  rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );            
 2013694:	7f ff ea e4 	call  200e224 <__errno>                        
 2013698:	b0 10 3f ff 	mov  -1, %i0                                   
 201369c:	82 10 20 16 	mov  0x16, %g1                                 
 20136a0:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 20136a4:	81 c7 e0 08 	ret                                            
 20136a8:	81 e8 00 00 	restore                                        
                                                                      

02006ff4 <writev>: ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) {
 2006ff4:	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 );                                         
 2006ff8:	03 00 80 59 	sethi  %hi(0x2016400), %g1                     
 2006ffc:	c2 00 62 3c 	ld  [ %g1 + 0x23c ], %g1	! 201663c <rtems_libio_number_iops>
 2007000:	80 a6 00 01 	cmp  %i0, %g1                                  
 2007004:	1a 80 00 57 	bcc  2007160 <writev+0x16c>                    
 2007008:	03 00 80 5c 	sethi  %hi(0x2017000), %g1                     
  iop = rtems_libio_iop( fd );                                        
 200700c:	f6 00 60 04 	ld  [ %g1 + 4 ], %i3	! 2017004 <rtems_libio_iops>
 2007010:	b1 2e 20 06 	sll  %i0, 6, %i0                               
 2007014:	b6 06 c0 18 	add  %i3, %i0, %i3                             
  rtems_libio_check_is_open( iop );                                   
 2007018:	c2 06 e0 18 	ld  [ %i3 + 0x18 ], %g1                        
 200701c:	80 88 61 00 	btst  0x100, %g1                               
 2007020:	02 80 00 50 	be  2007160 <writev+0x16c>                     
 2007024:	80 88 60 04 	btst  4, %g1                                   
  rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );            
 2007028:	02 80 00 48 	be  2007148 <writev+0x154>                     <== NEVER TAKEN
 200702c:	80 a6 60 00 	cmp  %i1, 0                                    
                                                                      
  /*                                                                  
   *  Argument validation on IO vector                                
   */                                                                 
  if ( !iov )                                                         
 2007030:	02 80 00 46 	be  2007148 <writev+0x154>                     
 2007034:	80 a6 a0 00 	cmp  %i2, 0                                    
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt <= 0 )                                                  
 2007038:	04 80 00 44 	ble  2007148 <writev+0x154>                    
 200703c:	80 a6 a4 00 	cmp  %i2, 0x400                                
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt > IOV_MAX )                                             
 2007040:	14 80 00 42 	bg  2007148 <writev+0x154>                     <== NEVER TAKEN
 2007044:	1f 00 00 1f 	sethi  %hi(0x7c00), %o7                        
#include <sys/uio.h>                                                  
                                                                      
#include <rtems/libio_.h>                                             
#include <rtems/seterr.h>                                             
                                                                      
ssize_t writev(                                                       
 2007048:	b5 2e a0 03 	sll  %i2, 3, %i2                               
 200704c:	82 10 20 00 	clr  %g1                                       
 2007050:	b8 10 20 01 	mov  1, %i4                                    
 2007054:	86 10 20 00 	clr  %g3                                       
 2007058:	9e 13 e3 ff 	or  %o7, 0x3ff, %o7                            
                                                                      
    /*                                                                
     *  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 )                                       
 200705c:	c4 06 40 01 	ld  [ %i1 + %g1 ], %g2                         
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    if ( iov[v].iov_len )                                             
 2007060:	ba 06 40 01 	add  %i1, %g1, %i5                             
                                                                      
    /*                                                                
     *  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 )                                       
 2007064:	80 a0 a0 00 	cmp  %g2, 0                                    
 2007068:	02 80 00 38 	be  2007148 <writev+0x154>                     
 200706c:	88 10 20 01 	mov  1, %g4                                    
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    if ( iov[v].iov_len )                                             
 2007070:	c4 07 60 04 	ld  [ %i5 + 4 ], %g2                           
      all_zeros = false;                                              
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
    if ( total < old || total > SSIZE_MAX )                           
 2007074:	ba 10 20 01 	mov  1, %i5                                    
     */                                                               
    if ( iov[v].iov_base == 0 )                                       
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    if ( iov[v].iov_len )                                             
      all_zeros = false;                                              
 2007078:	80 a0 00 02 	cmp  %g0, %g2                                  
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
 200707c:	84 00 80 03 	add  %g2, %g3, %g2                             
     */                                                               
    if ( iov[v].iov_base == 0 )                                       
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    if ( iov[v].iov_len )                                             
      all_zeros = false;                                              
 2007080:	b0 40 3f ff 	addx  %g0, -1, %i0                             
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
    if ( total < old || total > SSIZE_MAX )                           
 2007084:	80 a0 80 0f 	cmp  %g2, %o7                                  
 2007088:	14 80 00 03 	bg  2007094 <writev+0xa0>                      <== NEVER TAKEN
 200708c:	b8 0f 00 18 	and  %i4, %i0, %i4                             
 2007090:	88 10 20 00 	clr  %g4                                       
 2007094:	80 89 20 ff 	btst  0xff, %g4                                
 2007098:	12 80 00 2c 	bne  2007148 <writev+0x154>                    <== NEVER TAKEN
 200709c:	80 a0 c0 02 	cmp  %g3, %g2                                  
 20070a0:	24 80 00 02 	ble,a   20070a8 <writev+0xb4>                  
 20070a4:	ba 10 20 00 	clr  %i5                                       
 20070a8:	80 8f 60 ff 	btst  0xff, %i5                                
 20070ac:	12 80 00 27 	bne  2007148 <writev+0x154>                    
 20070b0:	82 00 60 08 	add  %g1, 8, %g1                               
   *  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++ ) {                    
 20070b4:	80 a0 40 1a 	cmp  %g1, %i2                                  
 20070b8:	32 bf ff e9 	bne,a   200705c <writev+0x68>                  
 20070bc:	86 10 00 02 	mov  %g2, %g3                                  
  }                                                                   
                                                                      
  /*                                                                  
   * A writev with all zeros is supposed to have no effect per OpenGroup.
   */                                                                 
  if ( all_zeros == true ) {                                          
 20070c0:	80 8f 20 ff 	btst  0xff, %i4                                
 20070c4:	12 80 00 1f 	bne  2007140 <writev+0x14c>                    
 20070c8:	b0 10 20 00 	clr  %i0                                       
 20070cc:	10 80 00 05 	b  20070e0 <writev+0xec>                       
 20070d0:	ba 10 20 00 	clr  %i5                                       
  }                                                                   
                                                                      
  /*                                                                  
   *  Now process the writev().                                       
   */                                                                 
  for ( total=0, v=0 ; v < iovcnt ; v++ ) {                           
 20070d4:	80 a7 40 1a 	cmp  %i5, %i2                                  
 20070d8:	02 80 00 26 	be  2007170 <writev+0x17c>                     
 20070dc:	01 00 00 00 	nop                                            
#include <sys/uio.h>                                                  
                                                                      
#include <rtems/libio_.h>                                             
#include <rtems/seterr.h>                                             
                                                                      
ssize_t writev(                                                       
 20070e0:	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 )                                        
 20070e4:	d4 07 20 04 	ld  [ %i4 + 4 ], %o2                           
 20070e8:	80 a2 a0 00 	cmp  %o2, 0                                    
 20070ec:	22 bf ff fa 	be,a   20070d4 <writev+0xe0>                   <== NEVER TAKEN
 20070f0:	ba 07 60 08 	add  %i5, 8, %i5                               <== NOT EXECUTED
      continue;                                                       
                                                                      
    bytes = (*iop->pathinfo.handlers->write_h)(                       
 20070f4:	c2 06 e0 24 	ld  [ %i3 + 0x24 ], %g1                        
 20070f8:	d2 06 40 1d 	ld  [ %i1 + %i5 ], %o1                         
 20070fc:	c2 00 60 0c 	ld  [ %g1 + 0xc ], %g1                         
 2007100:	9f c0 40 00 	call  %g1                                      
 2007104:	90 10 00 1b 	mov  %i3, %o0                                  
      iop,                                                            
      iov[v].iov_base,                                                
      iov[v].iov_len                                                  
    );                                                                
                                                                      
    if ( bytes < 0 )                                                  
 2007108:	80 a2 20 00 	cmp  %o0, 0                                    
 200710c:	06 80 00 1b 	bl  2007178 <writev+0x184>                     <== NEVER TAKEN
 2007110:	01 00 00 00 	nop                                            
      return -1;                                                      
                                                                      
    if ( bytes > 0 ) {                                                
 2007114:	02 80 00 07 	be  2007130 <writev+0x13c>                     <== NEVER TAKEN
 2007118:	a1 3a 20 1f 	sra  %o0, 0x1f, %l0                            
      iop->offset += bytes;                                           
 200711c:	c4 1e e0 10 	ldd  [ %i3 + 0x10 ], %g2                       
 2007120:	86 80 c0 08 	addcc  %g3, %o0, %g3                           
      total       += bytes;                                           
 2007124:	b0 06 00 08 	add  %i0, %o0, %i0                             
                                                                      
    if ( bytes < 0 )                                                  
      return -1;                                                      
                                                                      
    if ( bytes > 0 ) {                                                
      iop->offset += bytes;                                           
 2007128:	84 40 80 10 	addx  %g2, %l0, %g2                            
 200712c:	c4 3e e0 10 	std  %g2, [ %i3 + 0x10 ]                       
      total       += bytes;                                           
    }                                                                 
                                                                      
    if (bytes != iov[ v ].iov_len)                                    
 2007130:	c2 07 20 04 	ld  [ %i4 + 4 ], %g1                           
 2007134:	80 a2 00 01 	cmp  %o0, %g1                                  
 2007138:	02 bf ff e7 	be  20070d4 <writev+0xe0>                      <== ALWAYS TAKEN
 200713c:	ba 07 60 08 	add  %i5, 8, %i5                               
      break;                                                          
  }                                                                   
                                                                      
  return total;                                                       
}                                                                     
 2007140:	81 c7 e0 08 	ret                                            
 2007144:	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 );                 
 2007148:	40 00 20 26 	call  200f1e0 <__errno>                        
 200714c:	b0 10 3f ff 	mov  -1, %i0                                   
 2007150:	82 10 20 16 	mov  0x16, %g1                                 
 2007154:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2007158:	81 c7 e0 08 	ret                                            
 200715c:	81 e8 00 00 	restore                                        
  ssize_t        old;                                                 
  bool           all_zeros;                                           
                                                                      
  rtems_libio_check_fd( fd );                                         
  iop = rtems_libio_iop( fd );                                        
  rtems_libio_check_is_open( iop );                                   
 2007160:	40 00 20 20 	call  200f1e0 <__errno>                        
 2007164:	b0 10 3f ff 	mov  -1, %i0                                   
 2007168:	82 10 20 09 	mov  9, %g1                                    
 200716c:	c2 22 00 00 	st  %g1, [ %o0 ]                               
 2007170:	81 c7 e0 08 	ret                                            
 2007174:	81 e8 00 00 	restore                                        
    if (bytes != iov[ v ].iov_len)                                    
      break;                                                          
  }                                                                   
                                                                      
  return total;                                                       
}                                                                     
 2007178:	81 c7 e0 08 	ret                                            <== NOT EXECUTED
 200717c:	91 e8 3f ff 	restore  %g0, -1, %o0                          <== NOT EXECUTED