RTEMS 4.11
Annotated Report
Mon Mar 21 01:57:39 2011

0800723c <IMFS_Set_handlers>: #define MAXSYMLINK 5 int IMFS_Set_handlers( rtems_filesystem_location_info_t *loc ) {
 800723c:	37 9c ff f0 	addi sp,sp,-16                                 
 8007240:	5b 8b 00 10 	sw (sp+16),r11                                 
 8007244:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8007248:	5b 8d 00 08 	sw (sp+8),r13                                  
 800724c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8007250:	b8 20 58 00 	mv r11,r1                                      
  IMFS_jnode_t    *node = loc->node_access;                           
  IMFS_fs_info_t  *fs_info;                                           
                                                                      
  fs_info = loc->mt_entry->fs_info;                                   
 8007254:	28 21 00 10 	lw r1,(r1+16)                                  
  switch( node->type ) {                                              
 8007258:	34 02 00 06 	mvi r2,6                                       
)                                                                     
{                                                                     
  IMFS_jnode_t    *node = loc->node_access;                           
  IMFS_fs_info_t  *fs_info;                                           
                                                                      
  fs_info = loc->mt_entry->fs_info;                                   
 800725c:	28 2c 00 34 	lw r12,(r1+52)                                 
  switch( node->type ) {                                              
 8007260:	29 61 00 00 	lw r1,(r11+0)                                  
 8007264:	28 21 00 4c 	lw r1,(r1+76)                                  
 8007268:	34 21 ff ff 	addi r1,r1,-1                                  
 800726c:	54 22 00 14 	bgu r1,r2,80072bc <IMFS_Set_handlers+0x80>     <== NEVER TAKEN
 8007270:	78 0d 08 01 	mvhi r13,0x801                                 
 8007274:	34 02 00 02 	mvi r2,2                                       
 8007278:	f8 00 25 84 	calli 8010888 <__ashlsi3>                      
 800727c:	39 ad 1e 6c 	ori r13,r13,0x1e6c                             
 8007280:	b5 a1 08 00 	add r1,r13,r1                                  
 8007284:	28 21 00 00 	lw r1,(r1+0)                                   
 8007288:	c0 20 00 00 	b r1                                           
    case IMFS_DIRECTORY:                                              
      loc->handlers = fs_info->directory_handlers;                    
 800728c:	29 81 00 0c 	lw r1,(r12+12)                                 
 8007290:	e0 00 00 0a 	bi 80072b8 <IMFS_Set_handlers+0x7c>            
      break;                                                          
    case IMFS_DEVICE:                                                 
      loc->handlers = &IMFS_device_handlers;                          
 8007294:	78 01 08 01 	mvhi r1,0x801                                  
 8007298:	38 21 1e 98 	ori r1,r1,0x1e98                               
 800729c:	e0 00 00 07 	bi 80072b8 <IMFS_Set_handlers+0x7c>            
      break;                                                          
    case IMFS_SYM_LINK:                                               
    case IMFS_HARD_LINK:                                              
      loc->handlers = &IMFS_link_handlers;                            
 80072a0:	78 01 08 01 	mvhi r1,0x801                                  
 80072a4:	38 21 1f 08 	ori r1,r1,0x1f08                               
 80072a8:	e0 00 00 04 	bi 80072b8 <IMFS_Set_handlers+0x7c>            
      break;                                                          
    case IMFS_LINEAR_FILE:                                            
      loc->handlers = fs_info->memfile_handlers;                      
      break;                                                          
    case IMFS_MEMORY_FILE:                                            
      loc->handlers = fs_info->memfile_handlers;                      
 80072ac:	29 81 00 08 	lw r1,(r12+8)                                  
 80072b0:	e0 00 00 02 	bi 80072b8 <IMFS_Set_handlers+0x7c>            
      break;                                                          
    case IMFS_FIFO:                                                   
      loc->handlers = fs_info->fifo_handlers;                         
 80072b4:	29 81 00 10 	lw r1,(r12+16)                                 
 80072b8:	59 61 00 08 	sw (r11+8),r1                                  
      break;                                                          
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
 80072bc:	34 01 00 00 	mvi r1,0                                       
 80072c0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80072c4:	2b 8b 00 10 	lw r11,(sp+16)                                 
 80072c8:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 80072cc:	2b 8d 00 08 	lw r13,(sp+8)                                  
 80072d0:	37 9c 00 10 	addi sp,sp,16                                  
 80072d4:	c3 a0 00 00 	ret                                            
                                                                      

080070a0 <IMFS_create_node>: IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) {
 80070a0:	37 9c ff e8 	addi sp,sp,-24                                 
 80070a4:	5b 8b 00 18 	sw (sp+24),r11                                 
 80070a8:	5b 8c 00 14 	sw (sp+20),r12                                 
 80070ac:	5b 8d 00 10 	sw (sp+16),r13                                 
 80070b0:	5b 8e 00 0c 	sw (sp+12),r14                                 
 80070b4:	5b 8f 00 08 	sw (sp+8),r15                                  
 80070b8:	5b 9d 00 04 	sw (sp+4),ra                                   
                                                                      
  /*                                                                  
   *  MUST have a parent node to call this routine.                   
   */                                                                 
  if ( parent_loc == NULL )                                           
    return NULL;                                                      
 80070bc:	34 0b 00 00 	mvi r11,0                                      
  IMFS_jnode_types_t                type,                             
  const char                       *name,                             
  mode_t                            mode,                             
  const IMFS_types_union           *info                              
)                                                                     
{                                                                     
 80070c0:	b8 40 60 00 	mv r12,r2                                      
 80070c4:	b8 a0 68 00 	mv r13,r5                                      
 80070c8:	b8 60 10 00 	mv r2,r3                                       
  IMFS_fs_info_t      *fs_info;                                       
                                                                      
  /*                                                                  
   *  MUST have a parent node to call this routine.                   
   */                                                                 
  if ( parent_loc == NULL )                                           
 80070cc:	44 20 00 43 	be r1,r0,80071d8 <IMFS_create_node+0x138>      <== NEVER TAKEN
    return NULL;                                                      
                                                                      
  parent = parent_loc->node_access;                                   
 80070d0:	28 2f 00 00 	lw r15,(r1+0)                                  
  fs_info = parent_loc->mt_entry->fs_info;                            
 80070d4:	28 21 00 10 	lw r1,(r1+16)                                  
 80070d8:	28 2e 00 34 	lw r14,(r1+52)                                 
                                                                      
  /*                                                                  
   *  Reject creation of FIFOs if support is disabled.                
   */                                                                 
  if ( type == IMFS_FIFO &&                                           
 80070dc:	34 01 00 07 	mvi r1,7                                       
 80070e0:	5d 81 00 05 	bne r12,r1,80070f4 <IMFS_create_node+0x54>     
 80070e4:	29 c1 00 10 	lw r1,(r14+16)                                 
 80070e8:	78 05 08 01 	mvhi r5,0x801                                  
 80070ec:	38 a5 1e 04 	ori r5,r5,0x1e04                               
 80070f0:	44 25 00 3a 	be r1,r5,80071d8 <IMFS_create_node+0x138>      
    return NULL;                                                      
                                                                      
  /*                                                                  
   *  Allocate filesystem node and fill in basic information          
   */                                                                 
  node  = IMFS_allocate_node( type, name, mode & ~rtems_filesystem_umask );
 80070f4:	78 05 08 01 	mvhi r5,0x801                                  
 80070f8:	38 a5 31 4c 	ori r5,r5,0x314c                               
 80070fc:	28 a1 00 00 	lw r1,(r5+0)                                   
 8007100:	28 23 00 2c 	lw r3,(r1+44)                                  
 8007104:	b9 80 08 00 	mv r1,r12                                      
 8007108:	a4 60 18 00 	not r3,r3                                      
 800710c:	a0 83 18 00 	and r3,r4,r3                                   
 8007110:	fb ff ff bd 	calli 8007004 <IMFS_allocate_node>             
 8007114:	b8 20 58 00 	mv r11,r1                                      
  if ( !node )                                                        
 8007118:	44 20 00 30 	be r1,r0,80071d8 <IMFS_create_node+0x138>      
    return NULL;                                                      
                                                                      
  /*                                                                  
   *  Set the type specific information                               
   */                                                                 
  if ( type == IMFS_DIRECTORY ) {                                     
 800711c:	34 01 00 01 	mvi r1,1                                       
 8007120:	5d 81 00 07 	bne r12,r1,800713c <IMFS_create_node+0x9c>     
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 );                        
 8007124:	35 61 00 54 	addi r1,r11,84                                 
                                                                      
  head->next = tail;                                                  
 8007128:	59 61 00 50 	sw (r11+80),r1                                 
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
 800712c:	35 61 00 50 	addi r1,r11,80                                 
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
 8007130:	59 60 00 54 	sw (r11+84),r0                                 
  tail->previous = head;                                              
 8007134:	59 61 00 58 	sw (r11+88),r1                                 
 8007138:	e0 00 00 20 	bi 80071b8 <IMFS_create_node+0x118>            
    rtems_chain_initialize_empty(&node->info.directory.Entries);      
  } else if ( type == IMFS_HARD_LINK ) {                              
 800713c:	34 01 00 03 	mvi r1,3                                       
 8007140:	45 81 00 03 	be r12,r1,800714c <IMFS_create_node+0xac>      
    node->info.hard_link.link_node = info->hard_link.link_node;       
  } else if ( type == IMFS_SYM_LINK ) {                               
 8007144:	34 01 00 04 	mvi r1,4                                       
 8007148:	5d 81 00 04 	bne r12,r1,8007158 <IMFS_create_node+0xb8>     
    node->info.sym_link.name = info->sym_link.name;                   
 800714c:	29 a1 00 00 	lw r1,(r13+0)                                  
 8007150:	59 61 00 50 	sw (r11+80),r1                                 
 8007154:	e0 00 00 19 	bi 80071b8 <IMFS_create_node+0x118>            
  } else if ( type == IMFS_DEVICE ) {                                 
 8007158:	34 01 00 02 	mvi r1,2                                       
 800715c:	5d 81 00 06 	bne r12,r1,8007174 <IMFS_create_node+0xd4>     
    node->info.device.major = info->device.major;                     
 8007160:	29 a1 00 00 	lw r1,(r13+0)                                  
 8007164:	59 61 00 50 	sw (r11+80),r1                                 
    node->info.device.minor = info->device.minor;                     
 8007168:	29 a1 00 04 	lw r1,(r13+4)                                  
 800716c:	59 61 00 54 	sw (r11+84),r1                                 
 8007170:	e0 00 00 12 	bi 80071b8 <IMFS_create_node+0x118>            
  } else if ( type == IMFS_LINEAR_FILE ) {                            
 8007174:	34 01 00 06 	mvi r1,6                                       
 8007178:	5d 81 00 05 	bne r12,r1,800718c <IMFS_create_node+0xec>     
    node->info.linearfile.size      = 0;                              
 800717c:	59 60 00 50 	sw (r11+80),r0                                 
 8007180:	59 60 00 54 	sw (r11+84),r0                                 
    node->info.linearfile.direct    = 0;                              
 8007184:	59 60 00 58 	sw (r11+88),r0                                 
 8007188:	e0 00 00 0c 	bi 80071b8 <IMFS_create_node+0x118>            
  } else if ( type == IMFS_MEMORY_FILE ) {                            
 800718c:	34 01 00 05 	mvi r1,5                                       
 8007190:	5d 81 00 07 	bne r12,r1,80071ac <IMFS_create_node+0x10c>    
      node->info.file.size            = 0;                            
 8007194:	59 60 00 50 	sw (r11+80),r0                                 
 8007198:	59 60 00 54 	sw (r11+84),r0                                 
      node->info.file.indirect        = 0;                            
 800719c:	59 60 00 58 	sw (r11+88),r0                                 
      node->info.file.doubly_indirect = 0;                            
 80071a0:	59 60 00 5c 	sw (r11+92),r0                                 
      node->info.file.triply_indirect = 0;                            
 80071a4:	59 60 00 60 	sw (r11+96),r0                                 
 80071a8:	e0 00 00 04 	bi 80071b8 <IMFS_create_node+0x118>            
  } else if ( type == IMFS_FIFO ) {                                   
 80071ac:	34 01 00 07 	mvi r1,7                                       
 80071b0:	5d 81 00 02 	bne r12,r1,80071b8 <IMFS_create_node+0x118>    <== NEVER TAKEN
    node->info.fifo.pipe = NULL;                                      
 80071b4:	59 60 00 50 	sw (r11+80),r0                                 
                                                                      
  /*                                                                  
   *  This node MUST have a parent, so put it in that directory list. 
   */                                                                 
  node->Parent = parent;                                              
  node->st_ino = ++fs_info->ino_count;                                
 80071b8:	29 c1 00 04 	lw r1,(r14+4)                                  
  }                                                                   
                                                                      
  /*                                                                  
   *  This node MUST have a parent, so put it in that directory list. 
   */                                                                 
  node->Parent = parent;                                              
 80071bc:	59 6f 00 08 	sw (r11+8),r15                                 
 80071c0:	b9 60 10 00 	mv r2,r11                                      
  node->st_ino = ++fs_info->ino_count;                                
 80071c4:	34 21 00 01 	addi r1,r1,1                                   
 80071c8:	59 c1 00 04 	sw (r14+4),r1                                  
 80071cc:	59 61 00 38 	sw (r11+56),r1                                 
 80071d0:	35 e1 00 50 	addi r1,r15,80                                 
 80071d4:	fb ff f0 c5 	calli 80034e8 <_Chain_Append>                  
                                                                      
  rtems_chain_append( &parent->info.directory.Entries, &node->Node ); 
                                                                      
  return node;                                                        
}                                                                     
 80071d8:	b9 60 08 00 	mv r1,r11                                      
 80071dc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80071e0:	2b 8b 00 18 	lw r11,(sp+24)                                 
 80071e4:	2b 8c 00 14 	lw r12,(sp+20)                                 
 80071e8:	2b 8d 00 10 	lw r13,(sp+16)                                 
 80071ec:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 80071f0:	2b 8f 00 08 	lw r15,(sp+8)                                  
 80071f4:	37 9c 00 18 	addi sp,sp,24                                  
 80071f8:	c3 a0 00 00 	ret                                            
                                                                      

08007390 <IMFS_eval_path>: const char *pathname, /* IN */ size_t pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) {
 8007390:	37 9c ff 84 	addi sp,sp,-124                                
 8007394:	5b 8b 00 40 	sw (sp+64),r11                                 
 8007398:	5b 8c 00 3c 	sw (sp+60),r12                                 
 800739c:	5b 8d 00 38 	sw (sp+56),r13                                 
 80073a0:	5b 8e 00 34 	sw (sp+52),r14                                 
 80073a4:	5b 8f 00 30 	sw (sp+48),r15                                 
 80073a8:	5b 90 00 2c 	sw (sp+44),r16                                 
 80073ac:	5b 91 00 28 	sw (sp+40),r17                                 
 80073b0:	5b 92 00 24 	sw (sp+36),r18                                 
 80073b4:	5b 93 00 20 	sw (sp+32),r19                                 
 80073b8:	5b 94 00 1c 	sw (sp+28),r20                                 
 80073bc:	5b 95 00 18 	sw (sp+24),r21                                 
 80073c0:	5b 96 00 14 	sw (sp+20),r22                                 
 80073c4:	5b 97 00 10 	sw (sp+16),r23                                 
 80073c8:	5b 98 00 0c 	sw (sp+12),r24                                 
 80073cc:	5b 99 00 08 	sw (sp+8),r25                                  
 80073d0:	5b 9d 00 04 	sw (sp+4),ra                                   
 80073d4:	b8 20 90 00 	mv r18,r1                                      
  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 ) ) {                       
 80073d8:	34 01 ff f8 	mvi r1,-8                                      
 80073dc:	a0 61 08 00 	and r1,r3,r1                                   
  const char                        *pathname,     /* IN     */       
  size_t                             pathnamelen,  /* IN     */       
  int                                flags,        /* IN     */       
  rtems_filesystem_location_info_t  *pathloc       /* IN/OUT */       
                   )                                                  
{                                                                     
 80073e0:	b8 40 78 00 	mv r15,r2                                      
 80073e4:	b8 60 88 00 	mv r17,r3                                      
 80073e8:	b8 80 58 00 	mv r11,r4                                      
  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 ) ) {                       
 80073ec:	44 20 00 04 	be r1,r0,80073fc <IMFS_eval_path+0x6c>         <== ALWAYS TAKEN
    rtems_set_errno_and_return_minus_one( EIO );                      
 80073f0:	f8 00 0f e8 	calli 800b390 <__errno>                        <== NOT EXECUTED
 80073f4:	34 02 00 05 	mvi r2,5                                       <== NOT EXECUTED
 80073f8:	e0 00 00 91 	bi 800763c <IMFS_eval_path+0x2ac>              <== NOT EXECUTED
      case IMFS_UP_DIR:                                               
        /*                                                            
         *  Am I at the root of all filesystems? (chroot'ed?)         
         */                                                           
                                                                      
        if ( pathloc->node_access == rtems_filesystem_root.node_access )
 80073fc:	78 13 08 01 	mvhi r19,0x801                                 
  /*                                                                  
   *  This was filled in by the caller and is valid in the            
   *  mount table.                                                    
   */                                                                 
                                                                      
  node = pathloc->node_access;                                        
 8007400:	28 8c 00 00 	lw r12,(r4+0)                                  
  rtems_filesystem_location_info_t  *pathloc       /* IN/OUT */       
                   )                                                  
{                                                                     
  int                                 i = 0;                          
  int                                 len;                            
  IMFS_token_types                    type = IMFS_CURRENT_DIR;        
 8007404:	34 0e 00 01 	mvi r14,1                                      
  size_t                             pathnamelen,  /* IN     */       
  int                                flags,        /* IN     */       
  rtems_filesystem_location_info_t  *pathloc       /* IN/OUT */       
                   )                                                  
{                                                                     
  int                                 i = 0;                          
 8007408:	34 10 00 00 	mvi r16,0                                      
   *  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 );  
 800740c:	37 96 00 44 	addi r22,sp,68                                 
                                                                      
    /*                                                                
     * I cannot move out of this directory without execute permission.
     */                                                               
    if ( type != IMFS_NO_MORE_PATH )                                  
      if ( node->type == IMFS_DIRECTORY )                             
 8007410:	34 15 00 01 	mvi r21,1                                      
        if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
          rtems_set_errno_and_return_minus_one( EACCES );             
                                                                      
    node = pathloc->node_access;                                      
                                                                      
    switch( type ) {                                                  
 8007414:	34 19 00 03 	mvi r25,3                                      
	   * It would be a design error if we evaluated the link and         
	   * was broken.                                                     
	   */                                                                
          IMFS_assert( node );                                        
                                                                      
        } else if ( node->type == IMFS_SYM_LINK ) {                   
 8007418:	34 14 00 04 	mvi r20,4                                      
          /*                                                          
           *  In contrast to a hard link, it is possible to have a broken
           *  symbolic link.                                          
           */                                                         
          node = pathloc->node_access;                                
          if ( result == -1 )                                         
 800741c:	34 18 ff ff 	mvi r24,-1                                     
        if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
          rtems_set_errno_and_return_minus_one( EACCES );             
                                                                      
    node = pathloc->node_access;                                      
                                                                      
    switch( type ) {                                                  
 8007420:	34 17 00 02 	mvi r23,2                                      
      case IMFS_UP_DIR:                                               
        /*                                                            
         *  Am I at the root of all filesystems? (chroot'ed?)         
         */                                                           
                                                                      
        if ( pathloc->node_access == rtems_filesystem_root.node_access )
 8007424:	3a 73 31 4c 	ori r19,r19,0x314c                             
                                                                      
  /*                                                                  
   *  Evaluate all tokens until we are done or an error occurs.       
   */                                                                 
                                                                      
  while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
 8007428:	e0 00 00 5a 	bi 8007590 <IMFS_eval_path+0x200>              
                                                                      
    type = IMFS_get_token( &pathname[i], pathnamelen, token, &len );  
 800742c:	b6 50 08 00 	add r1,r18,r16                                 
 8007430:	b9 e0 10 00 	mv r2,r15                                      
 8007434:	ba c0 18 00 	mv r3,r22                                      
 8007438:	37 84 00 7c 	addi r4,sp,124                                 
 800743c:	f8 00 02 11 	calli 8007c80 <IMFS_get_token>                 
 8007440:	b8 20 70 00 	mv r14,r1                                      
    pathnamelen -= len;                                               
    i += len;                                                         
                                                                      
    if ( !pathloc->node_access )                                      
 8007444:	29 61 00 00 	lw r1,(r11+0)                                  
   */                                                                 
                                                                      
  while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
                                                                      
    type = IMFS_get_token( &pathname[i], pathnamelen, token, &len );  
    pathnamelen -= len;                                               
 8007448:	2b 8d 00 7c 	lw r13,(sp+124)                                
    i += len;                                                         
                                                                      
    if ( !pathloc->node_access )                                      
 800744c:	44 20 00 49 	be r1,r0,8007570 <IMFS_eval_path+0x1e0>        <== NEVER TAKEN
      rtems_set_errno_and_return_minus_one( ENOENT );                 
                                                                      
    /*                                                                
     * I cannot move out of this directory without execute permission.
     */                                                               
    if ( type != IMFS_NO_MORE_PATH )                                  
 8007450:	45 c0 00 07 	be r14,r0,800746c <IMFS_eval_path+0xdc>        
      if ( node->type == IMFS_DIRECTORY )                             
 8007454:	29 81 00 4c 	lw r1,(r12+76)                                 
 8007458:	5c 35 00 05 	bne r1,r21,800746c <IMFS_eval_path+0xdc>       
        if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
 800745c:	b9 60 08 00 	mv r1,r11                                      
 8007460:	34 02 00 01 	mvi r2,1                                       
 8007464:	fb ff ff 9d 	calli 80072d8 <IMFS_evaluate_permission>       
 8007468:	44 20 00 73 	be r1,r0,8007634 <IMFS_eval_path+0x2a4>        
   */                                                                 
                                                                      
  while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
                                                                      
    type = IMFS_get_token( &pathname[i], pathnamelen, token, &len );  
    pathnamelen -= len;                                               
 800746c:	c9 ed 78 00 	sub r15,r15,r13                                
    i += len;                                                         
 8007470:	b6 0d 80 00 	add r16,r16,r13                                
    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 );             
                                                                      
    node = pathloc->node_access;                                      
 8007474:	29 6c 00 00 	lw r12,(r11+0)                                 
                                                                      
    switch( type ) {                                                  
 8007478:	45 d9 00 14 	be r14,r25,80074c8 <IMFS_eval_path+0x138>      
 800747c:	45 d4 00 42 	be r14,r20,8007584 <IMFS_eval_path+0x1f4>      
 8007480:	5d d7 00 44 	bne r14,r23,8007590 <IMFS_eval_path+0x200>     
      case IMFS_UP_DIR:                                               
        /*                                                            
         *  Am I at the root of all filesystems? (chroot'ed?)         
         */                                                           
                                                                      
        if ( pathloc->node_access == rtems_filesystem_root.node_access )
 8007484:	2a 61 00 00 	lw r1,(r19+0)                                  
 8007488:	28 21 00 18 	lw r1,(r1+24)                                  
 800748c:	45 81 00 41 	be r12,r1,8007590 <IMFS_eval_path+0x200>       
        /*                                                            
         *  Am I at the root of this mounted filesystem?              
         */                                                           
                                                                      
        if (pathloc->node_access ==                                   
            pathloc->mt_entry->mt_fs_root.node_access) {              
 8007490:	29 64 00 10 	lw r4,(r11+16)                                 
                                                                      
        /*                                                            
         *  Am I at the root of this mounted filesystem?              
         */                                                           
                                                                      
        if (pathloc->node_access ==                                   
 8007494:	28 81 00 1c 	lw r1,(r4+28)                                  
 8007498:	5d 81 00 07 	bne r12,r1,80074b4 <IMFS_eval_path+0x124>      
           */                                                         
                                                                      
          if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
            break;       /* Throw out the .. in this case */          
          } else {                                                    
            newloc = pathloc->mt_entry->mt_point_node;                
 800749c:	28 85 00 08 	lw r5,(r4+8)                                   
 80074a0:	28 82 00 0c 	lw r2,(r4+12)                                  
 80074a4:	28 81 00 10 	lw r1,(r4+16)                                  
 80074a8:	28 83 00 14 	lw r3,(r4+20)                                  
 80074ac:	28 84 00 18 	lw r4,(r4+24)                                  
 80074b0:	e0 00 00 46 	bi 80075c8 <IMFS_eval_path+0x238>              
                                               pathnamelen+len,       
                                               flags,pathloc);        
          }                                                           
        } else {                                                      
                                                                      
          if ( !node->Parent )                                        
 80074b4:	29 8c 00 08 	lw r12,(r12+8)                                 
 80074b8:	5d 80 00 31 	bne r12,r0,800757c <IMFS_eval_path+0x1ec>      
            rtems_set_errno_and_return_minus_one( ENOENT );           
 80074bc:	f8 00 0f b5 	calli 800b390 <__errno>                        
 80074c0:	58 2e 00 00 	sw (r1+0),r14                                  
 80074c4:	e0 00 00 5f 	bi 8007640 <IMFS_eval_path+0x2b0>              
                                                                      
      case IMFS_NAME:                                                 
        /*                                                            
         *  If we are at a link follow it.                            
         */                                                           
        if ( node->type == IMFS_HARD_LINK ) {                         
 80074c8:	29 81 00 4c 	lw r1,(r12+76)                                 
 80074cc:	5c 2e 00 06 	bne r1,r14,80074e4 <IMFS_eval_path+0x154>      
          IMFS_evaluate_hard_link( pathloc, 0 );                      
 80074d0:	b9 60 08 00 	mv r1,r11                                      
 80074d4:	34 02 00 00 	mvi r2,0                                       
 80074d8:	fb ff ff 97 	calli 8007334 <IMFS_evaluate_hard_link>        
          node = pathloc->node_access;                                
 80074dc:	29 6c 00 00 	lw r12,(r11+0)                                 
 80074e0:	e0 00 00 08 	bi 8007500 <IMFS_eval_path+0x170>              
	   * It would be a design error if we evaluated the link and         
	   * was broken.                                                     
	   */                                                                
          IMFS_assert( node );                                        
                                                                      
        } else if ( node->type == IMFS_SYM_LINK ) {                   
 80074e4:	5c 34 00 07 	bne r1,r20,8007500 <IMFS_eval_path+0x170>      
          result = IMFS_evaluate_sym_link( pathloc, 0 );              
 80074e8:	b9 60 08 00 	mv r1,r11                                      
 80074ec:	34 02 00 00 	mvi r2,0                                       
 80074f0:	f8 00 00 68 	calli 8007690 <IMFS_evaluate_sym_link>         
 80074f4:	b8 20 68 00 	mv r13,r1                                      
                                                                      
          /*                                                          
           *  In contrast to a hard link, it is possible to have a broken
           *  symbolic link.                                          
           */                                                         
          node = pathloc->node_access;                                
 80074f8:	29 6c 00 00 	lw r12,(r11+0)                                 
          if ( result == -1 )                                         
 80074fc:	44 38 00 52 	be r1,r24,8007644 <IMFS_eval_path+0x2b4>       <== NEVER TAKEN
        }                                                             
                                                                      
        /*                                                            
         *  Only a directory can be decended into.                    
         */                                                           
        if ( node->type != IMFS_DIRECTORY )                           
 8007500:	29 81 00 4c 	lw r1,(r12+76)                                 
 8007504:	44 35 00 04 	be r1,r21,8007514 <IMFS_eval_path+0x184>       
          rtems_set_errno_and_return_minus_one( ENOTDIR );            
 8007508:	f8 00 0f a2 	calli 800b390 <__errno>                        
 800750c:	34 02 00 14 	mvi r2,20                                      
 8007510:	e0 00 00 4b 	bi 800763c <IMFS_eval_path+0x2ac>              
                                                                      
        /*                                                            
         *  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 ) {                   
 8007514:	29 8d 00 5c 	lw r13,(r12+92)                                
 8007518:	45 a0 00 11 	be r13,r0,800755c <IMFS_eval_path+0x1cc>       
          newloc   = node->info.directory.mt_fs->mt_fs_root;          
 800751c:	29 a4 00 1c 	lw r4,(r13+28)                                 
 8007520:	29 a2 00 20 	lw r2,(r13+32)                                 
 8007524:	29 a1 00 24 	lw r1,(r13+36)                                 
 8007528:	29 a3 00 28 	lw r3,(r13+40)                                 
 800752c:	29 a5 00 2c 	lw r5,(r13+44)                                 
 8007530:	5b 84 00 68 	sw (sp+104),r4                                 
 8007534:	5b 82 00 6c 	sw (sp+108),r2                                 
 8007538:	5b 81 00 70 	sw (sp+112),r1                                 
 800753c:	5b 83 00 74 	sw (sp+116),r3                                 
 8007540:	5b 85 00 78 	sw (sp+120),r5                                 
          *pathloc = newloc;                                          
 8007544:	59 64 00 00 	sw (r11+0),r4                                  
 8007548:	59 62 00 04 	sw (r11+4),r2                                  
 800754c:	59 61 00 08 	sw (r11+8),r1                                  
 8007550:	59 63 00 0c 	sw (r11+12),r3                                 
 8007554:	59 65 00 10 	sw (r11+16),r5                                 
 8007558:	e0 00 00 26 	bi 80075f0 <IMFS_eval_path+0x260>              
        }                                                             
                                                                      
        /*                                                            
         *  Otherwise find the token name in the present location.    
         */                                                           
        node = IMFS_find_match_in_dir( node, token );                 
 800755c:	b9 80 08 00 	mv r1,r12                                      
 8007560:	ba c0 10 00 	mv r2,r22                                      
 8007564:	f8 00 01 a1 	calli 8007be8 <IMFS_find_match_in_dir>         
 8007568:	b8 20 60 00 	mv r12,r1                                      
        if ( !node )                                                  
 800756c:	5c 2d 00 04 	bne r1,r13,800757c <IMFS_eval_path+0x1ec>      
          rtems_set_errno_and_return_minus_one( ENOENT );             
 8007570:	f8 00 0f 88 	calli 800b390 <__errno>                        
 8007574:	34 02 00 02 	mvi r2,2                                       
 8007578:	e0 00 00 31 	bi 800763c <IMFS_eval_path+0x2ac>              
                                                                      
        /*                                                            
         *  Set the node access to the point we have found.           
         */                                                           
                                                                      
        pathloc->node_access = node;                                  
 800757c:	59 6c 00 00 	sw (r11+0),r12                                 
 8007580:	e0 00 00 04 	bi 8007590 <IMFS_eval_path+0x200>              
      case IMFS_NO_MORE_PATH:                                         
      case IMFS_CURRENT_DIR:                                          
        break;                                                        
                                                                      
      case IMFS_INVALID_TOKEN:                                        
        rtems_set_errno_and_return_minus_one( ENAMETOOLONG );         
 8007584:	f8 00 0f 83 	calli 800b390 <__errno>                        
 8007588:	34 02 00 5b 	mvi r2,91                                      
 800758c:	e0 00 00 2c 	bi 800763c <IMFS_eval_path+0x2ac>              
                                                                      
  /*                                                                  
   *  Evaluate all tokens until we are done or an error occurs.       
   */                                                                 
                                                                      
  while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
 8007590:	7d c1 00 04 	cmpnei r1,r14,4                                
 8007594:	7d ce 00 00 	cmpnei r14,r14,0                               
 8007598:	a0 2e 70 00 	and r14,r1,r14                                 
 800759c:	5d c0 ff a4 	bne r14,r0,800742c <IMFS_eval_path+0x9c>       
   *  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 ) {                               
 80075a0:	29 82 00 4c 	lw r2,(r12+76)                                 
 80075a4:	34 01 00 01 	mvi r1,1                                       
 80075a8:	5c 41 00 1c 	bne r2,r1,8007618 <IMFS_eval_path+0x288>       
    if ( node->info.directory.mt_fs != NULL ) {                       
 80075ac:	29 84 00 5c 	lw r4,(r12+92)                                 
 80075b0:	44 80 00 1a 	be r4,r0,8007618 <IMFS_eval_path+0x288>        
      newloc   = node->info.directory.mt_fs->mt_fs_root;              
 80075b4:	28 85 00 1c 	lw r5,(r4+28)                                  
 80075b8:	28 82 00 20 	lw r2,(r4+32)                                  
 80075bc:	28 81 00 24 	lw r1,(r4+36)                                  
 80075c0:	28 83 00 28 	lw r3,(r4+40)                                  
 80075c4:	28 84 00 2c 	lw r4,(r4+44)                                  
 80075c8:	5b 85 00 68 	sw (sp+104),r5                                 
 80075cc:	5b 82 00 6c 	sw (sp+108),r2                                 
 80075d0:	5b 81 00 70 	sw (sp+112),r1                                 
 80075d4:	5b 83 00 74 	sw (sp+116),r3                                 
 80075d8:	5b 84 00 78 	sw (sp+120),r4                                 
      *pathloc = newloc;                                              
 80075dc:	59 65 00 00 	sw (r11+0),r5                                  
 80075e0:	59 62 00 04 	sw (r11+4),r2                                  
 80075e4:	59 61 00 08 	sw (r11+8),r1                                  
 80075e8:	59 63 00 0c 	sw (r11+12),r3                                 
 80075ec:	59 64 00 10 	sw (r11+16),r4                                 
      return (*pathloc->ops->evalpath_h)( &pathname[i-len],           
 80075f0:	2b 82 00 7c 	lw r2,(sp+124)                                 
 80075f4:	28 65 00 00 	lw r5,(r3+0)                                   
 80075f8:	b9 60 20 00 	mv r4,r11                                      
 80075fc:	ca 02 08 00 	sub r1,r16,r2                                  
 8007600:	b6 41 08 00 	add r1,r18,r1                                  
 8007604:	b5 e2 10 00 	add r2,r15,r2                                  
 8007608:	ba 20 18 00 	mv r3,r17                                      
 800760c:	d8 a0 00 00 	call r5                                        
 8007610:	b8 20 68 00 	mv r13,r1                                      
 8007614:	e0 00 00 0c 	bi 8007644 <IMFS_eval_path+0x2b4>              
                                          flags, pathloc );           
    } else {                                                          
      result = IMFS_Set_handlers( pathloc );                          
    }                                                                 
  } else {                                                            
    result = IMFS_Set_handlers( pathloc );                            
 8007618:	b9 60 08 00 	mv r1,r11                                      
 800761c:	fb ff ff 08 	calli 800723c <IMFS_Set_handlers>              
 8007620:	b8 20 68 00 	mv r13,r1                                      
                                                                      
  /*                                                                  
   * Verify we have the correct permissions for this node.            
   */                                                                 
                                                                      
  if ( !IMFS_evaluate_permission( pathloc, flags ) )                  
 8007624:	ba 20 10 00 	mv r2,r17                                      
 8007628:	b9 60 08 00 	mv r1,r11                                      
 800762c:	fb ff ff 2b 	calli 80072d8 <IMFS_evaluate_permission>       
 8007630:	5c 20 00 05 	bne r1,r0,8007644 <IMFS_eval_path+0x2b4>       
    rtems_set_errno_and_return_minus_one( EACCES );                   
 8007634:	f8 00 0f 57 	calli 800b390 <__errno>                        
 8007638:	34 02 00 0d 	mvi r2,13                                      
 800763c:	58 22 00 00 	sw (r1+0),r2                                   
 8007640:	34 0d ff ff 	mvi r13,-1                                     
                                                                      
  return result;                                                      
}                                                                     
 8007644:	b9 a0 08 00 	mv r1,r13                                      
 8007648:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800764c:	2b 8b 00 40 	lw r11,(sp+64)                                 
 8007650:	2b 8c 00 3c 	lw r12,(sp+60)                                 
 8007654:	2b 8d 00 38 	lw r13,(sp+56)                                 
 8007658:	2b 8e 00 34 	lw r14,(sp+52)                                 
 800765c:	2b 8f 00 30 	lw r15,(sp+48)                                 
 8007660:	2b 90 00 2c 	lw r16,(sp+44)                                 
 8007664:	2b 91 00 28 	lw r17,(sp+40)                                 
 8007668:	2b 92 00 24 	lw r18,(sp+36)                                 
 800766c:	2b 93 00 20 	lw r19,(sp+32)                                 
 8007670:	2b 94 00 1c 	lw r20,(sp+28)                                 
 8007674:	2b 95 00 18 	lw r21,(sp+24)                                 
 8007678:	2b 96 00 14 	lw r22,(sp+20)                                 
 800767c:	2b 97 00 10 	lw r23,(sp+16)                                 
 8007680:	2b 98 00 0c 	lw r24,(sp+12)                                 
 8007684:	2b 99 00 08 	lw r25,(sp+8)                                  
 8007688:	37 9c 00 7c 	addi sp,sp,124                                 
 800768c:	c3 a0 00 00 	ret                                            
                                                                      

0800782c <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 */ ) {
 800782c:	37 9c ff 84 	addi sp,sp,-124                                
 8007830:	5b 8b 00 40 	sw (sp+64),r11                                 
 8007834:	5b 8c 00 3c 	sw (sp+60),r12                                 
 8007838:	5b 8d 00 38 	sw (sp+56),r13                                 
 800783c:	5b 8e 00 34 	sw (sp+52),r14                                 
 8007840:	5b 8f 00 30 	sw (sp+48),r15                                 
 8007844:	5b 90 00 2c 	sw (sp+44),r16                                 
 8007848:	5b 91 00 28 	sw (sp+40),r17                                 
 800784c:	5b 92 00 24 	sw (sp+36),r18                                 
 8007850:	5b 93 00 20 	sw (sp+32),r19                                 
 8007854:	5b 94 00 1c 	sw (sp+28),r20                                 
 8007858:	5b 95 00 18 	sw (sp+24),r21                                 
 800785c:	5b 96 00 14 	sw (sp+20),r22                                 
 8007860:	5b 97 00 10 	sw (sp+16),r23                                 
 8007864:	5b 98 00 0c 	sw (sp+12),r24                                 
 8007868:	5b 99 00 08 	sw (sp+8),r25                                  
 800786c:	5b 9d 00 04 	sw (sp+4),ra                                   
      case IMFS_UP_DIR:                                               
       /*                                                             
        *  Am I at the root of all filesystems? (chroot'ed?)          
	*/                                                                   
                                                                      
       if ( pathloc->node_access == rtems_filesystem_root.node_access )
 8007870:	78 10 08 01 	mvhi r16,0x801                                 
int IMFS_evaluate_for_make(                                           
   const char                         *path,       /* IN     */       
   rtems_filesystem_location_info_t   *pathloc,    /* IN/OUT */       
   const char                        **name        /* OUT    */       
)                                                                     
{                                                                     
 8007874:	b8 20 78 00 	mv r15,r1                                      
 8007878:	b8 40 58 00 	mv r11,r2                                      
 800787c:	b8 60 88 00 	mv r17,r3                                      
                                                                      
  /*                                                                  
   * This was filled in by the caller and is valid in the             
   * mount table.                                                     
   */                                                                 
  node = pathloc->node_access;                                        
 8007880:	28 4c 00 00 	lw r12,(r2+0)                                  
                                                                      
  /*                                                                  
   * Get the path length.                                             
   */                                                                 
  pathlen = strlen( path );                                           
 8007884:	f8 00 13 64 	calli 800c614 <strlen>                         
 8007888:	b8 20 90 00 	mv r18,r1                                      
   const char                         *path,       /* IN     */       
   rtems_filesystem_location_info_t   *pathloc,    /* IN/OUT */       
   const char                        **name        /* OUT    */       
)                                                                     
{                                                                     
  int                                 i = 0;                          
 800788c:	34 0e 00 00 	mvi r14,0                                      
   *  Evaluate all tokens until we are done or an error occurs.       
   */                                                                 
                                                                      
  while( !done ) {                                                    
                                                                      
    type = IMFS_get_token( &path[i], pathlen, token, &len );          
 8007890:	37 98 00 44 	addi r24,sp,68                                 
    /*                                                                
     * I cannot move out of this directory without execute permission.
     */                                                               
                                                                      
    if ( type != IMFS_NO_MORE_PATH )                                  
      if ( node->type == IMFS_DIRECTORY )                             
 8007894:	34 17 00 01 	mvi r23,1                                      
        if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
           rtems_set_errno_and_return_minus_one( EACCES );            
                                                                      
    node = pathloc->node_access;                                      
                                                                      
    switch( type ) {                                                  
 8007898:	34 16 00 02 	mvi r22,2                                      
      case IMFS_UP_DIR:                                               
       /*                                                             
        *  Am I at the root of all filesystems? (chroot'ed?)          
	*/                                                                   
                                                                      
       if ( pathloc->node_access == rtems_filesystem_root.node_access )
 800789c:	3a 10 31 4c 	ori r16,r16,0x314c                             
        if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
           rtems_set_errno_and_return_minus_one( EACCES );            
                                                                      
    node = pathloc->node_access;                                      
                                                                      
    switch( type ) {                                                  
 80078a0:	34 15 00 03 	mvi r21,3                                      
                                                                      
          result = IMFS_evaluate_link( pathloc, 0 );                  
          if ( result == -1 )                                         
            return -1;                                                
                                                                      
	} else if ( node->type == IMFS_SYM_LINK ) {                          
 80078a4:	34 14 00 04 	mvi r20,4                                      
                                                                      
          result = IMFS_evaluate_link( pathloc, 0 );                  
                                                                      
          if ( result == -1 )                                         
 80078a8:	34 13 ff ff 	mvi r19,-1                                     
   *  Evaluate all tokens until we are done or an error occurs.       
   */                                                                 
                                                                      
  while( !done ) {                                                    
                                                                      
    type = IMFS_get_token( &path[i], pathlen, token, &len );          
 80078ac:	ba 40 10 00 	mv r2,r18                                      
 80078b0:	b5 ee 08 00 	add r1,r15,r14                                 
 80078b4:	bb 00 18 00 	mv r3,r24                                      
 80078b8:	37 84 00 7c 	addi r4,sp,124                                 
 80078bc:	f8 00 00 f1 	calli 8007c80 <IMFS_get_token>                 
 80078c0:	b8 20 68 00 	mv r13,r1                                      
    pathlen -= len;                                                   
 80078c4:	2b 99 00 7c 	lw r25,(sp+124)                                
    i +=  len;                                                        
                                                                      
    if ( !pathloc->node_access )                                      
 80078c8:	29 61 00 00 	lw r1,(r11+0)                                  
   */                                                                 
                                                                      
  while( !done ) {                                                    
                                                                      
    type = IMFS_get_token( &path[i], pathlen, token, &len );          
    pathlen -= len;                                                   
 80078cc:	ca 59 90 00 	sub r18,r18,r25                                
    i +=  len;                                                        
                                                                      
    if ( !pathloc->node_access )                                      
 80078d0:	44 20 00 68 	be r1,r0,8007a70 <IMFS_evaluate_for_make+0x244><== NEVER TAKEN
                                                                      
    /*                                                                
     * I cannot move out of this directory without execute permission.
     */                                                               
                                                                      
    if ( type != IMFS_NO_MORE_PATH )                                  
 80078d4:	45 a0 00 07 	be r13,r0,80078f0 <IMFS_evaluate_for_make+0xc4>
      if ( node->type == IMFS_DIRECTORY )                             
 80078d8:	29 81 00 4c 	lw r1,(r12+76)                                 
 80078dc:	5c 37 00 05 	bne r1,r23,80078f0 <IMFS_evaluate_for_make+0xc4>
        if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
 80078e0:	b9 60 08 00 	mv r1,r11                                      
 80078e4:	34 02 00 01 	mvi r2,1                                       
 80078e8:	fb ff fe 7c 	calli 80072d8 <IMFS_evaluate_permission>       
 80078ec:	44 20 00 74 	be r1,r0,8007abc <IMFS_evaluate_for_make+0x290>
                                                                      
  while( !done ) {                                                    
                                                                      
    type = IMFS_get_token( &path[i], pathlen, token, &len );          
    pathlen -= len;                                                   
    i +=  len;                                                        
 80078f0:	b5 d9 70 00 	add r14,r14,r25                                
    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 );            
                                                                      
    node = pathloc->node_access;                                      
 80078f4:	29 6c 00 00 	lw r12,(r11+0)                                 
                                                                      
    switch( type ) {                                                  
 80078f8:	45 b6 00 07 	be r13,r22,8007914 <IMFS_evaluate_for_make+0xe8>
 80078fc:	55 b6 00 03 	bgu r13,r22,8007908 <IMFS_evaluate_for_make+0xdc>
 8007900:	5d a0 ff eb 	bne r13,r0,80078ac <IMFS_evaluate_for_make+0x80>
 8007904:	e0 00 00 4c 	bi 8007a34 <IMFS_evaluate_for_make+0x208>      
 8007908:	45 b5 00 1e 	be r13,r21,8007980 <IMFS_evaluate_for_make+0x154>
 800790c:	5d b4 ff e8 	bne r13,r20,80078ac <IMFS_evaluate_for_make+0x80><== NEVER TAKEN
 8007910:	e0 00 00 4c 	bi 8007a40 <IMFS_evaluate_for_make+0x214>      
      case IMFS_UP_DIR:                                               
       /*                                                             
        *  Am I at the root of all filesystems? (chroot'ed?)          
	*/                                                                   
                                                                      
       if ( pathloc->node_access == rtems_filesystem_root.node_access )
 8007914:	2a 01 00 00 	lw r1,(r16+0)                                  
 8007918:	28 21 00 18 	lw r1,(r1+24)                                  
 800791c:	45 81 ff e4 	be r12,r1,80078ac <IMFS_evaluate_for_make+0x80>
                                                                      
	/*                                                                   
	 * Am I at the root of this mounted filesystem?                      
	 */                                                                  
                                                                      
        if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access){
 8007920:	29 64 00 10 	lw r4,(r11+16)                                 
 8007924:	28 81 00 1c 	lw r1,(r4+28)                                  
 8007928:	5d 81 00 11 	bne r12,r1,800796c <IMFS_evaluate_for_make+0x140>
                                                                      
          if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
            break;                                                    
                                                                      
	  } else {                                                           
            newloc = pathloc->mt_entry->mt_point_node;                
 800792c:	28 85 00 08 	lw r5,(r4+8)                                   
 8007930:	28 83 00 0c 	lw r3,(r4+12)                                  
 8007934:	28 81 00 10 	lw r1,(r4+16)                                  
 8007938:	28 82 00 14 	lw r2,(r4+20)                                  
 800793c:	28 84 00 18 	lw r4,(r4+24)                                  
 8007940:	5b 85 00 68 	sw (sp+104),r5                                 
 8007944:	5b 83 00 6c 	sw (sp+108),r3                                 
 8007948:	5b 81 00 70 	sw (sp+112),r1                                 
 800794c:	5b 82 00 74 	sw (sp+116),r2                                 
 8007950:	5b 84 00 78 	sw (sp+120),r4                                 
            *pathloc = newloc;                                        
 8007954:	59 65 00 00 	sw (r11+0),r5                                  
 8007958:	59 63 00 04 	sw (r11+4),r3                                  
 800795c:	59 61 00 08 	sw (r11+8),r1                                  
 8007960:	59 62 00 0c 	sw (r11+12),r2                                 
 8007964:	59 64 00 10 	sw (r11+16),r4                                 
 8007968:	e0 00 00 23 	bi 80079f4 <IMFS_evaluate_for_make+0x1c8>      
            return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
	  }                                                                  
	} else {                                                             
                                                                      
          if ( !node->Parent )                                        
 800796c:	29 8c 00 08 	lw r12,(r12+8)                                 
 8007970:	5d 80 00 2f 	bne r12,r0,8007a2c <IMFS_evaluate_for_make+0x200>
            rtems_set_errno_and_return_minus_one( ENOENT );           
 8007974:	f8 00 0e 87 	calli 800b390 <__errno>                        
 8007978:	58 2d 00 00 	sw (r1+0),r13                                  
 800797c:	e0 00 00 53 	bi 8007ac8 <IMFS_evaluate_for_make+0x29c>      
        pathloc->node_access = node;                                  
        break;                                                        
                                                                      
      case IMFS_NAME:                                                 
                                                                      
	if ( node->type == IMFS_HARD_LINK ) {                                
 8007980:	29 81 00 4c 	lw r1,(r12+76)                                 
 8007984:	44 35 00 02 	be r1,r21,800798c <IMFS_evaluate_for_make+0x160>
                                                                      
          result = IMFS_evaluate_link( pathloc, 0 );                  
          if ( result == -1 )                                         
            return -1;                                                
                                                                      
	} else if ( node->type == IMFS_SYM_LINK ) {                          
 8007988:	5c 34 00 06 	bne r1,r20,80079a0 <IMFS_evaluate_for_make+0x174>
                                                                      
          result = IMFS_evaluate_link( pathloc, 0 );                  
 800798c:	b9 60 08 00 	mv r1,r11                                      
 8007990:	34 02 00 00 	mvi r2,0                                       
 8007994:	fb ff ff 69 	calli 8007738 <IMFS_evaluate_link>             
 8007998:	b8 20 60 00 	mv r12,r1                                      
                                                                      
          if ( result == -1 )                                         
 800799c:	44 33 00 4c 	be r1,r19,8007acc <IMFS_evaluate_for_make+0x2a0><== NEVER TAKEN
            return -1;                                                
	}                                                                    
                                                                      
        node = pathloc->node_access;                                  
 80079a0:	29 64 00 00 	lw r4,(r11+0)                                  
        if ( !node )                                                  
 80079a4:	44 80 00 3f 	be r4,r0,8007aa0 <IMFS_evaluate_for_make+0x274><== NEVER TAKEN
                                                                      
        /*                                                            
         * Only a directory can be decended into.                     
	 */                                                                  
                                                                      
        if ( node->type != IMFS_DIRECTORY )                           
 80079a8:	28 81 00 4c 	lw r1,(r4+76)                                  
 80079ac:	5c 37 00 3d 	bne r1,r23,8007aa0 <IMFS_evaluate_for_make+0x274>
	/*                                                                   
	 * 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 ) {                   
 80079b0:	28 8d 00 5c 	lw r13,(r4+92)                                 
 80079b4:	45 a0 00 19 	be r13,r0,8007a18 <IMFS_evaluate_for_make+0x1ec>
          newloc  = node->info.directory.mt_fs->mt_fs_root;           
 80079b8:	29 a4 00 1c 	lw r4,(r13+28)                                 
 80079bc:	29 a3 00 20 	lw r3,(r13+32)                                 
 80079c0:	29 a1 00 24 	lw r1,(r13+36)                                 
 80079c4:	29 a2 00 28 	lw r2,(r13+40)                                 
 80079c8:	29 a5 00 2c 	lw r5,(r13+44)                                 
 80079cc:	5b 84 00 68 	sw (sp+104),r4                                 
 80079d0:	5b 83 00 6c 	sw (sp+108),r3                                 
 80079d4:	5b 81 00 70 	sw (sp+112),r1                                 
 80079d8:	5b 82 00 74 	sw (sp+116),r2                                 
 80079dc:	5b 85 00 78 	sw (sp+120),r5                                 
          *pathloc = newloc;                                          
 80079e0:	59 64 00 00 	sw (r11+0),r4                                  
 80079e4:	59 63 00 04 	sw (r11+4),r3                                  
 80079e8:	59 61 00 08 	sw (r11+8),r1                                  
 80079ec:	59 62 00 0c 	sw (r11+12),r2                                 
 80079f0:	59 65 00 10 	sw (r11+16),r5                                 
          return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
 80079f4:	2b 81 00 7c 	lw r1,(sp+124)                                 
 80079f8:	28 44 00 04 	lw r4,(r2+4)                                   
 80079fc:	ba 20 18 00 	mv r3,r17                                      
 8007a00:	c9 c1 70 00 	sub r14,r14,r1                                 
 8007a04:	b5 ee 08 00 	add r1,r15,r14                                 
 8007a08:	b9 60 10 00 	mv r2,r11                                      
 8007a0c:	d8 80 00 00 	call r4                                        
 8007a10:	b8 20 60 00 	mv r12,r1                                      
 8007a14:	e0 00 00 2e 	bi 8007acc <IMFS_evaluate_for_make+0x2a0>      
                                                                      
	/*                                                                   
	 * Otherwise find the token name in the present location.            
	 */                                                                  
                                                                      
        node = IMFS_find_match_in_dir( node, token );                 
 8007a18:	b8 80 08 00 	mv r1,r4                                       
 8007a1c:	bb 00 10 00 	mv r2,r24                                      
 8007a20:	f8 00 00 72 	calli 8007be8 <IMFS_find_match_in_dir>         
 8007a24:	b8 20 60 00 	mv r12,r1                                      
	/*                                                                   
	 * If there is no node we have found the name of the node we         
         * wish to create.                                            
	 */                                                                  
                                                                      
        if ( ! node )                                                 
 8007a28:	44 2d 00 09 	be r1,r13,8007a4c <IMFS_evaluate_for_make+0x220>
          done = true;                                                
        else                                                          
          pathloc->node_access = node;                                
 8007a2c:	59 6c 00 00 	sw (r11+0),r12                                 
 8007a30:	e3 ff ff 9f 	bi 80078ac <IMFS_evaluate_for_make+0x80>       
                                                                      
        break;                                                        
                                                                      
      case IMFS_NO_MORE_PATH:                                         
        rtems_set_errno_and_return_minus_one( EEXIST );               
 8007a34:	f8 00 0e 57 	calli 800b390 <__errno>                        
 8007a38:	34 02 00 11 	mvi r2,17                                      
 8007a3c:	e0 00 00 22 	bi 8007ac4 <IMFS_evaluate_for_make+0x298>      
        break;                                                        
                                                                      
      case IMFS_INVALID_TOKEN:                                        
        rtems_set_errno_and_return_minus_one( ENAMETOOLONG );         
 8007a40:	f8 00 0e 54 	calli 800b390 <__errno>                        
 8007a44:	34 02 00 5b 	mvi r2,91                                      
 8007a48:	e0 00 00 1f 	bi 8007ac4 <IMFS_evaluate_for_make+0x298>      
      case IMFS_CURRENT_DIR:                                          
        break;                                                        
    }                                                                 
  }                                                                   
                                                                      
  *name = &path[ i - len ];                                           
 8007a4c:	2b 81 00 7c 	lw r1,(sp+124)                                 
 8007a50:	c9 c1 08 00 	sub r1,r14,r1                                  
 8007a54:	b5 e1 08 00 	add r1,r15,r1                                  
 8007a58:	5a 21 00 00 	sw (r17+0),r1                                  
 *  pathloc is returned with a pointer to the parent of the new node. 
 *  name is returned with a pointer to the first character in the     
 *  new node name.  The parent node is verified to be a directory.    
 */                                                                   
                                                                      
int IMFS_evaluate_for_make(                                           
 8007a5c:	b5 ee 70 00 	add r14,r15,r14                                
  /*                                                                  
   * 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++) {                                      
 8007a60:	e0 00 00 07 	bi 8007a7c <IMFS_evaluate_for_make+0x250>      
    if ( !IMFS_is_separator( path[ i ] ) )                            
 8007a64:	fb ff ea 56 	calli 80023bc <rtems_filesystem_is_separator>  
 8007a68:	35 ce 00 01 	addi r14,r14,1                                 
 8007a6c:	5c 20 00 04 	bne r1,r0,8007a7c <IMFS_evaluate_for_make+0x250>
      rtems_set_errno_and_return_minus_one( ENOENT );                 
 8007a70:	f8 00 0e 48 	calli 800b390 <__errno>                        
 8007a74:	34 02 00 02 	mvi r2,2                                       
 8007a78:	e0 00 00 13 	bi 8007ac4 <IMFS_evaluate_for_make+0x298>      
  /*                                                                  
   * 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++) {                                      
 8007a7c:	41 c1 00 00 	lbu r1,(r14+0)                                 
 8007a80:	5c 20 ff f9 	bne r1,r0,8007a64 <IMFS_evaluate_for_make+0x238>
                                                                      
  /*                                                                  
   * Verify we can execute and write to this directory.               
   */                                                                 
                                                                      
  result = IMFS_Set_handlers( pathloc );                              
 8007a84:	b9 60 08 00 	mv r1,r11                                      
 8007a88:	fb ff fd ed 	calli 800723c <IMFS_Set_handlers>              
 8007a8c:	b8 20 60 00 	mv r12,r1                                      
                                                                      
  /*                                                                  
   * The returned node must be a directory                            
   */                                                                 
  node = pathloc->node_access;                                        
  if ( node->type != IMFS_DIRECTORY )                                 
 8007a90:	29 61 00 00 	lw r1,(r11+0)                                  
 8007a94:	28 22 00 4c 	lw r2,(r1+76)                                  
 8007a98:	34 01 00 01 	mvi r1,1                                       
 8007a9c:	44 41 00 04 	be r2,r1,8007aac <IMFS_evaluate_for_make+0x280><== ALWAYS TAKEN
    rtems_set_errno_and_return_minus_one( ENOTDIR );                  
 8007aa0:	f8 00 0e 3c 	calli 800b390 <__errno>                        
 8007aa4:	34 02 00 14 	mvi r2,20                                      
 8007aa8:	e0 00 00 07 	bi 8007ac4 <IMFS_evaluate_for_make+0x298>      
                                                                      
  /*                                                                  
   * We must have Write and execute permission on the returned node.  
   */                                                                 
                                                                      
  if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) )   
 8007aac:	b9 60 08 00 	mv r1,r11                                      
 8007ab0:	34 02 00 03 	mvi r2,3                                       
 8007ab4:	fb ff fe 09 	calli 80072d8 <IMFS_evaluate_permission>       
 8007ab8:	5c 20 00 05 	bne r1,r0,8007acc <IMFS_evaluate_for_make+0x2a0>
    rtems_set_errno_and_return_minus_one( EACCES );                   
 8007abc:	f8 00 0e 35 	calli 800b390 <__errno>                        
 8007ac0:	34 02 00 0d 	mvi r2,13                                      
 8007ac4:	58 22 00 00 	sw (r1+0),r2                                   
 8007ac8:	34 0c ff ff 	mvi r12,-1                                     
                                                                      
  return result;                                                      
}                                                                     
 8007acc:	b9 80 08 00 	mv r1,r12                                      
 8007ad0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8007ad4:	2b 8b 00 40 	lw r11,(sp+64)                                 
 8007ad8:	2b 8c 00 3c 	lw r12,(sp+60)                                 
 8007adc:	2b 8d 00 38 	lw r13,(sp+56)                                 
 8007ae0:	2b 8e 00 34 	lw r14,(sp+52)                                 
 8007ae4:	2b 8f 00 30 	lw r15,(sp+48)                                 
 8007ae8:	2b 90 00 2c 	lw r16,(sp+44)                                 
 8007aec:	2b 91 00 28 	lw r17,(sp+40)                                 
 8007af0:	2b 92 00 24 	lw r18,(sp+36)                                 
 8007af4:	2b 93 00 20 	lw r19,(sp+32)                                 
 8007af8:	2b 94 00 1c 	lw r20,(sp+28)                                 
 8007afc:	2b 95 00 18 	lw r21,(sp+24)                                 
 8007b00:	2b 96 00 14 	lw r22,(sp+20)                                 
 8007b04:	2b 97 00 10 	lw r23,(sp+16)                                 
 8007b08:	2b 98 00 0c 	lw r24,(sp+12)                                 
 8007b0c:	2b 99 00 08 	lw r25,(sp+8)                                  
 8007b10:	37 9c 00 7c 	addi sp,sp,124                                 
 8007b14:	c3 a0 00 00 	ret                                            
                                                                      

080072d8 <IMFS_evaluate_permission>: */ int IMFS_evaluate_permission( rtems_filesystem_location_info_t *node, int flags ) {
 80072d8:	37 9c ff f8 	addi sp,sp,-8                                  
 80072dc:	5b 8b 00 08 	sw (sp+8),r11                                  
 80072e0:	5b 9d 00 04 	sw (sp+4),ra                                   
 80072e4:	b8 20 58 00 	mv r11,r1                                      
  uid_t         st_uid;                                               
  gid_t         st_gid;                                               
  IMFS_jnode_t *jnode;                                                
  int           flags_to_test;                                        
                                                                      
  if ( !rtems_libio_is_valid_perms( flags ) )                         
 80072e8:	34 01 ff f8 	mvi r1,-8                                      
 80072ec:	a0 41 08 00 	and r1,r2,r1                                   
 80072f0:	44 20 00 06 	be r1,r0,8007308 <IMFS_evaluate_permission+0x30><== ALWAYS TAKEN
    rtems_set_errno_and_return_minus_one( EPERM );                    
 80072f4:	f8 00 10 27 	calli 800b390 <__errno>                        <== NOT EXECUTED
 80072f8:	34 02 00 01 	mvi r2,1                                       <== NOT EXECUTED
 80072fc:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
 8007300:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
 8007304:	e0 00 00 08 	bi 8007324 <IMFS_evaluate_permission+0x4c>     <== NOT EXECUTED
   */                                                                 
                                                                      
  flags_to_test = flags;                                              
                                                                      
  if ( st_uid == jnode->st_uid )                                      
    flags_to_test <<= 6;                                              
 8007308:	b8 40 08 00 	mv r1,r2                                       
 800730c:	34 02 00 06 	mvi r2,6                                       
 8007310:	f8 00 25 5e 	calli 8010888 <__ashlsi3>                      
                                                                      
  /*                                                                  
   * If all of the flags are set we have permission                   
   * to do this.                                                      
   */                                                                 
  if ( ( flags_to_test & jnode->st_mode) == flags_to_test )           
 8007314:	29 62 00 00 	lw r2,(r11+0)                                  
 8007318:	28 42 00 30 	lw r2,(r2+48)                                  
 800731c:	a0 22 10 00 	and r2,r1,r2                                   
  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 );                    
 8007320:	e4 41 08 00 	cmpe r1,r2,r1                                  
   */                                                                 
  if ( ( flags_to_test & jnode->st_mode) == flags_to_test )           
    return 1;                                                         
                                                                      
  return 0;                                                           
}                                                                     
 8007324:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8007328:	2b 8b 00 08 	lw r11,(sp+8)                                  
 800732c:	37 9c 00 08 	addi sp,sp,8                                   
 8007330:	c3 a0 00 00 	ret                                            
                                                                      

08001e28 <IMFS_fifo_lseek>: rtems_off64_t IMFS_fifo_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) {
 8001e28:	37 9c ff f8 	addi sp,sp,-8                                  
 8001e2c:	5b 8b 00 08 	sw (sp+8),r11                                  
 8001e30:	5b 9d 00 04 	sw (sp+4),ra                                   
 8001e34:	b8 20 28 00 	mv r5,r1                                       
  off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop);       
 8001e38:	28 21 00 1c 	lw r1,(r1+28)                                  
 8001e3c:	b8 60 10 00 	mv r2,r3                                       
 8001e40:	b8 80 18 00 	mv r3,r4                                       
 8001e44:	28 21 00 50 	lw r1,(r1+80)                                  
 8001e48:	b8 a0 20 00 	mv r4,r5                                       
 8001e4c:	f8 00 22 c2 	calli 800a954 <pipe_lseek>                     
 8001e50:	b8 20 58 00 	mv r11,r1                                      
  IMFS_FIFO_RETURN(err);                                              
 8001e54:	4c 20 00 07 	bge r1,r0,8001e70 <IMFS_fifo_lseek+0x48>       <== NEVER TAKEN
 8001e58:	f8 00 2c df 	calli 800d1d4 <__errno>                        
 8001e5c:	c8 0b 58 00 	sub r11,r0,r11                                 
 8001e60:	58 2b 00 00 	sw (r1+0),r11                                  
 8001e64:	34 01 ff ff 	mvi r1,-1                                      
 8001e68:	34 0b ff ff 	mvi r11,-1                                     
 8001e6c:	e0 00 00 03 	bi 8001e78 <IMFS_fifo_lseek+0x50>              
 8001e70:	34 02 00 1f 	mvi r2,31                                      <== NOT EXECUTED
 8001e74:	f8 00 72 c4 	calli 801e984 <__ashrsi3>                      <== NOT EXECUTED
}                                                                     
 8001e78:	b9 60 10 00 	mv r2,r11                                      
 8001e7c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8001e80:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8001e84:	37 9c 00 08 	addi sp,sp,8                                   
 8001e88:	c3 a0 00 00 	ret                                            
                                                                      

08001f90 <IMFS_fifo_read>: ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) {
 8001f90:	37 9c ff ec 	addi sp,sp,-20                                 
 8001f94:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8001f98:	5b 8c 00 08 	sw (sp+8),r12                                  
 8001f9c:	5b 9d 00 04 	sw (sp+4),ra                                   
  IMFS_jnode_t *jnode = iop->pathinfo.node_access;                    
 8001fa0:	28 2c 00 1c 	lw r12,(r1+28)                                 
ssize_t IMFS_fifo_read(                                               
  rtems_libio_t *iop,                                                 
  void          *buffer,                                              
  size_t         count                                                
)                                                                     
{                                                                     
 8001fa4:	b8 20 20 00 	mv r4,r1                                       
  IMFS_jnode_t *jnode = iop->pathinfo.node_access;                    
                                                                      
  int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop);         
 8001fa8:	29 81 00 50 	lw r1,(r12+80)                                 
 8001fac:	f8 00 21 68 	calli 800a54c <pipe_read>                      
 8001fb0:	b8 20 58 00 	mv r11,r1                                      
  if (err > 0)                                                        
 8001fb4:	4c 01 00 08 	bge r0,r1,8001fd4 <IMFS_fifo_read+0x44>        
    IMFS_update_atime(jnode);                                         
 8001fb8:	34 02 00 00 	mvi r2,0                                       
 8001fbc:	37 81 00 10 	addi r1,sp,16                                  
 8001fc0:	f8 00 04 ba 	calli 80032a8 <gettimeofday>                   
 8001fc4:	2b 81 00 10 	lw r1,(sp+16)                                  
 8001fc8:	b9 60 10 00 	mv r2,r11                                      
 8001fcc:	59 81 00 40 	sw (r12+64),r1                                 
 8001fd0:	e0 00 00 07 	bi 8001fec <IMFS_fifo_read+0x5c>               
                                                                      
  IMFS_FIFO_RETURN(err);                                              
 8001fd4:	34 02 00 00 	mvi r2,0                                       
 8001fd8:	44 20 00 05 	be r1,r0,8001fec <IMFS_fifo_read+0x5c>         <== NEVER TAKEN
 8001fdc:	f8 00 2c 7e 	calli 800d1d4 <__errno>                        
 8001fe0:	c8 0b 58 00 	sub r11,r0,r11                                 
 8001fe4:	58 2b 00 00 	sw (r1+0),r11                                  
 8001fe8:	34 02 ff ff 	mvi r2,-1                                      
}                                                                     
 8001fec:	b8 40 08 00 	mv r1,r2                                       
 8001ff0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8001ff4:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8001ff8:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8001ffc:	37 9c 00 14 	addi sp,sp,20                                  
 8002000:	c3 a0 00 00 	ret                                            
                                                                      

08001f18 <IMFS_fifo_write>: ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) {
 8001f18:	37 9c ff ec 	addi sp,sp,-20                                 
 8001f1c:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8001f20:	5b 8c 00 08 	sw (sp+8),r12                                  
 8001f24:	5b 9d 00 04 	sw (sp+4),ra                                   
  IMFS_jnode_t *jnode = iop->pathinfo.node_access;                    
 8001f28:	28 2c 00 1c 	lw r12,(r1+28)                                 
ssize_t IMFS_fifo_write(                                              
  rtems_libio_t *iop,                                                 
  const void    *buffer,                                              
  size_t         count                                                
)                                                                     
{                                                                     
 8001f2c:	b8 20 20 00 	mv r4,r1                                       
  IMFS_jnode_t *jnode = iop->pathinfo.node_access;                    
                                                                      
  int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop);        
 8001f30:	29 81 00 50 	lw r1,(r12+80)                                 
 8001f34:	f8 00 21 f1 	calli 800a6f8 <pipe_write>                     
 8001f38:	b8 20 58 00 	mv r11,r1                                      
  if (err > 0) {                                                      
 8001f3c:	4c 01 00 09 	bge r0,r1,8001f60 <IMFS_fifo_write+0x48>       
    IMFS_mtime_ctime_update(jnode);                                   
 8001f40:	34 02 00 00 	mvi r2,0                                       
 8001f44:	37 81 00 10 	addi r1,sp,16                                  
 8001f48:	f8 00 04 d8 	calli 80032a8 <gettimeofday>                   
 8001f4c:	2b 81 00 10 	lw r1,(sp+16)                                  
 8001f50:	b9 60 10 00 	mv r2,r11                                      
 8001f54:	59 81 00 44 	sw (r12+68),r1                                 
 8001f58:	59 81 00 48 	sw (r12+72),r1                                 
 8001f5c:	e0 00 00 07 	bi 8001f78 <IMFS_fifo_write+0x60>              
  }                                                                   
                                                                      
  IMFS_FIFO_RETURN(err);                                              
 8001f60:	34 02 00 00 	mvi r2,0                                       
 8001f64:	44 20 00 05 	be r1,r0,8001f78 <IMFS_fifo_write+0x60>        <== NEVER TAKEN
 8001f68:	f8 00 2c 9b 	calli 800d1d4 <__errno>                        
 8001f6c:	c8 0b 58 00 	sub r11,r0,r11                                 
 8001f70:	58 2b 00 00 	sw (r1+0),r11                                  
 8001f74:	34 02 ff ff 	mvi r2,-1                                      
}                                                                     
 8001f78:	b8 40 08 00 	mv r1,r2                                       
 8001f7c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8001f80:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8001f84:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8001f88:	37 9c 00 14 	addi sp,sp,20                                  
 8001f8c:	c3 a0 00 00 	ret                                            
                                                                      

08007be8 <IMFS_find_match_in_dir>: IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) {
 8007be8:	37 9c ff f0 	addi sp,sp,-16                                 
 8007bec:	5b 8b 00 10 	sw (sp+16),r11                                 
 8007bf0:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8007bf4:	5b 8d 00 08 	sw (sp+8),r13                                  
 8007bf8:	5b 9d 00 04 	sw (sp+4),ra                                   
 8007bfc:	b8 20 58 00 	mv r11,r1                                      
 8007c00:	b8 40 68 00 	mv r13,r2                                      
                                                                      
  /*                                                                  
   *  Check for "." and ".."                                          
   */                                                                 
                                                                      
  if ( !strcmp( name, dotname ) )                                     
 8007c04:	b8 40 08 00 	mv r1,r2                                       
 8007c08:	78 02 08 01 	mvhi r2,0x801                                  
 8007c0c:	38 42 1e 88 	ori r2,r2,0x1e88                               
 8007c10:	f8 00 12 0a 	calli 800c438 <strcmp>                         
 8007c14:	44 20 00 14 	be r1,r0,8007c64 <IMFS_find_match_in_dir+0x7c> <== NEVER TAKEN
    return directory;                                                 
                                                                      
  if ( !strcmp( name, dotdotname ) )                                  
 8007c18:	78 02 08 01 	mvhi r2,0x801                                  
 8007c1c:	b9 a0 08 00 	mv r1,r13                                      
 8007c20:	38 42 1e 8c 	ori r2,r2,0x1e8c                               
 8007c24:	f8 00 12 05 	calli 800c438 <strcmp>                         
 8007c28:	5c 20 00 03 	bne r1,r0,8007c34 <IMFS_find_match_in_dir+0x4c><== ALWAYS TAKEN
    return directory->Parent;                                         
 8007c2c:	29 6b 00 08 	lw r11,(r11+8)                                 <== NOT EXECUTED
 8007c30:	e0 00 00 0d 	bi 8007c64 <IMFS_find_match_in_dir+0x7c>       <== NOT EXECUTED
    if ( !strcmp( name, the_jnode->name ) )                           
      return the_jnode;                                               
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
 8007c34:	29 6c 00 50 	lw r12,(r11+80)                                
RTEMS_INLINE_ROUTINE bool _Chain_Is_tail(                             
  Chain_Control *the_chain,                                           
  const Chain_Node    *the_node                                       
)                                                                     
{                                                                     
  return (the_node == _Chain_Tail(the_chain));                        
 8007c38:	35 6b 00 54 	addi r11,r11,84                                
  if ( !strcmp( name, dotdotname ) )                                  
    return directory->Parent;                                         
                                                                      
  the_chain = &directory->info.directory.Entries;                     
                                                                      
  for ( the_node = rtems_chain_first( the_chain );                    
 8007c3c:	e0 00 00 06 	bi 8007c54 <IMFS_find_match_in_dir+0x6c>       
        !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 ) )                           
 8007c40:	b9 a0 08 00 	mv r1,r13                                      
 8007c44:	35 82 00 0c 	addi r2,r12,12                                 
 8007c48:	f8 00 11 fc 	calli 800c438 <strcmp>                         
 8007c4c:	44 20 00 05 	be r1,r0,8007c60 <IMFS_find_match_in_dir+0x78> 
                                                                      
  the_chain = &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 ) {                                 
 8007c50:	29 8c 00 00 	lw r12,(r12+0)                                 
  if ( !strcmp( name, dotdotname ) )                                  
    return directory->Parent;                                         
                                                                      
  the_chain = &directory->info.directory.Entries;                     
                                                                      
  for ( the_node = rtems_chain_first( the_chain );                    
 8007c54:	5d 8b ff fb 	bne r12,r11,8007c40 <IMFS_find_match_in_dir+0x58>
                                                                      
    if ( !strcmp( name, the_jnode->name ) )                           
      return the_jnode;                                               
  }                                                                   
                                                                      
  return 0;                                                           
 8007c58:	34 0b 00 00 	mvi r11,0                                      
 8007c5c:	e0 00 00 02 	bi 8007c64 <IMFS_find_match_in_dir+0x7c>       
                                                                      
  for ( the_node = rtems_chain_first( the_chain );                    
        !rtems_chain_is_tail( the_chain, the_node );                  
        the_node = the_node->next ) {                                 
                                                                      
    the_jnode = (IMFS_jnode_t *) the_node;                            
 8007c60:	b9 80 58 00 	mv r11,r12                                     
    if ( !strcmp( name, the_jnode->name ) )                           
      return the_jnode;                                               
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
 8007c64:	b9 60 08 00 	mv r1,r11                                      
 8007c68:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8007c6c:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8007c70:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8007c74:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8007c78:	37 9c 00 10 	addi sp,sp,16                                  
 8007c7c:	c3 a0 00 00 	ret                                            
                                                                      

08007b18 <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 ) {
 8007b18:	37 9c ff d8 	addi sp,sp,-40                                 
 8007b1c:	5b 8b 00 14 	sw (sp+20),r11                                 
 8007b20:	5b 8c 00 10 	sw (sp+16),r12                                 
 8007b24:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8007b28:	5b 8e 00 08 	sw (sp+8),r14                                  
 8007b2c:	5b 9d 00 04 	sw (sp+4),ra                                   
   /*                                                                 
    * 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;     
 8007b30:	28 2b 00 1c 	lw r11,(r1+28)                                 
   loc = temp_mt_entry->mt_fs_root;                                   
 8007b34:	28 25 00 20 	lw r5,(r1+32)                                  
 8007b38:	28 24 00 24 	lw r4,(r1+36)                                  
 8007b3c:	28 23 00 28 	lw r3,(r1+40)                                  
 8007b40:	28 22 00 2c 	lw r2,(r1+44)                                  
 8007b44:	5b 8b 00 18 	sw (sp+24),r11                                 
 8007b48:	5b 85 00 1c 	sw (sp+28),r5                                  
 8007b4c:	5b 84 00 20 	sw (sp+32),r4                                  
 8007b50:	5b 83 00 24 	sw (sp+36),r3                                  
 8007b54:	5b 82 00 28 	sw (sp+40),r2                                  
                                                                      
   /*                                                                 
    *  Set this to null to indicate that it is being unmounted.       
    */                                                                
                                                                      
   temp_mt_entry->mt_fs_root.node_access = NULL;                      
 8007b58:	58 20 00 1c 	sw (r1+28),r0                                  
                                                                      
   do {                                                               
     next = jnode->Parent;                                            
     loc.node_access = (void *)jnode;                                 
     IMFS_Set_handlers( &loc );                                       
 8007b5c:	37 8c 00 18 	addi r12,sp,24                                 
                                                                      
     if ( jnode->type != IMFS_DIRECTORY ) {                           
 8007b60:	34 0d 00 01 	mvi r13,1                                      
   temp_mt_entry->mt_fs_root.node_access = NULL;                      
                                                                      
   do {                                                               
     next = jnode->Parent;                                            
     loc.node_access = (void *)jnode;                                 
     IMFS_Set_handlers( &loc );                                       
 8007b64:	b9 80 08 00 	mv r1,r12                                      
    */                                                                
                                                                      
   temp_mt_entry->mt_fs_root.node_access = NULL;                      
                                                                      
   do {                                                               
     next = jnode->Parent;                                            
 8007b68:	29 6e 00 08 	lw r14,(r11+8)                                 
     loc.node_access = (void *)jnode;                                 
 8007b6c:	5b 8b 00 18 	sw (sp+24),r11                                 
     IMFS_Set_handlers( &loc );                                       
 8007b70:	fb ff fd b3 	calli 800723c <IMFS_Set_handlers>              
                                                                      
     if ( jnode->type != IMFS_DIRECTORY ) {                           
 8007b74:	29 61 00 4c 	lw r1,(r11+76)                                 
 8007b78:	5c 2d 00 04 	bne r1,r13,8007b88 <IMFS_fsunmount+0x70>       
        result = IMFS_unlink( NULL, &loc );                           
        if (result != 0)                                              
          return -1;                                                  
        jnode = next;                                                 
     } else if ( jnode_has_no_children( jnode ) ) {                   
 8007b7c:	29 62 00 50 	lw r2,(r11+80)                                 
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
 8007b80:	35 61 00 54 	addi r1,r11,84                                 
 8007b84:	5c 41 00 06 	bne r2,r1,8007b9c <IMFS_fsunmount+0x84>        
        result = IMFS_unlink( NULL, &loc );                           
 8007b88:	34 01 00 00 	mvi r1,0                                       
 8007b8c:	b9 80 10 00 	mv r2,r12                                      
 8007b90:	fb ff e4 5d 	calli 8000d04 <IMFS_unlink>                    
        if (result != 0)                                              
 8007b94:	5c 20 00 0b 	bne r1,r0,8007bc0 <IMFS_fsunmount+0xa8>        <== NEVER TAKEN
          return -1;                                                  
        jnode = next;                                                 
 8007b98:	b9 c0 58 00 	mv r11,r14                                     
     }                                                                
     if ( jnode != NULL ) {                                           
 8007b9c:	45 60 00 0b 	be r11,r0,8007bc8 <IMFS_fsunmount+0xb0>        
       if ( jnode->type == IMFS_DIRECTORY ) {                         
 8007ba0:	29 61 00 4c 	lw r1,(r11+76)                                 
 8007ba4:	5c 2d ff f0 	bne r1,r13,8007b64 <IMFS_fsunmount+0x4c>       <== NEVER TAKEN
       }                                                              
     }                                                                
   } while (jnode != NULL);                                           
                                                                      
   return 0;                                                          
}                                                                     
 8007ba8:	29 61 00 50 	lw r1,(r11+80)                                 
 8007bac:	35 62 00 54 	addi r2,r11,84                                 
          return -1;                                                  
        jnode = next;                                                 
     }                                                                
     if ( jnode != NULL ) {                                           
       if ( jnode->type == IMFS_DIRECTORY ) {                         
         if ( jnode_has_children( jnode ) )                           
 8007bb0:	44 22 ff ed 	be r1,r2,8007b64 <IMFS_fsunmount+0x4c>         
           jnode = jnode_get_first_child( jnode );                    
 8007bb4:	b8 20 58 00 	mv r11,r1                                      
       }                                                              
     }                                                                
   } while (jnode != NULL);                                           
 8007bb8:	5c 20 ff eb 	bne r1,r0,8007b64 <IMFS_fsunmount+0x4c>        <== ALWAYS TAKEN
 8007bbc:	e0 00 00 03 	bi 8007bc8 <IMFS_fsunmount+0xb0>               <== NOT EXECUTED
          return -1;                                                  
        jnode = next;                                                 
     } else if ( jnode_has_no_children( jnode ) ) {                   
        result = IMFS_unlink( NULL, &loc );                           
        if (result != 0)                                              
          return -1;                                                  
 8007bc0:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
 8007bc4:	e0 00 00 02 	bi 8007bcc <IMFS_fsunmount+0xb4>               <== NOT EXECUTED
           jnode = jnode_get_first_child( jnode );                    
       }                                                              
     }                                                                
   } while (jnode != NULL);                                           
                                                                      
   return 0;                                                          
 8007bc8:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 8007bcc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8007bd0:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8007bd4:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8007bd8:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8007bdc:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8007be0:	37 9c 00 28 	addi sp,sp,40                                  
 8007be4:	c3 a0 00 00 	ret                                            
                                                                      

08007c80 <IMFS_get_token>: const char *path, int pathlen, char *token, int *token_len ) {
 8007c80:	37 9c ff e0 	addi sp,sp,-32                                 
 8007c84:	5b 8b 00 20 	sw (sp+32),r11                                 
 8007c88:	5b 8c 00 1c 	sw (sp+28),r12                                 
 8007c8c:	5b 8d 00 18 	sw (sp+24),r13                                 
 8007c90:	5b 8e 00 14 	sw (sp+20),r14                                 
 8007c94:	5b 8f 00 10 	sw (sp+16),r15                                 
 8007c98:	5b 90 00 0c 	sw (sp+12),r16                                 
 8007c9c:	5b 91 00 08 	sw (sp+8),r17                                  
 8007ca0:	5b 9d 00 04 	sw (sp+4),ra                                   
  register int i = 0;                                                 
 8007ca4:	34 0b 00 00 	mvi r11,0                                      
  const char       *path,                                             
  int               pathlen,                                          
  char             *token,                                            
  int              *token_len                                         
)                                                                     
{                                                                     
 8007ca8:	b8 20 78 00 	mv r15,r1                                      
 8007cac:	b8 40 70 00 	mv r14,r2                                      
 8007cb0:	b8 60 68 00 	mv r13,r3                                      
 8007cb4:	b8 80 80 00 	mv r16,r4                                      
  register char c;                                                    
                                                                      
  /*                                                                  
   *  Copy a name into token.  (Remember NULL is a token.)            
   */                                                                 
  c = path[i];                                                        
 8007cb8:	40 2c 00 00 	lbu r12,(r1+0)                                 
  while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) {
                                                                      
     token[i] = c;                                                    
                                                                      
     if ( i == IMFS_NAME_MAX )                                        
 8007cbc:	34 11 00 20 	mvi r17,32                                     
                                                                      
  /*                                                                  
   *  Copy a name into token.  (Remember NULL is a token.)            
   */                                                                 
  c = path[i];                                                        
  while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) {
 8007cc0:	e0 00 00 07 	bi 8007cdc <IMFS_get_token+0x5c>               
#include <string.h>                                                   
                                                                      
#include "imfs.h"                                                     
#include <rtems/libio_.h>                                             
                                                                      
IMFS_token_types IMFS_get_token(                                      
 8007cc4:	b5 ab 08 00 	add r1,r13,r11                                 
   *  Copy a name into token.  (Remember NULL is a token.)            
   */                                                                 
  c = path[i];                                                        
  while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) {
                                                                      
     token[i] = c;                                                    
 8007cc8:	30 2c 00 00 	sb (r1+0),r12                                  
                                                                      
     if ( i == IMFS_NAME_MAX )                                        
 8007ccc:	45 71 00 27 	be r11,r17,8007d68 <IMFS_get_token+0xe8>       
       return IMFS_INVALID_TOKEN;                                     
                                                                      
     if ( !IMFS_is_valid_name_char(c) )                               
       type = IMFS_INVALID_TOKEN;                                     
                                                                      
     c = path [++i];                                                  
 8007cd0:	35 6b 00 01 	addi r11,r11,1                                 
#include <string.h>                                                   
                                                                      
#include "imfs.h"                                                     
#include <rtems/libio_.h>                                             
                                                                      
IMFS_token_types IMFS_get_token(                                      
 8007cd4:	b5 eb 08 00 	add r1,r15,r11                                 
       return IMFS_INVALID_TOKEN;                                     
                                                                      
     if ( !IMFS_is_valid_name_char(c) )                               
       type = IMFS_INVALID_TOKEN;                                     
                                                                      
     c = path [++i];                                                  
 8007cd8:	40 2c 00 00 	lbu r12,(r1+0)                                 
                                                                      
  /*                                                                  
   *  Copy a name into token.  (Remember NULL is a token.)            
   */                                                                 
  c = path[i];                                                        
  while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) {
 8007cdc:	b9 80 08 00 	mv r1,r12                                      
 8007ce0:	fb ff e9 b7 	calli 80023bc <rtems_filesystem_is_separator>  
 8007ce4:	5c 20 00 03 	bne r1,r0,8007cf0 <IMFS_get_token+0x70>        
 8007ce8:	e9 cb 10 00 	cmpg r2,r14,r11                                
 8007cec:	5c 41 ff f6 	bne r2,r1,8007cc4 <IMFS_get_token+0x44>        <== ALWAYS TAKEN
                                                                      
  /*                                                                  
   *  Copy a seperator into token.                                    
   */                                                                 
                                                                      
  if ( i == 0 ) {                                                     
 8007cf0:	5d 60 00 08 	bne r11,r0,8007d10 <IMFS_get_token+0x90>       
    token[i] = c;                                                     
 8007cf4:	31 ac 00 00 	sb (r13+0),r12                                 
                                                                      
    if ( (token[i] != '\0') && pathlen ) {                            
 8007cf8:	7d ce 00 00 	cmpnei r14,r14,0                               
 8007cfc:	7d 8c 00 00 	cmpnei r12,r12,0                               
 8007d00:	a1 8e 60 00 	and r12,r12,r14                                
 8007d04:	5d 8b 00 09 	bne r12,r11,8007d28 <IMFS_get_token+0xa8>      
      i++;                                                            
      type = IMFS_CURRENT_DIR;                                        
    } else {                                                          
      type = IMFS_NO_MORE_PATH;                                       
 8007d08:	34 0c 00 00 	mvi r12,0                                      
 8007d0c:	e0 00 00 09 	bi 8007d30 <IMFS_get_token+0xb0>               
    }                                                                 
  } else if (token[ i-1 ] != '\0') {                                  
 8007d10:	b5 ab 08 00 	add r1,r13,r11                                 
 8007d14:	40 22 ff ff 	lbu r2,(r1+-1)                                 
  char             *token,                                            
  int              *token_len                                         
)                                                                     
{                                                                     
  register int i = 0;                                                 
  IMFS_token_types  type = IMFS_NAME;                                 
 8007d18:	34 0c 00 03 	mvi r12,3                                      
      i++;                                                            
      type = IMFS_CURRENT_DIR;                                        
    } else {                                                          
      type = IMFS_NO_MORE_PATH;                                       
    }                                                                 
  } else if (token[ i-1 ] != '\0') {                                  
 8007d1c:	44 40 00 05 	be r2,r0,8007d30 <IMFS_get_token+0xb0>         <== NEVER TAKEN
    token[i] = '\0';                                                  
 8007d20:	30 20 00 00 	sb (r1+0),r0                                   
 8007d24:	e0 00 00 03 	bi 8007d30 <IMFS_get_token+0xb0>               
  if ( i == 0 ) {                                                     
    token[i] = c;                                                     
                                                                      
    if ( (token[i] != '\0') && pathlen ) {                            
      i++;                                                            
      type = IMFS_CURRENT_DIR;                                        
 8007d28:	34 0c 00 01 	mvi r12,1                                      
                                                                      
  if ( i == 0 ) {                                                     
    token[i] = c;                                                     
                                                                      
    if ( (token[i] != '\0') && pathlen ) {                            
      i++;                                                            
 8007d2c:	34 0b 00 01 	mvi r11,1                                      
                                                                      
  /*                                                                  
   *  Set token_len to the number of characters copied.               
   */                                                                 
                                                                      
  *token_len = i;                                                     
 8007d30:	5a 0b 00 00 	sw (r16+0),r11                                 
  /*                                                                  
   *  If we copied something that was not a seperator see if          
   *  it was a special name.                                          
   */                                                                 
                                                                      
  if ( type == IMFS_NAME ) {                                          
 8007d34:	34 01 00 03 	mvi r1,3                                       
 8007d38:	5d 81 00 11 	bne r12,r1,8007d7c <IMFS_get_token+0xfc>       
    if ( strcmp( token, "..") == 0 )                                  
 8007d3c:	78 02 08 01 	mvhi r2,0x801                                  
 8007d40:	b9 a0 08 00 	mv r1,r13                                      
 8007d44:	38 42 1e 90 	ori r2,r2,0x1e90                               
 8007d48:	f8 00 11 bc 	calli 800c438 <strcmp>                         
 8007d4c:	44 20 00 09 	be r1,r0,8007d70 <IMFS_get_token+0xf0>         
      type = IMFS_UP_DIR;                                             
    else if ( strcmp( token, "." ) == 0 )                             
 8007d50:	78 02 08 01 	mvhi r2,0x801                                  
 8007d54:	b9 a0 08 00 	mv r1,r13                                      
 8007d58:	38 42 1e 94 	ori r2,r2,0x1e94                               
 8007d5c:	f8 00 11 b7 	calli 800c438 <strcmp>                         
 8007d60:	44 20 00 06 	be r1,r0,8007d78 <IMFS_get_token+0xf8>         
 8007d64:	e0 00 00 06 	bi 8007d7c <IMFS_get_token+0xfc>               
  while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) {
                                                                      
     token[i] = c;                                                    
                                                                      
     if ( i == IMFS_NAME_MAX )                                        
       return IMFS_INVALID_TOKEN;                                     
 8007d68:	34 0c 00 04 	mvi r12,4                                      
 8007d6c:	e0 00 00 04 	bi 8007d7c <IMFS_get_token+0xfc>               
   *  it was a special name.                                          
   */                                                                 
                                                                      
  if ( type == IMFS_NAME ) {                                          
    if ( strcmp( token, "..") == 0 )                                  
      type = IMFS_UP_DIR;                                             
 8007d70:	34 0c 00 02 	mvi r12,2                                      
 8007d74:	e0 00 00 02 	bi 8007d7c <IMFS_get_token+0xfc>               
    else if ( strcmp( token, "." ) == 0 )                             
      type = IMFS_CURRENT_DIR;                                        
 8007d78:	34 0c 00 01 	mvi r12,1                                      
  }                                                                   
                                                                      
  return type;                                                        
}                                                                     
 8007d7c:	b9 80 08 00 	mv r1,r12                                      
 8007d80:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8007d84:	2b 8b 00 20 	lw r11,(sp+32)                                 
 8007d88:	2b 8c 00 1c 	lw r12,(sp+28)                                 
 8007d8c:	2b 8d 00 18 	lw r13,(sp+24)                                 
 8007d90:	2b 8e 00 14 	lw r14,(sp+20)                                 
 8007d94:	2b 8f 00 10 	lw r15,(sp+16)                                 
 8007d98:	2b 90 00 0c 	lw r16,(sp+12)                                 
 8007d9c:	2b 91 00 08 	lw r17,(sp+8)                                  
 8007da0:	37 9c 00 20 	addi sp,sp,32                                  
 8007da4:	c3 a0 00 00 	ret                                            
                                                                      

08000888 <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 ) {
 8000888:	37 9c ff e0 	addi sp,sp,-32                                 
 800088c:	5b 8b 00 20 	sw (sp+32),r11                                 
 8000890:	5b 8c 00 1c 	sw (sp+28),r12                                 
 8000894:	5b 8d 00 18 	sw (sp+24),r13                                 
 8000898:	5b 8e 00 14 	sw (sp+20),r14                                 
 800089c:	5b 8f 00 10 	sw (sp+16),r15                                 
 80008a0:	5b 90 00 0c 	sw (sp+12),r16                                 
 80008a4:	5b 91 00 08 	sw (sp+8),r17                                  
 80008a8:	5b 9d 00 04 	sw (sp+4),ra                                   
 80008ac:	b8 20 58 00 	mv r11,r1                                      
  IMFS_jnode_t                          *jnode;                       
                                                                      
  /*                                                                  
   * determine/check value for imfs_memfile_bytes_per_block           
   */                                                                 
  IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block,       
 80008b0:	78 01 08 01 	mvhi r1,0x801                                  
 80008b4:	38 21 30 14 	ori r1,r1,0x3014                               
 80008b8:	28 2c 00 00 	lw r12,(r1+0)                                  
   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          
)                                                                     
{                                                                     
 80008bc:	b8 40 88 00 	mv r17,r2                                      
 80008c0:	b8 60 80 00 	mv r16,r3                                      
 80008c4:	b8 80 70 00 	mv r14,r4                                      
 80008c8:	b8 a0 78 00 	mv r15,r5                                      
  IMFS_jnode_t                          *jnode;                       
                                                                      
  /*                                                                  
   * determine/check value for imfs_memfile_bytes_per_block           
   */                                                                 
  IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block,       
 80008cc:	34 0d 00 06 	mvi r13,6                                      
  int bit_mask;                                                       
                                                                      
  /*                                                                  
   * check, whether requested bytes per block is valid                
   */                                                                 
  for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) {
 80008d0:	34 01 00 10 	mvi r1,16                                      
    if (bit_mask == requested_bytes_per_block) {                      
 80008d4:	44 2c 00 07 	be r1,r12,80008f0 <IMFS_initialize_support+0x68>
      is_valid = true;                                                
      break;                                                          
    }                                                                 
    if(bit_mask > requested_bytes_per_block)                          
 80008d8:	48 2c 00 05 	bg r1,r12,80008ec <IMFS_initialize_support+0x64>
  int bit_mask;                                                       
                                                                      
  /*                                                                  
   * check, whether requested bytes per block is valid                
   */                                                                 
  for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) {
 80008dc:	34 02 00 01 	mvi r2,1                                       
 80008e0:	35 ad ff ff 	addi r13,r13,-1                                
 80008e4:	f8 00 3f e9 	calli 8010888 <__ashlsi3>                      
 80008e8:	5d a0 ff fb 	bne r13,r0,80008d4 <IMFS_initialize_support+0x4c><== ALWAYS TAKEN
    if(bit_mask > requested_bytes_per_block)                          
      break;                                                          
  }                                                                   
  *dest_bytes_per_block = ((is_valid)                                 
			   ? requested_bytes_per_block                                     
			   : default_bytes_per_block);                                     
 80008ec:	34 0c 00 80 	mvi r12,128                                    
      break;                                                          
    }                                                                 
    if(bit_mask > requested_bytes_per_block)                          
      break;                                                          
  }                                                                   
  *dest_bytes_per_block = ((is_valid)                                 
 80008f0:	78 01 08 01 	mvhi r1,0x801                                  
 80008f4:	38 21 36 8c 	ori r1,r1,0x368c                               
 80008f8:	58 2c 00 00 	sw (r1+0),r12                                  
  /*                                                                  
   *  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();
 80008fc:	f8 00 1a 40 	calli 80071fc <IMFS_create_root_node>          
  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;
 8000900:	78 02 08 01 	mvhi r2,0x801                                  
  /*                                                                  
   *  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();
 8000904:	59 61 00 1c 	sw (r11+28),r1                                 
  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;
 8000908:	38 42 1e 3c 	ori r2,r2,0x1e3c                               
 800090c:	34 03 00 30 	mvi r3,48                                      
  /*                                                                  
   *  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();
 8000910:	b8 20 60 00 	mv r12,r1                                      
  temp_mt_entry->mt_fs_root.handlers         = directory_handlers;    
 8000914:	59 6e 00 24 	sw (r11+36),r14                                
  temp_mt_entry->mt_fs_root.ops              = op_table;              
 8000918:	59 71 00 28 	sw (r11+40),r17                                
  temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS;
 800091c:	35 61 00 38 	addi r1,r11,56                                 
 8000920:	f8 00 2d 52 	calli 800be68 <memcpy>                         
                                                                      
  /*                                                                  
   * Create custom file system data.                                  
   */                                                                 
  fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) );                    
 8000924:	34 02 00 14 	mvi r2,20                                      
 8000928:	34 01 00 01 	mvi r1,1                                       
 800092c:	f8 00 01 ec 	calli 80010dc <calloc>                         
 8000930:	b8 20 10 00 	mv r2,r1                                       
  if ( !fs_info ) {                                                   
 8000934:	5c 20 00 08 	bne r1,r0,8000954 <IMFS_initialize_support+0xcc>
    free(temp_mt_entry->mt_fs_root.node_access);                      
 8000938:	b9 80 08 00 	mv r1,r12                                      
 800093c:	f8 00 02 79 	calli 8001320 <free>                           
    rtems_set_errno_and_return_minus_one(ENOMEM);                     
 8000940:	f8 00 2a 94 	calli 800b390 <__errno>                        
 8000944:	34 02 00 0c 	mvi r2,12                                      
 8000948:	58 22 00 00 	sw (r1+0),r2                                   
 800094c:	34 01 ff ff 	mvi r1,-1                                      
 8000950:	e0 00 00 0f 	bi 800098c <IMFS_initialize_support+0x104>     
                                                                      
  /*                                                                  
   * Set st_ino for the root to 1.                                    
   */                                                                 
                                                                      
  fs_info->instance              = imfs_instance++;                   
 8000954:	78 06 08 01 	mvhi r6,0x801                                  
 8000958:	38 c6 36 90 	ori r6,r6,0x3690                               
  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;                                   
 800095c:	59 61 00 34 	sw (r11+52),r1                                 
                                                                      
  /*                                                                  
   * Set st_ino for the root to 1.                                    
   */                                                                 
                                                                      
  fs_info->instance              = imfs_instance++;                   
 8000960:	28 c1 00 00 	lw r1,(r6+0)                                   
  fs_info->ino_count             = 1;                                 
  fs_info->memfile_handlers      = memfile_handlers;                  
 8000964:	58 50 00 08 	sw (r2+8),r16                                  
  fs_info->directory_handlers    = directory_handlers;                
 8000968:	58 4e 00 0c 	sw (r2+12),r14                                 
                                                                      
  /*                                                                  
   * Set st_ino for the root to 1.                                    
   */                                                                 
                                                                      
  fs_info->instance              = imfs_instance++;                   
 800096c:	58 41 00 00 	sw (r2+0),r1                                   
 8000970:	34 21 00 01 	addi r1,r1,1                                   
 8000974:	58 c1 00 00 	sw (r6+0),r1                                   
  fs_info->ino_count             = 1;                                 
 8000978:	34 01 00 01 	mvi r1,1                                       
 800097c:	58 41 00 04 	sw (r2+4),r1                                   
  fs_info->memfile_handlers      = memfile_handlers;                  
  fs_info->directory_handlers    = directory_handlers;                
  fs_info->fifo_handlers         = fifo_handlers;                     
 8000980:	58 4f 00 10 	sw (r2+16),r15                                 
                                                                      
  jnode = temp_mt_entry->mt_fs_root.node_access;                      
  jnode->st_ino = fs_info->ino_count;                                 
 8000984:	59 81 00 38 	sw (r12+56),r1                                 
                                                                      
  return 0;                                                           
 8000988:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 800098c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8000990:	2b 8b 00 20 	lw r11,(sp+32)                                 
 8000994:	2b 8c 00 1c 	lw r12,(sp+28)                                 
 8000998:	2b 8d 00 18 	lw r13,(sp+24)                                 
 800099c:	2b 8e 00 14 	lw r14,(sp+20)                                 
 80009a0:	2b 8f 00 10 	lw r15,(sp+16)                                 
 80009a4:	2b 90 00 0c 	lw r16,(sp+12)                                 
 80009a8:	2b 91 00 08 	lw r17,(sp+8)                                  
 80009ac:	37 9c 00 20 	addi sp,sp,32                                  
 80009b0:	c3 a0 00 00 	ret                                            
                                                                      

0800a14c <IMFS_memfile_extend>: */ MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) {
 800a14c:	37 9c ff e0 	addi sp,sp,-32                                 
 800a150:	5b 8b 00 20 	sw (sp+32),r11                                 
 800a154:	5b 8c 00 1c 	sw (sp+28),r12                                 
 800a158:	5b 8d 00 18 	sw (sp+24),r13                                 
 800a15c:	5b 8e 00 14 	sw (sp+20),r14                                 
 800a160:	5b 8f 00 10 	sw (sp+16),r15                                 
 800a164:	5b 90 00 0c 	sw (sp+12),r16                                 
 800a168:	5b 91 00 08 	sw (sp+8),r17                                  
 800a16c:	5b 9d 00 04 	sw (sp+4),ra                                   
 800a170:	b8 20 60 00 	mv r12,r1                                      
    IMFS_assert( the_jnode->type == IMFS_MEMORY_FILE );               
                                                                      
  /*                                                                  
   *  Verify new file size is supported                               
   */                                                                 
  if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )                      
 800a174:	78 01 08 01 	mvhi r1,0x801                                  
 800a178:	38 21 36 8c 	ori r1,r1,0x368c                               
 800a17c:	28 2b 00 00 	lw r11,(r1+0)                                  
 */                                                                   
MEMFILE_STATIC int IMFS_memfile_extend(                               
   IMFS_jnode_t  *the_jnode,                                          
   off_t          new_length                                          
)                                                                     
{                                                                     
 800a180:	b8 40 68 00 	mv r13,r2                                      
    IMFS_assert( the_jnode->type == IMFS_MEMORY_FILE );               
                                                                      
  /*                                                                  
   *  Verify new file size is supported                               
   */                                                                 
  if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )                      
 800a184:	34 02 00 02 	mvi r2,2                                       
 800a188:	b9 60 08 00 	mv r1,r11                                      
 800a18c:	f8 00 1a 0d 	calli 80109c0 <__lshrsi3>                      
 800a190:	b8 20 70 00 	mv r14,r1                                      
 800a194:	b9 c0 10 00 	mv r2,r14                                      
 800a198:	34 21 00 01 	addi r1,r1,1                                   
 800a19c:	f8 00 1a 30 	calli 8010a5c <__mulsi3>                       
 800a1a0:	b9 c0 10 00 	mv r2,r14                                      
 800a1a4:	34 21 00 01 	addi r1,r1,1                                   
 800a1a8:	f8 00 1a 2d 	calli 8010a5c <__mulsi3>                       
 800a1ac:	34 21 ff ff 	addi r1,r1,-1                                  
 800a1b0:	b9 60 10 00 	mv r2,r11                                      
 800a1b4:	f8 00 1a 2a 	calli 8010a5c <__mulsi3>                       
 800a1b8:	54 2d 00 04 	bgu r1,r13,800a1c8 <IMFS_memfile_extend+0x7c>  
    rtems_set_errno_and_return_minus_one( EINVAL );                   
 800a1bc:	f8 00 04 75 	calli 800b390 <__errno>                        
 800a1c0:	34 02 00 16 	mvi r2,22                                      
 800a1c4:	e0 00 00 26 	bi 800a25c <IMFS_memfile_extend+0x110>         
                                                                      
  /*                                                                  
   *  Verify new file size is actually larger than current size       
   */                                                                 
  if ( new_length <= the_jnode->info.file.size )                      
 800a1c8:	b9 a0 08 00 	mv r1,r13                                      
 800a1cc:	34 02 00 1f 	mvi r2,31                                      
 800a1d0:	f8 00 19 d5 	calli 8010924 <__ashrsi3>                      
 800a1d4:	29 8f 00 50 	lw r15,(r12+80)                                
 800a1d8:	b8 20 70 00 	mv r14,r1                                      
 800a1dc:	29 90 00 54 	lw r16,(r12+84)                                
 800a1e0:	48 2f 00 04 	bg r1,r15,800a1f0 <IMFS_memfile_extend+0xa4>   <== NEVER TAKEN
 800a1e4:	5c 2f 00 25 	bne r1,r15,800a278 <IMFS_memfile_extend+0x12c> <== NEVER TAKEN
 800a1e8:	55 b0 00 02 	bgu r13,r16,800a1f0 <IMFS_memfile_extend+0xa4> 
 800a1ec:	e0 00 00 23 	bi 800a278 <IMFS_memfile_extend+0x12c>         
    return 0;                                                         
                                                                      
  /*                                                                  
   *  Calculate the number of range of blocks to allocate             
   */                                                                 
  new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK;             
 800a1f0:	b9 60 10 00 	mv r2,r11                                      
 800a1f4:	b9 a0 08 00 	mv r1,r13                                      
 800a1f8:	f8 00 1a 25 	calli 8010a8c <__divsi3>                       
  old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK;
 800a1fc:	34 02 00 1f 	mvi r2,31                                      
    return 0;                                                         
                                                                      
  /*                                                                  
   *  Calculate the number of range of blocks to allocate             
   */                                                                 
  new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK;             
 800a200:	b8 20 88 00 	mv r17,r1                                      
  old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK;
 800a204:	b9 60 08 00 	mv r1,r11                                      
 800a208:	f8 00 19 c7 	calli 8010924 <__ashrsi3>                      
 800a20c:	b8 20 18 00 	mv r3,r1                                       
 800a210:	b9 60 20 00 	mv r4,r11                                      
 800a214:	b9 e0 08 00 	mv r1,r15                                      
 800a218:	ba 00 10 00 	mv r2,r16                                      
 800a21c:	f8 00 13 d0 	calli 800f15c <__divdi3>                       
 800a220:	b8 40 78 00 	mv r15,r2                                      
                                                                      
  /*                                                                  
   *  Now allocate each of those blocks.                              
   */                                                                 
  for ( block=old_blocks ; block<=new_blocks ; block++ ) {            
 800a224:	b8 40 58 00 	mv r11,r2                                      
 800a228:	e0 00 00 11 	bi 800a26c <IMFS_memfile_extend+0x120>         
    if ( IMFS_memfile_addblock( the_jnode, block ) ) {                
 800a22c:	b9 80 08 00 	mv r1,r12                                      
 800a230:	b9 60 10 00 	mv r2,r11                                      
 800a234:	fb ff ff 23 	calli 8009ec0 <IMFS_memfile_addblock>          
 800a238:	44 20 00 0c 	be r1,r0,800a268 <IMFS_memfile_extend+0x11c>   
 800a23c:	e0 00 00 05 	bi 800a250 <IMFS_memfile_extend+0x104>         
       for ( ; block>=old_blocks ; block-- ) {                        
         IMFS_memfile_remove_block( the_jnode, block );               
 800a240:	b9 60 10 00 	mv r2,r11                                      
 800a244:	b9 80 08 00 	mv r1,r12                                      
 800a248:	fb ff ff b5 	calli 800a11c <IMFS_memfile_remove_block>      
  /*                                                                  
   *  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-- ) {                        
 800a24c:	35 6b ff ff 	addi r11,r11,-1                                
 800a250:	51 6f ff fc 	bgeu r11,r15,800a240 <IMFS_memfile_extend+0xf4>
         IMFS_memfile_remove_block( the_jnode, block );               
       }                                                              
       rtems_set_errno_and_return_minus_one( ENOSPC );                
 800a254:	f8 00 04 4f 	calli 800b390 <__errno>                        
 800a258:	34 02 00 1c 	mvi r2,28                                      
 800a25c:	58 22 00 00 	sw (r1+0),r2                                   
 800a260:	34 01 ff ff 	mvi r1,-1                                      
 800a264:	e0 00 00 06 	bi 800a27c <IMFS_memfile_extend+0x130>         
  old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK;
                                                                      
  /*                                                                  
   *  Now allocate each of those blocks.                              
   */                                                                 
  for ( block=old_blocks ; block<=new_blocks ; block++ ) {            
 800a268:	35 6b 00 01 	addi r11,r11,1                                 
 800a26c:	52 2b ff f0 	bgeu r17,r11,800a22c <IMFS_memfile_extend+0xe0>
  }                                                                   
                                                                      
  /*                                                                  
   *  Set the new length of the file.                                 
   */                                                                 
  the_jnode->info.file.size = new_length;                             
 800a270:	59 8e 00 50 	sw (r12+80),r14                                
 800a274:	59 8d 00 54 	sw (r12+84),r13                                
                                                                      
  /*                                                                  
   *  Verify new file size is actually larger than current size       
   */                                                                 
  if ( new_length <= the_jnode->info.file.size )                      
    return 0;                                                         
 800a278:	34 01 00 00 	mvi r1,0                                       
  /*                                                                  
   *  Set the new length of the file.                                 
   */                                                                 
  the_jnode->info.file.size = new_length;                             
  return 0;                                                           
}                                                                     
 800a27c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800a280:	2b 8b 00 20 	lw r11,(sp+32)                                 
 800a284:	2b 8c 00 1c 	lw r12,(sp+28)                                 
 800a288:	2b 8d 00 18 	lw r13,(sp+24)                                 
 800a28c:	2b 8e 00 14 	lw r14,(sp+20)                                 
 800a290:	2b 8f 00 10 	lw r15,(sp+16)                                 
 800a294:	2b 90 00 0c 	lw r16,(sp+12)                                 
 800a298:	2b 91 00 08 	lw r17,(sp+8)                                  
 800a29c:	37 9c 00 20 	addi sp,sp,32                                  
 800a2a0:	c3 a0 00 00 	ret                                            
                                                                      

08009a04 <IMFS_memfile_get_block_pointer>: #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) {
 8009a04:	37 9c ff e0 	addi sp,sp,-32                                 
 8009a08:	5b 8b 00 20 	sw (sp+32),r11                                 
 8009a0c:	5b 8c 00 1c 	sw (sp+28),r12                                 
 8009a10:	5b 8d 00 18 	sw (sp+24),r13                                 
 8009a14:	5b 8e 00 14 	sw (sp+20),r14                                 
 8009a18:	5b 8f 00 10 	sw (sp+16),r15                                 
 8009a1c:	5b 90 00 0c 	sw (sp+12),r16                                 
 8009a20:	5b 91 00 08 	sw (sp+8),r17                                  
 8009a24:	5b 9d 00 04 	sw (sp+4),ra                                   
 8009a28:	b8 20 68 00 	mv r13,r1                                      
  my_block = block;                                                   
                                                                      
  /*                                                                  
   *  Is the block number in the simple indirect portion?             
   */                                                                 
  if ( my_block <= LAST_INDIRECT ) {                                  
 8009a2c:	78 01 08 01 	mvhi r1,0x801                                  
 8009a30:	38 21 36 8c 	ori r1,r1,0x368c                               
 8009a34:	28 21 00 00 	lw r1,(r1+0)                                   
#endif                                                                
   IMFS_jnode_t   *the_jnode,                                         
   unsigned int    block,                                             
   int             malloc_it                                          
)                                                                     
{                                                                     
 8009a38:	b8 40 70 00 	mv r14,r2                                      
  my_block = block;                                                   
                                                                      
  /*                                                                  
   *  Is the block number in the simple indirect portion?             
   */                                                                 
  if ( my_block <= LAST_INDIRECT ) {                                  
 8009a3c:	34 02 00 02 	mvi r2,2                                       
#endif                                                                
   IMFS_jnode_t   *the_jnode,                                         
   unsigned int    block,                                             
   int             malloc_it                                          
)                                                                     
{                                                                     
 8009a40:	b8 60 78 00 	mv r15,r3                                      
  my_block = block;                                                   
                                                                      
  /*                                                                  
   *  Is the block number in the simple indirect portion?             
   */                                                                 
  if ( my_block <= LAST_INDIRECT ) {                                  
 8009a44:	f8 00 1b df 	calli 80109c0 <__lshrsi3>                      
 8009a48:	b8 20 60 00 	mv r12,r1                                      
 8009a4c:	34 21 ff ff 	addi r1,r1,-1                                  
 8009a50:	55 c1 00 12 	bgu r14,r1,8009a98 <IMFS_memfile_get_block_pointer+0x94>
    p = info->indirect;                                               
 8009a54:	29 ac 00 58 	lw r12,(r13+88)                                
                                                                      
    if ( malloc_it ) {                                                
 8009a58:	45 e0 00 0c 	be r15,r0,8009a88 <IMFS_memfile_get_block_pointer+0x84>
                                                                      
      if ( !p ) {                                                     
 8009a5c:	5d 80 00 05 	bne r12,r0,8009a70 <IMFS_memfile_get_block_pointer+0x6c>
        p = memfile_alloc_block();                                    
 8009a60:	fb ff ff d9 	calli 80099c4 <memfile_alloc_block>            
        if ( !p )                                                     
           return 0;                                                  
 8009a64:	34 0b 00 00 	mvi r11,0                                      
                                                                      
    if ( malloc_it ) {                                                
                                                                      
      if ( !p ) {                                                     
        p = memfile_alloc_block();                                    
        if ( !p )                                                     
 8009a68:	44 2c 00 81 	be r1,r12,8009c6c <IMFS_memfile_get_block_pointer+0x268><== NEVER TAKEN
           return 0;                                                  
        info->indirect = p;                                           
 8009a6c:	59 a1 00 58 	sw (r13+88),r1                                 
      }                                                               
      return &info->indirect[ my_block ];                             
 8009a70:	b9 c0 08 00 	mv r1,r14                                      
 8009a74:	34 02 00 02 	mvi r2,2                                       
 8009a78:	f8 00 1b 84 	calli 8010888 <__ashlsi3>                      
 8009a7c:	29 ab 00 58 	lw r11,(r13+88)                                
 8009a80:	b5 61 58 00 	add r11,r11,r1                                 
 8009a84:	e0 00 00 7a 	bi 8009c6c <IMFS_memfile_get_block_pointer+0x268>
    }                                                                 
                                                                      
    if ( !p )                                                         
      return 0;                                                       
 8009a88:	34 0b 00 00 	mvi r11,0                                      
                                                                      
    return &info->indirect[ my_block ];                               
 8009a8c:	b9 c0 08 00 	mv r1,r14                                      
        info->indirect = p;                                           
      }                                                               
      return &info->indirect[ my_block ];                             
    }                                                                 
                                                                      
    if ( !p )                                                         
 8009a90:	5d 8b 00 74 	bne r12,r11,8009c60 <IMFS_memfile_get_block_pointer+0x25c><== ALWAYS TAKEN
 8009a94:	e0 00 00 76 	bi 8009c6c <IMFS_memfile_get_block_pointer+0x268><== NOT EXECUTED
                                                                      
  /*                                                                  
   *  Is the block number in the doubly indirect portion?             
   */                                                                 
                                                                      
  if ( my_block <= LAST_DOUBLY_INDIRECT ) {                           
 8009a98:	35 81 00 01 	addi r1,r12,1                                  
 8009a9c:	b9 80 10 00 	mv r2,r12                                      
 8009aa0:	f8 00 1b ef 	calli 8010a5c <__mulsi3>                       
 8009aa4:	b8 20 80 00 	mv r16,r1                                      
 8009aa8:	34 21 ff ff 	addi r1,r1,-1                                  
 8009aac:	55 c1 00 2b 	bgu r14,r1,8009b58 <IMFS_memfile_get_block_pointer+0x154>
    my_block -= FIRST_DOUBLY_INDIRECT;                                
 8009ab0:	c9 cc 70 00 	sub r14,r14,r12                                
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
 8009ab4:	b9 80 10 00 	mv r2,r12                                      
 8009ab8:	b9 c0 08 00 	mv r1,r14                                      
 8009abc:	f8 00 1c 5d 	calli 8010c30 <__umodsi3>                      
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
 8009ac0:	b9 80 10 00 	mv r2,r12                                      
   */                                                                 
                                                                      
  if ( my_block <= LAST_DOUBLY_INDIRECT ) {                           
    my_block -= FIRST_DOUBLY_INDIRECT;                                
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
 8009ac4:	b8 20 80 00 	mv r16,r1                                      
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
 8009ac8:	b9 c0 08 00 	mv r1,r14                                      
 8009acc:	f8 00 1c 49 	calli 8010bf0 <__udivsi3>                      
 8009ad0:	b8 20 70 00 	mv r14,r1                                      
                                                                      
    p = info->doubly_indirect;                                        
 8009ad4:	29 ac 00 5c 	lw r12,(r13+92)                                
    if ( malloc_it ) {                                                
 8009ad8:	45 e0 00 17 	be r15,r0,8009b34 <IMFS_memfile_get_block_pointer+0x130>
                                                                      
      if ( !p ) {                                                     
 8009adc:	5d 80 00 06 	bne r12,r0,8009af4 <IMFS_memfile_get_block_pointer+0xf0>
        p = memfile_alloc_block();                                    
 8009ae0:	fb ff ff b9 	calli 80099c4 <memfile_alloc_block>            
 8009ae4:	b8 20 60 00 	mv r12,r1                                      
        if ( !p )                                                     
           return 0;                                                  
 8009ae8:	34 0b 00 00 	mvi r11,0                                      
    p = info->doubly_indirect;                                        
    if ( malloc_it ) {                                                
                                                                      
      if ( !p ) {                                                     
        p = memfile_alloc_block();                                    
        if ( !p )                                                     
 8009aec:	44 20 00 60 	be r1,r0,8009c6c <IMFS_memfile_get_block_pointer+0x268><== NEVER TAKEN
           return 0;                                                  
        info->doubly_indirect = p;                                    
 8009af0:	59 a1 00 5c 	sw (r13+92),r1                                 
      }                                                               
                                                                      
      p1 = (block_p *)p[ doubly ];                                    
 8009af4:	b9 c0 08 00 	mv r1,r14                                      
 8009af8:	34 02 00 02 	mvi r2,2                                       
 8009afc:	f8 00 1b 63 	calli 8010888 <__ashlsi3>                      
 8009b00:	b5 81 60 00 	add r12,r12,r1                                 
 8009b04:	29 8d 00 00 	lw r13,(r12+0)                                 
      if ( !p1 ) {                                                    
 8009b08:	5d a0 00 06 	bne r13,r0,8009b20 <IMFS_memfile_get_block_pointer+0x11c>
        p1 = memfile_alloc_block();                                   
 8009b0c:	fb ff ff ae 	calli 80099c4 <memfile_alloc_block>            
 8009b10:	b8 20 68 00 	mv r13,r1                                      
        if ( !p1 )                                                    
           return 0;                                                  
 8009b14:	34 0b 00 00 	mvi r11,0                                      
      }                                                               
                                                                      
      p1 = (block_p *)p[ doubly ];                                    
      if ( !p1 ) {                                                    
        p1 = memfile_alloc_block();                                   
        if ( !p1 )                                                    
 8009b18:	44 20 00 55 	be r1,r0,8009c6c <IMFS_memfile_get_block_pointer+0x268><== NEVER TAKEN
           return 0;                                                  
        p[ doubly ] = (block_p) p1;                                   
 8009b1c:	59 81 00 00 	sw (r12+0),r1                                  
      }                                                               
                                                                      
      return (block_p *)&p1[ singly ];                                
 8009b20:	ba 00 08 00 	mv r1,r16                                      
 8009b24:	34 02 00 02 	mvi r2,2                                       
 8009b28:	f8 00 1b 58 	calli 8010888 <__ashlsi3>                      
 8009b2c:	b5 a1 58 00 	add r11,r13,r1                                 
 8009b30:	e0 00 00 4f 	bi 8009c6c <IMFS_memfile_get_block_pointer+0x268>
    }                                                                 
                                                                      
    if ( !p )                                                         
      return 0;                                                       
 8009b34:	34 0b 00 00 	mvi r11,0                                      
      }                                                               
                                                                      
      return (block_p *)&p1[ singly ];                                
    }                                                                 
                                                                      
    if ( !p )                                                         
 8009b38:	45 8b 00 4d 	be r12,r11,8009c6c <IMFS_memfile_get_block_pointer+0x268><== NEVER TAKEN
      return 0;                                                       
                                                                      
    p = (block_p *)p[ doubly ];                                       
 8009b3c:	34 02 00 02 	mvi r2,2                                       
 8009b40:	f8 00 1b 52 	calli 8010888 <__ashlsi3>                      
 8009b44:	b5 81 08 00 	add r1,r12,r1                                  
 8009b48:	28 2c 00 00 	lw r12,(r1+0)                                  
    if ( !p )                                                         
      return 0;                                                       
                                                                      
    return (block_p *)&p[ singly ];                                   
 8009b4c:	ba 00 08 00 	mv r1,r16                                      
                                                                      
    if ( !p )                                                         
      return 0;                                                       
                                                                      
    p = (block_p *)p[ doubly ];                                       
    if ( !p )                                                         
 8009b50:	5d 80 00 44 	bne r12,r0,8009c60 <IMFS_memfile_get_block_pointer+0x25c><== ALWAYS TAKEN
 8009b54:	e0 00 00 46 	bi 8009c6c <IMFS_memfile_get_block_pointer+0x268><== NOT EXECUTED
  }                                                                   
                                                                      
  /*                                                                  
   *  Is the block number in the triply indirect portion?             
   */                                                                 
  if ( my_block <= LAST_TRIPLY_INDIRECT ) {                           
 8009b58:	36 01 00 01 	addi r1,r16,1                                  
 8009b5c:	b9 80 10 00 	mv r2,r12                                      
 8009b60:	f8 00 1b bf 	calli 8010a5c <__mulsi3>                       
 8009b64:	34 21 ff ff 	addi r1,r1,-1                                  
  }                                                                   
                                                                      
  /*                                                                  
   *  This means the requested block number is out of range.          
   */                                                                 
  return 0;                                                           
 8009b68:	34 0b 00 00 	mvi r11,0                                      
  }                                                                   
                                                                      
  /*                                                                  
   *  Is the block number in the triply indirect portion?             
   */                                                                 
  if ( my_block <= LAST_TRIPLY_INDIRECT ) {                           
 8009b6c:	55 c1 00 40 	bgu r14,r1,8009c6c <IMFS_memfile_get_block_pointer+0x268><== NEVER TAKEN
    my_block -= FIRST_TRIPLY_INDIRECT;                                
 8009b70:	c9 d0 70 00 	sub r14,r14,r16                                
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
 8009b74:	b9 80 10 00 	mv r2,r12                                      
 8009b78:	b9 c0 08 00 	mv r1,r14                                      
 8009b7c:	f8 00 1c 2d 	calli 8010c30 <__umodsi3>                      
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
 8009b80:	b9 80 10 00 	mv r2,r12                                      
   *  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;                     
 8009b84:	b8 20 88 00 	mv r17,r1                                      
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
 8009b88:	b9 c0 08 00 	mv r1,r14                                      
 8009b8c:	f8 00 1c 19 	calli 8010bf0 <__udivsi3>                      
    triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS;                       
 8009b90:	b9 80 10 00 	mv r2,r12                                      
   */                                                                 
  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;                     
 8009b94:	b8 20 70 00 	mv r14,r1                                      
    triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS;                       
 8009b98:	f8 00 1c 16 	calli 8010bf0 <__udivsi3>                      
    doubly %= IMFS_MEMFILE_BLOCK_SLOTS;                               
 8009b9c:	b9 80 10 00 	mv r2,r12                                      
  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;                       
 8009ba0:	b8 20 80 00 	mv r16,r1                                      
    doubly %= IMFS_MEMFILE_BLOCK_SLOTS;                               
 8009ba4:	b9 c0 08 00 	mv r1,r14                                      
 8009ba8:	f8 00 1c 22 	calli 8010c30 <__umodsi3>                      
 8009bac:	b8 20 70 00 	mv r14,r1                                      
                                                                      
    p = info->triply_indirect;                                        
 8009bb0:	29 ac 00 60 	lw r12,(r13+96)                                
                                                                      
    if ( malloc_it ) {                                                
 8009bb4:	45 e0 00 1d 	be r15,r0,8009c28 <IMFS_memfile_get_block_pointer+0x224>
      if ( !p ) {                                                     
 8009bb8:	5d 80 00 05 	bne r12,r0,8009bcc <IMFS_memfile_get_block_pointer+0x1c8>
        p = memfile_alloc_block();                                    
 8009bbc:	fb ff ff 82 	calli 80099c4 <memfile_alloc_block>            
 8009bc0:	b8 20 60 00 	mv r12,r1                                      
        if ( !p )                                                     
 8009bc4:	44 20 00 2a 	be r1,r0,8009c6c <IMFS_memfile_get_block_pointer+0x268><== NEVER TAKEN
           return 0;                                                  
        info->triply_indirect = p;                                    
 8009bc8:	59 a1 00 60 	sw (r13+96),r1                                 
      }                                                               
                                                                      
      p1 = (block_p *) p[ triply ];                                   
 8009bcc:	ba 00 08 00 	mv r1,r16                                      
 8009bd0:	34 02 00 02 	mvi r2,2                                       
 8009bd4:	f8 00 1b 2d 	calli 8010888 <__ashlsi3>                      
 8009bd8:	b5 81 60 00 	add r12,r12,r1                                 
 8009bdc:	29 8d 00 00 	lw r13,(r12+0)                                 
      if ( !p1 ) {                                                    
 8009be0:	5d a0 00 06 	bne r13,r0,8009bf8 <IMFS_memfile_get_block_pointer+0x1f4>
        p1 = memfile_alloc_block();                                   
 8009be4:	fb ff ff 78 	calli 80099c4 <memfile_alloc_block>            
 8009be8:	b8 20 68 00 	mv r13,r1                                      
        if ( !p1 )                                                    
           return 0;                                                  
 8009bec:	34 0b 00 00 	mvi r11,0                                      
      }                                                               
                                                                      
      p1 = (block_p *) p[ triply ];                                   
      if ( !p1 ) {                                                    
        p1 = memfile_alloc_block();                                   
        if ( !p1 )                                                    
 8009bf0:	44 20 00 1f 	be r1,r0,8009c6c <IMFS_memfile_get_block_pointer+0x268><== NEVER TAKEN
           return 0;                                                  
        p[ triply ] = (block_p) p1;                                   
 8009bf4:	59 81 00 00 	sw (r12+0),r1                                  
      }                                                               
                                                                      
      p2 = (block_p *)p1[ doubly ];                                   
 8009bf8:	b9 c0 08 00 	mv r1,r14                                      
 8009bfc:	34 02 00 02 	mvi r2,2                                       
 8009c00:	f8 00 1b 22 	calli 8010888 <__ashlsi3>                      
 8009c04:	b5 a1 68 00 	add r13,r13,r1                                 
 8009c08:	29 ac 00 00 	lw r12,(r13+0)                                 
      if ( !p2 ) {                                                    
 8009c0c:	5d 80 00 14 	bne r12,r0,8009c5c <IMFS_memfile_get_block_pointer+0x258>
        p2 = memfile_alloc_block();                                   
 8009c10:	fb ff ff 6d 	calli 80099c4 <memfile_alloc_block>            
 8009c14:	b8 20 60 00 	mv r12,r1                                      
        if ( !p2 )                                                    
           return 0;                                                  
 8009c18:	34 0b 00 00 	mvi r11,0                                      
      }                                                               
                                                                      
      p2 = (block_p *)p1[ doubly ];                                   
      if ( !p2 ) {                                                    
        p2 = memfile_alloc_block();                                   
        if ( !p2 )                                                    
 8009c1c:	44 20 00 14 	be r1,r0,8009c6c <IMFS_memfile_get_block_pointer+0x268><== NEVER TAKEN
           return 0;                                                  
        p1[ doubly ] = (block_p) p2;                                  
 8009c20:	59 a1 00 00 	sw (r13+0),r1                                  
 8009c24:	e0 00 00 0e 	bi 8009c5c <IMFS_memfile_get_block_pointer+0x258>
      }                                                               
      return (block_p *)&p2[ singly ];                                
    }                                                                 
                                                                      
    if ( !p )                                                         
 8009c28:	45 8b 00 11 	be r12,r11,8009c6c <IMFS_memfile_get_block_pointer+0x268><== NEVER TAKEN
      return 0;                                                       
                                                                      
    p1 = (block_p *) p[ triply ];                                     
 8009c2c:	ba 00 08 00 	mv r1,r16                                      
 8009c30:	34 02 00 02 	mvi r2,2                                       
 8009c34:	f8 00 1b 15 	calli 8010888 <__ashlsi3>                      
 8009c38:	b5 81 08 00 	add r1,r12,r1                                  
 8009c3c:	28 2c 00 00 	lw r12,(r1+0)                                  
    if ( !p1 )                                                        
 8009c40:	45 80 00 0b 	be r12,r0,8009c6c <IMFS_memfile_get_block_pointer+0x268><== NEVER TAKEN
      return 0;                                                       
                                                                      
    p2 = (block_p *)p1[ doubly ];                                     
 8009c44:	b9 c0 08 00 	mv r1,r14                                      
 8009c48:	34 02 00 02 	mvi r2,2                                       
 8009c4c:	f8 00 1b 0f 	calli 8010888 <__ashlsi3>                      
 8009c50:	b5 81 08 00 	add r1,r12,r1                                  
 8009c54:	28 2c 00 00 	lw r12,(r1+0)                                  
    if ( !p2 )                                                        
 8009c58:	45 80 00 05 	be r12,r0,8009c6c <IMFS_memfile_get_block_pointer+0x268><== NEVER TAKEN
      return 0;                                                       
                                                                      
    return (block_p *)&p2[ singly ];                                  
 8009c5c:	ba 20 08 00 	mv r1,r17                                      
 8009c60:	34 02 00 02 	mvi r2,2                                       
 8009c64:	f8 00 1b 09 	calli 8010888 <__ashlsi3>                      
 8009c68:	b5 81 58 00 	add r11,r12,r1                                 
                                                                      
  /*                                                                  
   *  This means the requested block number is out of range.          
   */                                                                 
  return 0;                                                           
}                                                                     
 8009c6c:	b9 60 08 00 	mv r1,r11                                      
 8009c70:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8009c74:	2b 8b 00 20 	lw r11,(sp+32)                                 
 8009c78:	2b 8c 00 1c 	lw r12,(sp+28)                                 
 8009c7c:	2b 8d 00 18 	lw r13,(sp+24)                                 
 8009c80:	2b 8e 00 14 	lw r14,(sp+20)                                 
 8009c84:	2b 8f 00 10 	lw r15,(sp+16)                                 
 8009c88:	2b 90 00 0c 	lw r16,(sp+12)                                 
 8009c8c:	2b 91 00 08 	lw r17,(sp+8)                                  
 8009c90:	37 9c 00 20 	addi sp,sp,32                                  
 8009c94:	c3 a0 00 00 	ret                                            
                                                                      

08009c98 <IMFS_memfile_read>: IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) {
 8009c98:	37 9c ff d4 	addi sp,sp,-44                                 
 8009c9c:	5b 8b 00 24 	sw (sp+36),r11                                 
 8009ca0:	5b 8c 00 20 	sw (sp+32),r12                                 
 8009ca4:	5b 8d 00 1c 	sw (sp+28),r13                                 
 8009ca8:	5b 8e 00 18 	sw (sp+24),r14                                 
 8009cac:	5b 8f 00 14 	sw (sp+20),r15                                 
 8009cb0:	5b 90 00 10 	sw (sp+16),r16                                 
 8009cb4:	5b 91 00 0c 	sw (sp+12),r17                                 
 8009cb8:	5b 92 00 08 	sw (sp+8),r18                                  
 8009cbc:	5b 9d 00 04 	sw (sp+4),ra                                   
 8009cc0:	b8 40 70 00 	mv r14,r2                                      
   *  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) {                          
 8009cc4:	28 22 00 4c 	lw r2,(r1+76)                                  
   IMFS_jnode_t    *the_jnode,                                        
   off_t            start,                                            
   unsigned char   *destination,                                      
   unsigned int     length                                            
)                                                                     
{                                                                     
 8009cc8:	b8 20 60 00 	mv r12,r1                                      
 8009ccc:	28 2d 00 50 	lw r13,(r1+80)                                 
 8009cd0:	28 2f 00 54 	lw r15,(r1+84)                                 
   *  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) {                          
 8009cd4:	34 01 00 06 	mvi r1,6                                       
   IMFS_jnode_t    *the_jnode,                                        
   off_t            start,                                            
   unsigned char   *destination,                                      
   unsigned int     length                                            
)                                                                     
{                                                                     
 8009cd8:	b8 60 80 00 	mv r16,r3                                      
 8009cdc:	b8 80 58 00 	mv r11,r4                                      
   *  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) {                          
 8009ce0:	5c 41 00 15 	bne r2,r1,8009d34 <IMFS_memfile_read+0x9c>     
    unsigned char  *file_ptr;                                         
                                                                      
    file_ptr = (unsigned char *)the_jnode->info.linearfile.direct;    
                                                                      
    if (my_length > (the_jnode->info.linearfile.size - start))        
 8009ce4:	34 02 00 1f 	mvi r2,31                                      
 8009ce8:	b9 c0 08 00 	mv r1,r14                                      
 8009cec:	f8 00 1b 0e 	calli 8010924 <__ashrsi3>                      
 8009cf0:	c9 ee 18 00 	sub r3,r15,r14                                 
 8009cf4:	f4 6f 10 00 	cmpgu r2,r3,r15                                
 8009cf8:	c9 a1 08 00 	sub r1,r13,r1                                  
 8009cfc:	c8 22 68 00 	sub r13,r1,r2                                  
  my_length = length;                                                 
                                                                      
  if (the_jnode->type == IMFS_LINEAR_FILE) {                          
    unsigned char  *file_ptr;                                         
                                                                      
    file_ptr = (unsigned char *)the_jnode->info.linearfile.direct;    
 8009d00:	29 91 00 58 	lw r17,(r12+88)                                
                                                                      
    if (my_length > (the_jnode->info.linearfile.size - start))        
 8009d04:	48 0d 00 04 	bg r0,r13,8009d14 <IMFS_memfile_read+0x7c>     <== NEVER TAKEN
 8009d08:	5c 0d 00 05 	bne r0,r13,8009d1c <IMFS_memfile_read+0x84>    <== NEVER TAKEN
 8009d0c:	55 63 00 02 	bgu r11,r3,8009d14 <IMFS_memfile_read+0x7c>    <== ALWAYS TAKEN
 8009d10:	e0 00 00 03 	bi 8009d1c <IMFS_memfile_read+0x84>            <== NOT EXECUTED
      my_length = the_jnode->info.linearfile.size - start;            
 8009d14:	c9 ee 68 00 	sub r13,r15,r14                                
 8009d18:	e0 00 00 02 	bi 8009d20 <IMFS_memfile_read+0x88>            
                                                                      
  /*                                                                  
   *  Linear files (as created from a tar file are easier to handle   
   *  than block files).                                              
   */                                                                 
  my_length = length;                                                 
 8009d1c:	b9 60 68 00 	mv r13,r11                                     <== 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);                        
 8009d20:	ba 00 08 00 	mv r1,r16                                      
 8009d24:	b6 2e 10 00 	add r2,r17,r14                                 
 8009d28:	b9 a0 18 00 	mv r3,r13                                      
 8009d2c:	f8 00 08 4f 	calli 800be68 <memcpy>                         
 8009d30:	e0 00 00 47 	bi 8009e4c <IMFS_memfile_read+0x1b4>           
                                                                      
  /*                                                                  
   *  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;                                         
 8009d34:	b4 8e 08 00 	add r1,r4,r14                                  
  if ( last_byte > the_jnode->info.file.size )                        
 8009d38:	48 0d 00 04 	bg r0,r13,8009d48 <IMFS_memfile_read+0xb0>     <== NEVER TAKEN
 8009d3c:	5d a0 00 04 	bne r13,r0,8009d4c <IMFS_memfile_read+0xb4>    <== NEVER TAKEN
 8009d40:	54 2f 00 02 	bgu r1,r15,8009d48 <IMFS_memfile_read+0xb0>    
 8009d44:	e0 00 00 02 	bi 8009d4c <IMFS_memfile_read+0xb4>            
    my_length = the_jnode->info.file.size - start;                    
 8009d48:	c9 ee 58 00 	sub r11,r15,r14                                
   */                                                                 
                                                                      
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
 8009d4c:	78 01 08 01 	mvhi r1,0x801                                  
 8009d50:	38 21 36 8c 	ori r1,r1,0x368c                               
 8009d54:	28 32 00 00 	lw r18,(r1+0)                                  
 8009d58:	b9 c0 08 00 	mv r1,r14                                      
  unsigned int         last_byte;                                     
  unsigned int         copied;                                        
  unsigned int         start_offset;                                  
  unsigned char       *dest;                                          
                                                                      
  dest = destination;                                                 
 8009d5c:	ba 00 78 00 	mv r15,r16                                     
   */                                                                 
                                                                      
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
 8009d60:	ba 40 10 00 	mv r2,r18                                      
 8009d64:	f8 00 1b 7a 	calli 8010b4c <__modsi3>                       
 8009d68:	b8 20 88 00 	mv r17,r1                                      
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
 8009d6c:	ba 40 10 00 	mv r2,r18                                      
 8009d70:	b9 c0 08 00 	mv r1,r14                                      
 8009d74:	f8 00 1b 46 	calli 8010a8c <__divsi3>                       
 8009d78:	b8 20 70 00 	mv r14,r1                                      
   */                                                                 
  last_byte = start + length;                                         
  if ( last_byte > the_jnode->info.file.size )                        
    my_length = the_jnode->info.file.size - start;                    
                                                                      
  copied = 0;                                                         
 8009d7c:	34 0d 00 00 	mvi r13,0                                      
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
  if ( start_offset )  {                                              
 8009d80:	46 20 00 12 	be r17,r0,8009dc8 <IMFS_memfile_read+0x130>    
    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 );
 8009d84:	b9 80 08 00 	mv r1,r12                                      
 8009d88:	b9 c0 10 00 	mv r2,r14                                      
 8009d8c:	34 03 00 00 	mvi r3,0                                       
 8009d90:	fb ff ff 1d 	calli 8009a04 <IMFS_memfile_get_block_pointer> 
    if ( !block_ptr )                                                 
 8009d94:	44 20 00 33 	be r1,r0,8009e60 <IMFS_memfile_read+0x1c8>     <== NEVER TAKEN
   *  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;            
 8009d98:	ca 51 90 00 	sub r18,r18,r17                                
 8009d9c:	b9 60 68 00 	mv r13,r11                                     
 8009da0:	52 4b 00 02 	bgeu r18,r11,8009da8 <IMFS_memfile_read+0x110> 
 8009da4:	ba 40 68 00 	mv r13,r18                                     
    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 );           
 8009da8:	28 22 00 00 	lw r2,(r1+0)                                   
 8009dac:	b9 a0 18 00 	mv r3,r13                                      
 8009db0:	ba 00 08 00 	mv r1,r16                                      
 8009db4:	b4 51 10 00 	add r2,r2,r17                                  
 8009db8:	f8 00 08 2c 	calli 800be68 <memcpy>                         
    dest += to_copy;                                                  
 8009dbc:	b6 0d 78 00 	add r15,r16,r13                                
    block++;                                                          
 8009dc0:	35 ce 00 01 	addi r14,r14,1                                 
    my_length -= to_copy;                                             
 8009dc4:	c9 6d 58 00 	sub r11,r11,r13                                
  }                                                                   
                                                                      
  /*                                                                  
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
 8009dc8:	78 01 08 01 	mvhi r1,0x801                                  
 8009dcc:	38 21 36 8c 	ori r1,r1,0x368c                               
 8009dd0:	28 30 00 00 	lw r16,(r1+0)                                  
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
 8009dd4:	b8 20 88 00 	mv r17,r1                                      
 8009dd8:	e0 00 00 0f 	bi 8009e14 <IMFS_memfile_read+0x17c>           
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
 8009ddc:	b9 c0 10 00 	mv r2,r14                                      
 8009de0:	b9 80 08 00 	mv r1,r12                                      
 8009de4:	34 03 00 00 	mvi r3,0                                       
 8009de8:	fb ff ff 07 	calli 8009a04 <IMFS_memfile_get_block_pointer> 
 8009dec:	b8 20 10 00 	mv r2,r1                                       
    if ( !block_ptr )                                                 
 8009df0:	44 20 00 1c 	be r1,r0,8009e60 <IMFS_memfile_read+0x1c8>     <== NEVER TAKEN
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ 0 ], to_copy );                      
 8009df4:	28 42 00 00 	lw r2,(r2+0)                                   
 8009df8:	b9 e0 08 00 	mv r1,r15                                      
 8009dfc:	ba 00 18 00 	mv r3,r16                                      
 8009e00:	f8 00 08 1a 	calli 800be68 <memcpy>                         
    dest += to_copy;                                                  
 8009e04:	b5 f0 78 00 	add r15,r15,r16                                
    block++;                                                          
 8009e08:	35 ce 00 01 	addi r14,r14,1                                 
    my_length -= to_copy;                                             
 8009e0c:	c9 70 58 00 	sub r11,r11,r16                                
    copied += to_copy;                                                
 8009e10:	b5 b0 68 00 	add r13,r13,r16                                
                                                                      
  /*                                                                  
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
 8009e14:	2a 21 00 00 	lw r1,(r17+0)                                  
 8009e18:	51 61 ff f1 	bgeu r11,r1,8009ddc <IMFS_memfile_read+0x144>  
  /*                                                                  
   *  Phase 3: possibly the first part of one block                   
   */                                                                 
  IMFS_assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK );            
                                                                      
  if ( my_length ) {                                                  
 8009e1c:	45 60 00 0c 	be r11,r0,8009e4c <IMFS_memfile_read+0x1b4>    
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
 8009e20:	b9 c0 10 00 	mv r2,r14                                      
 8009e24:	b9 80 08 00 	mv r1,r12                                      
 8009e28:	34 03 00 00 	mvi r3,0                                       
 8009e2c:	fb ff fe f6 	calli 8009a04 <IMFS_memfile_get_block_pointer> 
 8009e30:	b8 20 10 00 	mv r2,r1                                       
    if ( !block_ptr )                                                 
 8009e34:	44 20 00 0b 	be r1,r0,8009e60 <IMFS_memfile_read+0x1c8>     <== NEVER TAKEN
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ 0 ], my_length );                    
 8009e38:	28 42 00 00 	lw r2,(r2+0)                                   
 8009e3c:	b9 e0 08 00 	mv r1,r15                                      
 8009e40:	b9 60 18 00 	mv r3,r11                                      
 8009e44:	f8 00 08 09 	calli 800be68 <memcpy>                         
    copied += my_length;                                              
 8009e48:	b5 6d 68 00 	add r13,r11,r13                                
  }                                                                   
                                                                      
  IMFS_update_atime( the_jnode );                                     
 8009e4c:	37 81 00 28 	addi r1,sp,40                                  
 8009e50:	34 02 00 00 	mvi r2,0                                       
 8009e54:	fb ff dd 61 	calli 80013d8 <gettimeofday>                   
 8009e58:	2b 81 00 28 	lw r1,(sp+40)                                  
 8009e5c:	59 81 00 40 	sw (r12+64),r1                                 
                                                                      
  return copied;                                                      
}                                                                     
 8009e60:	b9 a0 08 00 	mv r1,r13                                      
 8009e64:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8009e68:	2b 8b 00 24 	lw r11,(sp+36)                                 
 8009e6c:	2b 8c 00 20 	lw r12,(sp+32)                                 
 8009e70:	2b 8d 00 1c 	lw r13,(sp+28)                                 
 8009e74:	2b 8e 00 18 	lw r14,(sp+24)                                 
 8009e78:	2b 8f 00 14 	lw r15,(sp+20)                                 
 8009e7c:	2b 90 00 10 	lw r16,(sp+16)                                 
 8009e80:	2b 91 00 0c 	lw r17,(sp+12)                                 
 8009e84:	2b 92 00 08 	lw r18,(sp+8)                                  
 8009e88:	37 9c 00 2c 	addi sp,sp,44                                  
 8009e8c:	c3 a0 00 00 	ret                                            
                                                                      

08009fb0 <IMFS_memfile_remove>: * is better to stick to simple, easy to understand algorithms. */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) {
 8009fb0:	37 9c ff e0 	addi sp,sp,-32                                 
 8009fb4:	5b 8b 00 20 	sw (sp+32),r11                                 
 8009fb8:	5b 8c 00 1c 	sw (sp+28),r12                                 
 8009fbc:	5b 8d 00 18 	sw (sp+24),r13                                 
 8009fc0:	5b 8e 00 14 	sw (sp+20),r14                                 
 8009fc4:	5b 8f 00 10 	sw (sp+16),r15                                 
 8009fc8:	5b 90 00 0c 	sw (sp+12),r16                                 
 8009fcc:	5b 91 00 08 	sw (sp+8),r17                                  
 8009fd0:	5b 9d 00 04 	sw (sp+4),ra                                   
 8009fd4:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  /*                                                                  
   *  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;                                 
 8009fd8:	78 01 08 01 	mvhi r1,0x801                                  
 8009fdc:	38 21 36 8c 	ori r1,r1,0x368c                               
 8009fe0:	28 21 00 00 	lw r1,(r1+0)                                   
 8009fe4:	34 02 00 02 	mvi r2,2                                       
 8009fe8:	f8 00 1a 76 	calli 80109c0 <__lshrsi3>                      
 8009fec:	b8 20 60 00 	mv r12,r1                                      
   *    + doubly indirect                                             
   *    + triply indirect                                             
   */                                                                 
  info = &the_jnode->info.file;                                       
                                                                      
  if ( info->indirect ) {                                             
 8009ff0:	29 61 00 58 	lw r1,(r11+88)                                 
 8009ff4:	44 20 00 04 	be r1,r0,800a004 <IMFS_memfile_remove+0x54>    
    memfile_free_blocks_in_table( &info->indirect, to_free );         
 8009ff8:	35 61 00 58 	addi r1,r11,88                                 
 8009ffc:	b9 80 10 00 	mv r2,r12                                      
 800a000:	fb ff ff d0 	calli 8009f40 <memfile_free_blocks_in_table>   
  }                                                                   
                                                                      
  if ( info->doubly_indirect ) {                                      
 800a004:	29 61 00 5c 	lw r1,(r11+92)                                 
 800a008:	44 20 00 15 	be r1,r0,800a05c <IMFS_memfile_remove+0xac>    
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
 800a00c:	78 0d 08 01 	mvhi r13,0x801                                 
                                                                      
  if ( info->indirect ) {                                             
    memfile_free_blocks_in_table( &info->indirect, to_free );         
  }                                                                   
                                                                      
  if ( info->doubly_indirect ) {                                      
 800a010:	34 0f 00 00 	mvi r15,0                                      
 800a014:	34 0e 00 00 	mvi r14,0                                      
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
 800a018:	39 ad 36 8c 	ori r13,r13,0x368c                             
 800a01c:	e0 00 00 09 	bi 800a040 <IMFS_memfile_remove+0x90>          
      if ( info->doubly_indirect[i] ) {                               
 800a020:	29 61 00 5c 	lw r1,(r11+92)                                 
 800a024:	b4 2f 08 00 	add r1,r1,r15                                  
 800a028:	28 22 00 00 	lw r2,(r1+0)                                   
 800a02c:	44 40 00 03 	be r2,r0,800a038 <IMFS_memfile_remove+0x88>    <== NEVER TAKEN
        memfile_free_blocks_in_table(                                 
 800a030:	b9 80 10 00 	mv r2,r12                                      
 800a034:	fb ff ff c3 	calli 8009f40 <memfile_free_blocks_in_table>   
  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++ ) {                  
 800a038:	35 ce 00 01 	addi r14,r14,1                                 
 800a03c:	35 ef 00 04 	addi r15,r15,4                                 
 800a040:	29 a1 00 00 	lw r1,(r13+0)                                  
 800a044:	34 02 00 02 	mvi r2,2                                       
 800a048:	f8 00 1a 5e 	calli 80109c0 <__lshrsi3>                      
 800a04c:	54 2e ff f5 	bgu r1,r14,800a020 <IMFS_memfile_remove+0x70>  
      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 );  
 800a050:	35 61 00 5c 	addi r1,r11,92                                 
 800a054:	b9 80 10 00 	mv r2,r12                                      
 800a058:	fb ff ff ba 	calli 8009f40 <memfile_free_blocks_in_table>   
                                                                      
  }                                                                   
                                                                      
  if ( info->triply_indirect ) {                                      
 800a05c:	29 61 00 60 	lw r1,(r11+96)                                 
 800a060:	44 20 00 24 	be r1,r0,800a0f0 <IMFS_memfile_remove+0x140>   
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
 800a064:	78 0e 08 01 	mvhi r14,0x801                                 
    }                                                                 
    memfile_free_blocks_in_table( &info->doubly_indirect, to_free );  
                                                                      
  }                                                                   
                                                                      
  if ( info->triply_indirect ) {                                      
 800a068:	34 0f 00 00 	mvi r15,0                                      
 800a06c:	34 10 00 00 	mvi r16,0                                      
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
 800a070:	39 ce 36 8c 	ori r14,r14,0x368c                             
 800a074:	e0 00 00 18 	bi 800a0d4 <IMFS_memfile_remove+0x124>         
      p = (block_p *) info->triply_indirect[i];                       
 800a078:	29 61 00 60 	lw r1,(r11+96)                                 
 800a07c:	b4 2f 08 00 	add r1,r1,r15                                  
 800a080:	28 2d 00 00 	lw r13,(r1+0)                                  
      if ( !p )  /* ensure we have a valid pointer */                 
 800a084:	45 a0 00 18 	be r13,r0,800a0e4 <IMFS_memfile_remove+0x134>  <== NEVER TAKEN
 800a088:	34 11 00 00 	mvi r17,0                                      
 800a08c:	e0 00 00 08 	bi 800a0ac <IMFS_memfile_remove+0xfc>          
         break;                                                       
      for ( j=0 ; j<IMFS_MEMFILE_BLOCK_SLOTS ; j++ ) {                
        if ( p[j] ) {                                                 
 800a090:	29 a1 00 00 	lw r1,(r13+0)                                  
 800a094:	44 20 00 04 	be r1,r0,800a0a4 <IMFS_memfile_remove+0xf4>    <== NEVER TAKEN
          memfile_free_blocks_in_table( (block_p **)&p[j], to_free);  
 800a098:	b9 a0 08 00 	mv r1,r13                                      
 800a09c:	b9 80 10 00 	mv r2,r12                                      
 800a0a0:	fb ff ff a8 	calli 8009f40 <memfile_free_blocks_in_table>   
  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++ ) {                
 800a0a4:	36 31 00 01 	addi r17,r17,1                                 
 800a0a8:	35 ad 00 04 	addi r13,r13,4                                 
 800a0ac:	29 c1 00 00 	lw r1,(r14+0)                                  
 800a0b0:	34 02 00 02 	mvi r2,2                                       
 800a0b4:	f8 00 1a 43 	calli 80109c0 <__lshrsi3>                      
 800a0b8:	54 31 ff f6 	bgu r1,r17,800a090 <IMFS_memfile_remove+0xe0>  
        if ( p[j] ) {                                                 
          memfile_free_blocks_in_table( (block_p **)&p[j], to_free);  
        }                                                             
      }                                                               
      memfile_free_blocks_in_table(                                   
 800a0bc:	29 61 00 60 	lw r1,(r11+96)                                 
 800a0c0:	b9 80 10 00 	mv r2,r12                                      
    memfile_free_blocks_in_table( &info->doubly_indirect, to_free );  
                                                                      
  }                                                                   
                                                                      
  if ( info->triply_indirect ) {                                      
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
 800a0c4:	36 10 00 01 	addi r16,r16,1                                 
      for ( j=0 ; j<IMFS_MEMFILE_BLOCK_SLOTS ; j++ ) {                
        if ( p[j] ) {                                                 
          memfile_free_blocks_in_table( (block_p **)&p[j], to_free);  
        }                                                             
      }                                                               
      memfile_free_blocks_in_table(                                   
 800a0c8:	b4 2f 08 00 	add r1,r1,r15                                  
 800a0cc:	fb ff ff 9d 	calli 8009f40 <memfile_free_blocks_in_table>   
    memfile_free_blocks_in_table( &info->doubly_indirect, to_free );  
                                                                      
  }                                                                   
                                                                      
  if ( info->triply_indirect ) {                                      
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
 800a0d0:	35 ef 00 04 	addi r15,r15,4                                 
 800a0d4:	29 c1 00 00 	lw r1,(r14+0)                                  
 800a0d8:	34 02 00 02 	mvi r2,2                                       
 800a0dc:	f8 00 1a 39 	calli 80109c0 <__lshrsi3>                      
 800a0e0:	54 30 ff e6 	bgu r1,r16,800a078 <IMFS_memfile_remove+0xc8>  
        }                                                             
      }                                                               
      memfile_free_blocks_in_table(                                   
        (block_p **)&info->triply_indirect[i], to_free );             
    }                                                                 
    memfile_free_blocks_in_table(                                     
 800a0e4:	35 61 00 60 	addi r1,r11,96                                 
 800a0e8:	b9 80 10 00 	mv r2,r12                                      
 800a0ec:	fb ff ff 95 	calli 8009f40 <memfile_free_blocks_in_table>   
        (block_p **)&info->triply_indirect, to_free );                
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
 800a0f0:	34 01 00 00 	mvi r1,0                                       
 800a0f4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800a0f8:	2b 8b 00 20 	lw r11,(sp+32)                                 
 800a0fc:	2b 8c 00 1c 	lw r12,(sp+28)                                 
 800a100:	2b 8d 00 18 	lw r13,(sp+24)                                 
 800a104:	2b 8e 00 14 	lw r14,(sp+20)                                 
 800a108:	2b 8f 00 10 	lw r15,(sp+16)                                 
 800a10c:	2b 90 00 0c 	lw r16,(sp+12)                                 
 800a110:	2b 91 00 08 	lw r17,(sp+8)                                  
 800a114:	37 9c 00 20 	addi sp,sp,32                                  
 800a118:	c3 a0 00 00 	ret                                            
                                                                      

0800a2a4 <IMFS_memfile_write>: IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) {
 800a2a4:	37 9c ff d0 	addi sp,sp,-48                                 
 800a2a8:	5b 8b 00 28 	sw (sp+40),r11                                 
 800a2ac:	5b 8c 00 24 	sw (sp+36),r12                                 
 800a2b0:	5b 8d 00 20 	sw (sp+32),r13                                 
 800a2b4:	5b 8e 00 1c 	sw (sp+28),r14                                 
 800a2b8:	5b 8f 00 18 	sw (sp+24),r15                                 
 800a2bc:	5b 90 00 14 	sw (sp+20),r16                                 
 800a2c0:	5b 91 00 10 	sw (sp+16),r17                                 
 800a2c4:	5b 92 00 0c 	sw (sp+12),r18                                 
 800a2c8:	5b 93 00 08 	sw (sp+8),r19                                  
 800a2cc:	5b 9d 00 04 	sw (sp+4),ra                                   
 800a2d0:	b8 20 58 00 	mv r11,r1                                      
   *  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 ) {                      
 800a2d4:	28 21 00 50 	lw r1,(r1+80)                                  
   IMFS_jnode_t          *the_jnode,                                  
   off_t                  start,                                      
   const unsigned char   *source,                                     
   unsigned int           length                                      
)                                                                     
{                                                                     
 800a2d8:	b8 40 60 00 	mv r12,r2                                      
 800a2dc:	b8 60 88 00 	mv r17,r3                                      
 800a2e0:	b8 80 80 00 	mv r16,r4                                      
  /*                                                                  
   *  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;                                      
 800a2e4:	b4 82 10 00 	add r2,r4,r2                                   
  if ( last_byte > the_jnode->info.file.size ) {                      
 800a2e8:	48 01 00 05 	bg r0,r1,800a2fc <IMFS_memfile_write+0x58>     <== NEVER TAKEN
 800a2ec:	5c 20 00 0c 	bne r1,r0,800a31c <IMFS_memfile_write+0x78>    <== NEVER TAKEN
 800a2f0:	29 61 00 54 	lw r1,(r11+84)                                 
 800a2f4:	54 41 00 02 	bgu r2,r1,800a2fc <IMFS_memfile_write+0x58>    <== ALWAYS TAKEN
 800a2f8:	e0 00 00 09 	bi 800a31c <IMFS_memfile_write+0x78>           <== NOT EXECUTED
    status = IMFS_memfile_extend( the_jnode, last_byte );             
 800a2fc:	b9 60 08 00 	mv r1,r11                                      
 800a300:	fb ff ff 93 	calli 800a14c <IMFS_memfile_extend>            
    if ( status )                                                     
 800a304:	44 20 00 06 	be r1,r0,800a31c <IMFS_memfile_write+0x78>     
      rtems_set_errno_and_return_minus_one( ENOSPC );                 
 800a308:	f8 00 04 22 	calli 800b390 <__errno>                        
 800a30c:	34 02 00 1c 	mvi r2,28                                      
 800a310:	58 22 00 00 	sw (r1+0),r2                                   
 800a314:	34 05 ff ff 	mvi r5,-1                                      
 800a318:	e0 00 00 48 	bi 800a438 <IMFS_memfile_write+0x194>          
   */                                                                 
                                                                      
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
 800a31c:	78 01 08 01 	mvhi r1,0x801                                  
 800a320:	38 21 36 8c 	ori r1,r1,0x368c                               
 800a324:	28 33 00 00 	lw r19,(r1+0)                                  
 800a328:	b9 80 08 00 	mv r1,r12                                      
  unsigned int         last_byte;                                     
  unsigned int         start_offset;                                  
  int                  copied;                                        
  const unsigned char *src;                                           
                                                                      
  src = source;                                                       
 800a32c:	ba 20 78 00 	mv r15,r17                                     
   */                                                                 
                                                                      
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
 800a330:	ba 60 10 00 	mv r2,r19                                      
 800a334:	f8 00 1a 06 	calli 8010b4c <__modsi3>                       
 800a338:	b8 20 90 00 	mv r18,r1                                      
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
 800a33c:	ba 60 10 00 	mv r2,r19                                      
 800a340:	b9 80 08 00 	mv r1,r12                                      
 800a344:	f8 00 19 d2 	calli 8010a8c <__divsi3>                       
 800a348:	b8 20 70 00 	mv r14,r1                                      
  if ( start_offset )  {                                              
 800a34c:	ba 00 68 00 	mv r13,r16                                     
    status = IMFS_memfile_extend( the_jnode, last_byte );             
    if ( status )                                                     
      rtems_set_errno_and_return_minus_one( ENOSPC );                 
  }                                                                   
                                                                      
  copied = 0;                                                         
 800a350:	34 0c 00 00 	mvi r12,0                                      
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
  if ( start_offset )  {                                              
 800a354:	46 40 00 12 	be r18,r0,800a39c <IMFS_memfile_write+0xf8>    
    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 );
 800a358:	b9 60 08 00 	mv r1,r11                                      
 800a35c:	b9 c0 10 00 	mv r2,r14                                      
 800a360:	34 03 00 00 	mvi r3,0                                       
 800a364:	fb ff fd a8 	calli 8009a04 <IMFS_memfile_get_block_pointer> 
    if ( !block_ptr )                                                 
      return copied;                                                  
 800a368:	34 05 00 00 	mvi r5,0                                       
  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 );
    if ( !block_ptr )                                                 
 800a36c:	44 20 00 33 	be r1,r0,800a438 <IMFS_memfile_write+0x194>    <== NEVER TAKEN
   *  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;            
 800a370:	ca 72 60 00 	sub r12,r19,r18                                
 800a374:	52 0c 00 02 	bgeu r16,r12,800a37c <IMFS_memfile_write+0xd8> 
 800a378:	ba 00 60 00 	mv r12,r16                                     
        block,                                                        
        to_copy,                                                      
        src                                                           
      );                                                              
    #endif                                                            
    memcpy( &(*block_ptr)[ start_offset ], src, to_copy );            
 800a37c:	28 21 00 00 	lw r1,(r1+0)                                   
 800a380:	ba 20 10 00 	mv r2,r17                                      
 800a384:	b9 80 18 00 	mv r3,r12                                      
 800a388:	b4 32 08 00 	add r1,r1,r18                                  
 800a38c:	f8 00 06 b7 	calli 800be68 <memcpy>                         
    src += to_copy;                                                   
 800a390:	b6 2c 78 00 	add r15,r17,r12                                
    block++;                                                          
 800a394:	35 ce 00 01 	addi r14,r14,1                                 
    my_length -= to_copy;                                             
 800a398:	ca 0c 68 00 	sub r13,r16,r12                                
                                                                      
  /*                                                                  
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
                                                                      
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
 800a39c:	78 01 08 01 	mvhi r1,0x801                                  
 800a3a0:	38 21 36 8c 	ori r1,r1,0x368c                               
 800a3a4:	28 30 00 00 	lw r16,(r1+0)                                  
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
 800a3a8:	b8 20 88 00 	mv r17,r1                                      
 800a3ac:	e0 00 00 0e 	bi 800a3e4 <IMFS_memfile_write+0x140>          
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
 800a3b0:	b9 60 08 00 	mv r1,r11                                      
 800a3b4:	b9 c0 10 00 	mv r2,r14                                      
 800a3b8:	34 03 00 00 	mvi r3,0                                       
 800a3bc:	fb ff fd 92 	calli 8009a04 <IMFS_memfile_get_block_pointer> 
    if ( !block_ptr )                                                 
 800a3c0:	44 20 00 1d 	be r1,r0,800a434 <IMFS_memfile_write+0x190>    <== NEVER TAKEN
      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 );                       
 800a3c4:	28 21 00 00 	lw r1,(r1+0)                                   
 800a3c8:	b9 e0 10 00 	mv r2,r15                                      
 800a3cc:	ba 00 18 00 	mv r3,r16                                      
 800a3d0:	f8 00 06 a6 	calli 800be68 <memcpy>                         
    src += to_copy;                                                   
 800a3d4:	b5 f0 78 00 	add r15,r15,r16                                
    block++;                                                          
 800a3d8:	35 ce 00 01 	addi r14,r14,1                                 
    my_length -= to_copy;                                             
 800a3dc:	c9 b0 68 00 	sub r13,r13,r16                                
 *  IMFS_memfile_write                                                
 *                                                                    
 *  This routine writes the specified data buffer into the in memory  
 *  file pointed to by the_jnode.  The file is extended as needed.    
 */                                                                   
MEMFILE_STATIC ssize_t IMFS_memfile_write(                            
 800a3e0:	b5 90 60 00 	add r12,r12,r16                                
  /*                                                                  
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
                                                                      
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
 800a3e4:	2a 21 00 00 	lw r1,(r17+0)                                  
 800a3e8:	51 a1 ff f2 	bgeu r13,r1,800a3b0 <IMFS_memfile_write+0x10c> 
   *  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 ) {                                                  
 800a3ec:	45 a0 00 0c 	be r13,r0,800a41c <IMFS_memfile_write+0x178>   
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
 800a3f0:	b9 60 08 00 	mv r1,r11                                      
 800a3f4:	b9 c0 10 00 	mv r2,r14                                      
 800a3f8:	34 03 00 00 	mvi r3,0                                       
 800a3fc:	fb ff fd 82 	calli 8009a04 <IMFS_memfile_get_block_pointer> 
    if ( !block_ptr )                                                 
 800a400:	b9 80 28 00 	mv r5,r12                                      
 800a404:	44 20 00 0d 	be r1,r0,800a438 <IMFS_memfile_write+0x194>    <== NEVER TAKEN
      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 );                     
 800a408:	28 21 00 00 	lw r1,(r1+0)                                   
 800a40c:	b9 e0 10 00 	mv r2,r15                                      
 800a410:	b9 a0 18 00 	mv r3,r13                                      
 800a414:	f8 00 06 95 	calli 800be68 <memcpy>                         
    my_length = 0;                                                    
    copied += to_copy;                                                
 800a418:	b5 8d 60 00 	add r12,r12,r13                                
  }                                                                   
                                                                      
  IMFS_mtime_ctime_update( the_jnode );                               
 800a41c:	37 81 00 2c 	addi r1,sp,44                                  
 800a420:	34 02 00 00 	mvi r2,0                                       
 800a424:	fb ff db ed 	calli 80013d8 <gettimeofday>                   
 800a428:	2b 81 00 2c 	lw r1,(sp+44)                                  
 800a42c:	59 61 00 44 	sw (r11+68),r1                                 
 800a430:	59 61 00 48 	sw (r11+72),r1                                 
   */                                                                 
                                                                      
  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 )                                                 
 800a434:	b9 80 28 00 	mv r5,r12                                      
  }                                                                   
                                                                      
  IMFS_mtime_ctime_update( the_jnode );                               
                                                                      
  return copied;                                                      
}                                                                     
 800a438:	b8 a0 08 00 	mv r1,r5                                       
 800a43c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800a440:	2b 8b 00 28 	lw r11,(sp+40)                                 
 800a444:	2b 8c 00 24 	lw r12,(sp+36)                                 
 800a448:	2b 8d 00 20 	lw r13,(sp+32)                                 
 800a44c:	2b 8e 00 1c 	lw r14,(sp+28)                                 
 800a450:	2b 8f 00 18 	lw r15,(sp+24)                                 
 800a454:	2b 90 00 14 	lw r16,(sp+20)                                 
 800a458:	2b 91 00 10 	lw r17,(sp+16)                                 
 800a45c:	2b 92 00 0c 	lw r18,(sp+12)                                 
 800a460:	2b 93 00 08 	lw r19,(sp+8)                                  
 800a464:	37 9c 00 30 	addi sp,sp,48                                  
 800a468:	c3 a0 00 00 	ret                                            
                                                                      

08000b64 <IMFS_mount>: #include <rtems/seterr.h> int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) {
 8000b64:	37 9c ff fc 	addi sp,sp,-4                                  
 8000b68:	5b 9d 00 04 	sw (sp+4),ra                                   
  IMFS_jnode_t  *node;                                                
                                                                      
  node = mt_entry->mt_point_node.node_access;                         
 8000b6c:	28 22 00 08 	lw r2,(r1+8)                                   
                                                                      
  /*                                                                  
   *  Is the node that we are mounting onto a directory node ?        
   */                                                                 
                                                                      
  if ( node->type != IMFS_DIRECTORY )                                 
 8000b70:	34 03 00 01 	mvi r3,1                                       
 8000b74:	28 44 00 4c 	lw r4,(r2+76)                                  
 8000b78:	44 83 00 06 	be r4,r3,8000b90 <IMFS_mount+0x2c>             <== ALWAYS TAKEN
    rtems_set_errno_and_return_minus_one( ENOTDIR );                  
 8000b7c:	f8 00 2a 05 	calli 800b390 <__errno>                        <== NOT EXECUTED
 8000b80:	34 02 00 14 	mvi r2,20                                      <== NOT EXECUTED
 8000b84:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
 8000b88:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
 8000b8c:	e0 00 00 03 	bi 8000b98 <IMFS_mount+0x34>                   <== NOT EXECUTED
  /*                                                                  
   *  Set mt_fs pointer to point to the mount table entry for         
   *  the mounted file system.                                        
   */                                                                 
                                                                      
  node->info.directory.mt_fs = mt_entry;                              
 8000b90:	58 41 00 5c 	sw (r2+92),r1                                  
  return 0;                                                           
 8000b94:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 8000b98:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8000b9c:	37 9c 00 04 	addi sp,sp,4                                   
 8000ba0:	c3 a0 00 00 	ret                                            
                                                                      

08003860 <IMFS_print_jnode>: * This routine prints the contents of the specified jnode. */ void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) {
 8003860:	37 9c ff f0 	addi sp,sp,-16                                 
 8003864:	5b 8b 00 10 	sw (sp+16),r11                                 
 8003868:	5b 8c 00 0c 	sw (sp+12),r12                                 
 800386c:	5b 8d 00 08 	sw (sp+8),r13                                  
 8003870:	5b 9d 00 04 	sw (sp+4),ra                                   
  IMFS_assert( the_jnode );                                           
                                                                      
  fprintf(stdout, "%s", the_jnode->name );                            
 8003874:	78 0c 08 02 	mvhi r12,0x802                                 
 8003878:	39 8c 61 a8 	ori r12,r12,0x61a8                             
 800387c:	29 82 00 00 	lw r2,(r12+0)                                  
 *  This routine prints the contents of the specified jnode.          
 */                                                                   
void IMFS_print_jnode(                                                
  IMFS_jnode_t *the_jnode                                             
)                                                                     
{                                                                     
 8003880:	b8 20 58 00 	mv r11,r1                                      
  IMFS_assert( the_jnode );                                           
                                                                      
  fprintf(stdout, "%s", the_jnode->name );                            
 8003884:	34 21 00 0c 	addi r1,r1,12                                  
 8003888:	28 42 00 08 	lw r2,(r2+8)                                   
 800388c:	f8 00 33 18 	calli 80104ec <fputs>                          
  switch( the_jnode->type ) {                                         
 8003890:	29 63 00 4c 	lw r3,(r11+76)                                 
 8003894:	34 02 00 06 	mvi r2,6                                       
 8003898:	34 61 ff ff 	addi r1,r3,-1                                  
 800389c:	54 22 00 2d 	bgu r1,r2,8003950 <IMFS_print_jnode+0xf0>      <== NEVER TAKEN
 80038a0:	78 0d 08 02 	mvhi r13,0x802                                 
 80038a4:	34 02 00 02 	mvi r2,2                                       
 80038a8:	f8 00 7b 58 	calli 8022608 <__ashlsi3>                      
 80038ac:	39 ad 45 24 	ori r13,r13,0x4524                             
 80038b0:	b5 a1 08 00 	add r1,r13,r1                                  
 80038b4:	28 21 00 00 	lw r1,(r1+0)                                   
 80038b8:	c0 20 00 00 	b r1                                           
    case IMFS_DIRECTORY:                                              
      fprintf(stdout, "/" );                                          
 80038bc:	29 82 00 00 	lw r2,(r12+0)                                  
 80038c0:	34 01 00 2f 	mvi r1,47                                      
 80038c4:	28 42 00 08 	lw r2,(r2+8)                                   
 80038c8:	f8 00 32 c5 	calli 80103dc <fputc>                          
      break;                                                          
 80038cc:	e0 00 00 27 	bi 8003968 <IMFS_print_jnode+0x108>            
                                                                      
    case IMFS_DEVICE:                                                 
      fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")",           
 80038d0:	29 81 00 00 	lw r1,(r12+0)                                  
 80038d4:	78 02 08 02 	mvhi r2,0x802                                  
 80038d8:	38 42 44 40 	ori r2,r2,0x4440                               
 80038dc:	28 21 00 08 	lw r1,(r1+8)                                   
 80038e0:	29 63 00 50 	lw r3,(r11+80)                                 
 80038e4:	29 64 00 54 	lw r4,(r11+84)                                 
 80038e8:	e0 00 00 07 	bi 8003904 <IMFS_print_jnode+0xa4>             
        the_jnode->info.device.major, the_jnode->info.device.minor ); 
      break;                                                          
                                                                      
    case IMFS_LINEAR_FILE:                                            
      fprintf(stdout, " (file %" PRId32 " %p)",                       
 80038ec:	29 81 00 00 	lw r1,(r12+0)                                  
 80038f0:	29 63 00 54 	lw r3,(r11+84)                                 
 80038f4:	29 64 00 58 	lw r4,(r11+88)                                 
 80038f8:	28 21 00 08 	lw r1,(r1+8)                                   
 80038fc:	78 02 08 02 	mvhi r2,0x802                                  
 8003900:	38 42 44 54 	ori r2,r2,0x4454                               
 8003904:	f8 00 32 8f 	calli 8010340 <fprintf>                        
        (uint32_t)the_jnode->info.linearfile.size,                    
        the_jnode->info.linearfile.direct                             
      );                                                              
      break;                                                          
 8003908:	e0 00 00 18 	bi 8003968 <IMFS_print_jnode+0x108>            
        the_jnode->info.file.indirect,                                
        the_jnode->info.file.doubly_indirect,                         
        the_jnode->info.file.triply_indirect                          
      );                                                              
#else                                                                 
      fprintf(stdout, " (file %" PRId32 ")",                          
 800390c:	29 81 00 00 	lw r1,(r12+0)                                  
 8003910:	29 63 00 54 	lw r3,(r11+84)                                 
 8003914:	78 02 08 02 	mvhi r2,0x802                                  
 8003918:	28 21 00 08 	lw r1,(r1+8)                                   
 800391c:	38 42 44 64 	ori r2,r2,0x4464                               
 8003920:	f8 00 32 88 	calli 8010340 <fprintf>                        
        (uint32_t)the_jnode->info.file.size );                        
#endif                                                                
      break;                                                          
 8003924:	e0 00 00 11 	bi 8003968 <IMFS_print_jnode+0x108>            
    case IMFS_HARD_LINK:                                              
      fprintf(stdout, " links not printed\n" );                       
      return;                                                         
                                                                      
    case IMFS_SYM_LINK:                                               
      fprintf(stdout, " links not printed\n" );                       
 8003928:	78 01 08 02 	mvhi r1,0x802                                  
 800392c:	29 82 00 00 	lw r2,(r12+0)                                  
 8003930:	38 21 44 70 	ori r1,r1,0x4470                               
 8003934:	e0 00 00 04 	bi 8003944 <IMFS_print_jnode+0xe4>             
      return;                                                         
                                                                      
    case IMFS_FIFO:                                                   
      fprintf(stdout, " FIFO not printed\n" );                        
 8003938:	29 82 00 00 	lw r2,(r12+0)                                  
 800393c:	78 01 08 02 	mvhi r1,0x802                                  
 8003940:	38 21 44 84 	ori r1,r1,0x4484                               
 8003944:	28 42 00 08 	lw r2,(r2+8)                                   
 8003948:	f8 00 32 e9 	calli 80104ec <fputs>                          
      return;                                                         
 800394c:	e0 00 00 0a 	bi 8003974 <IMFS_print_jnode+0x114>            
                                                                      
    default:                                                          
      fprintf(stdout, " bad type %d\n", the_jnode->type );            
 8003950:	29 81 00 00 	lw r1,(r12+0)                                  <== NOT EXECUTED
 8003954:	78 02 08 02 	mvhi r2,0x802                                  <== NOT EXECUTED
 8003958:	38 42 44 98 	ori r2,r2,0x4498                               <== NOT EXECUTED
 800395c:	28 21 00 08 	lw r1,(r1+8)                                   <== NOT EXECUTED
 8003960:	f8 00 32 78 	calli 8010340 <fprintf>                        <== NOT EXECUTED
      return;                                                         
 8003964:	e0 00 00 04 	bi 8003974 <IMFS_print_jnode+0x114>            <== NOT EXECUTED
  }                                                                   
  puts("");                                                           
 8003968:	78 01 08 02 	mvhi r1,0x802                                  
 800396c:	38 21 40 08 	ori r1,r1,0x4008                               
 8003970:	f8 00 3a 56 	calli 80122c8 <puts>                           
}                                                                     
 8003974:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003978:	2b 8b 00 10 	lw r11,(sp+16)                                 
 800397c:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8003980:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8003984:	37 9c 00 10 	addi sp,sp,16                                  
 8003988:	c3 a0 00 00 	ret                                            
                                                                      

08000be0 <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 */ ) {
 8000be0:	37 9c ff ec 	addi sp,sp,-20                                 
 8000be4:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8000be8:	5b 8c 00 08 	sw (sp+8),r12                                  
 8000bec:	5b 9d 00 04 	sw (sp+4),ra                                   
  IMFS_jnode_t *the_jnode;                                            
  IMFS_jnode_t *new_parent;                                           
                                                                      
  the_jnode = old_loc->node_access;                                   
 8000bf0:	28 4b 00 00 	lw r11,(r2+0)                                  
  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 */        
)                                                                     
{                                                                     
 8000bf4:	b8 60 60 00 	mv r12,r3                                      
  IMFS_jnode_t *the_jnode;                                            
  IMFS_jnode_t *new_parent;                                           
                                                                      
  the_jnode = old_loc->node_access;                                   
                                                                      
  strncpy( the_jnode->name, new_name, IMFS_NAME_MAX );                
 8000bf8:	b8 80 10 00 	mv r2,r4                                       
 8000bfc:	35 61 00 0c 	addi r1,r11,12                                 
 8000c00:	34 03 00 20 	mvi r3,32                                      
 8000c04:	f8 00 2e b3 	calli 800c6d0 <strncpy>                        
                                                                      
  if ( the_jnode->Parent != NULL )                                    
 8000c08:	29 61 00 08 	lw r1,(r11+8)                                  
 8000c0c:	44 20 00 03 	be r1,r0,8000c18 <IMFS_rename+0x38>            <== NEVER TAKEN
 */                                                                   
RTEMS_INLINE_ROUTINE void rtems_chain_extract(                        
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Extract( the_node );                                         
 8000c10:	b9 60 08 00 	mv r1,r11                                      
 8000c14:	f8 00 0a 41 	calli 8003518 <_Chain_Extract>                 
    rtems_chain_extract( (rtems_chain_node *) the_jnode );            
                                                                      
  new_parent = new_parent_loc->node_access;                           
 8000c18:	29 81 00 00 	lw r1,(r12+0)                                  
RTEMS_INLINE_ROUTINE void rtems_chain_append(                         
  rtems_chain_control *the_chain,                                     
  rtems_chain_node    *the_node                                       
)                                                                     
{                                                                     
  _Chain_Append( the_chain, the_node );                               
 8000c1c:	b9 60 10 00 	mv r2,r11                                      
  the_jnode->Parent = new_parent;                                     
 8000c20:	59 61 00 08 	sw (r11+8),r1                                  
 8000c24:	34 21 00 50 	addi r1,r1,80                                  
 8000c28:	f8 00 0a 30 	calli 80034e8 <_Chain_Append>                  
  rtems_chain_append( &new_parent->info.directory.Entries, &the_jnode->Node );
                                                                      
  /*                                                                  
   * Update the time.                                                 
   */                                                                 
  IMFS_update_ctime( the_jnode );                                     
 8000c2c:	37 81 00 10 	addi r1,sp,16                                  
 8000c30:	34 02 00 00 	mvi r2,0                                       
 8000c34:	f8 00 01 e9 	calli 80013d8 <gettimeofday>                   
 8000c38:	2b 81 00 10 	lw r1,(sp+16)                                  
 8000c3c:	59 61 00 48 	sw (r11+72),r1                                 
                                                                      
  return 0;                                                           
}                                                                     
 8000c40:	34 01 00 00 	mvi r1,0                                       
 8000c44:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8000c48:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8000c4c:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8000c50:	37 9c 00 14 	addi sp,sp,20                                  
 8000c54:	c3 a0 00 00 	ret                                            
                                                                      

08007ea4 <IMFS_stat>: int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) {
 8007ea4:	37 9c ff ec 	addi sp,sp,-20                                 
 8007ea8:	5b 8b 00 14 	sw (sp+20),r11                                 
 8007eac:	5b 8c 00 10 	sw (sp+16),r12                                 
 8007eb0:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8007eb4:	5b 8e 00 08 	sw (sp+8),r14                                  
 8007eb8:	5b 9d 00 04 	sw (sp+4),ra                                   
  IMFS_fs_info_t *fs_info;                                            
  IMFS_jnode_t   *the_jnode;                                          
  IMFS_device_t  *io;                                                 
                                                                      
  the_jnode = loc->node_access;                                       
 8007ebc:	28 2b 00 00 	lw r11,(r1+0)                                  
                                                                      
int IMFS_stat(                                                        
  rtems_filesystem_location_info_t *loc,                              
  struct stat                      *buf                               
)                                                                     
{                                                                     
 8007ec0:	b8 20 70 00 	mv r14,r1                                      
 8007ec4:	b8 40 60 00 	mv r12,r2                                      
  IMFS_device_t  *io;                                                 
                                                                      
  the_jnode = loc->node_access;                                       
                                                                      
                                                                      
  switch ( the_jnode->type ) {                                        
 8007ec8:	29 61 00 4c 	lw r1,(r11+76)                                 
 8007ecc:	34 02 00 05 	mvi r2,5                                       
 8007ed0:	34 21 ff fe 	addi r1,r1,-2                                  
 8007ed4:	54 22 00 12 	bgu r1,r2,8007f1c <IMFS_stat+0x78>             <== NEVER TAKEN
 8007ed8:	78 0d 08 01 	mvhi r13,0x801                                 
 8007edc:	34 02 00 02 	mvi r2,2                                       
 8007ee0:	f8 00 22 6a 	calli 8010888 <__ashlsi3>                      
 8007ee4:	39 ad 1f 78 	ori r13,r13,0x1f78                             
 8007ee8:	b5 a1 08 00 	add r1,r13,r1                                  
 8007eec:	28 21 00 00 	lw r1,(r1+0)                                   
 8007ef0:	c0 20 00 00 	b r1                                           
                                                                      
    case IMFS_DEVICE:                                                 
      io           = &the_jnode->info.device;                         
      buf->st_rdev = rtems_filesystem_make_dev_t( io->major, io->minor );
 8007ef4:	29 61 00 54 	lw r1,(r11+84)                                 
  rtems_device_minor_number _minor                                    
)                                                                     
{                                                                     
  union __rtems_dev_t temp;                                           
                                                                      
  temp.__overlay.major = _major;                                      
 8007ef8:	29 62 00 50 	lw r2,(r11+80)                                 
 8007efc:	59 81 00 1c 	sw (r12+28),r1                                 
 8007f00:	59 82 00 18 	sw (r12+24),r2                                 
      break;                                                          
 8007f04:	e0 00 00 0b 	bi 8007f30 <IMFS_stat+0x8c>                    
                                                                      
    case IMFS_LINEAR_FILE:                                            
    case IMFS_MEMORY_FILE:                                            
      buf->st_size = the_jnode->info.file.size;                       
 8007f08:	29 61 00 54 	lw r1,(r11+84)                                 
 8007f0c:	59 81 00 20 	sw (r12+32),r1                                 
      break;                                                          
 8007f10:	e0 00 00 08 	bi 8007f30 <IMFS_stat+0x8c>                    
    case IMFS_SYM_LINK:                                               
      buf->st_size = 0;                                               
      break;                                                          
                                                                      
    case IMFS_FIFO:                                                   
      buf->st_size = 0;                                               
 8007f14:	59 80 00 20 	sw (r12+32),r0                                 
      break;                                                          
 8007f18:	e0 00 00 06 	bi 8007f30 <IMFS_stat+0x8c>                    
                                                                      
    default:                                                          
      rtems_set_errno_and_return_minus_one( ENOTSUP );                
 8007f1c:	f8 00 0d 1d 	calli 800b390 <__errno>                        
 8007f20:	34 02 00 86 	mvi r2,134                                     
 8007f24:	58 22 00 00 	sw (r1+0),r2                                   
 8007f28:	34 01 ff ff 	mvi r1,-1                                      
 8007f2c:	e0 00 00 18 	bi 8007f8c <IMFS_stat+0xe8>                    
                                                                      
  /*                                                                  
   * The device number of the IMFS is the major number and the minor is the
   * instance.                                                        
   */                                                                 
  fs_info = loc->mt_entry->fs_info;                                   
 8007f30:	29 c1 00 10 	lw r1,(r14+16)                                 
  buf->st_dev =                                                       
    rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance );
 8007f34:	28 21 00 34 	lw r1,(r1+52)                                  
 8007f38:	28 22 00 00 	lw r2,(r1+0)                                   
 8007f3c:	38 01 ff fe 	mvu r1,0xfffe                                  
  /*                                                                  
   * 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 =                                                       
 8007f40:	59 81 00 00 	sw (r12+0),r1                                  
    rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance );
                                                                      
  buf->st_mode  = the_jnode->st_mode;                                 
 8007f44:	29 61 00 30 	lw r1,(r11+48)                                 
  /*                                                                  
   * 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 =                                                       
 8007f48:	59 82 00 04 	sw (r12+4),r2                                  
    rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance );
                                                                      
  buf->st_mode  = the_jnode->st_mode;                                 
 8007f4c:	59 81 00 0c 	sw (r12+12),r1                                 
  buf->st_nlink = the_jnode->st_nlink;                                
 8007f50:	2d 61 00 34 	lhu r1,(r11+52)                                
 8007f54:	0d 81 00 10 	sh (r12+16),r1                                 
  buf->st_ino   = the_jnode->st_ino;                                  
 8007f58:	29 61 00 38 	lw r1,(r11+56)                                 
 8007f5c:	59 81 00 08 	sw (r12+8),r1                                  
  buf->st_uid   = the_jnode->st_uid;                                  
 8007f60:	2d 61 00 3c 	lhu r1,(r11+60)                                
 8007f64:	0d 81 00 12 	sh (r12+18),r1                                 
  buf->st_gid   = the_jnode->st_gid;                                  
 8007f68:	2d 61 00 3e 	lhu r1,(r11+62)                                
 8007f6c:	0d 81 00 14 	sh (r12+20),r1                                 
                                                                      
  buf->st_atime = the_jnode->stat_atime;                              
 8007f70:	29 61 00 40 	lw r1,(r11+64)                                 
 8007f74:	59 81 00 24 	sw (r12+36),r1                                 
  buf->st_mtime = the_jnode->stat_mtime;                              
 8007f78:	29 61 00 44 	lw r1,(r11+68)                                 
 8007f7c:	59 81 00 2c 	sw (r12+44),r1                                 
  buf->st_ctime = the_jnode->stat_ctime;                              
 8007f80:	29 61 00 48 	lw r1,(r11+72)                                 
 8007f84:	59 81 00 34 	sw (r12+52),r1                                 
                                                                      
  return 0;                                                           
 8007f88:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 8007f8c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8007f90:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8007f94:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8007f98:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8007f9c:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8007fa0:	37 9c 00 14 	addi sp,sp,20                                  
 8007fa4:	c3 a0 00 00 	ret                                            
                                                                      

08000d04 <IMFS_unlink>: int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) {
 8000d04:	37 9c ff d0 	addi sp,sp,-48                                 
 8000d08:	5b 8b 00 14 	sw (sp+20),r11                                 
 8000d0c:	5b 8c 00 10 	sw (sp+16),r12                                 
 8000d10:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8000d14:	5b 8e 00 08 	sw (sp+8),r14                                  
 8000d18:	5b 9d 00 04 	sw (sp+4),ra                                   
  IMFS_jnode_t                      *node;                            
  rtems_filesystem_location_info_t   the_link;                        
  int                                result = 0;                      
                                                                      
  node = loc->node_access;                                            
 8000d1c:	28 4c 00 00 	lw r12,(r2+0)                                  
                                                                      
int IMFS_unlink(                                                      
  rtems_filesystem_location_info_t  *parentloc, /* IN */              
  rtems_filesystem_location_info_t  *loc        /* IN */              
)                                                                     
{                                                                     
 8000d20:	b8 40 58 00 	mv r11,r2                                      
 8000d24:	b8 20 68 00 	mv r13,r1                                      
  /*                                                                  
   * If this is the last last pointer to the node                     
   * free the node.                                                   
   */                                                                 
                                                                      
  if ( node->type == IMFS_HARD_LINK ) {                               
 8000d28:	29 82 00 4c 	lw r2,(r12+76)                                 
 8000d2c:	34 01 00 03 	mvi r1,3                                       
 8000d30:	5c 41 00 28 	bne r2,r1,8000dd0 <IMFS_unlink+0xcc>           
                                                                      
    if ( !node->info.hard_link.link_node )                            
 8000d34:	29 81 00 50 	lw r1,(r12+80)                                 
 8000d38:	5c 20 00 06 	bne r1,r0,8000d50 <IMFS_unlink+0x4c>           <== ALWAYS TAKEN
      rtems_set_errno_and_return_minus_one( EINVAL );                 
 8000d3c:	f8 00 29 95 	calli 800b390 <__errno>                        <== NOT EXECUTED
 8000d40:	34 02 00 16 	mvi r2,22                                      <== NOT EXECUTED
 8000d44:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
 8000d48:	34 02 ff ff 	mvi r2,-1                                      <== NOT EXECUTED
 8000d4c:	e0 00 00 27 	bi 8000de8 <IMFS_unlink+0xe4>                  <== NOT EXECUTED
                                                                      
    the_link = *loc;                                                  
 8000d50:	29 64 00 08 	lw r4,(r11+8)                                  
 8000d54:	29 63 00 0c 	lw r3,(r11+12)                                 
 8000d58:	29 65 00 04 	lw r5,(r11+4)                                  
 8000d5c:	29 62 00 10 	lw r2,(r11+16)                                 
    the_link.node_access = node->info.hard_link.link_node;            
    IMFS_Set_handlers( &the_link );                                   
 8000d60:	37 8e 00 18 	addi r14,sp,24                                 
                                                                      
    if ( !node->info.hard_link.link_node )                            
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    the_link = *loc;                                                  
    the_link.node_access = node->info.hard_link.link_node;            
 8000d64:	5b 81 00 18 	sw (sp+24),r1                                  
    IMFS_Set_handlers( &the_link );                                   
 8000d68:	b9 c0 08 00 	mv r1,r14                                      
  if ( node->type == IMFS_HARD_LINK ) {                               
                                                                      
    if ( !node->info.hard_link.link_node )                            
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    the_link = *loc;                                                  
 8000d6c:	5b 84 00 20 	sw (sp+32),r4                                  
 8000d70:	5b 83 00 24 	sw (sp+36),r3                                  
 8000d74:	5b 85 00 1c 	sw (sp+28),r5                                  
 8000d78:	5b 82 00 28 	sw (sp+40),r2                                  
    the_link.node_access = node->info.hard_link.link_node;            
    IMFS_Set_handlers( &the_link );                                   
 8000d7c:	f8 00 19 30 	calli 800723c <IMFS_Set_handlers>              
    /*                                                                
     *  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)               
 8000d80:	29 83 00 50 	lw r3,(r12+80)                                 
 8000d84:	34 01 00 01 	mvi r1,1                                       
 8000d88:	2c 64 00 34 	lhu r4,(r3+52)                                 
 8000d8c:	5c 81 00 09 	bne r4,r1,8000db0 <IMFS_unlink+0xac>           
    {                                                                 
        result = (*the_link.handlers->rmnod_h)( parentloc, &the_link );
 8000d90:	2b 81 00 20 	lw r1,(sp+32)                                  
 8000d94:	b9 c0 10 00 	mv r2,r14                                      
 8000d98:	28 23 00 34 	lw r3,(r1+52)                                  
 8000d9c:	b9 a0 08 00 	mv r1,r13                                      
 8000da0:	d8 60 00 00 	call r3                                        
        if ( result != 0 )                                            
            return -1;                                                
 8000da4:	34 02 ff ff 	mvi r2,-1                                      
     */                                                               
                                                                      
    if ( node->info.hard_link.link_node->st_nlink == 1)               
    {                                                                 
        result = (*the_link.handlers->rmnod_h)( parentloc, &the_link );
        if ( result != 0 )                                            
 8000da8:	44 20 00 0a 	be r1,r0,8000dd0 <IMFS_unlink+0xcc>            
 8000dac:	e0 00 00 0f 	bi 8000de8 <IMFS_unlink+0xe4>                  
            return -1;                                                
    }                                                                 
    else                                                              
    {                                                                 
        node->info.hard_link.link_node->st_nlink --;                  
 8000db0:	34 84 ff ff 	addi r4,r4,-1                                  
        IMFS_update_ctime( node->info.hard_link.link_node );          
 8000db4:	34 02 00 00 	mvi r2,0                                       
        if ( result != 0 )                                            
            return -1;                                                
    }                                                                 
    else                                                              
    {                                                                 
        node->info.hard_link.link_node->st_nlink --;                  
 8000db8:	0c 64 00 34 	sh (r3+52),r4                                  
        IMFS_update_ctime( node->info.hard_link.link_node );          
 8000dbc:	37 81 00 2c 	addi r1,sp,44                                  
 8000dc0:	f8 00 01 86 	calli 80013d8 <gettimeofday>                   
 8000dc4:	29 81 00 50 	lw r1,(r12+80)                                 
 8000dc8:	2b 82 00 2c 	lw r2,(sp+44)                                  
 8000dcc:	58 22 00 48 	sw (r1+72),r2                                  
                                                                      
  /*                                                                  
   *  Now actually free the node we were asked to free.               
   */                                                                 
                                                                      
  result = (*loc->handlers->rmnod_h)( parentloc, loc );               
 8000dd0:	29 61 00 08 	lw r1,(r11+8)                                  
 8000dd4:	b9 60 10 00 	mv r2,r11                                      
 8000dd8:	28 23 00 34 	lw r3,(r1+52)                                  
 8000ddc:	b9 a0 08 00 	mv r1,r13                                      
 8000de0:	d8 60 00 00 	call r3                                        
 8000de4:	b8 20 10 00 	mv r2,r1                                       
                                                                      
  return result;                                                      
}                                                                     
 8000de8:	b8 40 08 00 	mv r1,r2                                       
 8000dec:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8000df0:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8000df4:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8000df8:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8000dfc:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8000e00:	37 9c 00 30 	addi sp,sp,48                                  
 8000e04:	c3 a0 00 00 	ret                                            
                                                                      

08000e08 <IMFS_unmount>: #include <rtems/seterr.h> int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) {
 8000e08:	37 9c ff fc 	addi sp,sp,-4                                  
 8000e0c:	5b 9d 00 04 	sw (sp+4),ra                                   
  IMFS_jnode_t  *node;                                                
                                                                      
  node = mt_entry->mt_point_node.node_access;                         
 8000e10:	28 21 00 08 	lw r1,(r1+8)                                   
                                                                      
  /*                                                                  
   * Is the node that we are mounting onto a directory node ?         
   */                                                                 
                                                                      
  if ( node->type != IMFS_DIRECTORY )                                 
 8000e14:	34 02 00 01 	mvi r2,1                                       
 8000e18:	28 23 00 4c 	lw r3,(r1+76)                                  
 8000e1c:	44 62 00 04 	be r3,r2,8000e2c <IMFS_unmount+0x24>           <== ALWAYS TAKEN
    rtems_set_errno_and_return_minus_one( ENOTDIR );                  
 8000e20:	f8 00 29 5c 	calli 800b390 <__errno>                        <== NOT EXECUTED
 8000e24:	34 02 00 14 	mvi r2,20                                      <== NOT EXECUTED
 8000e28:	e0 00 00 05 	bi 8000e3c <IMFS_unmount+0x34>                 <== NOT EXECUTED
                                                                      
  /*                                                                  
   * Did the node indicate that there was a directory mounted here?   
   */                                                                 
                                                                      
  if ( node->info.directory.mt_fs == NULL )                           
 8000e2c:	28 22 00 5c 	lw r2,(r1+92)                                  
 8000e30:	5c 40 00 06 	bne r2,r0,8000e48 <IMFS_unmount+0x40>          <== ALWAYS TAKEN
    rtems_set_errno_and_return_minus_one( EINVAL );  /* XXX */        
 8000e34:	f8 00 29 57 	calli 800b390 <__errno>                        <== NOT EXECUTED
 8000e38:	34 02 00 16 	mvi r2,22                                      <== NOT EXECUTED
 8000e3c:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
 8000e40:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
 8000e44:	e0 00 00 03 	bi 8000e50 <IMFS_unmount+0x48>                 <== NOT EXECUTED
  /*                                                                  
   * 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;                                  
 8000e48:	58 20 00 5c 	sw (r1+92),r0                                  
                                                                      
  return 0;                                                           
 8000e4c:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 8000e50:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8000e54:	37 9c 00 04 	addi sp,sp,4                                   
 8000e58:	c3 a0 00 00 	ret                                            
                                                                      

080006a0 <Stack_check_Dump_threads_usage>: static rtems_printk_plugin_t print_handler; void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) {
 80006a0:	37 9c ff d4 	addi sp,sp,-44                                 
 80006a4:	5b 8b 00 24 	sw (sp+36),r11                                 
 80006a8:	5b 8c 00 20 	sw (sp+32),r12                                 
 80006ac:	5b 8d 00 1c 	sw (sp+28),r13                                 
 80006b0:	5b 8e 00 18 	sw (sp+24),r14                                 
 80006b4:	5b 8f 00 14 	sw (sp+20),r15                                 
 80006b8:	5b 90 00 10 	sw (sp+16),r16                                 
 80006bc:	5b 91 00 0c 	sw (sp+12),r17                                 
 80006c0:	5b 92 00 08 	sw (sp+8),r18                                  
 80006c4:	5b 9d 00 04 	sw (sp+4),ra                                   
 80006c8:	b8 20 68 00 	mv r13,r1                                      
                                                                      
  /*                                                                  
   *  Obtain interrupt stack information                              
   */                                                                 
  #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE)                          
    if (the_thread == (Thread_Control *) -1) {                        
 80006cc:	34 01 ff ff 	mvi r1,-1                                      
 80006d0:	5d a1 00 08 	bne r13,r1,80006f0 <Stack_check_Dump_threads_usage+0x50>
      if (!Stack_check_Interrupt_stack.area)                          
 80006d4:	78 0c 08 01 	mvhi r12,0x801                                 
 80006d8:	39 8c 37 38 	ori r12,r12,0x3738                             
 80006dc:	29 81 00 04 	lw r1,(r12+4)                                  
        return;                                                       
      stack = &Stack_check_Interrupt_stack;                           
      the_thread = 0;                                                 
      current = 0;                                                    
 80006e0:	34 10 00 00 	mvi r16,0                                      
  #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE)                          
    if (the_thread == (Thread_Control *) -1) {                        
      if (!Stack_check_Interrupt_stack.area)                          
        return;                                                       
      stack = &Stack_check_Interrupt_stack;                           
      the_thread = 0;                                                 
 80006e4:	34 0d 00 00 	mvi r13,0                                      
  /*                                                                  
   *  Obtain interrupt stack information                              
   */                                                                 
  #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE)                          
    if (the_thread == (Thread_Control *) -1) {                        
      if (!Stack_check_Interrupt_stack.area)                          
 80006e8:	5c 20 00 04 	bne r1,r0,80006f8 <Stack_check_Dump_threads_usage+0x58><== ALWAYS TAKEN
 80006ec:	e0 00 00 54 	bi 800083c <Stack_check_Dump_threads_usage+0x19c><== NOT EXECUTED
      current = 0;                                                    
    } else                                                            
  #endif                                                              
    {                                                                 
      stack  = &the_thread->Start.Initial_stack;                      
      current = (void *)_CPU_Context_Get_SP( &the_thread->Registers );
 80006f0:	29 b0 01 04 	lw r16,(r13+260)                               
      the_thread = 0;                                                 
      current = 0;                                                    
    } else                                                            
  #endif                                                              
    {                                                                 
      stack  = &the_thread->Start.Initial_stack;                      
 80006f4:	35 ac 00 b4 	addi r12,r13,180                               
      current = (void *)_CPU_Context_Get_SP( &the_thread->Registers );
    }                                                                 
                                                                      
  low  = Stack_check_usable_stack_start(stack);                       
  size = Stack_check_usable_stack_size(stack);                        
 80006f8:	29 8f 00 00 	lw r15,(r12+0)                                 
{                                                                     
  const uint32_t   *base, *ebase;                                     
  uint32_t   length;                                                  
                                                                      
  base = s;                                                           
  length = n/4;                                                       
 80006fc:	34 02 00 02 	mvi r2,2                                       
    {                                                                 
      stack  = &the_thread->Start.Initial_stack;                      
      current = (void *)_CPU_Context_Get_SP( &the_thread->Registers );
    }                                                                 
                                                                      
  low  = Stack_check_usable_stack_start(stack);                       
 8000700:	29 8b 00 04 	lw r11,(r12+4)                                 
  size = Stack_check_usable_stack_size(stack);                        
 8000704:	35 ef ff f0 	addi r15,r15,-16                               
{                                                                     
  const uint32_t   *base, *ebase;                                     
  uint32_t   length;                                                  
                                                                      
  base = s;                                                           
  length = n/4;                                                       
 8000708:	b9 e0 08 00 	mv r1,r15                                      
 800070c:	f8 00 40 43 	calli 8010818 <__lshrsi3>                      
     * start at lower memory and find first word that does not        
     * match pattern                                                  
     */                                                               
                                                                      
    base += PATTERN_SIZE_WORDS;                                       
    for (ebase = base + length; base < ebase; base++)                 
 8000710:	34 02 00 02 	mvi r2,2                                       
 8000714:	f8 00 3f f3 	calli 80106e0 <__ashlsi3>                      
      if (*base != U32_PATTERN)                                       
 8000718:	78 03 08 01 	mvhi r3,0x801                                  
    {                                                                 
      stack  = &the_thread->Start.Initial_stack;                      
      current = (void *)_CPU_Context_Get_SP( &the_thread->Registers );
    }                                                                 
                                                                      
  low  = Stack_check_usable_stack_start(stack);                       
 800071c:	35 71 00 10 	addi r17,r11,16                                
     * match pattern                                                  
     */                                                               
                                                                      
    base += PATTERN_SIZE_WORDS;                                       
    for (ebase = base + length; base < ebase; base++)                 
      if (*base != U32_PATTERN)                                       
 8000720:	38 63 1b 38 	ori r3,r3,0x1b38                               
    /*                                                                
     * start at lower memory and find first word that does not        
     * match pattern                                                  
     */                                                               
                                                                      
    base += PATTERN_SIZE_WORDS;                                       
 8000724:	35 6b 00 20 	addi r11,r11,32                                
    for (ebase = base + length; base < ebase; base++)                 
 8000728:	b5 61 08 00 	add r1,r11,r1                                  
      if (*base != U32_PATTERN)                                       
 800072c:	28 62 00 00 	lw r2,(r3+0)                                   
 8000730:	e0 00 00 04 	bi 8000740 <Stack_check_Dump_threads_usage+0xa0>
 8000734:	29 63 00 00 	lw r3,(r11+0)                                  
 8000738:	5c 62 00 05 	bne r3,r2,800074c <Stack_check_Dump_threads_usage+0xac>
     * start at lower memory and find first word that does not        
     * match pattern                                                  
     */                                                               
                                                                      
    base += PATTERN_SIZE_WORDS;                                       
    for (ebase = base + length; base < ebase; base++)                 
 800073c:	35 6b 00 04 	addi r11,r11,4                                 
 8000740:	54 2b ff fd 	bgu r1,r11,8000734 <Stack_check_Dump_threads_usage+0x94><== ALWAYS TAKEN
  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;                                                         
 8000744:	34 0e 00 00 	mvi r14,0                                      <== NOT EXECUTED
 8000748:	e0 00 00 05 	bi 800075c <Stack_check_Dump_threads_usage+0xbc><== NOT EXECUTED
 800074c:	34 0e 00 00 	mvi r14,0                                      
  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 )                                              
 8000750:	45 60 00 03 	be r11,r0,800075c <Stack_check_Dump_threads_usage+0xbc><== NEVER TAKEN
    used = Stack_check_Calculate_used( low, size, high_water_mark );  
 8000754:	b6 2f 70 00 	add r14,r17,r15                                
 8000758:	c9 cb 70 00 	sub r14,r14,r11                                
 800075c:	78 04 08 01 	mvhi r4,0x801                                  
 8000760:	78 02 08 01 	mvhi r2,0x801                                  
 8000764:	38 84 36 a0 	ori r4,r4,0x36a0                               
 8000768:	38 42 36 9c 	ori r2,r2,0x369c                               
  else                                                                
    used = 0;                                                         
                                                                      
                                                                      
  #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE)                          
    if ( the_thread )                                                 
 800076c:	45 a0 00 0f 	be r13,r0,80007a8 <Stack_check_Dump_threads_usage+0x108>
  #endif                                                              
    {                                                                 
      (*print_handler)(                                               
 8000770:	29 ab 00 08 	lw r11,(r13+8)                                 
 8000774:	28 52 00 00 	lw r18,(r2+0)                                  
 8000778:	37 83 00 28 	addi r3,sp,40                                  
 800077c:	b9 60 08 00 	mv r1,r11                                      
 8000780:	34 02 00 05 	mvi r2,5                                       
 8000784:	28 91 00 00 	lw r17,(r4+0)                                  
 8000788:	f8 00 08 eb 	calli 8002b34 <rtems_object_get_name>          
 800078c:	78 02 08 01 	mvhi r2,0x801                                  
 8000790:	b8 20 20 00 	mv r4,r1                                       
 8000794:	38 42 19 a0 	ori r2,r2,0x19a0                               
 8000798:	ba 40 08 00 	mv r1,r18                                      
 800079c:	b9 60 18 00 	mv r3,r11                                      
 80007a0:	da 20 00 00 	call r17                                       
 80007a4:	e0 00 00 07 	bi 80007c0 <Stack_check_Dump_threads_usage+0x120>
        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 );
 80007a8:	28 41 00 00 	lw r1,(r2+0)                                   
 80007ac:	28 84 00 00 	lw r4,(r4+0)                                   
 80007b0:	78 02 08 01 	mvhi r2,0x801                                  
 80007b4:	38 42 19 b0 	ori r2,r2,0x19b0                               
 80007b8:	34 03 ff ff 	mvi r3,-1                                      
 80007bc:	d8 80 00 00 	call r4                                        
                                                                      
  (*print_handler)(                                                   
    print_context,                                                    
    " %010p - %010p %010p  %8" PRId32 "   ",                          
    stack->area,                                                      
    stack->area + stack->size - 1,                                    
 80007c0:	29 84 00 00 	lw r4,(r12+0)                                  
      else {                                                          
        (*print_handler)( print_context, "0x%08" PRIx32 "  INTR", ~0 );
      }                                                               
    #endif                                                            
                                                                      
  (*print_handler)(                                                   
 80007c4:	78 0b 08 01 	mvhi r11,0x801                                 
 80007c8:	78 0d 08 01 	mvhi r13,0x801                                 
    print_context,                                                    
    " %010p - %010p %010p  %8" PRId32 "   ",                          
    stack->area,                                                      
    stack->area + stack->size - 1,                                    
 80007cc:	29 83 00 04 	lw r3,(r12+4)                                  
      else {                                                          
        (*print_handler)( print_context, "0x%08" PRIx32 "  INTR", ~0 );
      }                                                               
    #endif                                                            
                                                                      
  (*print_handler)(                                                   
 80007d0:	39 6b 36 a0 	ori r11,r11,0x36a0                             
 80007d4:	39 ad 36 9c 	ori r13,r13,0x369c                             
 80007d8:	29 67 00 00 	lw r7,(r11+0)                                  
 80007dc:	29 a1 00 00 	lw r1,(r13+0)                                  
    print_context,                                                    
    " %010p - %010p %010p  %8" PRId32 "   ",                          
    stack->area,                                                      
    stack->area + stack->size - 1,                                    
 80007e0:	34 84 ff ff 	addi r4,r4,-1                                  
      else {                                                          
        (*print_handler)( print_context, "0x%08" PRIx32 "  INTR", ~0 );
      }                                                               
    #endif                                                            
                                                                      
  (*print_handler)(                                                   
 80007e4:	78 02 08 01 	mvhi r2,0x801                                  
 80007e8:	38 42 19 c0 	ori r2,r2,0x19c0                               
 80007ec:	b4 64 20 00 	add r4,r3,r4                                   
 80007f0:	ba 00 28 00 	mv r5,r16                                      
 80007f4:	b9 e0 30 00 	mv r6,r15                                      
 80007f8:	d8 e0 00 00 	call r7                                        
    stack->area + stack->size - 1,                                    
    current,                                                          
    size                                                              
  );                                                                  
                                                                      
  if (Stack_check_Initialized == 0) {                                 
 80007fc:	78 01 08 01 	mvhi r1,0x801                                  
 8000800:	38 21 36 a4 	ori r1,r1,0x36a4                               
 8000804:	28 21 00 00 	lw r1,(r1+0)                                   
 8000808:	5c 20 00 07 	bne r1,r0,8000824 <Stack_check_Dump_threads_usage+0x184><== ALWAYS TAKEN
    (*print_handler)( print_context, "Unavailable\n" );               
 800080c:	29 63 00 00 	lw r3,(r11+0)                                  <== NOT EXECUTED
 8000810:	29 a1 00 00 	lw r1,(r13+0)                                  <== NOT EXECUTED
 8000814:	78 02 08 01 	mvhi r2,0x801                                  <== NOT EXECUTED
 8000818:	38 42 19 e0 	ori r2,r2,0x19e0                               <== NOT EXECUTED
 800081c:	d8 60 00 00 	call r3                                        <== NOT EXECUTED
 8000820:	e0 00 00 07 	bi 800083c <Stack_check_Dump_threads_usage+0x19c><== NOT EXECUTED
  } else {                                                            
    (*print_handler)( print_context, "%8" PRId32 "\n", used );        
 8000824:	29 64 00 00 	lw r4,(r11+0)                                  
 8000828:	29 a1 00 00 	lw r1,(r13+0)                                  
 800082c:	78 02 08 01 	mvhi r2,0x801                                  
 8000830:	38 42 19 f0 	ori r2,r2,0x19f0                               
 8000834:	b9 c0 18 00 	mv r3,r14                                      
 8000838:	d8 80 00 00 	call r4                                        
  }                                                                   
                                                                      
                                                                      
}                                                                     
 800083c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8000840:	2b 8b 00 24 	lw r11,(sp+36)                                 
 8000844:	2b 8c 00 20 	lw r12,(sp+32)                                 
 8000848:	2b 8d 00 1c 	lw r13,(sp+28)                                 
 800084c:	2b 8e 00 18 	lw r14,(sp+24)                                 
 8000850:	2b 8f 00 14 	lw r15,(sp+20)                                 
 8000854:	2b 90 00 10 	lw r16,(sp+16)                                 
 8000858:	2b 91 00 0c 	lw r17,(sp+12)                                 
 800085c:	2b 92 00 08 	lw r18,(sp+8)                                  
 8000860:	37 9c 00 2c 	addi sp,sp,44                                  
 8000864:	c3 a0 00 00 	ret                                            
                                                                      

08000868 <Stack_check_Initialize>: /* * Stack_check_Initialize */ void Stack_check_Initialize( void ) {
 8000868:	37 9c ff fc 	addi sp,sp,-4                                  
 800086c:	5b 9d 00 04 	sw (sp+4),ra                                   
  static    uint32_t pattern[ 4 ] = {                                 
    0xFEEDF00D, 0x0BAD0D06,  /* FEED FOOD to  BAD DOG */              
    0xDEADF00D, 0x600D0D06   /* DEAD FOOD but GOOD DOG */             
  };                                                                  
                                                                      
  if ( Stack_check_Initialized )                                      
 8000870:	78 01 08 01 	mvhi r1,0x801                                  
 8000874:	38 21 36 a4 	ori r1,r1,0x36a4                               
 8000878:	28 23 00 00 	lw r3,(r1+0)                                   
 800087c:	5c 60 00 24 	bne r3,r0,800090c <Stack_check_Initialize+0xa4>
  /*                                                                  
   * Dope the pattern and fill areas                                  
   */                                                                 
  p = Stack_check_Pattern.pattern;                                    
  for ( i = 0; i < PATTERN_SIZE_WORDS; i++ ) {                        
      p[i] = pattern[ i%4 ];                                          
 8000880:	78 04 08 01 	mvhi r4,0x801                                  
 8000884:	38 84 1b 3c 	ori r4,r4,0x1b3c                               
 8000888:	28 82 00 00 	lw r2,(r4+0)                                   
 800088c:	78 01 08 01 	mvhi r1,0x801                                  
 8000890:	78 04 08 01 	mvhi r4,0x801                                  
 8000894:	38 21 37 28 	ori r1,r1,0x3728                               
 8000898:	38 84 1b 40 	ori r4,r4,0x1b40                               
 800089c:	58 22 00 00 	sw (r1+0),r2                                   
 80008a0:	28 82 00 00 	lw r2,(r4+0)                                   
 80008a4:	78 04 08 01 	mvhi r4,0x801                                  
 80008a8:	38 84 1b 44 	ori r4,r4,0x1b44                               
 80008ac:	58 22 00 04 	sw (r1+4),r2                                   
 80008b0:	28 82 00 00 	lw r2,(r4+0)                                   
 80008b4:	78 04 08 01 	mvhi r4,0x801                                  
 80008b8:	38 84 1b 48 	ori r4,r4,0x1b48                               
 80008bc:	58 22 00 08 	sw (r1+8),r2                                   
 80008c0:	28 82 00 00 	lw r2,(r4+0)                                   
 80008c4:	58 22 00 0c 	sw (r1+12),r2                                  
  /*                                                                  
   * 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) {      
 80008c8:	78 02 08 01 	mvhi r2,0x801                                  
 80008cc:	38 42 3a 18 	ori r2,r2,0x3a18                               
 80008d0:	28 41 00 00 	lw r1,(r2+0)                                   
 80008d4:	44 23 00 0a 	be r1,r3,80008fc <Stack_check_Initialize+0x94> <== NEVER TAKEN
 80008d8:	28 43 00 04 	lw r3,(r2+4)                                   
 80008dc:	44 60 00 08 	be r3,r0,80008fc <Stack_check_Initialize+0x94> <== NEVER TAKEN
      Stack_check_Interrupt_stack.area = _CPU_Interrupt_stack_low;    
 80008e0:	78 02 08 01 	mvhi r2,0x801                                  
 80008e4:	38 42 37 38 	ori r2,r2,0x3738                               
      Stack_check_Interrupt_stack.size = (char *) _CPU_Interrupt_stack_high -
 80008e8:	c8 61 18 00 	sub r3,r3,r1                                   
   * 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;    
 80008ec:	58 41 00 04 	sw (r2+4),r1                                   
      Stack_check_Interrupt_stack.size = (char *) _CPU_Interrupt_stack_high -
 80008f0:	58 43 00 00 	sw (r2+0),r3                                   
                                  (char *) _CPU_Interrupt_stack_low;  
      Stack_check_Dope_stack(&Stack_check_Interrupt_stack);           
 80008f4:	34 02 00 a5 	mvi r2,165                                     
 80008f8:	f8 00 2d c4 	calli 800c008 <memset>                         
   }                                                                  
  #endif                                                              
                                                                      
  Stack_check_Initialized = 1;                                        
 80008fc:	78 01 08 01 	mvhi r1,0x801                                  
 8000900:	38 21 36 a4 	ori r1,r1,0x36a4                               
 8000904:	34 02 00 01 	mvi r2,1                                       
 8000908:	58 22 00 00 	sw (r1+0),r2                                   
}                                                                     
 800090c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8000910:	37 9c 00 04 	addi sp,sp,4                                   
 8000914:	c3 a0 00 00 	ret                                            
                                                                      

0800da7c <_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 ) {
 800da7c:	37 9c ff e4 	addi sp,sp,-28                                 
 800da80:	5b 8b 00 1c 	sw (sp+28),r11                                 
 800da84:	5b 8c 00 18 	sw (sp+24),r12                                 
 800da88:	5b 8d 00 14 	sw (sp+20),r13                                 
 800da8c:	5b 8e 00 10 	sw (sp+16),r14                                 
 800da90:	5b 8f 00 0c 	sw (sp+12),r15                                 
 800da94:	5b 90 00 08 	sw (sp+8),r16                                  
 800da98:	5b 9d 00 04 	sw (sp+4),ra                                   
 800da9c:	b8 20 58 00 	mv r11,r1                                      
  size_t message_buffering_required;                                  
  size_t allocated_message_size;                                      
                                                                      
  the_message_queue->maximum_pending_messages   = maximum_pending_messages;
  the_message_queue->number_of_pending_messages = 0;                  
 800daa0:	58 20 00 48 	sw (r1+72),r0                                  
  the_message_queue->maximum_message_size       = maximum_message_size;
 800daa4:	58 24 00 4c 	sw (r1+76),r4                                  
)                                                                     
{                                                                     
  size_t message_buffering_required;                                  
  size_t allocated_message_size;                                      
                                                                      
  the_message_queue->maximum_pending_messages   = maximum_pending_messages;
 800daa8:	59 63 00 44 	sw (r11+68),r3                                 
  /*                                                                  
   *  Round size up to multiple of a pointer for chain init and       
   *  check for overflow on adding overhead to each message.          
   */                                                                 
  allocated_message_size = maximum_message_size;                      
  if (allocated_message_size & (sizeof(uint32_t) - 1)) {              
 800daac:	20 81 00 03 	andi r1,r4,0x3                                 
  CORE_message_queue_Control    *the_message_queue,                   
  CORE_message_queue_Attributes *the_message_queue_attributes,        
  uint32_t                       maximum_pending_messages,            
  size_t                         maximum_message_size                 
)                                                                     
{                                                                     
 800dab0:	b8 40 80 00 	mv r16,r2                                      
 800dab4:	b8 60 70 00 	mv r14,r3                                      
  /*                                                                  
   *  Round size up to multiple of a pointer for chain init and       
   *  check for overflow on adding overhead to each message.          
   */                                                                 
  allocated_message_size = maximum_message_size;                      
  if (allocated_message_size & (sizeof(uint32_t) - 1)) {              
 800dab8:	b8 80 60 00 	mv r12,r4                                      
 800dabc:	44 20 00 06 	be r1,r0,800dad4 <_CORE_message_queue_Initialize+0x58>
    allocated_message_size += sizeof(uint32_t);                       
 800dac0:	34 8c 00 04 	addi r12,r4,4                                  
    allocated_message_size &= ~(sizeof(uint32_t) - 1);                
 800dac4:	34 01 ff fc 	mvi r1,-4                                      
 800dac8:	a1 81 60 00 	and r12,r12,r1                                 
  }                                                                   
                                                                      
  if (allocated_message_size < maximum_message_size)                  
    return false;                                                     
 800dacc:	34 0d 00 00 	mvi r13,0                                      
  if (allocated_message_size & (sizeof(uint32_t) - 1)) {              
    allocated_message_size += sizeof(uint32_t);                       
    allocated_message_size &= ~(sizeof(uint32_t) - 1);                
  }                                                                   
                                                                      
  if (allocated_message_size < maximum_message_size)                  
 800dad0:	54 8c 00 1c 	bgu r4,r12,800db40 <_CORE_message_queue_Initialize+0xc4><== NEVER TAKEN
  /*                                                                  
   *  Calculate how much total memory is required for message buffering and
   *  check for overflow on the multiplication.                       
   */                                                                 
  message_buffering_required = (size_t) maximum_pending_messages *    
       (allocated_message_size + sizeof(CORE_message_queue_Buffer_control));
 800dad4:	35 8f 00 10 	addi r15,r12,16                                
                                                                      
  /*                                                                  
   *  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 *    
 800dad8:	b9 e0 08 00 	mv r1,r15                                      
 800dadc:	b9 c0 10 00 	mv r2,r14                                      
 800dae0:	f8 00 59 8c 	calli 8024110 <__mulsi3>                       
       (allocated_message_size + sizeof(CORE_message_queue_Buffer_control));
                                                                      
  if (message_buffering_required < allocated_message_size)            
    return false;                                                     
 800dae4:	34 0d 00 00 	mvi r13,0                                      
   *  check for overflow on the multiplication.                       
   */                                                                 
  message_buffering_required = (size_t) maximum_pending_messages *    
       (allocated_message_size + sizeof(CORE_message_queue_Buffer_control));
                                                                      
  if (message_buffering_required < allocated_message_size)            
 800dae8:	55 81 00 16 	bgu r12,r1,800db40 <_CORE_message_queue_Initialize+0xc4><== NEVER TAKEN
                                                                      
  /*                                                                  
   *  Attempt to allocate the message memory                          
   */                                                                 
  the_message_queue->message_buffers = (CORE_message_queue_Buffer *)  
     _Workspace_Allocate( message_buffering_required );               
 800daec:	f8 00 0e 8c 	calli 801151c <_Workspace_Allocate>            
    return false;                                                     
                                                                      
  /*                                                                  
   *  Attempt to allocate the message memory                          
   */                                                                 
  the_message_queue->message_buffers = (CORE_message_queue_Buffer *)  
 800daf0:	59 61 00 5c 	sw (r11+92),r1                                 
     _Workspace_Allocate( message_buffering_required );               
 800daf4:	b8 20 28 00 	mv r5,r1                                       
                                                                      
  if (the_message_queue->message_buffers == 0)                        
 800daf8:	44 20 00 12 	be r1,r0,800db40 <_CORE_message_queue_Initialize+0xc4>
                                                                      
  /*                                                                  
   *  Initialize the pool of inactive messages, pending messages,     
   *  and set of waiting threads.                                     
   */                                                                 
  _Chain_Initialize (                                                 
 800dafc:	b8 a0 10 00 	mv r2,r5                                       
 800db00:	35 61 00 60 	addi r1,r11,96                                 
 800db04:	b9 c0 18 00 	mv r3,r14                                      
 800db08:	b9 e0 20 00 	mv r4,r15                                      
 800db0c:	f8 00 17 39 	calli 80137f0 <_Chain_Initialize>              
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 );                        
 800db10:	35 61 00 54 	addi r1,r11,84                                 
                                                                      
  head->next = tail;                                                  
 800db14:	59 61 00 50 	sw (r11+80),r1                                 
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
 800db18:	35 61 00 50 	addi r1,r11,80                                 
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
  tail->previous = head;                                              
 800db1c:	59 61 00 58 	sw (r11+88),r1                                 
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
 800db20:	59 60 00 54 	sw (r11+84),r0                                 
    allocated_message_size + sizeof( CORE_message_queue_Buffer_control )
  );                                                                  
                                                                      
  _Chain_Initialize_empty( &the_message_queue->Pending_messages );    
                                                                      
  _Thread_queue_Initialize(                                           
 800db24:	2a 02 00 00 	lw r2,(r16+0)                                  
 800db28:	b9 60 08 00 	mv r1,r11                                      
 800db2c:	34 03 00 80 	mvi r3,128                                     
 800db30:	64 42 00 01 	cmpei r2,r2,1                                  
 800db34:	34 04 00 06 	mvi r4,6                                       
 800db38:	f8 00 0b 6c 	calli 80108e8 <_Thread_queue_Initialize>       
       THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO,
    STATES_WAITING_FOR_MESSAGE,                                       
    CORE_MESSAGE_QUEUE_STATUS_TIMEOUT                                 
  );                                                                  
                                                                      
  return true;                                                        
 800db3c:	34 0d 00 01 	mvi r13,1                                      
}                                                                     
 800db40:	b9 a0 08 00 	mv r1,r13                                      
 800db44:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800db48:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 800db4c:	2b 8c 00 18 	lw r12,(sp+24)                                 
 800db50:	2b 8d 00 14 	lw r13,(sp+20)                                 
 800db54:	2b 8e 00 10 	lw r14,(sp+16)                                 
 800db58:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 800db5c:	2b 90 00 08 	lw r16,(sp+8)                                  
 800db60:	37 9c 00 1c 	addi sp,sp,28                                  
 800db64:	c3 a0 00 00 	ret                                            
                                                                      

0800db68 <_CORE_message_queue_Seize>: void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) {
 800db68:	37 9c ff f4 	addi sp,sp,-12                                 
 800db6c:	5b 8b 00 0c 	sw (sp+12),r11                                 
 800db70:	5b 8c 00 08 	sw (sp+8),r12                                  
 800db74:	5b 9d 00 04 	sw (sp+4),ra                                   
  ISR_Level                          level;                           
  CORE_message_queue_Buffer_control *the_message;                     
  Thread_Control                    *executing;                       
                                                                      
  executing = _Thread_Executing;                                      
 800db78:	78 07 08 02 	mvhi r7,0x802                                  
 800db7c:	38 e7 7b c8 	ori r7,r7,0x7bc8                               
 800db80:	28 e7 00 0c 	lw r7,(r7+12)                                  
  void                            *buffer,                            
  size_t                          *size_p,                            
  bool                             wait,                              
  Watchdog_Interval                timeout                            
)                                                                     
{                                                                     
 800db84:	b8 20 58 00 	mv r11,r1                                      
 800db88:	20 a5 00 ff 	andi r5,r5,0xff                                
  ISR_Level                          level;                           
  CORE_message_queue_Buffer_control *the_message;                     
  Thread_Control                    *executing;                       
                                                                      
  executing = _Thread_Executing;                                      
  executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; 
 800db8c:	58 e0 00 34 	sw (r7+52),r0                                  
  void                            *buffer,                            
  size_t                          *size_p,                            
  bool                             wait,                              
  Watchdog_Interval                timeout                            
)                                                                     
{                                                                     
 800db90:	b8 60 08 00 	mv r1,r3                                       
  CORE_message_queue_Buffer_control *the_message;                     
  Thread_Control                    *executing;                       
                                                                      
  executing = _Thread_Executing;                                      
  executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; 
  _ISR_Disable( level );                                              
 800db94:	90 00 40 00 	rcsr r8,IE                                     
 800db98:	34 03 ff fe 	mvi r3,-2                                      
 800db9c:	a1 03 18 00 	and r3,r8,r3                                   
 800dba0:	d0 03 00 00 	wcsr IE,r3                                     
  executing->Wait.return_argument = size_p;                           
  /* Wait.count will be filled in with the message priority */        
  _ISR_Enable( level );                                               
                                                                      
  _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );   
}                                                                     
 800dba4:	29 6c 00 50 	lw r12,(r11+80)                                
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
 800dba8:	35 63 00 54 	addi r3,r11,84                                 
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(              
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  if ( !_Chain_Is_empty(the_chain))                                   
 800dbac:	45 83 00 07 	be r12,r3,800dbc8 <_CORE_message_queue_Seize+0x60>
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *old_first = head->next;                                 
  Chain_Node *new_first = old_first->next;                            
 800dbb0:	29 83 00 00 	lw r3,(r12+0)                                  
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_first_unprotected(        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
 800dbb4:	35 69 00 50 	addi r9,r11,80                                 
  Chain_Node *old_first = head->next;                                 
  Chain_Node *new_first = old_first->next;                            
                                                                      
  head->next = new_first;                                             
 800dbb8:	59 63 00 50 	sw (r11+80),r3                                 
  new_first->previous = head;                                         
 800dbbc:	58 69 00 04 	sw (r3+4),r9                                   
                                                                      
  executing = _Thread_Executing;                                      
  executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; 
  _ISR_Disable( level );                                              
  the_message = _CORE_message_queue_Get_pending_message( the_message_queue );
  if ( the_message != NULL ) {                                        
 800dbc0:	5d 80 00 04 	bne r12,r0,800dbd0 <_CORE_message_queue_Seize+0x68><== ALWAYS TAKEN
 800dbc4:	e0 00 00 13 	bi 800dc10 <_CORE_message_queue_Seize+0xa8>    <== NOT EXECUTED
)                                                                     
{                                                                     
  if ( !_Chain_Is_empty(the_chain))                                   
    return _Chain_Get_first_unprotected(the_chain);                   
  else                                                                
    return NULL;                                                      
 800dbc8:	34 0c 00 00 	mvi r12,0                                      
 800dbcc:	e0 00 00 11 	bi 800dc10 <_CORE_message_queue_Seize+0xa8>    
    the_message_queue->number_of_pending_messages -= 1;               
 800dbd0:	29 62 00 48 	lw r2,(r11+72)                                 
 800dbd4:	34 42 ff ff 	addi r2,r2,-1                                  
 800dbd8:	59 62 00 48 	sw (r11+72),r2                                 
    _ISR_Enable( level );                                             
 800dbdc:	d0 08 00 00 	wcsr IE,r8                                     
                                                                      
    *size_p = the_message->Contents.size;                             
    _Thread_Executing->Wait.count =                                   
 800dbe0:	78 02 08 02 	mvhi r2,0x802                                  
  the_message = _CORE_message_queue_Get_pending_message( the_message_queue );
  if ( the_message != NULL ) {                                        
    the_message_queue->number_of_pending_messages -= 1;               
    _ISR_Enable( level );                                             
                                                                      
    *size_p = the_message->Contents.size;                             
 800dbe4:	29 83 00 08 	lw r3,(r12+8)                                  
    _Thread_Executing->Wait.count =                                   
 800dbe8:	38 42 7b c8 	ori r2,r2,0x7bc8                               
 800dbec:	28 42 00 0c 	lw r2,(r2+12)                                  
  the_message = _CORE_message_queue_Get_pending_message( the_message_queue );
  if ( the_message != NULL ) {                                        
    the_message_queue->number_of_pending_messages -= 1;               
    _ISR_Enable( level );                                             
                                                                      
    *size_p = the_message->Contents.size;                             
 800dbf0:	58 83 00 00 	sw (r4+0),r3                                   
    _Thread_Executing->Wait.count =                                   
 800dbf4:	58 40 00 24 	sw (r2+36),r0                                  
  const void *source,                                                 
  void       *destination,                                            
  size_t      size                                                    
)                                                                     
{                                                                     
  memcpy(destination, source, size);                                  
 800dbf8:	35 82 00 0c 	addi r2,r12,12                                 
 800dbfc:	f8 00 22 ad 	calli 80166b0 <memcpy>                         
RTEMS_INLINE_ROUTINE void _CORE_message_queue_Free_message_buffer (   
  CORE_message_queue_Control        *the_message_queue,               
  CORE_message_queue_Buffer_control *the_message                      
)                                                                     
{                                                                     
  _Chain_Append( &the_message_queue->Inactive_messages, &the_message->Node );
 800dc00:	35 61 00 60 	addi r1,r11,96                                 
 800dc04:	b9 80 10 00 	mv r2,r12                                      
 800dc08:	fb ff ff 6d 	calli 800d9bc <_Chain_Append>                  
      /*                                                              
       *  There is not an API with blocking sends enabled.            
       *  So return immediately.                                      
       */                                                             
      _CORE_message_queue_Free_message_buffer(the_message_queue, the_message);
      return;                                                         
 800dc0c:	e0 00 00 12 	bi 800dc54 <_CORE_message_queue_Seize+0xec>    
      return;                                                         
    }                                                                 
    #endif                                                            
  }                                                                   
                                                                      
  if ( !wait ) {                                                      
 800dc10:	5c ac 00 05 	bne r5,r12,800dc24 <_CORE_message_queue_Seize+0xbc>
    _ISR_Enable( level );                                             
 800dc14:	d0 08 00 00 	wcsr IE,r8                                     
    executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT;
 800dc18:	34 01 00 04 	mvi r1,4                                       
 800dc1c:	58 e1 00 34 	sw (r7+52),r1                                  
    return;                                                           
 800dc20:	e0 00 00 0d 	bi 800dc54 <_CORE_message_queue_Seize+0xec>    
                                                                      
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;
 800dc24:	34 03 00 01 	mvi r3,1                                       
 800dc28:	59 63 00 30 	sw (r11+48),r3                                 
  }                                                                   
                                                                      
  _Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue );
  executing->Wait.queue = &the_message_queue->Wait_queue;             
 800dc2c:	58 eb 00 44 	sw (r7+68),r11                                 
  executing->Wait.id = id;                                            
 800dc30:	58 e2 00 20 	sw (r7+32),r2                                  
  executing->Wait.return_argument_second.mutable_object = buffer;     
 800dc34:	58 e1 00 2c 	sw (r7+44),r1                                  
  executing->Wait.return_argument = size_p;                           
 800dc38:	58 e4 00 28 	sw (r7+40),r4                                  
  /* Wait.count will be filled in with the message priority */        
  _ISR_Enable( level );                                               
 800dc3c:	d0 08 00 00 	wcsr IE,r8                                     
                                                                      
  _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );   
 800dc40:	78 03 08 01 	mvhi r3,0x801                                  
 800dc44:	b9 60 08 00 	mv r1,r11                                      
 800dc48:	b8 c0 10 00 	mv r2,r6                                       
 800dc4c:	38 63 0a 28 	ori r3,r3,0xa28                                
 800dc50:	f8 00 0a 3b 	calli 801053c <_Thread_queue_Enqueue_with_handler>
}                                                                     
 800dc54:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800dc58:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 800dc5c:	2b 8c 00 08 	lw r12,(sp+8)                                  
 800dc60:	37 9c 00 0c 	addi sp,sp,12                                  
 800dc64:	c3 a0 00 00 	ret                                            
                                                                      

080036b8 <_CORE_mutex_Seize>: Objects_Id _id, bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) {
 80036b8:	37 9c ff e8 	addi sp,sp,-24                                 
 80036bc:	5b 8b 00 14 	sw (sp+20),r11                                 
 80036c0:	5b 8c 00 10 	sw (sp+16),r12                                 
 80036c4:	5b 8d 00 0c 	sw (sp+12),r13                                 
 80036c8:	5b 8e 00 08 	sw (sp+8),r14                                  
 80036cc:	5b 9d 00 04 	sw (sp+4),ra                                   
 80036d0:	b8 20 58 00 	mv r11,r1                                      
  _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); 
 80036d4:	78 01 08 01 	mvhi r1,0x801                                  
 80036d8:	38 21 38 88 	ori r1,r1,0x3888                               
 80036dc:	28 21 00 00 	lw r1,(r1+0)                                   
  Objects_Id           _id,                                           
  bool                 _wait,                                         
  Watchdog_Interval    _timeout,                                      
  ISR_Level            _level                                         
)                                                                     
{                                                                     
 80036e0:	5b 85 00 18 	sw (sp+24),r5                                  
 80036e4:	b8 40 70 00 	mv r14,r2                                      
 80036e8:	b8 80 68 00 	mv r13,r4                                      
 80036ec:	20 6c 00 ff 	andi r12,r3,0xff                               
  _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); 
 80036f0:	44 20 00 0b 	be r1,r0,800371c <_CORE_mutex_Seize+0x64>      
 80036f4:	45 80 00 0a 	be r12,r0,800371c <_CORE_mutex_Seize+0x64>     <== NEVER TAKEN
 80036f8:	78 01 08 01 	mvhi r1,0x801                                  
 80036fc:	38 21 39 e0 	ori r1,r1,0x39e0                               
 8003700:	28 21 00 00 	lw r1,(r1+0)                                   
 8003704:	34 02 00 01 	mvi r2,1                                       
 8003708:	50 41 00 05 	bgeu r2,r1,800371c <_CORE_mutex_Seize+0x64>    
 800370c:	34 01 00 00 	mvi r1,0                                       
 8003710:	34 02 00 00 	mvi r2,0                                       
 8003714:	34 03 00 12 	mvi r3,18                                      
 8003718:	f8 00 02 2a 	calli 8003fc0 <_Internal_error_Occurred>       
 800371c:	b9 60 08 00 	mv r1,r11                                      
 8003720:	37 82 00 18 	addi r2,sp,24                                  
 8003724:	f8 00 15 e5 	calli 8008eb8 <_CORE_mutex_Seize_interrupt_trylock>
 8003728:	44 20 00 19 	be r1,r0,800378c <_CORE_mutex_Seize+0xd4>      
 800372c:	78 01 08 01 	mvhi r1,0x801                                  
 8003730:	38 21 3a 28 	ori r1,r1,0x3a28                               
 8003734:	5d 80 00 07 	bne r12,r0,8003750 <_CORE_mutex_Seize+0x98>    
 8003738:	2b 82 00 18 	lw r2,(sp+24)                                  
 800373c:	d0 02 00 00 	wcsr IE,r2                                     
 8003740:	28 21 00 0c 	lw r1,(r1+12)                                  
 8003744:	34 02 00 01 	mvi r2,1                                       
 8003748:	58 22 00 34 	sw (r1+52),r2                                  
 800374c:	e0 00 00 10 	bi 800378c <_CORE_mutex_Seize+0xd4>            
 8003750:	28 21 00 0c 	lw r1,(r1+12)                                  
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_queue_Enter_critical_section (      
  Thread_queue_Control *the_thread_queue                              
)                                                                     
{                                                                     
  the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
 8003754:	34 02 00 01 	mvi r2,1                                       
 8003758:	59 62 00 30 	sw (r11+48),r2                                 
 800375c:	58 2b 00 44 	sw (r1+68),r11                                 
 8003760:	58 2e 00 20 	sw (r1+32),r14                                 
 8003764:	78 01 08 01 	mvhi r1,0x801                                  
 8003768:	38 21 38 88 	ori r1,r1,0x3888                               
 800376c:	28 22 00 00 	lw r2,(r1+0)                                   
 8003770:	34 42 00 01 	addi r2,r2,1                                   
 8003774:	58 22 00 00 	sw (r1+0),r2                                   
 8003778:	2b 81 00 18 	lw r1,(sp+24)                                  
 800377c:	d0 01 00 00 	wcsr IE,r1                                     
 8003780:	b9 60 08 00 	mv r1,r11                                      
 8003784:	b9 a0 10 00 	mv r2,r13                                      
 8003788:	fb ff ff ab 	calli 8003634 <_CORE_mutex_Seize_interrupt_blocking>
}                                                                     
 800378c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003790:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8003794:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8003798:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 800379c:	2b 8e 00 08 	lw r14,(sp+8)                                  
 80037a0:	37 9c 00 18 	addi sp,sp,24                                  
 80037a4:	c3 a0 00 00 	ret                                            
                                                                      

08003908 <_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 ) {
 8003908:	37 9c ff f8 	addi sp,sp,-8                                  
 800390c:	5b 8b 00 08 	sw (sp+8),r11                                  
 8003910:	5b 9d 00 04 	sw (sp+4),ra                                   
 8003914:	b8 20 58 00 	mv r11,r1                                      
  ISR_Level       level;                                              
  CORE_semaphore_Status status;                                       
                                                                      
  status = CORE_SEMAPHORE_STATUS_SUCCESSFUL;                          
                                                                      
  if ( (the_thread = _Thread_queue_Dequeue(&the_semaphore->Wait_queue)) ) {
 8003918:	f8 00 08 1f 	calli 8005994 <_Thread_queue_Dequeue>          
{                                                                     
  Thread_Control *the_thread;                                         
  ISR_Level       level;                                              
  CORE_semaphore_Status status;                                       
                                                                      
  status = CORE_SEMAPHORE_STATUS_SUCCESSFUL;                          
 800391c:	34 02 00 00 	mvi r2,0                                       
                                                                      
  if ( (the_thread = _Thread_queue_Dequeue(&the_semaphore->Wait_queue)) ) {
 8003920:	5c 20 00 0d 	bne r1,r0,8003954 <_CORE_semaphore_Surrender+0x4c>
    if ( !_Objects_Is_local_id( the_thread->Object.id ) )             
      (*api_semaphore_mp_support) ( the_thread, id );                 
#endif                                                                
                                                                      
  } else {                                                            
    _ISR_Disable( level );                                            
 8003924:	90 00 08 00 	rcsr r1,IE                                     
 8003928:	34 02 ff fe 	mvi r2,-2                                      
 800392c:	a0 22 10 00 	and r2,r1,r2                                   
 8003930:	d0 02 00 00 	wcsr IE,r2                                     
      if ( the_semaphore->count < the_semaphore->Attributes.maximum_count )
 8003934:	29 63 00 48 	lw r3,(r11+72)                                 
 8003938:	29 64 00 40 	lw r4,(r11+64)                                 
        the_semaphore->count += 1;                                    
      else                                                            
        status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;               
 800393c:	34 02 00 04 	mvi r2,4                                       
      (*api_semaphore_mp_support) ( the_thread, id );                 
#endif                                                                
                                                                      
  } else {                                                            
    _ISR_Disable( level );                                            
      if ( the_semaphore->count < the_semaphore->Attributes.maximum_count )
 8003940:	50 64 00 04 	bgeu r3,r4,8003950 <_CORE_semaphore_Surrender+0x48><== NEVER TAKEN
        the_semaphore->count += 1;                                    
 8003944:	34 63 00 01 	addi r3,r3,1                                   
 8003948:	59 63 00 48 	sw (r11+72),r3                                 
{                                                                     
  Thread_Control *the_thread;                                         
  ISR_Level       level;                                              
  CORE_semaphore_Status status;                                       
                                                                      
  status = CORE_SEMAPHORE_STATUS_SUCCESSFUL;                          
 800394c:	34 02 00 00 	mvi r2,0                                       
    _ISR_Disable( level );                                            
      if ( the_semaphore->count < the_semaphore->Attributes.maximum_count )
        the_semaphore->count += 1;                                    
      else                                                            
        status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;               
    _ISR_Enable( level );                                             
 8003950:	d0 01 00 00 	wcsr IE,r1                                     
  }                                                                   
                                                                      
  return status;                                                      
}                                                                     
 8003954:	b8 40 08 00 	mv r1,r2                                       
 8003958:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800395c:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8003960:	37 9c 00 08 	addi sp,sp,8                                   
 8003964:	c3 a0 00 00 	ret                                            
                                                                      

0800cf80 <_Event_Surrender>: */ void _Event_Surrender( Thread_Control *the_thread ) {
 800cf80:	37 9c ff f8 	addi sp,sp,-8                                  
 800cf84:	5b 8b 00 08 	sw (sp+8),r11                                  
 800cf88:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_event_set     event_condition;                                
  rtems_event_set     seized_events;                                  
  rtems_option        option_set;                                     
  RTEMS_API_Control  *api;                                            
                                                                      
  api = the_thread->API_Extensions[ THREAD_API_RTEMS ];               
 800cf8c:	28 24 01 18 	lw r4,(r1+280)                                 
                                                                      
  option_set = (rtems_option) the_thread->Wait.option;                
 800cf90:	28 28 00 30 	lw r8,(r1+48)                                  
 */                                                                   
                                                                      
void _Event_Surrender(                                                
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
 800cf94:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  api = the_thread->API_Extensions[ THREAD_API_RTEMS ];               
                                                                      
  option_set = (rtems_option) the_thread->Wait.option;                
                                                                      
  _ISR_Disable( level );                                              
 800cf98:	90 00 08 00 	rcsr r1,IE                                     
 800cf9c:	34 07 ff fe 	mvi r7,-2                                      
 800cfa0:	a0 27 38 00 	and r7,r1,r7                                   
 800cfa4:	d0 07 00 00 	wcsr IE,r7                                     
  pending_events  = api->pending_events;                              
 800cfa8:	28 85 00 00 	lw r5,(r4+0)                                   
  event_condition = (rtems_event_set) the_thread->Wait.count;         
 800cfac:	29 66 00 24 	lw r6,(r11+36)                                 
RTEMS_INLINE_ROUTINE rtems_event_set _Event_sets_Get(                 
  rtems_event_set the_event_set,                                      
  rtems_event_set the_event_condition                                 
)                                                                     
{                                                                     
   return ( the_event_set & the_event_condition );                    
 800cfb0:	a0 c5 10 00 	and r2,r6,r5                                   
  seized_events = _Event_sets_Get( pending_events, event_condition ); 
                                                                      
  /*                                                                  
   *  No events were seized in this operation                         
   */                                                                 
  if ( _Event_sets_Is_empty( seized_events ) ) {                      
 800cfb4:	5c 40 00 03 	bne r2,r0,800cfc0 <_Event_Surrender+0x40>      
    _ISR_Enable( level );                                             
 800cfb8:	d0 01 00 00 	wcsr IE,r1                                     
    return;                                                           
 800cfbc:	e0 00 00 3d 	bi 800d0b0 <_Event_Surrender+0x130>            
                                                                      
  /*                                                                  
   *  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() &&                                       
 800cfc0:	78 03 08 01 	mvhi r3,0x801                                  
 800cfc4:	38 63 8a a8 	ori r3,r3,0x8aa8                               
 800cfc8:	28 69 00 08 	lw r9,(r3+8)                                   
 800cfcc:	45 20 00 1a 	be r9,r0,800d034 <_Event_Surrender+0xb4>       
 800cfd0:	28 63 00 0c 	lw r3,(r3+12)                                  
 800cfd4:	5d 63 00 18 	bne r11,r3,800d034 <_Event_Surrender+0xb4>     
       _Thread_Is_executing( the_thread ) &&                          
       ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||   
 800cfd8:	78 03 08 01 	mvhi r3,0x801                                  
 800cfdc:	38 63 8c 00 	ori r3,r3,0x8c00                               
 800cfe0:	28 6a 00 00 	lw r10,(r3+0)                                  
  /*                                                                  
   *  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 ) &&                          
 800cfe4:	34 09 00 02 	mvi r9,2                                       
 800cfe8:	45 49 00 04 	be r10,r9,800cff8 <_Event_Surrender+0x78>      <== NEVER TAKEN
       ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||   
        (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
 800cfec:	28 69 00 00 	lw r9,(r3+0)                                   
   *  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) ||   
 800cff0:	34 03 00 01 	mvi r3,1                                       
 800cff4:	5d 23 00 10 	bne r9,r3,800d034 <_Event_Surrender+0xb4>      
        (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
    if ( seized_events == event_condition || _Options_Is_any(option_set) ) {
 800cff8:	44 46 00 03 	be r2,r6,800d004 <_Event_Surrender+0x84>       
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Options_Is_any (                           
  rtems_option option_set                                             
)                                                                     
{                                                                     
   return (option_set & RTEMS_EVENT_ANY) ? true : false;              
 800cffc:	21 08 00 02 	andi r8,r8,0x2                                 
 800d000:	45 00 00 0b 	be r8,r0,800d02c <_Event_Surrender+0xac>       <== NEVER TAKEN
RTEMS_INLINE_ROUTINE rtems_event_set _Event_sets_Clear(               
 rtems_event_set the_event_set,                                       
 rtems_event_set the_mask                                             
)                                                                     
{                                                                     
   return ( the_event_set & ~(the_mask) );                            
 800d004:	a4 40 18 00 	not r3,r2                                      
 800d008:	a0 65 28 00 	and r5,r3,r5                                   
      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;
 800d00c:	29 63 00 28 	lw r3,(r11+40)                                 
  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 );
 800d010:	58 85 00 00 	sw (r4+0),r5                                   
      the_thread->Wait.count = 0;                                     
 800d014:	59 60 00 24 	sw (r11+36),r0                                 
      *(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
 800d018:	58 62 00 00 	sw (r3+0),r2                                   
      _Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED;        
 800d01c:	78 02 08 01 	mvhi r2,0x801                                  
 800d020:	38 42 8c 00 	ori r2,r2,0x8c00                               
 800d024:	34 03 00 03 	mvi r3,3                                       
 800d028:	58 43 00 00 	sw (r2+0),r3                                   
    }                                                                 
    _ISR_Enable( level );                                             
 800d02c:	d0 01 00 00 	wcsr IE,r1                                     
    return;                                                           
 800d030:	e0 00 00 20 	bi 800d0b0 <_Event_Surrender+0x130>            
 */                                                                   
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_event (              
  States_Control the_states                                           
)                                                                     
{                                                                     
   return (the_states & STATES_WAITING_FOR_EVENT);                    
 800d034:	29 63 00 10 	lw r3,(r11+16)                                 
 800d038:	20 63 01 00 	andi r3,r3,0x100                               
  }                                                                   
                                                                      
  /*                                                                  
   *  Otherwise, this is a normal send to another thread              
   */                                                                 
  if ( _States_Is_waiting_for_event( the_thread->current_state ) ) {  
 800d03c:	44 60 00 1c 	be r3,r0,800d0ac <_Event_Surrender+0x12c>      
    if ( seized_events == event_condition || _Options_Is_any( option_set ) ) {
 800d040:	44 46 00 03 	be r2,r6,800d04c <_Event_Surrender+0xcc>       
 800d044:	21 08 00 02 	andi r8,r8,0x2                                 
 800d048:	45 00 00 19 	be r8,r0,800d0ac <_Event_Surrender+0x12c>      <== NEVER TAKEN
 800d04c:	a4 40 18 00 	not r3,r2                                      
 800d050:	a0 65 28 00 	and r5,r3,r5                                   
      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;
 800d054:	29 63 00 28 	lw r3,(r11+40)                                 
  /*                                                                  
   *  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 );
 800d058:	58 85 00 00 	sw (r4+0),r5                                   
      the_thread->Wait.count = 0;                                     
 800d05c:	59 60 00 24 	sw (r11+36),r0                                 
      *(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
 800d060:	58 62 00 00 	sw (r3+0),r2                                   
                                                                      
      _ISR_Flash( level );                                            
 800d064:	d0 01 00 00 	wcsr IE,r1                                     
 800d068:	d0 07 00 00 	wcsr IE,r7                                     
                                                                      
      if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {             
 800d06c:	29 63 00 50 	lw r3,(r11+80)                                 
 800d070:	34 02 00 02 	mvi r2,2                                       
 800d074:	44 62 00 03 	be r3,r2,800d080 <_Event_Surrender+0x100>      
        _ISR_Enable( level );                                         
 800d078:	d0 01 00 00 	wcsr IE,r1                                     
 800d07c:	e0 00 00 06 	bi 800d094 <_Event_Surrender+0x114>            
RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate(                       
  Watchdog_Control *the_watchdog                                      
)                                                                     
{                                                                     
                                                                      
  the_watchdog->state = WATCHDOG_REMOVE_IT;                           
 800d080:	34 02 00 03 	mvi r2,3                                       
 800d084:	59 62 00 50 	sw (r11+80),r2                                 
        _Thread_Unblock( the_thread );                                
      } else {                                                        
        _Watchdog_Deactivate( &the_thread->Timer );                   
        _ISR_Enable( level );                                         
 800d088:	d0 01 00 00 	wcsr IE,r1                                     
        (void) _Watchdog_Remove( &the_thread->Timer );                
 800d08c:	35 61 00 48 	addi r1,r11,72                                 
 800d090:	fb ff eb 0a 	calli 8007cb8 <_Watchdog_Remove>               
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unblock (                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
  _Thread_Clear_state( the_thread, STATES_BLOCKED );                  
 800d094:	78 03 08 01 	mvhi r3,0x801                                  
 800d098:	38 63 6f 60 	ori r3,r3,0x6f60                               
 800d09c:	28 62 00 00 	lw r2,(r3+0)                                   
 800d0a0:	b9 60 08 00 	mv r1,r11                                      
 800d0a4:	f8 00 04 fd 	calli 800e498 <_Thread_Clear_state>            
 800d0a8:	e0 00 00 02 	bi 800d0b0 <_Event_Surrender+0x130>            
        _Thread_Unblock( the_thread );                                
      }                                                               
      return;                                                         
    }                                                                 
  }                                                                   
  _ISR_Enable( level );                                               
 800d0ac:	d0 01 00 00 	wcsr IE,r1                                     
}                                                                     
 800d0b0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800d0b4:	2b 8b 00 08 	lw r11,(sp+8)                                  
 800d0b8:	37 9c 00 08 	addi sp,sp,8                                   
 800d0bc:	c3 a0 00 00 	ret                                            
                                                                      

0800d0c0 <_Event_Timeout>: void _Event_Timeout( Objects_Id id, void *ignored ) {
 800d0c0:	37 9c ff f8 	addi sp,sp,-8                                  
 800d0c4:	5b 9d 00 04 	sw (sp+4),ra                                   
  Thread_Control    *the_thread;                                      
  Objects_Locations  location;                                        
  ISR_Level          level;                                           
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 800d0c8:	37 82 00 08 	addi r2,sp,8                                   
 800d0cc:	fb ff e6 7c 	calli 8006abc <_Thread_Get>                    
  switch ( location ) {                                               
 800d0d0:	2b 82 00 08 	lw r2,(sp+8)                                   
 800d0d4:	5c 40 00 1d 	bne r2,r0,800d148 <_Event_Timeout+0x88>        <== NEVER TAKEN
       *                                                              
       *  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 );                                          
 800d0d8:	90 00 18 00 	rcsr r3,IE                                     
 800d0dc:	34 02 ff fe 	mvi r2,-2                                      
 800d0e0:	a0 62 10 00 	and r2,r3,r2                                   
 800d0e4:	d0 02 00 00 	wcsr IE,r2                                     
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing (                      
  const Thread_Control *the_thread                                    
)                                                                     
{                                                                     
  return ( the_thread == _Thread_Executing );                         
 800d0e8:	78 02 08 01 	mvhi r2,0x801                                  
 800d0ec:	38 42 8a a8 	ori r2,r2,0x8aa8                               
            return;                                                   
          }                                                           
        #endif                                                        
                                                                      
        the_thread->Wait.count = 0;                                   
        if ( _Thread_Is_executing( the_thread ) ) {                   
 800d0f0:	28 42 00 0c 	lw r2,(r2+12)                                  
            _ISR_Enable( level );                                     
            return;                                                   
          }                                                           
        #endif                                                        
                                                                      
        the_thread->Wait.count = 0;                                   
 800d0f4:	58 20 00 24 	sw (r1+36),r0                                  
        if ( _Thread_Is_executing( the_thread ) ) {                   
 800d0f8:	5c 22 00 08 	bne r1,r2,800d118 <_Event_Timeout+0x58>        
          if ( _Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
 800d0fc:	78 02 08 01 	mvhi r2,0x801                                  
 800d100:	38 42 8c 00 	ori r2,r2,0x8c00                               
 800d104:	28 45 00 00 	lw r5,(r2+0)                                   
 800d108:	34 04 00 01 	mvi r4,1                                       
 800d10c:	5c a4 00 03 	bne r5,r4,800d118 <_Event_Timeout+0x58>        
            _Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;    
 800d110:	34 04 00 02 	mvi r4,2                                       
 800d114:	58 44 00 00 	sw (r2+0),r4                                   
        }                                                             
                                                                      
        the_thread->Wait.return_code = RTEMS_TIMEOUT;                 
 800d118:	34 02 00 06 	mvi r2,6                                       
 800d11c:	58 22 00 34 	sw (r1+52),r2                                  
      _ISR_Enable( level );                                           
 800d120:	d0 03 00 00 	wcsr IE,r3                                     
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unblock (                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
  _Thread_Clear_state( the_thread, STATES_BLOCKED );                  
 800d124:	78 03 08 01 	mvhi r3,0x801                                  
 800d128:	38 63 6f 60 	ori r3,r3,0x6f60                               
 800d12c:	28 62 00 00 	lw r2,(r3+0)                                   
 800d130:	f8 00 04 da 	calli 800e498 <_Thread_Clear_state>            
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )             
{                                                                     
  RTEMS_COMPILER_MEMORY_BARRIER();                                    
  _Thread_Dispatch_disable_level -= 1;                                
 800d134:	78 01 08 01 	mvhi r1,0x801                                  
 800d138:	38 21 89 08 	ori r1,r1,0x8908                               
 800d13c:	28 22 00 00 	lw r2,(r1+0)                                   
 800d140:	34 42 ff ff 	addi r2,r2,-1                                  
 800d144:	58 22 00 00 	sw (r1+0),r2                                   
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
}                                                                     
 800d148:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800d14c:	37 9c 00 08 	addi sp,sp,8                                   
 800d150:	c3 a0 00 00 	ret                                            
                                                                      

08009438 <_Heap_Extend>: Heap_Control *heap, void *extend_area_begin_ptr, uintptr_t extend_area_size, uintptr_t *extended_size_ptr ) {
 8009438:	37 9c ff b8 	addi sp,sp,-72                                 
 800943c:	5b 8b 00 40 	sw (sp+64),r11                                 
 8009440:	5b 8c 00 3c 	sw (sp+60),r12                                 
 8009444:	5b 8d 00 38 	sw (sp+56),r13                                 
 8009448:	5b 8e 00 34 	sw (sp+52),r14                                 
 800944c:	5b 8f 00 30 	sw (sp+48),r15                                 
 8009450:	5b 90 00 2c 	sw (sp+44),r16                                 
 8009454:	5b 91 00 28 	sw (sp+40),r17                                 
 8009458:	5b 92 00 24 	sw (sp+36),r18                                 
 800945c:	5b 93 00 20 	sw (sp+32),r19                                 
 8009460:	5b 94 00 1c 	sw (sp+28),r20                                 
 8009464:	5b 95 00 18 	sw (sp+24),r21                                 
 8009468:	5b 96 00 14 	sw (sp+20),r22                                 
 800946c:	5b 97 00 10 	sw (sp+16),r23                                 
 8009470:	5b 98 00 0c 	sw (sp+12),r24                                 
 8009474:	5b 99 00 08 	sw (sp+8),r25                                  
 8009478:	5b 9d 00 04 	sw (sp+4),ra                                   
 800947c:	b8 40 70 00 	mv r14,r2                                      
  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;                              
 8009480:	5b 80 00 48 	sw (sp+72),r0                                  
  Heap_Block *extend_last_block = NULL;                               
 8009484:	5b 80 00 44 	sw (sp+68),r0                                  
  uintptr_t const page_size = heap->page_size;                        
  uintptr_t const min_block_size = heap->min_block_size;              
  uintptr_t const extend_area_begin = (uintptr_t) extend_area_begin_ptr;
  uintptr_t const extend_area_end = extend_area_begin + extend_area_size;
 8009488:	b5 c3 68 00 	add r13,r14,r3                                 
  Heap_Control *heap,                                                 
  void *extend_area_begin_ptr,                                        
  uintptr_t extend_area_size,                                         
  uintptr_t *extended_size_ptr                                        
)                                                                     
{                                                                     
 800948c:	b8 80 a0 00 	mv r20,r4                                      
 8009490:	b8 20 58 00 	mv r11,r1                                      
 8009494:	b8 60 10 00 	mv r2,r3                                       
  Heap_Statistics *const stats = &heap->stats;                        
  Heap_Block *const first_block = heap->first_block;                  
 8009498:	28 35 00 20 	lw r21,(r1+32)                                 
  Heap_Block *merge_above_block = NULL;                               
  Heap_Block *link_below_block = NULL;                                
  Heap_Block *link_above_block = NULL;                                
  Heap_Block *extend_first_block = NULL;                              
  Heap_Block *extend_last_block = NULL;                               
  uintptr_t const page_size = heap->page_size;                        
 800949c:	28 36 00 10 	lw r22,(r1+16)                                 
  uintptr_t const min_block_size = heap->min_block_size;              
 80094a0:	28 24 00 14 	lw r4,(r1+20)                                  
  uintptr_t const extend_area_begin = (uintptr_t) extend_area_begin_ptr;
  uintptr_t const extend_area_end = extend_area_begin + extend_area_size;
  uintptr_t const free_size = stats->free_size;                       
 80094a4:	28 37 00 30 	lw r23,(r1+48)                                 
  uintptr_t extend_first_block_size = 0;                              
  uintptr_t extended_size = 0;                                        
  bool extend_area_ok = false;                                        
                                                                      
  if ( extend_area_end < extend_area_begin ) {                        
    return false;                                                     
 80094a8:	34 0c 00 00 	mvi r12,0                                      
  uintptr_t const free_size = stats->free_size;                       
  uintptr_t extend_first_block_size = 0;                              
  uintptr_t extended_size = 0;                                        
  bool extend_area_ok = false;                                        
                                                                      
  if ( extend_area_end < extend_area_begin ) {                        
 80094ac:	55 cd 00 8e 	bgu r14,r13,80096e4 <_Heap_Extend+0x2ac>       
    return false;                                                     
  }                                                                   
                                                                      
  extend_area_ok = _Heap_Get_first_and_last_block(                    
 80094b0:	b9 c0 08 00 	mv r1,r14                                      
 80094b4:	ba c0 18 00 	mv r3,r22                                      
 80094b8:	37 85 00 48 	addi r5,sp,72                                  
 80094bc:	37 86 00 44 	addi r6,sp,68                                  
 80094c0:	fb ff ea a0 	calli 8003f40 <_Heap_Get_first_and_last_block> 
    page_size,                                                        
    min_block_size,                                                   
    &extend_first_block,                                              
    &extend_last_block                                                
  );                                                                  
  if (!extend_area_ok ) {                                             
 80094c4:	44 20 00 88 	be r1,r0,80096e4 <_Heap_Extend+0x2ac>          
 80094c8:	ba a0 78 00 	mv r15,r21                                     
 80094cc:	34 11 00 00 	mvi r17,0                                      
 80094d0:	34 13 00 00 	mvi r19,0                                      
 80094d4:	34 10 00 00 	mvi r16,0                                      
    return false;                                                     
  }                                                                   
                                                                      
  do {                                                                
    uintptr_t const sub_area_begin = (start_block != first_block) ?   
      (uintptr_t) start_block : heap->area_begin;                     
 80094d8:	29 61 00 18 	lw r1,(r11+24)                                 
    - 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;                
 80094dc:	34 18 ff fe 	mvi r24,-2                                     
 80094e0:	e0 00 00 02 	bi 80094e8 <_Heap_Extend+0xb0>                 
 80094e4:	b9 e0 08 00 	mv r1,r15                                      
    uintptr_t const sub_area_end = start_block->prev_size;            
 80094e8:	29 f2 00 00 	lw r18,(r15+0)                                 
    Heap_Block *const end_block =                                     
      _Heap_Block_of_alloc_area( sub_area_end, page_size );           
                                                                      
    if (                                                              
      sub_area_end > extend_area_begin && extend_area_end > sub_area_begin
 80094ec:	f5 a1 18 00 	cmpgu r3,r13,r1                                
 80094f0:	f6 4e 10 00 	cmpgu r2,r18,r14                               
      (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 (                                                              
 80094f4:	a0 62 10 00 	and r2,r3,r2                                   
 80094f8:	5c 40 00 7a 	bne r2,r0,80096e0 <_Heap_Extend+0x2a8>         
      sub_area_end > extend_area_begin && extend_area_end > sub_area_begin
    ) {                                                               
      return false;                                                   
    }                                                                 
                                                                      
    if ( extend_area_end == sub_area_begin ) {                        
 80094fc:	45 a1 00 03 	be r13,r1,8009508 <_Heap_Extend+0xd0>          
      merge_below_block = start_block;                                
    } else if ( extend_area_end < sub_area_end ) {                    
 8009500:	56 4d 00 04 	bgu r18,r13,8009510 <_Heap_Extend+0xd8>        
 8009504:	e0 00 00 04 	bi 8009514 <_Heap_Extend+0xdc>                 
      sub_area_end > extend_area_begin && extend_area_end > sub_area_begin
    ) {                                                               
      return false;                                                   
    }                                                                 
                                                                      
    if ( extend_area_end == sub_area_begin ) {                        
 8009508:	b9 e0 80 00 	mv r16,r15                                     
 800950c:	e0 00 00 02 	bi 8009514 <_Heap_Extend+0xdc>                 
      merge_below_block = start_block;                                
    } else if ( extend_area_end < sub_area_end ) {                    
 8009510:	b9 e0 98 00 	mv r19,r15                                     
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
 8009514:	ba 40 08 00 	mv r1,r18                                      
 8009518:	ba c0 10 00 	mv r2,r22                                      
 800951c:	36 59 ff f8 	addi r25,r18,-8                                
 8009520:	f8 00 1e ad 	calli 8010fd4 <__umodsi3>                      
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
    - HEAP_BLOCK_HEADER_SIZE);                                        
 8009524:	cb 21 08 00 	sub r1,r25,r1                                  
      link_below_block = start_block;                                 
    }                                                                 
                                                                      
    if ( sub_area_end == extend_area_begin ) {                        
 8009528:	5d d2 00 04 	bne r14,r18,8009538 <_Heap_Extend+0x100>       
      start_block->prev_size = extend_area_end;                       
 800952c:	59 ed 00 00 	sw (r15+0),r13                                 
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_of_alloc_area(           
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
 8009530:	b8 20 60 00 	mv r12,r1                                      
 8009534:	e0 00 00 04 	bi 8009544 <_Heap_Extend+0x10c>                
                                                                      
      merge_above_block = end_block;                                  
    } else if ( sub_area_end < extend_area_begin ) {                  
 8009538:	55 d2 00 02 	bgu r14,r18,8009540 <_Heap_Extend+0x108>       
 800953c:	e0 00 00 02 	bi 8009544 <_Heap_Extend+0x10c>                
 8009540:	b8 20 88 00 	mv r17,r1                                      
    - HEAP_BLOCK_HEADER_SIZE);                                        
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;                
 8009544:	28 2f 00 04 	lw r15,(r1+4)                                  
 8009548:	a3 0f 78 00 	and r15,r24,r15                                
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
 800954c:	b4 2f 78 00 	add r15,r1,r15                                 
      link_above_block = end_block;                                   
    }                                                                 
                                                                      
    start_block = _Heap_Block_at( end_block, _Heap_Block_size( end_block ) );
  } while ( start_block != first_block );                             
 8009550:	5d f5 ff e5 	bne r15,r21,80094e4 <_Heap_Extend+0xac>        
                                                                      
  if ( extend_area_begin < heap->area_begin ) {                       
 8009554:	29 61 00 18 	lw r1,(r11+24)                                 
 8009558:	51 c1 00 03 	bgeu r14,r1,8009564 <_Heap_Extend+0x12c>       
    heap->area_begin = extend_area_begin;                             
 800955c:	59 6e 00 18 	sw (r11+24),r14                                
 8009560:	e0 00 00 04 	bi 8009570 <_Heap_Extend+0x138>                
  } else if ( heap->area_end < extend_area_end ) {                    
 8009564:	29 61 00 1c 	lw r1,(r11+28)                                 
 8009568:	50 2d 00 02 	bgeu r1,r13,8009570 <_Heap_Extend+0x138>       
    heap->area_end = extend_area_end;                                 
 800956c:	59 6d 00 1c 	sw (r11+28),r13                                
  }                                                                   
                                                                      
  extend_first_block_size =                                           
    (uintptr_t) extend_last_block - (uintptr_t) extend_first_block;   
 8009570:	2b 81 00 44 	lw r1,(sp+68)                                  
 8009574:	2b 82 00 48 	lw r2,(sp+72)                                  
    heap->area_begin = extend_area_begin;                             
  } else if ( heap->area_end < extend_area_end ) {                    
    heap->area_end = extend_area_end;                                 
  }                                                                   
                                                                      
  extend_first_block_size =                                           
 8009578:	c8 22 18 00 	sub r3,r1,r2                                   
    (uintptr_t) extend_last_block - (uintptr_t) extend_first_block;   
                                                                      
  extend_first_block->prev_size = extend_area_end;                    
 800957c:	58 4d 00 00 	sw (r2+0),r13                                  
  extend_first_block->size_and_flag =                                 
    extend_first_block_size | HEAP_PREV_BLOCK_USED;                   
 8009580:	38 64 00 01 	ori r4,r3,0x1                                  
  _Heap_Protection_block_initialize( heap, extend_first_block );      
                                                                      
  extend_last_block->prev_size = extend_first_block_size;             
 8009584:	58 23 00 00 	sw (r1+0),r3                                   
  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 ) {
 8009588:	29 63 00 20 	lw r3,(r11+32)                                 
                                                                      
  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 =                                 
 800958c:	58 44 00 04 	sw (r2+4),r4                                   
    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;             
  extend_last_block->size_and_flag = 0;                               
 8009590:	58 20 00 04 	sw (r1+4),r0                                   
  _Heap_Protection_block_initialize( heap, extend_last_block );       
                                                                      
  if ( (uintptr_t) extend_first_block < (uintptr_t) heap->first_block ) {
 8009594:	50 43 00 03 	bgeu r2,r3,80095a0 <_Heap_Extend+0x168>        
    heap->first_block = extend_first_block;                           
 8009598:	59 62 00 20 	sw (r11+32),r2                                 
 800959c:	e0 00 00 04 	bi 80095ac <_Heap_Extend+0x174>                
  } else if ( (uintptr_t) extend_last_block > (uintptr_t) heap->last_block ) {
 80095a0:	29 62 00 24 	lw r2,(r11+36)                                 
 80095a4:	50 41 00 02 	bgeu r2,r1,80095ac <_Heap_Extend+0x174>        
    heap->last_block = extend_last_block;                             
 80095a8:	59 61 00 24 	sw (r11+36),r1                                 
  }                                                                   
                                                                      
  if ( merge_below_block != NULL ) {                                  
 80095ac:	46 00 00 12 	be r16,r0,80095f4 <_Heap_Extend+0x1bc>         
  Heap_Control *heap,                                                 
  uintptr_t extend_area_begin,                                        
  Heap_Block *first_block                                             
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
 80095b0:	29 6f 00 10 	lw r15,(r11+16)                                
  uintptr_t const new_first_block_alloc_begin =                       
    _Heap_Align_up( extend_area_begin + HEAP_BLOCK_HEADER_SIZE, page_size );
 80095b4:	35 ce 00 08 	addi r14,r14,8                                 
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up(                        
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  uintptr_t remainder = value % alignment;                            
 80095b8:	b9 c0 08 00 	mv r1,r14                                      
 80095bc:	b9 e0 10 00 	mv r2,r15                                      
 80095c0:	f8 00 1e 85 	calli 8010fd4 <__umodsi3>                      
                                                                      
  if ( remainder != 0 ) {                                             
 80095c4:	44 20 00 03 	be r1,r0,80095d0 <_Heap_Extend+0x198>          <== NEVER TAKEN
    return value - remainder + alignment;                             
 80095c8:	b5 cf 70 00 	add r14,r14,r15                                
 80095cc:	c9 c1 70 00 	sub r14,r14,r1                                 
  uintptr_t const first_block_begin = (uintptr_t) first_block;        
  uintptr_t const new_first_block_size =                              
    first_block_begin - new_first_block_begin;                        
  Heap_Block *const new_first_block = (Heap_Block *) new_first_block_begin;
                                                                      
  new_first_block->prev_size = first_block->prev_size;                
 80095d0:	2a 01 00 00 	lw r1,(r16+0)                                  
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
  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 =                             
 80095d4:	35 c2 ff f8 	addi r2,r14,-8                                 
  uintptr_t const first_block_begin = (uintptr_t) first_block;        
  uintptr_t const new_first_block_size =                              
    first_block_begin - new_first_block_begin;                        
  Heap_Block *const new_first_block = (Heap_Block *) new_first_block_begin;
                                                                      
  new_first_block->prev_size = first_block->prev_size;                
 80095d8:	59 c1 ff f8 	sw (r14+-8),r1                                 
  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 =                              
 80095dc:	ca 02 08 00 	sub r1,r16,r2                                  
    first_block_begin - new_first_block_begin;                        
  Heap_Block *const new_first_block = (Heap_Block *) new_first_block_begin;
                                                                      
  new_first_block->prev_size = first_block->prev_size;                
  new_first_block->size_and_flag = new_first_block_size | HEAP_PREV_BLOCK_USED;
 80095e0:	38 21 00 01 	ori r1,r1,0x1                                  
 80095e4:	58 41 00 04 	sw (r2+4),r1                                   
                                                                      
  _Heap_Free_block( heap, new_first_block );                          
 80095e8:	b9 60 08 00 	mv r1,r11                                      
 80095ec:	fb ff ff 86 	calli 8009404 <_Heap_Free_block>               
 80095f0:	e0 00 00 06 	bi 8009608 <_Heap_Extend+0x1d0>                
    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 ) {                            
 80095f4:	46 70 00 05 	be r19,r16,8009608 <_Heap_Extend+0x1d0>        
    _Heap_Link_below(                                                 
 80095f8:	2b 81 00 44 	lw r1,(sp+68)                                  
{                                                                     
  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;           
 80095fc:	ca 61 98 00 	sub r19,r19,r1                                 
 8009600:	3a 73 00 01 	ori r19,r19,0x1                                
)                                                                     
{                                                                     
  uintptr_t const last_block_begin = (uintptr_t) last_block;          
  uintptr_t const link_begin = (uintptr_t) link;                      
                                                                      
  last_block->size_and_flag =                                         
 8009604:	58 33 00 04 	sw (r1+4),r19                                  
      link_below_block,                                               
      extend_last_block                                               
    );                                                                
  }                                                                   
                                                                      
  if ( merge_above_block != NULL ) {                                  
 8009608:	45 80 00 14 	be r12,r0,8009658 <_Heap_Extend+0x220>         
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
 800960c:	29 62 00 10 	lw r2,(r11+16)                                 
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
  uintptr_t const last_block_begin = (uintptr_t) last_block;          
  uintptr_t const last_block_new_size = _Heap_Align_down(             
    extend_area_end - last_block_begin - HEAP_BLOCK_HEADER_SIZE,      
 8009610:	35 ad ff f8 	addi r13,r13,-8                                
  uintptr_t extend_area_end                                           
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
  uintptr_t const last_block_begin = (uintptr_t) last_block;          
  uintptr_t const last_block_new_size = _Heap_Align_down(             
 8009614:	c9 ac 68 00 	sub r13,r13,r12                                
 8009618:	b9 a0 08 00 	mv r1,r13                                      
 800961c:	f8 00 1e 6e 	calli 8010fd4 <__umodsi3>                      
  );                                                                  
  Heap_Block *const new_last_block =                                  
    _Heap_Block_at( last_block, last_block_new_size );                
                                                                      
  new_last_block->size_and_flag =                                     
    (last_block->size_and_flag - last_block_new_size)                 
 8009620:	29 83 00 04 	lw r3,(r12+4)                                  
 8009624:	c9 a1 08 00 	sub r1,r13,r1                                  
    page_size                                                         
  );                                                                  
  Heap_Block *const new_last_block =                                  
    _Heap_Block_at( last_block, last_block_new_size );                
                                                                      
  new_last_block->size_and_flag =                                     
 8009628:	b4 2c 10 00 	add r2,r1,r12                                  
    (last_block->size_and_flag - last_block_new_size)                 
 800962c:	c8 61 18 00 	sub r3,r3,r1                                   
      | HEAP_PREV_BLOCK_USED;                                         
 8009630:	38 63 00 01 	ori r3,r3,0x1                                  
    page_size                                                         
  );                                                                  
  Heap_Block *const new_last_block =                                  
    _Heap_Block_at( last_block, last_block_new_size );                
                                                                      
  new_last_block->size_and_flag =                                     
 8009634:	58 43 00 04 	sw (r2+4),r3                                   
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;       
 8009638:	29 82 00 04 	lw r2,(r12+4)                                  
 800963c:	20 42 00 01 	andi r2,r2,0x1                                 
                                                                      
  block->size_and_flag = size | flag;                                 
 8009640:	b8 22 08 00 	or r1,r1,r2                                    
 8009644:	59 81 00 04 	sw (r12+4),r1                                  
    (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 );                               
 8009648:	b9 80 10 00 	mv r2,r12                                      
 800964c:	b9 60 08 00 	mv r1,r11                                      
 8009650:	fb ff ff 6d 	calli 8009404 <_Heap_Free_block>               
 8009654:	e0 00 00 0c 	bi 8009684 <_Heap_Extend+0x24c>                
    );                                                                
  }                                                                   
                                                                      
  if ( merge_above_block != NULL ) {                                  
    _Heap_Merge_above( heap, merge_above_block, extend_area_end );    
  } else if ( link_above_block != NULL ) {                            
 8009658:	46 2c 00 0b 	be r17,r12,8009684 <_Heap_Extend+0x24c>        
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;       
 800965c:	2a 21 00 04 	lw r1,(r17+4)                                  
)                                                                     
{                                                                     
  uintptr_t const link_begin = (uintptr_t) link;                      
  uintptr_t const first_block_begin = (uintptr_t) first_block;        
                                                                      
  _Heap_Block_set_size( link, first_block_begin - link_begin );       
 8009660:	2b 83 00 48 	lw r3,(sp+72)                                  
  }                                                                   
                                                                      
  if ( merge_above_block != NULL ) {                                  
    _Heap_Merge_above( heap, merge_above_block, extend_area_end );    
  } else if ( link_above_block != NULL ) {                            
    _Heap_Link_above(                                                 
 8009664:	2b 82 00 44 	lw r2,(sp+68)                                  
 8009668:	20 21 00 01 	andi r1,r1,0x1                                 
)                                                                     
{                                                                     
  uintptr_t const link_begin = (uintptr_t) link;                      
  uintptr_t const first_block_begin = (uintptr_t) first_block;        
                                                                      
  _Heap_Block_set_size( link, first_block_begin - link_begin );       
 800966c:	c8 71 18 00 	sub r3,r3,r17                                  
                                                                      
  block->size_and_flag = size | flag;                                 
 8009670:	b8 61 08 00 	or r1,r3,r1                                    
 8009674:	5a 21 00 04 	sw (r17+4),r1                                  
                                                                      
  last_block->size_and_flag |= HEAP_PREV_BLOCK_USED;                  
 8009678:	28 41 00 04 	lw r1,(r2+4)                                   
 800967c:	38 21 00 01 	ori r1,r1,0x1                                  
 8009680:	58 41 00 04 	sw (r2+4),r1                                   
      extend_first_block,                                             
      extend_last_block                                               
    );                                                                
  }                                                                   
                                                                      
  if ( merge_below_block == NULL && merge_above_block == NULL ) {     
 8009684:	65 8c 00 00 	cmpei r12,r12,0                                
 8009688:	66 10 00 00 	cmpei r16,r16,0                                
 800968c:	a1 90 60 00 	and r12,r12,r16                                
 8009690:	45 80 00 04 	be r12,r0,80096a0 <_Heap_Extend+0x268>         
    _Heap_Free_block( heap, extend_first_block );                     
 8009694:	2b 82 00 48 	lw r2,(sp+72)                                  
 8009698:	b9 60 08 00 	mv r1,r11                                      
 800969c:	fb ff ff 5a 	calli 8009404 <_Heap_Free_block>               
 */                                                                   
RTEMS_INLINE_ROUTINE void _Heap_Set_last_block_size( Heap_Control *heap )
{                                                                     
  _Heap_Block_set_size(                                               
    heap->last_block,                                                 
    (uintptr_t) heap->first_block - (uintptr_t) heap->last_block      
 80096a0:	29 61 00 24 	lw r1,(r11+36)                                 
 * This feature will be used to terminate the scattered heap area list.  See
 * also _Heap_Extend().                                               
 */                                                                   
RTEMS_INLINE_ROUTINE void _Heap_Set_last_block_size( Heap_Control *heap )
{                                                                     
  _Heap_Block_set_size(                                               
 80096a4:	29 63 00 20 	lw r3,(r11+32)                                 
  stats->size += extended_size;                                       
                                                                      
  if ( extended_size_ptr != NULL )                                    
    *extended_size_ptr = extended_size;                               
                                                                      
  return true;                                                        
 80096a8:	34 0c 00 01 	mvi r12,1                                      
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;       
 80096ac:	28 22 00 04 	lw r2,(r1+4)                                   
 * 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(                                               
 80096b0:	c8 61 18 00 	sub r3,r3,r1                                   
RTEMS_INLINE_ROUTINE void _Heap_Block_set_size(                       
  Heap_Block *block,                                                  
  uintptr_t size                                                      
)                                                                     
{                                                                     
  uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;       
 80096b4:	20 42 00 01 	andi r2,r2,0x1                                 
                                                                      
  block->size_and_flag = size | flag;                                 
 80096b8:	b8 62 10 00 	or r2,r3,r2                                    
 80096bc:	58 22 00 04 	sw (r1+4),r2                                   
    _Heap_Free_block( heap, extend_first_block );                     
  }                                                                   
                                                                      
  _Heap_Set_last_block_size( heap );                                  
                                                                      
  extended_size = stats->free_size - free_size;                       
 80096c0:	29 61 00 30 	lw r1,(r11+48)                                 
                                                                      
  /* Statistics */                                                    
  stats->size += extended_size;                                       
 80096c4:	29 62 00 2c 	lw r2,(r11+44)                                 
    _Heap_Free_block( heap, extend_first_block );                     
  }                                                                   
                                                                      
  _Heap_Set_last_block_size( heap );                                  
                                                                      
  extended_size = stats->free_size - free_size;                       
 80096c8:	c8 37 08 00 	sub r1,r1,r23                                  
                                                                      
  /* Statistics */                                                    
  stats->size += extended_size;                                       
 80096cc:	b4 41 10 00 	add r2,r2,r1                                   
 80096d0:	59 62 00 2c 	sw (r11+44),r2                                 
                                                                      
  if ( extended_size_ptr != NULL )                                    
 80096d4:	46 80 00 04 	be r20,r0,80096e4 <_Heap_Extend+0x2ac>         <== NEVER TAKEN
    *extended_size_ptr = extended_size;                               
 80096d8:	5a 81 00 00 	sw (r20+0),r1                                  
 80096dc:	e0 00 00 02 	bi 80096e4 <_Heap_Extend+0x2ac>                
      _Heap_Block_of_alloc_area( sub_area_end, page_size );           
                                                                      
    if (                                                              
      sub_area_end > extend_area_begin && extend_area_end > sub_area_begin
    ) {                                                               
      return false;                                                   
 80096e0:	34 0c 00 00 	mvi r12,0                                      
                                                                      
  if ( extended_size_ptr != NULL )                                    
    *extended_size_ptr = extended_size;                               
                                                                      
  return true;                                                        
}                                                                     
 80096e4:	b9 80 08 00 	mv r1,r12                                      
 80096e8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80096ec:	2b 8b 00 40 	lw r11,(sp+64)                                 
 80096f0:	2b 8c 00 3c 	lw r12,(sp+60)                                 
 80096f4:	2b 8d 00 38 	lw r13,(sp+56)                                 
 80096f8:	2b 8e 00 34 	lw r14,(sp+52)                                 
 80096fc:	2b 8f 00 30 	lw r15,(sp+48)                                 
 8009700:	2b 90 00 2c 	lw r16,(sp+44)                                 
 8009704:	2b 91 00 28 	lw r17,(sp+40)                                 
 8009708:	2b 92 00 24 	lw r18,(sp+36)                                 
 800970c:	2b 93 00 20 	lw r19,(sp+32)                                 
 8009710:	2b 94 00 1c 	lw r20,(sp+28)                                 
 8009714:	2b 95 00 18 	lw r21,(sp+24)                                 
 8009718:	2b 96 00 14 	lw r22,(sp+20)                                 
 800971c:	2b 97 00 10 	lw r23,(sp+16)                                 
 8009720:	2b 98 00 0c 	lw r24,(sp+12)                                 
 8009724:	2b 99 00 08 	lw r25,(sp+8)                                  
 8009728:	37 9c 00 48 	addi sp,sp,72                                  
 800972c:	c3 a0 00 00 	ret                                            
                                                                      

0800928c <_Heap_Free>: return do_free; } #endif bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr ) {
 800928c:	37 9c ff f4 	addi sp,sp,-12                                 
 8009290:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8009294:	5b 8c 00 08 	sw (sp+8),r12                                  
 8009298:	5b 9d 00 04 	sw (sp+4),ra                                   
 800929c:	b8 20 58 00 	mv r11,r1                                      
   * 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 ) {                                    
    return true;                                                      
 80092a0:	34 01 00 01 	mvi r1,1                                       
  /*                                                                  
   * 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 ) {                                    
 80092a4:	44 40 00 73 	be r2,r0,8009470 <_Heap_Free+0x1e4>            
 80092a8:	34 4c ff f8 	addi r12,r2,-8                                 
 80092ac:	b8 40 08 00 	mv r1,r2                                       
 80092b0:	29 62 00 10 	lw r2,(r11+16)                                 
 80092b4:	f8 00 1e 5f 	calli 8010c30 <__umodsi3>                      
RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap(                     
  const Heap_Control *heap,                                           
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block >= (uintptr_t) heap->first_block           
 80092b8:	29 67 00 20 	lw r7,(r11+32)                                 
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
    - HEAP_BLOCK_HEADER_SIZE);                                        
 80092bc:	c9 81 18 00 	sub r3,r12,r1                                  
  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;             
 80092c0:	34 01 00 00 	mvi r1,0                                       
 80092c4:	54 e3 00 03 	bgu r7,r3,80092d0 <_Heap_Free+0x44>            
 80092c8:	29 61 00 24 	lw r1,(r11+36)                                 
 80092cc:	f0 23 08 00 	cmpgeu r1,r1,r3                                
  }                                                                   
                                                                      
  alloc_begin = (uintptr_t) alloc_begin_ptr;                          
  block = _Heap_Block_of_alloc_area( alloc_begin, heap->page_size );  
                                                                      
  if ( !_Heap_Is_block_in_heap( heap, block ) ) {                     
 80092d0:	b8 20 10 00 	mv r2,r1                                       
    return false;                                                     
 80092d4:	34 01 00 00 	mvi r1,0                                       
  }                                                                   
                                                                      
  alloc_begin = (uintptr_t) alloc_begin_ptr;                          
  block = _Heap_Block_of_alloc_area( alloc_begin, heap->page_size );  
                                                                      
  if ( !_Heap_Is_block_in_heap( heap, block ) ) {                     
 80092d8:	44 40 00 66 	be r2,r0,8009470 <_Heap_Free+0x1e4>            
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
 80092dc:	28 66 00 04 	lw r6,(r3+4)                                   
    - HEAP_BLOCK_HEADER_SIZE);                                        
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;                
 80092e0:	34 04 ff fe 	mvi r4,-2                                      
 80092e4:	a0 c4 20 00 	and r4,r6,r4                                   
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
 80092e8:	b4 64 10 00 	add r2,r3,r4                                   
  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;             
 80092ec:	54 e2 00 03 	bgu r7,r2,80092f8 <_Heap_Free+0x6c>            <== NEVER TAKEN
 80092f0:	29 61 00 24 	lw r1,(r11+36)                                 
 80092f4:	f0 22 08 00 	cmpgeu r1,r1,r2                                
  _Heap_Protection_block_check( heap, block );                        
                                                                      
  block_size = _Heap_Block_size( block );                             
  next_block = _Heap_Block_at( block, block_size );                   
                                                                      
  if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {                
 80092f8:	b8 20 28 00 	mv r5,r1                                       
    return false;                                                     
 80092fc:	34 01 00 00 	mvi r1,0                                       
  _Heap_Protection_block_check( heap, block );                        
                                                                      
  block_size = _Heap_Block_size( block );                             
  next_block = _Heap_Block_at( block, block_size );                   
                                                                      
  if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {                
 8009300:	44 a0 00 5c 	be r5,r0,8009470 <_Heap_Free+0x1e4>            <== NEVER TAKEN
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
 8009304:	28 45 00 04 	lw r5,(r2+4)                                   
  block->size_and_flag = size | flag;                                 
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & HEAP_PREV_BLOCK_USED;                 
 8009308:	20 a8 00 01 	andi r8,r5,0x1                                 
    return false;                                                     
  }                                                                   
                                                                      
  _Heap_Protection_block_check( heap, next_block );                   
                                                                      
  if ( !_Heap_Is_prev_used( next_block ) ) {                          
 800930c:	45 00 00 59 	be r8,r0,8009470 <_Heap_Free+0x1e4>            <== NEVER TAKEN
  if ( !_Heap_Protection_determine_block_free( heap, block ) ) {      
    return true;                                                      
  }                                                                   
                                                                      
  next_block_size = _Heap_Block_size( next_block );                   
  next_is_free = next_block != heap->last_block                       
 8009310:	29 69 00 24 	lw r9,(r11+36)                                 
    - 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;                
 8009314:	34 01 ff fe 	mvi r1,-2                                      
 8009318:	a0 a1 28 00 	and r5,r5,r1                                   
    && !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size ));
 800931c:	34 08 00 00 	mvi r8,0                                       
 8009320:	45 22 00 05 	be r9,r2,8009334 <_Heap_Free+0xa8>             
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
 8009324:	b4 45 08 00 	add r1,r2,r5                                   
  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;                 
 8009328:	28 28 00 04 	lw r8,(r1+4)                                   
 800932c:	21 08 00 01 	andi r8,r8,0x1                                 
                                                                      
    return do_free;                                                   
  }                                                                   
#endif                                                                
                                                                      
bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr )          
 8009330:	65 08 00 00 	cmpei r8,r8,0                                  
 8009334:	20 c6 00 01 	andi r6,r6,0x1                                 
  if ( !_Heap_Protection_determine_block_free( heap, block ) ) {      
    return true;                                                      
  }                                                                   
                                                                      
  next_block_size = _Heap_Block_size( next_block );                   
  next_is_free = next_block != heap->last_block                       
 8009338:	21 08 00 ff 	andi r8,r8,0xff                                
    && !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size ));
                                                                      
  if ( !_Heap_Is_prev_used( block ) ) {                               
 800933c:	5c c0 00 24 	bne r6,r0,80093cc <_Heap_Free+0x140>           
    uintptr_t const prev_size = block->prev_size;                     
 8009340:	28 66 00 00 	lw r6,(r3+0)                                   
  const Heap_Control *heap,                                           
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block >= (uintptr_t) heap->first_block           
    && (uintptr_t) block <= (uintptr_t) heap->last_block;             
 8009344:	34 01 00 00 	mvi r1,0                                       
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
 8009348:	c8 66 18 00 	sub r3,r3,r6                                   
  const Heap_Control *heap,                                           
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block >= (uintptr_t) heap->first_block           
    && (uintptr_t) block <= (uintptr_t) heap->last_block;             
 800934c:	54 e3 00 02 	bgu r7,r3,8009354 <_Heap_Free+0xc8>            <== NEVER TAKEN
 8009350:	f1 23 08 00 	cmpgeu r1,r9,r3                                
    Heap_Block * const prev_block = _Heap_Block_at( block, -prev_size );
                                                                      
    if ( !_Heap_Is_block_in_heap( heap, prev_block ) ) {              
 8009354:	b8 20 38 00 	mv r7,r1                                       
      _HAssert( false );                                              
      return( false );                                                
 8009358:	34 01 00 00 	mvi r1,0                                       
                                                                      
  if ( !_Heap_Is_prev_used( block ) ) {                               
    uintptr_t const prev_size = block->prev_size;                     
    Heap_Block * const prev_block = _Heap_Block_at( block, -prev_size );
                                                                      
    if ( !_Heap_Is_block_in_heap( heap, prev_block ) ) {              
 800935c:	44 e0 00 45 	be r7,r0,8009470 <_Heap_Free+0x1e4>            <== NEVER TAKEN
  block->size_and_flag = size | flag;                                 
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & HEAP_PREV_BLOCK_USED;                 
 8009360:	28 67 00 04 	lw r7,(r3+4)                                   
 8009364:	20 e7 00 01 	andi r7,r7,0x1                                 
      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) ) {                        
 8009368:	44 e0 00 42 	be r7,r0,8009470 <_Heap_Free+0x1e4>            <== NEVER TAKEN
      _HAssert( false );                                              
      return( false );                                                
    }                                                                 
                                                                      
    if ( next_is_free ) {       /* coalesce both */                   
 800936c:	45 00 00 0f 	be r8,r0,80093a8 <_Heap_Free+0x11c>            
  return _Heap_Free_list_tail(heap)->prev;                            
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) 
{                                                                     
  Heap_Block *next = block->next;                                     
 8009370:	28 41 00 08 	lw r1,(r2+8)                                   
  Heap_Block *prev = block->prev;                                     
 8009374:	28 42 00 0c 	lw r2,(r2+12)                                  
      uintptr_t const size = block_size + prev_size + next_block_size;
 8009378:	b4 85 28 00 	add r5,r4,r5                                   
 800937c:	b4 a6 30 00 	add r6,r5,r6                                   
                                                                      
  prev->next = next;                                                  
 8009380:	58 41 00 08 	sw (r2+8),r1                                   
  next->prev = prev;                                                  
 8009384:	58 22 00 0c 	sw (r1+12),r2                                  
      _Heap_Free_list_remove( next_block );                           
      stats->free_blocks -= 1;                                        
 8009388:	29 61 00 38 	lw r1,(r11+56)                                 
 800938c:	34 21 ff ff 	addi r1,r1,-1                                  
 8009390:	59 61 00 38 	sw (r11+56),r1                                 
      prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;        
 8009394:	38 c1 00 01 	ori r1,r6,0x1                                  
 8009398:	58 61 00 04 	sw (r3+4),r1                                   
      next_block = _Heap_Block_at( prev_block, size );                
      _HAssert(!_Heap_Is_prev_used( next_block));                     
      next_block->prev_size = size;                                   
 800939c:	b4 66 18 00 	add r3,r3,r6                                   
 80093a0:	58 66 00 00 	sw (r3+0),r6                                   
 80093a4:	e0 00 00 29 	bi 8009448 <_Heap_Free+0x1bc>                  
    } else {                      /* coalesce prev */                 
      uintptr_t const size = block_size + prev_size;                  
 80093a8:	b4 86 30 00 	add r6,r4,r6                                   
      prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;        
 80093ac:	38 c1 00 01 	ori r1,r6,0x1                                  
 80093b0:	58 61 00 04 	sw (r3+4),r1                                   
      next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;             
 80093b4:	28 43 00 04 	lw r3,(r2+4)                                   
 80093b8:	34 01 ff fe 	mvi r1,-2                                      
      next_block->prev_size = size;                                   
 80093bc:	58 46 00 00 	sw (r2+0),r6                                   
      _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;             
 80093c0:	a0 61 08 00 	and r1,r3,r1                                   
 80093c4:	58 41 00 04 	sw (r2+4),r1                                   
 80093c8:	e0 00 00 20 	bi 8009448 <_Heap_Free+0x1bc>                  
      next_block->prev_size = size;                                   
    }                                                                 
  } else if ( next_is_free ) {    /* coalesce next */                 
 80093cc:	45 00 00 0d 	be r8,r0,8009400 <_Heap_Free+0x174>            
    uintptr_t const size = block_size + next_block_size;              
 80093d0:	b4 a4 08 00 	add r1,r5,r4                                   
RTEMS_INLINE_ROUTINE void _Heap_Free_list_replace(                    
  Heap_Block *old_block,                                              
  Heap_Block *new_block                                               
)                                                                     
{                                                                     
  Heap_Block *next = old_block->next;                                 
 80093d4:	28 45 00 08 	lw r5,(r2+8)                                   
  Heap_Block *prev = old_block->prev;                                 
 80093d8:	28 42 00 0c 	lw r2,(r2+12)                                  
                                                                      
  new_block->next = next;                                             
 80093dc:	58 65 00 08 	sw (r3+8),r5                                   
  new_block->prev = prev;                                             
 80093e0:	58 62 00 0c 	sw (r3+12),r2                                  
                                                                      
  next->prev = new_block;                                             
  prev->next = new_block;                                             
 80093e4:	58 43 00 08 	sw (r2+8),r3                                   
    _Heap_Free_list_replace( next_block, block );                     
    block->size_and_flag = size | HEAP_PREV_BLOCK_USED;               
 80093e8:	38 22 00 01 	ori r2,r1,0x1                                  
  Heap_Block *prev = old_block->prev;                                 
                                                                      
  new_block->next = next;                                             
  new_block->prev = prev;                                             
                                                                      
  next->prev = new_block;                                             
 80093ec:	58 a3 00 0c 	sw (r5+12),r3                                  
 80093f0:	58 62 00 04 	sw (r3+4),r2                                   
    next_block  = _Heap_Block_at( block, size );                      
    next_block->prev_size = size;                                     
 80093f4:	b4 61 18 00 	add r3,r3,r1                                   
 80093f8:	58 61 00 00 	sw (r3+0),r1                                   
 80093fc:	e0 00 00 13 	bi 8009448 <_Heap_Free+0x1bc>                  
RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_after(               
  Heap_Block *block_before,                                           
  Heap_Block *new_block                                               
)                                                                     
{                                                                     
  Heap_Block *next = block_before->next;                              
 8009400:	29 61 00 08 	lw r1,(r11+8)                                  
                                                                      
  new_block->next = next;                                             
  new_block->prev = block_before;                                     
 8009404:	58 6b 00 0c 	sw (r3+12),r11                                 
    /* 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;               
    next_block->prev_size = block_size;                               
 8009408:	58 44 00 00 	sw (r2+0),r4                                   
  Heap_Block *new_block                                               
)                                                                     
{                                                                     
  Heap_Block *next = block_before->next;                              
                                                                      
  new_block->next = next;                                             
 800940c:	58 61 00 08 	sw (r3+8),r1                                   
  new_block->prev = block_before;                                     
  block_before->next = new_block;                                     
  next->prev = new_block;                                             
 8009410:	58 23 00 0c 	sw (r1+12),r3                                  
    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;         
 8009414:	38 81 00 01 	ori r1,r4,0x1                                  
 8009418:	58 61 00 04 	sw (r3+4),r1                                   
{                                                                     
  Heap_Block *next = block_before->next;                              
                                                                      
  new_block->next = next;                                             
  new_block->prev = block_before;                                     
  block_before->next = new_block;                                     
 800941c:	59 63 00 08 	sw (r11+8),r3                                  
    next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;               
 8009420:	28 43 00 04 	lw r3,(r2+4)                                   
 8009424:	34 01 ff fe 	mvi r1,-2                                      
 8009428:	a0 61 08 00 	and r1,r3,r1                                   
 800942c:	58 41 00 04 	sw (r2+4),r1                                   
    next_block->prev_size = block_size;                               
                                                                      
    /* Statistics */                                                  
    ++stats->free_blocks;                                             
 8009430:	29 61 00 38 	lw r1,(r11+56)                                 
    if ( stats->max_free_blocks < stats->free_blocks ) {              
 8009434:	29 62 00 3c 	lw r2,(r11+60)                                 
    block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED;         
    next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;               
    next_block->prev_size = block_size;                               
                                                                      
    /* Statistics */                                                  
    ++stats->free_blocks;                                             
 8009438:	34 21 00 01 	addi r1,r1,1                                   
 800943c:	59 61 00 38 	sw (r11+56),r1                                 
    if ( stats->max_free_blocks < stats->free_blocks ) {              
 8009440:	50 41 00 02 	bgeu r2,r1,8009448 <_Heap_Free+0x1bc>          
      stats->max_free_blocks = stats->free_blocks;                    
 8009444:	59 61 00 3c 	sw (r11+60),r1                                 
    }                                                                 
  }                                                                   
                                                                      
  /* Statistics */                                                    
  --stats->used_blocks;                                               
 8009448:	29 61 00 40 	lw r1,(r11+64)                                 
 800944c:	34 21 ff ff 	addi r1,r1,-1                                  
 8009450:	59 61 00 40 	sw (r11+64),r1                                 
  ++stats->frees;                                                     
 8009454:	29 61 00 50 	lw r1,(r11+80)                                 
 8009458:	34 21 00 01 	addi r1,r1,1                                   
 800945c:	59 61 00 50 	sw (r11+80),r1                                 
  stats->free_size += block_size;                                     
 8009460:	29 61 00 30 	lw r1,(r11+48)                                 
 8009464:	b4 24 20 00 	add r4,r1,r4                                   
 8009468:	59 64 00 30 	sw (r11+48),r4                                 
                                                                      
  return( true );                                                     
 800946c:	34 01 00 01 	mvi r1,1                                       
}                                                                     
 8009470:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8009474:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8009478:	2b 8c 00 08 	lw r12,(sp+8)                                  
 800947c:	37 9c 00 0c 	addi sp,sp,12                                  
 8009480:	c3 a0 00 00 	ret                                            
                                                                      

08011614 <_Heap_Size_of_alloc_area>: bool _Heap_Size_of_alloc_area( Heap_Control *heap, void *alloc_begin_ptr, uintptr_t *alloc_size ) {
 8011614:	37 9c ff ec 	addi sp,sp,-20                                 
 8011618:	5b 8b 00 14 	sw (sp+20),r11                                 
 801161c:	5b 8c 00 10 	sw (sp+16),r12                                 
 8011620:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8011624:	5b 8e 00 08 	sw (sp+8),r14                                  
 8011628:	5b 9d 00 04 	sw (sp+4),ra                                   
 801162c:	b8 20 58 00 	mv r11,r1                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
 8011630:	34 4e ff f8 	addi r14,r2,-8                                 
 8011634:	b8 40 08 00 	mv r1,r2                                       
 8011638:	b8 40 60 00 	mv r12,r2                                      
 801163c:	29 62 00 10 	lw r2,(r11+16)                                 
 8011640:	b8 60 68 00 	mv r13,r3                                      
 8011644:	fb ff fd 7b 	calli 8010c30 <__umodsi3>                      
RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap(                     
  const Heap_Control *heap,                                           
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block >= (uintptr_t) heap->first_block           
 8011648:	29 62 00 20 	lw r2,(r11+32)                                 
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
    - HEAP_BLOCK_HEADER_SIZE);                                        
 801164c:	c9 c1 20 00 	sub r4,r14,r1                                  
  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;             
 8011650:	34 01 00 00 	mvi r1,0                                       
 8011654:	54 44 00 03 	bgu r2,r4,8011660 <_Heap_Size_of_alloc_area+0x4c>
 8011658:	29 61 00 24 	lw r1,(r11+36)                                 
 801165c:	f0 24 08 00 	cmpgeu r1,r1,r4                                
  uintptr_t const alloc_begin = (uintptr_t) alloc_begin_ptr;          
  Heap_Block *block = _Heap_Block_of_alloc_area( alloc_begin, page_size );
  Heap_Block *next_block = NULL;                                      
  uintptr_t block_size = 0;                                           
                                                                      
  if ( !_Heap_Is_block_in_heap( heap, block ) ) {                     
 8011660:	b8 20 18 00 	mv r3,r1                                       
    return false;                                                     
 8011664:	34 01 00 00 	mvi r1,0                                       
  uintptr_t const alloc_begin = (uintptr_t) alloc_begin_ptr;          
  Heap_Block *block = _Heap_Block_of_alloc_area( alloc_begin, page_size );
  Heap_Block *next_block = NULL;                                      
  uintptr_t block_size = 0;                                           
                                                                      
  if ( !_Heap_Is_block_in_heap( heap, block ) ) {                     
 8011668:	44 60 00 13 	be r3,r0,80116b4 <_Heap_Size_of_alloc_area+0xa0>
    - 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;                
 801166c:	28 83 00 04 	lw r3,(r4+4)                                   
 8011670:	34 01 ff fe 	mvi r1,-2                                      
 8011674:	a0 23 08 00 	and r1,r1,r3                                   
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
 8011678:	b4 81 20 00 	add r4,r4,r1                                   
  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;             
 801167c:	34 01 00 00 	mvi r1,0                                       
 8011680:	54 44 00 03 	bgu r2,r4,801168c <_Heap_Size_of_alloc_area+0x78><== NEVER TAKEN
 8011684:	29 61 00 24 	lw r1,(r11+36)                                 
 8011688:	f0 24 08 00 	cmpgeu r1,r1,r4                                
  }                                                                   
                                                                      
  block_size = _Heap_Block_size( block );                             
  next_block = _Heap_Block_at( block, block_size );                   
                                                                      
  if (                                                                
 801168c:	b8 20 10 00 	mv r2,r1                                       
    !_Heap_Is_block_in_heap( heap, next_block )                       
      || !_Heap_Is_prev_used( next_block )                            
  ) {                                                                 
    return false;                                                     
 8011690:	34 01 00 00 	mvi r1,0                                       
  }                                                                   
                                                                      
  block_size = _Heap_Block_size( block );                             
  next_block = _Heap_Block_at( block, block_size );                   
                                                                      
  if (                                                                
 8011694:	44 40 00 08 	be r2,r0,80116b4 <_Heap_Size_of_alloc_area+0xa0><== NEVER TAKEN
  block->size_and_flag = size | flag;                                 
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & HEAP_PREV_BLOCK_USED;                 
 8011698:	28 82 00 04 	lw r2,(r4+4)                                   
 801169c:	20 42 00 01 	andi r2,r2,0x1                                 
    !_Heap_Is_block_in_heap( heap, next_block )                       
      || !_Heap_Is_prev_used( next_block )                            
 80116a0:	44 40 00 05 	be r2,r0,80116b4 <_Heap_Size_of_alloc_area+0xa0><== NEVER TAKEN
  ) {                                                                 
    return false;                                                     
  }                                                                   
                                                                      
  *alloc_size = (uintptr_t) next_block + HEAP_ALLOC_BONUS - alloc_begin;
 80116a4:	c8 8c 20 00 	sub r4,r4,r12                                  
 80116a8:	34 84 00 04 	addi r4,r4,4                                   
 80116ac:	59 a4 00 00 	sw (r13+0),r4                                  
                                                                      
  return true;                                                        
 80116b0:	34 01 00 01 	mvi r1,1                                       
}                                                                     
 80116b4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80116b8:	2b 8b 00 14 	lw r11,(sp+20)                                 
 80116bc:	2b 8c 00 10 	lw r12,(sp+16)                                 
 80116c0:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 80116c4:	2b 8e 00 08 	lw r14,(sp+8)                                  
 80116c8:	37 9c 00 14 	addi sp,sp,20                                  
 80116cc:	c3 a0 00 00 	ret                                            
                                                                      

08004bf4 <_Heap_Walk>: bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) {
 8004bf4:	37 9c ff a0 	addi sp,sp,-96                                 
 8004bf8:	5b 8b 00 50 	sw (sp+80),r11                                 
 8004bfc:	5b 8c 00 4c 	sw (sp+76),r12                                 
 8004c00:	5b 8d 00 48 	sw (sp+72),r13                                 
 8004c04:	5b 8e 00 44 	sw (sp+68),r14                                 
 8004c08:	5b 8f 00 40 	sw (sp+64),r15                                 
 8004c0c:	5b 90 00 3c 	sw (sp+60),r16                                 
 8004c10:	5b 91 00 38 	sw (sp+56),r17                                 
 8004c14:	5b 92 00 34 	sw (sp+52),r18                                 
 8004c18:	5b 93 00 30 	sw (sp+48),r19                                 
 8004c1c:	5b 94 00 2c 	sw (sp+44),r20                                 
 8004c20:	5b 95 00 28 	sw (sp+40),r21                                 
 8004c24:	5b 96 00 24 	sw (sp+36),r22                                 
 8004c28:	5b 97 00 20 	sw (sp+32),r23                                 
 8004c2c:	5b 98 00 1c 	sw (sp+28),r24                                 
 8004c30:	5b 99 00 18 	sw (sp+24),r25                                 
 8004c34:	5b 9b 00 14 	sw (sp+20),fp                                  
 8004c38:	5b 9d 00 10 	sw (sp+16),ra                                  
  uintptr_t const min_block_size = heap->min_block_size;              
  Heap_Block *const first_block = heap->first_block;                  
  Heap_Block *const last_block = heap->last_block;                    
  Heap_Block *block = first_block;                                    
  Heap_Walk_printer printer = dump ?                                  
    _Heap_Walk_print : _Heap_Walk_print_nothing;                      
 8004c3c:	78 0d 08 00 	mvhi r13,0x800                                 
bool _Heap_Walk(                                                      
  Heap_Control *heap,                                                 
  int source,                                                         
  bool dump                                                           
)                                                                     
{                                                                     
 8004c40:	20 63 00 ff 	andi r3,r3,0xff                                
 8004c44:	b8 20 60 00 	mv r12,r1                                      
 8004c48:	b8 40 70 00 	mv r14,r2                                      
  uintptr_t const page_size = heap->page_size;                        
 8004c4c:	28 33 00 10 	lw r19,(r1+16)                                 
  uintptr_t const min_block_size = heap->min_block_size;              
 8004c50:	28 35 00 14 	lw r21,(r1+20)                                 
  Heap_Block *const first_block = heap->first_block;                  
 8004c54:	28 34 00 20 	lw r20,(r1+32)                                 
  Heap_Block *const last_block = heap->last_block;                    
 8004c58:	28 36 00 24 	lw r22,(r1+36)                                 
  Heap_Block *block = first_block;                                    
  Heap_Walk_printer printer = dump ?                                  
    _Heap_Walk_print : _Heap_Walk_print_nothing;                      
 8004c5c:	39 ad 4b 5c 	ori r13,r13,0x4b5c                             
 8004c60:	44 60 00 03 	be r3,r0,8004c6c <_Heap_Walk+0x78>             
 8004c64:	78 0d 08 00 	mvhi r13,0x800                                 
 8004c68:	39 ad 4b 80 	ori r13,r13,0x4b80                             
                                                                      
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
 8004c6c:	78 03 08 01 	mvhi r3,0x801                                  
 8004c70:	38 63 5a 28 	ori r3,r3,0x5a28                               
 8004c74:	28 67 00 00 	lw r7,(r3+0)                                   
 8004c78:	34 02 00 03 	mvi r2,3                                       
    return true;                                                      
 8004c7c:	34 03 00 01 	mvi r3,1                                       
  Heap_Block *const last_block = heap->last_block;                    
  Heap_Block *block = first_block;                                    
  Heap_Walk_printer printer = dump ?                                  
    _Heap_Walk_print : _Heap_Walk_print_nothing;                      
                                                                      
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
 8004c80:	5c e2 01 08 	bne r7,r2,80050a0 <_Heap_Walk+0x4ac>           <== NEVER TAKEN
  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)(                                                         
 8004c84:	29 81 00 08 	lw r1,(r12+8)                                  
 8004c88:	29 86 00 18 	lw r6,(r12+24)                                 
 8004c8c:	29 87 00 1c 	lw r7,(r12+28)                                 
 8004c90:	5b 81 00 08 	sw (sp+8),r1                                   
 8004c94:	29 81 00 0c 	lw r1,(r12+12)                                 
 8004c98:	78 03 08 01 	mvhi r3,0x801                                  
 8004c9c:	5b 96 00 04 	sw (sp+4),r22                                  
 8004ca0:	5b 81 00 0c 	sw (sp+12),r1                                  
 8004ca4:	34 02 00 00 	mvi r2,0                                       
 8004ca8:	b9 c0 08 00 	mv r1,r14                                      
 8004cac:	38 63 2e 10 	ori r3,r3,0x2e10                               
 8004cb0:	ba 60 20 00 	mv r4,r19                                      
 8004cb4:	ba a0 28 00 	mv r5,r21                                      
 8004cb8:	ba 80 40 00 	mv r8,r20                                      
 8004cbc:	d9 a0 00 00 	call r13                                       
    heap->area_begin, heap->area_end,                                 
    first_block, last_block,                                          
    first_free_block, last_free_block                                 
  );                                                                  
                                                                      
  if ( page_size == 0 ) {                                             
 8004cc0:	5e 60 00 06 	bne r19,r0,8004cd8 <_Heap_Walk+0xe4>           
    (*printer)( source, true, "page size is zero\n" );                
 8004cc4:	78 03 08 01 	mvhi r3,0x801                                  
 8004cc8:	b9 c0 08 00 	mv r1,r14                                      
 8004ccc:	34 02 00 01 	mvi r2,1                                       
 8004cd0:	38 63 2e a4 	ori r3,r3,0x2ea4                               
 8004cd4:	e0 00 00 25 	bi 8004d68 <_Heap_Walk+0x174>                  
)                                                                     
{                                                                     
#if (CPU_ALIGNMENT == 0)                                              
    return true;                                                      
#else                                                                 
    return (((uintptr_t)address % CPU_ALIGNMENT) == 0);               
 8004cd8:	22 6f 00 07 	andi r15,r19,0x7                               
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Addresses_Is_aligned( (void *) page_size ) ) {               
 8004cdc:	45 e0 00 07 	be r15,r0,8004cf8 <_Heap_Walk+0x104>           
    (*printer)(                                                       
 8004ce0:	78 03 08 01 	mvhi r3,0x801                                  
 8004ce4:	b9 c0 08 00 	mv r1,r14                                      
 8004ce8:	34 02 00 01 	mvi r2,1                                       
 8004cec:	38 63 2e b8 	ori r3,r3,0x2eb8                               
 8004cf0:	ba 60 20 00 	mv r4,r19                                      
 8004cf4:	e0 00 01 04 	bi 8005104 <_Heap_Walk+0x510>                  
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
 8004cf8:	ba a0 08 00 	mv r1,r21                                      
 8004cfc:	ba 60 10 00 	mv r2,r19                                      
 8004d00:	fb ff ef aa 	calli 8000ba8 <__umodsi3>                      
 8004d04:	b8 20 58 00 	mv r11,r1                                      
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_aligned( min_block_size, page_size ) ) {             
 8004d08:	44 2f 00 07 	be r1,r15,8004d24 <_Heap_Walk+0x130>           
    (*printer)(                                                       
 8004d0c:	78 03 08 01 	mvhi r3,0x801                                  
 8004d10:	b9 c0 08 00 	mv r1,r14                                      
 8004d14:	34 02 00 01 	mvi r2,1                                       
 8004d18:	38 63 2e d8 	ori r3,r3,0x2ed8                               
 8004d1c:	ba a0 20 00 	mv r4,r21                                      
 8004d20:	e0 00 00 f9 	bi 8005104 <_Heap_Walk+0x510>                  
 8004d24:	36 81 00 08 	addi r1,r20,8                                  
 8004d28:	ba 60 10 00 	mv r2,r19                                      
 8004d2c:	fb ff ef 9f 	calli 8000ba8 <__umodsi3>                      
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if (                                                                
 8004d30:	44 2b 00 07 	be r1,r11,8004d4c <_Heap_Walk+0x158>           
    !_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size )
  ) {                                                                 
    (*printer)(                                                       
 8004d34:	78 03 08 01 	mvhi r3,0x801                                  
 8004d38:	b9 c0 08 00 	mv r1,r14                                      
 8004d3c:	34 02 00 01 	mvi r2,1                                       
 8004d40:	38 63 2e fc 	ori r3,r3,0x2efc                               
 8004d44:	ba 80 20 00 	mv r4,r20                                      
 8004d48:	e0 00 00 ef 	bi 8005104 <_Heap_Walk+0x510>                  
  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;                 
 8004d4c:	2a 82 00 04 	lw r2,(r20+4)                                  
 8004d50:	20 42 00 01 	andi r2,r2,0x1                                 
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_prev_used( first_block ) ) {                         
 8004d54:	5c 41 00 07 	bne r2,r1,8004d70 <_Heap_Walk+0x17c>           
    (*printer)(                                                       
 8004d58:	78 03 08 01 	mvhi r3,0x801                                  
 8004d5c:	b9 c0 08 00 	mv r1,r14                                      
 8004d60:	34 02 00 01 	mvi r2,1                                       
 8004d64:	38 63 2f 30 	ori r3,r3,0x2f30                               
 8004d68:	d9 a0 00 00 	call r13                                       
 8004d6c:	e0 00 00 40 	bi 8004e6c <_Heap_Walk+0x278>                  
    - 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;                
 8004d70:	2a cf 00 04 	lw r15,(r22+4)                                 
 8004d74:	34 02 ff fe 	mvi r2,-2                                      
 8004d78:	a0 4f 78 00 	and r15,r2,r15                                 
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
 8004d7c:	b6 cf 78 00 	add r15,r22,r15                                
  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;                 
 8004d80:	29 e2 00 04 	lw r2,(r15+4)                                  
 8004d84:	20 42 00 01 	andi r2,r2,0x1                                 
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( _Heap_Is_free( last_block ) ) {                                
 8004d88:	5c 41 00 06 	bne r2,r1,8004da0 <_Heap_Walk+0x1ac>           
    (*printer)(                                                       
 8004d8c:	78 03 08 01 	mvhi r3,0x801                                  
 8004d90:	b9 c0 08 00 	mv r1,r14                                      
 8004d94:	34 02 00 01 	mvi r2,1                                       
 8004d98:	38 63 2f 60 	ori r3,r3,0x2f60                               
 8004d9c:	e3 ff ff f3 	bi 8004d68 <_Heap_Walk+0x174>                  
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if (                                                                
 8004da0:	45 f4 00 06 	be r15,r20,8004db8 <_Heap_Walk+0x1c4>          
    _Heap_Block_at( last_block, _Heap_Block_size( last_block ) ) != first_block
  ) {                                                                 
    (*printer)(                                                       
 8004da4:	78 03 08 01 	mvhi r3,0x801                                  
 8004da8:	b9 c0 08 00 	mv r1,r14                                      
 8004dac:	34 02 00 01 	mvi r2,1                                       
 8004db0:	38 63 2f 78 	ori r3,r3,0x2f78                               
 8004db4:	e3 ff ff ed 	bi 8004d68 <_Heap_Walk+0x174>                  
  int source,                                                         
  Heap_Walk_printer printer,                                          
  Heap_Control *heap                                                  
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
 8004db8:	29 92 00 10 	lw r18,(r12+16)                                
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
 8004dbc:	29 8b 00 08 	lw r11,(r12+8)                                 
  Heap_Walk_printer printer,                                          
  Heap_Control *heap                                                  
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
  const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
 8004dc0:	b9 80 80 00 	mv r16,r12                                     
    - 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;                
 8004dc4:	34 11 ff fe 	mvi r17,-2                                     
 8004dc8:	e0 00 00 2d 	bi 8004e7c <_Heap_Walk+0x288>                  
  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;             
 8004dcc:	29 83 00 20 	lw r3,(r12+32)                                 
 8004dd0:	34 01 00 00 	mvi r1,0                                       
 8004dd4:	54 6b 00 03 	bgu r3,r11,8004de0 <_Heap_Walk+0x1ec>          
 8004dd8:	29 81 00 24 	lw r1,(r12+36)                                 
 8004ddc:	f0 2b 08 00 	cmpgeu r1,r1,r11                               
  const Heap_Block *const first_free_block = _Heap_Free_list_first( heap );
  const Heap_Block *prev_block = free_list_tail;                      
  const Heap_Block *free_block = first_free_block;                    
                                                                      
  while ( free_block != free_list_tail ) {                            
    if ( !_Heap_Is_block_in_heap( heap, free_block ) ) {              
 8004de0:	5c 20 00 06 	bne r1,r0,8004df8 <_Heap_Walk+0x204>           
      (*printer)(                                                     
 8004de4:	78 03 08 01 	mvhi r3,0x801                                  
 8004de8:	b9 c0 08 00 	mv r1,r14                                      
 8004dec:	34 02 00 01 	mvi r2,1                                       
 8004df0:	38 63 2f a8 	ori r3,r3,0x2fa8                               
 8004df4:	e0 00 00 14 	bi 8004e44 <_Heap_Walk+0x250>                  
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
 8004df8:	35 61 00 08 	addi r1,r11,8                                  
 8004dfc:	ba 40 10 00 	mv r2,r18                                      
 8004e00:	fb ff ef 6a 	calli 8000ba8 <__umodsi3>                      
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if (                                                              
 8004e04:	44 20 00 06 	be r1,r0,8004e1c <_Heap_Walk+0x228>            
      !_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size )
    ) {                                                               
      (*printer)(                                                     
 8004e08:	78 03 08 01 	mvhi r3,0x801                                  
 8004e0c:	b9 c0 08 00 	mv r1,r14                                      
 8004e10:	34 02 00 01 	mvi r2,1                                       
 8004e14:	38 63 2f c8 	ori r3,r3,0x2fc8                               
 8004e18:	e0 00 00 0b 	bi 8004e44 <_Heap_Walk+0x250>                  
    - 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;                
 8004e1c:	29 63 00 04 	lw r3,(r11+4)                                  
 8004e20:	a2 23 18 00 	and r3,r17,r3                                  
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
 8004e24:	b5 63 18 00 	add r3,r11,r3                                  
  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;                 
 8004e28:	28 63 00 04 	lw r3,(r3+4)                                   
 8004e2c:	20 63 00 01 	andi r3,r3,0x1                                 
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( _Heap_Is_used( free_block ) ) {                              
 8004e30:	44 61 00 07 	be r3,r1,8004e4c <_Heap_Walk+0x258>            
      (*printer)(                                                     
 8004e34:	78 03 08 01 	mvhi r3,0x801                                  
 8004e38:	b9 c0 08 00 	mv r1,r14                                      
 8004e3c:	34 02 00 01 	mvi r2,1                                       
 8004e40:	38 63 2f f8 	ori r3,r3,0x2ff8                               
 8004e44:	b9 60 20 00 	mv r4,r11                                      
 8004e48:	e0 00 00 af 	bi 8005104 <_Heap_Walk+0x510>                  
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( free_block->prev != prev_block ) {                           
 8004e4c:	29 65 00 0c 	lw r5,(r11+12)                                 
 8004e50:	44 b0 00 09 	be r5,r16,8004e74 <_Heap_Walk+0x280>           
      (*printer)(                                                     
 8004e54:	78 03 08 01 	mvhi r3,0x801                                  
 8004e58:	b9 c0 08 00 	mv r1,r14                                      
 8004e5c:	34 02 00 01 	mvi r2,1                                       
 8004e60:	38 63 30 14 	ori r3,r3,0x3014                               
 8004e64:	b9 60 20 00 	mv r4,r11                                      
 8004e68:	d9 a0 00 00 	call r13                                       
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
    return true;                                                      
  }                                                                   
                                                                      
  if ( !_Heap_Walk_check_control( source, printer, heap ) ) {         
    return false;                                                     
 8004e6c:	34 03 00 00 	mvi r3,0                                       
 8004e70:	e0 00 00 8c 	bi 80050a0 <_Heap_Walk+0x4ac>                  
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    prev_block = free_block;                                          
    free_block = free_block->next;                                    
 8004e74:	b9 60 80 00 	mv r16,r11                                     
 8004e78:	29 6b 00 08 	lw r11,(r11+8)                                 
  const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
  const Heap_Block *const first_free_block = _Heap_Free_list_first( heap );
  const Heap_Block *prev_block = free_list_tail;                      
  const Heap_Block *free_block = first_free_block;                    
                                                                      
  while ( free_block != free_list_tail ) {                            
 8004e7c:	5d 6c ff d4 	bne r11,r12,8004dcc <_Heap_Walk+0x1d8>         
 8004e80:	e0 00 00 03 	bi 8004e8c <_Heap_Walk+0x298>                  
        block->prev_size                                              
      );                                                              
    }                                                                 
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
 8004e84:	ba 20 78 00 	mv r15,r17                                     
 8004e88:	e0 00 00 15 	bi 8004edc <_Heap_Walk+0x2e8>                  
        "block 0x%08x: size %u\n",                                    
        block,                                                        
        block_size                                                    
      );                                                              
    } else {                                                          
      (*printer)(                                                     
 8004e8c:	78 01 08 01 	mvhi r1,0x801                                  
 8004e90:	38 21 31 c4 	ori r1,r1,0x31c4                               
 8004e94:	5b 81 00 54 	sw (sp+84),r1                                  
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
      if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
        return false;                                                 
      }                                                               
    } else if (prev_used) {                                           
      (*printer)(                                                     
 8004e98:	78 01 08 01 	mvhi r1,0x801                                  
 8004e9c:	38 21 31 ac 	ori r1,r1,0x31ac                               
 8004ea0:	5b 81 00 58 	sw (sp+88),r1                                  
  Heap_Block *const last_free_block = _Heap_Free_list_last( heap );   
  bool const prev_used = _Heap_Is_prev_used( block );                 
  uintptr_t const block_size = _Heap_Block_size( block );             
  Heap_Block *const next_block = _Heap_Block_at( block, block_size ); 
                                                                      
  (*printer)(                                                         
 8004ea4:	78 01 08 01 	mvhi r1,0x801                                  
 8004ea8:	38 21 2d d8 	ori r1,r1,0x2dd8                               
 8004eac:	5b 81 00 5c 	sw (sp+92),r1                                  
 8004eb0:	78 01 08 01 	mvhi r1,0x801                                  
 8004eb4:	38 21 2d f4 	ori r1,r1,0x2df4                               
 8004eb8:	78 1b 08 01 	mvhi fp,0x801                                  
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
    block->next,                                                      
    block->next == last_free_block ?                                  
      " (= last free)"                                                
        : (block->next == free_list_tail ? " (= tail)" : "")          
 8004ebc:	78 17 08 01 	mvhi r23,0x801                                 
 8004ec0:	78 19 08 01 	mvhi r25,0x801                                 
    block,                                                            
    block_size,                                                       
    block->prev,                                                      
    block->prev == first_free_block ?                                 
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
 8004ec4:	78 18 08 01 	mvhi r24,0x801                                 
  Heap_Block *const last_free_block = _Heap_Free_list_last( heap );   
  bool const prev_used = _Heap_Is_prev_used( block );                 
  uintptr_t const block_size = _Heap_Block_size( block );             
  Heap_Block *const next_block = _Heap_Block_at( block, block_size ); 
                                                                      
  (*printer)(                                                         
 8004ec8:	5b 81 00 60 	sw (sp+96),r1                                  
 8004ecc:	3b 7b 31 08 	ori fp,fp,0x3108                               
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
    block->next,                                                      
    block->next == last_free_block ?                                  
      " (= last free)"                                                
        : (block->next == free_list_tail ? " (= tail)" : "")          
 8004ed0:	3a f7 31 78 	ori r23,r23,0x3178                             
 8004ed4:	3b 39 2e 04 	ori r25,r25,0x2e04                             
    block,                                                            
    block_size,                                                       
    block->prev,                                                      
    block->prev == first_free_block ?                                 
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
 8004ed8:	3b 18 2d e8 	ori r24,r24,0x2de8                             
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
 8004edc:	29 f2 00 04 	lw r18,(r15+4)                                 
    - HEAP_BLOCK_HEADER_SIZE);                                        
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;                
 8004ee0:	34 01 ff fe 	mvi r1,-2                                      
  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;             
 8004ee4:	29 84 00 20 	lw r4,(r12+32)                                 
    - 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;                
 8004ee8:	a2 41 80 00 	and r16,r18,r1                                 
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
 8004eec:	b5 f0 88 00 	add r17,r15,r16                                
  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;             
 8004ef0:	34 06 00 00 	mvi r6,0                                       
 8004ef4:	54 91 00 03 	bgu r4,r17,8004f00 <_Heap_Walk+0x30c>          <== NEVER TAKEN
 8004ef8:	29 86 00 24 	lw r6,(r12+36)                                 
 8004efc:	f0 d1 30 00 	cmpgeu r6,r6,r17                               
    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;               
                                                                      
    if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {              
 8004f00:	5c c0 00 06 	bne r6,r0,8004f18 <_Heap_Walk+0x324>           
      (*printer)(                                                     
 8004f04:	78 03 08 01 	mvhi r3,0x801                                  
 8004f08:	b9 c0 08 00 	mv r1,r14                                      
 8004f0c:	34 02 00 01 	mvi r2,1                                       
 8004f10:	38 63 30 48 	ori r3,r3,0x3048                               
 8004f14:	e0 00 00 1f 	bi 8004f90 <_Heap_Walk+0x39c>                  
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
 8004f18:	ba 00 08 00 	mv r1,r16                                      
 8004f1c:	ba 60 10 00 	mv r2,r19                                      
    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;               
 8004f20:	fd f6 58 00 	cmpne r11,r15,r22                              
 8004f24:	fb ff ef 21 	calli 8000ba8 <__umodsi3>                      
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_aligned( block_size, page_size ) && is_not_last_block ) {
 8004f28:	44 20 00 09 	be r1,r0,8004f4c <_Heap_Walk+0x358>            
 8004f2c:	45 60 00 08 	be r11,r0,8004f4c <_Heap_Walk+0x358>           
      (*printer)(                                                     
 8004f30:	78 03 08 01 	mvhi r3,0x801                                  
 8004f34:	b9 c0 08 00 	mv r1,r14                                      
 8004f38:	34 02 00 01 	mvi r2,1                                       
 8004f3c:	38 63 30 78 	ori r3,r3,0x3078                               
 8004f40:	b9 e0 20 00 	mv r4,r15                                      
 8004f44:	ba 00 28 00 	mv r5,r16                                      
 8004f48:	e3 ff ff c8 	bi 8004e68 <_Heap_Walk+0x274>                  
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( block_size < min_block_size && is_not_last_block ) {         
 8004f4c:	52 15 00 0b 	bgeu r16,r21,8004f78 <_Heap_Walk+0x384>        
 8004f50:	45 60 00 0a 	be r11,r0,8004f78 <_Heap_Walk+0x384>           <== NEVER TAKEN
      (*printer)(                                                     
 8004f54:	78 03 08 01 	mvhi r3,0x801                                  
 8004f58:	b9 c0 08 00 	mv r1,r14                                      
 8004f5c:	34 02 00 01 	mvi r2,1                                       
 8004f60:	38 63 30 a8 	ori r3,r3,0x30a8                               
 8004f64:	b9 e0 20 00 	mv r4,r15                                      
 8004f68:	ba 00 28 00 	mv r5,r16                                      
 8004f6c:	ba a0 30 00 	mv r6,r21                                      
 8004f70:	d9 a0 00 00 	call r13                                       
 8004f74:	e3 ff ff be 	bi 8004e6c <_Heap_Walk+0x278>                  
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( next_block_begin <= block_begin && is_not_last_block ) {     
 8004f78:	56 2f 00 09 	bgu r17,r15,8004f9c <_Heap_Walk+0x3a8>         
 8004f7c:	45 60 00 08 	be r11,r0,8004f9c <_Heap_Walk+0x3a8>           
      (*printer)(                                                     
 8004f80:	78 03 08 01 	mvhi r3,0x801                                  
 8004f84:	b9 c0 08 00 	mv r1,r14                                      
 8004f88:	34 02 00 01 	mvi r2,1                                       
 8004f8c:	38 63 30 d4 	ori r3,r3,0x30d4                               
 8004f90:	b9 e0 20 00 	mv r4,r15                                      
 8004f94:	ba 20 28 00 	mv r5,r17                                      
 8004f98:	e3 ff ff b4 	bi 8004e68 <_Heap_Walk+0x274>                  
  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;                 
 8004f9c:	2a 24 00 04 	lw r4,(r17+4)                                  
 8004fa0:	22 52 00 01 	andi r18,r18,0x1                               
 8004fa4:	20 84 00 01 	andi r4,r4,0x1                                 
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
 8004fa8:	5c 80 00 2d 	bne r4,r0,800505c <_Heap_Walk+0x468>           
    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 ?                                 
 8004fac:	29 e6 00 0c 	lw r6,(r15+12)                                 
  Heap_Block *const last_free_block = _Heap_Free_list_last( heap );   
  bool const prev_used = _Heap_Is_prev_used( block );                 
  uintptr_t const block_size = _Heap_Block_size( block );             
  Heap_Block *const next_block = _Heap_Block_at( block, block_size ); 
                                                                      
  (*printer)(                                                         
 8004fb0:	29 85 00 08 	lw r5,(r12+8)                                  
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
 8004fb4:	29 84 00 0c 	lw r4,(r12+12)                                 
  Heap_Block *const last_free_block = _Heap_Free_list_last( heap );   
  bool const prev_used = _Heap_Is_prev_used( block );                 
  uintptr_t const block_size = _Heap_Block_size( block );             
  Heap_Block *const next_block = _Heap_Block_at( block, block_size ); 
                                                                      
  (*printer)(                                                         
 8004fb8:	2b 87 00 5c 	lw r7,(sp+92)                                  
 8004fbc:	44 c5 00 04 	be r6,r5,8004fcc <_Heap_Walk+0x3d8>            
    block,                                                            
    block_size,                                                       
    block->prev,                                                      
    block->prev == first_free_block ?                                 
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
 8004fc0:	ba e0 38 00 	mv r7,r23                                      
 8004fc4:	5c cc 00 02 	bne r6,r12,8004fcc <_Heap_Walk+0x3d8>          
 8004fc8:	bb 00 38 00 	mv r7,r24                                      
    block->next,                                                      
    block->next == last_free_block ?                                  
 8004fcc:	29 e8 00 08 	lw r8,(r15+8)                                  
  Heap_Block *const last_free_block = _Heap_Free_list_last( heap );   
  bool const prev_used = _Heap_Is_prev_used( block );                 
  uintptr_t const block_size = _Heap_Block_size( block );             
  Heap_Block *const next_block = _Heap_Block_at( block, block_size ); 
                                                                      
  (*printer)(                                                         
 8004fd0:	2b 89 00 60 	lw r9,(sp+96)                                  
 8004fd4:	45 04 00 04 	be r8,r4,8004fe4 <_Heap_Walk+0x3f0>            
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
    block->next,                                                      
    block->next == last_free_block ?                                  
      " (= last free)"                                                
        : (block->next == free_list_tail ? " (= tail)" : "")          
 8004fd8:	ba e0 48 00 	mv r9,r23                                      
 8004fdc:	5d 0c 00 02 	bne r8,r12,8004fe4 <_Heap_Walk+0x3f0>          
 8004fe0:	bb 20 48 00 	mv r9,r25                                      
  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)(                                                         
 8004fe4:	5b 89 00 04 	sw (sp+4),r9                                   
 8004fe8:	b9 c0 08 00 	mv r1,r14                                      
 8004fec:	34 02 00 00 	mvi r2,0                                       
 8004ff0:	bb 60 18 00 	mv r3,fp                                       
 8004ff4:	b9 e0 20 00 	mv r4,r15                                      
 8004ff8:	ba 00 28 00 	mv r5,r16                                      
 8004ffc:	d9 a0 00 00 	call r13                                       
    block->next == last_free_block ?                                  
      " (= last free)"                                                
        : (block->next == free_list_tail ? " (= tail)" : "")          
  );                                                                  
                                                                      
  if ( block_size != next_block->prev_size ) {                        
 8005000:	2a 26 00 00 	lw r6,(r17+0)                                  
 8005004:	46 06 00 0a 	be r16,r6,800502c <_Heap_Walk+0x438>           
    (*printer)(                                                       
 8005008:	78 03 08 01 	mvhi r3,0x801                                  
 800500c:	b9 c0 08 00 	mv r1,r14                                      
 8005010:	34 02 00 01 	mvi r2,1                                       
 8005014:	38 63 31 40 	ori r3,r3,0x3140                               
 8005018:	b9 e0 20 00 	mv r4,r15                                      
 800501c:	ba 00 28 00 	mv r5,r16                                      
 8005020:	ba 20 38 00 	mv r7,r17                                      
 8005024:	d9 a0 00 00 	call r13                                       
 8005028:	e3 ff ff 91 	bi 8004e6c <_Heap_Walk+0x278>                  
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !prev_used ) {                                                 
 800502c:	5e 40 00 06 	bne r18,r0,8005044 <_Heap_Walk+0x450>          
    (*printer)(                                                       
 8005030:	78 03 08 01 	mvhi r3,0x801                                  
 8005034:	b9 c0 08 00 	mv r1,r14                                      
 8005038:	34 02 00 01 	mvi r2,1                                       
 800503c:	38 63 31 7c 	ori r3,r3,0x317c                               
 8005040:	e0 00 00 30 	bi 8005100 <_Heap_Walk+0x50c>                  
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
 8005044:	29 85 00 08 	lw r5,(r12+8)                                  
 8005048:	e0 00 00 03 	bi 8005054 <_Heap_Walk+0x460>                  
{                                                                     
  const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
  const Heap_Block *free_block = _Heap_Free_list_first( heap );       
                                                                      
  while ( free_block != free_list_tail ) {                            
    if ( free_block == block ) {                                      
 800504c:	44 af 00 13 	be r5,r15,8005098 <_Heap_Walk+0x4a4>           
      return true;                                                    
    }                                                                 
    free_block = free_block->next;                                    
 8005050:	28 a5 00 08 	lw r5,(r5+8)                                   
)                                                                     
{                                                                     
  const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
  const Heap_Block *free_block = _Heap_Free_list_first( heap );       
                                                                      
  while ( free_block != free_list_tail ) {                            
 8005054:	5c ac ff fe 	bne r5,r12,800504c <_Heap_Walk+0x458>          
 8005058:	e0 00 00 26 	bi 80050f0 <_Heap_Walk+0x4fc>                  
                                                                      
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
      if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
        return false;                                                 
      }                                                               
    } else if (prev_used) {                                           
 800505c:	46 40 00 08 	be r18,r0,800507c <_Heap_Walk+0x488>           
      (*printer)(                                                     
 8005060:	2b 83 00 58 	lw r3,(sp+88)                                  
 8005064:	b9 c0 08 00 	mv r1,r14                                      
 8005068:	34 02 00 00 	mvi r2,0                                       
 800506c:	b9 e0 20 00 	mv r4,r15                                      
 8005070:	ba 00 28 00 	mv r5,r16                                      
 8005074:	d9 a0 00 00 	call r13                                       
 8005078:	e0 00 00 08 	bi 8005098 <_Heap_Walk+0x4a4>                  
        "block 0x%08x: size %u\n",                                    
        block,                                                        
        block_size                                                    
      );                                                              
    } else {                                                          
      (*printer)(                                                     
 800507c:	2b 83 00 54 	lw r3,(sp+84)                                  
 8005080:	29 e6 00 00 	lw r6,(r15+0)                                  
 8005084:	b9 c0 08 00 	mv r1,r14                                      
 8005088:	34 02 00 00 	mvi r2,0                                       
 800508c:	b9 e0 20 00 	mv r4,r15                                      
 8005090:	ba 00 28 00 	mv r5,r16                                      
 8005094:	d9 a0 00 00 	call r13                                       
        block->prev_size                                              
      );                                                              
    }                                                                 
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
 8005098:	5e 91 ff 7b 	bne r20,r17,8004e84 <_Heap_Walk+0x290>         
                                                                      
  return true;                                                        
 800509c:	34 03 00 01 	mvi r3,1                                       
}                                                                     
 80050a0:	b8 60 08 00 	mv r1,r3                                       
 80050a4:	2b 9d 00 10 	lw ra,(sp+16)                                  
 80050a8:	2b 8b 00 50 	lw r11,(sp+80)                                 
 80050ac:	2b 8c 00 4c 	lw r12,(sp+76)                                 
 80050b0:	2b 8d 00 48 	lw r13,(sp+72)                                 
 80050b4:	2b 8e 00 44 	lw r14,(sp+68)                                 
 80050b8:	2b 8f 00 40 	lw r15,(sp+64)                                 
 80050bc:	2b 90 00 3c 	lw r16,(sp+60)                                 
 80050c0:	2b 91 00 38 	lw r17,(sp+56)                                 
 80050c4:	2b 92 00 34 	lw r18,(sp+52)                                 
 80050c8:	2b 93 00 30 	lw r19,(sp+48)                                 
 80050cc:	2b 94 00 2c 	lw r20,(sp+44)                                 
 80050d0:	2b 95 00 28 	lw r21,(sp+40)                                 
 80050d4:	2b 96 00 24 	lw r22,(sp+36)                                 
 80050d8:	2b 97 00 20 	lw r23,(sp+32)                                 
 80050dc:	2b 98 00 1c 	lw r24,(sp+28)                                 
 80050e0:	2b 99 00 18 	lw r25,(sp+24)                                 
 80050e4:	2b 9b 00 14 	lw fp,(sp+20)                                  
 80050e8:	37 9c 00 60 	addi sp,sp,96                                  
 80050ec:	c3 a0 00 00 	ret                                            
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Walk_is_in_free_list( heap, block ) ) {                 
    (*printer)(                                                       
 80050f0:	78 03 08 01 	mvhi r3,0x801                                  
 80050f4:	b9 c0 08 00 	mv r1,r14                                      
 80050f8:	34 02 00 01 	mvi r2,1                                       
 80050fc:	38 63 31 ec 	ori r3,r3,0x31ec                               
 8005100:	b9 e0 20 00 	mv r4,r15                                      
 8005104:	d9 a0 00 00 	call r13                                       
 8005108:	e3 ff ff 59 	bi 8004e6c <_Heap_Walk+0x278>                  
                                                                      

08003100 <_IO_Manager_initialization>: * workspace. * */ void _IO_Manager_initialization(void) {
 8003100:	37 9c ff e8 	addi sp,sp,-24                                 
 8003104:	5b 8b 00 18 	sw (sp+24),r11                                 
 8003108:	5b 8c 00 14 	sw (sp+20),r12                                 
 800310c:	5b 8d 00 10 	sw (sp+16),r13                                 
 8003110:	5b 8e 00 0c 	sw (sp+12),r14                                 
 8003114:	5b 8f 00 08 	sw (sp+8),r15                                  
 8003118:	5b 9d 00 04 	sw (sp+4),ra                                   
  uint32_t                    index;                                  
  rtems_driver_address_table *driver_table;                           
  uint32_t                    drivers_in_table;                       
  uint32_t                    number_of_drivers;                      
                                                                      
  driver_table      = Configuration.Device_driver_table;              
 800311c:	78 01 08 01 	mvhi r1,0x801                                  
 8003120:	38 21 30 f4 	ori r1,r1,0x30f4                               
  drivers_in_table  = Configuration.number_of_device_drivers;         
 8003124:	28 2d 00 30 	lw r13,(r1+48)                                 
  number_of_drivers = Configuration.maximum_drivers;                  
 8003128:	28 2b 00 2c 	lw r11,(r1+44)                                 
  uint32_t                    index;                                  
  rtems_driver_address_table *driver_table;                           
  uint32_t                    drivers_in_table;                       
  uint32_t                    number_of_drivers;                      
                                                                      
  driver_table      = Configuration.Device_driver_table;              
 800312c:	28 2e 00 34 	lw r14,(r1+52)                                 
                                                                      
  /*                                                                  
   *  If the user claims there are less drivers than are actually in  
   *  the table, then let's just go with the table's count.           
   */                                                                 
  if ( number_of_drivers <= drivers_in_table )                        
 8003130:	51 ab 00 03 	bgeu r13,r11,800313c <_IO_Manager_initialization+0x3c>
  /*                                                                  
   *  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 ) {                      
 8003134:	5d 6d 00 0a 	bne r11,r13,800315c <_IO_Manager_initialization+0x5c><== ALWAYS TAKEN
 8003138:	e0 00 00 02 	bi 8003140 <_IO_Manager_initialization+0x40>   <== NOT EXECUTED
                                                                      
  /*                                                                  
   *  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 )                        
 800313c:	b9 a0 58 00 	mv r11,r13                                     
   *  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;                          
 8003140:	78 01 08 01 	mvhi r1,0x801                                  
 8003144:	38 21 3a bc 	ori r1,r1,0x3abc                               
 8003148:	58 2e 00 00 	sw (r1+0),r14                                  
    _IO_Number_of_drivers = number_of_drivers;                        
 800314c:	78 01 08 01 	mvhi r1,0x801                                  
 8003150:	38 21 3a b8 	ori r1,r1,0x3ab8                               
 8003154:	58 2b 00 00 	sw (r1+0),r11                                  
    return;                                                           
 8003158:	e0 00 00 27 	bi 80031f4 <_IO_Manager_initialization+0xf4>   
   *  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 )  
 800315c:	34 02 00 01 	mvi r2,1                                       
 8003160:	b9 60 08 00 	mv r1,r11                                      
 8003164:	f8 00 35 c9 	calli 8010888 <__ashlsi3>                      
 8003168:	34 02 00 03 	mvi r2,3                                       
 800316c:	b4 2b 08 00 	add r1,r1,r11                                  
 8003170:	f8 00 35 c6 	calli 8010888 <__ashlsi3>                      
 8003174:	b8 20 78 00 	mv r15,r1                                      
   *  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(                             
 8003178:	f8 00 0e 75 	calli 8006b4c <_Workspace_Allocate_or_fatal_error>
        sizeof( rtems_driver_address_table ) * ( number_of_drivers )  
      );                                                              
  _IO_Number_of_drivers = number_of_drivers;                          
 800317c:	78 02 08 01 	mvhi r2,0x801                                  
 8003180:	38 42 3a b8 	ori r2,r2,0x3ab8                               
  /*                                                                  
   *  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 *)           
 8003184:	78 0c 08 01 	mvhi r12,0x801                                 
      _Workspace_Allocate_or_fatal_error(                             
        sizeof( rtems_driver_address_table ) * ( number_of_drivers )  
      );                                                              
  _IO_Number_of_drivers = number_of_drivers;                          
 8003188:	58 4b 00 00 	sw (r2+0),r11                                  
                                                                      
  memset(                                                             
 800318c:	b9 e0 18 00 	mv r3,r15                                      
  /*                                                                  
   *  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 *)           
 8003190:	39 8c 3a bc 	ori r12,r12,0x3abc                             
      _Workspace_Allocate_or_fatal_error(                             
        sizeof( rtems_driver_address_table ) * ( number_of_drivers )  
      );                                                              
  _IO_Number_of_drivers = number_of_drivers;                          
                                                                      
  memset(                                                             
 8003194:	34 02 00 00 	mvi r2,0                                       
  /*                                                                  
   *  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 *)           
 8003198:	59 81 00 00 	sw (r12+0),r1                                  
      _Workspace_Allocate_or_fatal_error(                             
        sizeof( rtems_driver_address_table ) * ( number_of_drivers )  
      );                                                              
  _IO_Number_of_drivers = number_of_drivers;                          
                                                                      
  memset(                                                             
 800319c:	f8 00 23 74 	calli 800bf6c <memset>                         
    _IO_Driver_address_table, 0,                                      
    sizeof( rtems_driver_address_table ) * ( number_of_drivers )      
  );                                                                  
                                                                      
  for ( index = 0 ; index < drivers_in_table ; index++ )              
 80031a0:	34 03 00 00 	mvi r3,0                                       
 80031a4:	34 04 00 00 	mvi r4,0                                       
 80031a8:	e0 00 00 12 	bi 80031f0 <_IO_Manager_initialization+0xf0>   
    _IO_Driver_address_table[index] = driver_table[index];            
 80031ac:	29 82 00 00 	lw r2,(r12+0)                                  
 *  registration. The driver table is now allocated in the            
 *  workspace.                                                        
 *                                                                    
 */                                                                   
                                                                      
void _IO_Manager_initialization(void)                                 
 80031b0:	b5 c3 08 00 	add r1,r14,r3                                  
    _IO_Driver_address_table, 0,                                      
    sizeof( rtems_driver_address_table ) * ( number_of_drivers )      
  );                                                                  
                                                                      
  for ( index = 0 ; index < drivers_in_table ; index++ )              
    _IO_Driver_address_table[index] = driver_table[index];            
 80031b4:	28 29 00 00 	lw r9,(r1+0)                                   
 80031b8:	28 28 00 04 	lw r8,(r1+4)                                   
 80031bc:	28 27 00 08 	lw r7,(r1+8)                                   
 80031c0:	28 26 00 0c 	lw r6,(r1+12)                                  
 80031c4:	28 25 00 10 	lw r5,(r1+16)                                  
 80031c8:	28 21 00 14 	lw r1,(r1+20)                                  
 80031cc:	b4 43 10 00 	add r2,r2,r3                                   
 80031d0:	58 49 00 00 	sw (r2+0),r9                                   
 80031d4:	58 48 00 04 	sw (r2+4),r8                                   
 80031d8:	58 47 00 08 	sw (r2+8),r7                                   
 80031dc:	58 46 00 0c 	sw (r2+12),r6                                  
 80031e0:	58 45 00 10 	sw (r2+16),r5                                  
 80031e4:	58 41 00 14 	sw (r2+20),r1                                  
  memset(                                                             
    _IO_Driver_address_table, 0,                                      
    sizeof( rtems_driver_address_table ) * ( number_of_drivers )      
  );                                                                  
                                                                      
  for ( index = 0 ; index < drivers_in_table ; index++ )              
 80031e8:	34 84 00 01 	addi r4,r4,1                                   
 80031ec:	34 63 00 18 	addi r3,r3,24                                  
 80031f0:	55 a4 ff ef 	bgu r13,r4,80031ac <_IO_Manager_initialization+0xac>
    _IO_Driver_address_table[index] = driver_table[index];            
}                                                                     
 80031f4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80031f8:	2b 8b 00 18 	lw r11,(sp+24)                                 
 80031fc:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8003200:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8003204:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8003208:	2b 8f 00 08 	lw r15,(sp+8)                                  
 800320c:	37 9c 00 18 	addi sp,sp,24                                  
 8003210:	c3 a0 00 00 	ret                                            
                                                                      

08004084 <_Objects_Allocate>: */ Objects_Control *_Objects_Allocate( Objects_Information *information ) {
 8004084:	37 9c ff ec 	addi sp,sp,-20                                 
 8004088:	5b 8b 00 14 	sw (sp+20),r11                                 
 800408c:	5b 8c 00 10 	sw (sp+16),r12                                 
 8004090:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8004094:	5b 8e 00 08 	sw (sp+8),r14                                  
 8004098:	5b 9d 00 04 	sw (sp+4),ra                                   
 800409c:	b8 20 58 00 	mv r11,r1                                      
   *  If the application is using the optional manager stubs and      
   *  still attempts to create the object, the information block      
   *  should be all zeroed out because it is in the BSS.  So let's    
   *  check that code for this manager is even present.               
   */                                                                 
  if ( information->size == 0 )                                       
 80040a0:	28 21 00 18 	lw r1,(r1+24)                                  
    return NULL;                                                      
 80040a4:	34 0c 00 00 	mvi r12,0                                      
   *  If the application is using the optional manager stubs and      
   *  still attempts to create the object, the information block      
   *  should be all zeroed out because it is in the BSS.  So let's    
   *  check that code for this manager is even present.               
   */                                                                 
  if ( information->size == 0 )                                       
 80040a8:	44 20 00 1e 	be r1,r0,8004120 <_Objects_Allocate+0x9c>      <== NEVER TAKEN
                                                                      
  /*                                                                  
   *  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 );
 80040ac:	35 6d 00 20 	addi r13,r11,32                                
 80040b0:	b9 a0 08 00 	mv r1,r13                                      
 80040b4:	fb ff fd 23 	calli 8003540 <_Chain_Get>                     
 80040b8:	b8 20 60 00 	mv r12,r1                                      
 80040bc:	b8 20 70 00 	mv r14,r1                                      
                                                                      
  if ( information->auto_extend ) {                                   
 80040c0:	41 61 00 12 	lbu r1,(r11+18)                                
 80040c4:	44 20 00 17 	be r1,r0,8004120 <_Objects_Allocate+0x9c>      
    /*                                                                
     *  If the list is empty then we are out of objects and need to   
     *  extend information base.                                      
     */                                                               
                                                                      
    if ( !the_object ) {                                              
 80040c8:	5d 80 00 07 	bne r12,r0,80040e4 <_Objects_Allocate+0x60>    
      _Objects_Extend_information( information );                     
 80040cc:	b9 60 08 00 	mv r1,r11                                      
 80040d0:	f8 00 00 1c 	calli 8004140 <_Objects_Extend_information>    
      the_object =  (Objects_Control *) _Chain_Get( &information->Inactive );
 80040d4:	b9 a0 08 00 	mv r1,r13                                      
 80040d8:	fb ff fd 1a 	calli 8003540 <_Chain_Get>                     
 80040dc:	b8 20 60 00 	mv r12,r1                                      
    }                                                                 
                                                                      
    if ( the_object ) {                                               
 80040e0:	44 2e 00 10 	be r1,r14,8004120 <_Objects_Allocate+0x9c>     
      uint32_t   block;                                               
                                                                      
      block = (uint32_t) _Objects_Get_index( the_object->id ) -       
 80040e4:	2d 82 00 0a 	lhu r2,(r12+10)                                
 80040e8:	2d 61 00 0a 	lhu r1,(r11+10)                                
              _Objects_Get_index( information->minimum_id );          
      block /= information->allocation_size;                          
 80040ec:	c8 41 08 00 	sub r1,r2,r1                                   
 80040f0:	2d 62 00 14 	lhu r2,(r11+20)                                
 80040f4:	f8 00 32 bf 	calli 8010bf0 <__udivsi3>                      
                                                                      
      information->inactive_per_block[ block ]--;                     
 80040f8:	34 02 00 02 	mvi r2,2                                       
 80040fc:	f8 00 31 e3 	calli 8010888 <__ashlsi3>                      
 8004100:	29 62 00 30 	lw r2,(r11+48)                                 
 8004104:	b4 41 08 00 	add r1,r2,r1                                   
 8004108:	28 22 00 00 	lw r2,(r1+0)                                   
 800410c:	34 42 ff ff 	addi r2,r2,-1                                  
 8004110:	58 22 00 00 	sw (r1+0),r2                                   
      information->inactive--;                                        
 8004114:	2d 61 00 2c 	lhu r1,(r11+44)                                
 8004118:	34 21 ff ff 	addi r1,r1,-1                                  
 800411c:	0d 61 00 2c 	sh (r11+44),r1                                 
    );                                                                
  }                                                                   
#endif                                                                
                                                                      
  return the_object;                                                  
}                                                                     
 8004120:	b9 80 08 00 	mv r1,r12                                      
 8004124:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004128:	2b 8b 00 14 	lw r11,(sp+20)                                 
 800412c:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8004130:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8004134:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8004138:	37 9c 00 14 	addi sp,sp,20                                  
 800413c:	c3 a0 00 00 	ret                                            
                                                                      

08004560 <_Objects_Get_information>: Objects_Information *_Objects_Get_information( Objects_APIs the_api, uint16_t the_class ) {
 8004560:	37 9c ff ec 	addi sp,sp,-20                                 
 8004564:	5b 8b 00 14 	sw (sp+20),r11                                 
 8004568:	5b 8c 00 10 	sw (sp+16),r12                                 
 800456c:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8004570:	5b 8e 00 08 	sw (sp+8),r14                                  
 8004574:	5b 9d 00 04 	sw (sp+4),ra                                   
 8004578:	20 4c ff ff 	andi r12,r2,0xffff                             
 800457c:	b8 20 70 00 	mv r14,r1                                      
  Objects_Information *info;                                          
  int the_class_api_maximum;                                          
                                                                      
  if ( !the_class )                                                   
    return NULL;                                                      
 8004580:	34 0b 00 00 	mvi r11,0                                      
)                                                                     
{                                                                     
  Objects_Information *info;                                          
  int the_class_api_maximum;                                          
                                                                      
  if ( !the_class )                                                   
 8004584:	45 80 00 16 	be r12,r0,80045dc <_Objects_Get_information+0x7c>
                                                                      
  /*                                                                  
   *  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 );      
 8004588:	f8 00 13 bf 	calli 8009484 <_Objects_API_maximum_class>     
  if ( the_class_api_maximum == 0 )                                   
 800458c:	44 20 00 14 	be r1,r0,80045dc <_Objects_Get_information+0x7c>
    return NULL;                                                      
                                                                      
  if ( the_class > (uint32_t) the_class_api_maximum )                 
 8004590:	55 81 00 13 	bgu r12,r1,80045dc <_Objects_Get_information+0x7c>
    return NULL;                                                      
                                                                      
  if ( !_Objects_Information_table[ the_api ] )                       
 8004594:	78 0d 08 01 	mvhi r13,0x801                                 
 8004598:	b9 c0 08 00 	mv r1,r14                                      
 800459c:	34 02 00 02 	mvi r2,2                                       
 80045a0:	39 ad 38 24 	ori r13,r13,0x3824                             
 80045a4:	f8 00 30 b9 	calli 8010888 <__ashlsi3>                      
 80045a8:	b5 a1 08 00 	add r1,r13,r1                                  
 80045ac:	28 2d 00 00 	lw r13,(r1+0)                                  
 80045b0:	45 a0 00 0b 	be r13,r0,80045dc <_Objects_Get_information+0x7c><== NEVER TAKEN
    return NULL;                                                      
                                                                      
  info = _Objects_Information_table[ the_api ][ the_class ];          
 80045b4:	b9 80 08 00 	mv r1,r12                                      
 80045b8:	34 02 00 02 	mvi r2,2                                       
 80045bc:	f8 00 30 b3 	calli 8010888 <__ashlsi3>                      
 80045c0:	b5 a1 08 00 	add r1,r13,r1                                  
 80045c4:	28 2b 00 00 	lw r11,(r1+0)                                  
  if ( !info )                                                        
 80045c8:	45 60 00 05 	be r11,r0,80045dc <_Objects_Get_information+0x7c><== NEVER TAKEN
   *  In a multprocessing configuration, we may access remote objects.
   *  Thus we may have 0 local instances and still have a valid object
   *  pointer.                                                        
   */                                                                 
  #if !defined(RTEMS_MULTIPROCESSING)                                 
    if ( info->maximum == 0 )                                         
 80045cc:	2d 61 00 10 	lhu r1,(r11+16)                                
      return NULL;                                                    
 80045d0:	7c 21 00 00 	cmpnei r1,r1,0                                 
 80045d4:	c8 01 08 00 	sub r1,r0,r1                                   
 80045d8:	a1 61 58 00 	and r11,r11,r1                                 
  #endif                                                              
                                                                      
  return info;                                                        
}                                                                     
 80045dc:	b9 60 08 00 	mv r1,r11                                      
 80045e0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80045e4:	2b 8b 00 14 	lw r11,(sp+20)                                 
 80045e8:	2b 8c 00 10 	lw r12,(sp+16)                                 
 80045ec:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 80045f0:	2b 8e 00 08 	lw r14,(sp+8)                                  
 80045f4:	37 9c 00 14 	addi sp,sp,20                                  
 80045f8:	c3 a0 00 00 	ret                                            
                                                                      

08017814 <_Objects_Get_no_protection>: Objects_Control *_Objects_Get_no_protection( Objects_Information *information, Objects_Id id, Objects_Locations *location ) {
 8017814:	37 9c ff f4 	addi sp,sp,-12                                 
 8017818:	5b 8b 00 0c 	sw (sp+12),r11                                 
 801781c:	5b 8c 00 08 	sw (sp+8),r12                                  
 8017820:	5b 9d 00 04 	sw (sp+4),ra                                   
 8017824:	b8 20 20 00 	mv r4,r1                                       
                                                                      
  /*                                                                  
   * You can't just extract the index portion or you can get tricked  
   * by a value between 1 and maximum.                                
   */                                                                 
  index = id - information->minimum_id + 1;                           
 8017828:	28 21 00 08 	lw r1,(r1+8)                                   
Objects_Control *_Objects_Get_no_protection(                          
  Objects_Information *information,                                   
  Objects_Id           id,                                            
  Objects_Locations   *location                                       
)                                                                     
{                                                                     
 801782c:	b8 60 58 00 	mv r11,r3                                      
                                                                      
  /*                                                                  
   * You can't just extract the index portion or you can get tricked  
   * by a value between 1 and maximum.                                
   */                                                                 
  index = id - information->minimum_id + 1;                           
 8017830:	c8 41 08 00 	sub r1,r2,r1                                   
                                                                      
  if ( information->maximum >= index ) {                              
 8017834:	2c 82 00 10 	lhu r2,(r4+16)                                 
                                                                      
  /*                                                                  
   * You can't just extract the index portion or you can get tricked  
   * by a value between 1 and maximum.                                
   */                                                                 
  index = id - information->minimum_id + 1;                           
 8017838:	34 21 00 01 	addi r1,r1,1                                   
                                                                      
  if ( information->maximum >= index ) {                              
 801783c:	54 22 00 09 	bgu r1,r2,8017860 <_Objects_Get_no_protection+0x4c>
    if ( (the_object = information->local_table[ index ]) != NULL ) { 
 8017840:	28 8c 00 1c 	lw r12,(r4+28)                                 
 8017844:	34 02 00 02 	mvi r2,2                                       
 8017848:	fb ff d9 ab 	calli 800def4 <__ashlsi3>                      
 801784c:	b5 81 08 00 	add r1,r12,r1                                  
 8017850:	28 21 00 00 	lw r1,(r1+0)                                   
 8017854:	44 20 00 03 	be r1,r0,8017860 <_Objects_Get_no_protection+0x4c><== NEVER TAKEN
      *location = OBJECTS_LOCAL;                                      
 8017858:	59 60 00 00 	sw (r11+0),r0                                  
      return the_object;                                              
 801785c:	e0 00 00 04 	bi 801786c <_Objects_Get_no_protection+0x58>   
                                                                      
  /*                                                                  
   *  This isn't supported or required yet for Global objects so      
   *  if it isn't local, we don't find it.                            
   */                                                                 
  *location = OBJECTS_ERROR;                                          
 8017860:	34 01 00 01 	mvi r1,1                                       
 8017864:	59 61 00 00 	sw (r11+0),r1                                  
  return NULL;                                                        
 8017868:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 801786c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8017870:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8017874:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8017878:	37 9c 00 0c 	addi sp,sp,12                                  
 801787c:	c3 a0 00 00 	ret                                            
                                                                      

08006220 <_Objects_Id_to_name>: */ Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( Objects_Id id, Objects_Name *name ) {
 8006220:	37 9c ff e8 	addi sp,sp,-24                                 
 8006224:	5b 8b 00 14 	sw (sp+20),r11                                 
 8006228:	5b 8c 00 10 	sw (sp+16),r12                                 
 800622c:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8006230:	5b 8e 00 08 	sw (sp+8),r14                                  
 8006234:	5b 9d 00 04 	sw (sp+4),ra                                   
 8006238:	b8 40 70 00 	mv r14,r2                                      
                                                                      
  /*                                                                  
   *  Caller is trusted for name != NULL.                             
   */                                                                 
                                                                      
  tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
 800623c:	b8 20 58 00 	mv r11,r1                                      
 8006240:	5c 20 00 05 	bne r1,r0,8006254 <_Objects_Id_to_name+0x34>   
 8006244:	78 01 08 01 	mvhi r1,0x801                                  
 8006248:	38 21 fa 88 	ori r1,r1,0xfa88                               
 800624c:	28 21 00 0c 	lw r1,(r1+12)                                  
 8006250:	28 2b 00 08 	lw r11,(r1+8)                                  
 */                                                                   
RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API(                   
  Objects_Id id                                                       
)                                                                     
{                                                                     
  return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS);
 8006254:	34 02 00 18 	mvi r2,24                                      
 8006258:	b9 60 08 00 	mv r1,r11                                      
 800625c:	f8 00 53 f9 	calli 801b240 <__lshrsi3>                      
 8006260:	20 21 00 07 	andi r1,r1,0x7                                 
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid(                      
  uint32_t   the_api                                                  
)                                                                     
{                                                                     
  if ( !the_api || the_api > OBJECTS_APIS_LAST )                      
 8006264:	34 23 ff ff 	addi r3,r1,-1                                  
 8006268:	34 02 00 02 	mvi r2,2                                       
                                                                      
  the_api = _Objects_Get_API( tmpId );                                
  if ( !_Objects_Is_api_valid( the_api ) )                            
    return OBJECTS_INVALID_ID;                                        
 800626c:	34 0d 00 03 	mvi r13,3                                      
 8006270:	54 62 00 12 	bgu r3,r2,80062b8 <_Objects_Id_to_name+0x98>   
 8006274:	e0 00 00 19 	bi 80062d8 <_Objects_Id_to_name+0xb8>          
 */                                                                   
RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_class(                     
  Objects_Id id                                                       
)                                                                     
{                                                                     
  return (uint32_t)                                                   
 8006278:	34 02 00 1b 	mvi r2,27                                      
 800627c:	b9 60 08 00 	mv r1,r11                                      
 8006280:	f8 00 53 f0 	calli 801b240 <__lshrsi3>                      
  if ( !_Objects_Information_table[ the_api ] )                       
    return OBJECTS_INVALID_ID;                                        
                                                                      
  the_class = _Objects_Get_class( tmpId );                            
                                                                      
  information = _Objects_Information_table[ the_api ][ the_class ];   
 8006284:	34 02 00 02 	mvi r2,2                                       
 8006288:	fb ff ec ed 	calli 800163c <__ashlsi3>                      
 800628c:	b5 81 08 00 	add r1,r12,r1                                  
 8006290:	28 21 00 00 	lw r1,(r1+0)                                   
  if ( !information )                                                 
 8006294:	44 20 00 09 	be r1,r0,80062b8 <_Objects_Id_to_name+0x98>    <== NEVER TAKEN
  #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 ); 
 8006298:	b9 60 10 00 	mv r2,r11                                      
 800629c:	37 83 00 18 	addi r3,sp,24                                  
 80062a0:	fb ff ff ba 	calli 8006188 <_Objects_Get>                   
  if ( !the_object )                                                  
 80062a4:	44 20 00 05 	be r1,r0,80062b8 <_Objects_Id_to_name+0x98>    
    return OBJECTS_INVALID_ID;                                        
                                                                      
  *name = the_object->name;                                           
 80062a8:	28 21 00 0c 	lw r1,(r1+12)                                  
  _Thread_Enable_dispatch();                                          
  return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;                        
 80062ac:	34 0d 00 00 	mvi r13,0                                      
                                                                      
  the_object = _Objects_Get( information, tmpId, &ignored_location ); 
  if ( !the_object )                                                  
    return OBJECTS_INVALID_ID;                                        
                                                                      
  *name = the_object->name;                                           
 80062b0:	59 c1 00 00 	sw (r14+0),r1                                  
  _Thread_Enable_dispatch();                                          
 80062b4:	f8 00 03 d5 	calli 8007208 <_Thread_Enable_dispatch>        
  return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;                        
}                                                                     
 80062b8:	b9 a0 08 00 	mv r1,r13                                      
 80062bc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80062c0:	2b 8b 00 14 	lw r11,(sp+20)                                 
 80062c4:	2b 8c 00 10 	lw r12,(sp+16)                                 
 80062c8:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 80062cc:	2b 8e 00 08 	lw r14,(sp+8)                                  
 80062d0:	37 9c 00 18 	addi sp,sp,24                                  
 80062d4:	c3 a0 00 00 	ret                                            
                                                                      
  the_api = _Objects_Get_API( tmpId );                                
  if ( !_Objects_Is_api_valid( the_api ) )                            
    return OBJECTS_INVALID_ID;                                        
                                                                      
  if ( !_Objects_Information_table[ the_api ] )                       
 80062d8:	78 0c 08 01 	mvhi r12,0x801                                 
 80062dc:	34 02 00 02 	mvi r2,2                                       
 80062e0:	39 8c f8 84 	ori r12,r12,0xf884                             
 80062e4:	fb ff ec d6 	calli 800163c <__ashlsi3>                      
 80062e8:	b5 81 08 00 	add r1,r12,r1                                  
 80062ec:	28 2c 00 00 	lw r12,(r1+0)                                  
 80062f0:	5d 80 ff e2 	bne r12,r0,8006278 <_Objects_Id_to_name+0x58>  
 80062f4:	e3 ff ff f1 	bi 80062b8 <_Objects_Id_to_name+0x98>          
                                                                      

0800473c <_Objects_Initialize_information>: , bool supports_global, Objects_Thread_queue_Extract_callout extract #endif ) {
 800473c:	37 9c ff e4 	addi sp,sp,-28                                 
 8004740:	5b 8b 00 1c 	sw (sp+28),r11                                 
 8004744:	5b 8c 00 18 	sw (sp+24),r12                                 
 8004748:	5b 8d 00 14 	sw (sp+20),r13                                 
 800474c:	5b 8e 00 10 	sw (sp+16),r14                                 
 8004750:	5b 8f 00 0c 	sw (sp+12),r15                                 
 8004754:	5b 90 00 08 	sw (sp+8),r16                                  
 8004758:	5b 9d 00 04 	sw (sp+4),ra                                   
 800475c:	20 6d ff ff 	andi r13,r3,0xffff                             
 8004760:	b8 20 58 00 	mv r11,r1                                      
 8004764:	20 a5 ff ff 	andi r5,r5,0xffff                              
    uint32_t              index;                                      
  #endif                                                              
                                                                      
  information->the_api            = the_api;                          
  information->the_class          = the_class;                        
  information->size               = size;                             
 8004768:	58 25 00 18 	sw (r1+24),r5                                  
  uint32_t                maximum_per_allocation;                     
  #if defined(RTEMS_MULTIPROCESSING)                                  
    uint32_t              index;                                      
  #endif                                                              
                                                                      
  information->the_api            = the_api;                          
 800476c:	59 62 00 00 	sw (r11+0),r2                                  
  information->the_class          = the_class;                        
 8004770:	0c 2d 00 04 	sh (r1+4),r13                                  
  information->size               = size;                             
  information->local_table        = 0;                                
 8004774:	58 20 00 1c 	sw (r1+28),r0                                  
  information->inactive_per_block = 0;                                
 8004778:	58 20 00 30 	sw (r1+48),r0                                  
  information->object_blocks      = 0;                                
 800477c:	58 20 00 34 	sw (r1+52),r0                                  
  information->inactive           = 0;                                
 8004780:	0c 20 00 2c 	sh (r1+44),r0                                  
                                                                      
  /*                                                                  
   *  Set the maximum value to 0. It will be updated when objects are 
   *  added to the inactive set from _Objects_Extend_information()    
   */                                                                 
  information->maximum = 0;                                           
 8004784:	0c 20 00 10 	sh (r1+16),r0                                  
  ,                                                                   
  bool                 supports_global,                               
  Objects_Thread_queue_Extract_callout extract                        
#endif                                                                
)                                                                     
{                                                                     
 8004788:	b8 40 70 00 	mv r14,r2                                      
  information->maximum = 0;                                           
                                                                      
  /*                                                                  
   *  Register this Object Class in the Object Information Table.     
   */                                                                 
  _Objects_Information_table[ the_api ][ the_class ] = information;   
 800478c:	b8 40 08 00 	mv r1,r2                                       
 8004790:	78 0f 08 01 	mvhi r15,0x801                                 
 8004794:	34 02 00 02 	mvi r2,2                                       
  ,                                                                   
  bool                 supports_global,                               
  Objects_Thread_queue_Extract_callout extract                        
#endif                                                                
)                                                                     
{                                                                     
 8004798:	b8 80 60 00 	mv r12,r4                                      
 800479c:	b8 e0 80 00 	mv r16,r7                                      
  information->maximum = 0;                                           
                                                                      
  /*                                                                  
   *  Register this Object Class in the Object Information Table.     
   */                                                                 
  _Objects_Information_table[ the_api ][ the_class ] = information;   
 80047a0:	39 ef 38 24 	ori r15,r15,0x3824                             
 80047a4:	f8 00 30 39 	calli 8010888 <__ashlsi3>                      
 80047a8:	b5 e1 08 00 	add r1,r15,r1                                  
 80047ac:	28 2f 00 00 	lw r15,(r1+0)                                  
 80047b0:	34 02 00 02 	mvi r2,2                                       
 80047b4:	b9 a0 08 00 	mv r1,r13                                      
 80047b8:	f8 00 30 34 	calli 8010888 <__ashlsi3>                      
 80047bc:	b5 e1 08 00 	add r1,r15,r1                                  
 80047c0:	58 2b 00 00 	sw (r1+0),r11                                  
                                                                      
  /*                                                                  
   *  Are we operating in limited or unlimited (e.g. auto-extend) mode.
   */                                                                 
  information->auto_extend =                                          
        (maximum & OBJECTS_UNLIMITED_OBJECTS) ? true : false;         
 80047c4:	34 02 00 1f 	mvi r2,31                                      
 80047c8:	b9 80 08 00 	mv r1,r12                                      
 80047cc:	f8 00 30 7d 	calli 80109c0 <__lshrsi3>                      
  maximum_per_allocation = maximum & ~OBJECTS_UNLIMITED_OBJECTS;      
 80047d0:	78 03 08 01 	mvhi r3,0x801                                  
 80047d4:	38 63 1d e8 	ori r3,r3,0x1de8                               
                                                                      
  /*                                                                  
   *  Are we operating in limited or unlimited (e.g. auto-extend) mode.
   */                                                                 
  information->auto_extend =                                          
        (maximum & OBJECTS_UNLIMITED_OBJECTS) ? true : false;         
 80047d8:	20 22 00 ff 	andi r2,r1,0xff                                
  maximum_per_allocation = maximum & ~OBJECTS_UNLIMITED_OBJECTS;      
 80047dc:	28 61 00 00 	lw r1,(r3+0)                                   
  _Objects_Information_table[ the_api ][ the_class ] = information;   
                                                                      
  /*                                                                  
   *  Are we operating in limited or unlimited (e.g. auto-extend) mode.
   */                                                                 
  information->auto_extend =                                          
 80047e0:	31 62 00 12 	sb (r11+18),r2                                 
        (maximum & OBJECTS_UNLIMITED_OBJECTS) ? true : false;         
  maximum_per_allocation = maximum & ~OBJECTS_UNLIMITED_OBJECTS;      
 80047e4:	a1 81 60 00 	and r12,r12,r1                                 
                                                                      
  /*                                                                  
   *  Unlimited and maximum of zero is illogical.                     
   */                                                                 
  if ( information->auto_extend && maximum_per_allocation == 0) {     
 80047e8:	44 40 00 06 	be r2,r0,8004800 <_Objects_Initialize_information+0xc4>
 80047ec:	5d 80 00 05 	bne r12,r0,8004800 <_Objects_Initialize_information+0xc4><== ALWAYS TAKEN
    _Internal_error_Occurred(                                         
 80047f0:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 80047f4:	34 02 00 01 	mvi r2,1                                       <== NOT EXECUTED
 80047f8:	34 03 00 13 	mvi r3,19                                      <== NOT EXECUTED
 80047fc:	fb ff fd f1 	calli 8003fc0 <_Internal_error_Occurred>       <== NOT EXECUTED
  information->allocation_size = maximum_per_allocation;              
                                                                      
  /*                                                                  
   *  Provide a null local table entry for the case of any empty table.
   */                                                                 
  information->local_table = &null_local_table;                       
 8004800:	78 01 08 01 	mvhi r1,0x801                                  
 8004804:	38 21 36 98 	ori r1,r1,0x3698                               
 8004808:	59 61 00 1c 	sw (r11+28),r1                                 
  uint32_t         the_class,                                         
  uint32_t         node,                                              
  uint32_t         index                                              
)                                                                     
{                                                                     
  return (( (Objects_Id) the_api )   << OBJECTS_API_START_BIT)   |    
 800480c:	34 02 00 18 	mvi r2,24                                      
 8004810:	b9 c0 08 00 	mv r1,r14                                      
  }                                                                   
                                                                      
  /*                                                                  
   *  The allocation unit is the maximum value                        
   */                                                                 
  information->allocation_size = maximum_per_allocation;              
 8004814:	0d 6c 00 14 	sh (r11+20),r12                                
 8004818:	f8 00 30 1c 	calli 8010888 <__ashlsi3>                      
 800481c:	78 0e 00 01 	mvhi r14,0x1                                   
 8004820:	b8 2e 70 00 	or r14,r1,r14                                  
         (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |    
 8004824:	34 02 00 1b 	mvi r2,27                                      
 8004828:	b9 a0 08 00 	mv r1,r13                                      
 800482c:	f8 00 30 17 	calli 8010888 <__ashlsi3>                      
  information->local_table = &null_local_table;                       
                                                                      
  /*                                                                  
   *  Calculate minimum and maximum Id's                              
   */                                                                 
  minimum_index = (maximum_per_allocation == 0) ? 0 : 1;              
 8004830:	7d 82 00 00 	cmpnei r2,r12,0                                
 8004834:	b9 c1 08 00 	or r1,r14,r1                                   
  uint32_t         the_class,                                         
  uint32_t         node,                                              
  uint32_t         index                                              
)                                                                     
{                                                                     
  return (( (Objects_Id) the_api )   << OBJECTS_API_START_BIT)   |    
 8004838:	b8 22 08 00 	or r1,r1,r2                                    
  information->minimum_id =                                           
 800483c:	59 61 00 08 	sw (r11+8),r1                                  
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 );                        
 8004840:	35 61 00 24 	addi r1,r11,36                                 
                                                                      
  head->next = tail;                                                  
 8004844:	59 61 00 20 	sw (r11+32),r1                                 
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
 8004848:	35 61 00 20 	addi r1,r11,32                                 
    if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) )                   
      name_length = (name_length + OBJECTS_NAME_ALIGNMENT) &          
                    ~(OBJECTS_NAME_ALIGNMENT-1);                      
  #endif                                                              
                                                                      
  information->name_length = name_length;                             
 800484c:	0d 70 00 38 	sh (r11+56),r16                                
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
 8004850:	59 60 00 24 	sw (r11+36),r0                                 
  tail->previous = head;                                              
 8004854:	59 61 00 28 	sw (r11+40),r1                                 
  _Chain_Initialize_empty( &information->Inactive );                  
                                                                      
  /*                                                                  
   *  Initialize objects .. if there are any                          
   */                                                                 
  if ( maximum_per_allocation ) {                                     
 8004858:	45 80 00 03 	be r12,r0,8004864 <_Objects_Initialize_information+0x128>
    /*                                                                
     *  Always have the maximum size available so the current performance
     *  figures are create are met.  If the user moves past the maximum
     *  number then a performance hit is taken.                       
     */                                                               
    _Objects_Extend_information( information );                       
 800485c:	b9 60 08 00 	mv r1,r11                                      
 8004860:	fb ff fe 38 	calli 8004140 <_Objects_Extend_information>    
	_Chain_Initialize_empty( &information->global_table[ index ] );      
     }                                                                
     else                                                             
       information->global_table = NULL;                              
  #endif                                                              
}                                                                     
 8004864:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004868:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 800486c:	2b 8c 00 18 	lw r12,(sp+24)                                 
 8004870:	2b 8d 00 14 	lw r13,(sp+20)                                 
 8004874:	2b 8e 00 10 	lw r14,(sp+16)                                 
 8004878:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 800487c:	2b 90 00 08 	lw r16,(sp+8)                                  
 8004880:	37 9c 00 1c 	addi sp,sp,28                                  
 8004884:	c3 a0 00 00 	ret                                            
                                                                      

08002e68 <_RTEMS_tasks_Initialize_user_tasks_body>: * * Output parameters: NONE */ void _RTEMS_tasks_Initialize_user_tasks_body( void ) {
 8002e68:	37 9c ff e8 	addi sp,sp,-24                                 
 8002e6c:	5b 8b 00 14 	sw (sp+20),r11                                 
 8002e70:	5b 8c 00 10 	sw (sp+16),r12                                 
 8002e74:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8002e78:	5b 8e 00 08 	sw (sp+8),r14                                  
 8002e7c:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_initialization_tasks_table *user_tasks;                       
                                                                      
  /*                                                                  
   *  Move information into local variables                           
   */                                                                 
  user_tasks = Configuration_RTEMS_API.User_initialization_tasks_table;
 8002e80:	78 01 08 01 	mvhi r1,0x801                                  
 8002e84:	38 21 30 bc 	ori r1,r1,0x30bc                               
 8002e88:	28 2b 00 2c 	lw r11,(r1+44)                                 
  maximum    = Configuration_RTEMS_API.number_of_initialization_tasks;
 8002e8c:	28 2e 00 28 	lw r14,(r1+40)                                 
                                                                      
  /*                                                                  
   *  Verify that we have a set of user tasks to iterate              
   */                                                                 
  if ( !user_tasks )                                                  
 8002e90:	34 0d 00 00 	mvi r13,0                                      
 8002e94:	5d 60 00 1a 	bne r11,r0,8002efc <_RTEMS_tasks_Initialize_user_tasks_body+0x94>
 8002e98:	e0 00 00 1a 	bi 8002f00 <_RTEMS_tasks_Initialize_user_tasks_body+0x98>
                                                                      
  /*                                                                  
   *  Now iterate over the initialization tasks and create/start them.
   */                                                                 
  for ( index=0 ; index < maximum ; index++ ) {                       
    return_value = rtems_task_create(                                 
 8002e9c:	29 61 00 00 	lw r1,(r11+0)                                  
 8002ea0:	29 62 00 08 	lw r2,(r11+8)                                  
 8002ea4:	29 63 00 04 	lw r3,(r11+4)                                  
 8002ea8:	29 64 00 14 	lw r4,(r11+20)                                 
 8002eac:	29 65 00 0c 	lw r5,(r11+12)                                 
 8002eb0:	37 86 00 18 	addi r6,sp,24                                  
 8002eb4:	fb ff ff 53 	calli 8002c00 <rtems_task_create>              
 8002eb8:	b8 20 60 00 	mv r12,r1                                      
      user_tasks[ index ].stack_size,                                 
      user_tasks[ index ].mode_set,                                   
      user_tasks[ index ].attribute_set,                              
      &id                                                             
    );                                                                
    if ( !rtems_is_status_successful( return_value ) )                
 8002ebc:	44 20 00 05 	be r1,r0,8002ed0 <_RTEMS_tasks_Initialize_user_tasks_body+0x68><== ALWAYS TAKEN
      _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value );
 8002ec0:	34 01 00 01 	mvi r1,1                                       <== NOT EXECUTED
 8002ec4:	34 02 00 01 	mvi r2,1                                       <== NOT EXECUTED
 8002ec8:	b9 80 18 00 	mv r3,r12                                      <== NOT EXECUTED
 8002ecc:	e0 00 00 0a 	bi 8002ef4 <_RTEMS_tasks_Initialize_user_tasks_body+0x8c><== NOT EXECUTED
                                                                      
    return_value = rtems_task_start(                                  
 8002ed0:	29 63 00 18 	lw r3,(r11+24)                                 
 8002ed4:	29 62 00 10 	lw r2,(r11+16)                                 
 8002ed8:	2b 81 00 18 	lw r1,(sp+24)                                  
 8002edc:	35 6b 00 1c 	addi r11,r11,28                                
 8002ee0:	f8 00 00 0f 	calli 8002f1c <rtems_task_start>               
 8002ee4:	b8 20 18 00 	mv r3,r1                                       
      id,                                                             
      user_tasks[ index ].entry_point,                                
      user_tasks[ index ].argument                                    
    );                                                                
    if ( !rtems_is_status_successful( return_value ) )                
 8002ee8:	44 2c 00 04 	be r1,r12,8002ef8 <_RTEMS_tasks_Initialize_user_tasks_body+0x90><== ALWAYS TAKEN
      _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value );
 8002eec:	34 01 00 01 	mvi r1,1                                       <== NOT EXECUTED
 8002ef0:	34 02 00 01 	mvi r2,1                                       <== NOT EXECUTED
 8002ef4:	f8 00 04 33 	calli 8003fc0 <_Internal_error_Occurred>       <== NOT EXECUTED
    return;                                                           
                                                                      
  /*                                                                  
   *  Now iterate over the initialization tasks and create/start them.
   */                                                                 
  for ( index=0 ; index < maximum ; index++ ) {                       
 8002ef8:	35 ad 00 01 	addi r13,r13,1                                 
 8002efc:	55 cd ff e8 	bgu r14,r13,8002e9c <_RTEMS_tasks_Initialize_user_tasks_body+0x34>
      user_tasks[ index ].argument                                    
    );                                                                
    if ( !rtems_is_status_successful( return_value ) )                
      _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value );
  }                                                                   
}                                                                     
 8002f00:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8002f04:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8002f08:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8002f0c:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8002f10:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8002f14:	37 9c 00 18 	addi sp,sp,24                                  
 8002f18:	c3 a0 00 00 	ret                                            
                                                                      

08008b34 <_RTEMS_tasks_Post_switch_extension>: */ void _RTEMS_tasks_Post_switch_extension( Thread_Control *executing ) {
 8008b34:	37 9c ff f0 	addi sp,sp,-16                                 
 8008b38:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8008b3c:	5b 8c 00 08 	sw (sp+8),r12                                  
 8008b40:	5b 9d 00 04 	sw (sp+4),ra                                   
  RTEMS_API_Control *api;                                             
  ASR_Information   *asr;                                             
  rtems_signal_set   signal_set;                                      
  Modes_Control      prev_mode;                                       
                                                                      
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
 8008b44:	28 2b 01 18 	lw r11,(r1+280)                                
  if ( !api )                                                         
 8008b48:	45 60 00 1a 	be r11,r0,8008bb0 <_RTEMS_tasks_Post_switch_extension+0x7c><== NEVER TAKEN
   *  Signal Processing                                               
   */                                                                 
                                                                      
  asr = &api->Signal;                                                 
                                                                      
  _ISR_Disable( level );                                              
 8008b4c:	90 00 08 00 	rcsr r1,IE                                     
 8008b50:	34 02 ff fe 	mvi r2,-2                                      
 8008b54:	a0 22 10 00 	and r2,r1,r2                                   
 8008b58:	d0 02 00 00 	wcsr IE,r2                                     
    signal_set = asr->signals_posted;                                 
 8008b5c:	29 6c 00 14 	lw r12,(r11+20)                                
    asr->signals_posted = 0;                                          
 8008b60:	59 60 00 14 	sw (r11+20),r0                                 
  _ISR_Enable( level );                                               
 8008b64:	d0 01 00 00 	wcsr IE,r1                                     
                                                                      
                                                                      
  if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ 
 8008b68:	45 80 00 12 	be r12,r0,8008bb0 <_RTEMS_tasks_Post_switch_extension+0x7c>
    return;                                                           
                                                                      
  asr->nest_level += 1;                                               
 8008b6c:	29 61 00 1c 	lw r1,(r11+28)                                 
  rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 
 8008b70:	37 83 00 10 	addi r3,sp,16                                  
 8008b74:	38 02 ff ff 	mvu r2,0xffff                                  
                                                                      
                                                                      
  if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ 
    return;                                                           
                                                                      
  asr->nest_level += 1;                                               
 8008b78:	34 21 00 01 	addi r1,r1,1                                   
 8008b7c:	59 61 00 1c 	sw (r11+28),r1                                 
  rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 
 8008b80:	29 61 00 10 	lw r1,(r11+16)                                 
 8008b84:	f8 00 08 79 	calli 800ad68 <rtems_task_mode>                
                                                                      
  (*asr->handler)( signal_set );                                      
 8008b88:	29 62 00 0c 	lw r2,(r11+12)                                 
 8008b8c:	b9 80 08 00 	mv r1,r12                                      
 8008b90:	d8 40 00 00 	call r2                                        
                                                                      
  asr->nest_level -= 1;                                               
 8008b94:	29 61 00 1c 	lw r1,(r11+28)                                 
  rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );     
 8008b98:	38 02 ff ff 	mvu r2,0xffff                                  
 8008b9c:	37 83 00 10 	addi r3,sp,16                                  
  asr->nest_level += 1;                                               
  rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 
                                                                      
  (*asr->handler)( signal_set );                                      
                                                                      
  asr->nest_level -= 1;                                               
 8008ba0:	34 21 ff ff 	addi r1,r1,-1                                  
 8008ba4:	59 61 00 1c 	sw (r11+28),r1                                 
  rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );     
 8008ba8:	2b 81 00 10 	lw r1,(sp+16)                                  
 8008bac:	f8 00 08 6f 	calli 800ad68 <rtems_task_mode>                
                                                                      
}                                                                     
 8008bb0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8008bb4:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8008bb8:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8008bbc:	37 9c 00 10 	addi sp,sp,16                                  
 8008bc0:	c3 a0 00 00 	ret                                            
                                                                      

08004634 <_Rate_monotonic_Timeout>: void _Rate_monotonic_Timeout( Objects_Id id, void *ignored ) {
 8004634:	37 9c ff f4 	addi sp,sp,-12                                 
 8004638:	5b 8b 00 08 	sw (sp+8),r11                                  
 800463c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8004640:	b8 20 10 00 	mv r2,r1                                       
 8004644:	78 01 08 01 	mvhi r1,0x801                                  
 8004648:	38 21 f8 78 	ori r1,r1,0xf878                               
 800464c:	37 83 00 0c 	addi r3,sp,12                                  
 8004650:	f8 00 08 be 	calli 8006948 <_Objects_Get>                   
  /*                                                                  
   *  When we get here, the Timer is already off the chain so we do not
   *  have to worry about that -- hence no _Watchdog_Remove().        
   */                                                                 
  the_period = _Rate_monotonic_Get( id, &location );                  
  switch ( location ) {                                               
 8004654:	2b 82 00 0c 	lw r2,(sp+12)                                  
 8004658:	b8 20 58 00 	mv r11,r1                                      
 800465c:	5c 40 00 22 	bne r2,r0,80046e4 <_Rate_monotonic_Timeout+0xb0><== NEVER TAKEN
                                                                      
    case OBJECTS_LOCAL:                                               
      the_thread = the_period->owner;                                 
 8004660:	28 21 00 40 	lw r1,(r1+64)                                  
 */                                                                   
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_period (             
  States_Control the_states                                           
)                                                                     
{                                                                     
   return (the_states & STATES_WAITING_FOR_PERIOD);                   
 8004664:	28 23 00 10 	lw r3,(r1+16)                                  
 8004668:	20 63 40 00 	andi r3,r3,0x4000                              
      if ( _States_Is_waiting_for_period( the_thread->current_state ) &&
 800466c:	44 62 00 09 	be r3,r2,8004690 <_Rate_monotonic_Timeout+0x5c>
 8004670:	28 23 00 20 	lw r3,(r1+32)                                  
 8004674:	29 62 00 08 	lw r2,(r11+8)                                  
 8004678:	5c 62 00 06 	bne r3,r2,8004690 <_Rate_monotonic_Timeout+0x5c>
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unblock (                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
  _Thread_Clear_state( the_thread, STATES_BLOCKED );                  
 800467c:	78 03 08 01 	mvhi r3,0x801                                  
 8004680:	38 63 d2 24 	ori r3,r3,0xd224                               
 8004684:	28 62 00 00 	lw r2,(r3+0)                                   
 8004688:	f8 00 0b b7 	calli 8007564 <_Thread_Clear_state>            
 800468c:	e0 00 00 06 	bi 80046a4 <_Rate_monotonic_Timeout+0x70>      
        _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 ) {
 8004690:	29 62 00 38 	lw r2,(r11+56)                                 
 8004694:	34 01 00 01 	mvi r1,1                                       
 8004698:	5c 41 00 0c 	bne r2,r1,80046c8 <_Rate_monotonic_Timeout+0x94>
        the_period->state = RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING;    
 800469c:	34 01 00 03 	mvi r1,3                                       
 80046a0:	59 61 00 38 	sw (r11+56),r1                                 
                                                                      
        _Rate_monotonic_Initiate_statistics( the_period );            
 80046a4:	b9 60 08 00 	mv r1,r11                                      
 80046a8:	fb ff fe 2e 	calli 8003f60 <_Rate_monotonic_Initiate_statistics>
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
 80046ac:	29 61 00 3c 	lw r1,(r11+60)                                 
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 80046b0:	35 62 00 10 	addi r2,r11,16                                 
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
 80046b4:	59 61 00 1c 	sw (r11+28),r1                                 
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 80046b8:	78 01 08 01 	mvhi r1,0x801                                  
 80046bc:	38 21 fa 60 	ori r1,r1,0xfa60                               
 80046c0:	f8 00 10 f6 	calli 8008a98 <_Watchdog_Insert>               
 80046c4:	e0 00 00 03 	bi 80046d0 <_Rate_monotonic_Timeout+0x9c>      
                                                                      
        _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length );
      } else                                                          
        the_period->state = RATE_MONOTONIC_EXPIRED;                   
 80046c8:	34 01 00 04 	mvi r1,4                                       
 80046cc:	59 61 00 38 	sw (r11+56),r1                                 
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )             
{                                                                     
  RTEMS_COMPILER_MEMORY_BARRIER();                                    
  _Thread_Dispatch_disable_level -= 1;                                
 80046d0:	78 01 08 01 	mvhi r1,0x801                                  
 80046d4:	38 21 f9 a0 	ori r1,r1,0xf9a0                               
 80046d8:	28 22 00 00 	lw r2,(r1+0)                                   
 80046dc:	34 42 ff ff 	addi r2,r2,-1                                  
 80046e0:	58 22 00 00 	sw (r1+0),r2                                   
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
}                                                                     
 80046e4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80046e8:	2b 8b 00 08 	lw r11,(sp+8)                                  
 80046ec:	37 9c 00 0c 	addi sp,sp,12                                  
 80046f0:	c3 a0 00 00 	ret                                            
                                                                      

08003ff4 <_Rate_monotonic_Update_statistics>: void _Rate_monotonic_Update_statistics( Rate_monotonic_Control *the_period ) {
 8003ff4:	37 9c ff e4 	addi sp,sp,-28                                 
 8003ff8:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8003ffc:	5b 8c 00 08 	sw (sp+8),r12                                  
 8004000:	5b 9d 00 04 	sw (sp+4),ra                                   
 8004004:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  /*                                                                  
   *  Update the counts.                                              
   */                                                                 
  stats = &the_period->Statistics;                                    
  stats->count++;                                                     
 8004008:	28 21 00 54 	lw r1,(r1+84)                                  
                                                                      
  if ( the_period->state == RATE_MONOTONIC_EXPIRED )                  
 800400c:	29 62 00 38 	lw r2,(r11+56)                                 
                                                                      
  /*                                                                  
   *  Update the counts.                                              
   */                                                                 
  stats = &the_period->Statistics;                                    
  stats->count++;                                                     
 8004010:	34 21 00 01 	addi r1,r1,1                                   
 8004014:	59 61 00 54 	sw (r11+84),r1                                 
                                                                      
  if ( the_period->state == RATE_MONOTONIC_EXPIRED )                  
 8004018:	34 01 00 04 	mvi r1,4                                       
 800401c:	5c 41 00 04 	bne r2,r1,800402c <_Rate_monotonic_Update_statistics+0x38>
    stats->missed_count++;                                            
 8004020:	29 61 00 58 	lw r1,(r11+88)                                 
 8004024:	34 21 00 01 	addi r1,r1,1                                   
 8004028:	59 61 00 58 	sw (r11+88),r1                                 
                                                                      
  /*                                                                  
   *  Grab status for time statistics.                                
   */                                                                 
  valid_status =                                                      
    _Rate_monotonic_Get_status( the_period, &since_last_period, &executed );
 800402c:	37 8c 00 18 	addi r12,sp,24                                 
    stats->missed_count++;                                            
                                                                      
  /*                                                                  
   *  Grab status for time statistics.                                
   */                                                                 
  valid_status =                                                      
 8004030:	b9 60 08 00 	mv r1,r11                                      
 8004034:	37 82 00 10 	addi r2,sp,16                                  
 8004038:	b9 80 18 00 	mv r3,r12                                      
 800403c:	fb ff ff 90 	calli 8003e7c <_Rate_monotonic_Get_status>     
    _Rate_monotonic_Get_status( the_period, &since_last_period, &executed );
  if (!valid_status)                                                  
 8004040:	44 20 00 28 	be r1,r0,80040e0 <_Rate_monotonic_Update_statistics+0xec><== NEVER TAKEN
                                                                      
  /*                                                                  
   *  Update CPU time                                                 
   */                                                                 
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    _Timestamp_Add_to( &stats->total_cpu_time, &executed );           
 8004044:	b9 80 10 00 	mv r2,r12                                      
 8004048:	35 61 00 6c 	addi r1,r11,108                                
 800404c:	f8 00 11 30 	calli 800850c <_Timespec_Add_to>               
                                                                      
    if ( _Timestamp_Less_than( &executed, &stats->min_cpu_time ) )    
 8004050:	b9 80 08 00 	mv r1,r12                                      
 8004054:	35 62 00 5c 	addi r2,r11,92                                 
 8004058:	f8 00 11 8b 	calli 8008684 <_Timespec_Less_than>            
 800405c:	44 20 00 05 	be r1,r0,8004070 <_Rate_monotonic_Update_statistics+0x7c>
      stats->min_cpu_time = executed;                                 
 8004060:	2b 81 00 18 	lw r1,(sp+24)                                  
 8004064:	59 61 00 5c 	sw (r11+92),r1                                 
 8004068:	2b 81 00 1c 	lw r1,(sp+28)                                  
 800406c:	59 61 00 60 	sw (r11+96),r1                                 
                                                                      
    if ( _Timestamp_Greater_than( &executed, &stats->max_cpu_time ) ) 
 8004070:	37 81 00 18 	addi r1,sp,24                                  
 8004074:	35 62 00 64 	addi r2,r11,100                                
 8004078:	f8 00 11 78 	calli 8008658 <_Timespec_Greater_than>         
 800407c:	44 20 00 05 	be r1,r0,8004090 <_Rate_monotonic_Update_statistics+0x9c>
      stats->max_cpu_time = executed;                                 
 8004080:	2b 81 00 18 	lw r1,(sp+24)                                  
 8004084:	59 61 00 64 	sw (r11+100),r1                                
 8004088:	2b 81 00 1c 	lw r1,(sp+28)                                  
 800408c:	59 61 00 68 	sw (r11+104),r1                                
                                                                      
  /*                                                                  
   *  Update Wall time                                                
   */                                                                 
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    _Timestamp_Add_to( &stats->total_wall_time, &since_last_period ); 
 8004090:	37 8c 00 10 	addi r12,sp,16                                 
 8004094:	b9 80 10 00 	mv r2,r12                                      
 8004098:	35 61 00 84 	addi r1,r11,132                                
 800409c:	f8 00 11 1c 	calli 800850c <_Timespec_Add_to>               
                                                                      
    if ( _Timestamp_Less_than( &since_last_period, &stats->min_wall_time ) )
 80040a0:	b9 80 08 00 	mv r1,r12                                      
 80040a4:	35 62 00 74 	addi r2,r11,116                                
 80040a8:	f8 00 11 77 	calli 8008684 <_Timespec_Less_than>            
 80040ac:	44 20 00 05 	be r1,r0,80040c0 <_Rate_monotonic_Update_statistics+0xcc>
      stats->min_wall_time = since_last_period;                       
 80040b0:	2b 81 00 10 	lw r1,(sp+16)                                  
 80040b4:	59 61 00 74 	sw (r11+116),r1                                
 80040b8:	2b 81 00 14 	lw r1,(sp+20)                                  
 80040bc:	59 61 00 78 	sw (r11+120),r1                                
                                                                      
    if ( _Timestamp_Greater_than( &since_last_period, &stats->max_wall_time ) )
 80040c0:	37 81 00 10 	addi r1,sp,16                                  
 80040c4:	35 62 00 7c 	addi r2,r11,124                                
 80040c8:	f8 00 11 64 	calli 8008658 <_Timespec_Greater_than>         
 80040cc:	44 20 00 05 	be r1,r0,80040e0 <_Rate_monotonic_Update_statistics+0xec>
      stats->max_wall_time = since_last_period;                       
 80040d0:	2b 81 00 10 	lw r1,(sp+16)                                  
 80040d4:	59 61 00 7c 	sw (r11+124),r1                                
 80040d8:	2b 81 00 14 	lw r1,(sp+20)                                  
 80040dc:	59 61 00 80 	sw (r11+128),r1                                
      stats->min_wall_time = since_last_period;                       
                                                                      
    if ( since_last_period > stats->max_wall_time )                   
      stats->max_wall_time = since_last_period;                       
  #endif                                                              
}                                                                     
 80040e0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80040e4:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 80040e8:	2b 8c 00 08 	lw r12,(sp+8)                                  
 80040ec:	37 9c 00 1c 	addi sp,sp,28                                  
 80040f0:	c3 a0 00 00 	ret                                            
                                                                      

08004b0c <_Scheduler_priority_Block>: #include <rtems/score/thread.h> void _Scheduler_priority_Block( Thread_Control *the_thread ) {
 8004b0c:	37 9c ff ec 	addi sp,sp,-20                                 
 8004b10:	5b 8b 00 14 	sw (sp+20),r11                                 
 8004b14:	5b 8c 00 10 	sw (sp+16),r12                                 
 8004b18:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8004b1c:	5b 8e 00 08 	sw (sp+8),r14                                  
 8004b20:	5b 9d 00 04 	sw (sp+4),ra                                   
 8004b24:	b8 20 60 00 	mv r12,r1                                      
)                                                                     
{                                                                     
  Scheduler_priority_Per_thread *sched_info;                          
  Chain_Control                 *ready;                               
                                                                      
  sched_info = (Scheduler_priority_Per_thread *) the_thread->scheduler_info;
 8004b28:	28 21 00 8c 	lw r1,(r1+140)                                 
  ready      = sched_info->ready_chain;                               
 8004b2c:	28 22 00 00 	lw r2,(r1+0)                                   
                                                                      
  if ( _Chain_Has_only_one_node( ready ) ) {                          
 8004b30:	28 44 00 00 	lw r4,(r2+0)                                   
 8004b34:	28 43 00 08 	lw r3,(r2+8)                                   
 8004b38:	5c 83 00 12 	bne r4,r3,8004b80 <_Scheduler_priority_Block+0x74>
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 );                        
 8004b3c:	34 43 00 04 	addi r3,r2,4                                   
                                                                      
  head->next = tail;                                                  
 8004b40:	58 43 00 00 	sw (r2+0),r3                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Priority_bit_map_Remove (                  
  Priority_bit_map_Information *the_priority_map                      
)                                                                     
{                                                                     
  *the_priority_map->minor &= the_priority_map->block_minor;          
 8004b44:	28 23 00 04 	lw r3,(r1+4)                                   
  head->previous = NULL;                                              
 8004b48:	58 40 00 04 	sw (r2+4),r0                                   
  tail->previous = head;                                              
 8004b4c:	58 42 00 08 	sw (r2+8),r2                                   
 8004b50:	2c 24 00 0e 	lhu r4,(r1+14)                                 
 8004b54:	2c 62 00 00 	lhu r2,(r3+0)                                  
 8004b58:	a0 44 10 00 	and r2,r2,r4                                   
 8004b5c:	0c 62 00 00 	sh (r3+0),r2                                   
  if ( *the_priority_map->minor == 0 )                                
 8004b60:	5c 40 00 0c 	bne r2,r0,8004b90 <_Scheduler_priority_Block+0x84>
    _Priority_Major_bit_map &= the_priority_map->block_major;         
 8004b64:	78 02 08 01 	mvhi r2,0x801                                  
 8004b68:	38 42 3a 48 	ori r2,r2,0x3a48                               
 8004b6c:	2c 43 00 00 	lhu r3,(r2+0)                                  
 8004b70:	2c 21 00 0c 	lhu r1,(r1+12)                                 
 8004b74:	a0 23 08 00 	and r1,r1,r3                                   
 8004b78:	0c 41 00 00 	sh (r2+0),r1                                   
 8004b7c:	e0 00 00 05 	bi 8004b90 <_Scheduler_priority_Block+0x84>    
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
 8004b80:	29 82 00 00 	lw r2,(r12+0)                                  
  previous       = the_node->previous;                                
 8004b84:	29 81 00 04 	lw r1,(r12+4)                                  
  next->previous = previous;                                          
 8004b88:	58 41 00 04 	sw (r2+4),r1                                   
  previous->next = next;                                              
 8004b8c:	58 22 00 00 	sw (r1+0),r2                                   
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_Is_heir (                           
  const Thread_Control *the_thread                                    
)                                                                     
{                                                                     
  return ( the_thread == _Thread_Heir );                              
 8004b90:	78 01 08 01 	mvhi r1,0x801                                  
 8004b94:	38 21 3a 28 	ori r1,r1,0x3a28                               
  _Scheduler_priority_Ready_queue_extract( the_thread );              
                                                                      
  /* TODO: flash critical section? */                                 
                                                                      
  if ( _Thread_Is_heir( the_thread ) )                                
 8004b98:	28 21 00 10 	lw r1,(r1+16)                                  
 8004b9c:	5d 81 00 3b 	bne r12,r1,8004c88 <_Scheduler_priority_Block+0x17c>
 *  @param[in] the_thread  - pointer to thread                        
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body(void)     
{                                                                     
  _Thread_Heir = _Scheduler_priority_Ready_queue_first(               
    (Chain_Control *) _Scheduler.information                          
 8004ba0:	78 01 08 01 	mvhi r1,0x801                                  
RTEMS_INLINE_ROUTINE Priority_Control _Priority_bit_map_Get_highest( void )
{                                                                     
  Priority_bit_map_Control minor;                                     
  Priority_bit_map_Control major;                                     
                                                                      
  _Bitfield_Find_first_bit( _Priority_Major_bit_map, major );         
 8004ba4:	78 02 08 01 	mvhi r2,0x801                                  
 8004ba8:	38 21 30 1c 	ori r1,r1,0x301c                               
 8004bac:	38 42 3a 48 	ori r2,r2,0x3a48                               
 *                                                                    
 *  @param[in] the_thread  - pointer to thread                        
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body(void)     
{                                                                     
  _Thread_Heir = _Scheduler_priority_Ready_queue_first(               
 8004bb0:	28 2e 00 00 	lw r14,(r1+0)                                  
 8004bb4:	2c 41 00 00 	lhu r1,(r2+0)                                  
 8004bb8:	78 0b 08 01 	mvhi r11,0x801                                 
 8004bbc:	34 02 00 ff 	mvi r2,255                                     
 8004bc0:	20 21 ff ff 	andi r1,r1,0xffff                              
 8004bc4:	39 6b 1c 84 	ori r11,r11,0x1c84                             
 8004bc8:	54 22 00 05 	bgu r1,r2,8004bdc <_Scheduler_priority_Block+0xd0>
 8004bcc:	b5 61 58 00 	add r11,r11,r1                                 
 8004bd0:	41 6d 00 00 	lbu r13,(r11+0)                                
 8004bd4:	35 ad 00 08 	addi r13,r13,8                                 
 8004bd8:	e0 00 00 05 	bi 8004bec <_Scheduler_priority_Block+0xe0>    
 8004bdc:	34 02 00 08 	mvi r2,8                                       
 8004be0:	f8 00 2f 78 	calli 80109c0 <__lshrsi3>                      
 8004be4:	b5 61 58 00 	add r11,r11,r1                                 
 8004be8:	41 6d 00 00 	lbu r13,(r11+0)                                
  _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );        
 8004bec:	34 02 00 01 	mvi r2,1                                       
 8004bf0:	78 0b 08 01 	mvhi r11,0x801                                 
 8004bf4:	b9 a0 08 00 	mv r1,r13                                      
 8004bf8:	f8 00 2f 24 	calli 8010888 <__ashlsi3>                      
 8004bfc:	39 6b 3a 50 	ori r11,r11,0x3a50                             
 8004c00:	b5 61 58 00 	add r11,r11,r1                                 
 8004c04:	2d 62 00 00 	lhu r2,(r11+0)                                 
 8004c08:	34 01 00 ff 	mvi r1,255                                     
 8004c0c:	78 0b 08 01 	mvhi r11,0x801                                 
 8004c10:	39 6b 1c 84 	ori r11,r11,0x1c84                             
 8004c14:	54 41 00 05 	bgu r2,r1,8004c28 <_Scheduler_priority_Block+0x11c>
 8004c18:	b5 62 58 00 	add r11,r11,r2                                 
 8004c1c:	41 6b 00 00 	lbu r11,(r11+0)                                
 8004c20:	35 6b 00 08 	addi r11,r11,8                                 
 8004c24:	e0 00 00 06 	bi 8004c3c <_Scheduler_priority_Block+0x130>   
 8004c28:	b8 40 08 00 	mv r1,r2                                       
 8004c2c:	34 02 00 08 	mvi r2,8                                       
 8004c30:	f8 00 2f 64 	calli 80109c0 <__lshrsi3>                      
 8004c34:	b5 61 58 00 	add r11,r11,r1                                 
 8004c38:	41 6b 00 00 	lbu r11,(r11+0)                                
                                                                      
  return (_Priority_Bits_index( major ) << 4) +                       
 8004c3c:	34 02 00 04 	mvi r2,4                                       
 8004c40:	b9 a0 08 00 	mv r1,r13                                      
 8004c44:	f8 00 2f 11 	calli 8010888 <__ashlsi3>                      
 8004c48:	b5 61 58 00 	add r11,r11,r1                                 
  Chain_Control       *the_ready_queue                                
)                                                                     
{                                                                     
  Priority_Control index = _Priority_bit_map_Get_highest();           
                                                                      
  if ( !_Chain_Is_empty( &the_ready_queue[ index ] ) )                
 8004c4c:	34 02 00 01 	mvi r2,1                                       
 8004c50:	b9 60 08 00 	mv r1,r11                                      
 8004c54:	f8 00 2f 0d 	calli 8010888 <__ashlsi3>                      
 8004c58:	34 02 00 02 	mvi r2,2                                       
 8004c5c:	b4 2b 08 00 	add r1,r1,r11                                  
 8004c60:	f8 00 2f 0a 	calli 8010888 <__ashlsi3>                      
 8004c64:	b5 c1 08 00 	add r1,r14,r1                                  
     _Scheduler_priority_Schedule_body();                             
                                                                      
  if ( _Thread_Is_executing( the_thread ) )                           
    _Thread_Dispatch_necessary = true;                                
                                                                      
}                                                                     
 8004c68:	28 23 00 00 	lw r3,(r1+0)                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
 8004c6c:	34 21 00 04 	addi r1,r1,4                                   
    return (Thread_Control *) _Chain_First( &the_ready_queue[ index ] );
                                                                      
  return NULL;                                                        
 8004c70:	34 02 00 00 	mvi r2,0                                       
  Chain_Control       *the_ready_queue                                
)                                                                     
{                                                                     
  Priority_Control index = _Priority_bit_map_Get_highest();           
                                                                      
  if ( !_Chain_Is_empty( &the_ready_queue[ index ] ) )                
 8004c74:	44 61 00 02 	be r3,r1,8004c7c <_Scheduler_priority_Block+0x170><== NEVER TAKEN
    return (Thread_Control *) _Chain_First( &the_ready_queue[ index ] );
 8004c78:	b8 60 10 00 	mv r2,r3                                       
 *                                                                    
 *  @param[in] the_thread  - pointer to thread                        
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body(void)     
{                                                                     
  _Thread_Heir = _Scheduler_priority_Ready_queue_first(               
 8004c7c:	78 01 08 01 	mvhi r1,0x801                                  
 8004c80:	38 21 3a 28 	ori r1,r1,0x3a28                               
 8004c84:	58 22 00 10 	sw (r1+16),r2                                  
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing (                      
  const Thread_Control *the_thread                                    
)                                                                     
{                                                                     
  return ( the_thread == _Thread_Executing );                         
 8004c88:	78 01 08 01 	mvhi r1,0x801                                  
 8004c8c:	38 21 3a 28 	ori r1,r1,0x3a28                               
  /* TODO: flash critical section? */                                 
                                                                      
  if ( _Thread_Is_heir( the_thread ) )                                
     _Scheduler_priority_Schedule_body();                             
                                                                      
  if ( _Thread_Is_executing( the_thread ) )                           
 8004c90:	28 22 00 0c 	lw r2,(r1+12)                                  
 8004c94:	5d 82 00 03 	bne r12,r2,8004ca0 <_Scheduler_priority_Block+0x194>
    _Thread_Dispatch_necessary = true;                                
 8004c98:	34 02 00 01 	mvi r2,1                                       
 8004c9c:	30 22 00 18 	sb (r1+24),r2                                  
                                                                      
}                                                                     
 8004ca0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004ca4:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8004ca8:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8004cac:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8004cb0:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8004cb4:	37 9c 00 14 	addi sp,sp,20                                  
 8004cb8:	c3 a0 00 00 	ret                                            
                                                                      

08004e90 <_Scheduler_priority_Schedule>: #include <rtems/system.h> #include <rtems/score/scheduler.h> #include <rtems/score/schedulerpriority.h> void _Scheduler_priority_Schedule(void) {
 8004e90:	37 9c ff f0 	addi sp,sp,-16                                 
 8004e94:	5b 8b 00 10 	sw (sp+16),r11                                 
 8004e98:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8004e9c:	5b 8d 00 08 	sw (sp+8),r13                                  
 8004ea0:	5b 9d 00 04 	sw (sp+4),ra                                   
 *  @param[in] the_thread  - pointer to thread                        
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body(void)     
{                                                                     
  _Thread_Heir = _Scheduler_priority_Ready_queue_first(               
    (Chain_Control *) _Scheduler.information                          
 8004ea4:	78 01 08 01 	mvhi r1,0x801                                  
RTEMS_INLINE_ROUTINE Priority_Control _Priority_bit_map_Get_highest( void )
{                                                                     
  Priority_bit_map_Control minor;                                     
  Priority_bit_map_Control major;                                     
                                                                      
  _Bitfield_Find_first_bit( _Priority_Major_bit_map, major );         
 8004ea8:	78 02 08 01 	mvhi r2,0x801                                  
 8004eac:	38 21 30 1c 	ori r1,r1,0x301c                               
 8004eb0:	38 42 3a 48 	ori r2,r2,0x3a48                               
 *                                                                    
 *  @param[in] the_thread  - pointer to thread                        
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body(void)     
{                                                                     
  _Thread_Heir = _Scheduler_priority_Ready_queue_first(               
 8004eb4:	28 2d 00 00 	lw r13,(r1+0)                                  
 8004eb8:	2c 41 00 00 	lhu r1,(r2+0)                                  
 8004ebc:	78 0b 08 01 	mvhi r11,0x801                                 
 8004ec0:	34 02 00 ff 	mvi r2,255                                     
 8004ec4:	20 21 ff ff 	andi r1,r1,0xffff                              
 8004ec8:	39 6b 1c 84 	ori r11,r11,0x1c84                             
 8004ecc:	54 22 00 05 	bgu r1,r2,8004ee0 <_Scheduler_priority_Schedule+0x50>
 8004ed0:	b5 61 58 00 	add r11,r11,r1                                 
 8004ed4:	41 6c 00 00 	lbu r12,(r11+0)                                
 8004ed8:	35 8c 00 08 	addi r12,r12,8                                 
 8004edc:	e0 00 00 05 	bi 8004ef0 <_Scheduler_priority_Schedule+0x60> 
 8004ee0:	34 02 00 08 	mvi r2,8                                       
 8004ee4:	f8 00 2e b7 	calli 80109c0 <__lshrsi3>                      
 8004ee8:	b5 61 58 00 	add r11,r11,r1                                 
 8004eec:	41 6c 00 00 	lbu r12,(r11+0)                                
  _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );        
 8004ef0:	34 02 00 01 	mvi r2,1                                       
 8004ef4:	78 0b 08 01 	mvhi r11,0x801                                 
 8004ef8:	b9 80 08 00 	mv r1,r12                                      
 8004efc:	f8 00 2e 63 	calli 8010888 <__ashlsi3>                      
 8004f00:	39 6b 3a 50 	ori r11,r11,0x3a50                             
 8004f04:	b5 61 58 00 	add r11,r11,r1                                 
 8004f08:	2d 62 00 00 	lhu r2,(r11+0)                                 
 8004f0c:	34 01 00 ff 	mvi r1,255                                     
 8004f10:	78 0b 08 01 	mvhi r11,0x801                                 
 8004f14:	39 6b 1c 84 	ori r11,r11,0x1c84                             
 8004f18:	54 41 00 05 	bgu r2,r1,8004f2c <_Scheduler_priority_Schedule+0x9c>
 8004f1c:	b5 62 58 00 	add r11,r11,r2                                 
 8004f20:	41 6b 00 00 	lbu r11,(r11+0)                                
 8004f24:	35 6b 00 08 	addi r11,r11,8                                 
 8004f28:	e0 00 00 06 	bi 8004f40 <_Scheduler_priority_Schedule+0xb0> 
 8004f2c:	b8 40 08 00 	mv r1,r2                                       
 8004f30:	34 02 00 08 	mvi r2,8                                       
 8004f34:	f8 00 2e a3 	calli 80109c0 <__lshrsi3>                      
 8004f38:	b5 61 58 00 	add r11,r11,r1                                 
 8004f3c:	41 6b 00 00 	lbu r11,(r11+0)                                
                                                                      
  return (_Priority_Bits_index( major ) << 4) +                       
 8004f40:	34 02 00 04 	mvi r2,4                                       
 8004f44:	b9 80 08 00 	mv r1,r12                                      
 8004f48:	f8 00 2e 50 	calli 8010888 <__ashlsi3>                      
 8004f4c:	b5 61 58 00 	add r11,r11,r1                                 
  Chain_Control       *the_ready_queue                                
)                                                                     
{                                                                     
  Priority_Control index = _Priority_bit_map_Get_highest();           
                                                                      
  if ( !_Chain_Is_empty( &the_ready_queue[ index ] ) )                
 8004f50:	34 02 00 01 	mvi r2,1                                       
 8004f54:	b9 60 08 00 	mv r1,r11                                      
 8004f58:	f8 00 2e 4c 	calli 8010888 <__ashlsi3>                      
 8004f5c:	34 02 00 02 	mvi r2,2                                       
 8004f60:	b4 2b 08 00 	add r1,r1,r11                                  
 8004f64:	f8 00 2e 49 	calli 8010888 <__ashlsi3>                      
 8004f68:	b5 a1 08 00 	add r1,r13,r1                                  
  _Scheduler_priority_Schedule_body();                                
}                                                                     
 8004f6c:	28 23 00 00 	lw r3,(r1+0)                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
 8004f70:	34 21 00 04 	addi r1,r1,4                                   
    return (Thread_Control *) _Chain_First( &the_ready_queue[ index ] );
                                                                      
  return NULL;                                                        
 8004f74:	34 02 00 00 	mvi r2,0                                       
  Chain_Control       *the_ready_queue                                
)                                                                     
{                                                                     
  Priority_Control index = _Priority_bit_map_Get_highest();           
                                                                      
  if ( !_Chain_Is_empty( &the_ready_queue[ index ] ) )                
 8004f78:	44 61 00 02 	be r3,r1,8004f80 <_Scheduler_priority_Schedule+0xf0><== NEVER TAKEN
    return (Thread_Control *) _Chain_First( &the_ready_queue[ index ] );
 8004f7c:	b8 60 10 00 	mv r2,r3                                       
 *                                                                    
 *  @param[in] the_thread  - pointer to thread                        
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body(void)     
{                                                                     
  _Thread_Heir = _Scheduler_priority_Ready_queue_first(               
 8004f80:	78 01 08 01 	mvhi r1,0x801                                  
 8004f84:	38 21 3a 28 	ori r1,r1,0x3a28                               
 8004f88:	58 22 00 10 	sw (r1+16),r2                                  
 8004f8c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004f90:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8004f94:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8004f98:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8004f9c:	37 9c 00 10 	addi sp,sp,16                                  
 8004fa0:	c3 a0 00 00 	ret                                            
                                                                      

080050f8 <_Scheduler_priority_Yield>: Scheduler_priority_Per_thread *sched_info; ISR_Level level; Thread_Control *executing; Chain_Control *ready; executing = _Thread_Executing;
 80050f8:	78 01 08 01 	mvhi r1,0x801                                  
 80050fc:	38 21 3a 28 	ori r1,r1,0x3a28                               
 8005100:	28 21 00 0c 	lw r1,(r1+12)                                  
  sched_info = (Scheduler_priority_Per_thread *) executing->scheduler_info;
  ready      = sched_info->ready_chain;                               
 8005104:	28 22 00 8c 	lw r2,(r1+140)                                 
 8005108:	28 42 00 00 	lw r2,(r2+0)                                   
  _ISR_Disable( level );                                              
 800510c:	90 00 20 00 	rcsr r4,IE                                     
 8005110:	34 05 ff fe 	mvi r5,-2                                      
 8005114:	a0 85 28 00 	and r5,r4,r5                                   
 8005118:	d0 05 00 00 	wcsr IE,r5                                     
    if ( !_Chain_Has_only_one_node( ready ) ) {                       
 800511c:	28 47 00 00 	lw r7,(r2+0)                                   
 8005120:	28 46 00 08 	lw r6,(r2+8)                                   
 8005124:	78 03 08 01 	mvhi r3,0x801                                  
 8005128:	38 63 3a 28 	ori r3,r3,0x3a28                               
 800512c:	44 e6 00 16 	be r7,r6,8005184 <_Scheduler_priority_Yield+0x8c>
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
 8005130:	28 27 00 00 	lw r7,(r1+0)                                   
  previous       = the_node->previous;                                
 8005134:	28 26 00 04 	lw r6,(r1+4)                                   
  next->previous = previous;                                          
 8005138:	58 e6 00 04 	sw (r7+4),r6                                   
  previous->next = next;                                              
 800513c:	58 c7 00 00 	sw (r6+0),r7                                   
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
 8005140:	28 46 00 08 	lw r6,(r2+8)                                   
RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected(                  
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
 8005144:	34 47 00 04 	addi r7,r2,4                                   
  Chain_Node *old_last = tail->previous;                              
                                                                      
  the_node->next = tail;                                              
  tail->previous = the_node;                                          
 8005148:	58 41 00 08 	sw (r2+8),r1                                   
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
                                                                      
  the_node->next = tail;                                              
 800514c:	58 27 00 00 	sw (r1+0),r7                                   
  tail->previous = the_node;                                          
  old_last->next = the_node;                                          
 8005150:	58 c1 00 00 	sw (r6+0),r1                                   
  the_node->previous = old_last;                                      
 8005154:	58 26 00 04 	sw (r1+4),r6                                   
      _Chain_Extract_unprotected( &executing->Object.Node );          
      _Chain_Append_unprotected( ready, &executing->Object.Node );    
                                                                      
      _ISR_Flash( level );                                            
 8005158:	d0 04 00 00 	wcsr IE,r4                                     
 800515c:	d0 05 00 00 	wcsr IE,r5                                     
                                                                      
      if ( _Thread_Is_heir( executing ) )                             
 8005160:	28 65 00 10 	lw r5,(r3+16)                                  
 8005164:	5c 25 00 03 	bne r1,r5,8005170 <_Scheduler_priority_Yield+0x78><== NEVER TAKEN
        _Thread_Heir = (Thread_Control *) _Chain_First( ready );      
 8005168:	28 41 00 00 	lw r1,(r2+0)                                   
 800516c:	58 61 00 10 	sw (r3+16),r1                                  
      _Thread_Dispatch_necessary = true;                              
 8005170:	78 01 08 01 	mvhi r1,0x801                                  
 8005174:	38 21 3a 28 	ori r1,r1,0x3a28                               
 8005178:	34 02 00 01 	mvi r2,1                                       
 800517c:	30 22 00 18 	sb (r1+24),r2                                  
 8005180:	e0 00 00 05 	bi 8005194 <_Scheduler_priority_Yield+0x9c>    
    }                                                                 
    else if ( !_Thread_Is_heir( executing ) )                         
 8005184:	28 62 00 10 	lw r2,(r3+16)                                  
 8005188:	44 22 00 03 	be r1,r2,8005194 <_Scheduler_priority_Yield+0x9c><== ALWAYS TAKEN
      _Thread_Dispatch_necessary = true;                              
 800518c:	34 01 00 01 	mvi r1,1                                       <== NOT EXECUTED
 8005190:	30 61 00 18 	sb (r3+24),r1                                  <== NOT EXECUTED
                                                                      
  _ISR_Enable( level );                                               
 8005194:	d0 04 00 00 	wcsr IE,r4                                     
}                                                                     
 8005198:	c3 a0 00 00 	ret                                            
                                                                      

08004290 <_TOD_Validate>: */ bool _TOD_Validate( const rtems_time_of_day *the_tod ) {
 8004290:	37 9c ff f0 	addi sp,sp,-16                                 
 8004294:	5b 8b 00 10 	sw (sp+16),r11                                 
 8004298:	5b 8c 00 0c 	sw (sp+12),r12                                 
 800429c:	5b 8d 00 08 	sw (sp+8),r13                                  
 80042a0:	5b 9d 00 04 	sw (sp+4),ra                                   
 80042a4:	b8 20 58 00 	mv r11,r1                                      
  uint32_t   days_in_month;                                           
  uint32_t   ticks_per_second;                                        
                                                                      
  ticks_per_second = TOD_MICROSECONDS_PER_SECOND /                    
	    rtems_configuration_get_microseconds_per_tick();                 
 80042a8:	78 01 08 01 	mvhi r1,0x801                                  
 80042ac:	38 21 f0 f4 	ori r1,r1,0xf0f4                               
 80042b0:	28 22 00 0c 	lw r2,(r1+12)                                  
      (the_tod->hour   >= TOD_HOURS_PER_DAY)      ||                  
      (the_tod->month  == 0)                      ||                  
      (the_tod->month  >  TOD_MONTHS_PER_YEAR)    ||                  
      (the_tod->year   <  TOD_BASE_YEAR)          ||                  
      (the_tod->day    == 0) )                                        
     return false;                                                    
 80042b4:	34 0c 00 00 	mvi r12,0                                      
  uint32_t   days_in_month;                                           
  uint32_t   ticks_per_second;                                        
                                                                      
  ticks_per_second = TOD_MICROSECONDS_PER_SECOND /                    
	    rtems_configuration_get_microseconds_per_tick();                 
  if ((!the_tod)                                  ||                  
 80042b8:	45 60 00 22 	be r11,r0,8004340 <_TOD_Validate+0xb0>         <== NEVER TAKEN
)                                                                     
{                                                                     
  uint32_t   days_in_month;                                           
  uint32_t   ticks_per_second;                                        
                                                                      
  ticks_per_second = TOD_MICROSECONDS_PER_SECOND /                    
 80042bc:	78 03 08 01 	mvhi r3,0x801                                  
 80042c0:	38 63 cf b4 	ori r3,r3,0xcfb4                               
 80042c4:	28 61 00 00 	lw r1,(r3+0)                                   
 80042c8:	f8 00 5f 03 	calli 801bed4 <__udivsi3>                      
	    rtems_configuration_get_microseconds_per_tick();                 
  if ((!the_tod)                                  ||                  
 80042cc:	29 62 00 18 	lw r2,(r11+24)                                 
 80042d0:	50 41 00 1c 	bgeu r2,r1,8004340 <_TOD_Validate+0xb0>        
      (the_tod->ticks  >= ticks_per_second)       ||                  
 80042d4:	29 62 00 14 	lw r2,(r11+20)                                 
 80042d8:	34 01 00 3b 	mvi r1,59                                      
 80042dc:	54 41 00 19 	bgu r2,r1,8004340 <_TOD_Validate+0xb0>         
      (the_tod->second >= TOD_SECONDS_PER_MINUTE) ||                  
 80042e0:	29 62 00 10 	lw r2,(r11+16)                                 
 80042e4:	54 41 00 17 	bgu r2,r1,8004340 <_TOD_Validate+0xb0>         
      (the_tod->minute >= TOD_MINUTES_PER_HOUR)   ||                  
 80042e8:	29 62 00 0c 	lw r2,(r11+12)                                 
 80042ec:	34 01 00 17 	mvi r1,23                                      
 80042f0:	54 41 00 14 	bgu r2,r1,8004340 <_TOD_Validate+0xb0>         
      (the_tod->hour   >= TOD_HOURS_PER_DAY)      ||                  
      (the_tod->month  == 0)                      ||                  
 80042f4:	29 61 00 04 	lw r1,(r11+4)                                  
	    rtems_configuration_get_microseconds_per_tick();                 
  if ((!the_tod)                                  ||                  
      (the_tod->ticks  >= ticks_per_second)       ||                  
      (the_tod->second >= TOD_SECONDS_PER_MINUTE) ||                  
      (the_tod->minute >= TOD_MINUTES_PER_HOUR)   ||                  
      (the_tod->hour   >= TOD_HOURS_PER_DAY)      ||                  
 80042f8:	44 20 00 12 	be r1,r0,8004340 <_TOD_Validate+0xb0>          <== NEVER TAKEN
      (the_tod->month  == 0)                      ||                  
 80042fc:	34 02 00 0c 	mvi r2,12                                      
 8004300:	54 22 00 10 	bgu r1,r2,8004340 <_TOD_Validate+0xb0>         
      (the_tod->month  >  TOD_MONTHS_PER_YEAR)    ||                  
      (the_tod->year   <  TOD_BASE_YEAR)          ||                  
 8004304:	29 62 00 00 	lw r2,(r11+0)                                  
      (the_tod->ticks  >= ticks_per_second)       ||                  
      (the_tod->second >= TOD_SECONDS_PER_MINUTE) ||                  
      (the_tod->minute >= TOD_MINUTES_PER_HOUR)   ||                  
      (the_tod->hour   >= TOD_HOURS_PER_DAY)      ||                  
      (the_tod->month  == 0)                      ||                  
      (the_tod->month  >  TOD_MONTHS_PER_YEAR)    ||                  
 8004308:	34 03 07 c3 	mvi r3,1987                                    
 800430c:	50 62 00 0d 	bgeu r3,r2,8004340 <_TOD_Validate+0xb0>        
      (the_tod->year   <  TOD_BASE_YEAR)          ||                  
      (the_tod->day    == 0) )                                        
 8004310:	29 6d 00 08 	lw r13,(r11+8)                                 
      (the_tod->second >= TOD_SECONDS_PER_MINUTE) ||                  
      (the_tod->minute >= TOD_MINUTES_PER_HOUR)   ||                  
      (the_tod->hour   >= TOD_HOURS_PER_DAY)      ||                  
      (the_tod->month  == 0)                      ||                  
      (the_tod->month  >  TOD_MONTHS_PER_YEAR)    ||                  
      (the_tod->year   <  TOD_BASE_YEAR)          ||                  
 8004314:	45 a0 00 0b 	be r13,r0,8004340 <_TOD_Validate+0xb0>         <== NEVER TAKEN
 8004318:	78 0b 08 01 	mvhi r11,0x801                                 
      (the_tod->day    == 0) )                                        
     return false;                                                    
                                                                      
  if ( (the_tod->year % 4) == 0 )                                     
 800431c:	20 42 00 03 	andi r2,r2,0x3                                 
 8004320:	39 6b d8 6c 	ori r11,r11,0xd86c                             
 8004324:	5c 40 00 02 	bne r2,r0,800432c <_TOD_Validate+0x9c>         
    days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ];       
 8004328:	34 21 00 0d 	addi r1,r1,13                                  
  else                                                                
    days_in_month = _TOD_Days_per_month[ 0 ][ the_tod->month ];       
 800432c:	34 02 00 02 	mvi r2,2                                       
 8004330:	fb ff f3 dc 	calli 80012a0 <__ashlsi3>                      
 8004334:	b5 61 08 00 	add r1,r11,r1                                  
 8004338:	28 2c 00 00 	lw r12,(r1+0)                                  
 *    false - if the the_tod is invalid                               
 *                                                                    
 *  NOTE: This routine only works for leap-years through 2099.        
 */                                                                   
                                                                      
bool _TOD_Validate(                                                   
 800433c:	f1 8d 60 00 	cmpgeu r12,r12,r13                             
                                                                      
  if ( the_tod->day > days_in_month )                                 
    return false;                                                     
                                                                      
  return true;                                                        
}                                                                     
 8004340:	b9 80 08 00 	mv r1,r12                                      
 8004344:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004348:	2b 8b 00 10 	lw r11,(sp+16)                                 
 800434c:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8004350:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8004354:	37 9c 00 10 	addi sp,sp,16                                  
 8004358:	c3 a0 00 00 	ret                                            
                                                                      

0800519c <_Thread_Change_priority>: void _Thread_Change_priority( Thread_Control *the_thread, Priority_Control new_priority, bool prepend_it ) {
 800519c:	37 9c ff e8 	addi sp,sp,-24                                 
 80051a0:	5b 8b 00 18 	sw (sp+24),r11                                 
 80051a4:	5b 8c 00 14 	sw (sp+20),r12                                 
 80051a8:	5b 8d 00 10 	sw (sp+16),r13                                 
 80051ac:	5b 8e 00 0c 	sw (sp+12),r14                                 
 80051b0:	5b 8f 00 08 	sw (sp+8),r15                                  
 80051b4:	5b 9d 00 04 	sw (sp+4),ra                                   
 80051b8:	b8 20 58 00 	mv r11,r1                                      
  States_Control state, original_state;                               
                                                                      
  /*                                                                  
   * Save original state                                              
   */                                                                 
  original_state = the_thread->current_state;                         
 80051bc:	28 2f 00 10 	lw r15,(r1+16)                                 
void _Thread_Change_priority(                                         
  Thread_Control   *the_thread,                                       
  Priority_Control  new_priority,                                     
  bool              prepend_it                                        
)                                                                     
{                                                                     
 80051c0:	b8 40 60 00 	mv r12,r2                                      
 80051c4:	20 6e 00 ff 	andi r14,r3,0xff                               
  /*                                                                  
   * Set a transient state for the thread so it is pulled off the Ready chains.
   * This will prevent it from being scheduled no matter what happens in an
   * ISR.                                                             
   */                                                                 
  _Thread_Set_transient( the_thread );                                
 80051c8:	f8 00 03 c0 	calli 80060c8 <_Thread_Set_transient>          
                                                                      
  /*                                                                  
   *  Do not bother recomputing all the priority related information if
   *  we are not REALLY changing priority.                            
   */                                                                 
 if ( the_thread->current_priority != new_priority )                  
 80051cc:	29 61 00 14 	lw r1,(r11+20)                                 
 80051d0:	44 2c 00 04 	be r1,r12,80051e0 <_Thread_Change_priority+0x44>
    _Thread_Set_priority( the_thread, new_priority );                 
 80051d4:	b9 60 08 00 	mv r1,r11                                      
 80051d8:	b9 80 10 00 	mv r2,r12                                      
 80051dc:	f8 00 03 9a 	calli 8006044 <_Thread_Set_priority>           
                                                                      
  _ISR_Disable( level );                                              
 80051e0:	90 00 60 00 	rcsr r12,IE                                    
 80051e4:	34 0d ff fe 	mvi r13,-2                                     
 80051e8:	a1 8d 68 00 	and r13,r12,r13                                
 80051ec:	d0 0d 00 00 	wcsr IE,r13                                    
                                                                      
  /*                                                                  
   *  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;                                  
 80051f0:	29 61 00 10 	lw r1,(r11+16)                                 
  if ( state != STATES_TRANSIENT ) {                                  
 80051f4:	34 03 00 04 	mvi r3,4                                       
 80051f8:	21 e2 00 04 	andi r2,r15,0x4                                
 80051fc:	44 23 00 0f 	be r1,r3,8005238 <_Thread_Change_priority+0x9c>
    /* Only clear the transient state if it wasn't set already */     
    if ( ! _States_Is_transient( original_state ) )                   
 8005200:	5c 40 00 04 	bne r2,r0,8005210 <_Thread_Change_priority+0x74><== NEVER TAKEN
RTEMS_INLINE_ROUTINE States_Control _States_Clear (                   
  States_Control states_to_clear,                                     
  States_Control current_state                                        
)                                                                     
{                                                                     
   return (current_state & ~states_to_clear);                         
 8005204:	34 02 ff fb 	mvi r2,-5                                      
 8005208:	a0 22 10 00 	and r2,r1,r2                                   
      the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
 800520c:	59 62 00 10 	sw (r11+16),r2                                 
    _ISR_Enable( level );                                             
 8005210:	d0 0c 00 00 	wcsr IE,r12                                    
 */                                                                   
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_on_thread_queue (        
  States_Control the_states                                           
)                                                                     
{                                                                     
   return (the_states & STATES_WAITING_ON_THREAD_QUEUE);              
 8005214:	78 03 08 01 	mvhi r3,0x801                                  
 8005218:	38 63 1d ec 	ori r3,r3,0x1dec                               
 800521c:	28 62 00 00 	lw r2,(r3+0)                                   
 8005220:	a0 22 08 00 	and r1,r1,r2                                   
    if ( _States_Is_waiting_on_thread_queue( state ) ) {              
 8005224:	44 20 00 1f 	be r1,r0,80052a0 <_Thread_Change_priority+0x104>
      _Thread_queue_Requeue( the_thread->Wait.queue, the_thread );    
 8005228:	29 61 00 44 	lw r1,(r11+68)                                 
 800522c:	b9 60 10 00 	mv r2,r11                                      
 8005230:	f8 00 03 50 	calli 8005f70 <_Thread_queue_Requeue>          
 8005234:	e0 00 00 1b 	bi 80052a0 <_Thread_Change_priority+0x104>     
    }                                                                 
    return;                                                           
  }                                                                   
                                                                      
  /* Only clear the transient state if it wasn't set already */       
  if ( ! _States_Is_transient( original_state ) ) {                   
 8005238:	5c 40 00 0a 	bne r2,r0,8005260 <_Thread_Change_priority+0xc4><== NEVER TAKEN
 800523c:	78 01 08 01 	mvhi r1,0x801                                  
     *  Interrupts are STILL disabled.                                
     *  We now know the thread will be in the READY state when we remove
     *  the TRANSIENT state.  So we have to place it on the appropriate
     *  Ready Queue with interrupts off.                              
     */                                                               
    the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
 8005240:	59 60 00 10 	sw (r11+16),r0                                 
 8005244:	38 21 30 1c 	ori r1,r1,0x301c                               
                                                                      
    if ( prepend_it )                                                 
 8005248:	45 c2 00 03 	be r14,r2,8005254 <_Thread_Change_priority+0xb8>
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_Enqueue_first(                   
  Thread_Control    *the_thread                                       
)                                                                     
{                                                                     
  _Scheduler.Operations.enqueue_first( the_thread );                  
 800524c:	28 22 00 28 	lw r2,(r1+40)                                  
 8005250:	e0 00 00 02 	bi 8005258 <_Thread_Change_priority+0xbc>      
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_Enqueue(                         
  Thread_Control    *the_thread                                       
)                                                                     
{                                                                     
  _Scheduler.Operations.enqueue( the_thread );                        
 8005254:	28 22 00 24 	lw r2,(r1+36)                                  
 8005258:	b9 60 08 00 	mv r1,r11                                      
 800525c:	d8 40 00 00 	call r2                                        
      _Scheduler_Enqueue_first( the_thread );                         
    else                                                              
      _Scheduler_Enqueue( the_thread );                               
  }                                                                   
                                                                      
  _ISR_Flash( level );                                                
 8005260:	d0 0c 00 00 	wcsr IE,r12                                    
 8005264:	d0 0d 00 00 	wcsr IE,r13                                    
 *  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();                                   
 8005268:	78 01 08 01 	mvhi r1,0x801                                  
 800526c:	38 21 30 1c 	ori r1,r1,0x301c                               
 8005270:	28 21 00 08 	lw r1,(r1+8)                                   
 8005274:	d8 20 00 00 	call r1                                        
 *  is also the heir thread, and false otherwise.                     
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing_also_the_heir( void )  
{                                                                     
  return ( _Thread_Executing == _Thread_Heir );                       
 8005278:	78 01 08 01 	mvhi r1,0x801                                  
 800527c:	38 21 3a 28 	ori r1,r1,0x3a28                               
 8005280:	28 22 00 0c 	lw r2,(r1+12)                                  
   *  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() &&                       
 8005284:	28 23 00 10 	lw r3,(r1+16)                                  
 8005288:	44 43 00 05 	be r2,r3,800529c <_Thread_Change_priority+0x100>
 800528c:	40 42 00 74 	lbu r2,(r2+116)                                
 8005290:	44 40 00 03 	be r2,r0,800529c <_Thread_Change_priority+0x100>
       _Thread_Executing->is_preemptible )                            
    _Thread_Dispatch_necessary = true;                                
 8005294:	34 02 00 01 	mvi r2,1                                       
 8005298:	30 22 00 18 	sb (r1+24),r2                                  
  _ISR_Enable( level );                                               
 800529c:	d0 0c 00 00 	wcsr IE,r12                                    
}                                                                     
 80052a0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80052a4:	2b 8b 00 18 	lw r11,(sp+24)                                 
 80052a8:	2b 8c 00 14 	lw r12,(sp+20)                                 
 80052ac:	2b 8d 00 10 	lw r13,(sp+16)                                 
 80052b0:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 80052b4:	2b 8f 00 08 	lw r15,(sp+8)                                  
 80052b8:	37 9c 00 18 	addi sp,sp,24                                  
 80052bc:	c3 a0 00 00 	ret                                            
                                                                      

0800bf34 <_Thread_Delay_ended>: void _Thread_Delay_ended( Objects_Id id, void *ignored __attribute__((unused)) ) {
 800bf34:	37 9c ff f8 	addi sp,sp,-8                                  
 800bf38:	5b 9d 00 04 	sw (sp+4),ra                                   
  Thread_Control    *the_thread;                                      
  Objects_Locations  location;                                        
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 800bf3c:	37 82 00 08 	addi r2,sp,8                                   
 800bf40:	f8 00 00 7c 	calli 800c130 <_Thread_Get>                    
  switch ( location ) {                                               
 800bf44:	2b 82 00 08 	lw r2,(sp+8)                                   
 800bf48:	5c 40 00 0a 	bne r2,r0,800bf70 <_Thread_Delay_ended+0x3c>   <== NEVER TAKEN
#if defined(RTEMS_MULTIPROCESSING)                                    
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
      break;                                                          
    case OBJECTS_LOCAL:                                               
      _Thread_Clear_state(                                            
 800bf4c:	78 03 08 02 	mvhi r3,0x802                                  
 800bf50:	38 63 5d 40 	ori r3,r3,0x5d40                               
 800bf54:	28 62 00 00 	lw r2,(r3+0)                                   
 800bf58:	fb ff ff 6f 	calli 800bd14 <_Thread_Clear_state>            
 800bf5c:	78 01 08 02 	mvhi r1,0x802                                  
 800bf60:	38 21 8a 08 	ori r1,r1,0x8a08                               
 800bf64:	28 22 00 00 	lw r2,(r1+0)                                   
 800bf68:	34 42 ff ff 	addi r2,r2,-1                                  
 800bf6c:	58 22 00 00 	sw (r1+0),r2                                   
          | STATES_INTERRUPTIBLE_BY_SIGNAL                            
      );                                                              
      _Thread_Unnest_dispatch();                                      
      break;                                                          
  }                                                                   
}                                                                     
 800bf70:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800bf74:	37 9c 00 08 	addi sp,sp,8                                   
 800bf78:	c3 a0 00 00 	ret                                            
                                                                      

08005484 <_Thread_Dispatch>: * dispatch thread * no dispatch thread */ void _Thread_Dispatch( void ) {
 8005484:	37 9c ff c0 	addi sp,sp,-64                                 
 8005488:	5b 8b 00 30 	sw (sp+48),r11                                 
 800548c:	5b 8c 00 2c 	sw (sp+44),r12                                 
 8005490:	5b 8d 00 28 	sw (sp+40),r13                                 
 8005494:	5b 8e 00 24 	sw (sp+36),r14                                 
 8005498:	5b 8f 00 20 	sw (sp+32),r15                                 
 800549c:	5b 90 00 1c 	sw (sp+28),r16                                 
 80054a0:	5b 91 00 18 	sw (sp+24),r17                                 
 80054a4:	5b 92 00 14 	sw (sp+20),r18                                 
 80054a8:	5b 93 00 10 	sw (sp+16),r19                                 
 80054ac:	5b 94 00 0c 	sw (sp+12),r20                                 
 80054b0:	5b 95 00 08 	sw (sp+8),r21                                  
 80054b4:	5b 9d 00 04 	sw (sp+4),ra                                   
  Thread_Control   *executing;                                        
  Thread_Control   *heir;                                             
  ISR_Level         level;                                            
                                                                      
  executing   = _Thread_Executing;                                    
 80054b8:	78 01 08 01 	mvhi r1,0x801                                  
 80054bc:	38 21 3a 28 	ori r1,r1,0x3a28                               
 80054c0:	28 2d 00 0c 	lw r13,(r1+12)                                 
  _ISR_Disable( level );                                              
 80054c4:	90 00 20 00 	rcsr r4,IE                                     
 80054c8:	34 01 ff fe 	mvi r1,-2                                      
 80054cc:	a0 81 08 00 	and r1,r4,r1                                   
 80054d0:	d0 01 00 00 	wcsr IE,r1                                     
  while ( _Thread_Dispatch_necessary == true ) {                      
 80054d4:	78 0c 08 01 	mvhi r12,0x801                                 
    heir = _Thread_Heir;                                              
    _Thread_Dispatch_disable_level = 1;                               
 80054d8:	78 11 08 01 	mvhi r17,0x801                                 
#if __RTEMS_ADA__                                                     
    executing->rtems_ada_self = rtems_ada_self;                       
    rtems_ada_self = heir->rtems_ada_self;                            
#endif                                                                
    if ( heir->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE )
      heir->cpu_time_budget = _Thread_Ticks_per_timeslice;            
 80054dc:	78 0f 08 01 	mvhi r15,0x801                                 
                                                                      
    #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                        
      {                                                               
        Timestamp_Control uptime, ran;                                
        _TOD_Get_uptime( &uptime );                                   
        _Timestamp_Subtract(                                          
 80054e0:	78 0e 08 01 	mvhi r14,0x801                                 
    #endif                                                            
                                                                      
    /*                                                                
     * Switch libc's task specific data.                              
     */                                                               
    if ( _Thread_libc_reent ) {                                       
 80054e4:	78 10 08 01 	mvhi r16,0x801                                 
  Thread_Control   *heir;                                             
  ISR_Level         level;                                            
                                                                      
  executing   = _Thread_Executing;                                    
  _ISR_Disable( level );                                              
  while ( _Thread_Dispatch_necessary == true ) {                      
 80054e8:	39 8c 3a 28 	ori r12,r12,0x3a28                             
    heir = _Thread_Heir;                                              
    _Thread_Dispatch_disable_level = 1;                               
 80054ec:	3a 31 38 88 	ori r17,r17,0x3888                             
 80054f0:	34 14 00 01 	mvi r20,1                                      
#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;            
 80054f4:	39 ef 38 20 	ori r15,r15,0x3820                             
    _ISR_Enable( level );                                             
                                                                      
    #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                        
      {                                                               
        Timestamp_Control uptime, ran;                                
        _TOD_Get_uptime( &uptime );                                   
 80054f8:	37 93 00 3c 	addi r19,sp,60                                 
        _Timestamp_Subtract(                                          
 80054fc:	39 ce 39 34 	ori r14,r14,0x3934                             
 8005500:	37 92 00 34 	addi r18,sp,52                                 
    #endif                                                            
                                                                      
    /*                                                                
     * Switch libc's task specific data.                              
     */                                                               
    if ( _Thread_libc_reent ) {                                       
 8005504:	3a 10 39 0c 	ori r16,r16,0x390c                             
#endif                                                                
#endif                                                                
                                                                      
    executing = _Thread_Executing;                                    
                                                                      
    _ISR_Disable( level );                                            
 8005508:	34 15 ff fe 	mvi r21,-2                                     
  Thread_Control   *heir;                                             
  ISR_Level         level;                                            
                                                                      
  executing   = _Thread_Executing;                                    
  _ISR_Disable( level );                                              
  while ( _Thread_Dispatch_necessary == true ) {                      
 800550c:	e0 00 00 28 	bi 80055ac <_Thread_Dispatch+0x128>            
    heir = _Thread_Heir;                                              
 8005510:	29 8b 00 10 	lw r11,(r12+16)                                
    _Thread_Dispatch_disable_level = 1;                               
 8005514:	5a 34 00 00 	sw (r17+0),r20                                 
    _Thread_Dispatch_necessary = false;                               
 8005518:	31 80 00 18 	sb (r12+24),r0                                 
    _Thread_Executing = heir;                                         
 800551c:	59 8b 00 0c 	sw (r12+12),r11                                
    /*                                                                
     *  When the heir and executing are the same, then we are being   
     *  requested to do the post switch dispatching.  This is normally
     *  done to dispatch signals.                                     
     */                                                               
    if ( heir == executing )                                          
 8005520:	45 6d 00 26 	be r11,r13,80055b8 <_Thread_Dispatch+0x134>    
     */                                                               
#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 )
 8005524:	29 61 00 7c 	lw r1,(r11+124)                                
 8005528:	5c 34 00 03 	bne r1,r20,8005534 <_Thread_Dispatch+0xb0>     
      heir->cpu_time_budget = _Thread_Ticks_per_timeslice;            
 800552c:	29 e1 00 00 	lw r1,(r15+0)                                  
 8005530:	59 61 00 78 	sw (r11+120),r1                                
                                                                      
    _ISR_Enable( level );                                             
 8005534:	d0 04 00 00 	wcsr IE,r4                                     
                                                                      
    #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                        
      {                                                               
        Timestamp_Control uptime, ran;                                
        _TOD_Get_uptime( &uptime );                                   
 8005538:	ba 60 08 00 	mv r1,r19                                      
 800553c:	f8 00 0e ac 	calli 8008fec <_TOD_Get_uptime>                
        _Timestamp_Subtract(                                          
 8005540:	b9 c0 08 00 	mv r1,r14                                      
 8005544:	ba 60 10 00 	mv r2,r19                                      
 8005548:	ba 40 18 00 	mv r3,r18                                      
 800554c:	f8 00 03 7d 	calli 8006340 <_Timespec_Subtract>             
          &_Thread_Time_of_last_context_switch,                       
          &uptime,                                                    
          &ran                                                        
        );                                                            
        _Timestamp_Add_to( &executing->cpu_time_used, &ran );         
 8005550:	35 a1 00 84 	addi r1,r13,132                                
 8005554:	ba 40 10 00 	mv r2,r18                                      
 8005558:	f8 00 03 61 	calli 80062dc <_Timespec_Add_to>               
        _Thread_Time_of_last_context_switch = uptime;                 
 800555c:	2b 81 00 3c 	lw r1,(sp+60)                                  
    #endif                                                            
                                                                      
    /*                                                                
     * Switch libc's task specific data.                              
     */                                                               
    if ( _Thread_libc_reent ) {                                       
 8005560:	2a 04 00 00 	lw r4,(r16+0)                                  
          &_Thread_Time_of_last_context_switch,                       
          &uptime,                                                    
          &ran                                                        
        );                                                            
        _Timestamp_Add_to( &executing->cpu_time_used, &ran );         
        _Thread_Time_of_last_context_switch = uptime;                 
 8005564:	59 c1 00 00 	sw (r14+0),r1                                  
 8005568:	2b 81 00 40 	lw r1,(sp+64)                                  
 800556c:	59 c1 00 04 	sw (r14+4),r1                                  
    #endif                                                            
                                                                      
    /*                                                                
     * Switch libc's task specific data.                              
     */                                                               
    if ( _Thread_libc_reent ) {                                       
 8005570:	44 80 00 05 	be r4,r0,8005584 <_Thread_Dispatch+0x100>      <== NEVER TAKEN
      executing->libc_reent = *_Thread_libc_reent;                    
 8005574:	28 81 00 00 	lw r1,(r4+0)                                   
 8005578:	59 a1 01 14 	sw (r13+276),r1                                
      *_Thread_libc_reent = heir->libc_reent;                         
 800557c:	29 61 01 14 	lw r1,(r11+276)                                
 8005580:	58 81 00 00 	sw (r4+0),r1                                   
    }                                                                 
                                                                      
    _User_extensions_Thread_switch( executing, heir );                
 8005584:	b9 a0 08 00 	mv r1,r13                                      
 8005588:	b9 60 10 00 	mv r2,r11                                      
 800558c:	f8 00 04 68 	calli 800672c <_User_extensions_Thread_switch> 
    if ( executing->fp_context != NULL )                              
      _Context_Save_fp( &executing->fp_context );                     
#endif                                                                
#endif                                                                
                                                                      
    _Context_Switch( &executing->Registers, &heir->Registers );       
 8005590:	35 a1 00 c0 	addi r1,r13,192                                
 8005594:	35 62 00 c0 	addi r2,r11,192                                
 8005598:	f8 00 05 7c 	calli 8006b88 <_CPU_Context_switch>            
    if ( executing->fp_context != NULL )                              
      _Context_Restore_fp( &executing->fp_context );                  
#endif                                                                
#endif                                                                
                                                                      
    executing = _Thread_Executing;                                    
 800559c:	29 8d 00 0c 	lw r13,(r12+12)                                
                                                                      
    _ISR_Disable( level );                                            
 80055a0:	90 00 20 00 	rcsr r4,IE                                     
 80055a4:	a0 95 08 00 	and r1,r4,r21                                  
 80055a8:	d0 01 00 00 	wcsr IE,r1                                     
  Thread_Control   *heir;                                             
  ISR_Level         level;                                            
                                                                      
  executing   = _Thread_Executing;                                    
  _ISR_Disable( level );                                              
  while ( _Thread_Dispatch_necessary == true ) {                      
 80055ac:	41 81 00 18 	lbu r1,(r12+24)                                
 80055b0:	20 21 00 ff 	andi r1,r1,0xff                                
 80055b4:	5c 20 ff d7 	bne r1,r0,8005510 <_Thread_Dispatch+0x8c>      
                                                                      
    _ISR_Disable( level );                                            
  }                                                                   
                                                                      
post_switch:                                                          
  _Thread_Dispatch_disable_level = 0;                                 
 80055b8:	78 01 08 01 	mvhi r1,0x801                                  
 80055bc:	38 21 38 88 	ori r1,r1,0x3888                               
 80055c0:	58 20 00 00 	sw (r1+0),r0                                   
                                                                      
  _ISR_Enable( level );                                               
 80055c4:	d0 04 00 00 	wcsr IE,r4                                     
                                                                      
  _API_extensions_Run_postswitch();                                   
 80055c8:	fb ff f7 60 	calli 8003348 <_API_extensions_Run_postswitch> 
}                                                                     
 80055cc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80055d0:	2b 8b 00 30 	lw r11,(sp+48)                                 
 80055d4:	2b 8c 00 2c 	lw r12,(sp+44)                                 
 80055d8:	2b 8d 00 28 	lw r13,(sp+40)                                 
 80055dc:	2b 8e 00 24 	lw r14,(sp+36)                                 
 80055e0:	2b 8f 00 20 	lw r15,(sp+32)                                 
 80055e4:	2b 90 00 1c 	lw r16,(sp+28)                                 
 80055e8:	2b 91 00 18 	lw r17,(sp+24)                                 
 80055ec:	2b 92 00 14 	lw r18,(sp+20)                                 
 80055f0:	2b 93 00 10 	lw r19,(sp+16)                                 
 80055f4:	2b 94 00 0c 	lw r20,(sp+12)                                 
 80055f8:	2b 95 00 08 	lw r21,(sp+8)                                  
 80055fc:	37 9c 00 40 	addi sp,sp,64                                  
 8005600:	c3 a0 00 00 	ret                                            
                                                                      

0800b1f0 <_Thread_Handler>: * * Output parameters: NONE */ void _Thread_Handler( void ) {
 800b1f0:	37 9c ff f4 	addi sp,sp,-12                                 
 800b1f4:	5b 8b 00 0c 	sw (sp+12),r11                                 
 800b1f8:	5b 8c 00 08 	sw (sp+8),r12                                  
 800b1fc:	5b 9d 00 04 	sw (sp+4),ra                                   
  #if defined(EXECUTE_GLOBAL_CONSTRUCTORS)                            
    static char doneConstructors;                                     
    char doneCons;                                                    
  #endif                                                              
                                                                      
  executing = _Thread_Executing;                                      
 800b200:	78 01 08 01 	mvhi r1,0x801                                  
 800b204:	38 21 3a 28 	ori r1,r1,0x3a28                               
 800b208:	28 2b 00 0c 	lw r11,(r1+12)                                 
  /*                                                                  
   * have to put level into a register for those cpu's that use       
   * inline asm here                                                  
   */                                                                 
                                                                      
  level = executing->Start.isr_level;                                 
 800b20c:	29 61 00 ac 	lw r1,(r11+172)                                
  _ISR_Set_level(level);                                              
 800b210:	64 21 00 00 	cmpei r1,r1,0                                  
 800b214:	d0 01 00 00 	wcsr IE,r1                                     
                                                                      
  #if defined(EXECUTE_GLOBAL_CONSTRUCTORS)                            
    doneCons = doneConstructors;                                      
 800b218:	78 01 08 01 	mvhi r1,0x801                                  
 800b21c:	38 21 36 a0 	ori r1,r1,0x36a0                               
 800b220:	40 2c 00 00 	lbu r12,(r1+0)                                 
    doneConstructors = 1;                                             
 800b224:	34 02 00 01 	mvi r2,1                                       
 800b228:	30 22 00 00 	sb (r1+0),r2                                   
  /*                                                                  
   * 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 );                         
 800b22c:	b9 60 08 00 	mv r1,r11                                      
 800b230:	fb ff ec 97 	calli 800648c <_User_extensions_Thread_begin>  
                                                                      
  /*                                                                  
   *  At this point, the dispatch disable level BETTER be 1.          
   */                                                                 
  _Thread_Enable_dispatch();                                          
 800b234:	fb ff e8 f4 	calli 8005604 <_Thread_Enable_dispatch>        
    /*                                                                
     *  _init could be a weak symbol and we SHOULD test it but it isn't
     *  in any configuration I know of and it generates a warning on every
     *  RTEMS target configuration.  --joel (12 May 2007)             
     */                                                               
    if (!doneCons) /* && (volatile void *)_init) */ {                 
 800b238:	5d 80 00 02 	bne r12,r0,800b240 <_Thread_Handler+0x50>      
      INIT_NAME ();                                                   
 800b23c:	fb ff d3 71 	calli 8000000 <RamBase>                        
    }                                                                 
  #endif                                                              
                                                                      
  if ( executing->Start.prototype == THREAD_START_NUMERIC ) {         
 800b240:	29 61 00 94 	lw r1,(r11+148)                                
 800b244:	5c 20 00 05 	bne r1,r0,800b258 <_Thread_Handler+0x68>       <== NEVER TAKEN
    executing->Wait.return_argument =                                 
      (*(Thread_Entry_numeric) executing->Start.entry_point)(         
 800b248:	29 62 00 90 	lw r2,(r11+144)                                
 800b24c:	29 61 00 9c 	lw r1,(r11+156)                                
 800b250:	d8 40 00 00 	call r2                                        
      INIT_NAME ();                                                   
    }                                                                 
  #endif                                                              
                                                                      
  if ( executing->Start.prototype == THREAD_START_NUMERIC ) {         
    executing->Wait.return_argument =                                 
 800b254:	59 61 00 28 	sw (r11+40),r1                                 
   *  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 );                       
 800b258:	b9 60 08 00 	mv r1,r11                                      
 800b25c:	fb ff ec a4 	calli 80064ec <_User_extensions_Thread_exitted>
                                                                      
  _Internal_error_Occurred(                                           
 800b260:	34 01 00 00 	mvi r1,0                                       
 800b264:	34 02 00 01 	mvi r2,1                                       
 800b268:	34 03 00 05 	mvi r3,5                                       
 800b26c:	fb ff e3 55 	calli 8003fc0 <_Internal_error_Occurred>       
                                                                      

080096d4 <_Thread_queue_Enqueue_fifo>: ) { Thread_blocking_operation_States sync_state; ISR_Level level; _ISR_Disable( level );
 80096d4:	90 00 20 00 	rcsr r4,IE                                     
 80096d8:	34 05 ff fe 	mvi r5,-2                                      
 80096dc:	a0 85 28 00 	and r5,r4,r5                                   
 80096e0:	d0 05 00 00 	wcsr IE,r5                                     
                                                                      
    sync_state = the_thread_queue->sync_state;                        
 80096e4:	28 25 00 30 	lw r5,(r1+48)                                  
    the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
    if (sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) {   
 80096e8:	34 06 00 01 	mvi r6,1                                       
  ISR_Level                        level;                             
                                                                      
  _ISR_Disable( level );                                              
                                                                      
    sync_state = the_thread_queue->sync_state;                        
    the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
 80096ec:	58 20 00 30 	sw (r1+48),r0                                  
    if (sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) {   
 80096f0:	5c a6 00 0a 	bne r5,r6,8009718 <_Thread_queue_Enqueue_fifo+0x44><== NEVER TAKEN
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
 80096f4:	28 23 00 08 	lw r3,(r1+8)                                   
RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected(                  
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
 80096f8:	34 26 00 04 	addi r6,r1,4                                   
  Chain_Node *old_last = tail->previous;                              
                                                                      
  the_node->next = tail;                                              
 80096fc:	58 46 00 00 	sw (r2+0),r6                                   
  tail->previous = the_node;                                          
 8009700:	58 22 00 08 	sw (r1+8),r2                                   
  old_last->next = the_node;                                          
 8009704:	58 62 00 00 	sw (r3+0),r2                                   
  the_node->previous = old_last;                                      
 8009708:	58 43 00 04 	sw (r2+4),r3                                   
      _Chain_Append_unprotected(                                      
        &the_thread_queue->Queues.Fifo,                               
        &the_thread->Object.Node                                      
      );                                                              
      the_thread->Wait.queue = the_thread_queue;                      
 800970c:	58 41 00 44 	sw (r2+68),r1                                  
                                                                      
      the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
      _ISR_Enable( level );                                           
 8009710:	d0 04 00 00 	wcsr IE,r4                                     
      return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;              
 8009714:	e0 00 00 02 	bi 800971c <_Thread_queue_Enqueue_fifo+0x48>   
   *  For example, the blocking thread could have been given          
   *  the mutex by an ISR or timed out.                               
   *                                                                  
   *  WARNING! Returning with interrupts disabled!                    
   */                                                                 
  *level_p = level;                                                   
 8009718:	58 64 00 00 	sw (r3+0),r4                                   <== NOT EXECUTED
  return sync_state;                                                  
}                                                                     
 800971c:	b8 a0 08 00 	mv r1,r5                                       
 8009720:	c3 a0 00 00 	ret                                            
                                                                      

08005c24 <_Thread_queue_Enqueue_priority>: Thread_blocking_operation_States _Thread_queue_Enqueue_priority ( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread, ISR_Level *level_p ) {
 8005c24:	37 9c ff cc 	addi sp,sp,-52                                 
 8005c28:	5b 8b 00 34 	sw (sp+52),r11                                 
 8005c2c:	5b 8c 00 30 	sw (sp+48),r12                                 
 8005c30:	5b 8d 00 2c 	sw (sp+44),r13                                 
 8005c34:	5b 8e 00 28 	sw (sp+40),r14                                 
 8005c38:	5b 8f 00 24 	sw (sp+36),r15                                 
 8005c3c:	5b 90 00 20 	sw (sp+32),r16                                 
 8005c40:	5b 91 00 1c 	sw (sp+28),r17                                 
 8005c44:	5b 92 00 18 	sw (sp+24),r18                                 
 8005c48:	5b 93 00 14 	sw (sp+20),r19                                 
 8005c4c:	5b 94 00 10 	sw (sp+16),r20                                 
 8005c50:	5b 95 00 0c 	sw (sp+12),r21                                 
 8005c54:	5b 96 00 08 	sw (sp+8),r22                                  
 8005c58:	5b 9d 00 04 	sw (sp+4),ra                                   
  Priority_Control     priority;                                      
  States_Control       block_state;                                   
                                                                      
  _Chain_Initialize_empty( &the_thread->Wait.Block2n );               
                                                                      
  priority     = the_thread->current_priority;                        
 8005c5c:	28 50 00 14 	lw r16,(r2+20)                                 
Thread_blocking_operation_States _Thread_queue_Enqueue_priority (     
  Thread_queue_Control *the_thread_queue,                             
  Thread_Control       *the_thread,                                   
  ISR_Level            *level_p                                       
)                                                                     
{                                                                     
 8005c60:	b8 20 68 00 	mv r13,r1                                      
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 );                        
 8005c64:	34 41 00 3c 	addi r1,r2,60                                  
                                                                      
  head->next = tail;                                                  
 8005c68:	58 41 00 38 	sw (r2+56),r1                                  
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
 8005c6c:	34 41 00 38 	addi r1,r2,56                                  
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
  tail->previous = head;                                              
 8005c70:	58 41 00 40 	sw (r2+64),r1                                  
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
 8005c74:	58 40 00 3c 	sw (r2+60),r0                                  
 8005c78:	b8 40 60 00 	mv r12,r2                                      
                                                                      
RTEMS_INLINE_ROUTINE uint32_t   _Thread_queue_Header_number (         
  Priority_Control the_priority                                       
)                                                                     
{                                                                     
  return (the_priority / TASK_QUEUE_DATA_PRIORITIES_PER_HEADER);      
 8005c7c:	ba 00 08 00 	mv r1,r16                                      
 8005c80:	34 02 00 06 	mvi r2,6                                       
 8005c84:	b8 60 a8 00 	mv r21,r3                                      
 8005c88:	f8 00 2b 4e 	calli 80109c0 <__lshrsi3>                      
 8005c8c:	b8 20 70 00 	mv r14,r1                                      
  the_thread->Wait.queue = the_thread_queue;                          
  _ISR_Enable( level );                                               
  return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;                  
                                                                      
restart_reverse_search:                                               
  search_priority     = PRIORITY_MAXIMUM + 1;                         
 8005c90:	78 12 08 01 	mvhi r18,0x801                                 
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_queue_Is_reverse_search (           
  Priority_Control the_priority                                       
)                                                                     
{                                                                     
  return ( the_priority & TASK_QUEUE_DATA_REVERSE_SEARCH_MASK );      
 8005c94:	22 01 00 20 	andi r1,r16,0x20                               
  _Chain_Initialize_empty( &the_thread->Wait.Block2n );               
                                                                      
  priority     = the_thread->current_priority;                        
  header_index = _Thread_queue_Header_number( priority );             
  header       = &the_thread_queue->Queues.Priority[ header_index ];  
  block_state  = the_thread_queue->state;                             
 8005c98:	29 b3 00 38 	lw r19,(r13+56)                                
  the_thread->Wait.queue = the_thread_queue;                          
  _ISR_Enable( level );                                               
  return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;                  
                                                                      
restart_reverse_search:                                               
  search_priority     = PRIORITY_MAXIMUM + 1;                         
 8005c9c:	3a 52 30 f0 	ori r18,r18,0x30f0                             
                                                                      
  _ISR_Disable( level );                                              
 8005ca0:	34 16 ff fe 	mvi r22,-2                                     
  priority     = the_thread->current_priority;                        
  header_index = _Thread_queue_Header_number( priority );             
  header       = &the_thread_queue->Queues.Priority[ header_index ];  
  block_state  = the_thread_queue->state;                             
                                                                      
  if ( _Thread_queue_Is_reverse_search( priority ) )                  
 8005ca4:	5c 20 00 30 	bne r1,r0,8005d64 <_Thread_queue_Enqueue_priority+0x140>
    goto restart_reverse_search;                                      
                                                                      
restart_forward_search:                                               
  search_priority = PRIORITY_MINIMUM - 1;                             
  _ISR_Disable( level );                                              
 8005ca8:	34 14 ff fe 	mvi r20,-2                                     
 8005cac:	90 00 78 00 	rcsr r15,IE                                    
 8005cb0:	a1 f4 90 00 	and r18,r15,r20                                
 8005cb4:	d0 12 00 00 	wcsr IE,r18                                    
   *                                                                  
   *  WARNING! Returning with interrupts disabled!                    
   */                                                                 
  *level_p = level;                                                   
  return the_thread_queue->sync_state;                                
}                                                                     
 8005cb8:	34 02 00 01 	mvi r2,1                                       
 8005cbc:	b9 c0 08 00 	mv r1,r14                                      
 8005cc0:	f8 00 2a f2 	calli 8010888 <__ashlsi3>                      
 8005cc4:	b4 2e 08 00 	add r1,r1,r14                                  
 8005cc8:	34 02 00 02 	mvi r2,2                                       
 8005ccc:	f8 00 2a ef 	calli 8010888 <__ashlsi3>                      
 8005cd0:	b5 a1 08 00 	add r1,r13,r1                                  
    goto restart_reverse_search;                                      
                                                                      
restart_forward_search:                                               
  search_priority = PRIORITY_MINIMUM - 1;                             
  _ISR_Disable( level );                                              
  search_thread = (Thread_Control *) _Chain_First( header );          
 8005cd4:	28 2b 00 00 	lw r11,(r1+0)                                  
                                                                      
  if ( _Thread_queue_Is_reverse_search( priority ) )                  
    goto restart_reverse_search;                                      
                                                                      
restart_forward_search:                                               
  search_priority = PRIORITY_MINIMUM - 1;                             
 8005cd8:	34 11 ff ff 	mvi r17,-1                                     
  _ISR_Disable( level );                                              
  search_thread = (Thread_Control *) _Chain_First( header );          
  while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) {  
 8005cdc:	e0 00 00 0b 	bi 8005d08 <_Thread_queue_Enqueue_priority+0xe4>
    search_priority = search_thread->current_priority;                
 8005ce0:	29 71 00 14 	lw r17,(r11+20)                                
    if ( priority <= search_priority )                                
 8005ce4:	52 30 00 12 	bgeu r17,r16,8005d2c <_Thread_queue_Enqueue_priority+0x108>
      break;                                                          
    search_priority = search_thread->current_priority;                
    if ( priority <= search_priority )                                
      break;                                                          
#endif                                                                
    _ISR_Flash( level );                                              
 8005ce8:	d0 0f 00 00 	wcsr IE,r15                                    
 8005cec:	d0 12 00 00 	wcsr IE,r18                                    
RTEMS_INLINE_ROUTINE bool _States_Are_set (                           
  States_Control the_states,                                          
  States_Control mask                                                 
)                                                                     
{                                                                     
   return ( (the_states & mask) != STATES_READY);                     
 8005cf0:	29 61 00 10 	lw r1,(r11+16)                                 
 8005cf4:	a2 61 08 00 	and r1,r19,r1                                  
    if ( !_States_Are_set( search_thread->current_state, block_state) ) {
 8005cf8:	5c 20 00 03 	bne r1,r0,8005d04 <_Thread_queue_Enqueue_priority+0xe0><== ALWAYS TAKEN
      _ISR_Enable( level );                                           
 8005cfc:	d0 0f 00 00 	wcsr IE,r15                                    <== NOT EXECUTED
      goto restart_forward_search;                                    
 8005d00:	e3 ff ff eb 	bi 8005cac <_Thread_queue_Enqueue_priority+0x88><== NOT EXECUTED
    }                                                                 
    search_thread =                                                   
       (Thread_Control *)search_thread->Object.Node.next;             
 8005d04:	29 6b 00 00 	lw r11,(r11+0)                                 
RTEMS_INLINE_ROUTINE bool _Chain_Is_tail(                             
  Chain_Control *the_chain,                                           
  const Chain_Node    *the_node                                       
)                                                                     
{                                                                     
  return (the_node == _Chain_Tail(the_chain));                        
 8005d08:	34 02 00 01 	mvi r2,1                                       
 8005d0c:	b9 c0 08 00 	mv r1,r14                                      
 8005d10:	f8 00 2a de 	calli 8010888 <__ashlsi3>                      
 8005d14:	b4 2e 08 00 	add r1,r1,r14                                  
 8005d18:	34 02 00 02 	mvi r2,2                                       
 8005d1c:	f8 00 2a db 	calli 8010888 <__ashlsi3>                      
 8005d20:	b5 a1 08 00 	add r1,r13,r1                                  
 8005d24:	34 21 00 04 	addi r1,r1,4                                   
                                                                      
restart_forward_search:                                               
  search_priority = PRIORITY_MINIMUM - 1;                             
  _ISR_Disable( level );                                              
  search_thread = (Thread_Control *) _Chain_First( header );          
  while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) {  
 8005d28:	5d 61 ff ee 	bne r11,r1,8005ce0 <_Thread_queue_Enqueue_priority+0xbc>
    }                                                                 
    search_thread =                                                   
       (Thread_Control *)search_thread->Object.Node.next;             
  }                                                                   
                                                                      
  if ( the_thread_queue->sync_state !=                                
 8005d2c:	29 a3 00 30 	lw r3,(r13+48)                                 
 8005d30:	34 02 00 01 	mvi r2,1                                       
 8005d34:	b9 e0 08 00 	mv r1,r15                                      
 8005d38:	5c 62 00 43 	bne r3,r2,8005e44 <_Thread_queue_Enqueue_priority+0x220>
       THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )                   
    goto synchronize;                                                 
                                                                      
  the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
 8005d3c:	59 a0 00 30 	sw (r13+48),r0                                 
                                                                      
  if ( priority == search_priority )                                  
 8005d40:	46 11 00 38 	be r16,r17,8005e20 <_Thread_queue_Enqueue_priority+0x1fc>
    goto equal_priority;                                              
                                                                      
  search_node   = (Chain_Node *) search_thread;                       
  previous_node = search_node->previous;                              
 8005d44:	29 61 00 04 	lw r1,(r11+4)                                  
  the_node      = (Chain_Node *) the_thread;                          
                                                                      
  the_node->next         = search_node;                               
 8005d48:	59 8b 00 00 	sw (r12+0),r11                                 
  the_node->previous     = previous_node;                             
 8005d4c:	59 81 00 04 	sw (r12+4),r1                                  
  previous_node->next    = the_node;                                  
 8005d50:	58 2c 00 00 	sw (r1+0),r12                                  
  search_node->previous  = the_node;                                  
 8005d54:	59 6c 00 04 	sw (r11+4),r12                                 
  the_thread->Wait.queue = the_thread_queue;                          
 8005d58:	59 8d 00 44 	sw (r12+68),r13                                
  _ISR_Enable( level );                                               
 8005d5c:	d0 0f 00 00 	wcsr IE,r15                                    
 8005d60:	e0 00 00 2e 	bi 8005e18 <_Thread_queue_Enqueue_priority+0x1f4>
  return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;                  
                                                                      
restart_reverse_search:                                               
  search_priority     = PRIORITY_MAXIMUM + 1;                         
 8005d64:	42 51 00 00 	lbu r17,(r18+0)                                
 8005d68:	36 31 00 01 	addi r17,r17,1                                 
                                                                      
  _ISR_Disable( level );                                              
 8005d6c:	90 00 78 00 	rcsr r15,IE                                    
 8005d70:	a1 f6 a0 00 	and r20,r15,r22                                
 8005d74:	d0 14 00 00 	wcsr IE,r20                                    
   *                                                                  
   *  WARNING! Returning with interrupts disabled!                    
   */                                                                 
  *level_p = level;                                                   
  return the_thread_queue->sync_state;                                
}                                                                     
 8005d78:	34 02 00 01 	mvi r2,1                                       
 8005d7c:	b9 c0 08 00 	mv r1,r14                                      
 8005d80:	f8 00 2a c2 	calli 8010888 <__ashlsi3>                      
 8005d84:	b4 2e 08 00 	add r1,r1,r14                                  
 8005d88:	34 02 00 02 	mvi r2,2                                       
 8005d8c:	f8 00 2a bf 	calli 8010888 <__ashlsi3>                      
 8005d90:	b5 a1 08 00 	add r1,r13,r1                                  
                                                                      
restart_reverse_search:                                               
  search_priority     = PRIORITY_MAXIMUM + 1;                         
                                                                      
  _ISR_Disable( level );                                              
  search_thread = (Thread_Control *) _Chain_Last( header );           
 8005d94:	28 2b 00 08 	lw r11,(r1+8)                                  
  while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) {  
 8005d98:	e0 00 00 0b 	bi 8005dc4 <_Thread_queue_Enqueue_priority+0x1a0>
    search_priority = search_thread->current_priority;                
 8005d9c:	29 71 00 14 	lw r17,(r11+20)                                
    if ( priority >= search_priority )                                
 8005da0:	52 11 00 11 	bgeu r16,r17,8005de4 <_Thread_queue_Enqueue_priority+0x1c0>
      break;                                                          
    search_priority = search_thread->current_priority;                
    if ( priority >= search_priority )                                
      break;                                                          
#endif                                                                
    _ISR_Flash( level );                                              
 8005da4:	d0 0f 00 00 	wcsr IE,r15                                    
 8005da8:	d0 14 00 00 	wcsr IE,r20                                    
 8005dac:	29 61 00 10 	lw r1,(r11+16)                                 
 8005db0:	a2 61 08 00 	and r1,r19,r1                                  
    if ( !_States_Are_set( search_thread->current_state, block_state) ) {
 8005db4:	5c 20 00 03 	bne r1,r0,8005dc0 <_Thread_queue_Enqueue_priority+0x19c><== ALWAYS TAKEN
      _ISR_Enable( level );                                           
 8005db8:	d0 0f 00 00 	wcsr IE,r15                                    <== NOT EXECUTED
      goto restart_reverse_search;                                    
 8005dbc:	e3 ff ff ea 	bi 8005d64 <_Thread_queue_Enqueue_priority+0x140><== NOT EXECUTED
    }                                                                 
    search_thread = (Thread_Control *)                                
                         search_thread->Object.Node.previous;         
 8005dc0:	29 6b 00 04 	lw r11,(r11+4)                                 
RTEMS_INLINE_ROUTINE bool _Chain_Is_head(                             
  Chain_Control *the_chain,                                           
  const Chain_Node    *the_node                                       
)                                                                     
{                                                                     
  return (the_node == _Chain_Head(the_chain));                        
 8005dc4:	34 02 00 01 	mvi r2,1                                       
 8005dc8:	b9 c0 08 00 	mv r1,r14                                      
 8005dcc:	f8 00 2a af 	calli 8010888 <__ashlsi3>                      
 8005dd0:	b4 2e 08 00 	add r1,r1,r14                                  
 8005dd4:	34 02 00 02 	mvi r2,2                                       
 8005dd8:	f8 00 2a ac 	calli 8010888 <__ashlsi3>                      
 8005ddc:	b5 a1 08 00 	add r1,r13,r1                                  
restart_reverse_search:                                               
  search_priority     = PRIORITY_MAXIMUM + 1;                         
                                                                      
  _ISR_Disable( level );                                              
  search_thread = (Thread_Control *) _Chain_Last( header );           
  while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) {  
 8005de0:	5d 61 ff ef 	bne r11,r1,8005d9c <_Thread_queue_Enqueue_priority+0x178>
    }                                                                 
    search_thread = (Thread_Control *)                                
                         search_thread->Object.Node.previous;         
  }                                                                   
                                                                      
  if ( the_thread_queue->sync_state !=                                
 8005de4:	29 a3 00 30 	lw r3,(r13+48)                                 
 8005de8:	34 02 00 01 	mvi r2,1                                       
 8005dec:	b9 e0 08 00 	mv r1,r15                                      
 8005df0:	5c 62 00 15 	bne r3,r2,8005e44 <_Thread_queue_Enqueue_priority+0x220><== NEVER TAKEN
       THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )                   
    goto synchronize;                                                 
                                                                      
  the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
 8005df4:	59 a0 00 30 	sw (r13+48),r0                                 
                                                                      
  if ( priority == search_priority )                                  
 8005df8:	46 11 00 0a 	be r16,r17,8005e20 <_Thread_queue_Enqueue_priority+0x1fc>
    goto equal_priority;                                              
                                                                      
  search_node = (Chain_Node *) search_thread;                         
  next_node   = search_node->next;                                    
 8005dfc:	29 61 00 00 	lw r1,(r11+0)                                  
  the_node    = (Chain_Node *) the_thread;                            
                                                                      
  the_node->next          = next_node;                                
  the_node->previous      = search_node;                              
 8005e00:	59 8b 00 04 	sw (r12+4),r11                                 
                                                                      
  search_node = (Chain_Node *) search_thread;                         
  next_node   = search_node->next;                                    
  the_node    = (Chain_Node *) the_thread;                            
                                                                      
  the_node->next          = next_node;                                
 8005e04:	59 81 00 00 	sw (r12+0),r1                                  
  the_node->previous      = search_node;                              
  search_node->next       = the_node;                                 
 8005e08:	59 6c 00 00 	sw (r11+0),r12                                 
  next_node->previous    = the_node;                                  
 8005e0c:	58 2c 00 04 	sw (r1+4),r12                                  
  the_thread->Wait.queue = the_thread_queue;                          
 8005e10:	59 8d 00 44 	sw (r12+68),r13                                
  _ISR_Enable( level );                                               
 8005e14:	d0 0f 00 00 	wcsr IE,r15                                    
  return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;                  
 8005e18:	34 01 00 01 	mvi r1,1                                       
 8005e1c:	e0 00 00 0c 	bi 8005e4c <_Thread_queue_Enqueue_priority+0x228>
                                                                      
equal_priority:               /* add at end of priority group */      
  search_node   = _Chain_Tail( &search_thread->Wait.Block2n );        
  previous_node = search_node->previous;                              
 8005e20:	29 61 00 40 	lw r1,(r11+64)                                 
  the_thread->Wait.queue = the_thread_queue;                          
  _ISR_Enable( level );                                               
  return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;                  
                                                                      
equal_priority:               /* add at end of priority group */      
  search_node   = _Chain_Tail( &search_thread->Wait.Block2n );        
 8005e24:	35 62 00 3c 	addi r2,r11,60                                 
  previous_node = search_node->previous;                              
  the_node      = (Chain_Node *) the_thread;                          
                                                                      
  the_node->next         = search_node;                               
 8005e28:	59 82 00 00 	sw (r12+0),r2                                  
  the_node->previous     = previous_node;                             
 8005e2c:	59 81 00 04 	sw (r12+4),r1                                  
  previous_node->next    = the_node;                                  
 8005e30:	58 2c 00 00 	sw (r1+0),r12                                  
  search_node->previous  = the_node;                                  
 8005e34:	59 6c 00 40 	sw (r11+64),r12                                
  the_thread->Wait.queue = the_thread_queue;                          
 8005e38:	59 8d 00 44 	sw (r12+68),r13                                
  _ISR_Enable( level );                                               
 8005e3c:	d0 0f 00 00 	wcsr IE,r15                                    
 8005e40:	e3 ff ff f6 	bi 8005e18 <_Thread_queue_Enqueue_priority+0x1f4>
   *  For example, the blocking thread could have been given          
   *  the mutex by an ISR or timed out.                               
   *                                                                  
   *  WARNING! Returning with interrupts disabled!                    
   */                                                                 
  *level_p = level;                                                   
 8005e44:	5a a1 00 00 	sw (r21+0),r1                                  
  return the_thread_queue->sync_state;                                
 8005e48:	29 a1 00 30 	lw r1,(r13+48)                                 
}                                                                     
 8005e4c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8005e50:	2b 8b 00 34 	lw r11,(sp+52)                                 
 8005e54:	2b 8c 00 30 	lw r12,(sp+48)                                 
 8005e58:	2b 8d 00 2c 	lw r13,(sp+44)                                 
 8005e5c:	2b 8e 00 28 	lw r14,(sp+40)                                 
 8005e60:	2b 8f 00 24 	lw r15,(sp+36)                                 
 8005e64:	2b 90 00 20 	lw r16,(sp+32)                                 
 8005e68:	2b 91 00 1c 	lw r17,(sp+28)                                 
 8005e6c:	2b 92 00 18 	lw r18,(sp+24)                                 
 8005e70:	2b 93 00 14 	lw r19,(sp+20)                                 
 8005e74:	2b 94 00 10 	lw r20,(sp+16)                                 
 8005e78:	2b 95 00 0c 	lw r21,(sp+12)                                 
 8005e7c:	2b 96 00 08 	lw r22,(sp+8)                                  
 8005e80:	37 9c 00 34 	addi sp,sp,52                                  
 8005e84:	c3 a0 00 00 	ret                                            
                                                                      

08009890 <_Thread_queue_Process_timeout>: #include <rtems/score/tqdata.h> void _Thread_queue_Process_timeout( Thread_Control *the_thread ) {
 8009890:	37 9c ff fc 	addi sp,sp,-4                                  
 8009894:	5b 9d 00 04 	sw (sp+4),ra                                   
 8009898:	b8 20 10 00 	mv r2,r1                                       
  Thread_queue_Control *the_thread_queue = the_thread->Wait.queue;    
 800989c:	28 21 00 44 	lw r1,(r1+68)                                  
   *  If it is not satisfied, then it is "nothing happened" and       
   *  this is the "timeout" transition.  After a request is satisfied,
   *  a timeout is not allowed to occur.                              
   */                                                                 
                                                                      
  if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SYNCHRONIZED &&
 80098a0:	28 24 00 30 	lw r4,(r1+48)                                  
 80098a4:	44 80 00 0c 	be r4,r0,80098d4 <_Thread_queue_Process_timeout+0x44>
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing (                      
  const Thread_Control *the_thread                                    
)                                                                     
{                                                                     
  return ( the_thread == _Thread_Executing );                         
 80098a8:	78 03 08 01 	mvhi r3,0x801                                  
 80098ac:	38 63 3a 28 	ori r3,r3,0x3a28                               
 80098b0:	28 63 00 0c 	lw r3,(r3+12)                                  
 80098b4:	5c 43 00 08 	bne r2,r3,80098d4 <_Thread_queue_Process_timeout+0x44>
       _Thread_Is_executing( the_thread ) ) {                         
    if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SATISFIED ) {
 80098b8:	34 03 00 03 	mvi r3,3                                       
 80098bc:	44 83 00 09 	be r4,r3,80098e0 <_Thread_queue_Process_timeout+0x50><== ALWAYS TAKEN
      the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status;
 80098c0:	28 23 00 3c 	lw r3,(r1+60)                                  <== NOT EXECUTED
 80098c4:	58 43 00 34 	sw (r2+52),r3                                  <== NOT EXECUTED
      the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;
 80098c8:	34 02 00 02 	mvi r2,2                                       <== NOT EXECUTED
 80098cc:	58 22 00 30 	sw (r1+48),r2                                  <== NOT EXECUTED
 80098d0:	e0 00 00 04 	bi 80098e0 <_Thread_queue_Process_timeout+0x50><== NOT EXECUTED
    }                                                                 
  } else {                                                            
    the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status;
 80098d4:	28 23 00 3c 	lw r3,(r1+60)                                  
 80098d8:	58 43 00 34 	sw (r2+52),r3                                  
    _Thread_queue_Extract( the_thread->Wait.queue, the_thread );      
 80098dc:	fb ff ff 92 	calli 8009724 <_Thread_queue_Extract>          
  }                                                                   
}                                                                     
 80098e0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80098e4:	37 9c 00 04 	addi sp,sp,4                                   
 80098e8:	c3 a0 00 00 	ret                                            
                                                                      

08005f70 <_Thread_queue_Requeue>: void _Thread_queue_Requeue( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) {
 8005f70:	37 9c ff ec 	addi sp,sp,-20                                 
 8005f74:	5b 8b 00 10 	sw (sp+16),r11                                 
 8005f78:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8005f7c:	5b 8d 00 08 	sw (sp+8),r13                                  
 8005f80:	5b 9d 00 04 	sw (sp+4),ra                                   
 8005f84:	b8 20 58 00 	mv r11,r1                                      
 8005f88:	b8 40 60 00 	mv r12,r2                                      
  /*                                                                  
   * Just in case the thread really wasn't blocked on a thread queue  
   * when we get here.                                                
   */                                                                 
  if ( !the_thread_queue )                                            
 8005f8c:	44 20 00 19 	be r1,r0,8005ff0 <_Thread_queue_Requeue+0x80>  <== NEVER TAKEN
                                                                      
  /*                                                                  
   * If queueing by FIFO, there is nothing to do. This only applies to
   * priority blocking discipline.                                    
   */                                                                 
  if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) {
 8005f90:	28 22 00 34 	lw r2,(r1+52)                                  
 8005f94:	34 01 00 01 	mvi r1,1                                       
 8005f98:	5c 41 00 16 	bne r2,r1,8005ff0 <_Thread_queue_Requeue+0x80> <== NEVER TAKEN
    Thread_queue_Control *tq = the_thread_queue;                      
    ISR_Level             level;                                      
    ISR_Level             level_ignored;                              
                                                                      
    _ISR_Disable( level );                                            
 8005f9c:	90 00 68 00 	rcsr r13,IE                                    
 8005fa0:	34 01 ff fe 	mvi r1,-2                                      
 8005fa4:	a1 a1 08 00 	and r1,r13,r1                                  
 8005fa8:	d0 01 00 00 	wcsr IE,r1                                     
 8005fac:	78 03 08 01 	mvhi r3,0x801                                  
 8005fb0:	38 63 1d ec 	ori r3,r3,0x1dec                               
 8005fb4:	29 82 00 10 	lw r2,(r12+16)                                 
 8005fb8:	28 61 00 00 	lw r1,(r3+0)                                   
 8005fbc:	a0 41 08 00 	and r1,r2,r1                                   
    if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
 8005fc0:	44 20 00 0b 	be r1,r0,8005fec <_Thread_queue_Requeue+0x7c>  <== NEVER TAKEN
                                                                      
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;
 8005fc4:	34 01 00 01 	mvi r1,1                                       
 8005fc8:	59 61 00 30 	sw (r11+48),r1                                 
      _Thread_queue_Enter_critical_section( tq );                     
      _Thread_queue_Extract_priority_helper( tq, the_thread, true );  
 8005fcc:	b9 80 10 00 	mv r2,r12                                      
 8005fd0:	b9 60 08 00 	mv r1,r11                                      
 8005fd4:	34 03 00 01 	mvi r3,1                                       
 8005fd8:	f8 00 0d df 	calli 8009754 <_Thread_queue_Extract_priority_helper>
      (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored );
 8005fdc:	b9 60 08 00 	mv r1,r11                                      
 8005fe0:	b9 80 10 00 	mv r2,r12                                      
 8005fe4:	37 83 00 14 	addi r3,sp,20                                  
 8005fe8:	fb ff ff 0f 	calli 8005c24 <_Thread_queue_Enqueue_priority> 
    }                                                                 
    _ISR_Enable( level );                                             
 8005fec:	d0 0d 00 00 	wcsr IE,r13                                    
  }                                                                   
}                                                                     
 8005ff0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8005ff4:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8005ff8:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8005ffc:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8006000:	37 9c 00 14 	addi sp,sp,20                                  
 8006004:	c3 a0 00 00 	ret                                            
                                                                      

08006008 <_Thread_queue_Timeout>: void _Thread_queue_Timeout( Objects_Id id, void *ignored __attribute__((unused)) ) {
 8006008:	37 9c ff f8 	addi sp,sp,-8                                  
 800600c:	5b 9d 00 04 	sw (sp+4),ra                                   
  Thread_Control       *the_thread;                                   
  Objects_Locations     location;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 8006010:	37 82 00 08 	addi r2,sp,8                                   
 8006014:	fb ff fd 89 	calli 8005638 <_Thread_Get>                    
  switch ( location ) {                                               
 8006018:	2b 82 00 08 	lw r2,(sp+8)                                   
 800601c:	5c 40 00 07 	bne r2,r0,8006038 <_Thread_queue_Timeout+0x30> <== NEVER TAKEN
#if defined(RTEMS_MULTIPROCESSING)                                    
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
      break;                                                          
    case OBJECTS_LOCAL:                                               
      _Thread_queue_Process_timeout( the_thread );                    
 8006020:	f8 00 0e 1c 	calli 8009890 <_Thread_queue_Process_timeout>  
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )             
{                                                                     
  RTEMS_COMPILER_MEMORY_BARRIER();                                    
  _Thread_Dispatch_disable_level -= 1;                                
 8006024:	78 01 08 01 	mvhi r1,0x801                                  
 8006028:	38 21 38 88 	ori r1,r1,0x3888                               
 800602c:	28 22 00 00 	lw r2,(r1+0)                                   
 8006030:	34 42 ff ff 	addi r2,r2,-1                                  
 8006034:	58 22 00 00 	sw (r1+0),r2                                   
      _Thread_Unnest_dispatch();                                      
      break;                                                          
  }                                                                   
}                                                                     
 8006038:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800603c:	37 9c 00 08 	addi sp,sp,8                                   
 8006040:	c3 a0 00 00 	ret                                            
                                                                      

0801478c <_Timer_server_Body>: * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) {
 801478c:	37 9c ff a8 	addi sp,sp,-88                                 
 8014790:	5b 8b 00 40 	sw (sp+64),r11                                 
 8014794:	5b 8c 00 3c 	sw (sp+60),r12                                 
 8014798:	5b 8d 00 38 	sw (sp+56),r13                                 
 801479c:	5b 8e 00 34 	sw (sp+52),r14                                 
 80147a0:	5b 8f 00 30 	sw (sp+48),r15                                 
 80147a4:	5b 90 00 2c 	sw (sp+44),r16                                 
 80147a8:	5b 91 00 28 	sw (sp+40),r17                                 
 80147ac:	5b 92 00 24 	sw (sp+36),r18                                 
 80147b0:	5b 93 00 20 	sw (sp+32),r19                                 
 80147b4:	5b 94 00 1c 	sw (sp+28),r20                                 
 80147b8:	5b 95 00 18 	sw (sp+24),r21                                 
 80147bc:	5b 96 00 14 	sw (sp+20),r22                                 
 80147c0:	5b 97 00 10 	sw (sp+16),r23                                 
 80147c4:	5b 98 00 0c 	sw (sp+12),r24                                 
 80147c8:	5b 99 00 08 	sw (sp+8),r25                                  
 80147cc:	5b 9d 00 04 	sw (sp+4),ra                                   
static void _Timer_server_Process_interval_watchdogs(                 
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;            
 80147d0:	78 10 08 03 	mvhi r16,0x803                                 
 *  @a arg points to the corresponding timer server control block.    
 */                                                                   
static rtems_task _Timer_server_Body(                                 
  rtems_task_argument arg                                             
)                                                                     
{                                                                     
 80147d4:	b8 20 58 00 	mv r11,r1                                      
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 80147d8:	37 82 00 54 	addi r2,sp,84                                  
 80147dc:	37 81 00 50 	addi r1,sp,80                                  
 80147e0:	37 8f 00 44 	addi r15,sp,68                                 
 80147e4:	37 91 00 48 	addi r17,sp,72                                 
static void _Timer_server_Process_tod_watchdogs(                      
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
 80147e8:	78 0e 08 03 	mvhi r14,0x803                                 
 80147ec:	5b 82 00 50 	sw (sp+80),r2                                  
  head->previous = NULL;                                              
 80147f0:	5b 80 00 54 	sw (sp+84),r0                                  
  tail->previous = head;                                              
 80147f4:	5b 81 00 58 	sw (sp+88),r1                                  
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 80147f8:	5b 91 00 44 	sw (sp+68),r17                                 
  head->previous = NULL;                                              
 80147fc:	5b 80 00 48 	sw (sp+72),r0                                  
  tail->previous = head;                                              
 8014800:	5b 8f 00 4c 	sw (sp+76),r15                                 
{                                                                     
  /*                                                                  
   *  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;                                    
 8014804:	b8 20 c8 00 	mv r25,r1                                      
static void _Timer_server_Process_interval_watchdogs(                 
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;            
 8014808:	3a 10 ed a8 	ori r16,r16,0xeda8                             
   */                                                                 
  Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;      
                                                                      
  watchdogs->last_snapshot = snapshot;                                
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
 801480c:	35 73 00 30 	addi r19,r11,48                                
static void _Timer_server_Process_tod_watchdogs(                      
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
 8014810:	39 ce ed 20 	ori r14,r14,0xed20                             
     /*                                                               
      *  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 ); 
 8014814:	35 6d 00 68 	addi r13,r11,104                               
  Timer_Control *timer                                                
)                                                                     
{                                                                     
  if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {                 
    _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
  } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {       
 8014818:	34 18 00 03 	mvi r24,3                                      
     *  of zero it will be processed in the next iteration of the timer server
     *  body loop.                                                    
     */                                                               
    _Timer_server_Process_insertions( ts );                           
                                                                      
    _ISR_Disable( level );                                            
 801481c:	34 12 ff fe 	mvi r18,-2                                     
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_tail(         
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return &the_chain->Tail.Node;                                       
 8014820:	b8 40 b8 00 	mv r23,r2                                      
        _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;                                              
 8014824:	34 16 00 01 	mvi r22,1                                      
                                                                      
static void _Timer_server_Stop_interval_system_watchdog(              
  Timer_server_Control *ts                                            
)                                                                     
{                                                                     
  _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );        
 8014828:	35 75 00 08 	addi r21,r11,8                                 
                                                                      
static void _Timer_server_Stop_tod_system_watchdog(                   
  Timer_server_Control *ts                                            
)                                                                     
{                                                                     
  _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );             
 801482c:	35 74 00 40 	addi r20,r11,64                                
{                                                                     
  /*                                                                  
   *  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;                                    
 8014830:	59 79 00 78 	sw (r11+120),r25                               
static void _Timer_server_Process_interval_watchdogs(                 
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;            
 8014834:	2a 02 00 00 	lw r2,(r16+0)                                  
                                                                      
  /*                                                                  
   *  We assume adequate unsigned arithmetic here.                    
   */                                                                 
  Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;      
 8014838:	29 63 00 3c 	lw r3,(r11+60)                                 
                                                                      
  watchdogs->last_snapshot = snapshot;                                
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
 801483c:	ba 60 08 00 	mv r1,r19                                      
  /*                                                                  
   *  We assume adequate unsigned arithmetic here.                    
   */                                                                 
  Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;      
                                                                      
  watchdogs->last_snapshot = snapshot;                                
 8014840:	59 62 00 3c 	sw (r11+60),r2                                 
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
 8014844:	c8 43 10 00 	sub r2,r2,r3                                   
 8014848:	b9 e0 18 00 	mv r3,r15                                      
 801484c:	f8 00 15 29 	calli 8019cf0 <_Watchdog_Adjust_to_chain>      
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
  Watchdog_Interval last_snapshot = watchdogs->last_snapshot;         
 8014850:	29 64 00 74 	lw r4,(r11+116)                                
static void _Timer_server_Process_tod_watchdogs(                      
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
 8014854:	29 cc 00 00 	lw r12,(r14+0)                                 
  /*                                                                  
   *  Process the seconds chain.  Start by checking that the Time     
   *  of Day (TOD) has not been set backwards.  If it has then        
   *  we want to adjust the watchdogs->Chain to indicate this.        
   */                                                                 
  if ( snapshot > last_snapshot ) {                                   
 8014858:	50 8c 00 06 	bgeu r4,r12,8014870 <_Timer_server_Body+0xe4>  
    /*                                                                
     *  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 );
 801485c:	b9 a0 08 00 	mv r1,r13                                      
 8014860:	c9 84 10 00 	sub r2,r12,r4                                  
 8014864:	b9 e0 18 00 	mv r3,r15                                      
 8014868:	f8 00 15 22 	calli 8019cf0 <_Watchdog_Adjust_to_chain>      
 801486c:	e0 00 00 06 	bi 8014884 <_Timer_server_Body+0xf8>           
                                                                      
  } else if ( snapshot < last_snapshot ) {                            
 8014870:	51 84 00 05 	bgeu r12,r4,8014884 <_Timer_server_Body+0xf8>  
     /*                                                               
      *  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 ); 
 8014874:	b9 a0 08 00 	mv r1,r13                                      
 8014878:	34 02 00 01 	mvi r2,1                                       
 801487c:	c8 8c 18 00 	sub r3,r4,r12                                  
 8014880:	f8 00 14 e5 	calli 8019c14 <_Watchdog_Adjust>               
  }                                                                   
                                                                      
  watchdogs->last_snapshot = snapshot;                                
 8014884:	59 6c 00 74 	sw (r11+116),r12                               
static void _Timer_server_Insert_timer(                               
  Timer_server_Control *ts,                                           
  Timer_Control *timer                                                
)                                                                     
{                                                                     
  if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {                 
 8014888:	34 0c 00 01 	mvi r12,1                                      
}                                                                     
                                                                      
static void _Timer_server_Process_insertions( Timer_server_Control *ts )
{                                                                     
  while ( true ) {                                                    
    Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain );
 801488c:	29 63 00 78 	lw r3,(r11+120)                                
 8014890:	b8 60 08 00 	mv r1,r3                                       
 8014894:	f8 00 03 68 	calli 8015634 <_Chain_Get>                     
 8014898:	b8 20 10 00 	mv r2,r1                                       
                                                                      
    if ( timer == NULL ) {                                            
 801489c:	44 20 00 09 	be r1,r0,80148c0 <_Timer_server_Body+0x134>    <== ALWAYS TAKEN
static void _Timer_server_Insert_timer(                               
  Timer_server_Control *ts,                                           
  Timer_Control *timer                                                
)                                                                     
{                                                                     
  if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {                 
 80148a0:	28 23 00 38 	lw r3,(r1+56)                                  <== NOT EXECUTED
    _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
 80148a4:	ba 60 08 00 	mv r1,r19                                      <== NOT EXECUTED
static void _Timer_server_Insert_timer(                               
  Timer_server_Control *ts,                                           
  Timer_Control *timer                                                
)                                                                     
{                                                                     
  if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {                 
 80148a8:	44 6c 00 03 	be r3,r12,80148b4 <_Timer_server_Body+0x128>   <== NOT EXECUTED
    _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
  } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {       
 80148ac:	5c 78 ff f8 	bne r3,r24,801488c <_Timer_server_Body+0x100>  <== NOT EXECUTED
    _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );     
 80148b0:	b9 a0 08 00 	mv r1,r13                                      <== NOT EXECUTED
 80148b4:	34 42 00 10 	addi r2,r2,16                                  <== NOT EXECUTED
 80148b8:	f8 00 15 33 	calli 8019d84 <_Watchdog_Insert>               <== NOT EXECUTED
 80148bc:	e3 ff ff f4 	bi 801488c <_Timer_server_Body+0x100>          <== 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 );                                            
 80148c0:	90 00 10 00 	rcsr r2,IE                                     
 80148c4:	a0 52 08 00 	and r1,r2,r18                                  
 80148c8:	d0 01 00 00 	wcsr IE,r1                                     
    if ( _Chain_Is_empty( insert_chain ) ) {                          
 80148cc:	2b 81 00 50 	lw r1,(sp+80)                                  
 80148d0:	5c 37 00 06 	bne r1,r23,80148e8 <_Timer_server_Body+0x15c>  <== NEVER TAKEN
      ts->insert_chain = NULL;                                        
 80148d4:	59 60 00 78 	sw (r11+120),r0                                
      _ISR_Enable( level );                                           
 80148d8:	d0 02 00 00 	wcsr IE,r2                                     
  _Chain_Initialize_empty( &fire_chain );                             
                                                                      
  while ( true ) {                                                    
    _Timer_server_Get_watchdogs_that_fire_now( ts, &insert_chain, &fire_chain );
                                                                      
    if ( !_Chain_Is_empty( &fire_chain ) ) {                          
 80148dc:	2b 81 00 44 	lw r1,(sp+68)                                  
 80148e0:	5c 31 00 04 	bne r1,r17,80148f0 <_Timer_server_Body+0x164>  
 80148e4:	e0 00 00 15 	bi 8014938 <_Timer_server_Body+0x1ac>          
      ts->insert_chain = NULL;                                        
      _ISR_Enable( level );                                           
                                                                      
      break;                                                          
    } else {                                                          
      _ISR_Enable( level );                                           
 80148e8:	d0 02 00 00 	wcsr IE,r2                                     <== NOT EXECUTED
 80148ec:	e3 ff ff d2 	bi 8014834 <_Timer_server_Body+0xa8>           <== NOT EXECUTED
                                                                      
        /*                                                            
         *  It is essential that interrupts are disable here since an interrupt
         *  service routine may remove a watchdog from the chain.     
         */                                                           
        _ISR_Disable( level );                                        
 80148f0:	90 00 18 00 	rcsr r3,IE                                     
 80148f4:	a0 72 08 00 	and r1,r3,r18                                  
 80148f8:	d0 01 00 00 	wcsr IE,r1                                     
      initialized = false;                                            
    }                                                                 
  #endif                                                              
                                                                      
  return status;                                                      
}                                                                     
 80148fc:	2b 82 00 44 	lw r2,(sp+68)                                  
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(              
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  if ( !_Chain_Is_empty(the_chain))                                   
 8014900:	44 51 00 0c 	be r2,r17,8014930 <_Timer_server_Body+0x1a4>   
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *old_first = head->next;                                 
  Chain_Node *new_first = old_first->next;                            
 8014904:	28 44 00 00 	lw r4,(r2+0)                                   
                                                                      
  head->next = new_first;                                             
 8014908:	5b 84 00 44 	sw (sp+68),r4                                  
  new_first->previous = head;                                         
 801490c:	58 8f 00 04 	sw (r4+4),r15                                  
         *  It is essential that interrupts are disable here since an interrupt
         *  service routine may remove a watchdog from the chain.     
         */                                                           
        _ISR_Disable( level );                                        
        watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain );
        if ( watchdog != NULL ) {                                     
 8014910:	44 40 00 08 	be r2,r0,8014930 <_Timer_server_Body+0x1a4>    <== NEVER TAKEN
          watchdog->state = WATCHDOG_INACTIVE;                        
 8014914:	58 40 00 08 	sw (r2+8),r0                                   
          _ISR_Enable( level );                                       
 8014918:	d0 03 00 00 	wcsr IE,r3                                     
        /*                                                            
         *  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 );    
 801491c:	28 43 00 1c 	lw r3,(r2+28)                                  
 8014920:	28 41 00 20 	lw r1,(r2+32)                                  
 8014924:	28 42 00 24 	lw r2,(r2+36)                                  
 8014928:	d8 60 00 00 	call r3                                        
      }                                                               
 801492c:	e3 ff ff f1 	bi 80148f0 <_Timer_server_Body+0x164>          
        watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain );
        if ( watchdog != NULL ) {                                     
          watchdog->state = WATCHDOG_INACTIVE;                        
          _ISR_Enable( level );                                       
        } else {                                                      
          _ISR_Enable( level );                                       
 8014930:	d0 03 00 00 	wcsr IE,r3                                     
 8014934:	e3 ff ff bf 	bi 8014830 <_Timer_server_Body+0xa4>           
         *  the active flag of the timer server is true.              
         */                                                           
        (*watchdog->routine)( watchdog->id, watchdog->user_data );    
      }                                                               
    } else {                                                          
      ts->active = false;                                             
 8014938:	31 60 00 7c 	sb (r11+124),r0                                
                                                                      
      /*                                                              
       *  Block until there is something to do.                       
       */                                                             
      _Thread_Disable_dispatch();                                     
 801493c:	fb ff ff 54 	calli 801468c <_Thread_Disable_dispatch>       
        _Thread_Set_state( ts->thread, STATES_DELAYING );             
 8014940:	29 61 00 00 	lw r1,(r11+0)                                  
 8014944:	34 02 00 08 	mvi r2,8                                       
 8014948:	f8 00 12 b5 	calli 801941c <_Thread_Set_state>              
        _Timer_server_Reset_interval_system_watchdog( ts );           
 801494c:	b9 60 08 00 	mv r1,r11                                      
 8014950:	fb ff ff 55 	calli 80146a4 <_Timer_server_Reset_interval_system_watchdog>
        _Timer_server_Reset_tod_system_watchdog( ts );                
 8014954:	b9 60 08 00 	mv r1,r11                                      
 8014958:	fb ff ff 70 	calli 8014718 <_Timer_server_Reset_tod_system_watchdog>
      _Thread_Enable_dispatch();                                      
 801495c:	f8 00 0f e4 	calli 80188ec <_Thread_Enable_dispatch>        
                                                                      
static void _Timer_server_Stop_interval_system_watchdog(              
  Timer_server_Control *ts                                            
)                                                                     
{                                                                     
  _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );        
 8014960:	ba a0 08 00 	mv r1,r21                                      
        _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;                                              
 8014964:	31 76 00 7c 	sb (r11+124),r22                               
                                                                      
static void _Timer_server_Stop_interval_system_watchdog(              
  Timer_server_Control *ts                                            
)                                                                     
{                                                                     
  _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );        
 8014968:	f8 00 15 66 	calli 8019f00 <_Watchdog_Remove>               
                                                                      
static void _Timer_server_Stop_tod_system_watchdog(                   
  Timer_server_Control *ts                                            
)                                                                     
{                                                                     
  _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );             
 801496c:	ba 80 08 00 	mv r1,r20                                      
 8014970:	f8 00 15 64 	calli 8019f00 <_Watchdog_Remove>               
 8014974:	e3 ff ff af 	bi 8014830 <_Timer_server_Body+0xa4>           
                                                                      

08014978 <_Timer_server_Schedule_operation_method>: static void _Timer_server_Schedule_operation_method( Timer_server_Control *ts, Timer_Control *timer ) {
 8014978:	37 9c ff f4 	addi sp,sp,-12                                 
 801497c:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8014980:	5b 8c 00 08 	sw (sp+8),r12                                  
 8014984:	5b 9d 00 04 	sw (sp+4),ra                                   
 8014988:	b8 20 58 00 	mv r11,r1                                      
  if ( ts->insert_chain == NULL ) {                                   
 801498c:	28 21 00 78 	lw r1,(r1+120)                                 
                                                                      
static void _Timer_server_Schedule_operation_method(                  
  Timer_server_Control *ts,                                           
  Timer_Control *timer                                                
)                                                                     
{                                                                     
 8014990:	b8 40 60 00 	mv r12,r2                                      
  if ( ts->insert_chain == NULL ) {                                   
 8014994:	5c 20 00 43 	bne r1,r0,8014aa0 <_Timer_server_Schedule_operation_method+0x128><== NEVER TAKEN
   *  is the reference point for the delta chain.  Thus if we do not update the
   *  reference point we have to add DT to the initial delta of the watchdog
   *  being inserted.  This could result in an integer overflow.      
   */                                                                 
                                                                      
  _Thread_Disable_dispatch();                                         
 8014998:	fb ff ff 3d 	calli 801468c <_Thread_Disable_dispatch>       
                                                                      
  if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {                 
 801499c:	29 81 00 38 	lw r1,(r12+56)                                 
 80149a0:	34 02 00 01 	mvi r2,1                                       
 80149a4:	5c 22 00 1d 	bne r1,r2,8014a18 <_Timer_server_Schedule_operation_method+0xa0>
    /*                                                                
     *  We have to advance the last known ticks value of the server and update
     *  the watchdog chain accordingly.                               
     */                                                               
    _ISR_Disable( level );                                            
 80149a8:	90 00 10 00 	rcsr r2,IE                                     
 80149ac:	34 01 ff fe 	mvi r1,-2                                      
 80149b0:	a0 41 08 00 	and r1,r2,r1                                   
 80149b4:	d0 01 00 00 	wcsr IE,r1                                     
    snapshot = _Watchdog_Ticks_since_boot;                            
 80149b8:	78 01 08 03 	mvhi r1,0x803                                  
 80149bc:	38 21 ed a8 	ori r1,r1,0xeda8                               
 80149c0:	28 23 00 00 	lw r3,(r1+0)                                   
      initialized = false;                                            
    }                                                                 
  #endif                                                              
                                                                      
  return status;                                                      
}                                                                     
 80149c4:	29 61 00 30 	lw r1,(r11+48)                                 
     *  We have to advance the last known ticks value of the server and update
     *  the watchdog chain accordingly.                               
     */                                                               
    _ISR_Disable( level );                                            
    snapshot = _Watchdog_Ticks_since_boot;                            
    last_snapshot = ts->Interval_watchdogs.last_snapshot;             
 80149c8:	29 65 00 3c 	lw r5,(r11+60)                                 
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
 80149cc:	35 64 00 34 	addi r4,r11,52                                 
    if ( !_Chain_Is_empty( &ts->Interval_watchdogs.Chain ) ) {        
 80149d0:	44 24 00 07 	be r1,r4,80149ec <_Timer_server_Schedule_operation_method+0x74>
      /*                                                              
       *  We assume adequate unsigned arithmetic here.                
       */                                                             
      delta = snapshot - last_snapshot;                               
                                                                      
      delta_interval = first_watchdog->delta_interval;                
 80149d4:	28 26 00 10 	lw r6,(r1+16)                                  
      first_watchdog = _Watchdog_First( &ts->Interval_watchdogs.Chain );
                                                                      
      /*                                                              
       *  We assume adequate unsigned arithmetic here.                
       */                                                             
      delta = snapshot - last_snapshot;                               
 80149d8:	c8 65 28 00 	sub r5,r3,r5                                   
                                                                      
      delta_interval = first_watchdog->delta_interval;                
      if (delta_interval > delta) {                                   
        delta_interval -= delta;                                      
      } else {                                                        
        delta_interval = 0;                                           
 80149dc:	34 04 00 00 	mvi r4,0                                       
       *  We assume adequate unsigned arithmetic here.                
       */                                                             
      delta = snapshot - last_snapshot;                               
                                                                      
      delta_interval = first_watchdog->delta_interval;                
      if (delta_interval > delta) {                                   
 80149e0:	50 a6 00 02 	bgeu r5,r6,80149e8 <_Timer_server_Schedule_operation_method+0x70>
        delta_interval -= delta;                                      
 80149e4:	c8 c5 20 00 	sub r4,r6,r5                                   
      } else {                                                        
        delta_interval = 0;                                           
      }                                                               
      first_watchdog->delta_interval = delta_interval;                
 80149e8:	58 24 00 10 	sw (r1+16),r4                                  
    }                                                                 
    ts->Interval_watchdogs.last_snapshot = snapshot;                  
 80149ec:	59 63 00 3c 	sw (r11+60),r3                                 
    _ISR_Enable( level );                                             
 80149f0:	d0 02 00 00 	wcsr IE,r2                                     
                                                                      
    _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
 80149f4:	35 61 00 30 	addi r1,r11,48                                 
 80149f8:	35 82 00 10 	addi r2,r12,16                                 
 80149fc:	f8 00 14 e2 	calli 8019d84 <_Watchdog_Insert>               
                                                                      
    if ( !ts->active ) {                                              
 8014a00:	41 61 00 7c 	lbu r1,(r11+124)                               
 8014a04:	20 21 00 ff 	andi r1,r1,0xff                                
 8014a08:	5c 20 00 24 	bne r1,r0,8014a98 <_Timer_server_Schedule_operation_method+0x120>
      _Timer_server_Reset_interval_system_watchdog( ts );             
 8014a0c:	b9 60 08 00 	mv r1,r11                                      
 8014a10:	fb ff ff 25 	calli 80146a4 <_Timer_server_Reset_interval_system_watchdog>
 8014a14:	e0 00 00 21 	bi 8014a98 <_Timer_server_Schedule_operation_method+0x120>
    }                                                                 
  } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {       
 8014a18:	34 02 00 03 	mvi r2,3                                       
 8014a1c:	5c 22 00 1f 	bne r1,r2,8014a98 <_Timer_server_Schedule_operation_method+0x120>
    /*                                                                
     *  We have to advance the last known seconds value of the server and update
     *  the watchdog chain accordingly.                               
     */                                                               
    _ISR_Disable( level );                                            
 8014a20:	90 00 30 00 	rcsr r6,IE                                     
 8014a24:	34 01 ff fe 	mvi r1,-2                                      
 8014a28:	a0 c1 08 00 	and r1,r6,r1                                   
 8014a2c:	d0 01 00 00 	wcsr IE,r1                                     
      initialized = false;                                            
    }                                                                 
  #endif                                                              
                                                                      
  return status;                                                      
}                                                                     
 8014a30:	29 62 00 68 	lw r2,(r11+104)                                
    /*                                                                
     *  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();        
 8014a34:	78 01 08 03 	mvhi r1,0x803                                  
    last_snapshot = ts->TOD_watchdogs.last_snapshot;                  
 8014a38:	29 65 00 74 	lw r5,(r11+116)                                
    /*                                                                
     *  We have to advance the last known seconds value of the server and update
     *  the watchdog chain accordingly.                               
     */                                                               
    _ISR_Disable( level );                                            
    snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();        
 8014a3c:	38 21 ed 20 	ori r1,r1,0xed20                               
 8014a40:	35 63 00 6c 	addi r3,r11,108                                
 8014a44:	28 21 00 00 	lw r1,(r1+0)                                   
    last_snapshot = ts->TOD_watchdogs.last_snapshot;                  
    if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) {             
 8014a48:	44 43 00 0a 	be r2,r3,8014a70 <_Timer_server_Schedule_operation_method+0xf8>
      first_watchdog = _Watchdog_First( &ts->TOD_watchdogs.Chain );   
      delta_interval = first_watchdog->delta_interval;                
 8014a4c:	28 44 00 10 	lw r4,(r2+16)                                  
        }                                                             
      } else {                                                        
        /*                                                            
         *  Someone put us in the past.                               
         */                                                           
        delta = last_snapshot - snapshot;                             
 8014a50:	b4 85 18 00 	add r3,r4,r5                                   
        delta_interval += delta;                                      
 8014a54:	c8 61 18 00 	sub r3,r3,r1                                   
    snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();        
    last_snapshot = ts->TOD_watchdogs.last_snapshot;                  
    if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) {             
      first_watchdog = _Watchdog_First( &ts->TOD_watchdogs.Chain );   
      delta_interval = first_watchdog->delta_interval;                
      if ( snapshot > last_snapshot ) {                               
 8014a58:	50 a1 00 05 	bgeu r5,r1,8014a6c <_Timer_server_Schedule_operation_method+0xf4>
        /*                                                            
         *  We advanced in time.                                      
         */                                                           
        delta = snapshot - last_snapshot;                             
 8014a5c:	c8 25 28 00 	sub r5,r1,r5                                   
        if (delta_interval > delta) {                                 
          delta_interval -= delta;                                    
        } else {                                                      
          delta_interval = 0;                                         
 8014a60:	34 03 00 00 	mvi r3,0                                       
      if ( snapshot > last_snapshot ) {                               
        /*                                                            
         *  We advanced in time.                                      
         */                                                           
        delta = snapshot - last_snapshot;                             
        if (delta_interval > delta) {                                 
 8014a64:	50 a4 00 02 	bgeu r5,r4,8014a6c <_Timer_server_Schedule_operation_method+0xf4><== NEVER TAKEN
          delta_interval -= delta;                                    
 8014a68:	c8 85 18 00 	sub r3,r4,r5                                   
         *  Someone put us in the past.                               
         */                                                           
        delta = last_snapshot - snapshot;                             
        delta_interval += delta;                                      
      }                                                               
      first_watchdog->delta_interval = delta_interval;                
 8014a6c:	58 43 00 10 	sw (r2+16),r3                                  
    }                                                                 
    ts->TOD_watchdogs.last_snapshot = snapshot;                       
 8014a70:	59 61 00 74 	sw (r11+116),r1                                
    _ISR_Enable( level );                                             
 8014a74:	d0 06 00 00 	wcsr IE,r6                                     
                                                                      
    _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );     
 8014a78:	35 61 00 68 	addi r1,r11,104                                
 8014a7c:	35 82 00 10 	addi r2,r12,16                                 
 8014a80:	f8 00 14 c1 	calli 8019d84 <_Watchdog_Insert>               
                                                                      
    if ( !ts->active ) {                                              
 8014a84:	41 61 00 7c 	lbu r1,(r11+124)                               
 8014a88:	20 21 00 ff 	andi r1,r1,0xff                                
 8014a8c:	5c 20 00 03 	bne r1,r0,8014a98 <_Timer_server_Schedule_operation_method+0x120><== NEVER TAKEN
      _Timer_server_Reset_tod_system_watchdog( ts );                  
 8014a90:	b9 60 08 00 	mv r1,r11                                      
 8014a94:	fb ff ff 21 	calli 8014718 <_Timer_server_Reset_tod_system_watchdog>
    }                                                                 
  }                                                                   
                                                                      
  _Thread_Enable_dispatch();                                          
 8014a98:	f8 00 0f 95 	calli 80188ec <_Thread_Enable_dispatch>        
 8014a9c:	e0 00 00 03 	bi 8014aa8 <_Timer_server_Schedule_operation_method+0x130>
     *  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 );           
 8014aa0:	29 61 00 78 	lw r1,(r11+120)                                <== NOT EXECUTED
 8014aa4:	f8 00 02 ce 	calli 80155dc <_Chain_Append>                  <== NOT EXECUTED
  }                                                                   
}                                                                     
 8014aa8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8014aac:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8014ab0:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8014ab4:	37 9c 00 0c 	addi sp,sp,12                                  
 8014ab8:	c3 a0 00 00 	ret                                            
                                                                      

08006388 <_User_extensions_Handler_initialization>: #include <rtems/score/userext.h> #include <rtems/score/wkspace.h> #include <string.h> void _User_extensions_Handler_initialization(void) {
 8006388:	37 9c ff ec 	addi sp,sp,-20                                 
 800638c:	5b 8b 00 14 	sw (sp+20),r11                                 
 8006390:	5b 8c 00 10 	sw (sp+16),r12                                 
 8006394:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8006398:	5b 8e 00 08 	sw (sp+8),r14                                  
 800639c:	5b 9d 00 04 	sw (sp+4),ra                                   
  User_extensions_Control *extension;                                 
  uint32_t                 i;                                         
  uint32_t                 number_of_extensions;                      
  User_extensions_Table   *initial_extensions;                        
                                                                      
  number_of_extensions = Configuration.number_of_initial_extensions;  
 80063a0:	78 02 08 01 	mvhi r2,0x801                                  
 80063a4:	38 42 30 f4 	ori r2,r2,0x30f4                               
 80063a8:	28 4e 00 38 	lw r14,(r2+56)                                 
  initial_extensions   = Configuration.User_extension_table;          
 80063ac:	28 4b 00 3c 	lw r11,(r2+60)                                 
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 80063b0:	78 03 08 01 	mvhi r3,0x801                                  
 80063b4:	78 02 08 01 	mvhi r2,0x801                                  
 80063b8:	38 42 39 e4 	ori r2,r2,0x39e4                               
 80063bc:	38 63 39 e8 	ori r3,r3,0x39e8                               
 80063c0:	58 43 00 00 	sw (r2+0),r3                                   
  head->previous = NULL;                                              
 80063c4:	58 40 00 04 	sw (r2+4),r0                                   
  tail->previous = head;                                              
 80063c8:	58 42 00 08 	sw (r2+8),r2                                   
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 80063cc:	78 03 08 01 	mvhi r3,0x801                                  
 80063d0:	78 02 08 01 	mvhi r2,0x801                                  
 80063d4:	38 42 38 8c 	ori r2,r2,0x388c                               
 80063d8:	38 63 38 90 	ori r3,r3,0x3890                               
 80063dc:	58 43 00 00 	sw (r2+0),r3                                   
  head->previous = NULL;                                              
 80063e0:	58 40 00 04 	sw (r2+4),r0                                   
  tail->previous = head;                                              
 80063e4:	58 42 00 08 	sw (r2+8),r2                                   
                                                                      
  _Chain_Initialize_empty( &_User_extensions_List );                  
  _Chain_Initialize_empty( &_User_extensions_Switches_list );         
                                                                      
  if ( initial_extensions ) {                                         
 80063e8:	45 60 00 22 	be r11,r0,8006470 <_User_extensions_Handler_initialization+0xe8><== NEVER TAKEN
    extension = (User_extensions_Control *)                           
      _Workspace_Allocate_or_fatal_error(                             
        number_of_extensions * sizeof( User_extensions_Control )      
 80063ec:	34 02 00 34 	mvi r2,52                                      
 80063f0:	b9 c0 08 00 	mv r1,r14                                      
 80063f4:	f8 00 29 9a 	calli 8010a5c <__mulsi3>                       
 80063f8:	b8 20 68 00 	mv r13,r1                                      
  _Chain_Initialize_empty( &_User_extensions_List );                  
  _Chain_Initialize_empty( &_User_extensions_Switches_list );         
                                                                      
  if ( initial_extensions ) {                                         
    extension = (User_extensions_Control *)                           
      _Workspace_Allocate_or_fatal_error(                             
 80063fc:	f8 00 01 d4 	calli 8006b4c <_Workspace_Allocate_or_fatal_error>
        number_of_extensions * sizeof( User_extensions_Control )      
      );                                                              
                                                                      
    memset (                                                          
 8006400:	b9 a0 18 00 	mv r3,r13                                      
 8006404:	34 02 00 00 	mvi r2,0                                       
  _Chain_Initialize_empty( &_User_extensions_List );                  
  _Chain_Initialize_empty( &_User_extensions_Switches_list );         
                                                                      
  if ( initial_extensions ) {                                         
    extension = (User_extensions_Control *)                           
      _Workspace_Allocate_or_fatal_error(                             
 8006408:	b8 20 60 00 	mv r12,r1                                      
      extension,                                                      
      0,                                                              
      number_of_extensions * sizeof( User_extensions_Control )        
    );                                                                
                                                                      
    for ( i = 0 ; i < number_of_extensions ; i++ ) {                  
 800640c:	34 0d 00 00 	mvi r13,0                                      
    extension = (User_extensions_Control *)                           
      _Workspace_Allocate_or_fatal_error(                             
        number_of_extensions * sizeof( User_extensions_Control )      
      );                                                              
                                                                      
    memset (                                                          
 8006410:	f8 00 16 d7 	calli 800bf6c <memset>                         
      extension,                                                      
      0,                                                              
      number_of_extensions * sizeof( User_extensions_Control )        
    );                                                                
                                                                      
    for ( i = 0 ; i < number_of_extensions ; i++ ) {                  
 8006414:	e0 00 00 16 	bi 800646c <_User_extensions_Handler_initialization+0xe4>
RTEMS_INLINE_ROUTINE void _User_extensions_Add_set_with_table(        
  User_extensions_Control     *extension,                             
  const User_extensions_Table *extension_table                        
)                                                                     
{                                                                     
  extension->Callouts = *extension_table;                             
 8006418:	29 61 00 1c 	lw r1,(r11+28)                                 
 800641c:	29 68 00 00 	lw r8,(r11+0)                                  
 8006420:	29 67 00 04 	lw r7,(r11+4)                                  
 8006424:	29 66 00 08 	lw r6,(r11+8)                                  
 8006428:	29 65 00 0c 	lw r5,(r11+12)                                 
 800642c:	29 64 00 10 	lw r4,(r11+16)                                 
 8006430:	29 63 00 14 	lw r3,(r11+20)                                 
 8006434:	29 62 00 18 	lw r2,(r11+24)                                 
 8006438:	59 81 00 30 	sw (r12+48),r1                                 
 800643c:	59 88 00 14 	sw (r12+20),r8                                 
 8006440:	59 87 00 18 	sw (r12+24),r7                                 
 8006444:	59 86 00 1c 	sw (r12+28),r6                                 
 8006448:	59 85 00 20 	sw (r12+32),r5                                 
 800644c:	59 84 00 24 	sw (r12+36),r4                                 
 8006450:	59 83 00 28 	sw (r12+40),r3                                 
 8006454:	59 82 00 2c 	sw (r12+44),r2                                 
                                                                      
  _User_extensions_Add_set( extension );                              
 8006458:	b9 80 08 00 	mv r1,r12                                      
 800645c:	f8 00 0d 35 	calli 8009930 <_User_extensions_Add_set>       
      _User_extensions_Add_set_with_table (extension, &initial_extensions[i]);
      extension++;                                                    
 8006460:	35 8c 00 34 	addi r12,r12,52                                
      extension,                                                      
      0,                                                              
      number_of_extensions * sizeof( User_extensions_Control )        
    );                                                                
                                                                      
    for ( i = 0 ; i < number_of_extensions ; i++ ) {                  
 8006464:	35 ad 00 01 	addi r13,r13,1                                 
 8006468:	35 6b 00 20 	addi r11,r11,32                                
 800646c:	55 cd ff eb 	bgu r14,r13,8006418 <_User_extensions_Handler_initialization+0x90>
      _User_extensions_Add_set_with_table (extension, &initial_extensions[i]);
      extension++;                                                    
    }                                                                 
  }                                                                   
}                                                                     
 8006470:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006474:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8006478:	2b 8c 00 10 	lw r12,(sp+16)                                 
 800647c:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8006480:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8006484:	37 9c 00 14 	addi sp,sp,20                                  
 8006488:	c3 a0 00 00 	ret                                            
                                                                      

080088d4 <_Watchdog_Adjust>: void _Watchdog_Adjust( Chain_Control *header, Watchdog_Adjust_directions direction, Watchdog_Interval units ) {
 80088d4:	37 9c ff e4 	addi sp,sp,-28                                 
 80088d8:	5b 8b 00 1c 	sw (sp+28),r11                                 
 80088dc:	5b 8c 00 18 	sw (sp+24),r12                                 
 80088e0:	5b 8d 00 14 	sw (sp+20),r13                                 
 80088e4:	5b 8e 00 10 	sw (sp+16),r14                                 
 80088e8:	5b 8f 00 0c 	sw (sp+12),r15                                 
 80088ec:	5b 90 00 08 	sw (sp+8),r16                                  
 80088f0:	5b 9d 00 04 	sw (sp+4),ra                                   
 80088f4:	b8 20 60 00 	mv r12,r1                                      
 80088f8:	b8 60 58 00 	mv r11,r3                                      
  ISR_Level level;                                                    
                                                                      
  _ISR_Disable( level );                                              
 80088fc:	90 00 08 00 	rcsr r1,IE                                     
 8008900:	34 03 ff fe 	mvi r3,-2                                      
 8008904:	a0 23 18 00 	and r3,r1,r3                                   
 8008908:	d0 03 00 00 	wcsr IE,r3                                     
    }                                                                 
  }                                                                   
                                                                      
  _ISR_Enable( level );                                               
                                                                      
}                                                                     
 800890c:	29 83 00 00 	lw r3,(r12+0)                                  
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
 8008910:	35 8e 00 04 	addi r14,r12,4                                 
   *       hence the compiler must not assume *header to remain       
   *       unmodified across that call.                               
   *                                                                  
   *       Till Straumann, 7/2003                                     
   */                                                                 
  if ( !_Chain_Is_empty( header ) ) {                                 
 8008914:	44 6e 00 1d 	be r3,r14,8008988 <_Watchdog_Adjust+0xb4>      
    switch ( direction ) {                                            
 8008918:	44 40 00 04 	be r2,r0,8008928 <_Watchdog_Adjust+0x54>       
 800891c:	34 04 00 01 	mvi r4,1                                       
 8008920:	5c 44 00 1a 	bne r2,r4,8008988 <_Watchdog_Adjust+0xb4>      <== NEVER TAKEN
 8008924:	e0 00 00 04 	bi 8008934 <_Watchdog_Adjust+0x60>             
          if ( units < _Watchdog_First( header )->delta_interval ) {  
            _Watchdog_First( header )->delta_interval -= units;       
            break;                                                    
          } else {                                                    
            units -= _Watchdog_First( header )->delta_interval;       
            _Watchdog_First( header )->delta_interval = 1;            
 8008928:	34 10 00 01 	mvi r16,1                                      
                                                                      
            _ISR_Enable( level );                                     
                                                                      
            _Watchdog_Tickle( header );                               
                                                                      
            _ISR_Disable( level );                                    
 800892c:	34 0f ff fe 	mvi r15,-2                                     
 8008930:	e0 00 00 15 	bi 8008984 <_Watchdog_Adjust+0xb0>             
   *       Till Straumann, 7/2003                                     
   */                                                                 
  if ( !_Chain_Is_empty( header ) ) {                                 
    switch ( direction ) {                                            
      case WATCHDOG_BACKWARD:                                         
        _Watchdog_First( header )->delta_interval += units;           
 8008934:	28 62 00 10 	lw r2,(r3+16)                                  
 8008938:	b4 4b 58 00 	add r11,r2,r11                                 
 800893c:	58 6b 00 10 	sw (r3+16),r11                                 
        break;                                                        
 8008940:	e0 00 00 12 	bi 8008988 <_Watchdog_Adjust+0xb4>             
RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First(               
  Chain_Control *header                                               
)                                                                     
{                                                                     
                                                                      
  return ( (Watchdog_Control *) _Chain_First( header ) );             
 8008944:	29 82 00 00 	lw r2,(r12+0)                                  
      case WATCHDOG_FORWARD:                                          
        while ( units ) {                                             
          if ( units < _Watchdog_First( header )->delta_interval ) {  
 8008948:	28 4d 00 10 	lw r13,(r2+16)                                 
 800894c:	51 6d 00 04 	bgeu r11,r13,800895c <_Watchdog_Adjust+0x88>   
            _Watchdog_First( header )->delta_interval -= units;       
 8008950:	c9 ab 58 00 	sub r11,r13,r11                                
 8008954:	58 4b 00 10 	sw (r2+16),r11                                 
            break;                                                    
 8008958:	e0 00 00 0c 	bi 8008988 <_Watchdog_Adjust+0xb4>             
          } else {                                                    
            units -= _Watchdog_First( header )->delta_interval;       
            _Watchdog_First( header )->delta_interval = 1;            
 800895c:	58 50 00 10 	sw (r2+16),r16                                 
                                                                      
            _ISR_Enable( level );                                     
 8008960:	d0 01 00 00 	wcsr IE,r1                                     
                                                                      
            _Watchdog_Tickle( header );                               
 8008964:	b9 80 08 00 	mv r1,r12                                      
 8008968:	f8 00 00 9a 	calli 8008bd0 <_Watchdog_Tickle>               
                                                                      
            _ISR_Disable( level );                                    
 800896c:	90 00 08 00 	rcsr r1,IE                                     
 8008970:	a0 2f 10 00 	and r2,r1,r15                                  
 8008974:	d0 02 00 00 	wcsr IE,r2                                     
                                                                      
            if ( _Chain_Is_empty( header ) )                          
 8008978:	29 82 00 00 	lw r2,(r12+0)                                  
 800897c:	44 4e 00 03 	be r2,r14,8008988 <_Watchdog_Adjust+0xb4>      
        while ( units ) {                                             
          if ( units < _Watchdog_First( header )->delta_interval ) {  
            _Watchdog_First( header )->delta_interval -= units;       
            break;                                                    
          } else {                                                    
            units -= _Watchdog_First( header )->delta_interval;       
 8008980:	c9 6d 58 00 	sub r11,r11,r13                                
    switch ( direction ) {                                            
      case WATCHDOG_BACKWARD:                                         
        _Watchdog_First( header )->delta_interval += units;           
        break;                                                        
      case WATCHDOG_FORWARD:                                          
        while ( units ) {                                             
 8008984:	5d 60 ff f0 	bne r11,r0,8008944 <_Watchdog_Adjust+0x70>     <== ALWAYS TAKEN
        }                                                             
        break;                                                        
    }                                                                 
  }                                                                   
                                                                      
  _ISR_Enable( level );                                               
 8008988:	d0 01 00 00 	wcsr IE,r1                                     
                                                                      
}                                                                     
 800898c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8008990:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 8008994:	2b 8c 00 18 	lw r12,(sp+24)                                 
 8008998:	2b 8d 00 14 	lw r13,(sp+20)                                 
 800899c:	2b 8e 00 10 	lw r14,(sp+16)                                 
 80089a0:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 80089a4:	2b 90 00 08 	lw r16,(sp+8)                                  
 80089a8:	37 9c 00 1c 	addi sp,sp,28                                  
 80089ac:	c3 a0 00 00 	ret                                            
                                                                      

08006914 <_Watchdog_Remove>: { ISR_Level level; Watchdog_States previous_state; Watchdog_Control *next_watchdog; _ISR_Disable( level );
 8006914:	90 00 28 00 	rcsr r5,IE                                     
 8006918:	34 02 ff fe 	mvi r2,-2                                      
 800691c:	a0 a2 10 00 	and r2,r5,r2                                   
 8006920:	d0 02 00 00 	wcsr IE,r2                                     
  previous_state = the_watchdog->state;                               
 8006924:	28 23 00 08 	lw r3,(r1+8)                                   
  switch ( previous_state ) {                                         
 8006928:	34 02 00 01 	mvi r2,1                                       
 800692c:	44 62 00 05 	be r3,r2,8006940 <_Watchdog_Remove+0x2c>       
 8006930:	44 60 00 1b 	be r3,r0,800699c <_Watchdog_Remove+0x88>       
 8006934:	34 02 00 03 	mvi r2,3                                       
 8006938:	54 62 00 19 	bgu r3,r2,800699c <_Watchdog_Remove+0x88>      <== NEVER TAKEN
 800693c:	e0 00 00 03 	bi 8006948 <_Watchdog_Remove+0x34>             
                                                                      
      /*                                                              
       *  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;                        
 8006940:	58 20 00 08 	sw (r1+8),r0                                   
      break;                                                          
 8006944:	e0 00 00 16 	bi 800699c <_Watchdog_Remove+0x88>             
  }                                                                   
  the_watchdog->stop_time = _Watchdog_Ticks_since_boot;               
                                                                      
  _ISR_Enable( level );                                               
  return( previous_state );                                           
}                                                                     
 8006948:	28 22 00 00 	lw r2,(r1+0)                                   
      break;                                                          
                                                                      
    case WATCHDOG_ACTIVE:                                             
    case WATCHDOG_REMOVE_IT:                                          
                                                                      
      the_watchdog->state = WATCHDOG_INACTIVE;                        
 800694c:	58 20 00 08 	sw (r1+8),r0                                   
      next_watchdog = _Watchdog_Next( the_watchdog );                 
                                                                      
      if ( _Watchdog_Next(next_watchdog) )                            
 8006950:	28 44 00 00 	lw r4,(r2+0)                                   
 8006954:	44 80 00 05 	be r4,r0,8006968 <_Watchdog_Remove+0x54>       
        next_watchdog->delta_interval += the_watchdog->delta_interval;
 8006958:	28 46 00 10 	lw r6,(r2+16)                                  
 800695c:	28 24 00 10 	lw r4,(r1+16)                                  
 8006960:	b4 c4 20 00 	add r4,r6,r4                                   
 8006964:	58 44 00 10 	sw (r2+16),r4                                  
                                                                      
      if ( _Watchdog_Sync_count )                                     
 8006968:	78 04 08 01 	mvhi r4,0x801                                  
 800696c:	38 84 39 94 	ori r4,r4,0x3994                               
 8006970:	28 84 00 00 	lw r4,(r4+0)                                   
 8006974:	44 80 00 07 	be r4,r0,8006990 <_Watchdog_Remove+0x7c>       
        _Watchdog_Sync_level = _ISR_Nest_level;                       
 8006978:	78 04 08 01 	mvhi r4,0x801                                  
 800697c:	38 84 3a 28 	ori r4,r4,0x3a28                               
 8006980:	28 86 00 08 	lw r6,(r4+8)                                   
 8006984:	78 04 08 01 	mvhi r4,0x801                                  
 8006988:	38 84 39 2c 	ori r4,r4,0x392c                               
 800698c:	58 86 00 00 	sw (r4+0),r6                                   
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
 8006990:	28 24 00 04 	lw r4,(r1+4)                                   
  next->previous = previous;                                          
 8006994:	58 44 00 04 	sw (r2+4),r4                                   
  previous->next = next;                                              
 8006998:	58 82 00 00 	sw (r4+0),r2                                   
                                                                      
      _Chain_Extract_unprotected( &the_watchdog->Node );              
      break;                                                          
  }                                                                   
  the_watchdog->stop_time = _Watchdog_Ticks_since_boot;               
 800699c:	78 02 08 01 	mvhi r2,0x801                                  
 80069a0:	38 42 39 98 	ori r2,r2,0x3998                               
 80069a4:	28 42 00 00 	lw r2,(r2+0)                                   
 80069a8:	58 22 00 18 	sw (r1+24),r2                                  
                                                                      
  _ISR_Enable( level );                                               
 80069ac:	d0 05 00 00 	wcsr IE,r5                                     
  return( previous_state );                                           
}                                                                     
 80069b0:	b8 60 08 00 	mv r1,r3                                       
 80069b4:	c3 a0 00 00 	ret                                            
                                                                      

080084f0 <_Watchdog_Report_chain>: void _Watchdog_Report_chain( const char *name, Chain_Control *header ) {
 80084f0:	37 9c ff ec 	addi sp,sp,-20                                 
 80084f4:	5b 8b 00 14 	sw (sp+20),r11                                 
 80084f8:	5b 8c 00 10 	sw (sp+16),r12                                 
 80084fc:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8008500:	5b 8e 00 08 	sw (sp+8),r14                                  
 8008504:	5b 9d 00 04 	sw (sp+4),ra                                   
 8008508:	b8 20 70 00 	mv r14,r1                                      
 800850c:	b8 40 60 00 	mv r12,r2                                      
  ISR_Level          level;                                           
  Chain_Node        *node;                                            
                                                                      
  _ISR_Disable( level );                                              
 8008510:	90 00 68 00 	rcsr r13,IE                                    
 8008514:	34 01 ff fe 	mvi r1,-2                                      
 8008518:	a1 a1 08 00 	and r1,r13,r1                                  
 800851c:	d0 01 00 00 	wcsr IE,r1                                     
    printk( "Watchdog Chain: %s %p\n", name, header );                
 8008520:	78 01 08 01 	mvhi r1,0x801                                  
 8008524:	b9 80 18 00 	mv r3,r12                                      
 8008528:	38 21 d5 28 	ori r1,r1,0xd528                               
 800852c:	b9 c0 10 00 	mv r2,r14                                      
 8008530:	fb ff eb b2 	calli 80033f8 <printk>                         
      printk( "== end of %s \n", name );                              
    } else {                                                          
      printk( "Chain is empty\n" );                                   
    }                                                                 
  _ISR_Enable( level );                                               
}                                                                     
 8008534:	29 8b 00 00 	lw r11,(r12+0)                                 
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
 8008538:	35 8c 00 04 	addi r12,r12,4                                 
  ISR_Level          level;                                           
  Chain_Node        *node;                                            
                                                                      
  _ISR_Disable( level );                                              
    printk( "Watchdog Chain: %s %p\n", name, header );                
    if ( !_Chain_Is_empty( header ) ) {                               
 800853c:	45 6c 00 0b 	be r11,r12,8008568 <_Watchdog_Report_chain+0x78>
            node != _Chain_Tail(header) ;                             
            node = node->next )                                       
      {                                                               
        Watchdog_Control *watch = (Watchdog_Control *) node;          
                                                                      
        _Watchdog_Report( NULL, watch );                              
 8008540:	b9 60 10 00 	mv r2,r11                                      
 8008544:	34 01 00 00 	mvi r1,0                                       
 8008548:	f8 00 00 13 	calli 8008594 <_Watchdog_Report>               
  _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 )                                       
 800854c:	29 6b 00 00 	lw r11,(r11+0)                                 
  Chain_Node        *node;                                            
                                                                      
  _ISR_Disable( level );                                              
    printk( "Watchdog Chain: %s %p\n", name, header );                
    if ( !_Chain_Is_empty( header ) ) {                               
      for ( node = _Chain_First( header ) ;                           
 8008550:	5d 6c ff fc 	bne r11,r12,8008540 <_Watchdog_Report_chain+0x50><== NEVER TAKEN
      {                                                               
        Watchdog_Control *watch = (Watchdog_Control *) node;          
                                                                      
        _Watchdog_Report( NULL, watch );                              
      }                                                               
      printk( "== end of %s \n", name );                              
 8008554:	78 01 08 01 	mvhi r1,0x801                                  
 8008558:	38 21 d5 40 	ori r1,r1,0xd540                               
 800855c:	b9 c0 10 00 	mv r2,r14                                      
 8008560:	fb ff eb a6 	calli 80033f8 <printk>                         
 8008564:	e0 00 00 04 	bi 8008574 <_Watchdog_Report_chain+0x84>       
    } else {                                                          
      printk( "Chain is empty\n" );                                   
 8008568:	78 01 08 01 	mvhi r1,0x801                                  
 800856c:	38 21 d5 50 	ori r1,r1,0xd550                               
 8008570:	fb ff eb a2 	calli 80033f8 <printk>                         
    }                                                                 
  _ISR_Enable( level );                                               
 8008574:	d0 0d 00 00 	wcsr IE,r13                                    
}                                                                     
 8008578:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800857c:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8008580:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8008584:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8008588:	2b 8e 00 08 	lw r14,(sp+8)                                  
 800858c:	37 9c 00 14 	addi sp,sp,20                                  
 8008590:	c3 a0 00 00 	ret                                            
                                                                      

080069b8 <_Watchdog_Tickle>: */ void _Watchdog_Tickle( Chain_Control *header ) {
 80069b8:	37 9c ff e4 	addi sp,sp,-28                                 
 80069bc:	5b 8b 00 1c 	sw (sp+28),r11                                 
 80069c0:	5b 8c 00 18 	sw (sp+24),r12                                 
 80069c4:	5b 8d 00 14 	sw (sp+20),r13                                 
 80069c8:	5b 8e 00 10 	sw (sp+16),r14                                 
 80069cc:	5b 8f 00 0c 	sw (sp+12),r15                                 
 80069d0:	5b 90 00 08 	sw (sp+8),r16                                  
 80069d4:	5b 9d 00 04 	sw (sp+4),ra                                   
 80069d8:	b8 20 60 00 	mv r12,r1                                      
   * See the comment in watchdoginsert.c and watchdogadjust.c         
   * about why it's safe not to declare header a pointer to           
   * volatile data - till, 2003/7                                     
   */                                                                 
                                                                      
  _ISR_Disable( level );                                              
 80069dc:	90 00 18 00 	rcsr r3,IE                                     
 80069e0:	34 01 ff fe 	mvi r1,-2                                      
 80069e4:	a0 61 08 00 	and r1,r3,r1                                   
 80069e8:	d0 01 00 00 	wcsr IE,r1                                     
   } while ( !_Chain_Is_empty( header ) &&                            
             (the_watchdog->delta_interval == 0) );                   
                                                                      
leave:                                                                
   _ISR_Enable(level);                                                
}                                                                     
 80069ec:	29 8b 00 00 	lw r11,(r12+0)                                 
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
 80069f0:	35 8e 00 04 	addi r14,r12,4                                 
   * See the comment in watchdoginsert.c and watchdogadjust.c         
   * about why it's safe not to declare header a pointer to           
   * volatile data - till, 2003/7                                     
   */                                                                 
                                                                      
  _ISR_Disable( level );                                              
 80069f4:	b8 60 10 00 	mv r2,r3                                       
                                                                      
  if ( _Chain_Is_empty( header ) )                                    
 80069f8:	45 6e 00 1a 	be r11,r14,8006a60 <_Watchdog_Tickle+0xa8>     
   * to be inserted has already had its delta_interval adjusted to 0, and
   * so is added to the head of the chain with a delta_interval of 0. 
   *                                                                  
   * Steven Johnson - 12/2005 (gcc-3.2.3 -O3 on powerpc)              
   */                                                                 
  if (the_watchdog->delta_interval != 0) {                            
 80069fc:	29 61 00 10 	lw r1,(r11+16)                                 
 8006a00:	44 20 00 04 	be r1,r0,8006a10 <_Watchdog_Tickle+0x58>       
    the_watchdog->delta_interval--;                                   
 8006a04:	34 21 ff ff 	addi r1,r1,-1                                  
 8006a08:	59 61 00 10 	sw (r11+16),r1                                 
    if ( the_watchdog->delta_interval != 0 )                          
 8006a0c:	5c 20 00 15 	bne r1,r0,8006a60 <_Watchdog_Tickle+0xa8>      
 */                                                                   
                                                                      
void _Watchdog_Tickle(                                                
  Chain_Control *header                                               
)                                                                     
{                                                                     
 8006a10:	b8 60 68 00 	mv r13,r3                                      
  do {                                                                
     watchdog_state = _Watchdog_Remove( the_watchdog );               
                                                                      
     _ISR_Enable( level );                                            
                                                                      
     switch( watchdog_state ) {                                       
 8006a14:	34 10 00 02 	mvi r16,2                                      
                                                                      
       case WATCHDOG_REMOVE_IT:                                       
         break;                                                       
     }                                                                
                                                                      
     _ISR_Disable( level );                                           
 8006a18:	34 0f ff fe 	mvi r15,-2                                     
 8006a1c:	e0 00 00 02 	bi 8006a24 <_Watchdog_Tickle+0x6c>             
 8006a20:	b8 40 68 00 	mv r13,r2                                      
    if ( the_watchdog->delta_interval != 0 )                          
      goto leave;                                                     
  }                                                                   
                                                                      
  do {                                                                
     watchdog_state = _Watchdog_Remove( the_watchdog );               
 8006a24:	b9 60 08 00 	mv r1,r11                                      
 8006a28:	fb ff ff bb 	calli 8006914 <_Watchdog_Remove>               
                                                                      
     _ISR_Enable( level );                                            
 8006a2c:	d0 0d 00 00 	wcsr IE,r13                                    
                                                                      
     switch( watchdog_state ) {                                       
 8006a30:	5c 30 00 05 	bne r1,r16,8006a44 <_Watchdog_Tickle+0x8c>     <== NEVER TAKEN
       case WATCHDOG_ACTIVE:                                          
         (*the_watchdog->routine)(                                    
 8006a34:	29 63 00 1c 	lw r3,(r11+28)                                 
 8006a38:	29 61 00 20 	lw r1,(r11+32)                                 
 8006a3c:	29 62 00 24 	lw r2,(r11+36)                                 
 8006a40:	d8 60 00 00 	call r3                                        
                                                                      
       case WATCHDOG_REMOVE_IT:                                       
         break;                                                       
     }                                                                
                                                                      
     _ISR_Disable( level );                                           
 8006a44:	90 00 10 00 	rcsr r2,IE                                     
 8006a48:	a0 4f 08 00 	and r1,r2,r15                                  
 8006a4c:	d0 01 00 00 	wcsr IE,r1                                     
   } while ( !_Chain_Is_empty( header ) &&                            
             (the_watchdog->delta_interval == 0) );                   
                                                                      
leave:                                                                
   _ISR_Enable(level);                                                
}                                                                     
 8006a50:	29 8b 00 00 	lw r11,(r12+0)                                 
                                                                      
     _ISR_Disable( level );                                           
                                                                      
     the_watchdog = _Watchdog_First( header );                        
   } while ( !_Chain_Is_empty( header ) &&                            
             (the_watchdog->delta_interval == 0) );                   
 8006a54:	45 6e 00 03 	be r11,r14,8006a60 <_Watchdog_Tickle+0xa8>     
     }                                                                
                                                                      
     _ISR_Disable( level );                                           
                                                                      
     the_watchdog = _Watchdog_First( header );                        
   } while ( !_Chain_Is_empty( header ) &&                            
 8006a58:	29 61 00 10 	lw r1,(r11+16)                                 
 8006a5c:	44 20 ff f1 	be r1,r0,8006a20 <_Watchdog_Tickle+0x68>       
             (the_watchdog->delta_interval == 0) );                   
                                                                      
leave:                                                                
   _ISR_Enable(level);                                                
 8006a60:	d0 02 00 00 	wcsr IE,r2                                     
}                                                                     
 8006a64:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006a68:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 8006a6c:	2b 8c 00 18 	lw r12,(sp+24)                                 
 8006a70:	2b 8d 00 14 	lw r13,(sp+20)                                 
 8006a74:	2b 8e 00 10 	lw r14,(sp+16)                                 
 8006a78:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 8006a7c:	2b 90 00 08 	lw r16,(sp+8)                                  
 8006a80:	37 9c 00 1c 	addi sp,sp,28                                  
 8006a84:	c3 a0 00 00 	ret                                            
                                                                      

080245f4 <__kill>: #endif int __kill( pid_t pid, int sig ) { return 0; }
 80245f4:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 80245f8:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

08001470 <_gettimeofday>: int _gettimeofday( struct timeval *tp, struct timezone *tzp ) {
 8001470:	37 9c ff fc 	addi sp,sp,-4                                  <== NOT EXECUTED
 8001474:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
  return gettimeofday( tp, tzp );                                     
 8001478:	fb ff ff d8 	calli 80013d8 <gettimeofday>                   <== NOT EXECUTED
}                                                                     
 800147c:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 8001480:	37 9c 00 04 	addi sp,sp,4                                   <== NOT EXECUTED
 8001484:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

0800608c <_rename_r>: int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) {
 800608c:	37 9c ff a0 	addi sp,sp,-96                                 
 8006090:	5b 8b 00 1c 	sw (sp+28),r11                                 
 8006094:	5b 8c 00 18 	sw (sp+24),r12                                 
 8006098:	5b 8d 00 14 	sw (sp+20),r13                                 
 800609c:	5b 8e 00 10 	sw (sp+16),r14                                 
 80060a0:	5b 8f 00 0c 	sw (sp+12),r15                                 
 80060a4:	5b 90 00 08 	sw (sp+8),r16                                  
 80060a8:	5b 9d 00 04 	sw (sp+4),ra                                   
                                                                      
  /*                                                                  
   *  Get the parent node of the old path to be renamed. Find the parent path.
   */                                                                 
                                                                      
  old_parent_pathlen = rtems_filesystem_dirname ( old );              
 80060ac:	b8 40 08 00 	mv r1,r2                                       
int _rename_r(                                                        
  struct _reent *ptr __attribute__((unused)),                         
  const char    *old,                                                 
  const char    *new                                                  
)                                                                     
{                                                                     
 80060b0:	b8 40 58 00 	mv r11,r2                                      
 80060b4:	b8 60 80 00 	mv r16,r3                                      
                                                                      
  /*                                                                  
   *  Get the parent node of the old path to be renamed. Find the parent path.
   */                                                                 
                                                                      
  old_parent_pathlen = rtems_filesystem_dirname ( old );              
 80060b8:	fb ff f9 80 	calli 80046b8 <rtems_filesystem_dirname>       
 80060bc:	b8 20 70 00 	mv r14,r1                                      
 80060c0:	37 84 00 34 	addi r4,sp,52                                  
                                                                      
  if ( old_parent_pathlen == 0 )                                      
 80060c4:	5c 20 00 07 	bne r1,r0,80060e0 <_rename_r+0x54>             
    rtems_filesystem_get_start_loc( old, &i, &old_parent_loc );       
 80060c8:	b9 60 08 00 	mv r1,r11                                      
 80060cc:	37 82 00 60 	addi r2,sp,96                                  
 80060d0:	b8 80 18 00 	mv r3,r4                                       
 80060d4:	f8 00 00 fa 	calli 80064bc <rtems_filesystem_get_start_loc> 
  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;     
 80060d8:	34 0d 00 00 	mvi r13,0                                      
 80060dc:	e0 00 00 09 	bi 8006100 <_rename_r+0x74>                    
  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, 
 80060e0:	b9 60 08 00 	mv r1,r11                                      
 80060e4:	b9 c0 10 00 	mv r2,r14                                      
 80060e8:	34 03 00 02 	mvi r3,2                                       
 80060ec:	34 05 00 00 	mvi r5,0                                       
 80060f0:	fb ff f9 57 	calli 800464c <rtems_filesystem_evaluate_path> 
                                             RTEMS_LIBIO_PERMS_WRITE, 
                                             &old_parent_loc,         
                                             false );                 
    if ( result != 0 )                                                
      return -1;                                                      
 80060f4:	34 0c ff ff 	mvi r12,-1                                     
  else {                                                              
    result = rtems_filesystem_evaluate_path( old, old_parent_pathlen, 
                                             RTEMS_LIBIO_PERMS_WRITE, 
                                             &old_parent_loc,         
                                             false );                 
    if ( result != 0 )                                                
 80060f8:	5c 20 00 59 	bne r1,r0,800625c <_rename_r+0x1d0>            <== NEVER TAKEN
      return -1;                                                      
                                                                      
    free_old_parentloc = true;                                        
 80060fc:	34 0d 00 01 	mvi r13,1                                      
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  old_loc = old_parent_loc;                                           
 8006100:	2b 81 00 34 	lw r1,(sp+52)                                  
  name = old + old_parent_pathlen;                                    
 8006104:	b5 6e 58 00 	add r11,r11,r14                                
 8006108:	5b 8b 00 5c 	sw (sp+92),r11                                 
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  old_loc = old_parent_loc;                                           
 800610c:	5b 81 00 48 	sw (sp+72),r1                                  
 8006110:	2b 81 00 38 	lw r1,(sp+56)                                  
  name = old + old_parent_pathlen;                                    
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
                                                                      
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
 8006114:	37 8c 00 48 	addi r12,sp,72                                 
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  old_loc = old_parent_loc;                                           
 8006118:	5b 81 00 4c 	sw (sp+76),r1                                  
 800611c:	2b 81 00 3c 	lw r1,(sp+60)                                  
 8006120:	5b 81 00 50 	sw (sp+80),r1                                  
 8006124:	2b 81 00 40 	lw r1,(sp+64)                                  
 8006128:	5b 81 00 54 	sw (sp+84),r1                                  
 800612c:	2b 81 00 44 	lw r1,(sp+68)                                  
 8006130:	5b 81 00 58 	sw (sp+88),r1                                  
  name = old + old_parent_pathlen;                                    
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
 8006134:	b9 60 08 00 	mv r1,r11                                      
 8006138:	f8 00 33 0e 	calli 8012d70 <strlen>                         
 800613c:	b8 20 10 00 	mv r2,r1                                       
 8006140:	b9 60 08 00 	mv r1,r11                                      
 8006144:	fb ff f9 71 	calli 8004708 <rtems_filesystem_prefix_separators>
 8006148:	b5 61 58 00 	add r11,r11,r1                                 
                                                                      
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
 800614c:	b9 60 08 00 	mv r1,r11                                      
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  old_loc = old_parent_loc;                                           
  name = old + old_parent_pathlen;                                    
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
 8006150:	5b 8b 00 5c 	sw (sp+92),r11                                 
                                                                      
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
 8006154:	f8 00 33 07 	calli 8012d70 <strlen>                         
 8006158:	b8 20 10 00 	mv r2,r1                                       
 800615c:	34 03 00 00 	mvi r3,0                                       
 8006160:	b9 60 08 00 	mv r1,r11                                      
 8006164:	b9 80 20 00 	mv r4,r12                                      
 8006168:	34 05 00 00 	mvi r5,0                                       
 800616c:	fb ff f9 16 	calli 80045c4 <rtems_filesystem_evaluate_relative_path>
 8006170:	b8 20 78 00 	mv r15,r1                                      
                                                    0, &old_loc, false );
  if ( result != 0 ) {                                                
 8006174:	44 20 00 05 	be r1,r0,8006188 <_rename_r+0xfc>              
    if ( free_old_parentloc )                                         
      rtems_filesystem_freenode( &old_parent_loc );                   
    return -1;                                                        
 8006178:	34 0c ff ff 	mvi r12,-1                                     
                                                                      
  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 );                   
 800617c:	37 81 00 34 	addi r1,sp,52                                  
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
                                                                      
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
                                                    0, &old_loc, false );
  if ( result != 0 ) {                                                
    if ( free_old_parentloc )                                         
 8006180:	45 a0 00 37 	be r13,r0,800625c <_rename_r+0x1d0>            <== NEVER TAKEN
 8006184:	e0 00 00 35 	bi 8006258 <_rename_r+0x1cc>                   
                                                                      
  /*                                                                  
   * Get the parent of the new node we are renaming to.               
   */                                                                 
                                                                      
  rtems_filesystem_get_start_loc( new, &i, &new_parent_loc );         
 8006188:	37 8b 00 20 	addi r11,sp,32                                 
 800618c:	ba 00 08 00 	mv r1,r16                                      
 8006190:	37 82 00 60 	addi r2,sp,96                                  
 8006194:	b9 60 18 00 	mv r3,r11                                      
 8006198:	f8 00 00 c9 	calli 80064bc <rtems_filesystem_get_start_loc> 
                                                                      
  result = (*new_parent_loc.ops->evalformake_h)( &new[i], &new_parent_loc, &name );
 800619c:	2b 81 00 2c 	lw r1,(sp+44)                                  
 80061a0:	b9 60 10 00 	mv r2,r11                                      
 80061a4:	37 83 00 5c 	addi r3,sp,92                                  
 80061a8:	28 24 00 04 	lw r4,(r1+4)                                   
 80061ac:	2b 81 00 60 	lw r1,(sp+96)                                  
 80061b0:	b6 01 08 00 	add r1,r16,r1                                  
 80061b4:	d8 80 00 00 	call r4                                        
 80061b8:	b8 20 70 00 	mv r14,r1                                      
  if ( result != 0 ) {                                                
 80061bc:	44 2f 00 09 	be r1,r15,80061e0 <_rename_r+0x154>            
    rtems_filesystem_freenode( &new_parent_loc );                     
 80061c0:	b9 60 08 00 	mv r1,r11                                      
 80061c4:	fb ff f9 f5 	calli 8004998 <rtems_filesystem_freenode>      
    if ( free_old_parentloc )                                         
 80061c8:	45 a0 00 03 	be r13,r0,80061d4 <_rename_r+0x148>            <== NEVER TAKEN
      rtems_filesystem_freenode( &old_parent_loc );                   
 80061cc:	37 81 00 34 	addi r1,sp,52                                  
 80061d0:	fb ff f9 f2 	calli 8004998 <rtems_filesystem_freenode>      
    rtems_filesystem_freenode( &old_loc );                            
 80061d4:	37 81 00 48 	addi r1,sp,72                                  
 80061d8:	fb ff f9 f0 	calli 8004998 <rtems_filesystem_freenode>      
 80061dc:	e0 00 00 0e 	bi 8006214 <_rename_r+0x188>                   
  /*                                                                  
   *  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 ) {         
 80061e0:	2b 81 00 30 	lw r1,(sp+48)                                  
 80061e4:	2b 82 00 44 	lw r2,(sp+68)                                  
 80061e8:	44 41 00 0d 	be r2,r1,800621c <_rename_r+0x190>             
    rtems_filesystem_freenode( &new_parent_loc );                     
 80061ec:	b9 60 08 00 	mv r1,r11                                      
 80061f0:	fb ff f9 ea 	calli 8004998 <rtems_filesystem_freenode>      
    if ( free_old_parentloc )                                         
 80061f4:	45 ae 00 03 	be r13,r14,8006200 <_rename_r+0x174>           
      rtems_filesystem_freenode( &old_parent_loc );                   
 80061f8:	37 81 00 34 	addi r1,sp,52                                  
 80061fc:	fb ff f9 e7 	calli 8004998 <rtems_filesystem_freenode>      
    rtems_filesystem_freenode( &old_loc );                            
 8006200:	37 81 00 48 	addi r1,sp,72                                  
 8006204:	fb ff f9 e5 	calli 8004998 <rtems_filesystem_freenode>      
    rtems_set_errno_and_return_minus_one( EXDEV );                    
 8006208:	f8 00 25 40 	calli 800f708 <__errno>                        
 800620c:	34 02 00 12 	mvi r2,18                                      
 8006210:	58 22 00 00 	sw (r1+0),r2                                   
 8006214:	34 0c ff ff 	mvi r12,-1                                     
 8006218:	e0 00 00 11 	bi 800625c <_rename_r+0x1d0>                   
  }                                                                   
                                                                      
  result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name );
 800621c:	2b 81 00 2c 	lw r1,(sp+44)                                  
 8006220:	2b 84 00 5c 	lw r4,(sp+92)                                  
 8006224:	37 8f 00 34 	addi r15,sp,52                                 
 8006228:	28 25 00 40 	lw r5,(r1+64)                                  
 800622c:	b9 80 10 00 	mv r2,r12                                      
 8006230:	b9 e0 08 00 	mv r1,r15                                      
 8006234:	b9 60 18 00 	mv r3,r11                                      
 8006238:	d8 a0 00 00 	call r5                                        
 800623c:	b8 20 60 00 	mv r12,r1                                      
                                                                      
  rtems_filesystem_freenode( &new_parent_loc );                       
 8006240:	b9 60 08 00 	mv r1,r11                                      
 8006244:	fb ff f9 d5 	calli 8004998 <rtems_filesystem_freenode>      
  if ( free_old_parentloc )                                           
 8006248:	45 ae 00 03 	be r13,r14,8006254 <_rename_r+0x1c8>           
    rtems_filesystem_freenode( &old_parent_loc );                     
 800624c:	b9 e0 08 00 	mv r1,r15                                      
 8006250:	fb ff f9 d2 	calli 8004998 <rtems_filesystem_freenode>      
  rtems_filesystem_freenode( &old_loc );                              
 8006254:	37 81 00 48 	addi r1,sp,72                                  
 8006258:	fb ff f9 d0 	calli 8004998 <rtems_filesystem_freenode>      
                                                                      
  return result;                                                      
}                                                                     
 800625c:	b9 80 08 00 	mv r1,r12                                      
 8006260:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006264:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 8006268:	2b 8c 00 18 	lw r12,(sp+24)                                 
 800626c:	2b 8d 00 14 	lw r13,(sp+20)                                 
 8006270:	2b 8e 00 10 	lw r14,(sp+16)                                 
 8006274:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 8006278:	2b 90 00 08 	lw r16,(sp+8)                                  
 800627c:	37 9c 00 60 	addi sp,sp,96                                  
 8006280:	c3 a0 00 00 	ret                                            
                                                                      

080013f4 <chroot>: #include <rtems/seterr.h> int chroot( const char *pathname ) {
 80013f4:	37 9c ff dc 	addi sp,sp,-36                                 
 80013f8:	5b 8b 00 10 	sw (sp+16),r11                                 
 80013fc:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8001400:	5b 8d 00 08 	sw (sp+8),r13                                  
 8001404:	5b 9d 00 04 	sw (sp+4),ra                                   
  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) {             
 8001408:	78 0b 08 01 	mvhi r11,0x801                                 
 800140c:	39 6b 31 34 	ori r11,r11,0x3134                             
 8001410:	29 6c 00 00 	lw r12,(r11+0)                                 
 8001414:	78 02 08 01 	mvhi r2,0x801                                  
 8001418:	38 42 37 48 	ori r2,r2,0x3748                               
#include <rtems/seterr.h>                                             
                                                                      
int chroot(                                                           
  const char *pathname                                                
)                                                                     
{                                                                     
 800141c:	b8 20 68 00 	mv r13,r1                                      
  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) {             
 8001420:	5d 82 00 08 	bne r12,r2,8001440 <chroot+0x4c>               
   rtems_libio_set_private_env(); /* try to set a new private env*/   
 8001424:	f8 00 05 a7 	calli 8002ac0 <rtems_libio_set_private_env>    
   if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ 
 8001428:	29 61 00 00 	lw r1,(r11+0)                                  
 800142c:	5c 2c 00 05 	bne r1,r12,8001440 <chroot+0x4c>               
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
 8001430:	f8 00 28 d1 	calli 800b774 <__errno>                        
 8001434:	34 02 00 86 	mvi r2,134                                     
 8001438:	58 22 00 00 	sw (r1+0),r2                                   
 800143c:	e0 00 00 0a 	bi 8001464 <chroot+0x70>                       
  }                                                                   
                                                                      
  result = chdir(pathname);                                           
 8001440:	b9 a0 08 00 	mv r1,r13                                      
 8001444:	f8 00 1c 78 	calli 8008624 <chdir>                          
 8001448:	b8 20 58 00 	mv r11,r1                                      
  if (result) {                                                       
 800144c:	44 20 00 08 	be r1,r0,800146c <chroot+0x78>                 
    rtems_set_errno_and_return_minus_one( errno );                    
 8001450:	f8 00 28 c9 	calli 800b774 <__errno>                        
 8001454:	b8 20 58 00 	mv r11,r1                                      
 8001458:	f8 00 28 c7 	calli 800b774 <__errno>                        
 800145c:	28 21 00 00 	lw r1,(r1+0)                                   
 8001460:	59 61 00 00 	sw (r11+0),r1                                  
 8001464:	34 01 ff ff 	mvi r1,-1                                      
 8001468:	e0 00 00 1a 	bi 80014d0 <chroot+0xdc>                       
  }                                                                   
                                                                      
  /* clone the new root location */                                   
  if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {           
 800146c:	78 01 08 01 	mvhi r1,0x801                                  
 8001470:	38 21 1e ac 	ori r1,r1,0x1eac                               
 8001474:	34 02 00 01 	mvi r2,1                                       
 8001478:	34 03 00 00 	mvi r3,0                                       
 800147c:	37 84 00 14 	addi r4,sp,20                                  
 8001480:	34 05 00 00 	mvi r5,0                                       
 8001484:	f8 00 00 68 	calli 8001624 <rtems_filesystem_evaluate_path> 
 8001488:	5c 2b ff f2 	bne r1,r11,8001450 <chroot+0x5c>               <== NEVER TAKEN
    /* 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);                  
 800148c:	78 0b 08 01 	mvhi r11,0x801                                 
 8001490:	39 6b 31 34 	ori r11,r11,0x3134                             
 8001494:	29 61 00 00 	lw r1,(r11+0)                                  
 8001498:	34 21 00 18 	addi r1,r1,24                                  
 800149c:	f8 00 00 aa 	calli 8001744 <rtems_filesystem_freenode>      
  rtems_filesystem_root = loc;                                        
 80014a0:	29 61 00 00 	lw r1,(r11+0)                                  
 80014a4:	2b 82 00 14 	lw r2,(sp+20)                                  
 80014a8:	58 22 00 18 	sw (r1+24),r2                                  
 80014ac:	2b 82 00 18 	lw r2,(sp+24)                                  
 80014b0:	58 22 00 1c 	sw (r1+28),r2                                  
 80014b4:	2b 82 00 1c 	lw r2,(sp+28)                                  
 80014b8:	58 22 00 20 	sw (r1+32),r2                                  
 80014bc:	2b 82 00 20 	lw r2,(sp+32)                                  
 80014c0:	58 22 00 24 	sw (r1+36),r2                                  
 80014c4:	2b 82 00 24 	lw r2,(sp+36)                                  
 80014c8:	58 22 00 28 	sw (r1+40),r2                                  
                                                                      
  return 0;                                                           
 80014cc:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 80014d0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80014d4:	2b 8b 00 10 	lw r11,(sp+16)                                 
 80014d8:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 80014dc:	2b 8d 00 08 	lw r13,(sp+8)                                  
 80014e0:	37 9c 00 24 	addi sp,sp,36                                  
 80014e4:	c3 a0 00 00 	ret                                            
                                                                      

080012b0 <ctermid>: static char *ctermid_name = "/dev/console"; char *ctermid( char *s ) {
 80012b0:	37 9c ff f8 	addi sp,sp,-8                                  <== NOT EXECUTED
 80012b4:	5b 8b 00 08 	sw (sp+8),r11                                  <== NOT EXECUTED
 80012b8:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
 80012bc:	78 02 08 00 	mvhi r2,0x800                                  <== NOT EXECUTED
 80012c0:	b8 20 58 00 	mv r11,r1                                      <== NOT EXECUTED
 80012c4:	38 42 ed 58 	ori r2,r2,0xed58                               <== NOT EXECUTED
  if ( !s )                                                           
 80012c8:	44 20 00 03 	be r1,r0,80012d4 <ctermid+0x24>                <== NOT EXECUTED
  /*                                                                  
   *  We have no way of knowing the length of the user provided buffer.
   *  It may not be large enough but there is no way to know that. :( 
   *  So this is a potential buffer owerrun that we can do nothing about.
   */                                                                 
  strcpy( s, ctermid_name );                                          
 80012cc:	f8 00 23 4a 	calli 8009ff4 <strcpy>                         <== NOT EXECUTED
  return s;                                                           
 80012d0:	e0 00 00 02 	bi 80012d8 <ctermid+0x28>                      <== NOT EXECUTED
char *ctermid(                                                        
  char *s                                                             
)                                                                     
{                                                                     
  if ( !s )                                                           
    return ctermid_name;                                              
 80012d4:	b8 40 58 00 	mv r11,r2                                      <== NOT EXECUTED
   *  It may not be large enough but there is no way to know that. :( 
   *  So this is a potential buffer owerrun that we can do nothing about.
   */                                                                 
  strcpy( s, ctermid_name );                                          
  return s;                                                           
}                                                                     
 80012d8:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 80012dc:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 80012e0:	2b 8b 00 08 	lw r11,(sp+8)                                  <== NOT EXECUTED
 80012e4:	37 9c 00 08 	addi sp,sp,8                                   <== NOT EXECUTED
 80012e8:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

08009644 <devFS_evaluate_path>: const char *pathname, size_t pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) {
 8009644:	37 9c ff e0 	addi sp,sp,-32                                 
 8009648:	5b 8b 00 20 	sw (sp+32),r11                                 
 800964c:	5b 8c 00 1c 	sw (sp+28),r12                                 
 8009650:	5b 8d 00 18 	sw (sp+24),r13                                 
 8009654:	5b 8e 00 14 	sw (sp+20),r14                                 
 8009658:	5b 8f 00 10 	sw (sp+16),r15                                 
 800965c:	5b 90 00 0c 	sw (sp+12),r16                                 
 8009660:	5b 91 00 08 	sw (sp+8),r17                                  
 8009664:	5b 9d 00 04 	sw (sp+4),ra                                   
 8009668:	b8 80 58 00 	mv r11,r4                                      
  int                   i;                                            
  rtems_device_name_t  *device_name_table;                            
                                                                      
  /* see if 'flags' is valid */                                       
  if ( !rtems_libio_is_valid_perms( flags ) )                         
 800966c:	34 04 ff f8 	mvi r4,-8                                      
 8009670:	a0 64 20 00 	and r4,r3,r4                                   
  const char                        *pathname,                        
  size_t                             pathnamelen,                     
  int                                flags,                           
  rtems_filesystem_location_info_t  *pathloc                          
)                                                                     
{                                                                     
 8009674:	b8 20 88 00 	mv r17,r1                                      
 8009678:	b8 40 80 00 	mv r16,r2                                      
  int                   i;                                            
  rtems_device_name_t  *device_name_table;                            
                                                                      
  /* see if 'flags' is valid */                                       
  if ( !rtems_libio_is_valid_perms( flags ) )                         
 800967c:	44 80 00 04 	be r4,r0,800968c <devFS_evaluate_path+0x48>    <== ALWAYS TAKEN
    rtems_set_errno_and_return_minus_one( EPERM );                    
 8009680:	f8 00 09 74 	calli 800bc50 <__errno>                        <== NOT EXECUTED
 8009684:	34 02 00 01 	mvi r2,1                                       <== NOT EXECUTED
 8009688:	e0 00 00 28 	bi 8009728 <devFS_evaluate_path+0xe4>          <== NOT EXECUTED
                                                                      
  /* get the device name table */                                     
  device_name_table = (rtems_device_name_t *)pathloc->node_access;    
 800968c:	29 6c 00 00 	lw r12,(r11+0)                                 
  if (!device_name_table)                                             
    rtems_set_errno_and_return_minus_one( EFAULT );                   
                                                                      
  for (i = 0; i < rtems_device_table_size; i++) {                     
 8009690:	78 0d 08 01 	mvhi r13,0x801                                 
  if ( !rtems_libio_is_valid_perms( flags ) )                         
    rtems_set_errno_and_return_minus_one( EPERM );                    
                                                                      
  /* get the device name table */                                     
  device_name_table = (rtems_device_name_t *)pathloc->node_access;    
  if (!device_name_table)                                             
 8009694:	34 0e 00 00 	mvi r14,0                                      
    rtems_set_errno_and_return_minus_one( EFAULT );                   
                                                                      
  for (i = 0; i < rtems_device_table_size; i++) {                     
 8009698:	39 ad b0 14 	ori r13,r13,0xb014                             
  if ( !rtems_libio_is_valid_perms( flags ) )                         
    rtems_set_errno_and_return_minus_one( EPERM );                    
                                                                      
  /* get the device name table */                                     
  device_name_table = (rtems_device_name_t *)pathloc->node_access;    
  if (!device_name_table)                                             
 800969c:	5d 84 00 1f 	bne r12,r4,8009718 <devFS_evaluate_path+0xd4>  
    rtems_set_errno_and_return_minus_one( EFAULT );                   
 80096a0:	f8 00 09 6c 	calli 800bc50 <__errno>                        
 80096a4:	34 02 00 0e 	mvi r2,14                                      
 80096a8:	e0 00 00 20 	bi 8009728 <devFS_evaluate_path+0xe4>          
                                                                      
  for (i = 0; i < rtems_device_table_size; i++) {                     
    if (!device_name_table[i].device_name)                            
 80096ac:	29 8f 00 00 	lw r15,(r12+0)                                 
 80096b0:	45 e0 00 18 	be r15,r0,8009710 <devFS_evaluate_path+0xcc>   
      continue;                                                       
                                                                      
    if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0)
 80096b4:	ba 20 08 00 	mv r1,r17                                      
 80096b8:	b9 e0 10 00 	mv r2,r15                                      
 80096bc:	ba 00 18 00 	mv r3,r16                                      
 80096c0:	f8 00 0f c5 	calli 800d5d4 <strncmp>                        
 80096c4:	b8 20 20 00 	mv r4,r1                                       
 80096c8:	5c 20 00 12 	bne r1,r0,8009710 <devFS_evaluate_path+0xcc>   
      continue;                                                       
                                                                      
    if (device_name_table[i].device_name[pathnamelen] != '\0')        
 80096cc:	b5 f0 78 00 	add r15,r15,r16                                
 80096d0:	41 e1 00 00 	lbu r1,(r15+0)                                 
 80096d4:	5c 24 00 0f 	bne r1,r4,8009710 <devFS_evaluate_path+0xcc>   <== NEVER TAKEN
      continue;                                                       
                                                                      
    /* find the device, set proper values */                          
    pathloc->node_access = (void *)&device_name_table[i];             
    pathloc->handlers = &devFS_file_handlers;                         
 80096d8:	78 01 08 01 	mvhi r1,0x801                                  
 80096dc:	38 21 b1 70 	ori r1,r1,0xb170                               
 80096e0:	59 61 00 08 	sw (r11+8),r1                                  
    pathloc->ops = &devFS_ops;                                        
 80096e4:	78 01 08 01 	mvhi r1,0x801                                  
 80096e8:	38 21 b1 28 	ori r1,r1,0xb128                               
 80096ec:	59 61 00 0c 	sw (r11+12),r1                                 
    pathloc->mt_entry = rtems_filesystem_root.mt_entry;               
 80096f0:	78 01 08 01 	mvhi r1,0x801                                  
 80096f4:	38 21 b1 b4 	ori r1,r1,0xb1b4                               
 80096f8:	28 21 00 00 	lw r1,(r1+0)                                   
                                                                      
    if (device_name_table[i].device_name[pathnamelen] != '\0')        
      continue;                                                       
                                                                      
    /* find the device, set proper values */                          
    pathloc->node_access = (void *)&device_name_table[i];             
 80096fc:	59 6c 00 00 	sw (r11+0),r12                                 
    pathloc->handlers = &devFS_file_handlers;                         
    pathloc->ops = &devFS_ops;                                        
    pathloc->mt_entry = rtems_filesystem_root.mt_entry;               
 8009700:	28 21 00 28 	lw r1,(r1+40)                                  
 8009704:	59 61 00 10 	sw (r11+16),r1                                 
    return 0;                                                         
 8009708:	34 01 00 00 	mvi r1,0                                       
 800970c:	e0 00 00 09 	bi 8009730 <devFS_evaluate_path+0xec>          
  /* 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++) {                     
 8009710:	35 ce 00 01 	addi r14,r14,1                                 
 8009714:	35 8c 00 14 	addi r12,r12,20                                
 8009718:	29 a1 00 00 	lw r1,(r13+0)                                  
 800971c:	54 2e ff e4 	bgu r1,r14,80096ac <devFS_evaluate_path+0x68>  
    pathloc->mt_entry = rtems_filesystem_root.mt_entry;               
    return 0;                                                         
  }                                                                   
                                                                      
  /* no such file or directory */                                     
  rtems_set_errno_and_return_minus_one( ENOENT );                     
 8009720:	f8 00 09 4c 	calli 800bc50 <__errno>                        
 8009724:	34 02 00 02 	mvi r2,2                                       
 8009728:	58 22 00 00 	sw (r1+0),r2                                   
 800972c:	34 01 ff ff 	mvi r1,-1                                      
}                                                                     
 8009730:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8009734:	2b 8b 00 20 	lw r11,(sp+32)                                 
 8009738:	2b 8c 00 1c 	lw r12,(sp+28)                                 
 800973c:	2b 8d 00 18 	lw r13,(sp+24)                                 
 8009740:	2b 8e 00 14 	lw r14,(sp+20)                                 
 8009744:	2b 8f 00 10 	lw r15,(sp+16)                                 
 8009748:	2b 90 00 0c 	lw r16,(sp+12)                                 
 800974c:	2b 91 00 08 	lw r17,(sp+8)                                  
 8009750:	37 9c 00 20 	addi sp,sp,32                                  
 8009754:	c3 a0 00 00 	ret                                            
                                                                      

08003bb4 <devFS_mknod>: const char *path, mode_t mode, dev_t dev, rtems_filesystem_location_info_t *pathloc ) {
 8003bb4:	37 9c ff d8 	addi sp,sp,-40                                 
 8003bb8:	5b 8b 00 28 	sw (sp+40),r11                                 
 8003bbc:	5b 8c 00 24 	sw (sp+36),r12                                 
 8003bc0:	5b 8d 00 20 	sw (sp+32),r13                                 
 8003bc4:	5b 8e 00 1c 	sw (sp+28),r14                                 
 8003bc8:	5b 8f 00 18 	sw (sp+24),r15                                 
 8003bcc:	5b 90 00 14 	sw (sp+20),r16                                 
 8003bd0:	5b 91 00 10 	sw (sp+16),r17                                 
 8003bd4:	5b 92 00 0c 	sw (sp+12),r18                                 
 8003bd8:	5b 93 00 08 	sw (sp+8),r19                                  
 8003bdc:	5b 9d 00 04 	sw (sp+4),ra                                   
 8003be0:	b8 40 88 00 	mv r17,r2                                      
   * 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') &&                         
 8003be4:	40 22 00 00 	lbu r2,(r1+0)                                  
  const char                        *path,                            
  mode_t                             mode,                            
  dev_t                              dev,                             
  rtems_filesystem_location_info_t  *pathloc                          
)                                                                     
{                                                                     
 8003be8:	b8 20 58 00 	mv r11,r1                                      
   * 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') &&                         
 8003bec:	34 01 00 64 	mvi r1,100                                     
  const char                        *path,                            
  mode_t                             mode,                            
  dev_t                              dev,                             
  rtems_filesystem_location_info_t  *pathloc                          
)                                                                     
{                                                                     
 8003bf0:	b8 60 98 00 	mv r19,r3                                      
 8003bf4:	b8 80 90 00 	mv r18,r4                                      
   * 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') &&                         
 8003bf8:	5c 41 00 0a 	bne r2,r1,8003c20 <devFS_mknod+0x6c>           
 8003bfc:	41 62 00 01 	lbu r2,(r11+1)                                 
 8003c00:	34 01 00 65 	mvi r1,101                                     
 8003c04:	5c 41 00 07 	bne r2,r1,8003c20 <devFS_mknod+0x6c>           <== NEVER TAKEN
 8003c08:	41 62 00 02 	lbu r2,(r11+2)                                 
 8003c0c:	34 01 00 76 	mvi r1,118                                     
 8003c10:	5c 41 00 04 	bne r2,r1,8003c20 <devFS_mknod+0x6c>           <== NEVER TAKEN
      (path[2] == 'v') && (path[3] == '\0'))                          
 8003c14:	41 62 00 03 	lbu r2,(r11+3)                                 
      return 0;                                                       
 8003c18:	34 01 00 00 	mvi r1,0                                       
   * actually passed in is 'dev', not '/dev'. Just return 0 to        
   * indicate we are OK.                                              
   */                                                                 
                                                                      
  if ((path[0] == 'd') && (path[1] == 'e') &&                         
      (path[2] == 'v') && (path[3] == '\0'))                          
 8003c1c:	44 40 00 3d 	be r2,r0,8003d10 <devFS_mknod+0x15c>           
      return 0;                                                       
                                                                      
  /* must be a character device or a block device */                  
  if (!S_ISBLK(mode) && !S_ISCHR(mode))                               
 8003c20:	22 22 f0 00 	andi r2,r17,0xf000                             
 8003c24:	7c 41 20 00 	cmpnei r1,r2,8192                              
 8003c28:	7c 42 60 00 	cmpnei r2,r2,24576                             
 8003c2c:	a0 22 08 00 	and r1,r1,r2                                   
 8003c30:	44 20 00 04 	be r1,r0,8003c40 <devFS_mknod+0x8c>            
    rtems_set_errno_and_return_minus_one( EINVAL );                   
 8003c34:	f8 00 20 07 	calli 800bc50 <__errno>                        
 8003c38:	34 02 00 16 	mvi r2,22                                      
 8003c3c:	e0 00 00 0b 	bi 8003c68 <devFS_mknod+0xb4>                  
  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;    
 8003c40:	28 af 00 00 	lw r15,(r5+0)                                  
  if (!device_name_table)                                             
 8003c44:	45 e1 00 07 	be r15,r1,8003c60 <devFS_mknod+0xac>           
    rtems_set_errno_and_return_minus_one( EFAULT );                   
                                                                      
  for (slot = -1, i = 0; i < rtems_device_table_size; i++){           
 8003c48:	78 0d 08 01 	mvhi r13,0x801                                 
  else                                                                
    rtems_filesystem_split_dev_t(dev, major, minor);                  
                                                                      
  /* Find an empty slot in device name table */                       
  device_name_table = (rtems_device_name_t *)pathloc->node_access;    
  if (!device_name_table)                                             
 8003c4c:	b9 e0 80 00 	mv r16,r15                                     
 8003c50:	34 0c ff ff 	mvi r12,-1                                     
 8003c54:	34 0e 00 00 	mvi r14,0                                      
    rtems_set_errno_and_return_minus_one( EFAULT );                   
                                                                      
  for (slot = -1, i = 0; i < rtems_device_table_size; i++){           
 8003c58:	39 ad b0 14 	ori r13,r13,0xb014                             
 8003c5c:	e0 00 00 11 	bi 8003ca0 <devFS_mknod+0xec>                  
    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 );                   
 8003c60:	f8 00 1f fc 	calli 800bc50 <__errno>                        
 8003c64:	34 02 00 0e 	mvi r2,14                                      
 8003c68:	58 22 00 00 	sw (r1+0),r2                                   
 8003c6c:	34 01 ff ff 	mvi r1,-1                                      
 8003c70:	e0 00 00 28 	bi 8003d10 <devFS_mknod+0x15c>                 
                                                                      
  for (slot = -1, i = 0; i < rtems_device_table_size; i++){           
      if (device_name_table[i].device_name == NULL)                   
 8003c74:	2a 02 00 00 	lw r2,(r16+0)                                  
 8003c78:	44 40 00 07 	be r2,r0,8003c94 <devFS_mknod+0xe0>            
          slot = i;                                                   
      else                                                            
          if (strcmp(path, device_name_table[i].device_name) == 0)    
 8003c7c:	b9 60 08 00 	mv r1,r11                                      
 8003c80:	f8 00 25 f6 	calli 800d458 <strcmp>                         
 8003c84:	5c 20 00 05 	bne r1,r0,8003c98 <devFS_mknod+0xe4>           
              rtems_set_errno_and_return_minus_one( EEXIST );         
 8003c88:	f8 00 1f f2 	calli 800bc50 <__errno>                        
 8003c8c:	34 02 00 11 	mvi r2,17                                      
 8003c90:	e3 ff ff f6 	bi 8003c68 <devFS_mknod+0xb4>                  
  if (!device_name_table)                                             
    rtems_set_errno_and_return_minus_one( EFAULT );                   
                                                                      
  for (slot = -1, i = 0; i < rtems_device_table_size; i++){           
      if (device_name_table[i].device_name == NULL)                   
          slot = i;                                                   
 8003c94:	b9 c0 60 00 	mv r12,r14                                     
  /* 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++){           
 8003c98:	35 ce 00 01 	addi r14,r14,1                                 
 8003c9c:	36 10 00 14 	addi r16,r16,20                                
 8003ca0:	29 a1 00 00 	lw r1,(r13+0)                                  
 8003ca4:	54 2e ff f4 	bgu r1,r14,8003c74 <devFS_mknod+0xc0>          
      else                                                            
          if (strcmp(path, device_name_table[i].device_name) == 0)    
              rtems_set_errno_and_return_minus_one( EEXIST );         
  }                                                                   
                                                                      
  if (slot == -1)                                                     
 8003ca8:	34 01 ff ff 	mvi r1,-1                                      
 8003cac:	5d 81 00 04 	bne r12,r1,8003cbc <devFS_mknod+0x108>         
      rtems_set_errno_and_return_minus_one( ENOMEM );                 
 8003cb0:	f8 00 1f e8 	calli 800bc50 <__errno>                        
 8003cb4:	34 02 00 0c 	mvi r2,12                                      
 8003cb8:	e3 ff ff ec 	bi 8003c68 <devFS_mknod+0xb4>                  
                                                                      
  _ISR_Disable(level);                                                
 8003cbc:	90 00 68 00 	rcsr r13,IE                                    
 8003cc0:	34 01 ff fe 	mvi r1,-2                                      
 8003cc4:	a1 a1 08 00 	and r1,r13,r1                                  
 8003cc8:	d0 01 00 00 	wcsr IE,r1                                     
  device_name_table[slot].device_name  = (char *)path;                
 8003ccc:	34 02 00 02 	mvi r2,2                                       
 8003cd0:	b9 80 08 00 	mv r1,r12                                      
 8003cd4:	fb ff fd af 	calli 8003390 <__ashlsi3>                      
 8003cd8:	34 02 00 02 	mvi r2,2                                       
 8003cdc:	b8 20 60 00 	mv r12,r1                                      
 8003ce0:	fb ff fd ac 	calli 8003390 <__ashlsi3>                      
 8003ce4:	b5 81 08 00 	add r1,r12,r1                                  
 8003ce8:	b5 e1 60 00 	add r12,r15,r1                                 
 8003cec:	59 8b 00 00 	sw (r12+0),r11                                 
  device_name_table[slot].device_name_length = strlen(path);          
 8003cf0:	b9 60 08 00 	mv r1,r11                                      
 8003cf4:	f8 00 26 09 	calli 800d518 <strlen>                         
 8003cf8:	59 81 00 04 	sw (r12+4),r1                                  
  device_name_table[slot].major = major;                              
 8003cfc:	59 93 00 08 	sw (r12+8),r19                                 
  device_name_table[slot].minor = minor;                              
 8003d00:	59 92 00 0c 	sw (r12+12),r18                                
  device_name_table[slot].mode  = mode;                               
 8003d04:	59 91 00 10 	sw (r12+16),r17                                
  _ISR_Enable(level);                                                 
 8003d08:	d0 0d 00 00 	wcsr IE,r13                                    
                                                                      
  return 0;                                                           
 8003d0c:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 8003d10:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003d14:	2b 8b 00 28 	lw r11,(sp+40)                                 
 8003d18:	2b 8c 00 24 	lw r12,(sp+36)                                 
 8003d1c:	2b 8d 00 20 	lw r13,(sp+32)                                 
 8003d20:	2b 8e 00 1c 	lw r14,(sp+28)                                 
 8003d24:	2b 8f 00 18 	lw r15,(sp+24)                                 
 8003d28:	2b 90 00 14 	lw r16,(sp+20)                                 
 8003d2c:	2b 91 00 10 	lw r17,(sp+16)                                 
 8003d30:	2b 92 00 0c 	lw r18,(sp+12)                                 
 8003d34:	2b 93 00 08 	lw r19,(sp+8)                                  
 8003d38:	37 9c 00 28 	addi sp,sp,40                                  
 8003d3c:	c3 a0 00 00 	ret                                            
                                                                      

08003208 <drainOutput>: /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) {
 8003208:	37 9c ff f0 	addi sp,sp,-16                                 
 800320c:	5b 8b 00 10 	sw (sp+16),r11                                 
 8003210:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8003214:	5b 8d 00 08 	sw (sp+8),r13                                  
 8003218:	5b 9d 00 04 	sw (sp+4),ra                                   
 800321c:	b8 20 58 00 	mv r11,r1                                      
  rtems_interrupt_level level;                                        
  rtems_status_code sc;                                               
                                                                      
  if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) {           
 8003220:	28 21 00 b4 	lw r1,(r1+180)                                 
 8003224:	44 20 00 17 	be r1,r0,8003280 <drainOutput+0x78>            
    rtems_interrupt_disable (level);                                  
 8003228:	90 00 08 00 	rcsr r1,IE                                     
 800322c:	34 02 ff fe 	mvi r2,-2                                      
 8003230:	a0 22 10 00 	and r2,r1,r2                                   
 8003234:	d0 02 00 00 	wcsr IE,r2                                     
    while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) {              
      tty->rawOutBufState = rob_wait;                                 
 8003238:	34 0d 00 02 	mvi r13,2                                      
      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);                              
      rtems_interrupt_disable (level);                                
 800323c:	34 0c ff fe 	mvi r12,-2                                     
  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) {              
 8003240:	e0 00 00 0c 	bi 8003270 <drainOutput+0x68>                  
      tty->rawOutBufState = rob_wait;                                 
 8003244:	59 6d 00 94 	sw (r11+148),r13                               <== NOT EXECUTED
      rtems_interrupt_enable (level);                                 
 8003248:	d0 01 00 00 	wcsr IE,r1                                     <== NOT EXECUTED
      sc = rtems_semaphore_obtain(                                    
 800324c:	29 61 00 8c 	lw r1,(r11+140)                                <== NOT EXECUTED
 8003250:	34 02 00 00 	mvi r2,0                                       <== NOT EXECUTED
 8003254:	34 03 00 00 	mvi r3,0                                       <== NOT EXECUTED
 8003258:	f8 00 09 fb 	calli 8005a44 <rtems_semaphore_obtain>         <== NOT EXECUTED
        tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);      
      if (sc != RTEMS_SUCCESSFUL)                                     
 800325c:	44 20 00 02 	be r1,r0,8003264 <drainOutput+0x5c>            <== NOT EXECUTED
        rtems_fatal_error_occurred (sc);                              
 8003260:	f8 00 0c 3a 	calli 8006348 <rtems_fatal_error_occurred>     <== NOT EXECUTED
      rtems_interrupt_disable (level);                                
 8003264:	90 00 08 00 	rcsr r1,IE                                     <== NOT EXECUTED
 8003268:	a0 2c 10 00 	and r2,r1,r12                                  <== NOT EXECUTED
 800326c:	d0 02 00 00 	wcsr IE,r2                                     <== 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) {              
 8003270:	29 63 00 84 	lw r3,(r11+132)                                
 8003274:	29 62 00 80 	lw r2,(r11+128)                                
 8003278:	5c 62 ff f3 	bne r3,r2,8003244 <drainOutput+0x3c>           <== NEVER TAKEN
        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);                                   
 800327c:	d0 01 00 00 	wcsr IE,r1                                     
  }                                                                   
}                                                                     
 8003280:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003284:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8003288:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 800328c:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8003290:	37 9c 00 10 	addi sp,sp,16                                  
 8003294:	c3 a0 00 00 	ret                                            
                                                                      

08003fd8 <echo>: /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) {
 8003fd8:	37 9c ff f4 	addi sp,sp,-12                                 
 8003fdc:	5b 8b 00 08 	sw (sp+8),r11                                  
 8003fe0:	5b 9d 00 04 	sw (sp+4),ra                                   
 8003fe4:	b8 40 58 00 	mv r11,r2                                      
  if ((tty->termios.c_lflag & ECHOCTL) &&                             
 8003fe8:	28 42 00 3c 	lw r2,(r2+60)                                  
 8003fec:	20 42 02 00 	andi r2,r2,0x200                               
 8003ff0:	44 40 00 19 	be r2,r0,8004054 <echo+0x7c>                   <== NEVER TAKEN
       iscntrl(c) && (c != '\t') && (c != '\n')) {                    
 8003ff4:	78 02 08 02 	mvhi r2,0x802                                  
 8003ff8:	38 42 42 14 	ori r2,r2,0x4214                               
 8003ffc:	28 42 00 00 	lw r2,(r2+0)                                   
 8004000:	7c 23 00 09 	cmpnei r3,r1,9                                 
 8004004:	b4 41 10 00 	add r2,r2,r1                                   
 8004008:	40 42 00 01 	lbu r2,(r2+1)                                  
 800400c:	20 42 00 20 	andi r2,r2,0x20                                
 * Echo a typed character                                             
 */                                                                   
static void                                                           
echo (unsigned char c, struct rtems_termios_tty *tty)                 
{                                                                     
  if ((tty->termios.c_lflag & ECHOCTL) &&                             
 8004010:	7c 42 00 00 	cmpnei r2,r2,0                                 
       iscntrl(c) && (c != '\t') && (c != '\n')) {                    
 8004014:	a0 43 10 00 	and r2,r2,r3                                   
 8004018:	44 40 00 0f 	be r2,r0,8004054 <echo+0x7c>                   
 800401c:	34 02 00 0a 	mvi r2,10                                      
 8004020:	44 22 00 0d 	be r1,r2,8004054 <echo+0x7c>                   
    char echobuf[2];                                                  
                                                                      
    echobuf[0] = '^';                                                 
 8004024:	34 02 00 5e 	mvi r2,94                                      
    echobuf[1] = c ^ 0x40;                                            
 8004028:	18 21 00 40 	xori r1,r1,0x40                                
{                                                                     
  if ((tty->termios.c_lflag & ECHOCTL) &&                             
       iscntrl(c) && (c != '\t') && (c != '\n')) {                    
    char echobuf[2];                                                  
                                                                      
    echobuf[0] = '^';                                                 
 800402c:	33 82 00 0c 	sb (sp+12),r2                                  
    echobuf[1] = c ^ 0x40;                                            
 8004030:	33 81 00 0d 	sb (sp+13),r1                                  
    rtems_termios_puts (echobuf, 2, tty);                             
 8004034:	34 02 00 02 	mvi r2,2                                       
 8004038:	37 81 00 0c 	addi r1,sp,12                                  
 800403c:	b9 60 18 00 	mv r3,r11                                      
 8004040:	fb ff ff 34 	calli 8003d10 <rtems_termios_puts>             
    tty->column += 2;                                                 
 8004044:	29 61 00 28 	lw r1,(r11+40)                                 
 8004048:	34 21 00 02 	addi r1,r1,2                                   
 800404c:	59 61 00 28 	sw (r11+40),r1                                 
 */                                                                   
static void                                                           
echo (unsigned char c, struct rtems_termios_tty *tty)                 
{                                                                     
  if ((tty->termios.c_lflag & ECHOCTL) &&                             
       iscntrl(c) && (c != '\t') && (c != '\n')) {                    
 8004050:	e0 00 00 03 	bi 800405c <echo+0x84>                         
    echobuf[0] = '^';                                                 
    echobuf[1] = c ^ 0x40;                                            
    rtems_termios_puts (echobuf, 2, tty);                             
    tty->column += 2;                                                 
  } else {                                                            
    oproc (c, tty);                                                   
 8004054:	b9 60 10 00 	mv r2,r11                                      
 8004058:	fb ff ff 84 	calli 8003e68 <oproc>                          
  }                                                                   
}                                                                     
 800405c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004060:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8004064:	37 9c 00 0c 	addi sp,sp,12                                  
 8004068:	c3 a0 00 00 	ret                                            
                                                                      

08002690 <endgrent>: void endgrent(void) {
 8002690:	37 9c ff fc 	addi sp,sp,-4                                  
 8002694:	5b 9d 00 04 	sw (sp+4),ra                                   
  if (group_fp != NULL)                                               
 8002698:	78 01 08 01 	mvhi r1,0x801                                  
 800269c:	38 21 56 98 	ori r1,r1,0x5698                               
 80026a0:	28 21 00 00 	lw r1,(r1+0)                                   
 80026a4:	44 20 00 02 	be r1,r0,80026ac <endgrent+0x1c>               <== NEVER TAKEN
    fclose(group_fp);                                                 
 80026a8:	f8 00 27 b1 	calli 800c56c <fclose>                         
}                                                                     
 80026ac:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80026b0:	37 9c 00 04 	addi sp,sp,4                                   
 80026b4:	c3 a0 00 00 	ret                                            
                                                                      

080024c8 <endpwent>: void endpwent(void) {
 80024c8:	37 9c ff fc 	addi sp,sp,-4                                  
 80024cc:	5b 9d 00 04 	sw (sp+4),ra                                   
  if (passwd_fp != NULL)                                              
 80024d0:	78 01 08 01 	mvhi r1,0x801                                  
 80024d4:	38 21 57 74 	ori r1,r1,0x5774                               
 80024d8:	28 21 00 00 	lw r1,(r1+0)                                   
 80024dc:	44 20 00 02 	be r1,r0,80024e4 <endpwent+0x1c>               <== NEVER TAKEN
    fclose(passwd_fp);                                                
 80024e0:	f8 00 28 23 	calli 800c56c <fclose>                         
}                                                                     
 80024e4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80024e8:	37 9c 00 04 	addi sp,sp,4                                   
 80024ec:	c3 a0 00 00 	ret                                            
                                                                      

0800406c <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) {
 800406c:	37 9c ff e0 	addi sp,sp,-32                                 
 8004070:	5b 8b 00 20 	sw (sp+32),r11                                 
 8004074:	5b 8c 00 1c 	sw (sp+28),r12                                 
 8004078:	5b 8d 00 18 	sw (sp+24),r13                                 
 800407c:	5b 8e 00 14 	sw (sp+20),r14                                 
 8004080:	5b 8f 00 10 	sw (sp+16),r15                                 
 8004084:	5b 90 00 0c 	sw (sp+12),r16                                 
 8004088:	5b 91 00 08 	sw (sp+8),r17                                  
 800408c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8004090:	b8 20 58 00 	mv r11,r1                                      
  if (tty->ccount == 0)                                               
 8004094:	28 21 00 20 	lw r1,(r1+32)                                  
 * 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)                   
{                                                                     
 8004098:	b8 40 78 00 	mv r15,r2                                      
  if (tty->ccount == 0)                                               
 800409c:	44 20 00 6c 	be r1,r0,800424c <erase+0x1e0>                 
    return;                                                           
  if (lineFlag) {                                                     
 80040a0:	44 40 00 62 	be r2,r0,8004228 <erase+0x1bc>                 
    if (!(tty->termios.c_lflag & ECHO)) {                             
 80040a4:	29 6c 00 3c 	lw r12,(r11+60)                                
 80040a8:	21 81 00 08 	andi r1,r12,0x8                                
 80040ac:	5c 20 00 03 	bne r1,r0,80040b8 <erase+0x4c>                 <== ALWAYS TAKEN
      tty->ccount = 0;                                                
 80040b0:	59 60 00 20 	sw (r11+32),r0                                 <== NOT EXECUTED
      return;                                                         
 80040b4:	e0 00 00 66 	bi 800424c <erase+0x1e0>                       <== NOT EXECUTED
    }                                                                 
    if (!(tty->termios.c_lflag & ECHOE)) {                            
 80040b8:	21 8c 00 10 	andi r12,r12,0x10                              
 80040bc:	5d 80 00 5b 	bne r12,r0,8004228 <erase+0x1bc>               <== ALWAYS TAKEN
      tty->ccount = 0;                                                
      echo (tty->termios.c_cc[VKILL], tty);                           
 80040c0:	41 61 00 44 	lbu r1,(r11+68)                                <== NOT EXECUTED
    if (!(tty->termios.c_lflag & ECHO)) {                             
      tty->ccount = 0;                                                
      return;                                                         
    }                                                                 
    if (!(tty->termios.c_lflag & ECHOE)) {                            
      tty->ccount = 0;                                                
 80040c4:	59 60 00 20 	sw (r11+32),r0                                 <== NOT EXECUTED
      echo (tty->termios.c_cc[VKILL], tty);                           
 80040c8:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 80040cc:	fb ff ff c3 	calli 8003fd8 <echo>                           <== NOT EXECUTED
      if (tty->termios.c_lflag & ECHOK)                               
 80040d0:	29 61 00 3c 	lw r1,(r11+60)                                 <== NOT EXECUTED
 80040d4:	20 21 00 20 	andi r1,r1,0x20                                <== NOT EXECUTED
 80040d8:	44 2c 00 5d 	be r1,r12,800424c <erase+0x1e0>                <== NOT EXECUTED
        echo ('\n', tty);                                             
 80040dc:	34 01 00 0a 	mvi r1,10                                      <== NOT EXECUTED
 80040e0:	e0 00 00 0d 	bi 8004114 <erase+0xa8>                        <== NOT EXECUTED
      return;                                                         
    }                                                                 
  }                                                                   
                                                                      
  while (tty->ccount) {                                               
    unsigned char c = tty->cbuf[--tty->ccount];                       
 80040e4:	29 64 00 1c 	lw r4,(r11+28)                                 
 80040e8:	34 21 ff ff 	addi r1,r1,-1                                  
 80040ec:	59 61 00 20 	sw (r11+32),r1                                 
 80040f0:	b4 81 10 00 	add r2,r4,r1                                   
 80040f4:	40 4c 00 00 	lbu r12,(r2+0)                                 
                                                                      
    if (tty->termios.c_lflag & ECHO) {                                
 80040f8:	29 62 00 3c 	lw r2,(r11+60)                                 
 80040fc:	20 43 00 08 	andi r3,r2,0x8                                 
 8004100:	44 60 00 48 	be r3,r0,8004220 <erase+0x1b4>                 <== NEVER TAKEN
      if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) {             
 8004104:	5d e0 00 07 	bne r15,r0,8004120 <erase+0xb4>                
 8004108:	20 43 00 10 	andi r3,r2,0x10                                
 800410c:	5c 6f 00 05 	bne r3,r15,8004120 <erase+0xb4>                <== ALWAYS TAKEN
        echo (tty->termios.c_cc[VERASE], tty);                        
 8004110:	41 61 00 43 	lbu r1,(r11+67)                                <== NOT EXECUTED
 8004114:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 8004118:	fb ff ff b0 	calli 8003fd8 <echo>                           <== NOT EXECUTED
 800411c:	e0 00 00 4c 	bi 800424c <erase+0x1e0>                       <== NOT EXECUTED
      } else if (c == '\t') {                                         
 8004120:	5d 91 00 20 	bne r12,r17,80041a0 <erase+0x134>              
        int col = tty->read_start_column;                             
 8004124:	29 6c 00 2c 	lw r12,(r11+44)                                
         */                                                           
        while (i != tty->ccount) {                                    
          c = tty->cbuf[i++];                                         
          if (c == '\t') {                                            
            col = (col | 7) + 1;                                      
          } else if (iscntrl (c)) {                                   
 8004128:	29 a6 00 00 	lw r6,(r13+0)                                  
    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;                                                    
 800412c:	34 03 00 00 	mvi r3,0                                       
        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)                       
 8004130:	20 42 02 00 	andi r2,r2,0x200                               
        int i = 0;                                                    
                                                                      
        /*                                                            
         * Find the character before the tab                          
         */                                                           
        while (i != tty->ccount) {                                    
 8004134:	e0 00 00 0f 	bi 8004170 <erase+0x104>                       
 * Erase a character or line                                          
 * 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)                   
 8004138:	b4 83 28 00 	add r5,r4,r3                                   
                                                                      
        /*                                                            
         * Find the character before the tab                          
         */                                                           
        while (i != tty->ccount) {                                    
          c = tty->cbuf[i++];                                         
 800413c:	40 a5 00 00 	lbu r5,(r5+0)                                  
 8004140:	34 63 00 01 	addi r3,r3,1                                   
          if (c == '\t') {                                            
 8004144:	5c b1 00 03 	bne r5,r17,8004150 <erase+0xe4>                
            col = (col | 7) + 1;                                      
 8004148:	39 8c 00 07 	ori r12,r12,0x7                                
 800414c:	e0 00 00 08 	bi 800416c <erase+0x100>                       
          } else if (iscntrl (c)) {                                   
 8004150:	b4 c5 28 00 	add r5,r6,r5                                   
 8004154:	40 a5 00 01 	lbu r5,(r5+1)                                  
 8004158:	20 a5 00 20 	andi r5,r5,0x20                                
 800415c:	44 a0 00 04 	be r5,r0,800416c <erase+0x100>                 <== ALWAYS TAKEN
            if (tty->termios.c_lflag & ECHOCTL)                       
 8004160:	44 40 00 04 	be r2,r0,8004170 <erase+0x104>                 <== NOT EXECUTED
              col += 2;                                               
 8004164:	35 8c 00 02 	addi r12,r12,2                                 <== NOT EXECUTED
 8004168:	e0 00 00 02 	bi 8004170 <erase+0x104>                       <== NOT EXECUTED
          } else {                                                    
            col++;                                                    
 800416c:	35 8c 00 01 	addi r12,r12,1                                 
        int i = 0;                                                    
                                                                      
        /*                                                            
         * Find the character before the tab                          
         */                                                           
        while (i != tty->ccount) {                                    
 8004170:	5c 61 ff f2 	bne r3,r1,8004138 <erase+0xcc>                 
 8004174:	e0 00 00 08 	bi 8004194 <erase+0x128>                       
                                                                      
        /*                                                            
         * Back up over the tab                                       
         */                                                           
        while (tty->column > col) {                                   
          rtems_termios_puts ("\b", 1, tty);                          
 8004178:	ba 00 08 00 	mv r1,r16                                      
 800417c:	34 02 00 01 	mvi r2,1                                       
 8004180:	b9 60 18 00 	mv r3,r11                                      
 8004184:	fb ff fe e3 	calli 8003d10 <rtems_termios_puts>             
          tty->column--;                                              
 8004188:	29 61 00 28 	lw r1,(r11+40)                                 
 800418c:	34 21 ff ff 	addi r1,r1,-1                                  
 8004190:	59 61 00 28 	sw (r11+40),r1                                 
        }                                                             
                                                                      
        /*                                                            
         * Back up over the tab                                       
         */                                                           
        while (tty->column > col) {                                   
 8004194:	29 61 00 28 	lw r1,(r11+40)                                 
 8004198:	48 2c ff f8 	bg r1,r12,8004178 <erase+0x10c>                
 800419c:	e0 00 00 21 	bi 8004220 <erase+0x1b4>                       
          rtems_termios_puts ("\b", 1, tty);                          
          tty->column--;                                              
        }                                                             
      }                                                               
      else {                                                          
        if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) {        
 80041a0:	29 a1 00 00 	lw r1,(r13+0)                                  
 80041a4:	35 8c 00 01 	addi r12,r12,1                                 
 80041a8:	b4 2c 08 00 	add r1,r1,r12                                  
 80041ac:	40 21 00 00 	lbu r1,(r1+0)                                  
 80041b0:	20 21 00 20 	andi r1,r1,0x20                                
 80041b4:	44 20 00 0b 	be r1,r0,80041e0 <erase+0x174>                 <== ALWAYS TAKEN
 80041b8:	20 42 02 00 	andi r2,r2,0x200                               <== NOT EXECUTED
 80041bc:	44 40 00 09 	be r2,r0,80041e0 <erase+0x174>                 <== NOT EXECUTED
          rtems_termios_puts ("\b \b", 3, tty);                       
 80041c0:	b9 c0 08 00 	mv r1,r14                                      <== NOT EXECUTED
 80041c4:	34 02 00 03 	mvi r2,3                                       <== NOT EXECUTED
 80041c8:	b9 60 18 00 	mv r3,r11                                      <== NOT EXECUTED
 80041cc:	fb ff fe d1 	calli 8003d10 <rtems_termios_puts>             <== NOT EXECUTED
          if (tty->column)                                            
 80041d0:	29 61 00 28 	lw r1,(r11+40)                                 <== NOT EXECUTED
 80041d4:	44 20 00 03 	be r1,r0,80041e0 <erase+0x174>                 <== NOT EXECUTED
            tty->column--;                                            
 80041d8:	34 21 ff ff 	addi r1,r1,-1                                  <== NOT EXECUTED
 80041dc:	59 61 00 28 	sw (r11+40),r1                                 <== NOT EXECUTED
        }                                                             
        if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) {       
 80041e0:	29 a1 00 00 	lw r1,(r13+0)                                  
 80041e4:	b4 2c 60 00 	add r12,r1,r12                                 
 80041e8:	41 81 00 00 	lbu r1,(r12+0)                                 
 80041ec:	20 21 00 20 	andi r1,r1,0x20                                
 80041f0:	44 20 00 04 	be r1,r0,8004200 <erase+0x194>                 <== ALWAYS TAKEN
 80041f4:	29 61 00 3c 	lw r1,(r11+60)                                 <== NOT EXECUTED
 80041f8:	20 21 02 00 	andi r1,r1,0x200                               <== NOT EXECUTED
 80041fc:	44 20 00 09 	be r1,r0,8004220 <erase+0x1b4>                 <== NOT EXECUTED
          rtems_termios_puts ("\b \b", 3, tty);                       
 8004200:	b9 c0 08 00 	mv r1,r14                                      
 8004204:	34 02 00 03 	mvi r2,3                                       
 8004208:	b9 60 18 00 	mv r3,r11                                      
 800420c:	fb ff fe c1 	calli 8003d10 <rtems_termios_puts>             
          if (tty->column)                                            
 8004210:	29 61 00 28 	lw r1,(r11+40)                                 
 8004214:	44 20 00 03 	be r1,r0,8004220 <erase+0x1b4>                 <== NEVER TAKEN
            tty->column--;                                            
 8004218:	34 21 ff ff 	addi r1,r1,-1                                  
 800421c:	59 61 00 28 	sw (r11+40),r1                                 
        }                                                             
      }                                                               
    }                                                                 
    if (!lineFlag)                                                    
 8004220:	5d e0 00 09 	bne r15,r0,8004244 <erase+0x1d8>               
 8004224:	e0 00 00 0a 	bi 800424c <erase+0x1e0>                       
 8004228:	78 0d 08 02 	mvhi r13,0x802                                 
          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);                       
 800422c:	78 0e 08 02 	mvhi r14,0x802                                 
                                                                      
        /*                                                            
         * Back up over the tab                                       
         */                                                           
        while (tty->column > col) {                                   
          rtems_termios_puts ("\b", 1, tty);                          
 8004230:	78 10 08 02 	mvhi r16,0x802                                 
    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);                        
      } else if (c == '\t') {                                         
 8004234:	34 11 00 09 	mvi r17,9                                      
 8004238:	39 ad 42 14 	ori r13,r13,0x4214                             
          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);                       
 800423c:	39 ce 25 c4 	ori r14,r14,0x25c4                             
                                                                      
        /*                                                            
         * Back up over the tab                                       
         */                                                           
        while (tty->column > col) {                                   
          rtems_termios_puts ("\b", 1, tty);                          
 8004240:	3a 10 25 c0 	ori r16,r16,0x25c0                             
        echo ('\n', tty);                                             
      return;                                                         
    }                                                                 
  }                                                                   
                                                                      
  while (tty->ccount) {                                               
 8004244:	29 61 00 20 	lw r1,(r11+32)                                 
 8004248:	5c 20 ff a7 	bne r1,r0,80040e4 <erase+0x78>                 
      }                                                               
    }                                                                 
    if (!lineFlag)                                                    
      break;                                                          
  }                                                                   
}                                                                     
 800424c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004250:	2b 8b 00 20 	lw r11,(sp+32)                                 
 8004254:	2b 8c 00 1c 	lw r12,(sp+28)                                 
 8004258:	2b 8d 00 18 	lw r13,(sp+24)                                 
 800425c:	2b 8e 00 14 	lw r14,(sp+20)                                 
 8004260:	2b 8f 00 10 	lw r15,(sp+16)                                 
 8004264:	2b 90 00 0c 	lw r16,(sp+12)                                 
 8004268:	2b 91 00 08 	lw r17,(sp+8)                                  
 800426c:	37 9c 00 20 	addi sp,sp,32                                  
 8004270:	c3 a0 00 00 	ret                                            
                                                                      

08001e44 <fcntl>: int fcntl( int fd, int cmd, ... ) {
 8001e44:	37 9c ff c4 	addi sp,sp,-60                                 
 8001e48:	5b 8b 00 20 	sw (sp+32),r11                                 
 8001e4c:	5b 8c 00 1c 	sw (sp+28),r12                                 
 8001e50:	5b 8d 00 18 	sw (sp+24),r13                                 
 8001e54:	5b 8e 00 14 	sw (sp+20),r14                                 
 8001e58:	5b 8f 00 10 	sw (sp+16),r15                                 
 8001e5c:	5b 90 00 0c 	sw (sp+12),r16                                 
 8001e60:	5b 91 00 08 	sw (sp+8),r17                                  
 8001e64:	5b 9d 00 04 	sw (sp+4),ra                                   
 8001e68:	5b 82 00 24 	sw (sp+36),r2                                  
 8001e6c:	b8 40 68 00 	mv r13,r2                                      
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
 8001e70:	78 02 08 01 	mvhi r2,0x801                                  
int fcntl(                                                            
  int fd,                                                             
  int cmd,                                                            
  ...                                                                 
)                                                                     
{                                                                     
 8001e74:	5b 83 00 28 	sw (sp+40),r3                                  
 8001e78:	5b 84 00 2c 	sw (sp+44),r4                                  
 8001e7c:	5b 85 00 30 	sw (sp+48),r5                                  
 8001e80:	5b 86 00 34 	sw (sp+52),r6                                  
 8001e84:	5b 87 00 38 	sw (sp+56),r7                                  
 8001e88:	5b 88 00 3c 	sw (sp+60),r8                                  
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
 8001e8c:	38 42 50 10 	ori r2,r2,0x5010                               
 8001e90:	28 51 00 00 	lw r17,(r2+0)                                  
  ...                                                                 
)                                                                     
{                                                                     
  int            ret;                                                 
  va_list        ap;                                                  
  va_start( ap, cmd );                                                
 8001e94:	37 8e 00 28 	addi r14,sp,40                                 
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
 8001e98:	56 21 00 02 	bgu r17,r1,8001ea0 <fcntl+0x5c>                
 8001e9c:	e0 00 00 0a 	bi 8001ec4 <fcntl+0x80>                        
  iop = rtems_libio_iop( fd );                                        
 8001ea0:	78 02 08 01 	mvhi r2,0x801                                  
 8001ea4:	38 42 57 10 	ori r2,r2,0x5710                               
 8001ea8:	28 50 00 00 	lw r16,(r2+0)                                  
 8001eac:	34 02 00 06 	mvi r2,6                                       
 8001eb0:	f8 00 41 ba 	calli 8012598 <__ashlsi3>                      
 8001eb4:	b6 01 58 00 	add r11,r16,r1                                 
  rtems_libio_check_is_open(iop);                                     
 8001eb8:	29 6c 00 18 	lw r12,(r11+24)                                
 8001ebc:	21 81 01 00 	andi r1,r12,0x100                              
 8001ec0:	5c 20 00 04 	bne r1,r0,8001ed0 <fcntl+0x8c>                 
 8001ec4:	f8 00 29 96 	calli 800c51c <__errno>                        
 8001ec8:	34 02 00 09 	mvi r2,9                                       
 8001ecc:	e0 00 00 49 	bi 8001ff0 <fcntl+0x1ac>                       
                                                                      
  /*                                                                  
   *  This switch should contain all the cases from POSIX.            
   */                                                                 
                                                                      
  switch ( cmd ) {                                                    
 8001ed0:	34 01 00 09 	mvi r1,9                                       
 8001ed4:	55 a1 00 45 	bgu r13,r1,8001fe8 <fcntl+0x1a4>               
 8001ed8:	78 0f 08 01 	mvhi r15,0x801                                 
 8001edc:	b9 a0 08 00 	mv r1,r13                                      
 8001ee0:	34 02 00 02 	mvi r2,2                                       
 8001ee4:	f8 00 41 ad 	calli 8012598 <__ashlsi3>                      
 8001ee8:	39 ef 37 f0 	ori r15,r15,0x37f0                             
 8001eec:	b5 e1 08 00 	add r1,r15,r1                                  
 8001ef0:	28 21 00 00 	lw r1,(r1+0)                                   
 8001ef4:	c0 20 00 00 	b r1                                           
    case F_DUPFD:        /* dup */                                    
      fd2 = va_arg( ap, int );                                        
 8001ef8:	29 cc 00 00 	lw r12,(r14+0)                                 
      if ( fd2 )                                                      
 8001efc:	45 80 00 08 	be r12,r0,8001f1c <fcntl+0xd8>                 
        diop = rtems_libio_iop( fd2 );                                
 8001f00:	34 03 00 00 	mvi r3,0                                       
 8001f04:	51 91 00 09 	bgeu r12,r17,8001f28 <fcntl+0xe4>              <== NEVER TAKEN
 8001f08:	b9 80 08 00 	mv r1,r12                                      
 8001f0c:	34 02 00 06 	mvi r2,6                                       
 8001f10:	f8 00 41 a2 	calli 8012598 <__ashlsi3>                      
 8001f14:	b6 01 18 00 	add r3,r16,r1                                  
 8001f18:	e0 00 00 04 	bi 8001f28 <fcntl+0xe4>                        
      else {                                                          
        /* allocate a file control block */                           
        diop = rtems_libio_allocate();                                
 8001f1c:	f8 00 01 e6 	calli 80026b4 <rtems_libio_allocate>           
 8001f20:	b8 20 18 00 	mv r3,r1                                       
        if ( diop == 0 ) {                                            
 8001f24:	44 2c 00 3e 	be r1,r12,800201c <fcntl+0x1d8>                <== NEVER TAKEN
          ret = -1;                                                   
          break;                                                      
        }                                                             
      }                                                               
                                                                      
      diop->flags      = iop->flags;                                  
 8001f28:	29 61 00 18 	lw r1,(r11+24)                                 
      diop->pathinfo   = iop->pathinfo;                               
 8001f2c:	29 62 00 28 	lw r2,(r11+40)                                 
 8001f30:	29 66 00 1c 	lw r6,(r11+28)                                 
          ret = -1;                                                   
          break;                                                      
        }                                                             
      }                                                               
                                                                      
      diop->flags      = iop->flags;                                  
 8001f34:	58 61 00 18 	sw (r3+24),r1                                  
      diop->pathinfo   = iop->pathinfo;                               
 8001f38:	29 61 00 2c 	lw r1,(r11+44)                                 
 8001f3c:	29 65 00 20 	lw r5,(r11+32)                                 
 8001f40:	29 64 00 24 	lw r4,(r11+36)                                 
 8001f44:	58 61 00 2c 	sw (r3+44),r1                                  
      ret = (int) (diop - rtems_libio_iops);                          
 8001f48:	78 01 08 01 	mvhi r1,0x801                                  
 8001f4c:	38 21 57 10 	ori r1,r1,0x5710                               
 8001f50:	28 21 00 00 	lw r1,(r1+0)                                   
          break;                                                      
        }                                                             
      }                                                               
                                                                      
      diop->flags      = iop->flags;                                  
      diop->pathinfo   = iop->pathinfo;                               
 8001f54:	58 62 00 28 	sw (r3+40),r2                                  
 8001f58:	58 66 00 1c 	sw (r3+28),r6                                  
 8001f5c:	58 65 00 20 	sw (r3+32),r5                                  
 8001f60:	58 64 00 24 	sw (r3+36),r4                                  
      ret = (int) (diop - rtems_libio_iops);                          
 8001f64:	c8 61 08 00 	sub r1,r3,r1                                   
 8001f68:	34 02 00 06 	mvi r2,6                                       
 8001f6c:	f8 00 41 b2 	calli 8012634 <__ashrsi3>                      
 8001f70:	e0 00 00 0e 	bi 8001fa8 <fcntl+0x164>                       
      break;                                                          
                                                                      
    case F_GETFD:        /* get f_flags */                            
      ret = ((iop->flags & LIBIO_FLAGS_CLOSE_ON_EXEC) != 0);          
 8001f74:	21 8c 08 00 	andi r12,r12,0x800                             
 8001f78:	7d 8c 00 00 	cmpnei r12,r12,0                               
 8001f7c:	e0 00 00 1f 	bi 8001ff8 <fcntl+0x1b4>                       
       *  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 ) )                                        
 8001f80:	29 c1 00 00 	lw r1,(r14+0)                                  
 8001f84:	44 20 00 03 	be r1,r0,8001f90 <fcntl+0x14c>                 
        iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC;                      
 8001f88:	39 8c 08 00 	ori r12,r12,0x800                              
 8001f8c:	e0 00 00 03 	bi 8001f98 <fcntl+0x154>                       
      else                                                            
        iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC;                     
 8001f90:	34 01 f7 ff 	mvi r1,-2049                                   
 8001f94:	a1 81 60 00 	and r12,r12,r1                                 
 8001f98:	59 6c 00 18 	sw (r11+24),r12                                
 8001f9c:	e0 00 00 0e 	bi 8001fd4 <fcntl+0x190>                       
      break;                                                          
                                                                      
    case F_GETFL:        /* more flags (cloexec) */                   
      ret = rtems_libio_to_fcntl_flags( iop->flags );                 
 8001fa0:	b9 80 08 00 	mv r1,r12                                      
 8001fa4:	f8 00 01 b0 	calli 8002664 <rtems_libio_to_fcntl_flags>     
 8001fa8:	b8 20 60 00 	mv r12,r1                                      
  /*                                                                  
   *  If we got this far successfully, then we give the optional      
   *  filesystem specific handler a chance to process this.           
   */                                                                 
                                                                      
  if (ret >= 0) {                                                     
 8001fac:	48 01 00 1d 	bg r0,r1,8002020 <fcntl+0x1dc>                 <== NEVER TAKEN
 8001fb0:	e0 00 00 12 	bi 8001ff8 <fcntl+0x1b4>                       
    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 ) );           
 8001fb4:	29 c1 00 00 	lw r1,(r14+0)                                  
 8001fb8:	f8 00 01 95 	calli 800260c <rtems_libio_fcntl_flags>        
                                                                      
      /*                                                              
       *  XXX If we are turning on append, should we seek to the end? 
       */                                                             
                                                                      
      iop->flags = (iop->flags & ~mask) | (flags & mask);             
 8001fbc:	29 63 00 18 	lw r3,(r11+24)                                 
 8001fc0:	34 02 fd fe 	mvi r2,-514                                    
 8001fc4:	20 21 02 01 	andi r1,r1,0x201                               
 8001fc8:	a0 43 10 00 	and r2,r2,r3                                   
 8001fcc:	b8 22 08 00 	or r1,r1,r2                                    
 8001fd0:	59 61 00 18 	sw (r11+24),r1                                 
  rtems_libio_t *iop;                                                 
  rtems_libio_t *diop;                                                
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
 8001fd4:	34 0c 00 00 	mvi r12,0                                      
 8001fd8:	e0 00 00 08 	bi 8001ff8 <fcntl+0x1b4>                       
      errno = ENOTSUP;                                                
      ret = -1;                                                       
      break;                                                          
                                                                      
    case F_GETOWN:       /*  for sockets. */                          
      errno = ENOTSUP;                                                
 8001fdc:	f8 00 29 50 	calli 800c51c <__errno>                        
 8001fe0:	34 02 00 86 	mvi r2,134                                     
 8001fe4:	e0 00 00 03 	bi 8001ff0 <fcntl+0x1ac>                       
      ret = -1;                                                       
      break;                                                          
                                                                      
    default:                                                          
      errno = EINVAL;                                                 
 8001fe8:	f8 00 29 4d 	calli 800c51c <__errno>                        
 8001fec:	34 02 00 16 	mvi r2,22                                      
 8001ff0:	58 22 00 00 	sw (r1+0),r2                                   
 8001ff4:	e0 00 00 0a 	bi 800201c <fcntl+0x1d8>                       
   *  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 );         
 8001ff8:	29 61 00 24 	lw r1,(r11+36)                                 
 8001ffc:	b9 60 10 00 	mv r2,r11                                      
 8002000:	28 23 00 30 	lw r3,(r1+48)                                  
 8002004:	b9 a0 08 00 	mv r1,r13                                      
 8002008:	d8 60 00 00 	call r3                                        
 800200c:	b8 20 58 00 	mv r11,r1                                      
    if (err) {                                                        
 8002010:	44 20 00 04 	be r1,r0,8002020 <fcntl+0x1dc>                 <== ALWAYS TAKEN
      errno = err;                                                    
 8002014:	f8 00 29 42 	calli 800c51c <__errno>                        <== NOT EXECUTED
 8002018:	58 2b 00 00 	sw (r1+0),r11                                  <== NOT EXECUTED
      ret = -1;                                                       
 800201c:	34 0c ff ff 	mvi r12,-1                                     
  va_list        ap;                                                  
  va_start( ap, cmd );                                                
  ret = vfcntl(fd,cmd,ap);                                            
  va_end(ap);                                                         
  return ret;                                                         
}                                                                     
 8002020:	b9 80 08 00 	mv r1,r12                                      
 8002024:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8002028:	2b 8b 00 20 	lw r11,(sp+32)                                 
 800202c:	2b 8c 00 1c 	lw r12,(sp+28)                                 
 8002030:	2b 8d 00 18 	lw r13,(sp+24)                                 
 8002034:	2b 8e 00 14 	lw r14,(sp+20)                                 
 8002038:	2b 8f 00 10 	lw r15,(sp+16)                                 
 800203c:	2b 90 00 0c 	lw r16,(sp+12)                                 
 8002040:	2b 91 00 08 	lw r17,(sp+8)                                  
 8002044:	37 9c 00 3c 	addi sp,sp,60                                  
 8002048:	c3 a0 00 00 	ret                                            
                                                                      

0800a18c <fifo_open>: */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) {
 800a18c:	37 9c ff e0 	addi sp,sp,-32                                 
 800a190:	5b 8b 00 1c 	sw (sp+28),r11                                 
 800a194:	5b 8c 00 18 	sw (sp+24),r12                                 
 800a198:	5b 8d 00 14 	sw (sp+20),r13                                 
 800a19c:	5b 8e 00 10 	sw (sp+16),r14                                 
 800a1a0:	5b 8f 00 0c 	sw (sp+12),r15                                 
 800a1a4:	5b 90 00 08 	sw (sp+8),r16                                  
 800a1a8:	5b 9d 00 04 	sw (sp+4),ra                                   
                                                                      
static rtems_status_code pipe_lock(void)                              
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (pipe_semaphore == RTEMS_ID_NONE) {                              
 800a1ac:	78 0b 08 02 	mvhi r11,0x802                                 
 800a1b0:	39 6b 26 b0 	ori r11,r11,0x26b0                             
 */                                                                   
int fifo_open(                                                        
  pipe_control_t **pipep,                                             
  rtems_libio_t *iop                                                  
)                                                                     
{                                                                     
 800a1b4:	b8 20 78 00 	mv r15,r1                                      
                                                                      
static rtems_status_code pipe_lock(void)                              
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (pipe_semaphore == RTEMS_ID_NONE) {                              
 800a1b8:	29 61 00 00 	lw r1,(r11+0)                                  
 */                                                                   
int fifo_open(                                                        
  pipe_control_t **pipep,                                             
  rtems_libio_t *iop                                                  
)                                                                     
{                                                                     
 800a1bc:	b8 40 70 00 	mv r14,r2                                      
                                                                      
static rtems_status_code pipe_lock(void)                              
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (pipe_semaphore == RTEMS_ID_NONE) {                              
 800a1c0:	5c 20 00 18 	bne r1,r0,800a220 <fifo_open+0x94>             
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 );
 800a1c4:	78 01 08 02 	mvhi r1,0x802                                  
 800a1c8:	38 21 27 2c 	ori r1,r1,0x272c                               
 800a1cc:	28 21 00 00 	lw r1,(r1+0)                                   
 800a1d0:	34 02 00 00 	mvi r2,0                                       
 800a1d4:	34 03 00 00 	mvi r3,0                                       
 800a1d8:	fb ff eb 77 	calli 8004fb4 <rtems_semaphore_obtain>         
    rtems_libio_lock();                                               
                                                                      
    if (pipe_semaphore == RTEMS_ID_NONE) {                            
 800a1dc:	29 61 00 00 	lw r1,(r11+0)                                  
  free(pipe);                                                         
}                                                                     
                                                                      
static rtems_status_code pipe_lock(void)                              
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
 800a1e0:	34 0c 00 00 	mvi r12,0                                      
                                                                      
  if (pipe_semaphore == RTEMS_ID_NONE) {                              
    rtems_libio_lock();                                               
                                                                      
    if (pipe_semaphore == RTEMS_ID_NONE) {                            
 800a1e4:	5c 2c 00 0a 	bne r1,r12,800a20c <fifo_open+0x80>            <== NEVER TAKEN
      sc = rtems_semaphore_create(                                    
 800a1e8:	78 02 08 02 	mvhi r2,0x802                                  
 800a1ec:	38 42 06 44 	ori r2,r2,0x644                                
 800a1f0:	28 41 00 00 	lw r1,(r2+0)                                   
 800a1f4:	34 03 00 54 	mvi r3,84                                      
 800a1f8:	34 02 00 01 	mvi r2,1                                       
 800a1fc:	34 04 00 00 	mvi r4,0                                       
 800a200:	b9 60 28 00 	mv r5,r11                                      
 800a204:	fb ff ea c0 	calli 8004d04 <rtems_semaphore_create>         
 800a208:	b8 20 60 00 	mv r12,r1                                      
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
 800a20c:	78 01 08 02 	mvhi r1,0x802                                  
 800a210:	38 21 27 2c 	ori r1,r1,0x272c                               
 800a214:	28 21 00 00 	lw r1,(r1+0)                                   
 800a218:	fb ff eb b7 	calli 80050f4 <rtems_semaphore_release>        
    }                                                                 
                                                                      
    rtems_libio_unlock();                                             
  }                                                                   
                                                                      
  if (sc == RTEMS_SUCCESSFUL) {                                       
 800a21c:	5d 80 00 08 	bne r12,r0,800a23c <fifo_open+0xb0>            
    sc = rtems_semaphore_obtain(pipe_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
 800a220:	78 01 08 02 	mvhi r1,0x802                                  
 800a224:	38 21 26 b0 	ori r1,r1,0x26b0                               
 800a228:	28 21 00 00 	lw r1,(r1+0)                                   
 800a22c:	34 02 00 00 	mvi r2,0                                       
 800a230:	34 03 00 00 	mvi r3,0                                       
 800a234:	fb ff eb 60 	calli 8004fb4 <rtems_semaphore_obtain>         
  }                                                                   
                                                                      
  if (sc == RTEMS_SUCCESSFUL) {                                       
 800a238:	44 20 00 03 	be r1,r0,800a244 <fifo_open+0xb8>              <== ALWAYS TAKEN
 800a23c:	34 0c ff f4 	mvi r12,-12                                    
 800a240:	e0 00 00 b9 	bi 800a524 <fifo_open+0x398>                   
                                                                      
  err = pipe_lock();                                                  
  if (err)                                                            
    return err;                                                       
                                                                      
  pipe = *pipep;                                                      
 800a244:	29 eb 00 00 	lw r11,(r15+0)                                 
 800a248:	34 0c 00 00 	mvi r12,0                                      
  if (pipe == NULL) {                                                 
 800a24c:	5d 60 00 41 	bne r11,r0,800a350 <fifo_open+0x1c4>           
{                                                                     
  static char c = 'a';                                                
  pipe_control_t *pipe;                                               
  int err = -ENOMEM;                                                  
                                                                      
  pipe = malloc(sizeof(pipe_control_t));                              
 800a250:	34 01 00 34 	mvi r1,52                                      
 800a254:	fb ff e6 26 	calli 8003aec <malloc>                         
 800a258:	b8 20 58 00 	mv r11,r1                                      
 800a25c:	b8 20 80 00 	mv r16,r1                                      
  if (pipe == NULL)                                                   
 800a260:	44 20 00 3a 	be r1,r0,800a348 <fifo_open+0x1bc>             
    return err;                                                       
  memset(pipe, 0, sizeof(pipe_control_t));                            
 800a264:	34 02 00 00 	mvi r2,0                                       
 800a268:	34 03 00 34 	mvi r3,52                                      
 800a26c:	f8 00 11 36 	calli 800e744 <memset>                         
                                                                      
  pipe->Size = PIPE_BUF;                                              
 800a270:	34 01 02 00 	mvi r1,512                                     
 800a274:	59 61 00 04 	sw (r11+4),r1                                  
  pipe->Buffer = malloc(pipe->Size);                                  
 800a278:	fb ff e6 1d 	calli 8003aec <malloc>                         
 800a27c:	59 61 00 00 	sw (r11+0),r1                                  
  if (! pipe->Buffer)                                                 
 800a280:	44 20 00 30 	be r1,r0,800a340 <fifo_open+0x1b4>             <== NEVER TAKEN
    goto err_buf;                                                     
                                                                      
  err = -ENOMEM;                                                      
                                                                      
  if (rtems_barrier_create(                                           
        rtems_build_name ('P', 'I', 'r', c),                          
 800a284:	78 0d 08 02 	mvhi r13,0x802                                 
  if (! pipe->Buffer)                                                 
    goto err_buf;                                                     
                                                                      
  err = -ENOMEM;                                                      
                                                                      
  if (rtems_barrier_create(                                           
 800a288:	78 03 08 02 	mvhi r3,0x802                                  
 800a28c:	38 63 06 48 	ori r3,r3,0x648                                
        rtems_build_name ('P', 'I', 'r', c),                          
 800a290:	39 ad 21 54 	ori r13,r13,0x2154                             
 800a294:	41 a2 00 00 	lbu r2,(r13+0)                                 
  if (! pipe->Buffer)                                                 
    goto err_buf;                                                     
                                                                      
  err = -ENOMEM;                                                      
                                                                      
  if (rtems_barrier_create(                                           
 800a298:	28 61 00 00 	lw r1,(r3+0)                                   
 800a29c:	35 64 00 2c 	addi r4,r11,44                                 
 800a2a0:	34 03 00 00 	mvi r3,0                                       
 800a2a4:	b8 41 08 00 	or r1,r2,r1                                    
 800a2a8:	34 02 00 00 	mvi r2,0                                       
 800a2ac:	f8 00 04 7c 	calli 800b49c <rtems_barrier_create>           
 800a2b0:	5c 20 00 22 	bne r1,r0,800a338 <fifo_open+0x1ac>            
        rtems_build_name ('P', 'I', 'r', c),                          
        RTEMS_BARRIER_MANUAL_RELEASE, 0,                              
        &pipe->readBarrier) != RTEMS_SUCCESSFUL)                      
    goto err_rbar;                                                    
  if (rtems_barrier_create(                                           
 800a2b4:	78 03 08 02 	mvhi r3,0x802                                  
 800a2b8:	38 63 06 4c 	ori r3,r3,0x64c                                
        rtems_build_name ('P', 'I', 'w', c),                          
 800a2bc:	41 a2 00 00 	lbu r2,(r13+0)                                 
  if (rtems_barrier_create(                                           
        rtems_build_name ('P', 'I', 'r', c),                          
        RTEMS_BARRIER_MANUAL_RELEASE, 0,                              
        &pipe->readBarrier) != RTEMS_SUCCESSFUL)                      
    goto err_rbar;                                                    
  if (rtems_barrier_create(                                           
 800a2c0:	28 61 00 00 	lw r1,(r3+0)                                   
 800a2c4:	35 64 00 30 	addi r4,r11,48                                 
 800a2c8:	34 03 00 00 	mvi r3,0                                       
 800a2cc:	b8 41 08 00 	or r1,r2,r1                                    
 800a2d0:	34 02 00 00 	mvi r2,0                                       
 800a2d4:	f8 00 04 72 	calli 800b49c <rtems_barrier_create>           
 800a2d8:	5c 20 00 16 	bne r1,r0,800a330 <fifo_open+0x1a4>            
        rtems_build_name ('P', 'I', 'w', c),                          
        RTEMS_BARRIER_MANUAL_RELEASE, 0,                              
        &pipe->writeBarrier) != RTEMS_SUCCESSFUL)                     
    goto err_wbar;                                                    
  if (rtems_semaphore_create(                                         
 800a2dc:	78 03 08 02 	mvhi r3,0x802                                  
 800a2e0:	38 63 06 50 	ori r3,r3,0x650                                
        rtems_build_name ('P', 'I', 's', c), 1,                       
 800a2e4:	41 a2 00 00 	lbu r2,(r13+0)                                 
  if (rtems_barrier_create(                                           
        rtems_build_name ('P', 'I', 'w', c),                          
        RTEMS_BARRIER_MANUAL_RELEASE, 0,                              
        &pipe->writeBarrier) != RTEMS_SUCCESSFUL)                     
    goto err_wbar;                                                    
  if (rtems_semaphore_create(                                         
 800a2e8:	28 61 00 00 	lw r1,(r3+0)                                   
 800a2ec:	34 04 00 00 	mvi r4,0                                       
 800a2f0:	34 03 00 10 	mvi r3,16                                      
 800a2f4:	b8 41 08 00 	or r1,r2,r1                                    
 800a2f8:	35 65 00 28 	addi r5,r11,40                                 
 800a2fc:	34 02 00 01 	mvi r2,1                                       
 800a300:	fb ff ea 81 	calli 8004d04 <rtems_semaphore_create>         
 800a304:	5c 20 00 09 	bne r1,r0,800a328 <fifo_open+0x19c>            
#ifdef RTEMS_POSIX_API                                                
  pipe_interruptible(pipe);                                           
#endif                                                                
                                                                      
  *pipep = pipe;                                                      
  if (c ++ == 'z')                                                    
 800a308:	41 a1 00 00 	lbu r1,(r13+0)                                 
 800a30c:	34 22 00 01 	addi r2,r1,1                                   
 800a310:	31 a2 00 00 	sb (r13+0),r2                                  
 800a314:	34 02 00 7a 	mvi r2,122                                     
 800a318:	5c 22 00 0e 	bne r1,r2,800a350 <fifo_open+0x1c4>            
    c = 'a';                                                          
 800a31c:	34 01 00 61 	mvi r1,97                                      
 800a320:	31 a1 00 00 	sb (r13+0),r1                                  
 800a324:	e0 00 00 0b 	bi 800a350 <fifo_open+0x1c4>                   
  return 0;                                                           
                                                                      
err_sem:                                                              
  rtems_barrier_delete(pipe->writeBarrier);                           
 800a328:	29 61 00 30 	lw r1,(r11+48)                                 
 800a32c:	f8 00 04 98 	calli 800b58c <rtems_barrier_delete>           
err_wbar:                                                             
  rtems_barrier_delete(pipe->readBarrier);                            
 800a330:	2a 01 00 2c 	lw r1,(r16+44)                                 
 800a334:	f8 00 04 96 	calli 800b58c <rtems_barrier_delete>           
err_rbar:                                                             
  free(pipe->Buffer);                                                 
 800a338:	2a 01 00 00 	lw r1,(r16+0)                                  
 800a33c:	fb ff e3 ad 	calli 80031f0 <free>                           
err_buf:                                                              
  free(pipe);                                                         
 800a340:	ba 00 08 00 	mv r1,r16                                      
 800a344:	fb ff e3 ab 	calli 80031f0 <free>                           
    if (err)                                                          
      goto out;                                                       
  }                                                                   
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    err = -EINTR;                                                     
 800a348:	34 0c ff f4 	mvi r12,-12                                    
 800a34c:	e0 00 00 0e 	bi 800a384 <fifo_open+0x1f8>                   
    err = pipe_alloc(&pipe);                                          
    if (err)                                                          
      goto out;                                                       
  }                                                                   
                                                                      
  if (! PIPE_LOCK(pipe))                                              
 800a350:	29 61 00 28 	lw r1,(r11+40)                                 
 800a354:	34 02 00 00 	mvi r2,0                                       
 800a358:	34 03 00 00 	mvi r3,0                                       
 800a35c:	fb ff eb 16 	calli 8004fb4 <rtems_semaphore_obtain>         
 800a360:	44 20 00 02 	be r1,r0,800a368 <fifo_open+0x1dc>             <== ALWAYS TAKEN
    err = -EINTR;                                                     
 800a364:	34 0c ff fc 	mvi r12,-4                                     <== NOT EXECUTED
                                                                      
  if (*pipep == NULL) {                                               
 800a368:	29 e1 00 00 	lw r1,(r15+0)                                  
 800a36c:	5c 20 00 06 	bne r1,r0,800a384 <fifo_open+0x1f8>            
    if (err)                                                          
 800a370:	45 81 00 04 	be r12,r1,800a380 <fifo_open+0x1f4>            <== ALWAYS TAKEN
      pipe_free(pipe);                                                
 800a374:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 800a378:	fb ff ff 41 	calli 800a07c <pipe_free>                      <== NOT EXECUTED
 800a37c:	e0 00 00 02 	bi 800a384 <fifo_open+0x1f8>                   <== NOT EXECUTED
    else                                                              
      *pipep = pipe;                                                  
 800a380:	59 eb 00 00 	sw (r15+0),r11                                 
  }                                                                   
                                                                      
out:                                                                  
  pipe_unlock();                                                      
 800a384:	fb ff ff 35 	calli 800a058 <pipe_unlock>                    
  pipe_control_t *pipe;                                               
  unsigned int prevCounter;                                           
  int err;                                                            
                                                                      
  err = pipe_new(pipep);                                              
  if (err)                                                            
 800a388:	5d 80 00 67 	bne r12,r0,800a524 <fifo_open+0x398>           
    return err;                                                       
  pipe = *pipep;                                                      
                                                                      
  switch (LIBIO_ACCMODE(iop)) {                                       
 800a38c:	29 c1 00 18 	lw r1,(r14+24)                                 
 800a390:	34 02 00 04 	mvi r2,4                                       
  int err;                                                            
                                                                      
  err = pipe_new(pipep);                                              
  if (err)                                                            
    return err;                                                       
  pipe = *pipep;                                                      
 800a394:	29 eb 00 00 	lw r11,(r15+0)                                 
                                                                      
  switch (LIBIO_ACCMODE(iop)) {                                       
 800a398:	20 21 00 06 	andi r1,r1,0x6                                 
 800a39c:	44 22 00 24 	be r1,r2,800a42c <fifo_open+0x2a0>             
 800a3a0:	34 02 00 06 	mvi r2,6                                       
 800a3a4:	44 22 00 45 	be r1,r2,800a4b8 <fifo_open+0x32c>             
 800a3a8:	34 02 00 02 	mvi r2,2                                       
 800a3ac:	5c 22 00 57 	bne r1,r2,800a508 <fifo_open+0x37c>            <== NEVER TAKEN
    case LIBIO_FLAGS_READ:                                            
      pipe->readerCounter ++;                                         
 800a3b0:	29 61 00 20 	lw r1,(r11+32)                                 
 800a3b4:	34 21 00 01 	addi r1,r1,1                                   
 800a3b8:	59 61 00 20 	sw (r11+32),r1                                 
      if (pipe->Readers ++ == 0)                                      
 800a3bc:	29 61 00 10 	lw r1,(r11+16)                                 
 800a3c0:	34 22 00 01 	addi r2,r1,1                                   
 800a3c4:	59 62 00 10 	sw (r11+16),r2                                 
 800a3c8:	5c 20 00 04 	bne r1,r0,800a3d8 <fifo_open+0x24c>            <== NEVER TAKEN
        PIPE_WAKEUPWRITERS(pipe);                                     
 800a3cc:	29 61 00 30 	lw r1,(r11+48)                                 
 800a3d0:	37 82 00 20 	addi r2,sp,32                                  
 800a3d4:	f8 00 04 9e 	calli 800b64c <rtems_barrier_release>          
                                                                      
      if (pipe->Writers == 0) {                                       
 800a3d8:	29 61 00 14 	lw r1,(r11+20)                                 
 800a3dc:	5c 20 00 4b 	bne r1,r0,800a508 <fifo_open+0x37c>            
        /* Not an error */                                            
        if (LIBIO_NODELAY(iop))                                       
 800a3e0:	29 c2 00 18 	lw r2,(r14+24)                                 
 800a3e4:	20 42 00 01 	andi r2,r2,0x1                                 
 800a3e8:	5c 41 00 48 	bne r2,r1,800a508 <fifo_open+0x37c>            
          break;                                                      
                                                                      
        prevCounter = pipe->writerCounter;                            
 800a3ec:	29 70 00 24 	lw r16,(r11+36)                                
        err = -EINTR;                                                 
        /* Wait until a writer opens the pipe */                      
        do {                                                          
          PIPE_UNLOCK(pipe);                                          
 800a3f0:	29 61 00 28 	lw r1,(r11+40)                                 
 800a3f4:	fb ff eb 40 	calli 80050f4 <rtems_semaphore_release>        
          if (! PIPE_READWAIT(pipe))                                  
 800a3f8:	29 61 00 2c 	lw r1,(r11+44)                                 
 800a3fc:	34 02 00 00 	mvi r2,0                                       
 800a400:	f8 00 04 b0 	calli 800b6c0 <rtems_barrier_wait>             
 800a404:	b8 20 68 00 	mv r13,r1                                      
 800a408:	5c 20 00 43 	bne r1,r0,800a514 <fifo_open+0x388>            <== NEVER TAKEN
            goto out_error;                                           
          if (! PIPE_LOCK(pipe))                                      
 800a40c:	29 61 00 28 	lw r1,(r11+40)                                 
 800a410:	34 02 00 00 	mvi r2,0                                       
 800a414:	34 03 00 00 	mvi r3,0                                       
 800a418:	fb ff ea e7 	calli 8004fb4 <rtems_semaphore_obtain>         
 800a41c:	5c 2d 00 3e 	bne r1,r13,800a514 <fifo_open+0x388>           <== NEVER TAKEN
            goto out_error;                                           
        } while (prevCounter == pipe->writerCounter);                 
 800a420:	29 61 00 24 	lw r1,(r11+36)                                 
 800a424:	46 01 ff f3 	be r16,r1,800a3f0 <fifo_open+0x264>            <== NEVER TAKEN
 800a428:	e0 00 00 38 	bi 800a508 <fifo_open+0x37c>                   
      }                                                               
      break;                                                          
                                                                      
    case LIBIO_FLAGS_WRITE:                                           
      pipe->writerCounter ++;                                         
 800a42c:	29 61 00 24 	lw r1,(r11+36)                                 
 800a430:	34 21 00 01 	addi r1,r1,1                                   
 800a434:	59 61 00 24 	sw (r11+36),r1                                 
                                                                      
      if (pipe->Writers ++ == 0)                                      
 800a438:	29 61 00 14 	lw r1,(r11+20)                                 
 800a43c:	34 22 00 01 	addi r2,r1,1                                   
 800a440:	59 62 00 14 	sw (r11+20),r2                                 
 800a444:	5c 20 00 04 	bne r1,r0,800a454 <fifo_open+0x2c8>            <== NEVER TAKEN
        PIPE_WAKEUPREADERS(pipe);                                     
 800a448:	29 61 00 2c 	lw r1,(r11+44)                                 
 800a44c:	37 82 00 20 	addi r2,sp,32                                  
 800a450:	f8 00 04 7f 	calli 800b64c <rtems_barrier_release>          
                                                                      
      if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {                 
 800a454:	29 61 00 10 	lw r1,(r11+16)                                 
 800a458:	5c 20 00 2c 	bne r1,r0,800a508 <fifo_open+0x37c>            
 800a45c:	29 c2 00 18 	lw r2,(r14+24)                                 
 800a460:	20 42 00 01 	andi r2,r2,0x1                                 
 800a464:	44 41 00 05 	be r2,r1,800a478 <fifo_open+0x2ec>             
	PIPE_UNLOCK(pipe);                                                   
 800a468:	29 61 00 28 	lw r1,(r11+40)                                 
        err = -ENXIO;                                                 
 800a46c:	34 0c ff fa 	mvi r12,-6                                     
                                                                      
      if (pipe->Writers ++ == 0)                                      
        PIPE_WAKEUPREADERS(pipe);                                     
                                                                      
      if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {                 
	PIPE_UNLOCK(pipe);                                                   
 800a470:	fb ff eb 21 	calli 80050f4 <rtems_semaphore_release>        
        err = -ENXIO;                                                 
        goto out_error;                                               
 800a474:	e0 00 00 29 	bi 800a518 <fifo_open+0x38c>                   
      }                                                               
                                                                      
      if (pipe->Readers == 0) {                                       
        prevCounter = pipe->readerCounter;                            
 800a478:	29 70 00 20 	lw r16,(r11+32)                                
        err = -EINTR;                                                 
        do {                                                          
          PIPE_UNLOCK(pipe);                                          
 800a47c:	29 61 00 28 	lw r1,(r11+40)                                 
 800a480:	fb ff eb 1d 	calli 80050f4 <rtems_semaphore_release>        
          if (! PIPE_WRITEWAIT(pipe))                                 
 800a484:	29 61 00 30 	lw r1,(r11+48)                                 
 800a488:	34 02 00 00 	mvi r2,0                                       
 800a48c:	f8 00 04 8d 	calli 800b6c0 <rtems_barrier_wait>             
 800a490:	b8 20 68 00 	mv r13,r1                                      
 800a494:	5c 20 00 20 	bne r1,r0,800a514 <fifo_open+0x388>            <== NEVER TAKEN
            goto out_error;                                           
          if (! PIPE_LOCK(pipe))                                      
 800a498:	29 61 00 28 	lw r1,(r11+40)                                 
 800a49c:	34 02 00 00 	mvi r2,0                                       
 800a4a0:	34 03 00 00 	mvi r3,0                                       
 800a4a4:	fb ff ea c4 	calli 8004fb4 <rtems_semaphore_obtain>         
 800a4a8:	5c 2d 00 1b 	bne r1,r13,800a514 <fifo_open+0x388>           <== NEVER TAKEN
            goto out_error;                                           
        } while (prevCounter == pipe->readerCounter);                 
 800a4ac:	29 61 00 20 	lw r1,(r11+32)                                 
 800a4b0:	46 01 ff f3 	be r16,r1,800a47c <fifo_open+0x2f0>            <== NEVER TAKEN
 800a4b4:	e0 00 00 15 	bi 800a508 <fifo_open+0x37c>                   
      }                                                               
      break;                                                          
                                                                      
    case LIBIO_FLAGS_READ_WRITE:                                      
      pipe->readerCounter ++;                                         
 800a4b8:	29 61 00 20 	lw r1,(r11+32)                                 
 800a4bc:	34 21 00 01 	addi r1,r1,1                                   
 800a4c0:	59 61 00 20 	sw (r11+32),r1                                 
      if (pipe->Readers ++ == 0)                                      
 800a4c4:	29 61 00 10 	lw r1,(r11+16)                                 
 800a4c8:	34 22 00 01 	addi r2,r1,1                                   
 800a4cc:	59 62 00 10 	sw (r11+16),r2                                 
 800a4d0:	5c 20 00 04 	bne r1,r0,800a4e0 <fifo_open+0x354>            <== NEVER TAKEN
        PIPE_WAKEUPWRITERS(pipe);                                     
 800a4d4:	29 61 00 30 	lw r1,(r11+48)                                 
 800a4d8:	37 82 00 20 	addi r2,sp,32                                  
 800a4dc:	f8 00 04 5c 	calli 800b64c <rtems_barrier_release>          
      pipe->writerCounter ++;                                         
 800a4e0:	29 61 00 24 	lw r1,(r11+36)                                 
 800a4e4:	34 21 00 01 	addi r1,r1,1                                   
 800a4e8:	59 61 00 24 	sw (r11+36),r1                                 
      if (pipe->Writers ++ == 0)                                      
 800a4ec:	29 61 00 14 	lw r1,(r11+20)                                 
 800a4f0:	34 22 00 01 	addi r2,r1,1                                   
 800a4f4:	59 62 00 14 	sw (r11+20),r2                                 
 800a4f8:	5c 20 00 04 	bne r1,r0,800a508 <fifo_open+0x37c>            <== NEVER TAKEN
        PIPE_WAKEUPREADERS(pipe);                                     
 800a4fc:	29 61 00 2c 	lw r1,(r11+44)                                 
 800a500:	37 82 00 20 	addi r2,sp,32                                  
 800a504:	f8 00 04 52 	calli 800b64c <rtems_barrier_release>          
      break;                                                          
  }                                                                   
                                                                      
  PIPE_UNLOCK(pipe);                                                  
 800a508:	29 61 00 28 	lw r1,(r11+40)                                 
 800a50c:	fb ff ea fa 	calli 80050f4 <rtems_semaphore_release>        
  return 0;                                                           
 800a510:	e0 00 00 05 	bi 800a524 <fifo_open+0x398>                   
        goto out_error;                                               
      }                                                               
                                                                      
      if (pipe->Readers == 0) {                                       
        prevCounter = pipe->readerCounter;                            
        err = -EINTR;                                                 
 800a514:	34 0c ff fc 	mvi r12,-4                                     <== NOT EXECUTED
                                                                      
  PIPE_UNLOCK(pipe);                                                  
  return 0;                                                           
                                                                      
out_error:                                                            
  pipe_release(pipep, iop);                                           
 800a518:	b9 e0 08 00 	mv r1,r15                                      
 800a51c:	b9 c0 10 00 	mv r2,r14                                      
 800a520:	fb ff fe e9 	calli 800a0c4 <pipe_release>                   
  return err;                                                         
}                                                                     
 800a524:	b9 80 08 00 	mv r1,r12                                      
 800a528:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800a52c:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 800a530:	2b 8c 00 18 	lw r12,(sp+24)                                 
 800a534:	2b 8d 00 14 	lw r13,(sp+20)                                 
 800a538:	2b 8e 00 10 	lw r14,(sp+16)                                 
 800a53c:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 800a540:	2b 90 00 08 	lw r16,(sp+8)                                  
 800a544:	37 9c 00 20 	addi sp,sp,32                                  
 800a548:	c3 a0 00 00 	ret                                            
                                                                      

080020f8 <fpathconf>: long fpathconf( int fd, int name ) {
 80020f8:	37 9c ff f0 	addi sp,sp,-16                                 
 80020fc:	5b 8b 00 10 	sw (sp+16),r11                                 
 8002100:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8002104:	5b 8d 00 08 	sw (sp+8),r13                                  
 8002108:	5b 9d 00 04 	sw (sp+4),ra                                   
  long                                    return_value;               
  rtems_libio_t                          *iop;                        
  rtems_filesystem_limits_and_options_t  *the_limits;                 
                                                                      
  rtems_libio_check_fd(fd);                                           
 800210c:	78 03 08 01 	mvhi r3,0x801                                  
 8002110:	38 63 50 10 	ori r3,r3,0x5010                               
                                                                      
long fpathconf(                                                       
  int   fd,                                                           
  int   name                                                          
)                                                                     
{                                                                     
 8002114:	b8 40 68 00 	mv r13,r2                                      
  long                                    return_value;               
  rtems_libio_t                          *iop;                        
  rtems_filesystem_limits_and_options_t  *the_limits;                 
                                                                      
  rtems_libio_check_fd(fd);                                           
 8002118:	28 62 00 00 	lw r2,(r3+0)                                   
 800211c:	54 41 00 02 	bgu r2,r1,8002124 <fpathconf+0x2c>             
 8002120:	e0 00 00 0a 	bi 8002148 <fpathconf+0x50>                    
  iop = rtems_libio_iop(fd);                                          
 8002124:	34 02 00 06 	mvi r2,6                                       
 8002128:	78 0b 08 01 	mvhi r11,0x801                                 
 800212c:	f8 00 41 1b 	calli 8012598 <__ashlsi3>                      
 8002130:	39 6b 57 10 	ori r11,r11,0x5710                             
 8002134:	29 63 00 00 	lw r3,(r11+0)                                  
 8002138:	b4 61 18 00 	add r3,r3,r1                                   
  rtems_libio_check_is_open(iop);                                     
 800213c:	28 61 00 18 	lw r1,(r3+24)                                  
 8002140:	20 22 01 00 	andi r2,r1,0x100                               
 8002144:	5c 40 00 04 	bne r2,r0,8002154 <fpathconf+0x5c>             <== ALWAYS TAKEN
 8002148:	f8 00 28 f5 	calli 800c51c <__errno>                        
 800214c:	34 02 00 09 	mvi r2,9                                       
 8002150:	e0 00 00 28 	bi 80021f0 <fpathconf+0xf8>                    
  rtems_libio_check_permissions(iop, LIBIO_FLAGS_READ);               
 8002154:	20 21 00 02 	andi r1,r1,0x2                                 
 8002158:	44 20 00 24 	be r1,r0,80021e8 <fpathconf+0xf0>              
   *  Now process the information request.                            
   */                                                                 
                                                                      
  the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options;  
                                                                      
  switch ( name ) {                                                   
 800215c:	34 01 00 0b 	mvi r1,11                                      
                                                                      
  /*                                                                  
   *  Now process the information request.                            
   */                                                                 
                                                                      
  the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options;  
 8002160:	28 6b 00 2c 	lw r11,(r3+44)                                 
                                                                      
  switch ( name ) {                                                   
 8002164:	55 a1 00 21 	bgu r13,r1,80021e8 <fpathconf+0xf0>            
 8002168:	78 0c 08 01 	mvhi r12,0x801                                 
 800216c:	b9 a0 08 00 	mv r1,r13                                      
 8002170:	34 02 00 02 	mvi r2,2                                       
 8002174:	f8 00 41 09 	calli 8012598 <__ashlsi3>                      
 8002178:	39 8c 38 18 	ori r12,r12,0x3818                             
 800217c:	b5 81 08 00 	add r1,r12,r1                                  
 8002180:	28 21 00 00 	lw r1,(r1+0)                                   
 8002184:	c0 20 00 00 	b r1                                           
    case _PC_LINK_MAX:                                                
      return_value = the_limits->link_max;                            
 8002188:	29 61 00 38 	lw r1,(r11+56)                                 
      break;                                                          
 800218c:	e0 00 00 1b 	bi 80021f8 <fpathconf+0x100>                   
    case _PC_MAX_CANON:                                               
      return_value = the_limits->max_canon;                           
 8002190:	29 61 00 3c 	lw r1,(r11+60)                                 
      break;                                                          
 8002194:	e0 00 00 19 	bi 80021f8 <fpathconf+0x100>                   
    case _PC_MAX_INPUT:                                               
      return_value = the_limits->max_input;                           
 8002198:	29 61 00 40 	lw r1,(r11+64)                                 
      break;                                                          
 800219c:	e0 00 00 17 	bi 80021f8 <fpathconf+0x100>                   
    case _PC_NAME_MAX:                                                
      return_value = the_limits->name_max;                            
 80021a0:	29 61 00 44 	lw r1,(r11+68)                                 
      break;                                                          
 80021a4:	e0 00 00 15 	bi 80021f8 <fpathconf+0x100>                   
    case _PC_PATH_MAX:                                                
      return_value = the_limits->path_max;                            
 80021a8:	29 61 00 48 	lw r1,(r11+72)                                 
      break;                                                          
 80021ac:	e0 00 00 13 	bi 80021f8 <fpathconf+0x100>                   
    case _PC_PIPE_BUF:                                                
      return_value = the_limits->pipe_buf;                            
 80021b0:	29 61 00 4c 	lw r1,(r11+76)                                 
      break;                                                          
 80021b4:	e0 00 00 11 	bi 80021f8 <fpathconf+0x100>                   
    case _PC_CHOWN_RESTRICTED:                                        
      return_value = the_limits->posix_chown_restrictions;            
 80021b8:	29 61 00 54 	lw r1,(r11+84)                                 
      break;                                                          
 80021bc:	e0 00 00 0f 	bi 80021f8 <fpathconf+0x100>                   
    case _PC_NO_TRUNC:                                                
      return_value = the_limits->posix_no_trunc;                      
 80021c0:	29 61 00 58 	lw r1,(r11+88)                                 
      break;                                                          
 80021c4:	e0 00 00 0d 	bi 80021f8 <fpathconf+0x100>                   
    case _PC_VDISABLE:                                                
      return_value = the_limits->posix_vdisable;                      
 80021c8:	29 61 00 64 	lw r1,(r11+100)                                
      break;                                                          
 80021cc:	e0 00 00 0b 	bi 80021f8 <fpathconf+0x100>                   
    case _PC_ASYNC_IO:                                                
      return_value = the_limits->posix_async_io;                      
 80021d0:	29 61 00 50 	lw r1,(r11+80)                                 
      break;                                                          
 80021d4:	e0 00 00 09 	bi 80021f8 <fpathconf+0x100>                   
    case _PC_PRIO_IO:                                                 
      return_value = the_limits->posix_prio_io;                       
 80021d8:	29 61 00 5c 	lw r1,(r11+92)                                 
      break;                                                          
 80021dc:	e0 00 00 07 	bi 80021f8 <fpathconf+0x100>                   
    case _PC_SYNC_IO:                                                 
      return_value = the_limits->posix_sync_io;                       
 80021e0:	29 61 00 60 	lw r1,(r11+96)                                 
      break;                                                          
 80021e4:	e0 00 00 05 	bi 80021f8 <fpathconf+0x100>                   
    default:                                                          
      rtems_set_errno_and_return_minus_one( EINVAL );                 
 80021e8:	f8 00 28 cd 	calli 800c51c <__errno>                        
 80021ec:	34 02 00 16 	mvi r2,22                                      
 80021f0:	58 22 00 00 	sw (r1+0),r2                                   
 80021f4:	34 01 ff ff 	mvi r1,-1                                      
      break;                                                          
  }                                                                   
                                                                      
  return return_value;                                                
}                                                                     
 80021f8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80021fc:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8002200:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8002204:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8002208:	37 9c 00 10 	addi sp,sp,16                                  
 800220c:	c3 a0 00 00 	ret                                            
                                                                      

08001320 <free>: #include <stdlib.h> void free( void *ptr ) {
 8001320:	37 9c ff f4 	addi sp,sp,-12                                 
 8001324:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8001328:	5b 8c 00 08 	sw (sp+8),r12                                  
 800132c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8001330:	b8 20 58 00 	mv r11,r1                                      
  MSBUMP(free_calls, 1);                                              
 8001334:	78 01 08 01 	mvhi r1,0x801                                  
 8001338:	38 21 37 28 	ori r1,r1,0x3728                               
 800133c:	28 22 00 0c 	lw r2,(r1+12)                                  
 8001340:	34 42 00 01 	addi r2,r2,1                                   
 8001344:	58 22 00 0c 	sw (r1+12),r2                                  
                                                                      
  if ( !ptr )                                                         
 8001348:	45 60 00 1f 	be r11,r0,80013c4 <free+0xa4>                  
    return;                                                           
                                                                      
  /*                                                                  
   *  Do not attempt to free memory if in a critical section or ISR.  
   */                                                                 
  if ( _System_state_Is_up(_System_state_Get()) &&                    
 800134c:	78 01 08 01 	mvhi r1,0x801                                  
 8001350:	38 21 39 e0 	ori r1,r1,0x39e0                               
 8001354:	28 22 00 00 	lw r2,(r1+0)                                   
 8001358:	34 01 00 03 	mvi r1,3                                       
 800135c:	5c 41 00 06 	bne r2,r1,8001374 <free+0x54>                  <== NEVER TAKEN
       !malloc_is_system_state_OK() ) {                               
 8001360:	f8 00 00 80 	calli 8001560 <malloc_is_system_state_OK>      
    return;                                                           
                                                                      
  /*                                                                  
   *  Do not attempt to free memory if in a critical section or ISR.  
   */                                                                 
  if ( _System_state_Is_up(_System_state_Get()) &&                    
 8001364:	5c 20 00 04 	bne r1,r0,8001374 <free+0x54>                  
       !malloc_is_system_state_OK() ) {                               
      malloc_deferred_free(ptr);                                      
 8001368:	b9 60 08 00 	mv r1,r11                                      
 800136c:	f8 00 00 9d 	calli 80015e0 <malloc_deferred_free>           
      return;                                                         
 8001370:	e0 00 00 15 	bi 80013c4 <free+0xa4>                         
  }                                                                   
                                                                      
  /*                                                                  
   *  If configured, update the statistics                            
   */                                                                 
  if ( rtems_malloc_statistics_helpers )                              
 8001374:	78 01 08 01 	mvhi r1,0x801                                  
 8001378:	38 21 36 80 	ori r1,r1,0x3680                               
 800137c:	28 21 00 00 	lw r1,(r1+0)                                   
 8001380:	44 20 00 04 	be r1,r0,8001390 <free+0x70>                   
    (*rtems_malloc_statistics_helpers->at_free)(ptr);                 
 8001384:	28 22 00 08 	lw r2,(r1+8)                                   
 8001388:	b9 60 08 00 	mv r1,r11                                      
 800138c:	d8 40 00 00 	call r2                                        
                                                                      
  if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) {            
 8001390:	78 0c 08 01 	mvhi r12,0x801                                 
 8001394:	39 8c 30 4c 	ori r12,r12,0x304c                             
 8001398:	29 81 00 00 	lw r1,(r12+0)                                  
 800139c:	b9 60 10 00 	mv r2,r11                                      
 80013a0:	f8 00 0d af 	calli 8004a5c <_Protected_heap_Free>           
 80013a4:	5c 20 00 08 	bne r1,r0,80013c4 <free+0xa4>                  
    printk( "Program heap: free of bad pointer %p -- range %p - %p \n",
      ptr,                                                            
      RTEMS_Malloc_Heap->area_begin,                                  
 80013a8:	29 84 00 00 	lw r4,(r12+0)                                  
   */                                                                 
  if ( rtems_malloc_statistics_helpers )                              
    (*rtems_malloc_statistics_helpers->at_free)(ptr);                 
                                                                      
  if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) {            
    printk( "Program heap: free of bad pointer %p -- range %p - %p \n",
 80013ac:	78 01 08 01 	mvhi r1,0x801                                  
 80013b0:	38 21 1b cc 	ori r1,r1,0x1bcc                               
 80013b4:	28 83 00 18 	lw r3,(r4+24)                                  
 80013b8:	28 84 00 1c 	lw r4,(r4+28)                                  
 80013bc:	b9 60 10 00 	mv r2,r11                                      
 80013c0:	f8 00 03 c6 	calli 80022d8 <printk>                         
      RTEMS_Malloc_Heap->area_begin,                                  
      RTEMS_Malloc_Heap->area_end                                     
    );                                                                
  }                                                                   
                                                                      
}                                                                     
 80013c4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80013c8:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 80013cc:	2b 8c 00 08 	lw r12,(sp+8)                                  
 80013d0:	37 9c 00 0c 	addi sp,sp,12                                  
 80013d4:	c3 a0 00 00 	ret                                            
                                                                      

08002a7c <free_user_env>: * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) {
 8002a7c:	37 9c ff f8 	addi sp,sp,-8                                  
 8002a80:	5b 8b 00 08 	sw (sp+8),r11                                  
 8002a84:	5b 9d 00 04 	sw (sp+4),ra                                   
 8002a88:	b8 20 58 00 	mv r11,r1                                      
  rtems_user_env_t *env = (rtems_user_env_t*) venv ;                  
                                                                      
  if (env != &rtems_global_user_env                                   
 8002a8c:	78 01 08 01 	mvhi r1,0x801                                  
 8002a90:	38 21 37 48 	ori r1,r1,0x3748                               
 8002a94:	45 61 00 07 	be r11,r1,8002ab0 <free_user_env+0x34>         <== NEVER TAKEN
  #ifdef HAVE_USERENV_REFCNT                                          
      && --env->refcnt <= 0                                           
  #endif                                                              
  ) {                                                                 
    rtems_filesystem_freenode( &env->current_directory);              
 8002a98:	35 61 00 04 	addi r1,r11,4                                  
 8002a9c:	fb ff fb 2a 	calli 8001744 <rtems_filesystem_freenode>      
    rtems_filesystem_freenode( &env->root_directory);                 
 8002aa0:	35 61 00 18 	addi r1,r11,24                                 
 8002aa4:	fb ff fb 28 	calli 8001744 <rtems_filesystem_freenode>      
    free(env);                                                        
 8002aa8:	b9 60 08 00 	mv r1,r11                                      
 8002aac:	fb ff fb 2e 	calli 8001764 <free>                           
  }                                                                   
}                                                                     
 8002ab0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8002ab4:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8002ab8:	37 9c 00 08 	addi sp,sp,8                                   
 8002abc:	c3 a0 00 00 	ret                                            
                                                                      

080125e8 <getdents>: int getdents( int dd_fd, char *dd_buf, int dd_len ) {
 80125e8:	37 9c ff dc 	addi sp,sp,-36                                 
 80125ec:	5b 8b 00 10 	sw (sp+16),r11                                 
 80125f0:	5b 8c 00 0c 	sw (sp+12),r12                                 
 80125f4:	5b 8d 00 08 	sw (sp+8),r13                                  
 80125f8:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_filesystem_location_info_t  loc;                              
                                                                      
  /*                                                                  
   *  Get the file control block structure associated with the file descriptor
   */                                                                 
  iop = rtems_libio_iop( dd_fd );                                     
 80125fc:	78 04 08 01 	mvhi r4,0x801                                  
 8012600:	38 84 50 10 	ori r4,r4,0x5010                               
int getdents(                                                         
  int   dd_fd,                                                        
  char *dd_buf,                                                       
  int   dd_len                                                        
)                                                                     
{                                                                     
 8012604:	b8 40 68 00 	mv r13,r2                                      
  rtems_filesystem_location_info_t  loc;                              
                                                                      
  /*                                                                  
   *  Get the file control block structure associated with the file descriptor
   */                                                                 
  iop = rtems_libio_iop( dd_fd );                                     
 8012608:	28 82 00 00 	lw r2,(r4+0)                                   
int getdents(                                                         
  int   dd_fd,                                                        
  char *dd_buf,                                                       
  int   dd_len                                                        
)                                                                     
{                                                                     
 801260c:	b8 60 60 00 	mv r12,r3                                      
  rtems_filesystem_location_info_t  loc;                              
                                                                      
  /*                                                                  
   *  Get the file control block structure associated with the file descriptor
   */                                                                 
  iop = rtems_libio_iop( dd_fd );                                     
 8012610:	34 0b 00 00 	mvi r11,0                                      
 8012614:	50 22 00 07 	bgeu r1,r2,8012630 <getdents+0x48>             <== NEVER TAKEN
 8012618:	78 0b 08 01 	mvhi r11,0x801                                 
 801261c:	39 6b 58 2c 	ori r11,r11,0x582c                             
 8012620:	34 02 00 06 	mvi r2,6                                       
 8012624:	fb ff ba bc 	calli 8001114 <__ashlsi3>                      
 8012628:	29 6b 00 00 	lw r11,(r11+0)                                 
 801262c:	b5 61 58 00 	add r11,r11,r1                                 
                                                                      
  /*                                                                  
   *  Make sure we are working on a directory                         
   */                                                                 
  loc = iop->pathinfo;                                                
 8012630:	29 64 00 20 	lw r4,(r11+32)                                 
 8012634:	29 61 00 28 	lw r1,(r11+40)                                 
 8012638:	29 65 00 1c 	lw r5,(r11+28)                                 
 801263c:	29 62 00 2c 	lw r2,(r11+44)                                 
 8012640:	29 63 00 24 	lw r3,(r11+36)                                 
 8012644:	5b 84 00 18 	sw (sp+24),r4                                  
  if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY )
 8012648:	28 24 00 10 	lw r4,(r1+16)                                  
  iop = rtems_libio_iop( dd_fd );                                     
                                                                      
  /*                                                                  
   *  Make sure we are working on a directory                         
   */                                                                 
  loc = iop->pathinfo;                                                
 801264c:	5b 81 00 20 	sw (sp+32),r1                                  
 8012650:	5b 82 00 24 	sw (sp+36),r2                                  
 8012654:	5b 85 00 14 	sw (sp+20),r5                                  
 8012658:	5b 83 00 1c 	sw (sp+28),r3                                  
  if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY )
 801265c:	37 81 00 14 	addi r1,sp,20                                  
 8012660:	d8 80 00 00 	call r4                                        
 8012664:	34 02 00 01 	mvi r2,1                                       
 8012668:	44 22 00 06 	be r1,r2,8012680 <getdents+0x98>               
    rtems_set_errno_and_return_minus_one( ENOTDIR );                  
 801266c:	fb ff e6 bc 	calli 800c15c <__errno>                        
 8012670:	34 02 00 14 	mvi r2,20                                      
 8012674:	58 22 00 00 	sw (r1+0),r2                                   
 8012678:	34 01 ff ff 	mvi r1,-1                                      
 801267c:	e0 00 00 07 	bi 8012698 <getdents+0xb0>                     
                                                                      
  /*                                                                  
   *  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  );   
 8012680:	29 61 00 24 	lw r1,(r11+36)                                 
 8012684:	b9 a0 10 00 	mv r2,r13                                      
 8012688:	b9 80 18 00 	mv r3,r12                                      
 801268c:	28 24 00 08 	lw r4,(r1+8)                                   
 8012690:	b9 60 08 00 	mv r1,r11                                      
 8012694:	d8 80 00 00 	call r4                                        
}                                                                     
 8012698:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801269c:	2b 8b 00 10 	lw r11,(sp+16)                                 
 80126a0:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 80126a4:	2b 8d 00 08 	lw r13,(sp+8)                                  
 80126a8:	37 9c 00 24 	addi sp,sp,36                                  
 80126ac:	c3 a0 00 00 	ret                                            
                                                                      

080013d8 <gettimeofday>: */ int gettimeofday( struct timeval *tp, void * __tz __attribute__((unused)) ) {
 80013d8:	37 9c ff ec 	addi sp,sp,-20                                 
 80013dc:	5b 8b 00 0c 	sw (sp+12),r11                                 
 80013e0:	5b 8c 00 08 	sw (sp+8),r12                                  
 80013e4:	5b 9d 00 04 	sw (sp+4),ra                                   
 80013e8:	b8 20 58 00 	mv r11,r1                                      
  /* struct timezone* tzp = (struct timezone*) __tz; */               
  if ( !tp )                                                          
 80013ec:	5c 20 00 06 	bne r1,r0,8001404 <gettimeofday+0x2c>          <== ALWAYS TAKEN
    rtems_set_errno_and_return_minus_one( EFAULT );                   
 80013f0:	f8 00 27 e8 	calli 800b390 <__errno>                        <== NOT EXECUTED
 80013f4:	34 02 00 0e 	mvi r2,14                                      <== NOT EXECUTED
 80013f8:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
 80013fc:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
 8001400:	e0 00 00 0f 	bi 800143c <gettimeofday+0x64>                 <== NOT EXECUTED
{                                                                     
  ISR_Level       level;                                              
  struct timespec now;                                                
  suseconds_t     useconds;                                           
                                                                      
  _ISR_Disable(level);                                                
 8001404:	90 00 60 00 	rcsr r12,IE                                    
 8001408:	34 01 ff fe 	mvi r1,-2                                      
 800140c:	a1 81 08 00 	and r1,r12,r1                                  
 8001410:	d0 01 00 00 	wcsr IE,r1                                     
    _TOD_Get( &now );                                                 
 8001414:	37 81 00 10 	addi r1,sp,16                                  
 8001418:	f8 00 09 54 	calli 8003968 <_TOD_Get>                       
  _ISR_Enable(level);                                                 
 800141c:	d0 0c 00 00 	wcsr IE,r12                                    
                                                                      
  useconds = (suseconds_t)now.tv_nsec;                                
  useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND;           
                                                                      
  time->tv_sec  = now.tv_sec;                                         
 8001420:	2b 81 00 10 	lw r1,(sp+16)                                  
  _ISR_Disable(level);                                                
    _TOD_Get( &now );                                                 
  _ISR_Enable(level);                                                 
                                                                      
  useconds = (suseconds_t)now.tv_nsec;                                
  useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND;           
 8001424:	34 02 03 e8 	mvi r2,1000                                    
                                                                      
  time->tv_sec  = now.tv_sec;                                         
 8001428:	59 61 00 00 	sw (r11+0),r1                                  
  _ISR_Disable(level);                                                
    _TOD_Get( &now );                                                 
  _ISR_Enable(level);                                                 
                                                                      
  useconds = (suseconds_t)now.tv_nsec;                                
  useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND;           
 800142c:	2b 81 00 14 	lw r1,(sp+20)                                  
 8001430:	f8 00 3d 97 	calli 8010a8c <__divsi3>                       
                                                                      
  time->tv_sec  = now.tv_sec;                                         
  time->tv_usec = useconds;                                           
 8001434:	59 61 00 04 	sw (r11+4),r1                                  
   *  Timezone information ignored by the OS proper.   Per email      
   *  with Eric Norum, this is how GNU/Linux, Solaris, and MacOS X    
   *  do it.  This puts us in good company.                           
   */                                                                 
                                                                      
  return 0;                                                           
 8001438:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 800143c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8001440:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8001444:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8001448:	37 9c 00 14 	addi sp,sp,20                                  
 800144c:	c3 a0 00 00 	ret                                            
                                                                      

0800a91c <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 )
 800a91c:	28 22 00 1c 	lw r2,(r1+28)                                  
 800a920:	34 03 00 01 	mvi r3,1                                       
 800a924:	28 44 00 4c 	lw r4,(r2+76)                                  
     return -1;      /* It wasn't a directory --> return error */     
 800a928:	34 02 ff ff 	mvi r2,-1                                      
  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 )                            
 800a92c:	5c 83 00 04 	bne r4,r3,800a93c <imfs_dir_open+0x20>         <== NEVER TAKEN
     return -1;      /* It wasn't a directory --> return error */     
                                                                      
  iop->offset = 0;                                                    
 800a930:	58 20 00 10 	sw (r1+16),r0                                  
 800a934:	58 20 00 14 	sw (r1+20),r0                                  
  return 0;                                                           
 800a938:	34 02 00 00 	mvi r2,0                                       
}                                                                     
 800a93c:	b8 40 08 00 	mv r1,r2                                       
 800a940:	c3 a0 00 00 	ret                                            
                                                                      

0800ab78 <imfs_dir_rmnod>: int imfs_dir_rmnod( rtems_filesystem_location_info_t *parent_pathloc, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN */ ) {
 800ab78:	37 9c ff f8 	addi sp,sp,-8                                  
 800ab7c:	5b 8b 00 08 	sw (sp+8),r11                                  
 800ab80:	5b 9d 00 04 	sw (sp+4),ra                                   
  IMFS_jnode_t *the_jnode;                                            
                                                                      
  the_jnode = (IMFS_jnode_t *) pathloc->node_access;                  
 800ab84:	28 4b 00 00 	lw r11,(r2+0)                                  
                                                                      
  /*                                                                  
   * You cannot remove a node that still has children                 
   */                                                                 
                                                                      
  if ( ! rtems_chain_is_empty( &the_jnode->info.directory.Entries ) ) 
 800ab88:	29 63 00 50 	lw r3,(r11+80)                                 
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
 800ab8c:	35 61 00 54 	addi r1,r11,84                                 
 800ab90:	44 61 00 04 	be r3,r1,800aba0 <imfs_dir_rmnod+0x28>         
     rtems_set_errno_and_return_minus_one( ENOTEMPTY );               
 800ab94:	f8 00 01 ff 	calli 800b390 <__errno>                        
 800ab98:	34 02 00 5a 	mvi r2,90                                      
 800ab9c:	e0 00 00 06 	bi 800abb4 <imfs_dir_rmnod+0x3c>               
                                                                      
  /*                                                                  
   * You cannot remove the file system root node.                     
   */                                                                 
                                                                      
  if ( pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access )
 800aba0:	28 41 00 10 	lw r1,(r2+16)                                  
 800aba4:	28 21 00 1c 	lw r1,(r1+28)                                  
 800aba8:	5c 2b 00 06 	bne r1,r11,800abc0 <imfs_dir_rmnod+0x48>       
     rtems_set_errno_and_return_minus_one( EBUSY );                   
 800abac:	f8 00 01 f9 	calli 800b390 <__errno>                        
 800abb0:	34 02 00 10 	mvi r2,16                                      
 800abb4:	58 22 00 00 	sw (r1+0),r2                                   
 800abb8:	34 01 ff ff 	mvi r1,-1                                      
 800abbc:	e0 00 00 08 	bi 800abdc <imfs_dir_rmnod+0x64>               
                                                                      
  /*                                                                  
   * You cannot remove a mountpoint.                                  
   */                                                                 
                                                                      
   if ( the_jnode->info.directory.mt_fs != NULL )                     
 800abc0:	29 61 00 5c 	lw r1,(r11+92)                                 
 800abc4:	5c 20 ff fa 	bne r1,r0,800abac <imfs_dir_rmnod+0x34>        <== NEVER TAKEN
     rtems_set_errno_and_return_minus_one( EBUSY );                   
                                                                      
  IMFS_create_orphan( the_jnode );                                    
 800abc8:	b9 60 08 00 	mv r1,r11                                      
 800abcc:	fb ff f4 77 	calli 8007da8 <IMFS_create_orphan>             
  IMFS_check_node_remove( the_jnode );                                
 800abd0:	b9 60 08 00 	mv r1,r11                                      
 800abd4:	fb ff f4 89 	calli 8007df8 <IMFS_check_node_remove>         
                                                                      
  return 0;                                                           
 800abd8:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 800abdc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800abe0:	2b 8b 00 08 	lw r11,(sp+8)                                  
 800abe4:	37 9c 00 08 	addi sp,sp,8                                   
 800abe8:	c3 a0 00 00 	ret                                            
                                                                      

08002054 <init_etc_passwd_group>: /* * Initialize useable but dummy databases */ void init_etc_passwd_group(void) {
 8002054:	37 9c ff f0 	addi sp,sp,-16                                 
 8002058:	5b 8b 00 10 	sw (sp+16),r11                                 
 800205c:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8002060:	5b 8d 00 08 	sw (sp+8),r13                                  
 8002064:	5b 9d 00 04 	sw (sp+4),ra                                   
  FILE *fp;                                                           
  static char etc_passwd_initted = 0;                                 
                                                                      
  if (etc_passwd_initted)                                             
 8002068:	78 01 08 01 	mvhi r1,0x801                                  
 800206c:	38 21 58 5c 	ori r1,r1,0x585c                               
 8002070:	40 2d 00 00 	lbu r13,(r1+0)                                 
 8002074:	5d a0 00 2f 	bne r13,r0,8002130 <init_etc_passwd_group+0xdc>
    return;                                                           
  etc_passwd_initted = 1;                                             
 8002078:	34 02 00 01 	mvi r2,1                                       
 800207c:	30 22 00 00 	sb (r1+0),r2                                   
  mkdir("/etc", 0777);                                                
 8002080:	78 01 08 01 	mvhi r1,0x801                                  
 8002084:	34 02 01 ff 	mvi r2,511                                     
 8002088:	38 21 37 68 	ori r1,r1,0x3768                               
 800208c:	f8 00 02 9d 	calli 8002b00 <mkdir>                          
                                                                      
  /*                                                                  
   *  Initialize /etc/passwd                                          
   */                                                                 
  if ((fp = fopen("/etc/passwd", "r")) != NULL) {                     
 8002090:	78 0b 08 01 	mvhi r11,0x801                                 
 8002094:	39 6b 37 70 	ori r11,r11,0x3770                             
 8002098:	78 02 08 01 	mvhi r2,0x801                                  
 800209c:	b9 60 08 00 	mv r1,r11                                      
 80020a0:	38 42 37 7c 	ori r2,r2,0x377c                               
 80020a4:	f8 00 2b 61 	calli 800ce28 <fopen>                          
 80020a8:	b8 20 60 00 	mv r12,r1                                      
 80020ac:	5c 2d 00 0c 	bne r1,r13,80020dc <init_etc_passwd_group+0x88>
    fclose(fp);                                                       
  }                                                                   
  else if ((fp = fopen("/etc/passwd", "w")) != NULL) {                
 80020b0:	78 02 08 01 	mvhi r2,0x801                                  
 80020b4:	b9 60 08 00 	mv r1,r11                                      
 80020b8:	38 42 37 80 	ori r2,r2,0x3780                               
 80020bc:	f8 00 2b 5b 	calli 800ce28 <fopen>                          
 80020c0:	b8 20 58 00 	mv r11,r1                                      
 80020c4:	44 2c 00 07 	be r1,r12,80020e0 <init_etc_passwd_group+0x8c> <== NEVER TAKEN
    fprintf(fp, "root:*:0:0:root::/:/bin/sh\n"                        
 80020c8:	78 01 08 01 	mvhi r1,0x801                                  
 80020cc:	38 21 37 84 	ori r1,r1,0x3784                               
 80020d0:	b9 60 10 00 	mv r2,r11                                      
 80020d4:	f8 00 2b 8c 	calli 800cf04 <fputs>                          
                 "rtems:*:1:1:RTEMS Application::/:/bin/sh\n"         
                 "tty:!:2:2:tty owner::/:/bin/false\n" );             
    fclose(fp);                                                       
 80020d8:	b9 60 08 00 	mv r1,r11                                      
 80020dc:	f8 00 29 24 	calli 800c56c <fclose>                         
  }                                                                   
                                                                      
  /*                                                                  
   *  Initialize /etc/group                                           
   */                                                                 
  if ((fp = fopen("/etc/group", "r")) != NULL) {                      
 80020e0:	78 0b 08 01 	mvhi r11,0x801                                 
 80020e4:	39 6b 37 ec 	ori r11,r11,0x37ec                             
 80020e8:	78 02 08 01 	mvhi r2,0x801                                  
 80020ec:	b9 60 08 00 	mv r1,r11                                      
 80020f0:	38 42 37 7c 	ori r2,r2,0x377c                               
 80020f4:	f8 00 2b 4d 	calli 800ce28 <fopen>                          
 80020f8:	b8 20 60 00 	mv r12,r1                                      
 80020fc:	5c 20 00 0c 	bne r1,r0,800212c <init_etc_passwd_group+0xd8> 
    fclose(fp);                                                       
  }                                                                   
  else if ((fp = fopen("/etc/group", "w")) != NULL) {                 
 8002100:	78 02 08 01 	mvhi r2,0x801                                  
 8002104:	b9 60 08 00 	mv r1,r11                                      
 8002108:	38 42 37 80 	ori r2,r2,0x3780                               
 800210c:	f8 00 2b 47 	calli 800ce28 <fopen>                          
 8002110:	b8 20 58 00 	mv r11,r1                                      
 8002114:	44 2c 00 07 	be r1,r12,8002130 <init_etc_passwd_group+0xdc> <== NEVER TAKEN
    fprintf( fp, "root:x:0:root\n"                                    
 8002118:	78 01 08 01 	mvhi r1,0x801                                  
 800211c:	38 21 37 f8 	ori r1,r1,0x37f8                               
 8002120:	b9 60 10 00 	mv r2,r11                                      
 8002124:	f8 00 2b 78 	calli 800cf04 <fputs>                          
                 "rtems:x:1:rtems\n"                                  
                 "tty:x:2:tty\n" );                                   
    fclose(fp);                                                       
 8002128:	b9 60 08 00 	mv r1,r11                                      
 800212c:	f8 00 29 10 	calli 800c56c <fclose>                         
  }                                                                   
}                                                                     
 8002130:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8002134:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8002138:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 800213c:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8002140:	37 9c 00 10 	addi sp,sp,16                                  
 8002144:	c3 a0 00 00 	ret                                            
                                                                      

08004274 <iproc>: /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) {
 8004274:	37 9c ff f4 	addi sp,sp,-12                                 
 8004278:	5b 8b 00 0c 	sw (sp+12),r11                                 
 800427c:	5b 8c 00 08 	sw (sp+8),r12                                  
 8004280:	5b 9d 00 04 	sw (sp+4),ra                                   
 8004284:	b8 40 58 00 	mv r11,r2                                      
  if (tty->termios.c_iflag & ISTRIP)                                  
 8004288:	28 42 00 30 	lw r2,(r2+48)                                  
/*                                                                    
 * Process a single input character                                   
 */                                                                   
static int                                                            
iproc (unsigned char c, struct rtems_termios_tty *tty)                
{                                                                     
 800428c:	b8 20 60 00 	mv r12,r1                                      
  if (tty->termios.c_iflag & ISTRIP)                                  
 8004290:	20 41 00 20 	andi r1,r2,0x20                                
 8004294:	44 20 00 02 	be r1,r0,800429c <iproc+0x28>                  <== ALWAYS TAKEN
    c &= 0x7f;                                                        
 8004298:	21 8c 00 7f 	andi r12,r12,0x7f                              <== NOT EXECUTED
                                                                      
  if (tty->termios.c_iflag & IUCLC)                                   
 800429c:	20 41 02 00 	andi r1,r2,0x200                               
 80042a0:	44 20 00 0b 	be r1,r0,80042cc <iproc+0x58>                  
    c = tolower (c);                                                  
 80042a4:	78 01 08 02 	mvhi r1,0x802                                  
 80042a8:	38 21 42 14 	ori r1,r1,0x4214                               
 80042ac:	28 21 00 00 	lw r1,(r1+0)                                   
 80042b0:	b4 2c 08 00 	add r1,r1,r12                                  
 80042b4:	40 23 00 01 	lbu r3,(r1+1)                                  
 80042b8:	34 01 00 01 	mvi r1,1                                       
 80042bc:	20 63 00 03 	andi r3,r3,0x3                                 
 80042c0:	5c 61 00 02 	bne r3,r1,80042c8 <iproc+0x54>                 
 80042c4:	35 8c 00 20 	addi r12,r12,32                                
 80042c8:	21 8c 00 ff 	andi r12,r12,0xff                              
                                                                      
  if (c == '\r') {                                                    
 80042cc:	34 01 00 0d 	mvi r1,13                                      
 80042d0:	5d 81 00 08 	bne r12,r1,80042f0 <iproc+0x7c>                
    if (tty->termios.c_iflag & IGNCR)                                 
 80042d4:	20 43 00 80 	andi r3,r2,0x80                                
      return 0;                                                       
 80042d8:	34 01 00 00 	mvi r1,0                                       
                                                                      
  if (tty->termios.c_iflag & IUCLC)                                   
    c = tolower (c);                                                  
                                                                      
  if (c == '\r') {                                                    
    if (tty->termios.c_iflag & IGNCR)                                 
 80042dc:	5c 60 00 4e 	bne r3,r0,8004414 <iproc+0x1a0>                <== NEVER TAKEN
      return 0;                                                       
    if (tty->termios.c_iflag & ICRNL)                                 
 80042e0:	20 42 01 00 	andi r2,r2,0x100                               
 80042e4:	44 43 00 0a 	be r2,r3,800430c <iproc+0x98>                  <== NEVER TAKEN
      c = '\n';                                                       
 80042e8:	34 0c 00 0a 	mvi r12,10                                     
 80042ec:	e0 00 00 08 	bi 800430c <iproc+0x98>                        
  } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) {         
 80042f0:	34 01 00 0a 	mvi r1,10                                      
 80042f4:	5d 81 00 05 	bne r12,r1,8004308 <iproc+0x94>                
 80042f8:	20 42 00 40 	andi r2,r2,0x40                                
 80042fc:	44 40 00 04 	be r2,r0,800430c <iproc+0x98>                  <== ALWAYS TAKEN
    c = '\r';                                                         
 8004300:	34 0c 00 0d 	mvi r12,13                                     <== NOT EXECUTED
 8004304:	e0 00 00 02 	bi 800430c <iproc+0x98>                        <== NOT EXECUTED
  }                                                                   
                                                                      
  if ((c != '\0') && (tty->termios.c_lflag & ICANON)) {               
 8004308:	45 80 00 2f 	be r12,r0,80043c4 <iproc+0x150>                <== NEVER TAKEN
 800430c:	29 62 00 3c 	lw r2,(r11+60)                                 
 8004310:	20 41 00 02 	andi r1,r2,0x2                                 
 8004314:	44 20 00 2c 	be r1,r0,80043c4 <iproc+0x150>                 
    if (c == tty->termios.c_cc[VERASE]) {                             
 8004318:	41 61 00 43 	lbu r1,(r11+67)                                
 800431c:	5c 2c 00 04 	bne r1,r12,800432c <iproc+0xb8>                
      erase (tty, 0);                                                 
 8004320:	b9 60 08 00 	mv r1,r11                                      
 8004324:	34 02 00 00 	mvi r2,0                                       
 8004328:	e0 00 00 05 	bi 800433c <iproc+0xc8>                        
      return 0;                                                       
    }                                                                 
    else if (c == tty->termios.c_cc[VKILL]) {                         
 800432c:	41 61 00 44 	lbu r1,(r11+68)                                
 8004330:	5c 2c 00 05 	bne r1,r12,8004344 <iproc+0xd0>                
      erase (tty, 1);                                                 
 8004334:	b9 60 08 00 	mv r1,r11                                      
 8004338:	34 02 00 01 	mvi r2,1                                       
 800433c:	fb ff ff 4c 	calli 800406c <erase>                          
 8004340:	e0 00 00 34 	bi 8004410 <iproc+0x19c>                       
      return 0;                                                       
    }                                                                 
    else if (c == tty->termios.c_cc[VEOF]) {                          
 8004344:	41 63 00 45 	lbu r3,(r11+69)                                
      return 1;                                                       
 8004348:	34 01 00 01 	mvi r1,1                                       
    }                                                                 
    else if (c == tty->termios.c_cc[VKILL]) {                         
      erase (tty, 1);                                                 
      return 0;                                                       
    }                                                                 
    else if (c == tty->termios.c_cc[VEOF]) {                          
 800434c:	44 6c 00 32 	be r3,r12,8004414 <iproc+0x1a0>                <== NEVER TAKEN
      return 1;                                                       
    } else if (c == '\n') {                                           
 8004350:	34 01 00 0a 	mvi r1,10                                      
 8004354:	5d 81 00 0b 	bne r12,r1,8004380 <iproc+0x10c>               
      if (tty->termios.c_lflag & (ECHO | ECHONL))                     
 8004358:	20 42 00 48 	andi r2,r2,0x48                                
 800435c:	44 40 00 03 	be r2,r0,8004368 <iproc+0xf4>                  <== NEVER TAKEN
        echo (c, tty);                                                
 8004360:	b9 60 10 00 	mv r2,r11                                      
 8004364:	fb ff ff 1d 	calli 8003fd8 <echo>                           
      tty->cbuf[tty->ccount++] = c;                                   
 8004368:	29 61 00 20 	lw r1,(r11+32)                                 
 800436c:	29 62 00 1c 	lw r2,(r11+28)                                 
 8004370:	34 03 00 0a 	mvi r3,10                                      
 8004374:	b4 41 10 00 	add r2,r2,r1                                   
 8004378:	30 43 00 00 	sb (r2+0),r3                                   
 800437c:	e0 00 00 0e 	bi 80043b4 <iproc+0x140>                       
      return 1;                                                       
    } else if ((c == tty->termios.c_cc[VEOL]) ||                      
 8004380:	41 61 00 4c 	lbu r1,(r11+76)                                
 8004384:	44 2c 00 03 	be r1,r12,8004390 <iproc+0x11c>                <== NEVER TAKEN
 8004388:	41 61 00 51 	lbu r1,(r11+81)                                
 800438c:	5c 2c 00 0e 	bne r1,r12,80043c4 <iproc+0x150>               <== ALWAYS TAKEN
               (c == tty->termios.c_cc[VEOL2])) {                     
      if (tty->termios.c_lflag & ECHO)                                
 8004390:	20 42 00 08 	andi r2,r2,0x8                                 <== NOT EXECUTED
 8004394:	44 40 00 04 	be r2,r0,80043a4 <iproc+0x130>                 <== NOT EXECUTED
        echo (c, tty);                                                
 8004398:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 800439c:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 80043a0:	fb ff ff 0e 	calli 8003fd8 <echo>                           <== NOT EXECUTED
      tty->cbuf[tty->ccount++] = c;                                   
 80043a4:	29 61 00 20 	lw r1,(r11+32)                                 <== NOT EXECUTED
 80043a8:	29 62 00 1c 	lw r2,(r11+28)                                 <== NOT EXECUTED
 80043ac:	b4 41 10 00 	add r2,r2,r1                                   <== NOT EXECUTED
 80043b0:	30 4c 00 00 	sb (r2+0),r12                                  <== NOT EXECUTED
 80043b4:	34 21 00 01 	addi r1,r1,1                                   
 80043b8:	59 61 00 20 	sw (r11+32),r1                                 
      return 1;                                                       
 80043bc:	34 01 00 01 	mvi r1,1                                       
 80043c0:	e0 00 00 15 	bi 8004414 <iproc+0x1a0>                       
  }                                                                   
                                                                      
  /*                                                                  
   * FIXME: Should do IMAXBEL handling somehow                        
   */                                                                 
  if (tty->ccount < (CBUFSIZE-1)) {                                   
 80043c4:	78 01 08 02 	mvhi r1,0x802                                  
 80043c8:	38 21 41 8c 	ori r1,r1,0x418c                               
 80043cc:	28 22 00 00 	lw r2,(r1+0)                                   
 80043d0:	29 63 00 20 	lw r3,(r11+32)                                 
    if (tty->termios.c_lflag & ECHO)                                  
      echo (c, tty);                                                  
    tty->cbuf[tty->ccount++] = c;                                     
  }                                                                   
  return 0;                                                           
 80043d4:	34 01 00 00 	mvi r1,0                                       
  }                                                                   
                                                                      
  /*                                                                  
   * FIXME: Should do IMAXBEL handling somehow                        
   */                                                                 
  if (tty->ccount < (CBUFSIZE-1)) {                                   
 80043d8:	34 42 ff ff 	addi r2,r2,-1                                  
 80043dc:	4c 62 00 0e 	bge r3,r2,8004414 <iproc+0x1a0>                <== NEVER TAKEN
    if (tty->termios.c_lflag & ECHO)                                  
 80043e0:	29 61 00 3c 	lw r1,(r11+60)                                 
 80043e4:	20 21 00 08 	andi r1,r1,0x8                                 
 80043e8:	44 20 00 04 	be r1,r0,80043f8 <iproc+0x184>                 <== NEVER TAKEN
      echo (c, tty);                                                  
 80043ec:	b9 80 08 00 	mv r1,r12                                      
 80043f0:	b9 60 10 00 	mv r2,r11                                      
 80043f4:	fb ff fe f9 	calli 8003fd8 <echo>                           
    tty->cbuf[tty->ccount++] = c;                                     
 80043f8:	29 61 00 20 	lw r1,(r11+32)                                 
 80043fc:	29 62 00 1c 	lw r2,(r11+28)                                 
 8004400:	b4 41 10 00 	add r2,r2,r1                                   
 8004404:	30 4c 00 00 	sb (r2+0),r12                                  
 8004408:	34 21 00 01 	addi r1,r1,1                                   
 800440c:	59 61 00 20 	sw (r11+32),r1                                 
  }                                                                   
  return 0;                                                           
 8004410:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 8004414:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004418:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 800441c:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8004420:	37 9c 00 0c 	addi sp,sp,12                                  
 8004424:	c3 a0 00 00 	ret                                            
                                                                      

080245e4 <kill>: #if !defined(RTEMS_POSIX_API) int kill( pid_t pid, int sig ) { return 0; }
 80245e4:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 80245e8:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

08010f84 <libc_wrapup>: extern void _wrapup_reent(struct _reent *); extern void _reclaim_reent(struct _reent *); void libc_wrapup(void) {
 8010f84:	37 9c ff f4 	addi sp,sp,-12                                 
 8010f88:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8010f8c:	5b 8c 00 08 	sw (sp+8),r12                                  
 8010f90:	5b 9d 00 04 	sw (sp+4),ra                                   
  /*                                                                  
   *  In case RTEMS is already down, don't do this.  It could be      
   *  dangerous.                                                      
   */                                                                 
                                                                      
  if (!_System_state_Is_up(_System_state_Get()))                      
 8010f94:	78 01 08 01 	mvhi r1,0x801                                  
 8010f98:	38 21 39 e0 	ori r1,r1,0x39e0                               
 8010f9c:	28 22 00 00 	lw r2,(r1+0)                                   
 8010fa0:	34 01 00 03 	mvi r1,3                                       
 8010fa4:	5c 41 00 16 	bne r2,r1,8010ffc <libc_wrapup+0x78>           <== NEVER TAKEN
  /*                                                                  
   *  This was already done if the user called exit() directly .      
  _wrapup_reent(0);                                                   
   */                                                                 
                                                                      
  if (_REENT != _global_impure_ptr) {                                 
 8010fa8:	78 01 08 01 	mvhi r1,0x801                                  
 8010fac:	78 0b 08 01 	mvhi r11,0x801                                 
 8010fb0:	38 21 20 b8 	ori r1,r1,0x20b8                               
 8010fb4:	39 6b 31 a8 	ori r11,r11,0x31a8                             
 8010fb8:	28 2c 00 00 	lw r12,(r1+0)                                  
 8010fbc:	29 61 00 00 	lw r1,(r11+0)                                  
 8010fc0:	44 2c 00 04 	be r1,r12,8010fd0 <libc_wrapup+0x4c>           
      _wrapup_reent(_global_impure_ptr);                              
 8010fc4:	b9 80 08 00 	mv r1,r12                                      
 8010fc8:	f8 00 02 25 	calli 801185c <_wrapup_reent>                  
      /*  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;                                    
 8010fcc:	59 6c 00 00 	sw (r11+0),r12                                 
   *                                                                  
   * Should this be changed to do *all* file streams?                 
   *    _fwalk (_REENT, fclose);                                      
   */                                                                 
                                                                      
  fclose (stdin);                                                     
 8010fd0:	78 0b 08 01 	mvhi r11,0x801                                 
 8010fd4:	39 6b 31 a8 	ori r11,r11,0x31a8                             
 8010fd8:	29 61 00 00 	lw r1,(r11+0)                                  
 8010fdc:	28 21 00 04 	lw r1,(r1+4)                                   
 8010fe0:	fb ff e9 4c 	calli 800b510 <fclose>                         
  fclose (stdout);                                                    
 8010fe4:	29 61 00 00 	lw r1,(r11+0)                                  
 8010fe8:	28 21 00 08 	lw r1,(r1+8)                                   
 8010fec:	fb ff e9 49 	calli 800b510 <fclose>                         
  fclose (stderr);                                                    
 8010ff0:	29 61 00 00 	lw r1,(r11+0)                                  
 8010ff4:	28 21 00 0c 	lw r1,(r1+12)                                  
 8010ff8:	fb ff e9 46 	calli 800b510 <fclose>                         
}                                                                     
 8010ffc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8011000:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8011004:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8011008:	37 9c 00 0c 	addi sp,sp,12                                  
 801100c:	c3 a0 00 00 	ret                                            
                                                                      

08001708 <malloc>: #include "malloc_p.h" void *malloc( size_t size ) {
 8001708:	37 9c ff f4 	addi sp,sp,-12                                 
 800170c:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8001710:	5b 8c 00 08 	sw (sp+8),r12                                  
 8001714:	5b 9d 00 04 	sw (sp+4),ra                                   
  void        *return_this;                                           
                                                                      
  MSBUMP(malloc_calls, 1);                                            
 8001718:	78 03 08 01 	mvhi r3,0x801                                  
 800171c:	38 63 37 28 	ori r3,r3,0x3728                               
#include "malloc_p.h"                                                 
                                                                      
void *malloc(                                                         
  size_t  size                                                        
)                                                                     
{                                                                     
 8001720:	b8 20 60 00 	mv r12,r1                                      
  void        *return_this;                                           
                                                                      
  MSBUMP(malloc_calls, 1);                                            
 8001724:	28 61 00 04 	lw r1,(r3+4)                                   
                                                                      
  /*                                                                  
   * Validate the parameters                                          
   */                                                                 
  if ( !size )                                                        
    return (void *) 0;                                                
 8001728:	34 0b 00 00 	mvi r11,0                                      
  size_t  size                                                        
)                                                                     
{                                                                     
  void        *return_this;                                           
                                                                      
  MSBUMP(malloc_calls, 1);                                            
 800172c:	34 21 00 01 	addi r1,r1,1                                   
 8001730:	58 61 00 04 	sw (r3+4),r1                                   
                                                                      
  /*                                                                  
   *  If some free's have been deferred, then do them now.            
   */                                                                 
  malloc_deferred_frees_process();                                    
 8001734:	fb ff ff 9d 	calli 80015a8 <malloc_deferred_frees_process>  
                                                                      
  /*                                                                  
   * Validate the parameters                                          
   */                                                                 
  if ( !size )                                                        
 8001738:	45 80 00 2d 	be r12,r0,80017ec <malloc+0xe4>                
    return (void *) 0;                                                
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if not in correct system state.
   */                                                                 
  if ( _System_state_Is_up(_System_state_Get()) &&                    
 800173c:	78 01 08 01 	mvhi r1,0x801                                  
 8001740:	38 21 39 e0 	ori r1,r1,0x39e0                               
 8001744:	28 22 00 00 	lw r2,(r1+0)                                   
 8001748:	34 01 00 03 	mvi r1,3                                       
 800174c:	5c 41 00 03 	bne r2,r1,8001758 <malloc+0x50>                
       !malloc_is_system_state_OK() )                                 
 8001750:	fb ff ff 84 	calli 8001560 <malloc_is_system_state_OK>      
    return (void *) 0;                                                
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if not in correct system state.
   */                                                                 
  if ( _System_state_Is_up(_System_state_Get()) &&                    
 8001754:	44 20 00 26 	be r1,r0,80017ec <malloc+0xe4>                 <== NEVER TAKEN
RTEMS_INLINE_ROUTINE void *_Protected_heap_Allocate(                  
  Heap_Control *heap,                                                 
  uintptr_t size                                                      
)                                                                     
{                                                                     
  return _Protected_heap_Allocate_aligned_with_boundary( heap, size, 0, 0 );
 8001758:	78 01 08 01 	mvhi r1,0x801                                  
 800175c:	38 21 30 4c 	ori r1,r1,0x304c                               
 8001760:	28 21 00 00 	lw r1,(r1+0)                                   
 8001764:	b9 80 10 00 	mv r2,r12                                      
 8001768:	34 03 00 00 	mvi r3,0                                       
 800176c:	34 04 00 00 	mvi r4,0                                       
 8001770:	f8 00 0c a1 	calli 80049f4 <_Protected_heap_Allocate_aligned_with_boundary>
 8001774:	b8 20 58 00 	mv r11,r1                                      
   * If this fails then return a NULL pointer.                        
   */                                                                 
                                                                      
  return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size );  
                                                                      
  if ( !return_this ) {                                               
 8001778:	5c 20 00 0f 	bne r1,r0,80017b4 <malloc+0xac>                
    if (rtems_malloc_sbrk_helpers)                                    
 800177c:	78 01 08 01 	mvhi r1,0x801                                  
 8001780:	38 21 36 84 	ori r1,r1,0x3684                               
 8001784:	28 21 00 00 	lw r1,(r1+0)                                   
 8001788:	44 2b 00 06 	be r1,r11,80017a0 <malloc+0x98>                
      return_this = (*rtems_malloc_sbrk_helpers->extend)( size );     
 800178c:	28 22 00 04 	lw r2,(r1+4)                                   
 8001790:	b9 80 08 00 	mv r1,r12                                      
 8001794:	d8 40 00 00 	call r2                                        
 8001798:	b8 20 58 00 	mv r11,r1                                      
    if ( !return_this ) {                                             
 800179c:	5c 20 00 06 	bne r1,r0,80017b4 <malloc+0xac>                
      errno = ENOMEM;                                                 
 80017a0:	f8 00 26 fc 	calli 800b390 <__errno>                        
 80017a4:	34 02 00 0c 	mvi r2,12                                      
 80017a8:	58 22 00 00 	sw (r1+0),r2                                   
      return (void *) 0;                                              
 80017ac:	34 0b 00 00 	mvi r11,0                                      
 80017b0:	e0 00 00 0f 	bi 80017ec <malloc+0xe4>                       
  }                                                                   
                                                                      
  /*                                                                  
   *  If the user wants us to dirty the allocated memory, then do it. 
   */                                                                 
  if ( rtems_malloc_dirty_helper )                                    
 80017b4:	78 01 08 01 	mvhi r1,0x801                                  
 80017b8:	38 21 36 88 	ori r1,r1,0x3688                               
 80017bc:	28 23 00 00 	lw r3,(r1+0)                                   
 80017c0:	44 60 00 04 	be r3,r0,80017d0 <malloc+0xc8>                 
    (*rtems_malloc_dirty_helper)( return_this, size );                
 80017c4:	b9 60 08 00 	mv r1,r11                                      
 80017c8:	b9 80 10 00 	mv r2,r12                                      
 80017cc:	d8 60 00 00 	call r3                                        
                                                                      
  /*                                                                  
   *  If configured, update the statistics                            
   */                                                                 
  if ( rtems_malloc_statistics_helpers )                              
 80017d0:	78 01 08 01 	mvhi r1,0x801                                  
 80017d4:	38 21 36 80 	ori r1,r1,0x3680                               
 80017d8:	28 21 00 00 	lw r1,(r1+0)                                   
 80017dc:	44 20 00 04 	be r1,r0,80017ec <malloc+0xe4>                 
    (*rtems_malloc_statistics_helpers->at_malloc)(return_this);       
 80017e0:	28 22 00 04 	lw r2,(r1+4)                                   
 80017e4:	b9 60 08 00 	mv r1,r11                                      
 80017e8:	d8 40 00 00 	call r2                                        
                                                                      
  return return_this;                                                 
}                                                                     
 80017ec:	b9 60 08 00 	mv r1,r11                                      
 80017f0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80017f4:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 80017f8:	2b 8c 00 08 	lw r12,(sp+8)                                  
 80017fc:	37 9c 00 0c 	addi sp,sp,12                                  
 8001800:	c3 a0 00 00 	ret                                            
                                                                      

08001afc <malloc_sbrk_extend_and_allocate>: } void *malloc_sbrk_extend_and_allocate( size_t size ) {
 8001afc:	37 9c ff ec 	addi sp,sp,-20                                 
 8001b00:	5b 8b 00 14 	sw (sp+20),r11                                 
 8001b04:	5b 8c 00 10 	sw (sp+16),r12                                 
 8001b08:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8001b0c:	5b 8e 00 08 	sw (sp+8),r14                                  
 8001b10:	5b 9d 00 04 	sw (sp+4),ra                                   
   *  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;                             
 8001b14:	78 03 08 01 	mvhi r3,0x801                                  
 8001b18:	38 63 38 a0 	ori r3,r3,0x38a0                               
 8001b1c:	28 6b 00 00 	lw r11,(r3+0)                                  
}                                                                     
                                                                      
void *malloc_sbrk_extend_and_allocate(                                
  size_t size                                                         
)                                                                     
{                                                                     
 8001b20:	b8 20 70 00 	mv r14,r1                                      
   */                                                                 
                                                                      
  sbrk_amount = RTEMS_Malloc_Sbrk_amount;                             
                                                                      
  if ( sbrk_amount == 0 )                                             
    return (void *) 0;                                                
 8001b24:	34 0d 00 00 	mvi r13,0                                      
   *  in "page" amounts.                                              
   */                                                                 
                                                                      
  sbrk_amount = RTEMS_Malloc_Sbrk_amount;                             
                                                                      
  if ( sbrk_amount == 0 )                                             
 8001b28:	45 60 00 22 	be r11,r0,8001bb0 <malloc_sbrk_extend_and_allocate+0xb4><== NEVER TAKEN
    return (void *) 0;                                                
                                                                      
  the_size = ((size + sbrk_amount) / sbrk_amount * sbrk_amount);      
 8001b2c:	b9 60 10 00 	mv r2,r11                                      
 8001b30:	b4 2b 08 00 	add r1,r1,r11                                  
 8001b34:	f8 00 3d 18 	calli 8010f94 <__udivsi3>                      
 8001b38:	b9 60 10 00 	mv r2,r11                                      
 8001b3c:	f8 00 3c b1 	calli 8010e00 <__mulsi3>                       
 8001b40:	b8 20 60 00 	mv r12,r1                                      
                                                                      
  starting_address = (void *) sbrk(the_size);                         
 8001b44:	fb ff fa 34 	calli 8000414 <sbrk>                           
 8001b48:	b8 20 10 00 	mv r2,r1                                       
  if ( starting_address == (void*) -1 )                               
 8001b4c:	34 01 ff ff 	mvi r1,-1                                      
 8001b50:	44 41 00 18 	be r2,r1,8001bb0 <malloc_sbrk_extend_and_allocate+0xb4>
    return (void *) 0;                                                
                                                                      
  if ( !_Protected_heap_Extend(                                       
 8001b54:	78 0b 08 01 	mvhi r11,0x801                                 
 8001b58:	39 6b 30 4c 	ori r11,r11,0x304c                             
 8001b5c:	29 61 00 00 	lw r1,(r11+0)                                  
 8001b60:	b9 80 18 00 	mv r3,r12                                      
 8001b64:	f8 00 0c 65 	calli 8004cf8 <_Protected_heap_Extend>         
 8001b68:	5c 20 00 07 	bne r1,r0,8001b84 <malloc_sbrk_extend_and_allocate+0x88>
          RTEMS_Malloc_Heap, starting_address, the_size) ) {          
    sbrk(-the_size);                                                  
 8001b6c:	c8 0c 08 00 	sub r1,r0,r12                                  
 8001b70:	fb ff fa 29 	calli 8000414 <sbrk>                           
    errno = ENOMEM;                                                   
 8001b74:	f8 00 27 30 	calli 800b834 <__errno>                        
 8001b78:	34 02 00 0c 	mvi r2,12                                      
 8001b7c:	58 22 00 00 	sw (r1+0),r2                                   
    return (void *) 0;                                                
 8001b80:	e0 00 00 0c 	bi 8001bb0 <malloc_sbrk_extend_and_allocate+0xb4>
  }                                                                   
                                                                      
  MSBUMP(space_available, the_size);                                  
 8001b84:	78 04 08 01 	mvhi r4,0x801                                  
 8001b88:	38 84 38 70 	ori r4,r4,0x3870                               
 8001b8c:	28 81 00 00 	lw r1,(r4+0)                                   
 8001b90:	b9 c0 10 00 	mv r2,r14                                      
 8001b94:	34 03 00 00 	mvi r3,0                                       
 8001b98:	b5 81 60 00 	add r12,r12,r1                                 
 8001b9c:	29 61 00 00 	lw r1,(r11+0)                                  
 8001ba0:	58 8c 00 00 	sw (r4+0),r12                                  
 8001ba4:	34 04 00 00 	mvi r4,0                                       
 8001ba8:	f8 00 0c 3a 	calli 8004c90 <_Protected_heap_Allocate_aligned_with_boundary>
 8001bac:	b8 20 68 00 	mv r13,r1                                      
                                                                      
  return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size );  
  return return_this;                                                 
}                                                                     
 8001bb0:	b9 a0 08 00 	mv r1,r13                                      
 8001bb4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8001bb8:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8001bbc:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8001bc0:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8001bc4:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8001bc8:	37 9c 00 14 	addi sp,sp,20                                  
 8001bcc:	c3 a0 00 00 	ret                                            
                                                                      

0800a574 <memfile_ftruncate>: */ int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) {
 800a574:	37 9c ff f0 	addi sp,sp,-16                                 
 800a578:	5b 8b 00 08 	sw (sp+8),r11                                  
 800a57c:	5b 9d 00 04 	sw (sp+4),ra                                   
  IMFS_jnode_t   *the_jnode;                                          
                                                                      
  the_jnode = iop->pathinfo.node_access;                              
 800a580:	28 2b 00 1c 	lw r11,(r1+28)                                 
   *  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 )                           
 800a584:	29 64 00 50 	lw r4,(r11+80)                                 
 800a588:	48 44 00 05 	bg r2,r4,800a59c <memfile_ftruncate+0x28>      <== NEVER TAKEN
 800a58c:	5c 82 00 08 	bne r4,r2,800a5ac <memfile_ftruncate+0x38>     <== NEVER TAKEN
 800a590:	29 64 00 54 	lw r4,(r11+84)                                 
 800a594:	54 64 00 02 	bgu r3,r4,800a59c <memfile_ftruncate+0x28>     
 800a598:	e0 00 00 05 	bi 800a5ac <memfile_ftruncate+0x38>            
    return IMFS_memfile_extend( the_jnode, length );                  
 800a59c:	b9 60 08 00 	mv r1,r11                                      
 800a5a0:	b8 60 10 00 	mv r2,r3                                       
 800a5a4:	fb ff fe ea 	calli 800a14c <IMFS_memfile_extend>            
 800a5a8:	e0 00 00 0b 	bi 800a5d4 <memfile_ftruncate+0x60>            
  /*                                                                  
   *  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;                                 
 800a5ac:	59 62 00 50 	sw (r11+80),r2                                 
 800a5b0:	59 63 00 54 	sw (r11+84),r3                                 
  iop->size = the_jnode->info.file.size;                              
 800a5b4:	58 22 00 08 	sw (r1+8),r2                                   
 800a5b8:	58 23 00 0c 	sw (r1+12),r3                                  
                                                                      
  IMFS_update_atime( the_jnode );                                     
 800a5bc:	34 02 00 00 	mvi r2,0                                       
 800a5c0:	37 81 00 0c 	addi r1,sp,12                                  
 800a5c4:	fb ff db 85 	calli 80013d8 <gettimeofday>                   
 800a5c8:	2b 81 00 0c 	lw r1,(sp+12)                                  
 800a5cc:	59 61 00 40 	sw (r11+64),r1                                 
                                                                      
  return 0;                                                           
 800a5d0:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 800a5d4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800a5d8:	2b 8b 00 08 	lw r11,(sp+8)                                  
 800a5dc:	37 9c 00 10 	addi sp,sp,16                                  
 800a5e0:	c3 a0 00 00 	ret                                            
                                                                      

0800a5e4 <memfile_lseek>: rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) {
 800a5e4:	37 9c ff f4 	addi sp,sp,-12                                 
 800a5e8:	5b 8b 00 0c 	sw (sp+12),r11                                 
 800a5ec:	5b 8c 00 08 	sw (sp+8),r12                                  
 800a5f0:	5b 9d 00 04 	sw (sp+4),ra                                   
  IMFS_jnode_t   *the_jnode;                                          
                                                                      
  the_jnode = iop->pathinfo.node_access;                              
 800a5f4:	28 2c 00 1c 	lw r12,(r1+28)                                 
rtems_off64_t memfile_lseek(                                          
  rtems_libio_t   *iop,                                               
  rtems_off64_t    offset,                                            
  int              whence                                             
)                                                                     
{                                                                     
 800a5f8:	b8 20 58 00 	mv r11,r1                                      
  IMFS_jnode_t   *the_jnode;                                          
                                                                      
  the_jnode = iop->pathinfo.node_access;                              
                                                                      
  if (the_jnode->type == IMFS_LINEAR_FILE) {                          
 800a5fc:	34 01 00 06 	mvi r1,6                                       
 800a600:	29 82 00 4c 	lw r2,(r12+76)                                 
 800a604:	5c 41 00 0c 	bne r2,r1,800a634 <memfile_lseek+0x50>         
    if (iop->offset > the_jnode->info.linearfile.size)                
 800a608:	29 81 00 50 	lw r1,(r12+80)                                 
 800a60c:	29 63 00 10 	lw r3,(r11+16)                                 
 800a610:	29 82 00 54 	lw r2,(r12+84)                                 
 800a614:	48 61 00 05 	bg r3,r1,800a628 <memfile_lseek+0x44>          <== NEVER TAKEN
 800a618:	5c 61 00 15 	bne r3,r1,800a66c <memfile_lseek+0x88>         <== NEVER TAKEN
 800a61c:	29 63 00 14 	lw r3,(r11+20)                                 
 800a620:	54 62 00 02 	bgu r3,r2,800a628 <memfile_lseek+0x44>         <== NEVER TAKEN
 800a624:	e0 00 00 12 	bi 800a66c <memfile_lseek+0x88>                
      iop->offset = the_jnode->info.linearfile.size;                  
 800a628:	59 61 00 10 	sw (r11+16),r1                                 <== NOT EXECUTED
 800a62c:	59 62 00 14 	sw (r11+20),r2                                 <== NOT EXECUTED
 800a630:	e0 00 00 0f 	bi 800a66c <memfile_lseek+0x88>                <== NOT EXECUTED
  }                                                                   
  else {  /* Must be a block file (IMFS_MEMORY_FILE). */              
    if (IMFS_memfile_extend( the_jnode, iop->offset ))                
 800a634:	29 62 00 14 	lw r2,(r11+20)                                 
 800a638:	b9 80 08 00 	mv r1,r12                                      
 800a63c:	fb ff fe c4 	calli 800a14c <IMFS_memfile_extend>            
 800a640:	44 20 00 07 	be r1,r0,800a65c <memfile_lseek+0x78>          
      rtems_set_errno_and_return_minus_one( ENOSPC );                 
 800a644:	f8 00 03 53 	calli 800b390 <__errno>                        
 800a648:	34 02 00 1c 	mvi r2,28                                      
 800a64c:	58 22 00 00 	sw (r1+0),r2                                   
 800a650:	34 01 ff ff 	mvi r1,-1                                      
 800a654:	34 02 ff ff 	mvi r2,-1                                      
 800a658:	e0 00 00 07 	bi 800a674 <memfile_lseek+0x90>                
                                                                      
    iop->size = the_jnode->info.file.size;                            
 800a65c:	29 81 00 50 	lw r1,(r12+80)                                 
 800a660:	59 61 00 08 	sw (r11+8),r1                                  
 800a664:	29 81 00 54 	lw r1,(r12+84)                                 
 800a668:	59 61 00 0c 	sw (r11+12),r1                                 
  }                                                                   
  return iop->offset;                                                 
 800a66c:	29 61 00 10 	lw r1,(r11+16)                                 
 800a670:	29 62 00 14 	lw r2,(r11+20)                                 
}                                                                     
 800a674:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800a678:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 800a67c:	2b 8c 00 08 	lw r12,(sp+8)                                  
 800a680:	37 9c 00 0c 	addi sp,sp,12                                  
 800a684:	c3 a0 00 00 	ret                                            
                                                                      

0800a4c0 <memfile_open>: rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) {
 800a4c0:	37 9c ff f4 	addi sp,sp,-12                                 
 800a4c4:	5b 8b 00 0c 	sw (sp+12),r11                                 
 800a4c8:	5b 8c 00 08 	sw (sp+8),r12                                  
 800a4cc:	5b 9d 00 04 	sw (sp+4),ra                                   
 800a4d0:	b8 20 60 00 	mv r12,r1                                      
  IMFS_jnode_t  *the_jnode;                                           
                                                                      
  the_jnode = iop->pathinfo.node_access;                              
 800a4d4:	28 2b 00 1c 	lw r11,(r1+28)                                 
                                                                      
  /*                                                                  
   * Perform 'copy on write' for linear files                         
   */                                                                 
  if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND))         
 800a4d8:	28 21 00 18 	lw r1,(r1+24)                                  
 800a4dc:	20 21 02 04 	andi r1,r1,0x204                               
 800a4e0:	44 20 00 13 	be r1,r0,800a52c <memfile_open+0x6c>           
   && (the_jnode->type == IMFS_LINEAR_FILE)) {                        
 800a4e4:	29 62 00 4c 	lw r2,(r11+76)                                 
 800a4e8:	34 01 00 06 	mvi r1,6                                       
 800a4ec:	5c 41 00 10 	bne r2,r1,800a52c <memfile_open+0x6c>          <== ALWAYS TAKEN
    uint32_t   count = the_jnode->info.linearfile.size;               
 800a4f0:	29 64 00 54 	lw r4,(r11+84)                                 <== NOT EXECUTED
    const unsigned char *buffer = the_jnode->info.linearfile.direct;  
                                                                      
    the_jnode->type = IMFS_MEMORY_FILE;                               
 800a4f4:	34 01 00 05 	mvi r1,5                                       <== NOT EXECUTED
   * 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;  
 800a4f8:	29 63 00 58 	lw r3,(r11+88)                                 <== NOT EXECUTED
                                                                      
    the_jnode->type = IMFS_MEMORY_FILE;                               
 800a4fc:	59 61 00 4c 	sw (r11+76),r1                                 <== NOT EXECUTED
    the_jnode->info.file.size            = 0;                         
 800a500:	59 60 00 50 	sw (r11+80),r0                                 <== NOT EXECUTED
 800a504:	59 60 00 54 	sw (r11+84),r0                                 <== NOT EXECUTED
    the_jnode->info.file.indirect        = 0;                         
 800a508:	59 60 00 58 	sw (r11+88),r0                                 <== NOT EXECUTED
    the_jnode->info.file.doubly_indirect = 0;                         
 800a50c:	59 60 00 5c 	sw (r11+92),r0                                 <== NOT EXECUTED
    the_jnode->info.file.triply_indirect = 0;                         
 800a510:	59 60 00 60 	sw (r11+96),r0                                 <== NOT EXECUTED
    if ((count != 0)                                                  
 800a514:	44 80 00 06 	be r4,r0,800a52c <memfile_open+0x6c>           <== NOT EXECUTED
     && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1))      
 800a518:	34 02 00 00 	mvi r2,0                                       <== NOT EXECUTED
 800a51c:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 800a520:	fb ff ff 61 	calli 800a2a4 <IMFS_memfile_write>             <== NOT EXECUTED
        return -1;                                                    
 800a524:	34 02 ff ff 	mvi r2,-1                                      <== 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))      
 800a528:	44 22 00 0d 	be r1,r2,800a55c <memfile_open+0x9c>           <== NOT EXECUTED
        return -1;                                                    
  }                                                                   
  if (iop->flags & LIBIO_FLAGS_APPEND)                                
 800a52c:	29 81 00 18 	lw r1,(r12+24)                                 
 800a530:	20 21 02 00 	andi r1,r1,0x200                               
 800a534:	44 20 00 05 	be r1,r0,800a548 <memfile_open+0x88>           
    iop->offset = the_jnode->info.file.size;                          
 800a538:	29 61 00 50 	lw r1,(r11+80)                                 
 800a53c:	59 81 00 10 	sw (r12+16),r1                                 
 800a540:	29 61 00 54 	lw r1,(r11+84)                                 
 800a544:	59 81 00 14 	sw (r12+20),r1                                 
                                                                      
  iop->size = the_jnode->info.file.size;                              
 800a548:	29 61 00 50 	lw r1,(r11+80)                                 
  return 0;                                                           
 800a54c:	34 02 00 00 	mvi r2,0                                       
        return -1;                                                    
  }                                                                   
  if (iop->flags & LIBIO_FLAGS_APPEND)                                
    iop->offset = the_jnode->info.file.size;                          
                                                                      
  iop->size = the_jnode->info.file.size;                              
 800a550:	59 81 00 08 	sw (r12+8),r1                                  
 800a554:	29 61 00 54 	lw r1,(r11+84)                                 
 800a558:	59 81 00 0c 	sw (r12+12),r1                                 
  return 0;                                                           
}                                                                     
 800a55c:	b8 40 08 00 	mv r1,r2                                       
 800a560:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800a564:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 800a568:	2b 8c 00 08 	lw r12,(sp+8)                                  
 800a56c:	37 9c 00 0c 	addi sp,sp,12                                  
 800a570:	c3 a0 00 00 	ret                                            
                                                                      

080019fc <mount>: const char *target, const char *filesystemtype, rtems_filesystem_options_t options, const void *data ) {
 80019fc:	37 9c ff b0 	addi sp,sp,-80                                 
 8001a00:	5b 8b 00 3c 	sw (sp+60),r11                                 
 8001a04:	5b 8c 00 38 	sw (sp+56),r12                                 
 8001a08:	5b 8d 00 34 	sw (sp+52),r13                                 
 8001a0c:	5b 8e 00 30 	sw (sp+48),r14                                 
 8001a10:	5b 8f 00 2c 	sw (sp+44),r15                                 
 8001a14:	5b 90 00 28 	sw (sp+40),r16                                 
 8001a18:	5b 91 00 24 	sw (sp+36),r17                                 
 8001a1c:	5b 92 00 20 	sw (sp+32),r18                                 
 8001a20:	5b 93 00 1c 	sw (sp+28),r19                                 
 8001a24:	5b 94 00 18 	sw (sp+24),r20                                 
 8001a28:	5b 95 00 14 	sw (sp+20),r21                                 
 8001a2c:	5b 96 00 10 	sw (sp+16),r22                                 
 8001a30:	5b 97 00 0c 	sw (sp+12),r23                                 
 8001a34:	5b 98 00 08 	sw (sp+8),r24                                  
 8001a38:	5b 9d 00 04 	sw (sp+4),ra                                   
 8001a3c:	b8 20 88 00 	mv r17,r1                                      
                                                                      
  /*                                                                  
   *  Are the file system options valid?                              
   */                                                                 
                                                                      
  if ( options != RTEMS_FILESYSTEM_READ_ONLY &&                       
 8001a40:	34 01 00 01 	mvi r1,1                                       
  const char                 *target,                                 
  const char                 *filesystemtype,                         
  rtems_filesystem_options_t options,                                 
  const void                 *data                                    
)                                                                     
{                                                                     
 8001a44:	b8 40 78 00 	mv r15,r2                                      
 8001a48:	b8 60 98 00 	mv r19,r3                                      
 8001a4c:	b8 80 b0 00 	mv r22,r4                                      
 8001a50:	b8 a0 c0 00 	mv r24,r5                                      
                                                                      
  /*                                                                  
   *  Are the file system options valid?                              
   */                                                                 
                                                                      
  if ( options != RTEMS_FILESYSTEM_READ_ONLY &&                       
 8001a54:	50 24 00 02 	bgeu r1,r4,8001a5c <mount+0x60>                
 8001a58:	e0 00 00 05 	bi 8001a6c <mount+0x70>                        
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  /*                                                                  
   *  Get mount handler                                               
   */                                                                 
  mount_h = rtems_filesystem_get_mount_handler( filesystemtype );     
 8001a5c:	b8 60 08 00 	mv r1,r3                                       
 8001a60:	f8 00 1a d6 	calli 80085b8 <rtems_filesystem_get_mount_handler>
 8001a64:	b8 20 a0 00 	mv r20,r1                                      
  if ( !mount_h )                                                     
 8001a68:	5c 20 00 04 	bne r1,r0,8001a78 <mount+0x7c>                 
    rtems_set_errno_and_return_minus_one( EINVAL );                   
 8001a6c:	f8 00 26 49 	calli 800b390 <__errno>                        
 8001a70:	34 02 00 16 	mvi r2,22                                      
 8001a74:	e0 00 00 37 	bi 8001b50 <mount+0x154>                       
{                                                                     
  rtems_filesystem_fsmount_me_t mount_h = NULL;                       
  rtems_filesystem_location_info_t      loc;                          
  rtems_filesystem_mount_table_entry_t *mt_entry = NULL;              
  rtems_filesystem_location_info_t     *loc_to_free = NULL;           
  bool has_target = target != NULL;                                   
 8001a78:	7d ee 00 00 	cmpnei r14,r15,0                               
  const char *target_or_null,                                         
  const char *filesystemtype,                                         
  size_t *target_length_ptr                                           
)                                                                     
{                                                                     
  const char *target = target_or_null != NULL ? target_or_null : "/"; 
 8001a7c:	b9 e0 60 00 	mv r12,r15                                     
 8001a80:	5d c0 00 03 	bne r14,r0,8001a8c <mount+0x90>                
 8001a84:	78 0c 08 01 	mvhi r12,0x801                                 
 8001a88:	39 8c 1b b4 	ori r12,r12,0x1bb4                             
  size_t filesystemtype_size = strlen( filesystemtype ) + 1;          
 8001a8c:	ba 60 08 00 	mv r1,r19                                      
 8001a90:	f8 00 2a e1 	calli 800c614 <strlen>                         
 8001a94:	34 30 00 01 	addi r16,r1,1                                  
  size_t source_size = source_or_null != NULL ?                       
    strlen( source_or_null ) + 1 : 0;                                 
 8001a98:	34 0d 00 00 	mvi r13,0                                      
 8001a9c:	46 20 00 04 	be r17,r0,8001aac <mount+0xb0>                 
 8001aa0:	ba 20 08 00 	mv r1,r17                                      
 8001aa4:	f8 00 2a dc 	calli 800c614 <strlen>                         
 8001aa8:	34 2d 00 01 	addi r13,r1,1                                  
  size_t target_size = strlen( target ) + 1;                          
 8001aac:	b9 80 08 00 	mv r1,r12                                      
 8001ab0:	f8 00 2a d9 	calli 800c614 <strlen>                         
  size_t size = sizeof( rtems_filesystem_mount_table_entry_t )        
    + filesystemtype_size + source_size + target_size;                
 8001ab4:	36 03 00 74 	addi r3,r16,116                                
{                                                                     
  const char *target = target_or_null != NULL ? target_or_null : "/"; 
  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;                          
 8001ab8:	34 37 00 01 	addi r23,r1,1                                  
  size_t size = sizeof( rtems_filesystem_mount_table_entry_t )        
    + filesystemtype_size + source_size + target_size;                
 8001abc:	b4 6d 18 00 	add r3,r3,r13                                  
{                                                                     
  const char *target = target_or_null != NULL ? target_or_null : "/"; 
  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;                          
 8001ac0:	b8 20 a8 00 	mv r21,r1                                      
  size_t size = sizeof( rtems_filesystem_mount_table_entry_t )        
    + filesystemtype_size + source_size + target_size;                
  rtems_filesystem_mount_table_entry_t *mt_entry = calloc( 1, size ); 
 8001ac4:	b4 77 10 00 	add r2,r3,r23                                  
 8001ac8:	34 01 00 01 	mvi r1,1                                       
 8001acc:	fb ff fd 84 	calli 80010dc <calloc>                         
 8001ad0:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  if ( mt_entry != NULL ) {                                           
 8001ad4:	44 20 00 1d 	be r1,r0,8001b48 <mount+0x14c>                 <== NEVER TAKEN
    char *str = (char *) mt_entry + sizeof( *mt_entry );              
 8001ad8:	34 32 00 74 	addi r18,r1,116                                
                                                                      
    memcpy( str, filesystemtype, filesystemtype_size );               
 8001adc:	ba 00 18 00 	mv r3,r16                                      
 8001ae0:	ba 60 10 00 	mv r2,r19                                      
 8001ae4:	ba 40 08 00 	mv r1,r18                                      
 8001ae8:	f8 00 28 e0 	calli 800be68 <memcpy>                         
    mt_entry->type = str;                                             
    str += filesystemtype_size;                                       
 8001aec:	b6 50 80 00 	add r16,r18,r16                                
                                                                      
    memcpy( str, source_or_null, source_size );                       
 8001af0:	b9 a0 18 00 	mv r3,r13                                      
 8001af4:	ba 20 10 00 	mv r2,r17                                      
 8001af8:	ba 00 08 00 	mv r1,r16                                      
    mt_entry->dev = str;                                              
    str += source_size;                                               
 8001afc:	b6 0d 68 00 	add r13,r16,r13                                
                                                                      
  if ( mt_entry != NULL ) {                                           
    char *str = (char *) mt_entry + sizeof( *mt_entry );              
                                                                      
    memcpy( str, filesystemtype, filesystemtype_size );               
    mt_entry->type = str;                                             
 8001b00:	59 72 00 6c 	sw (r11+108),r18                               
    str += filesystemtype_size;                                       
                                                                      
    memcpy( str, source_or_null, source_size );                       
 8001b04:	f8 00 28 d9 	calli 800be68 <memcpy>                         
    mt_entry->dev = str;                                              
    str += source_size;                                               
                                                                      
    memcpy( str, target, target_size );                               
 8001b08:	b9 80 10 00 	mv r2,r12                                      
 8001b0c:	ba e0 18 00 	mv r3,r23                                      
 8001b10:	b9 a0 08 00 	mv r1,r13                                      
    memcpy( str, filesystemtype, filesystemtype_size );               
    mt_entry->type = str;                                             
    str += filesystemtype_size;                                       
                                                                      
    memcpy( str, source_or_null, source_size );                       
    mt_entry->dev = str;                                              
 8001b14:	59 70 00 70 	sw (r11+112),r16                               
    str += source_size;                                               
                                                                      
    memcpy( str, target, target_size );                               
 8001b18:	f8 00 28 d4 	calli 800be68 <memcpy>                         
  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;
 8001b1c:	78 03 08 01 	mvhi r3,0x801                                  
 8001b20:	b8 60 10 00 	mv r2,r3                                       
 8001b24:	35 61 00 38 	addi r1,r11,56                                 
 8001b28:	38 42 1c 08 	ori r2,r2,0x1c08                               
 8001b2c:	34 03 00 30 	mvi r3,48                                      
    memcpy( str, source_or_null, source_size );                       
    mt_entry->dev = str;                                              
    str += source_size;                                               
                                                                      
    memcpy( str, target, target_size );                               
    mt_entry->target = str;                                           
 8001b30:	59 6d 00 68 	sw (r11+104),r13                               
    &target_length                                                    
  );                                                                  
  if ( !mt_entry )                                                    
    rtems_set_errno_and_return_minus_one( ENOMEM );                   
                                                                      
  mt_entry->mt_fs_root.mt_entry = mt_entry;                           
 8001b34:	59 6b 00 2c 	sw (r11+44),r11                                
  mt_entry->options = options;                                        
 8001b38:	59 76 00 30 	sw (r11+48),r22                                
  mt_entry->pathconf_limits_and_options = rtems_filesystem_default_pathconf;
 8001b3c:	f8 00 28 cb 	calli 800be68 <memcpy>                         
  /*                                                                  
   *  The mount_point should be a directory with read/write/execute   
   *  permissions in the existing tree.                               
   */                                                                 
                                                                      
  if ( has_target ) {                                                 
 8001b40:	45 c0 00 2f 	be r14,r0,8001bfc <mount+0x200>                
 8001b44:	e0 00 00 06 	bi 8001b5c <mount+0x160>                       
    target,                                                           
    filesystemtype,                                                   
    &target_length                                                    
  );                                                                  
  if ( !mt_entry )                                                    
    rtems_set_errno_and_return_minus_one( ENOMEM );                   
 8001b48:	f8 00 26 12 	calli 800b390 <__errno>                        <== NOT EXECUTED
 8001b4c:	34 02 00 0c 	mvi r2,12                                      <== NOT EXECUTED
 8001b50:	58 22 00 00 	sw (r1+0),r2                                   
 8001b54:	34 0d ff ff 	mvi r13,-1                                     
 8001b58:	e0 00 00 5a 	bi 8001cc0 <mount+0x2c4>                       
   *  The mount_point should be a directory with read/write/execute   
   *  permissions in the existing tree.                               
   */                                                                 
                                                                      
  if ( has_target ) {                                                 
    if ( rtems_filesystem_evaluate_path(                              
 8001b5c:	37 8c 00 40 	addi r12,sp,64                                 
 8001b60:	ba a0 10 00 	mv r2,r21                                      
 8001b64:	b9 e0 08 00 	mv r1,r15                                      
 8001b68:	34 03 00 07 	mvi r3,7                                       
 8001b6c:	b9 80 20 00 	mv r4,r12                                      
 8001b70:	34 05 00 01 	mvi r5,1                                       
 8001b74:	fb ff fd 9b 	calli 80011e0 <rtems_filesystem_evaluate_path> 
 8001b78:	34 02 ff ff 	mvi r2,-1                                      
 8001b7c:	44 22 00 4a 	be r1,r2,8001ca4 <mount+0x2a8>                 <== NEVER TAKEN
                                                                      
    /*                                                                
     *  Test to see if it is a directory                              
     */                                                               
                                                                      
    if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
 8001b80:	2b 81 00 4c 	lw r1,(sp+76)                                  
 8001b84:	28 23 00 10 	lw r3,(r1+16)                                  
 8001b88:	b9 80 08 00 	mv r1,r12                                      
 8001b8c:	d8 60 00 00 	call r3                                        
 8001b90:	34 02 00 01 	mvi r2,1                                       
 8001b94:	44 22 00 04 	be r1,r2,8001ba4 <mount+0x1a8>                 
      errno = ENOTDIR;                                                
 8001b98:	f8 00 25 fe 	calli 800b390 <__errno>                        
 8001b9c:	34 02 00 14 	mvi r2,20                                      
 8001ba0:	e0 00 00 20 	bi 8001c20 <mount+0x224>                       
                                                                      
    /*                                                                
     *  You can only mount one file system onto a single mount point. 
     */                                                               
                                                                      
    if ( rtems_filesystem_mount_iterate( is_node_fs_root, loc.node_access ) ) {
 8001ba4:	2b 82 00 40 	lw r2,(sp+64)                                  
 8001ba8:	78 01 08 00 	mvhi r1,0x800                                  
 8001bac:	38 21 19 18 	ori r1,r1,0x1918                               
 8001bb0:	fb ff ff 71 	calli 8001974 <rtems_filesystem_mount_iterate> 
 8001bb4:	b8 20 68 00 	mv r13,r1                                      
 8001bb8:	44 20 00 04 	be r1,r0,8001bc8 <mount+0x1cc>                 
      errno = EBUSY;                                                  
 8001bbc:	f8 00 25 f5 	calli 800b390 <__errno>                        
 8001bc0:	34 02 00 10 	mvi r2,16                                      
 8001bc4:	e0 00 00 17 	bi 8001c20 <mount+0x224>                       
     *  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;            
 8001bc8:	2b 81 00 40 	lw r1,(sp+64)                                  
    mt_entry->mt_point_node.handlers = loc.handlers;                  
    mt_entry->mt_point_node.ops = loc.ops;                            
    mt_entry->mt_point_node.mt_entry = loc.mt_entry;                  
 8001bcc:	2b 82 00 50 	lw r2,(sp+80)                                  
     *  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;            
 8001bd0:	59 61 00 08 	sw (r11+8),r1                                  
    mt_entry->mt_point_node.handlers = loc.handlers;                  
 8001bd4:	2b 81 00 48 	lw r1,(sp+72)                                  
    mt_entry->mt_point_node.ops = loc.ops;                            
    mt_entry->mt_point_node.mt_entry = loc.mt_entry;                  
 8001bd8:	59 62 00 18 	sw (r11+24),r2                                 
     *  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;                  
 8001bdc:	59 61 00 10 	sw (r11+16),r1                                 
    mt_entry->mt_point_node.ops = loc.ops;                            
 8001be0:	2b 81 00 4c 	lw r1,(sp+76)                                  
    /*                                                                
     *  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 ) ) {                             
 8001be4:	28 23 00 20 	lw r3,(r1+32)                                  
     *  traverse the tree.                                            
     */                                                               
                                                                      
    mt_entry->mt_point_node.node_access = loc.node_access;            
    mt_entry->mt_point_node.handlers = loc.handlers;                  
    mt_entry->mt_point_node.ops = loc.ops;                            
 8001be8:	59 61 00 14 	sw (r11+20),r1                                 
    /*                                                                
     *  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 ) ) {                             
 8001bec:	b9 60 08 00 	mv r1,r11                                      
 8001bf0:	d8 60 00 00 	call r3                                        
 8001bf4:	44 2d 00 0d 	be r1,r13,8001c28 <mount+0x22c>                <== ALWAYS TAKEN
 8001bf8:	e0 00 00 2c 	bi 8001ca8 <mount+0x2ac>                       <== NOT EXECUTED
    stop = (*routine)( mt_entry, routine_arg );                       
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  return stop;                                                        
}                                                                     
 8001bfc:	78 04 08 01 	mvhi r4,0x801                                  
 8001c00:	38 84 31 40 	ori r4,r4,0x3140                               
    }                                                                 
  } else {                                                            
    /*                                                                
     * Do we already have a base file system ?                        
     */                                                               
    if ( !rtems_chain_is_empty( &mount_chain ) ) {                    
 8001c04:	28 81 00 00 	lw r1,(r4+0)                                   
 8001c08:	78 03 08 01 	mvhi r3,0x801                                  
 8001c0c:	38 63 31 44 	ori r3,r3,0x3144                               
)                                                                     
{                                                                     
  rtems_filesystem_fsmount_me_t mount_h = NULL;                       
  rtems_filesystem_location_info_t      loc;                          
  rtems_filesystem_mount_table_entry_t *mt_entry = NULL;              
  rtems_filesystem_location_info_t     *loc_to_free = NULL;           
 8001c10:	34 0c 00 00 	mvi r12,0                                      
    }                                                                 
  } else {                                                            
    /*                                                                
     * Do we already have a base file system ?                        
     */                                                               
    if ( !rtems_chain_is_empty( &mount_chain ) ) {                    
 8001c14:	44 23 00 05 	be r1,r3,8001c28 <mount+0x22c>                 <== ALWAYS TAKEN
      errno = EINVAL;                                                 
 8001c18:	f8 00 25 de 	calli 800b390 <__errno>                        <== NOT EXECUTED
 8001c1c:	34 02 00 16 	mvi r2,22                                      <== NOT EXECUTED
 8001c20:	58 22 00 00 	sw (r1+0),r2                                   
      goto cleanup_and_bail;                                          
 8001c24:	e0 00 00 21 	bi 8001ca8 <mount+0x2ac>                       
     *  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 ) ) {                               
 8001c28:	b9 60 08 00 	mv r1,r11                                      
 8001c2c:	bb 00 10 00 	mv r2,r24                                      
 8001c30:	da 80 00 00 	call r20                                       
 8001c34:	44 20 00 06 	be r1,r0,8001c4c <mount+0x250>                 
    /*                                                                
     * Try to undo the mount operation                                
     */                                                               
    loc.ops->unmount_h( mt_entry );                                   
 8001c38:	2b 81 00 4c 	lw r1,(sp+76)                                  
 8001c3c:	28 22 00 28 	lw r2,(r1+40)                                  
 8001c40:	b9 60 08 00 	mv r1,r11                                      
 8001c44:	d8 40 00 00 	call r2                                        
    goto cleanup_and_bail;                                            
 8001c48:	e0 00 00 18 	bi 8001ca8 <mount+0x2ac>                       
  }                                                                   
                                                                      
  /*                                                                  
   *  Add the mount table entry to the mount table chain              
   */                                                                 
  rtems_libio_lock();                                                 
 8001c4c:	fb ff ff 36 	calli 8001924 <rtems_libio_lock>               
 8001c50:	78 01 08 01 	mvhi r1,0x801                                  
 8001c54:	38 21 31 40 	ori r1,r1,0x3140                               
 8001c58:	b9 60 10 00 	mv r2,r11                                      
  rtems_libio_unlock();                                               
                                                                      
  if ( !has_target )                                                  
    rtems_filesystem_root = mt_entry->mt_fs_root;                     
                                                                      
  return 0;                                                           
 8001c5c:	34 0d 00 00 	mvi r13,0                                      
 8001c60:	f8 00 06 22 	calli 80034e8 <_Chain_Append>                  
  /*                                                                  
   *  Add the mount table entry to the mount table chain              
   */                                                                 
  rtems_libio_lock();                                                 
  rtems_chain_append( &mount_chain, &mt_entry->Node );                
  rtems_libio_unlock();                                               
 8001c64:	fb ff ff 3b 	calli 8001950 <rtems_libio_unlock>             
                                                                      
  if ( !has_target )                                                  
 8001c68:	5d cd 00 16 	bne r14,r13,8001cc0 <mount+0x2c4>              
    rtems_filesystem_root = mt_entry->mt_fs_root;                     
 8001c6c:	78 01 08 01 	mvhi r1,0x801                                  
 8001c70:	38 21 31 4c 	ori r1,r1,0x314c                               
 8001c74:	28 21 00 00 	lw r1,(r1+0)                                   
 8001c78:	29 66 00 1c 	lw r6,(r11+28)                                 
 8001c7c:	29 65 00 20 	lw r5,(r11+32)                                 
 8001c80:	29 64 00 24 	lw r4,(r11+36)                                 
 8001c84:	29 63 00 28 	lw r3,(r11+40)                                 
 8001c88:	29 62 00 2c 	lw r2,(r11+44)                                 
 8001c8c:	58 26 00 18 	sw (r1+24),r6                                  
 8001c90:	58 25 00 1c 	sw (r1+28),r5                                  
 8001c94:	58 24 00 20 	sw (r1+32),r4                                  
 8001c98:	58 23 00 24 	sw (r1+36),r3                                  
 8001c9c:	58 22 00 28 	sw (r1+40),r2                                  
 8001ca0:	e0 00 00 08 	bi 8001cc0 <mount+0x2c4>                       
)                                                                     
{                                                                     
  rtems_filesystem_fsmount_me_t mount_h = NULL;                       
  rtems_filesystem_location_info_t      loc;                          
  rtems_filesystem_mount_table_entry_t *mt_entry = NULL;              
  rtems_filesystem_location_info_t     *loc_to_free = NULL;           
 8001ca4:	34 0c 00 00 	mvi r12,0                                      <== NOT EXECUTED
                                                                      
  return 0;                                                           
                                                                      
cleanup_and_bail:                                                     
                                                                      
  free( mt_entry );                                                   
 8001ca8:	b9 60 08 00 	mv r1,r11                                      
 8001cac:	fb ff fd 9d 	calli 8001320 <free>                           
                                                                      
  if ( loc_to_free )                                                  
    rtems_filesystem_freenode( loc_to_free );                         
                                                                      
  return -1;                                                          
 8001cb0:	34 0d ff ff 	mvi r13,-1                                     
                                                                      
cleanup_and_bail:                                                     
                                                                      
  free( mt_entry );                                                   
                                                                      
  if ( loc_to_free )                                                  
 8001cb4:	45 80 00 03 	be r12,r0,8001cc0 <mount+0x2c4>                <== NEVER TAKEN
    rtems_filesystem_freenode( loc_to_free );                         
 8001cb8:	b9 80 08 00 	mv r1,r12                                      
 8001cbc:	fb ff fd 91 	calli 8001300 <rtems_filesystem_freenode>      
                                                                      
  return -1;                                                          
}                                                                     
 8001cc0:	b9 a0 08 00 	mv r1,r13                                      
 8001cc4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8001cc8:	2b 8b 00 3c 	lw r11,(sp+60)                                 
 8001ccc:	2b 8c 00 38 	lw r12,(sp+56)                                 
 8001cd0:	2b 8d 00 34 	lw r13,(sp+52)                                 
 8001cd4:	2b 8e 00 30 	lw r14,(sp+48)                                 
 8001cd8:	2b 8f 00 2c 	lw r15,(sp+44)                                 
 8001cdc:	2b 90 00 28 	lw r16,(sp+40)                                 
 8001ce0:	2b 91 00 24 	lw r17,(sp+36)                                 
 8001ce4:	2b 92 00 20 	lw r18,(sp+32)                                 
 8001ce8:	2b 93 00 1c 	lw r19,(sp+28)                                 
 8001cec:	2b 94 00 18 	lw r20,(sp+24)                                 
 8001cf0:	2b 95 00 14 	lw r21,(sp+20)                                 
 8001cf4:	2b 96 00 10 	lw r22,(sp+16)                                 
 8001cf8:	2b 97 00 0c 	lw r23,(sp+12)                                 
 8001cfc:	2b 98 00 08 	lw r24,(sp+8)                                  
 8001d00:	37 9c 00 50 	addi sp,sp,80                                  
 8001d04:	c3 a0 00 00 	ret                                            
                                                                      

0800204c <mount_and_make_target_path>: const char *target, const char *filesystemtype, rtems_filesystem_options_t options, const void *data ) {
 800204c:	37 9c ff e8 	addi sp,sp,-24                                 
 8002050:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8002054:	5b 8c 00 08 	sw (sp+8),r12                                  
 8002058:	5b 9d 00 04 	sw (sp+4),ra                                   
 800205c:	b8 20 60 00 	mv r12,r1                                      
 8002060:	b8 40 58 00 	mv r11,r2                                      
  int rv = -1;                                                        
                                                                      
  if (target != NULL) {                                               
 8002064:	44 40 00 0f 	be r2,r0,80020a0 <mount_and_make_target_path+0x54>
    rv = rtems_mkdir(target, S_IRWXU | S_IRWXG | S_IRWXO);            
 8002068:	b8 40 08 00 	mv r1,r2                                       
 800206c:	34 02 01 ff 	mvi r2,511                                     
 8002070:	5b 83 00 18 	sw (sp+24),r3                                  
 8002074:	5b 84 00 14 	sw (sp+20),r4                                  
 8002078:	5b 85 00 10 	sw (sp+16),r5                                  
 800207c:	f8 00 02 91 	calli 8002ac0 <rtems_mkdir>                    
    if (rv == 0) {                                                    
 8002080:	2b 83 00 18 	lw r3,(sp+24)                                  
 8002084:	2b 84 00 14 	lw r4,(sp+20)                                  
 8002088:	2b 85 00 10 	lw r5,(sp+16)                                  
 800208c:	5c 20 00 09 	bne r1,r0,80020b0 <mount_and_make_target_path+0x64><== NEVER TAKEN
      rv = mount(                                                     
 8002090:	b9 80 08 00 	mv r1,r12                                      
 8002094:	b9 60 10 00 	mv r2,r11                                      
 8002098:	f8 00 00 44 	calli 80021a8 <mount>                          
 800209c:	e0 00 00 05 	bi 80020b0 <mount_and_make_target_path+0x64>   
        options,                                                      
        data                                                          
      );                                                              
    }                                                                 
  } else {                                                            
    errno = EINVAL;                                                   
 80020a0:	f8 00 25 4c 	calli 800b5d0 <__errno>                        
 80020a4:	34 02 00 16 	mvi r2,22                                      
 80020a8:	58 22 00 00 	sw (r1+0),r2                                   
  const char *filesystemtype,                                         
  rtems_filesystem_options_t options,                                 
  const void *data                                                    
)                                                                     
{                                                                     
  int rv = -1;                                                        
 80020ac:	34 01 ff ff 	mvi r1,-1                                      
  } else {                                                            
    errno = EINVAL;                                                   
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
 80020b0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80020b4:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 80020b8:	2b 8c 00 08 	lw r12,(sp+8)                                  
 80020bc:	37 9c 00 18 	addi sp,sp,24                                  
 80020c0:	c3 a0 00 00 	ret                                            
                                                                      

08001f30 <newlib_delete_hook>: void newlib_delete_hook( rtems_tcb *current_task, rtems_tcb *deleted_task ) {
 8001f30:	37 9c ff f0 	addi sp,sp,-16                                 
 8001f34:	5b 8b 00 10 	sw (sp+16),r11                                 
 8001f38:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8001f3c:	5b 8d 00 08 	sw (sp+8),r13                                  
 8001f40:	5b 9d 00 04 	sw (sp+4),ra                                   
 8001f44:	b8 20 68 00 	mv r13,r1                                      
 8001f48:	b8 40 60 00 	mv r12,r2                                      
                                                                      
  /*                                                                  
   * The reentrancy structure was allocated by newlib using malloc()  
   */                                                                 
                                                                      
  if (current_task == deleted_task) {                                 
 8001f4c:	5c 22 00 05 	bne r1,r2,8001f60 <newlib_delete_hook+0x30>    
    ptr = _REENT;                                                     
 8001f50:	78 02 08 01 	mvhi r2,0x801                                  
 8001f54:	38 42 31 a8 	ori r2,r2,0x31a8                               
 8001f58:	28 4b 00 00 	lw r11,(r2+0)                                  
 8001f5c:	e0 00 00 02 	bi 8001f64 <newlib_delete_hook+0x34>           
  } else {                                                            
    ptr = deleted_task->libc_reent;                                   
 8001f60:	28 4b 01 14 	lw r11,(r2+276)                                
  }                                                                   
                                                                      
  if (ptr && ptr != _global_impure_ptr) {                             
 8001f64:	45 60 00 0b 	be r11,r0,8001f90 <newlib_delete_hook+0x60>    <== NEVER TAKEN
 8001f68:	78 02 08 01 	mvhi r2,0x801                                  
 8001f6c:	38 42 20 b8 	ori r2,r2,0x20b8                               
 8001f70:	28 41 00 00 	lw r1,(r2+0)                                   
 8001f74:	45 61 00 07 	be r11,r1,8001f90 <newlib_delete_hook+0x60>    
    _reclaim_reent(ptr);                                              
*/                                                                    
    /*                                                                
     *  Just in case there are some buffers lying around.             
     */                                                               
    _fwalk(ptr, newlib_free_buffers);                                 
 8001f78:	78 02 08 00 	mvhi r2,0x800                                  
 8001f7c:	b9 60 08 00 	mv r1,r11                                      
 8001f80:	38 42 1d 0c 	ori r2,r2,0x1d0c                               
 8001f84:	f8 00 27 51 	calli 800bcc8 <_fwalk>                         
#if REENT_MALLOCED                                                    
    free(ptr);                                                        
#else                                                                 
    _Workspace_Free(ptr);                                             
 8001f88:	b9 60 08 00 	mv r1,r11                                      
 8001f8c:	f8 00 12 e7 	calli 8006b28 <_Workspace_Free>                
#endif                                                                
  }                                                                   
                                                                      
  deleted_task->libc_reent = NULL;                                    
 8001f90:	59 80 01 14 	sw (r12+276),r0                                
                                                                      
  /*                                                                  
   * Require the switch back to another task to install its own       
   */                                                                 
                                                                      
  if ( current_task == deleted_task ) {                               
 8001f94:	5d ac 00 04 	bne r13,r12,8001fa4 <newlib_delete_hook+0x74>  
    _REENT = 0;                                                       
 8001f98:	78 01 08 01 	mvhi r1,0x801                                  
 8001f9c:	38 21 31 a8 	ori r1,r1,0x31a8                               
 8001fa0:	58 20 00 00 	sw (r1+0),r0                                   
  }                                                                   
}                                                                     
 8001fa4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8001fa8:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8001fac:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8001fb0:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8001fb4:	37 9c 00 10 	addi sp,sp,16                                  
 8001fb8:	c3 a0 00 00 	ret                                            
                                                                      

08001d0c <newlib_free_buffers>: */ int newlib_free_buffers( FILE *fp ) {
 8001d0c:	37 9c ff f8 	addi sp,sp,-8                                  
 8001d10:	5b 8b 00 08 	sw (sp+8),r11                                  
 8001d14:	5b 9d 00 04 	sw (sp+4),ra                                   
 8001d18:	b8 20 58 00 	mv r11,r1                                      
  switch ( fileno(fp) ) {                                             
 8001d1c:	f8 00 26 b2 	calli 800b7e4 <fileno>                         
 8001d20:	34 02 00 02 	mvi r2,2                                       
 8001d24:	54 22 00 0c 	bgu r1,r2,8001d54 <newlib_free_buffers+0x48>   <== NEVER TAKEN
    case 0:                                                           
    case 1:                                                           
    case 2:                                                           
      if (fp->_flags & __SMBF) {                                      
 8001d28:	2d 61 00 0c 	lhu r1,(r11+12)                                
 8001d2c:	20 21 00 80 	andi r1,r1,0x80                                
 8001d30:	44 20 00 0b 	be r1,r0,8001d5c <newlib_free_buffers+0x50>    <== ALWAYS TAKEN
        free( fp->_bf._base );                                        
 8001d34:	29 61 00 10 	lw r1,(r11+16)                                 <== NOT EXECUTED
 8001d38:	fb ff fd 7a 	calli 8001320 <free>                           <== NOT EXECUTED
        fp->_flags &= ~__SMBF;                                        
 8001d3c:	2d 61 00 0c 	lhu r1,(r11+12)                                <== NOT EXECUTED
        fp->_bf._base = fp->_p = (unsigned char *) NULL;              
 8001d40:	59 60 00 00 	sw (r11+0),r0                                  <== NOT EXECUTED
 8001d44:	59 60 00 10 	sw (r11+16),r0                                 <== NOT EXECUTED
    case 0:                                                           
    case 1:                                                           
    case 2:                                                           
      if (fp->_flags & __SMBF) {                                      
        free( fp->_bf._base );                                        
        fp->_flags &= ~__SMBF;                                        
 8001d48:	20 21 ff 7f 	andi r1,r1,0xff7f                              <== NOT EXECUTED
 8001d4c:	0d 61 00 0c 	sh (r11+12),r1                                 <== NOT EXECUTED
 8001d50:	e0 00 00 03 	bi 8001d5c <newlib_free_buffers+0x50>          <== NOT EXECUTED
        fp->_bf._base = fp->_p = (unsigned char *) NULL;              
      }                                                               
      break;                                                          
    default:                                                          
     fclose(fp);                                                      
 8001d54:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 8001d58:	f8 00 25 ee 	calli 800b510 <fclose>                         <== NOT EXECUTED
  }                                                                   
  return 0;                                                           
}                                                                     
 8001d5c:	34 01 00 00 	mvi r1,0                                       
 8001d60:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8001d64:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8001d68:	37 9c 00 08 	addi sp,sp,8                                   
 8001d6c:	c3 a0 00 00 	ret                                            
                                                                      

08002040 <open>: int open( const char *pathname, int flags, ... ) {
 8002040:	37 9c ff ac 	addi sp,sp,-84                                 
 8002044:	5b 8b 00 24 	sw (sp+36),r11                                 
 8002048:	5b 8c 00 20 	sw (sp+32),r12                                 
 800204c:	5b 8d 00 1c 	sw (sp+28),r13                                 
 8002050:	5b 8e 00 18 	sw (sp+24),r14                                 
 8002054:	5b 8f 00 14 	sw (sp+20),r15                                 
 8002058:	5b 90 00 10 	sw (sp+16),r16                                 
 800205c:	5b 91 00 0c 	sw (sp+12),r17                                 
 8002060:	5b 92 00 08 	sw (sp+8),r18                                  
 8002064:	5b 9d 00 04 	sw (sp+4),ra                                   
 8002068:	b8 20 78 00 	mv r15,r1                                      
                                                                      
  /*                                                                  
   * Set the Evaluation flags                                         
   */                                                                 
  eval_flags = 0;                                                     
  status = flags + 1;                                                 
 800206c:	34 41 00 01 	addi r1,r2,1                                   
int open(                                                             
  const char   *pathname,                                             
  int           flags,                                                
  ...                                                                 
)                                                                     
{                                                                     
 8002070:	5b 82 00 3c 	sw (sp+60),r2                                  
 8002074:	b8 40 70 00 	mv r14,r2                                      
 8002078:	5b 83 00 40 	sw (sp+64),r3                                  
 800207c:	5b 84 00 44 	sw (sp+68),r4                                  
 8002080:	5b 85 00 48 	sw (sp+72),r5                                  
 8002084:	5b 86 00 4c 	sw (sp+76),r6                                  
 8002088:	5b 87 00 50 	sw (sp+80),r7                                  
 800208c:	5b 88 00 54 	sw (sp+84),r8                                  
  /*                                                                  
   * Set the Evaluation flags                                         
   */                                                                 
  eval_flags = 0;                                                     
  status = flags + 1;                                                 
  if ( ( status & _FREAD ) == _FREAD )                                
 8002090:	20 22 00 01 	andi r2,r1,0x1                                 
  int                                 eval_flags;                     
                                                                      
  /*                                                                  
   * Set the Evaluation flags                                         
   */                                                                 
  eval_flags = 0;                                                     
 8002094:	34 10 00 00 	mvi r16,0                                      
  status = flags + 1;                                                 
  if ( ( status & _FREAD ) == _FREAD )                                
 8002098:	44 40 00 02 	be r2,r0,80020a0 <open+0x60>                   
    eval_flags |= RTEMS_LIBIO_PERMS_READ;                             
 800209c:	34 10 00 04 	mvi r16,4                                      
  if ( ( status & _FWRITE ) == _FWRITE )                              
 80020a0:	20 21 00 02 	andi r1,r1,0x2                                 
 80020a4:	44 20 00 02 	be r1,r0,80020ac <open+0x6c>                   
    eval_flags |= RTEMS_LIBIO_PERMS_WRITE;                            
 80020a8:	3a 10 00 02 	ori r16,r16,0x2                                
                                                                      
  va_start(ap, flags);                                                
                                                                      
  mode = va_arg( ap, int );                                           
 80020ac:	2b 92 00 40 	lw r18,(sp+64)                                 
   *             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();                                       
 80020b0:	f8 00 18 69 	calli 8008254 <rtems_libio_allocate>           
 80020b4:	b8 20 58 00 	mv r11,r1                                      
  int                                 mode;                           
  int                                 rc;                             
  rtems_libio_t                      *iop = 0;                        
  int                                 status;                         
  rtems_filesystem_location_info_t    loc;                            
  rtems_filesystem_location_info_t   *loc_to_free = NULL;             
 80020b8:	34 0d 00 00 	mvi r13,0                                      
   */                                                                 
                                                                      
  /* allocate a file control block */                                 
  iop = rtems_libio_allocate();                                       
  if ( iop == 0 ) {                                                   
    rc = ENFILE;                                                      
 80020bc:	34 0c 00 17 	mvi r12,23                                     
   *             descriptors are obtained using socket(), not open(). 
   */                                                                 
                                                                      
  /* allocate a file control block */                                 
  iop = rtems_libio_allocate();                                       
  if ( iop == 0 ) {                                                   
 80020c0:	44 20 00 62 	be r1,r0,8002248 <open+0x208>                  
  }                                                                   
                                                                      
  /*                                                                  
   *  See if the file exists.                                         
   */                                                                 
  status = rtems_filesystem_evaluate_path(                            
 80020c4:	b9 e0 08 00 	mv r1,r15                                      
 80020c8:	f8 00 29 53 	calli 800c614 <strlen>                         
 80020cc:	37 91 00 28 	addi r17,sp,40                                 
 80020d0:	b8 20 10 00 	mv r2,r1                                       
 80020d4:	ba 00 18 00 	mv r3,r16                                      
 80020d8:	b9 e0 08 00 	mv r1,r15                                      
 80020dc:	ba 20 20 00 	mv r4,r17                                      
 80020e0:	34 05 00 01 	mvi r5,1                                       
 80020e4:	fb ff fc 3f 	calli 80011e0 <rtems_filesystem_evaluate_path> 
    pathname, strlen( pathname ), eval_flags, &loc, true );           
                                                                      
  if ( status == -1 ) {                                               
 80020e8:	34 02 ff ff 	mvi r2,-1                                      
 80020ec:	5c 22 00 1c 	bne r1,r2,800215c <open+0x11c>                 
    if ( errno != ENOENT ) {                                          
 80020f0:	f8 00 24 a8 	calli 800b390 <__errno>                        
 80020f4:	28 22 00 00 	lw r2,(r1+0)                                   
 80020f8:	34 01 00 02 	mvi r1,2                                       
 80020fc:	5c 41 00 0a 	bne r2,r1,8002124 <open+0xe4>                  
      rc = errno;                                                     
      goto done;                                                      
    }                                                                 
                                                                      
    /* If the file does not exist and we are not trying to create it--> error */
    if ( !(flags & O_CREAT) ) {                                       
 8002100:	21 c1 02 00 	andi r1,r14,0x200                              
      rc = ENOENT;                                                    
 8002104:	34 0c 00 02 	mvi r12,2                                      
      rc = errno;                                                     
      goto done;                                                      
    }                                                                 
                                                                      
    /* If the file does not exist and we are not trying to create it--> error */
    if ( !(flags & O_CREAT) ) {                                       
 8002108:	44 20 00 50 	be r1,r0,8002248 <open+0x208>                  
      rc = ENOENT;                                                    
      goto done;                                                      
    }                                                                 
                                                                      
    /* Create the node for the new regular file */                    
    rc = mknod( pathname, S_IFREG | mode, 0LL );                      
 800210c:	b9 e0 08 00 	mv r1,r15                                      
 8002110:	3a 42 80 00 	ori r2,r18,0x8000                              
 8002114:	34 03 00 00 	mvi r3,0                                       
 8002118:	34 04 00 00 	mvi r4,0                                       
 800211c:	fb ff fd c3 	calli 8001828 <mknod>                          
    if ( rc ) {                                                       
 8002120:	44 20 00 04 	be r1,r0,8002130 <open+0xf0>                   <== ALWAYS TAKEN
      rc = errno;                                                     
 8002124:	f8 00 24 9b 	calli 800b390 <__errno>                        
 8002128:	28 2c 00 00 	lw r12,(r1+0)                                  
      goto done;                                                      
 800212c:	e0 00 00 46 	bi 8002244 <open+0x204>                        
    /*                                                                
     * 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(                          
 8002130:	b9 e0 08 00 	mv r1,r15                                      
 8002134:	f8 00 29 38 	calli 800c614 <strlen>                         
 8002138:	b8 20 10 00 	mv r2,r1                                       
 800213c:	34 03 00 00 	mvi r3,0                                       
 8002140:	b9 e0 08 00 	mv r1,r15                                      
 8002144:	ba 20 20 00 	mv r4,r17                                      
 8002148:	34 05 00 01 	mvi r5,1                                       
 800214c:	fb ff fc 25 	calli 80011e0 <rtems_filesystem_evaluate_path> 
      pathname, strlen( pathname ), 0x0, &loc, true );                
    if ( status != 0 ) {   /* The file did not exist */               
      rc = EACCES;                                                    
 8002150:	34 0c 00 0d 	mvi r12,13                                     
     * "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(                          
      pathname, strlen( pathname ), 0x0, &loc, true );                
    if ( status != 0 ) {   /* The file did not exist */               
 8002154:	5d a1 00 3d 	bne r13,r1,8002248 <open+0x208>                <== NEVER TAKEN
 8002158:	e0 00 00 06 	bi 8002170 <open+0x130>                        
      rc = EACCES;                                                    
      goto done;                                                      
    }                                                                 
                                                                      
  } else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) {        
 800215c:	21 c2 0a 00 	andi r2,r14,0xa00                              
 8002160:	34 01 0a 00 	mvi r1,2560                                    
    /* We were trying to create a file that already exists */         
    rc = EEXIST;                                                      
    loc_to_free = &loc;                                               
 8002164:	ba 20 68 00 	mv r13,r17                                     
      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;                                                      
 8002168:	34 0c 00 11 	mvi r12,17                                     
    if ( status != 0 ) {   /* The file did not exist */               
      rc = EACCES;                                                    
      goto done;                                                      
    }                                                                 
                                                                      
  } else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) {        
 800216c:	44 41 00 37 	be r2,r1,8002248 <open+0x208>                  
                                                                      
  /*                                                                  
   *  Fill in the file control block based on the loc structure       
   *  returned by successful path evaluation.                         
   */                                                                 
  iop->flags     |= rtems_libio_fcntl_flags( flags );                 
 8002170:	b9 c0 08 00 	mv r1,r14                                      
 8002174:	29 6c 00 18 	lw r12,(r11+24)                                
 8002178:	f8 00 18 0d 	calli 80081ac <rtems_libio_fcntl_flags>        
  iop->pathinfo   = loc;                                              
 800217c:	2b 82 00 28 	lw r2,(sp+40)                                  
                                                                      
  /*                                                                  
   *  Fill in the file control block based on the loc structure       
   *  returned by successful path evaluation.                         
   */                                                                 
  iop->flags     |= rtems_libio_fcntl_flags( flags );                 
 8002180:	b8 2c 08 00 	or r1,r1,r12                                   
 8002184:	59 61 00 18 	sw (r11+24),r1                                 
  iop->pathinfo   = loc;                                              
 8002188:	59 62 00 1c 	sw (r11+28),r2                                 
 800218c:	2b 82 00 2c 	lw r2,(sp+44)                                  
 8002190:	2b 81 00 30 	lw r1,(sp+48)                                  
                                                                      
  rc = (*iop->pathinfo.handlers->open_h)( iop, pathname, flags, mode );
 8002194:	b9 c0 18 00 	mv r3,r14                                      
  /*                                                                  
   *  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;                                              
 8002198:	59 62 00 20 	sw (r11+32),r2                                 
 800219c:	2b 82 00 34 	lw r2,(sp+52)                                  
                                                                      
  rc = (*iop->pathinfo.handlers->open_h)( iop, pathname, flags, mode );
 80021a0:	28 25 00 00 	lw r5,(r1+0)                                   
  /*                                                                  
   *  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;                                              
 80021a4:	59 61 00 24 	sw (r11+36),r1                                 
 80021a8:	59 62 00 28 	sw (r11+40),r2                                 
 80021ac:	2b 82 00 38 	lw r2,(sp+56)                                  
                                                                      
  rc = (*iop->pathinfo.handlers->open_h)( iop, pathname, flags, mode );
 80021b0:	b9 60 08 00 	mv r1,r11                                      
 80021b4:	ba 40 20 00 	mv r4,r18                                      
  /*                                                                  
   *  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;                                              
 80021b8:	59 62 00 2c 	sw (r11+44),r2                                 
                                                                      
  rc = (*iop->pathinfo.handlers->open_h)( iop, pathname, flags, mode );
 80021bc:	b9 e0 10 00 	mv r2,r15                                      
 80021c0:	d8 a0 00 00 	call r5                                        
  if ( rc ) {                                                         
 80021c4:	44 20 00 05 	be r1,r0,80021d8 <open+0x198>                  
    rc = errno;                                                       
 80021c8:	f8 00 24 72 	calli 800b390 <__errno>                        
 80021cc:	28 2c 00 00 	lw r12,(r1+0)                                  
    rc = EEXIST;                                                      
    loc_to_free = &loc;                                               
    goto done;                                                        
  }                                                                   
                                                                      
  loc_to_free = &loc;                                                 
 80021d0:	37 8d 00 28 	addi r13,sp,40                                 
  iop->pathinfo   = loc;                                              
                                                                      
  rc = (*iop->pathinfo.handlers->open_h)( iop, pathname, flags, mode );
  if ( rc ) {                                                         
    rc = errno;                                                       
    goto done;                                                        
 80021d4:	e0 00 00 1c 	bi 8002244 <open+0x204>                        
  }                                                                   
                                                                      
  /*                                                                  
   *  Optionally truncate the file.                                   
   */                                                                 
  if ( (flags & O_TRUNC) == O_TRUNC ) {                               
 80021d8:	21 ce 04 00 	andi r14,r14,0x400                             
 80021dc:	45 c1 00 25 	be r14,r1,8002270 <open+0x230>                 
    rc = ftruncate( iop - rtems_libio_iops, 0 );                      
 80021e0:	78 01 08 01 	mvhi r1,0x801                                  
 80021e4:	38 21 37 10 	ori r1,r1,0x3710                               
 80021e8:	28 21 00 00 	lw r1,(r1+0)                                   
 80021ec:	34 02 00 06 	mvi r2,6                                       
    rc = EEXIST;                                                      
    loc_to_free = &loc;                                               
    goto done;                                                        
  }                                                                   
                                                                      
  loc_to_free = &loc;                                                 
 80021f0:	37 8d 00 28 	addi r13,sp,40                                 
                                                                      
  /*                                                                  
   *  Optionally truncate the file.                                   
   */                                                                 
  if ( (flags & O_TRUNC) == O_TRUNC ) {                               
    rc = ftruncate( iop - rtems_libio_iops, 0 );                      
 80021f4:	c9 61 08 00 	sub r1,r11,r1                                  
 80021f8:	f8 00 39 cb 	calli 8010924 <__ashrsi3>                      
 80021fc:	34 02 00 00 	mvi r2,0                                       
 8002200:	f8 00 17 97 	calli 800805c <ftruncate>                      
 8002204:	b8 20 60 00 	mv r12,r1                                      
    if ( rc ) {                                                       
 8002208:	44 20 00 0f 	be r1,r0,8002244 <open+0x204>                  
      if(errno) rc = errno;                                           
 800220c:	f8 00 24 61 	calli 800b390 <__errno>                        
 8002210:	28 21 00 00 	lw r1,(r1+0)                                   
 8002214:	44 20 00 03 	be r1,r0,8002220 <open+0x1e0>                  <== NEVER TAKEN
 8002218:	f8 00 24 5e 	calli 800b390 <__errno>                        
 800221c:	28 2c 00 00 	lw r12,(r1+0)                                  
      close( iop - rtems_libio_iops );                                
 8002220:	78 01 08 01 	mvhi r1,0x801                                  
 8002224:	38 21 37 10 	ori r1,r1,0x3710                               
 8002228:	28 21 00 00 	lw r1,(r1+0)                                   
 800222c:	34 02 00 06 	mvi r2,6                                       
      /* those are released by close(): */                            
      iop = 0;                                                        
      loc_to_free = NULL;                                             
 8002230:	34 0d 00 00 	mvi r13,0                                      
   */                                                                 
  if ( (flags & O_TRUNC) == O_TRUNC ) {                               
    rc = ftruncate( iop - rtems_libio_iops, 0 );                      
    if ( rc ) {                                                       
      if(errno) rc = errno;                                           
      close( iop - rtems_libio_iops );                                
 8002234:	c9 61 08 00 	sub r1,r11,r1                                  
 8002238:	f8 00 39 bb 	calli 8010924 <__ashrsi3>                      
 800223c:	f8 00 17 5b 	calli 8007fa8 <close>                          
      /* those are released by close(): */                            
      iop = 0;                                                        
 8002240:	34 0b 00 00 	mvi r11,0                                      
   *  Single exit and clean up path.                                  
   */                                                                 
done:                                                                 
  va_end(ap);                                                         
                                                                      
  if ( rc ) {                                                         
 8002244:	45 80 00 0b 	be r12,r0,8002270 <open+0x230>                 
    if ( iop )                                                        
 8002248:	45 60 00 03 	be r11,r0,8002254 <open+0x214>                 
      rtems_libio_free( iop );                                        
 800224c:	b9 60 08 00 	mv r1,r11                                      
 8002250:	f8 00 18 2f 	calli 800830c <rtems_libio_free>               
    if ( loc_to_free )                                                
 8002254:	45 a0 00 03 	be r13,r0,8002260 <open+0x220>                 
      rtems_filesystem_freenode( loc_to_free );                       
 8002258:	b9 a0 08 00 	mv r1,r13                                      
 800225c:	fb ff fc 29 	calli 8001300 <rtems_filesystem_freenode>      
    rtems_set_errno_and_return_minus_one( rc );                       
 8002260:	f8 00 24 4c 	calli 800b390 <__errno>                        
 8002264:	58 2c 00 00 	sw (r1+0),r12                                  
 8002268:	34 01 ff ff 	mvi r1,-1                                      
 800226c:	e0 00 00 07 	bi 8002288 <open+0x248>                        
  }                                                                   
                                                                      
  return iop - rtems_libio_iops;                                      
 8002270:	78 01 08 01 	mvhi r1,0x801                                  
 8002274:	38 21 37 10 	ori r1,r1,0x3710                               
 8002278:	28 21 00 00 	lw r1,(r1+0)                                   
 800227c:	34 02 00 06 	mvi r2,6                                       
 8002280:	c9 61 08 00 	sub r1,r11,r1                                  
 8002284:	f8 00 39 a8 	calli 8010924 <__ashrsi3>                      
}                                                                     
 8002288:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800228c:	2b 8b 00 24 	lw r11,(sp+36)                                 
 8002290:	2b 8c 00 20 	lw r12,(sp+32)                                 
 8002294:	2b 8d 00 1c 	lw r13,(sp+28)                                 
 8002298:	2b 8e 00 18 	lw r14,(sp+24)                                 
 800229c:	2b 8f 00 14 	lw r15,(sp+20)                                 
 80022a0:	2b 90 00 10 	lw r16,(sp+16)                                 
 80022a4:	2b 91 00 0c 	lw r17,(sp+12)                                 
 80022a8:	2b 92 00 08 	lw r18,(sp+8)                                  
 80022ac:	37 9c 00 54 	addi sp,sp,84                                  
 80022b0:	c3 a0 00 00 	ret                                            
                                                                      

08001fbc <open_dev_console>: /* * This is a replaceable stub which opens the console, if present. */ void open_dev_console(void) {
 8001fbc:	37 9c ff f4 	addi sp,sp,-12                                 
 8001fc0:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8001fc4:	5b 8c 00 08 	sw (sp+8),r12                                  
 8001fc8:	5b 9d 00 04 	sw (sp+4),ra                                   
  int      stderr_fd;                                                 
                                                                      
  /*                                                                  
   * Attempt to open /dev/console.                                    
   */                                                                 
  if ((stdin_fd = open("/dev/console", O_RDONLY, 0)) == -1) {         
 8001fcc:	78 0b 08 01 	mvhi r11,0x801                                 
 8001fd0:	39 6b 1b 44 	ori r11,r11,0x1b44                             
 8001fd4:	b9 60 08 00 	mv r1,r11                                      
 8001fd8:	34 02 00 00 	mvi r2,0                                       
 8001fdc:	34 03 00 00 	mvi r3,0                                       
 8001fe0:	f8 00 00 18 	calli 8002040 <open>                           
 8001fe4:	34 0c ff ff 	mvi r12,-1                                     
 8001fe8:	44 2c 00 11 	be r1,r12,800202c <open_dev_console+0x70>      
                                                                      
  /*                                                                  
   *  But if we find /dev/console once, we better find it twice more  
   *  or something is REALLY wrong.                                   
   */                                                                 
  if ((stdout_fd = open("/dev/console", O_WRONLY, 0)) == -1)          
 8001fec:	34 02 00 01 	mvi r2,1                                       
 8001ff0:	b9 60 08 00 	mv r1,r11                                      
 8001ff4:	34 03 00 00 	mvi r3,0                                       
 8001ff8:	f8 00 00 12 	calli 8002040 <open>                           
    rtems_fatal_error_occurred( 0x55544431 );  /* error STD1 */       
 8001ffc:	78 02 08 01 	mvhi r2,0x801                                  
 8002000:	38 42 1c 3c 	ori r2,r2,0x1c3c                               
                                                                      
  /*                                                                  
   *  But if we find /dev/console once, we better find it twice more  
   *  or something is REALLY wrong.                                   
   */                                                                 
  if ((stdout_fd = open("/dev/console", O_WRONLY, 0)) == -1)          
 8002004:	44 2c 00 08 	be r1,r12,8002024 <open_dev_console+0x68>      <== NEVER TAKEN
    rtems_fatal_error_occurred( 0x55544431 );  /* error STD1 */       
                                                                      
  if ((stderr_fd = open("/dev/console", O_WRONLY, 0)) == -1)          
 8002008:	b9 60 08 00 	mv r1,r11                                      
 800200c:	34 02 00 01 	mvi r2,1                                       
 8002010:	34 03 00 00 	mvi r3,0                                       
 8002014:	f8 00 00 0b 	calli 8002040 <open>                           
 8002018:	5c 2c 00 05 	bne r1,r12,800202c <open_dev_console+0x70>     <== ALWAYS TAKEN
    rtems_fatal_error_occurred( 0x55544432 );  /* error STD2 */       
 800201c:	78 02 08 01 	mvhi r2,0x801                                  <== NOT EXECUTED
 8002020:	38 42 1c 40 	ori r2,r2,0x1c40                               <== NOT EXECUTED
 8002024:	28 41 00 00 	lw r1,(r2+0)                                   <== NOT EXECUTED
 8002028:	f8 00 04 30 	calli 80030e8 <rtems_fatal_error_occurred>     <== NOT EXECUTED
}                                                                     
 800202c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8002030:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8002034:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8002038:	37 9c 00 0c 	addi sp,sp,12                                  
 800203c:	c3 a0 00 00 	ret                                            
                                                                      

08003e68 <oproc>: /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) {
 8003e68:	37 9c ff f4 	addi sp,sp,-12                                 
 8003e6c:	5b 8b 00 08 	sw (sp+8),r11                                  
 8003e70:	5b 9d 00 04 	sw (sp+4),ra                                   
 8003e74:	33 81 00 0c 	sb (sp+12),r1                                  
  int  i;                                                             
                                                                      
  if (tty->termios.c_oflag & OPOST) {                                 
 8003e78:	28 41 00 34 	lw r1,(r2+52)                                  
/*                                                                    
 * Handle output processing                                           
 */                                                                   
static void                                                           
oproc (unsigned char c, struct rtems_termios_tty *tty)                
{                                                                     
 8003e7c:	b8 40 58 00 	mv r11,r2                                      
  int  i;                                                             
                                                                      
  if (tty->termios.c_oflag & OPOST) {                                 
 8003e80:	20 22 00 01 	andi r2,r1,0x1                                 
 8003e84:	44 40 00 4d 	be r2,r0,8003fb8 <oproc+0x150>                 <== NEVER TAKEN
    switch (c) {                                                      
 8003e88:	43 82 00 0c 	lbu r2,(sp+12)                                 
 8003e8c:	34 03 00 09 	mvi r3,9                                       
 8003e90:	44 43 00 21 	be r2,r3,8003f14 <oproc+0xac>                  
 8003e94:	54 43 00 04 	bgu r2,r3,8003ea4 <oproc+0x3c>                 <== ALWAYS TAKEN
 8003e98:	34 03 00 08 	mvi r3,8                                       <== NOT EXECUTED
 8003e9c:	5c 43 00 30 	bne r2,r3,8003f5c <oproc+0xf4>                 <== NOT EXECUTED
 8003ea0:	e0 00 00 2b 	bi 8003f4c <oproc+0xe4>                        <== NOT EXECUTED
 8003ea4:	34 03 00 0a 	mvi r3,10                                      
 8003ea8:	44 43 00 04 	be r2,r3,8003eb8 <oproc+0x50>                  
 8003eac:	34 03 00 0d 	mvi r3,13                                      
 8003eb0:	5c 43 00 2b 	bne r2,r3,8003f5c <oproc+0xf4>                 <== ALWAYS TAKEN
 8003eb4:	e0 00 00 0c 	bi 8003ee4 <oproc+0x7c>                        <== NOT EXECUTED
    case '\n':                                                        
      if (tty->termios.c_oflag & ONLRET)                              
 8003eb8:	20 22 00 20 	andi r2,r1,0x20                                
 8003ebc:	44 40 00 02 	be r2,r0,8003ec4 <oproc+0x5c>                  <== ALWAYS TAKEN
        tty->column = 0;                                              
 8003ec0:	59 60 00 28 	sw (r11+40),r0                                 <== NOT EXECUTED
      if (tty->termios.c_oflag & ONLCR) {                             
 8003ec4:	20 21 00 04 	andi r1,r1,0x4                                 
 8003ec8:	44 20 00 3c 	be r1,r0,8003fb8 <oproc+0x150>                 <== NEVER TAKEN
        rtems_termios_puts ("\r", 1, tty);                            
 8003ecc:	78 01 08 02 	mvhi r1,0x802                                  
 8003ed0:	38 21 25 b0 	ori r1,r1,0x25b0                               
 8003ed4:	34 02 00 01 	mvi r2,1                                       
 8003ed8:	b9 60 18 00 	mv r3,r11                                      
 8003edc:	fb ff ff 8d 	calli 8003d10 <rtems_termios_puts>             
 8003ee0:	e0 00 00 0b 	bi 8003f0c <oproc+0xa4>                        
        tty->column = 0;                                              
      }                                                               
      break;                                                          
                                                                      
    case '\r':                                                        
      if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0))       
 8003ee4:	20 22 00 10 	andi r2,r1,0x10                                <== NOT EXECUTED
 8003ee8:	44 40 00 03 	be r2,r0,8003ef4 <oproc+0x8c>                  <== NOT EXECUTED
 8003eec:	29 62 00 28 	lw r2,(r11+40)                                 <== NOT EXECUTED
 8003ef0:	44 40 00 36 	be r2,r0,8003fc8 <oproc+0x160>                 <== NOT EXECUTED
        return;                                                       
      if (tty->termios.c_oflag & OCRNL) {                             
 8003ef4:	20 22 00 08 	andi r2,r1,0x8                                 <== NOT EXECUTED
 8003ef8:	44 40 00 05 	be r2,r0,8003f0c <oproc+0xa4>                  <== NOT EXECUTED
        c = '\n';                                                     
 8003efc:	34 02 00 0a 	mvi r2,10                                      <== NOT EXECUTED
 8003f00:	33 82 00 0c 	sb (sp+12),r2                                  <== NOT EXECUTED
        if (tty->termios.c_oflag & ONLRET)                            
 8003f04:	20 21 00 20 	andi r1,r1,0x20                                <== NOT EXECUTED
 8003f08:	44 20 00 2c 	be r1,r0,8003fb8 <oproc+0x150>                 <== NOT EXECUTED
          tty->column = 0;                                            
        break;                                                        
      }                                                               
      tty->column = 0;                                                
 8003f0c:	59 60 00 28 	sw (r11+40),r0                                 
      break;                                                          
 8003f10:	e0 00 00 2a 	bi 8003fb8 <oproc+0x150>                       
                                                                      
    case '\t':                                                        
      i = 8 - (tty->column & 7);                                      
 8003f14:	29 63 00 28 	lw r3,(r11+40)                                 
 8003f18:	34 04 00 08 	mvi r4,8                                       
      if ((tty->termios.c_oflag & TABDLY) == XTABS) {                 
 8003f1c:	20 21 18 00 	andi r1,r1,0x1800                              
      }                                                               
      tty->column = 0;                                                
      break;                                                          
                                                                      
    case '\t':                                                        
      i = 8 - (tty->column & 7);                                      
 8003f20:	20 62 00 07 	andi r2,r3,0x7                                 
 8003f24:	c8 82 10 00 	sub r2,r4,r2                                   
      if ((tty->termios.c_oflag & TABDLY) == XTABS) {                 
 8003f28:	34 04 18 00 	mvi r4,6144                                    
 8003f2c:	b4 43 18 00 	add r3,r2,r3                                   
 8003f30:	5c 24 00 05 	bne r1,r4,8003f44 <oproc+0xdc>                 <== NEVER TAKEN
        tty->column += i;                                             
        rtems_termios_puts ( "        ",  i, tty);                    
 8003f34:	78 01 08 02 	mvhi r1,0x802                                  
      break;                                                          
                                                                      
    case '\t':                                                        
      i = 8 - (tty->column & 7);                                      
      if ((tty->termios.c_oflag & TABDLY) == XTABS) {                 
        tty->column += i;                                             
 8003f38:	59 63 00 28 	sw (r11+40),r3                                 
        rtems_termios_puts ( "        ",  i, tty);                    
 8003f3c:	38 21 25 b4 	ori r1,r1,0x25b4                               
 8003f40:	e0 00 00 20 	bi 8003fc0 <oproc+0x158>                       
        return;                                                       
      }                                                               
      tty->column += i;                                               
 8003f44:	59 63 00 28 	sw (r11+40),r3                                 <== NOT EXECUTED
      break;                                                          
 8003f48:	e0 00 00 1c 	bi 8003fb8 <oproc+0x150>                       <== NOT EXECUTED
                                                                      
    case '\b':                                                        
      if (tty->column > 0)                                            
 8003f4c:	29 61 00 28 	lw r1,(r11+40)                                 <== NOT EXECUTED
 8003f50:	4c 01 00 1a 	bge r0,r1,8003fb8 <oproc+0x150>                <== NOT EXECUTED
        tty->column--;                                                
 8003f54:	34 21 ff ff 	addi r1,r1,-1                                  <== NOT EXECUTED
 8003f58:	e0 00 00 17 	bi 8003fb4 <oproc+0x14c>                       <== NOT EXECUTED
      break;                                                          
                                                                      
    default:                                                          
      if (tty->termios.c_oflag & OLCUC)                               
 8003f5c:	20 21 00 02 	andi r1,r1,0x2                                 
 8003f60:	44 20 00 0b 	be r1,r0,8003f8c <oproc+0x124>                 <== ALWAYS TAKEN
        c = toupper(c);                                               
 8003f64:	78 01 08 02 	mvhi r1,0x802                                  <== NOT EXECUTED
 8003f68:	38 21 42 14 	ori r1,r1,0x4214                               <== NOT EXECUTED
 8003f6c:	28 21 00 00 	lw r1,(r1+0)                                   <== NOT EXECUTED
 8003f70:	b4 22 08 00 	add r1,r1,r2                                   <== NOT EXECUTED
 8003f74:	40 23 00 01 	lbu r3,(r1+1)                                  <== NOT EXECUTED
 8003f78:	34 01 00 02 	mvi r1,2                                       <== NOT EXECUTED
 8003f7c:	20 63 00 03 	andi r3,r3,0x3                                 <== NOT EXECUTED
 8003f80:	5c 61 00 02 	bne r3,r1,8003f88 <oproc+0x120>                <== NOT EXECUTED
 8003f84:	34 42 ff e0 	addi r2,r2,-32                                 <== NOT EXECUTED
 8003f88:	33 82 00 0c 	sb (sp+12),r2                                  <== NOT EXECUTED
      if (!iscntrl(c))                                                
 8003f8c:	78 01 08 02 	mvhi r1,0x802                                  
 8003f90:	38 21 42 14 	ori r1,r1,0x4214                               
 8003f94:	43 82 00 0c 	lbu r2,(sp+12)                                 
 8003f98:	28 21 00 00 	lw r1,(r1+0)                                   
 8003f9c:	b4 22 08 00 	add r1,r1,r2                                   
 8003fa0:	40 21 00 01 	lbu r1,(r1+1)                                  
 8003fa4:	20 21 00 20 	andi r1,r1,0x20                                
 8003fa8:	5c 20 00 04 	bne r1,r0,8003fb8 <oproc+0x150>                <== NEVER TAKEN
        tty->column++;                                                
 8003fac:	29 61 00 28 	lw r1,(r11+40)                                 
 8003fb0:	34 21 00 01 	addi r1,r1,1                                   
 8003fb4:	59 61 00 28 	sw (r11+40),r1                                 
      break;                                                          
    }                                                                 
  }                                                                   
  rtems_termios_puts (&c, 1, tty);                                    
 8003fb8:	37 81 00 0c 	addi r1,sp,12                                  
 8003fbc:	34 02 00 01 	mvi r2,1                                       
 8003fc0:	b9 60 18 00 	mv r3,r11                                      
 8003fc4:	fb ff ff 53 	calli 8003d10 <rtems_termios_puts>             
}                                                                     
 8003fc8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003fcc:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8003fd0:	37 9c 00 0c 	addi sp,sp,12                                  
 8003fd4:	c3 a0 00 00 	ret                                            
                                                                      

080091fc <pipe_create>: * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) {
 80091fc:	37 9c ff d8 	addi sp,sp,-40                                 
 8009200:	5b 8b 00 18 	sw (sp+24),r11                                 
 8009204:	5b 8c 00 14 	sw (sp+20),r12                                 
 8009208:	5b 8d 00 10 	sw (sp+16),r13                                 
 800920c:	5b 8e 00 0c 	sw (sp+12),r14                                 
 8009210:	5b 8f 00 08 	sw (sp+8),r15                                  
 8009214:	5b 9d 00 04 	sw (sp+4),ra                                   
 8009218:	b8 20 70 00 	mv r14,r1                                      
  rtems_libio_t *iop;                                                 
  int err = 0;                                                        
                                                                      
  if (rtems_mkdir("/tmp", S_IRWXU | S_IRWXG | S_IRWXO) != 0)          
 800921c:	78 01 08 01 	mvhi r1,0x801                                  
 8009220:	38 21 cf 8c 	ori r1,r1,0xcf8c                               
 8009224:	34 02 01 ff 	mvi r2,511                                     
 8009228:	f8 00 06 11 	calli 800aa6c <rtems_mkdir>                    
 800922c:	b8 20 78 00 	mv r15,r1                                      
    return -1;                                                        
 8009230:	34 0d ff ff 	mvi r13,-1                                     
)                                                                     
{                                                                     
  rtems_libio_t *iop;                                                 
  int err = 0;                                                        
                                                                      
  if (rtems_mkdir("/tmp", S_IRWXU | S_IRWXG | S_IRWXO) != 0)          
 8009234:	5c 20 00 43 	bne r1,r0,8009340 <pipe_create+0x144>          <== NEVER TAKEN
    return -1;                                                        
                                                                      
  /* /tmp/.fifoXXXX */                                                
  char fifopath[15];                                                  
  memcpy(fifopath, "/tmp/.fifo", 10);                                 
 8009238:	78 02 08 01 	mvhi r2,0x801                                  
 800923c:	38 42 cf 94 	ori r2,r2,0xcf94                               
 8009240:	28 43 00 00 	lw r3,(r2+0)                                   
 8009244:	28 41 00 04 	lw r1,(r2+4)                                   
 8009248:	37 8b 00 1c 	addi r11,sp,28                                 
 800924c:	5b 83 00 1c 	sw (sp+28),r3                                  
 8009250:	59 61 00 04 	sw (r11+4),r1                                  
 8009254:	2c 41 00 08 	lhu r1,(r2+8)                                  
  sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);                   
 8009258:	78 02 08 01 	mvhi r2,0x801                                  
 800925c:	38 42 e6 b0 	ori r2,r2,0xe6b0                               
 8009260:	2c 43 00 00 	lhu r3,(r2+0)                                  
  if (rtems_mkdir("/tmp", S_IRWXU | S_IRWXG | S_IRWXO) != 0)          
    return -1;                                                        
                                                                      
  /* /tmp/.fifoXXXX */                                                
  char fifopath[15];                                                  
  memcpy(fifopath, "/tmp/.fifo", 10);                                 
 8009264:	0d 61 00 08 	sh (r11+8),r1                                  
  sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);                   
 8009268:	34 61 00 01 	addi r1,r3,1                                   
 800926c:	0c 41 00 00 	sh (r2+0),r1                                   
 8009270:	78 02 08 01 	mvhi r2,0x801                                  
 8009274:	38 42 cf a0 	ori r2,r2,0xcfa0                               
 8009278:	37 81 00 26 	addi r1,sp,38                                  
 800927c:	f8 00 11 6b 	calli 800d828 <sprintf>                        
                                                                      
  /* Try creating FIFO file until find an available file name */      
  while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) {                    
 8009280:	b9 60 08 00 	mv r1,r11                                      
 8009284:	34 02 01 80 	mvi r2,384                                     
 8009288:	f8 00 05 2e 	calli 800a740 <mkfifo>                         
 800928c:	b8 20 60 00 	mv r12,r1                                      
 8009290:	44 2f 00 03 	be r1,r15,800929c <pipe_create+0xa0>           
    if (errno != EEXIST){                                             
 8009294:	f8 00 0d ef 	calli 800ca50 <__errno>                        
 8009298:	e0 00 00 2a 	bi 8009340 <pipe_create+0x144>                 
    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);                 
 800929c:	b9 60 08 00 	mv r1,r11                                      
 80092a0:	34 02 40 00 	mvi r2,16384                                   
 80092a4:	fb ff e9 63 	calli 8003830 <open>                           
 80092a8:	59 c1 00 00 	sw (r14+0),r1                                  
  if (filsdes[0] < 0) {                                               
 80092ac:	4c 2c 00 05 	bge r1,r12,80092c0 <pipe_create+0xc4>          
    err = errno;                                                      
 80092b0:	f8 00 0d e8 	calli 800ca50 <__errno>                        
 80092b4:	28 2c 00 00 	lw r12,(r1+0)                                  
    /* 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);                                                 
 80092b8:	b9 60 08 00 	mv r1,r11                                      
 80092bc:	e0 00 00 1b 	bi 8009328 <pipe_create+0x12c>                 
  }                                                                   
  else {                                                              
  /* Reset open file to blocking mode */                              
    iop = rtems_libio_iop(filsdes[0]);                                
 80092c0:	78 02 08 01 	mvhi r2,0x801                                  
 80092c4:	38 42 e0 10 	ori r2,r2,0xe010                               
 80092c8:	28 44 00 00 	lw r4,(r2+0)                                   
 80092cc:	34 02 00 00 	mvi r2,0                                       
 80092d0:	50 24 00 07 	bgeu r1,r4,80092ec <pipe_create+0xf0>          <== NEVER TAKEN
 80092d4:	34 02 00 06 	mvi r2,6                                       
 80092d8:	78 0b 08 01 	mvhi r11,0x801                                 
 80092dc:	f8 00 48 e9 	calli 801b680 <__ashlsi3>                      
 80092e0:	39 6b e7 28 	ori r11,r11,0xe728                             
 80092e4:	29 62 00 00 	lw r2,(r11+0)                                  
 80092e8:	b4 41 10 00 	add r2,r2,r1                                   
    iop->flags &= ~LIBIO_FLAGS_NO_DELAY;                              
 80092ec:	28 43 00 18 	lw r3,(r2+24)                                  
 80092f0:	34 01 ff fe 	mvi r1,-2                                      
int pipe_create(                                                      
  int filsdes[2]                                                      
)                                                                     
{                                                                     
  rtems_libio_t *iop;                                                 
  int err = 0;                                                        
 80092f4:	34 0c 00 00 	mvi r12,0                                      
    unlink(fifopath);                                                 
  }                                                                   
  else {                                                              
  /* Reset open file to blocking mode */                              
    iop = rtems_libio_iop(filsdes[0]);                                
    iop->flags &= ~LIBIO_FLAGS_NO_DELAY;                              
 80092f8:	a0 61 08 00 	and r1,r3,r1                                   
 80092fc:	58 41 00 18 	sw (r2+24),r1                                  
                                                                      
    filsdes[1] = open(fifopath, O_WRONLY);                            
 8009300:	37 81 00 1c 	addi r1,sp,28                                  
 8009304:	34 02 00 01 	mvi r2,1                                       
 8009308:	fb ff e9 4a 	calli 8003830 <open>                           
 800930c:	59 c1 00 04 	sw (r14+4),r1                                  
                                                                      
    if (filsdes[1] < 0) {                                             
 8009310:	4c 20 00 05 	bge r1,r0,8009324 <pipe_create+0x128>          
    err = errno;                                                      
 8009314:	f8 00 0d cf 	calli 800ca50 <__errno>                        
 8009318:	28 2c 00 00 	lw r12,(r1+0)                                  
    close(filsdes[0]);                                                
 800931c:	29 c1 00 00 	lw r1,(r14+0)                                  
 8009320:	fb ff e4 94 	calli 8002570 <close>                          
    }                                                                 
  unlink(fifopath);                                                   
 8009324:	37 81 00 1c 	addi r1,sp,28                                  
 8009328:	fb ff ea 54 	calli 8003c78 <unlink>                         
  }                                                                   
  if(err != 0)                                                        
    rtems_set_errno_and_return_minus_one(err);                        
  return 0;                                                           
 800932c:	34 0d 00 00 	mvi r13,0                                      
    err = errno;                                                      
    close(filsdes[0]);                                                
    }                                                                 
  unlink(fifopath);                                                   
  }                                                                   
  if(err != 0)                                                        
 8009330:	45 80 00 04 	be r12,r0,8009340 <pipe_create+0x144>          
    rtems_set_errno_and_return_minus_one(err);                        
 8009334:	f8 00 0d c7 	calli 800ca50 <__errno>                        
 8009338:	58 2c 00 00 	sw (r1+0),r12                                  
 800933c:	34 0d ff ff 	mvi r13,-1                                     
  return 0;                                                           
}                                                                     
 8009340:	b9 a0 08 00 	mv r1,r13                                      
 8009344:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8009348:	2b 8b 00 18 	lw r11,(sp+24)                                 
 800934c:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8009350:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8009354:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8009358:	2b 8f 00 08 	lw r15,(sp+8)                                  
 800935c:	37 9c 00 28 	addi sp,sp,40                                  
 8009360:	c3 a0 00 00 	ret                                            
                                                                      

0800a8dc <pipe_ioctl>: pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) {
 800a8dc:	37 9c ff f4 	addi sp,sp,-12                                 
 800a8e0:	5b 8b 00 0c 	sw (sp+12),r11                                 
 800a8e4:	5b 8c 00 08 	sw (sp+8),r12                                  
 800a8e8:	5b 9d 00 04 	sw (sp+4),ra                                   
 800a8ec:	b8 60 60 00 	mv r12,r3                                      
  if (cmd == FIONREAD) {                                              
 800a8f0:	78 03 08 02 	mvhi r3,0x802                                  
 800a8f4:	38 63 06 54 	ori r3,r3,0x654                                
  pipe_control_t *pipe,                                               
  uint32_t        cmd,                                                
  void           *buffer,                                             
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
 800a8f8:	b8 20 58 00 	mv r11,r1                                      
  if (cmd == FIONREAD) {                                              
 800a8fc:	28 61 00 00 	lw r1,(r3+0)                                   
    *(unsigned int *)buffer = pipe->Length;                           
    PIPE_UNLOCK(pipe);                                                
    return 0;                                                         
  }                                                                   
                                                                      
  return -EINVAL;                                                     
 800a900:	34 04 ff ea 	mvi r4,-22                                     
  uint32_t        cmd,                                                
  void           *buffer,                                             
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
  if (cmd == FIONREAD) {                                              
 800a904:	5c 41 00 0e 	bne r2,r1,800a93c <pipe_ioctl+0x60>            
    if (buffer == NULL)                                               
      return -EFAULT;                                                 
 800a908:	34 04 ff f2 	mvi r4,-14                                     
  void           *buffer,                                             
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
  if (cmd == FIONREAD) {                                              
    if (buffer == NULL)                                               
 800a90c:	45 80 00 0c 	be r12,r0,800a93c <pipe_ioctl+0x60>            
      return -EFAULT;                                                 
                                                                      
    if (! PIPE_LOCK(pipe))                                            
 800a910:	29 61 00 28 	lw r1,(r11+40)                                 
 800a914:	34 02 00 00 	mvi r2,0                                       
 800a918:	34 03 00 00 	mvi r3,0                                       
 800a91c:	fb ff e9 a6 	calli 8004fb4 <rtems_semaphore_obtain>         
      return -EINTR;                                                  
 800a920:	34 04 ff fc 	mvi r4,-4                                      
{                                                                     
  if (cmd == FIONREAD) {                                              
    if (buffer == NULL)                                               
      return -EFAULT;                                                 
                                                                      
    if (! PIPE_LOCK(pipe))                                            
 800a924:	5c 20 00 06 	bne r1,r0,800a93c <pipe_ioctl+0x60>            <== NEVER TAKEN
      return -EINTR;                                                  
                                                                      
    /* Return length of pipe */                                       
    *(unsigned int *)buffer = pipe->Length;                           
 800a928:	29 61 00 0c 	lw r1,(r11+12)                                 
 800a92c:	59 81 00 00 	sw (r12+0),r1                                  
    PIPE_UNLOCK(pipe);                                                
 800a930:	29 61 00 28 	lw r1,(r11+40)                                 
 800a934:	fb ff e9 f0 	calli 80050f4 <rtems_semaphore_release>        
    return 0;                                                         
 800a938:	34 04 00 00 	mvi r4,0                                       
  }                                                                   
                                                                      
  return -EINVAL;                                                     
}                                                                     
 800a93c:	b8 80 08 00 	mv r1,r4                                       
 800a940:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800a944:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 800a948:	2b 8c 00 08 	lw r12,(sp+8)                                  
 800a94c:	37 9c 00 0c 	addi sp,sp,12                                  
 800a950:	c3 a0 00 00 	ret                                            
                                                                      

0800a54c <pipe_read>: pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) {
 800a54c:	37 9c ff d8 	addi sp,sp,-40                                 
 800a550:	5b 8b 00 24 	sw (sp+36),r11                                 
 800a554:	5b 8c 00 20 	sw (sp+32),r12                                 
 800a558:	5b 8d 00 1c 	sw (sp+28),r13                                 
 800a55c:	5b 8e 00 18 	sw (sp+24),r14                                 
 800a560:	5b 8f 00 14 	sw (sp+20),r15                                 
 800a564:	5b 90 00 10 	sw (sp+16),r16                                 
 800a568:	5b 91 00 0c 	sw (sp+12),r17                                 
 800a56c:	5b 92 00 08 	sw (sp+8),r18                                  
 800a570:	5b 9d 00 04 	sw (sp+4),ra                                   
 800a574:	b8 20 58 00 	mv r11,r1                                      
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
 800a578:	28 21 00 28 	lw r1,(r1+40)                                  
  pipe_control_t *pipe,                                               
  void           *buffer,                                             
  size_t          count,                                              
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
 800a57c:	b8 40 78 00 	mv r15,r2                                      
 800a580:	b8 60 80 00 	mv r16,r3                                      
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
 800a584:	34 02 00 00 	mvi r2,0                                       
 800a588:	34 03 00 00 	mvi r3,0                                       
  pipe_control_t *pipe,                                               
  void           *buffer,                                             
  size_t          count,                                              
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
 800a58c:	b8 80 88 00 	mv r17,r4                                      
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
 800a590:	fb ff ea 89 	calli 8004fb4 <rtems_semaphore_obtain>         
    return -EINTR;                                                    
 800a594:	34 0d ff fc 	mvi r13,-4                                     
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
 800a598:	34 0c 00 00 	mvi r12,0                                      
      }                                                               
                                                                      
      /* Wait until pipe is no more empty or no writer exists */      
      pipe->waitingReaders ++;                                        
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_READWAIT(pipe))                                      
 800a59c:	34 12 ff fc 	mvi r18,-4                                     
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
 800a5a0:	44 20 00 40 	be r1,r0,800a6a0 <pipe_read+0x154>             <== ALWAYS TAKEN
 800a5a4:	e0 00 00 49 	bi 800a6c8 <pipe_read+0x17c>                   <== NOT EXECUTED
    return -EINTR;                                                    
                                                                      
  while (read < count) {                                              
    while (PIPE_EMPTY(pipe)) {                                        
      /* Not an error */                                              
      if (pipe->Writers == 0)                                         
 800a5a8:	29 61 00 14 	lw r1,(r11+20)                                 
 800a5ac:	44 2d 00 3e 	be r1,r13,800a6a4 <pipe_read+0x158>            
        goto out_locked;                                              
                                                                      
      if (LIBIO_NODELAY(iop)) {                                       
 800a5b0:	2a 2d 00 18 	lw r13,(r17+24)                                
 800a5b4:	21 ad 00 01 	andi r13,r13,0x1                               
 800a5b8:	5d a0 00 3d 	bne r13,r0,800a6ac <pipe_read+0x160>           
        ret = -EAGAIN;                                                
        goto out_locked;                                              
      }                                                               
                                                                      
      /* Wait until pipe is no more empty or no writer exists */      
      pipe->waitingReaders ++;                                        
 800a5bc:	29 61 00 18 	lw r1,(r11+24)                                 
 800a5c0:	34 21 00 01 	addi r1,r1,1                                   
 800a5c4:	59 61 00 18 	sw (r11+24),r1                                 
      PIPE_UNLOCK(pipe);                                              
 800a5c8:	29 61 00 28 	lw r1,(r11+40)                                 
 800a5cc:	fb ff ea ca 	calli 80050f4 <rtems_semaphore_release>        
      if (! PIPE_READWAIT(pipe))                                      
 800a5d0:	29 61 00 2c 	lw r1,(r11+44)                                 
 800a5d4:	34 02 00 00 	mvi r2,0                                       
 800a5d8:	f8 00 04 3a 	calli 800b6c0 <rtems_barrier_wait>             
 800a5dc:	fc 2d 68 00 	cmpne r13,r1,r13                               
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
 800a5e0:	29 61 00 28 	lw r1,(r11+40)                                 
      }                                                               
                                                                      
      /* Wait until pipe is no more empty or no writer exists */      
      pipe->waitingReaders ++;                                        
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_READWAIT(pipe))                                      
 800a5e4:	c8 0d 68 00 	sub r13,r0,r13                                 
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
 800a5e8:	34 02 00 00 	mvi r2,0                                       
 800a5ec:	34 03 00 00 	mvi r3,0                                       
      }                                                               
                                                                      
      /* Wait until pipe is no more empty or no writer exists */      
      pipe->waitingReaders ++;                                        
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_READWAIT(pipe))                                      
 800a5f0:	a1 b2 68 00 	and r13,r13,r18                                
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
 800a5f4:	fb ff ea 70 	calli 8004fb4 <rtems_semaphore_obtain>         
 800a5f8:	5c 20 00 31 	bne r1,r0,800a6bc <pipe_read+0x170>            <== NEVER TAKEN
        /* WARN waitingReaders not restored! */                       
        ret = -EINTR;                                                 
        goto out_nolock;                                              
      }                                                               
      pipe->waitingReaders --;                                        
 800a5fc:	29 62 00 18 	lw r2,(r11+24)                                 
 800a600:	34 42 ff ff 	addi r2,r2,-1                                  
 800a604:	59 62 00 18 	sw (r11+24),r2                                 
      if (ret != 0)                                                   
 800a608:	5d a1 00 2a 	bne r13,r1,800a6b0 <pipe_read+0x164>           <== NEVER TAKEN
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    return -EINTR;                                                    
                                                                      
  while (read < count) {                                              
    while (PIPE_EMPTY(pipe)) {                                        
 800a60c:	29 6d 00 0c 	lw r13,(r11+12)                                
 800a610:	45 a0 ff e6 	be r13,r0,800a5a8 <pipe_read+0x5c>             
      if (ret != 0)                                                   
        goto out_locked;                                              
    }                                                                 
                                                                      
    /* Read chunk bytes */                                            
    chunk = MIN(count - read,  pipe->Length);                         
 800a614:	ca 0c 08 00 	sub r1,r16,r12                                 
 800a618:	50 2d 00 02 	bgeu r1,r13,800a620 <pipe_read+0xd4>           
 800a61c:	b8 20 68 00 	mv r13,r1                                      
    chunk1 = pipe->Size - pipe->Start;                                
 800a620:	29 65 00 08 	lw r5,(r11+8)                                  
 800a624:	29 6e 00 04 	lw r14,(r11+4)                                 
 800a628:	29 66 00 00 	lw r6,(r11+0)                                  
 800a62c:	b5 ec 08 00 	add r1,r15,r12                                 
 800a630:	c9 c5 70 00 	sub r14,r14,r5                                 
    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);       
 800a634:	b4 c5 10 00 	add r2,r6,r5                                   
 800a638:	b9 a0 18 00 	mv r3,r13                                      
    }                                                                 
                                                                      
    /* Read chunk bytes */                                            
    chunk = MIN(count - read,  pipe->Length);                         
    chunk1 = pipe->Size - pipe->Start;                                
    if (chunk > chunk1) {                                             
 800a63c:	4d cd 00 08 	bge r14,r13,800a65c <pipe_read+0x110>          
      memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1);      
 800a640:	b4 c5 10 00 	add r2,r6,r5                                   
 800a644:	b9 c0 18 00 	mv r3,r14                                      
 800a648:	f8 00 0f b1 	calli 800e50c <memcpy>                         
      memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1);   
 800a64c:	29 62 00 00 	lw r2,(r11+0)                                  
 800a650:	b5 8e 08 00 	add r1,r12,r14                                 
 800a654:	b5 e1 08 00 	add r1,r15,r1                                  
 800a658:	c9 ae 18 00 	sub r3,r13,r14                                 
    }                                                                 
    else                                                              
      memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);       
 800a65c:	f8 00 0f ac 	calli 800e50c <memcpy>                         
                                                                      
    pipe->Start += chunk;                                             
 800a660:	29 61 00 08 	lw r1,(r11+8)                                  
    pipe->Start %= pipe->Size;                                        
 800a664:	29 62 00 04 	lw r2,(r11+4)                                  
 800a668:	b5 a1 08 00 	add r1,r13,r1                                  
 800a66c:	f8 00 51 89 	calli 801ec90 <__umodsi3>                      
 800a670:	59 61 00 08 	sw (r11+8),r1                                  
    pipe->Length -= chunk;                                            
 800a674:	29 61 00 0c 	lw r1,(r11+12)                                 
 800a678:	c8 2d 08 00 	sub r1,r1,r13                                  
 800a67c:	59 61 00 0c 	sw (r11+12),r1                                 
    /* For buffering optimization */                                  
    if (PIPE_EMPTY(pipe))                                             
 800a680:	5c 20 00 02 	bne r1,r0,800a688 <pipe_read+0x13c>            
      pipe->Start = 0;                                                
 800a684:	59 60 00 08 	sw (r11+8),r0                                  
                                                                      
    if (pipe->waitingWriters > 0)                                     
 800a688:	29 61 00 1c 	lw r1,(r11+28)                                 
 800a68c:	44 20 00 04 	be r1,r0,800a69c <pipe_read+0x150>             
      PIPE_WAKEUPWRITERS(pipe);                                       
 800a690:	29 61 00 30 	lw r1,(r11+48)                                 
 800a694:	37 82 00 28 	addi r2,sp,40                                  
 800a698:	f8 00 03 ed 	calli 800b64c <rtems_barrier_release>          
    read += chunk;                                                    
 800a69c:	b5 8d 60 00 	add r12,r12,r13                                
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    return -EINTR;                                                    
                                                                      
  while (read < count) {                                              
 800a6a0:	56 0c ff db 	bgu r16,r12,800a60c <pipe_read+0xc0>           
    while (PIPE_EMPTY(pipe)) {                                        
      /* Not an error */                                              
      if (pipe->Writers == 0)                                         
 800a6a4:	34 0d 00 00 	mvi r13,0                                      
 800a6a8:	e0 00 00 02 	bi 800a6b0 <pipe_read+0x164>                   
        goto out_locked;                                              
                                                                      
      if (LIBIO_NODELAY(iop)) {                                       
        ret = -EAGAIN;                                                
 800a6ac:	34 0d ff f5 	mvi r13,-11                                    
      PIPE_WAKEUPWRITERS(pipe);                                       
    read += chunk;                                                    
  }                                                                   
                                                                      
out_locked:                                                           
  PIPE_UNLOCK(pipe);                                                  
 800a6b0:	29 61 00 28 	lw r1,(r11+40)                                 
 800a6b4:	fb ff ea 90 	calli 80050f4 <rtems_semaphore_release>        
 800a6b8:	e0 00 00 02 	bi 800a6c0 <pipe_read+0x174>                   
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_READWAIT(pipe))                                      
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
        /* WARN waitingReaders not restored! */                       
        ret = -EINTR;                                                 
 800a6bc:	34 0d ff fc 	mvi r13,-4                                     <== NOT EXECUTED
                                                                      
out_locked:                                                           
  PIPE_UNLOCK(pipe);                                                  
                                                                      
out_nolock:                                                           
  if (read > 0)                                                       
 800a6c0:	4c 0c 00 02 	bge r0,r12,800a6c8 <pipe_read+0x17c>           
 800a6c4:	b9 80 68 00 	mv r13,r12                                     
    return read;                                                      
  return ret;                                                         
}                                                                     
 800a6c8:	b9 a0 08 00 	mv r1,r13                                      
 800a6cc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800a6d0:	2b 8b 00 24 	lw r11,(sp+36)                                 
 800a6d4:	2b 8c 00 20 	lw r12,(sp+32)                                 
 800a6d8:	2b 8d 00 1c 	lw r13,(sp+28)                                 
 800a6dc:	2b 8e 00 18 	lw r14,(sp+24)                                 
 800a6e0:	2b 8f 00 14 	lw r15,(sp+20)                                 
 800a6e4:	2b 90 00 10 	lw r16,(sp+16)                                 
 800a6e8:	2b 91 00 0c 	lw r17,(sp+12)                                 
 800a6ec:	2b 92 00 08 	lw r18,(sp+8)                                  
 800a6f0:	37 9c 00 28 	addi sp,sp,40                                  
 800a6f4:	c3 a0 00 00 	ret                                            
                                                                      

0800a0c4 <pipe_release>: */ void pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) {
 800a0c4:	37 9c ff ec 	addi sp,sp,-20                                 
 800a0c8:	5b 8b 00 10 	sw (sp+16),r11                                 
 800a0cc:	5b 8c 00 0c 	sw (sp+12),r12                                 
 800a0d0:	5b 8d 00 08 	sw (sp+8),r13                                  
 800a0d4:	5b 9d 00 04 	sw (sp+4),ra                                   
 800a0d8:	b8 20 68 00 	mv r13,r1                                      
  pipe_control_t *pipe = *pipep;                                      
 800a0dc:	28 2b 00 00 	lw r11,(r1+0)                                  
    /* WARN pipe not released! */                                     
    if (!PIPE_LOCK(pipe))                                             
      rtems_fatal_error_occurred(0xdeadbeef);                         
  #endif                                                              
                                                                      
  mode = LIBIO_ACCMODE(iop);                                          
 800a0e0:	28 41 00 18 	lw r1,(r2+24)                                  
 800a0e4:	20 2c 00 06 	andi r12,r1,0x6                                
  if (mode & LIBIO_FLAGS_READ)                                        
 800a0e8:	20 21 00 02 	andi r1,r1,0x2                                 
 800a0ec:	44 20 00 04 	be r1,r0,800a0fc <pipe_release+0x38>           
     pipe->Readers --;                                                
 800a0f0:	29 61 00 10 	lw r1,(r11+16)                                 
 800a0f4:	34 21 ff ff 	addi r1,r1,-1                                  
 800a0f8:	59 61 00 10 	sw (r11+16),r1                                 
  if (mode & LIBIO_FLAGS_WRITE)                                       
 800a0fc:	21 81 00 04 	andi r1,r12,0x4                                
 800a100:	44 20 00 04 	be r1,r0,800a110 <pipe_release+0x4c>           
     pipe->Writers --;                                                
 800a104:	29 61 00 14 	lw r1,(r11+20)                                 
 800a108:	34 21 ff ff 	addi r1,r1,-1                                  
 800a10c:	59 61 00 14 	sw (r11+20),r1                                 
                                                                      
  PIPE_UNLOCK(pipe);                                                  
 800a110:	29 61 00 28 	lw r1,(r11+40)                                 
 800a114:	fb ff eb f8 	calli 80050f4 <rtems_semaphore_release>        
                                                                      
  if (pipe->Readers == 0 && pipe->Writers == 0) {                     
 800a118:	29 62 00 10 	lw r2,(r11+16)                                 
 800a11c:	5c 40 00 07 	bne r2,r0,800a138 <pipe_release+0x74>          
 800a120:	29 61 00 14 	lw r1,(r11+20)                                 
 800a124:	5c 22 00 05 	bne r1,r2,800a138 <pipe_release+0x74>          
#if 0                                                                 
    /* To delete an anonymous pipe file when all users closed it */   
    if (pipe->Anonymous)                                              
      delfile = TRUE;                                                 
#endif                                                                
    pipe_free(pipe);                                                  
 800a128:	b9 60 08 00 	mv r1,r11                                      
 800a12c:	fb ff ff d4 	calli 800a07c <pipe_free>                      
    *pipep = NULL;                                                    
 800a130:	59 a0 00 00 	sw (r13+0),r0                                  
 800a134:	e0 00 00 0f 	bi 800a170 <pipe_release+0xac>                 
  }                                                                   
  else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE)           
 800a138:	7d 81 00 04 	cmpnei r1,r12,4                                
 800a13c:	64 42 00 00 	cmpei r2,r2,0                                  
 800a140:	a0 22 10 00 	and r2,r1,r2                                   
 800a144:	44 40 00 03 	be r2,r0,800a150 <pipe_release+0x8c>           
    /* Notify waiting Writers that all their partners left */         
    PIPE_WAKEUPWRITERS(pipe);                                         
 800a148:	29 61 00 30 	lw r1,(r11+48)                                 
 800a14c:	e0 00 00 07 	bi 800a168 <pipe_release+0xa4>                 
  else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ)            
 800a150:	29 61 00 14 	lw r1,(r11+20)                                 
 800a154:	7d 8c 00 02 	cmpnei r12,r12,2                               
 800a158:	64 21 00 00 	cmpei r1,r1,0                                  
 800a15c:	a1 81 60 00 	and r12,r12,r1                                 
 800a160:	45 82 00 04 	be r12,r2,800a170 <pipe_release+0xac>          <== NEVER TAKEN
    PIPE_WAKEUPREADERS(pipe);                                         
 800a164:	29 61 00 2c 	lw r1,(r11+44)                                 
 800a168:	37 82 00 14 	addi r2,sp,20                                  
 800a16c:	f8 00 05 38 	calli 800b64c <rtems_barrier_release>          
                                                                      
  pipe_unlock();                                                      
 800a170:	fb ff ff ba 	calli 800a058 <pipe_unlock>                    
  iop->flags &= ~LIBIO_FLAGS_OPEN;                                    
  if(iop->pathinfo.ops->unlink_h(&iop->pathinfo))                     
    return;                                                           
#endif                                                                
                                                                      
}                                                                     
 800a174:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800a178:	2b 8b 00 10 	lw r11,(sp+16)                                 
 800a17c:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 800a180:	2b 8d 00 08 	lw r13,(sp+8)                                  
 800a184:	37 9c 00 14 	addi sp,sp,20                                  
 800a188:	c3 a0 00 00 	ret                                            
                                                                      

0800a6f8 <pipe_write>: pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) {
 800a6f8:	37 9c ff d4 	addi sp,sp,-44                                 
 800a6fc:	5b 8b 00 28 	sw (sp+40),r11                                 
 800a700:	5b 8c 00 24 	sw (sp+36),r12                                 
 800a704:	5b 8d 00 20 	sw (sp+32),r13                                 
 800a708:	5b 8e 00 1c 	sw (sp+28),r14                                 
 800a70c:	5b 8f 00 18 	sw (sp+24),r15                                 
 800a710:	5b 90 00 14 	sw (sp+20),r16                                 
 800a714:	5b 91 00 10 	sw (sp+16),r17                                 
 800a718:	5b 92 00 0c 	sw (sp+12),r18                                 
 800a71c:	5b 93 00 08 	sw (sp+8),r19                                  
 800a720:	5b 9d 00 04 	sw (sp+4),ra                                   
  int chunk, chunk1, written = 0, ret = 0;                            
                                                                      
  /* Write nothing */                                                 
  if (count == 0)                                                     
    return 0;                                                         
 800a724:	34 0d 00 00 	mvi r13,0                                      
  pipe_control_t *pipe,                                               
  const void     *buffer,                                             
  size_t          count,                                              
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
 800a728:	b8 20 58 00 	mv r11,r1                                      
 800a72c:	b8 40 88 00 	mv r17,r2                                      
 800a730:	b8 60 70 00 	mv r14,r3                                      
 800a734:	b8 80 90 00 	mv r18,r4                                      
  int chunk, chunk1, written = 0, ret = 0;                            
                                                                      
  /* Write nothing */                                                 
  if (count == 0)                                                     
 800a738:	44 60 00 5c 	be r3,r0,800a8a8 <pipe_write+0x1b0>            <== NEVER TAKEN
    return 0;                                                         
                                                                      
  if (! PIPE_LOCK(pipe))                                              
 800a73c:	28 21 00 28 	lw r1,(r1+40)                                  
 800a740:	34 02 00 00 	mvi r2,0                                       
 800a744:	34 03 00 00 	mvi r3,0                                       
 800a748:	fb ff ea 1b 	calli 8004fb4 <rtems_semaphore_obtain>         
    return -EINTR;                                                    
 800a74c:	34 0d ff fc 	mvi r13,-4                                     
                                                                      
  /* Write nothing */                                                 
  if (count == 0)                                                     
    return 0;                                                         
                                                                      
  if (! PIPE_LOCK(pipe))                                              
 800a750:	5c 20 00 56 	bne r1,r0,800a8a8 <pipe_write+0x1b0>           <== NEVER TAKEN
    return -EINTR;                                                    
                                                                      
  if (pipe->Readers == 0) {                                           
 800a754:	29 62 00 10 	lw r2,(r11+16)                                 
 800a758:	44 41 00 48 	be r2,r1,800a878 <pipe_write+0x180>            
    ret = -EPIPE;                                                     
    goto out_locked;                                                  
  }                                                                   
                                                                      
  /* Write of PIPE_BUF bytes or less shall not be interleaved */      
  chunk = count <= pipe->Size ? count : 1;                            
 800a75c:	29 61 00 04 	lw r1,(r11+4)                                  
 800a760:	34 10 00 01 	mvi r16,1                                      
 800a764:	55 c1 00 02 	bgu r14,r1,800a76c <pipe_write+0x74>           <== NEVER TAKEN
 800a768:	b9 c0 80 00 	mv r16,r14                                     
                                                                      
      /* Wait until there is chunk bytes space or no reader exists */ 
      pipe->waitingWriters ++;                                        
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_WRITEWAIT(pipe))                                     
        ret = -EINTR;                                                 
 800a76c:	34 0c 00 00 	mvi r12,0                                      
      }                                                               
                                                                      
      /* Wait until there is chunk bytes space or no reader exists */ 
      pipe->waitingWriters ++;                                        
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_WRITEWAIT(pipe))                                     
 800a770:	34 13 ff fc 	mvi r19,-4                                     
 800a774:	e0 00 00 3e 	bi 800a86c <pipe_write+0x174>                  
  /* Write of PIPE_BUF bytes or less shall not be interleaved */      
  chunk = count <= pipe->Size ? count : 1;                            
                                                                      
  while (written < count) {                                           
    while (PIPE_SPACE(pipe) < chunk) {                                
      if (LIBIO_NODELAY(iop)) {                                       
 800a778:	2a 4d 00 18 	lw r13,(r18+24)                                
 800a77c:	21 ad 00 01 	andi r13,r13,0x1                               
 800a780:	5d a0 00 41 	bne r13,r0,800a884 <pipe_write+0x18c>          
        ret = -EAGAIN;                                                
        goto out_locked;                                              
      }                                                               
                                                                      
      /* Wait until there is chunk bytes space or no reader exists */ 
      pipe->waitingWriters ++;                                        
 800a784:	29 61 00 1c 	lw r1,(r11+28)                                 
 800a788:	34 21 00 01 	addi r1,r1,1                                   
 800a78c:	59 61 00 1c 	sw (r11+28),r1                                 
      PIPE_UNLOCK(pipe);                                              
 800a790:	29 61 00 28 	lw r1,(r11+40)                                 
 800a794:	fb ff ea 58 	calli 80050f4 <rtems_semaphore_release>        
      if (! PIPE_WRITEWAIT(pipe))                                     
 800a798:	29 61 00 30 	lw r1,(r11+48)                                 
 800a79c:	34 02 00 00 	mvi r2,0                                       
 800a7a0:	f8 00 03 c8 	calli 800b6c0 <rtems_barrier_wait>             
 800a7a4:	fc 2d 68 00 	cmpne r13,r1,r13                               
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
 800a7a8:	29 61 00 28 	lw r1,(r11+40)                                 
      }                                                               
                                                                      
      /* Wait until there is chunk bytes space or no reader exists */ 
      pipe->waitingWriters ++;                                        
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_WRITEWAIT(pipe))                                     
 800a7ac:	c8 0d 68 00 	sub r13,r0,r13                                 
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
 800a7b0:	34 02 00 00 	mvi r2,0                                       
 800a7b4:	34 03 00 00 	mvi r3,0                                       
      }                                                               
                                                                      
      /* Wait until there is chunk bytes space or no reader exists */ 
      pipe->waitingWriters ++;                                        
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_WRITEWAIT(pipe))                                     
 800a7b8:	a1 b3 68 00 	and r13,r13,r19                                
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
 800a7bc:	fb ff e9 fe 	calli 8004fb4 <rtems_semaphore_obtain>         
 800a7c0:	5c 20 00 37 	bne r1,r0,800a89c <pipe_write+0x1a4>           <== NEVER TAKEN
        /* WARN waitingWriters not restored! */                       
        ret = -EINTR;                                                 
        goto out_nolock;                                              
      }                                                               
      pipe->waitingWriters --;                                        
 800a7c4:	29 62 00 1c 	lw r2,(r11+28)                                 
 800a7c8:	34 42 ff ff 	addi r2,r2,-1                                  
 800a7cc:	59 62 00 1c 	sw (r11+28),r2                                 
      if (ret != 0)                                                   
 800a7d0:	5d a1 00 30 	bne r13,r1,800a890 <pipe_write+0x198>          <== NEVER TAKEN
        goto out_locked;                                              
                                                                      
      if (pipe->Readers == 0) {                                       
 800a7d4:	29 61 00 10 	lw r1,(r11+16)                                 
 800a7d8:	44 2d 00 2d 	be r1,r13,800a88c <pipe_write+0x194>           <== NEVER TAKEN
                                                                      
  /* 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) {                                
 800a7dc:	29 6f 00 04 	lw r15,(r11+4)                                 
 800a7e0:	29 61 00 0c 	lw r1,(r11+12)                                 
 800a7e4:	c9 e1 68 00 	sub r13,r15,r1                                 
 800a7e8:	56 0d ff e4 	bgu r16,r13,800a778 <pipe_write+0x80>          
        ret = -EPIPE;                                                 
        goto out_locked;                                              
      }                                                               
    }                                                                 
                                                                      
    chunk = MIN(count - written, PIPE_SPACE(pipe));                   
 800a7ec:	c9 cc 10 00 	sub r2,r14,r12                                 
 800a7f0:	50 4d 00 02 	bgeu r2,r13,800a7f8 <pipe_write+0x100>         
 800a7f4:	b8 40 68 00 	mv r13,r2                                      
    chunk1 = pipe->Size - PIPE_WSTART(pipe);                          
 800a7f8:	29 62 00 08 	lw r2,(r11+8)                                  
 800a7fc:	b4 22 08 00 	add r1,r1,r2                                   
 800a800:	b9 e0 10 00 	mv r2,r15                                      
 800a804:	f8 00 51 23 	calli 801ec90 <__umodsi3>                      
 800a808:	c9 e1 78 00 	sub r15,r15,r1                                 
 800a80c:	29 63 00 00 	lw r3,(r11+0)                                  
 800a810:	b6 2c 10 00 	add r2,r17,r12                                 
    if (chunk > chunk1) {                                             
 800a814:	4d ed 00 09 	bge r15,r13,800a838 <pipe_write+0x140>         
      memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1);
 800a818:	b4 61 08 00 	add r1,r3,r1                                   
 800a81c:	b9 e0 18 00 	mv r3,r15                                      
 800a820:	f8 00 0f 3b 	calli 800e50c <memcpy>                         
      memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1);
 800a824:	b5 ec 10 00 	add r2,r15,r12                                 
 800a828:	29 61 00 00 	lw r1,(r11+0)                                  
 800a82c:	b6 22 10 00 	add r2,r17,r2                                  
 800a830:	c9 af 18 00 	sub r3,r13,r15                                 
 800a834:	e0 00 00 03 	bi 800a840 <pipe_write+0x148>                  
    }                                                                 
    else                                                              
      memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk);
 800a838:	b4 61 08 00 	add r1,r3,r1                                   
 800a83c:	b9 a0 18 00 	mv r3,r13                                      
 800a840:	f8 00 0f 33 	calli 800e50c <memcpy>                         
                                                                      
    pipe->Length += chunk;                                            
 800a844:	29 61 00 0c 	lw r1,(r11+12)                                 
 800a848:	b4 2d 08 00 	add r1,r1,r13                                  
 800a84c:	59 61 00 0c 	sw (r11+12),r1                                 
    if (pipe->waitingReaders > 0)                                     
 800a850:	29 61 00 18 	lw r1,(r11+24)                                 
 800a854:	44 20 00 04 	be r1,r0,800a864 <pipe_write+0x16c>            
      PIPE_WAKEUPREADERS(pipe);                                       
 800a858:	29 61 00 2c 	lw r1,(r11+44)                                 
 800a85c:	37 82 00 2c 	addi r2,sp,44                                  
 800a860:	f8 00 03 7b 	calli 800b64c <rtems_barrier_release>          
    written += chunk;                                                 
 800a864:	b5 8d 60 00 	add r12,r12,r13                                
    /* Write of more than PIPE_BUF bytes can be interleaved */        
    chunk = 1;                                                        
 800a868:	34 10 00 01 	mvi r16,1                                      
  }                                                                   
                                                                      
  /* Write of PIPE_BUF bytes or less shall not be interleaved */      
  chunk = count <= pipe->Size ? count : 1;                            
                                                                      
  while (written < count) {                                           
 800a86c:	55 cc ff dc 	bgu r14,r12,800a7dc <pipe_write+0xe4>          
 800a870:	34 0d 00 00 	mvi r13,0                                      
 800a874:	e0 00 00 07 	bi 800a890 <pipe_write+0x198>                  
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    return -EINTR;                                                    
                                                                      
  if (pipe->Readers == 0) {                                           
    ret = -EPIPE;                                                     
 800a878:	34 0d ff e0 	mvi r13,-32                                    
  const void     *buffer,                                             
  size_t          count,                                              
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
  int chunk, chunk1, written = 0, ret = 0;                            
 800a87c:	34 0c 00 00 	mvi r12,0                                      
 800a880:	e0 00 00 04 	bi 800a890 <pipe_write+0x198>                  
  chunk = count <= pipe->Size ? count : 1;                            
                                                                      
  while (written < count) {                                           
    while (PIPE_SPACE(pipe) < chunk) {                                
      if (LIBIO_NODELAY(iop)) {                                       
        ret = -EAGAIN;                                                
 800a884:	34 0d ff f5 	mvi r13,-11                                    
 800a888:	e0 00 00 02 	bi 800a890 <pipe_write+0x198>                  
      pipe->waitingWriters --;                                        
      if (ret != 0)                                                   
        goto out_locked;                                              
                                                                      
      if (pipe->Readers == 0) {                                       
        ret = -EPIPE;                                                 
 800a88c:	34 0d ff e0 	mvi r13,-32                                    <== NOT EXECUTED
    /* Write of more than PIPE_BUF bytes can be interleaved */        
    chunk = 1;                                                        
  }                                                                   
                                                                      
out_locked:                                                           
  PIPE_UNLOCK(pipe);                                                  
 800a890:	29 61 00 28 	lw r1,(r11+40)                                 
 800a894:	fb ff ea 18 	calli 80050f4 <rtems_semaphore_release>        
 800a898:	e0 00 00 02 	bi 800a8a0 <pipe_write+0x1a8>                  
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_WRITEWAIT(pipe))                                     
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
        /* WARN waitingWriters not restored! */                       
        ret = -EINTR;                                                 
 800a89c:	34 0d ff fc 	mvi r13,-4                                     <== NOT EXECUTED
  /* Signal SIGPIPE */                                                
  if (ret == -EPIPE)                                                  
    kill(getpid(), SIGPIPE);                                          
#endif                                                                
                                                                      
  if (written > 0)                                                    
 800a8a0:	4c 0c 00 02 	bge r0,r12,800a8a8 <pipe_write+0x1b0>          
 800a8a4:	b9 80 68 00 	mv r13,r12                                     
    return written;                                                   
  return ret;                                                         
}                                                                     
 800a8a8:	b9 a0 08 00 	mv r1,r13                                      
 800a8ac:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800a8b0:	2b 8b 00 28 	lw r11,(sp+40)                                 
 800a8b4:	2b 8c 00 24 	lw r12,(sp+36)                                 
 800a8b8:	2b 8d 00 20 	lw r13,(sp+32)                                 
 800a8bc:	2b 8e 00 1c 	lw r14,(sp+28)                                 
 800a8c0:	2b 8f 00 18 	lw r15,(sp+24)                                 
 800a8c4:	2b 90 00 14 	lw r16,(sp+20)                                 
 800a8c8:	2b 91 00 10 	lw r17,(sp+16)                                 
 800a8cc:	2b 92 00 0c 	lw r18,(sp+12)                                 
 800a8d0:	2b 93 00 08 	lw r19,(sp+8)                                  
 800a8d4:	37 9c 00 2c 	addi sp,sp,44                                  
 800a8d8:	c3 a0 00 00 	ret                                            
                                                                      

0801102c <read>: ssize_t read( int fd, void *buffer, size_t count ) {
 801102c:	37 9c ff ec 	addi sp,sp,-20                                 
 8011030:	5b 8b 00 10 	sw (sp+16),r11                                 
 8011034:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8011038:	5b 8d 00 08 	sw (sp+8),r13                                  
 801103c:	5b 9d 00 04 	sw (sp+4),ra                                   
  ssize_t      rc;                                                    
  rtems_libio_t *iop;                                                 
                                                                      
  rtems_libio_check_fd( fd );                                         
 8011040:	78 04 08 01 	mvhi r4,0x801                                  
 8011044:	38 84 30 10 	ori r4,r4,0x3010                               
ssize_t read(                                                         
  int         fd,                                                     
  void       *buffer,                                                 
  size_t      count                                                   
)                                                                     
{                                                                     
 8011048:	b8 40 68 00 	mv r13,r2                                      
  ssize_t      rc;                                                    
  rtems_libio_t *iop;                                                 
                                                                      
  rtems_libio_check_fd( fd );                                         
 801104c:	28 82 00 00 	lw r2,(r4+0)                                   
 8011050:	54 41 00 02 	bgu r2,r1,8011058 <read+0x2c>                  <== ALWAYS TAKEN
 8011054:	e0 00 00 0c 	bi 8011084 <read+0x58>                         <== NOT EXECUTED
  iop = rtems_libio_iop( fd );                                        
 8011058:	78 0b 08 01 	mvhi r11,0x801                                 
 801105c:	34 02 00 06 	mvi r2,6                                       
 8011060:	39 6b 37 10 	ori r11,r11,0x3710                             
 8011064:	5b 83 00 14 	sw (sp+20),r3                                  
 8011068:	fb ff fe 08 	calli 8010888 <__ashlsi3>                      
 801106c:	29 6b 00 00 	lw r11,(r11+0)                                 
  rtems_libio_check_is_open( iop );                                   
 8011070:	2b 83 00 14 	lw r3,(sp+20)                                  
{                                                                     
  ssize_t      rc;                                                    
  rtems_libio_t *iop;                                                 
                                                                      
  rtems_libio_check_fd( fd );                                         
  iop = rtems_libio_iop( fd );                                        
 8011074:	b5 61 58 00 	add r11,r11,r1                                 
  rtems_libio_check_is_open( iop );                                   
 8011078:	29 61 00 18 	lw r1,(r11+24)                                 
 801107c:	20 22 01 00 	andi r2,r1,0x100                               
 8011080:	5c 40 00 04 	bne r2,r0,8011090 <read+0x64>                  
 8011084:	fb ff e8 c3 	calli 800b390 <__errno>                        
 8011088:	34 02 00 09 	mvi r2,9                                       
 801108c:	e0 00 00 08 	bi 80110ac <read+0x80>                         
  rtems_libio_check_buffer( buffer );                                 
 8011090:	45 a0 00 05 	be r13,r0,80110a4 <read+0x78>                  <== NEVER TAKEN
  rtems_libio_check_count( count );                                   
 8011094:	34 0c 00 00 	mvi r12,0                                      
 8011098:	44 60 00 19 	be r3,r0,80110fc <read+0xd0>                   
  rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ );             
 801109c:	20 21 00 02 	andi r1,r1,0x2                                 
 80110a0:	5c 20 00 06 	bne r1,r0,80110b8 <read+0x8c>                  
 80110a4:	fb ff e8 bb 	calli 800b390 <__errno>                        
 80110a8:	34 02 00 16 	mvi r2,22                                      
 80110ac:	58 22 00 00 	sw (r1+0),r2                                   
 80110b0:	34 0c ff ff 	mvi r12,-1                                     
 80110b4:	e0 00 00 12 	bi 80110fc <read+0xd0>                         
                                                                      
  /*                                                                  
   *  Now process the read().                                         
   */                                                                 
  rc = (*iop->pathinfo.handlers->read_h)( iop, buffer, count );       
 80110b8:	29 61 00 24 	lw r1,(r11+36)                                 
 80110bc:	b9 a0 10 00 	mv r2,r13                                      
 80110c0:	28 24 00 08 	lw r4,(r1+8)                                   
 80110c4:	b9 60 08 00 	mv r1,r11                                      
 80110c8:	d8 80 00 00 	call r4                                        
 80110cc:	b8 20 60 00 	mv r12,r1                                      
                                                                      
  if ( rc > 0 )                                                       
 80110d0:	4c 01 00 0b 	bge r0,r1,80110fc <read+0xd0>                  
    iop->offset += rc;                                                
 80110d4:	34 02 00 1f 	mvi r2,31                                      
 80110d8:	fb ff fe 13 	calli 8010924 <__ashrsi3>                      
 80110dc:	29 62 00 14 	lw r2,(r11+20)                                 
 80110e0:	29 64 00 10 	lw r4,(r11+16)                                 
 80110e4:	b5 82 10 00 	add r2,r12,r2                                  
 80110e8:	f5 82 18 00 	cmpgu r3,r12,r2                                
 80110ec:	b4 24 08 00 	add r1,r1,r4                                   
 80110f0:	b4 61 08 00 	add r1,r3,r1                                   
 80110f4:	59 61 00 10 	sw (r11+16),r1                                 
 80110f8:	59 62 00 14 	sw (r11+20),r2                                 
                                                                      
  return rc;                                                          
}                                                                     
 80110fc:	b9 80 08 00 	mv r1,r12                                      
 8011100:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8011104:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8011108:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 801110c:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8011110:	37 9c 00 14 	addi sp,sp,20                                  
 8011114:	c3 a0 00 00 	ret                                            
                                                                      

08004dc4 <readlink>: ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) {
 8004dc4:	37 9c ff d8 	addi sp,sp,-40                                 
 8004dc8:	5b 8b 00 14 	sw (sp+20),r11                                 
 8004dcc:	5b 8c 00 10 	sw (sp+16),r12                                 
 8004dd0:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8004dd4:	5b 8e 00 08 	sw (sp+8),r14                                  
 8004dd8:	5b 9d 00 04 	sw (sp+4),ra                                   
 8004ddc:	b8 20 60 00 	mv r12,r1                                      
 8004de0:	b8 40 68 00 	mv r13,r2                                      
 8004de4:	b8 60 70 00 	mv r14,r3                                      
  rtems_filesystem_location_info_t  loc;                              
  int                               result;                           
                                                                      
  if (!buf)                                                           
 8004de8:	5c 40 00 06 	bne r2,r0,8004e00 <readlink+0x3c>              
    rtems_set_errno_and_return_minus_one( EFAULT );                   
 8004dec:	f8 00 26 8f 	calli 800e828 <__errno>                        
 8004df0:	34 02 00 0e 	mvi r2,14                                      
 8004df4:	58 22 00 00 	sw (r1+0),r2                                   
 8004df8:	34 0c ff ff 	mvi r12,-1                                     
 8004dfc:	e0 00 00 20 	bi 8004e7c <readlink+0xb8>                     
                                                                      
  result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ),
 8004e00:	f8 00 2e 3b 	calli 80106ec <strlen>                         
 8004e04:	37 8b 00 18 	addi r11,sp,24                                 
 8004e08:	b8 20 10 00 	mv r2,r1                                       
 8004e0c:	34 03 00 00 	mvi r3,0                                       
 8004e10:	b9 80 08 00 	mv r1,r12                                      
 8004e14:	b9 60 20 00 	mv r4,r11                                      
 8004e18:	34 05 00 00 	mvi r5,0                                       
 8004e1c:	fb ff fa dd 	calli 8003990 <rtems_filesystem_evaluate_path> 
                                           0, &loc, false );          
  if ( result != 0 )                                                  
     return -1;                                                       
 8004e20:	34 0c ff ff 	mvi r12,-1                                     
  if (!buf)                                                           
    rtems_set_errno_and_return_minus_one( EFAULT );                   
                                                                      
  result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ),
                                           0, &loc, false );          
  if ( result != 0 )                                                  
 8004e24:	5c 20 00 16 	bne r1,r0,8004e7c <readlink+0xb8>              <== NEVER TAKEN
     return -1;                                                       
                                                                      
  if (  (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_SYM_LINK ){
 8004e28:	2b 81 00 24 	lw r1,(sp+36)                                  
 8004e2c:	28 22 00 10 	lw r2,(r1+16)                                  
 8004e30:	b9 60 08 00 	mv r1,r11                                      
 8004e34:	d8 40 00 00 	call r2                                        
 8004e38:	34 02 00 04 	mvi r2,4                                       
 8004e3c:	44 22 00 07 	be r1,r2,8004e58 <readlink+0x94>               
    rtems_filesystem_freenode( &loc );                                
 8004e40:	b9 60 08 00 	mv r1,r11                                      
 8004e44:	fb ff fb 1b 	calli 8003ab0 <rtems_filesystem_freenode>      
    rtems_set_errno_and_return_minus_one( EINVAL );                   
 8004e48:	f8 00 26 78 	calli 800e828 <__errno>                        
 8004e4c:	34 02 00 16 	mvi r2,22                                      
 8004e50:	58 22 00 00 	sw (r1+0),r2                                   
 8004e54:	e0 00 00 0a 	bi 8004e7c <readlink+0xb8>                     
  }                                                                   
                                                                      
  result =  (*loc.ops->readlink_h)( &loc, buf, bufsize );             
 8004e58:	2b 81 00 24 	lw r1,(sp+36)                                  
 8004e5c:	b9 a0 10 00 	mv r2,r13                                      
 8004e60:	b9 c0 18 00 	mv r3,r14                                      
 8004e64:	28 24 00 3c 	lw r4,(r1+60)                                  
 8004e68:	b9 60 08 00 	mv r1,r11                                      
 8004e6c:	d8 80 00 00 	call r4                                        
 8004e70:	b8 20 60 00 	mv r12,r1                                      
                                                                      
  rtems_filesystem_freenode( &loc );                                  
 8004e74:	b9 60 08 00 	mv r1,r11                                      
 8004e78:	fb ff fb 0e 	calli 8003ab0 <rtems_filesystem_freenode>      
                                                                      
  return result;                                                      
}                                                                     
 8004e7c:	b9 80 08 00 	mv r1,r12                                      
 8004e80:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004e84:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8004e88:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8004e8c:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8004e90:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8004e94:	37 9c 00 28 	addi sp,sp,40                                  
 8004e98:	c3 a0 00 00 	ret                                            
                                                                      

08003688 <readv>: ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) {
 8003688:	37 9c ff e4 	addi sp,sp,-28                                 
 800368c:	5b 8b 00 1c 	sw (sp+28),r11                                 
 8003690:	5b 8c 00 18 	sw (sp+24),r12                                 
 8003694:	5b 8d 00 14 	sw (sp+20),r13                                 
 8003698:	5b 8e 00 10 	sw (sp+16),r14                                 
 800369c:	5b 8f 00 0c 	sw (sp+12),r15                                 
 80036a0:	5b 90 00 08 	sw (sp+8),r16                                  
 80036a4:	5b 9d 00 04 	sw (sp+4),ra                                   
 80036a8:	b8 60 78 00 	mv r15,r3                                      
  int            v;                                                   
  int            bytes;                                               
  rtems_libio_t *iop;                                                 
  bool           all_zeros;                                           
                                                                      
  rtems_libio_check_fd( fd );                                         
 80036ac:	78 03 08 01 	mvhi r3,0x801                                  
 80036b0:	38 63 40 10 	ori r3,r3,0x4010                               
ssize_t readv(                                                        
  int                 fd,                                             
  const struct iovec *iov,                                            
  int                 iovcnt                                          
)                                                                     
{                                                                     
 80036b4:	b8 40 68 00 	mv r13,r2                                      
  int            v;                                                   
  int            bytes;                                               
  rtems_libio_t *iop;                                                 
  bool           all_zeros;                                           
                                                                      
  rtems_libio_check_fd( fd );                                         
 80036b8:	28 62 00 00 	lw r2,(r3+0)                                   
 80036bc:	54 41 00 02 	bgu r2,r1,80036c4 <readv+0x3c>                 
 80036c0:	e0 00 00 0a 	bi 80036e8 <readv+0x60>                        
  iop = rtems_libio_iop( fd );                                        
 80036c4:	78 0b 08 01 	mvhi r11,0x801                                 
 80036c8:	34 02 00 06 	mvi r2,6                                       
 80036cc:	39 6b 47 10 	ori r11,r11,0x4710                             
 80036d0:	f8 00 39 0c 	calli 8011b00 <__ashlsi3>                      
 80036d4:	29 6c 00 00 	lw r12,(r11+0)                                 
 80036d8:	b5 81 60 00 	add r12,r12,r1                                 
  rtems_libio_check_is_open( iop );                                   
 80036dc:	29 81 00 18 	lw r1,(r12+24)                                 
 80036e0:	20 22 01 00 	andi r2,r1,0x100                               
 80036e4:	5c 40 00 04 	bne r2,r0,80036f4 <readv+0x6c>                 
 80036e8:	f8 00 23 19 	calli 800c34c <__errno>                        
 80036ec:	34 02 00 09 	mvi r2,9                                       
 80036f0:	e0 00 00 16 	bi 8003748 <readv+0xc0>                        
  rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ );             
 80036f4:	20 21 00 02 	andi r1,r1,0x2                                 
 80036f8:	44 20 00 12 	be r1,r0,8003740 <readv+0xb8>                  <== NEVER TAKEN
                                                                      
  /*                                                                  
   *  Argument validation on IO vector                                
   */                                                                 
  if ( !iov )                                                         
 80036fc:	45 a0 00 11 	be r13,r0,8003740 <readv+0xb8>                 
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt <= 0 )                                                  
 8003700:	49 e0 00 02 	bg r15,r0,8003708 <readv+0x80>                 
 8003704:	e0 00 00 0f 	bi 8003740 <readv+0xb8>                        
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt > IOV_MAX )                                             
 8003708:	34 01 04 00 	mvi r1,1024                                    
 800370c:	4c 2f 00 02 	bge r1,r15,8003714 <readv+0x8c>                <== ALWAYS TAKEN
 8003710:	e0 00 00 0c 	bi 8003740 <readv+0xb8>                        <== NOT EXECUTED
 8003714:	b9 a0 08 00 	mv r1,r13                                      
 8003718:	34 02 00 01 	mvi r2,1                                       
 800371c:	34 04 00 00 	mvi r4,0                                       
 8003720:	34 03 00 00 	mvi r3,0                                       
 8003724:	e0 00 00 02 	bi 800372c <readv+0xa4>                        
    if ( iov[v].iov_base == 0 )                                       
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
 8003728:	b8 c0 18 00 	mv r3,r6                                       
                                                                      
    /*                                                                
     *  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 )                                       
 800372c:	28 25 00 00 	lw r5,(r1+0)                                   
 8003730:	44 a0 00 04 	be r5,r0,8003740 <readv+0xb8>                  
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
 8003734:	28 25 00 04 	lw r5,(r1+4)                                   
 8003738:	b4 65 30 00 	add r6,r3,r5                                   
    if ( total < old )                                                
 800373c:	4c c3 00 05 	bge r6,r3,8003750 <readv+0xc8>                 
      rtems_set_errno_and_return_minus_one( EINVAL );                 
 8003740:	f8 00 23 03 	calli 800c34c <__errno>                        
 8003744:	34 02 00 16 	mvi r2,22                                      
 8003748:	58 22 00 00 	sw (r1+0),r2                                   
 800374c:	e0 00 00 24 	bi 80037dc <readv+0x154>                       
                                                                      
    if ( iov[v].iov_len )                                             
      all_zeros = false;                                              
 8003750:	64 a5 00 00 	cmpei r5,r5,0                                  
   *  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++ ) {                           
 8003754:	34 84 00 01 	addi r4,r4,1                                   
    total += iov[v].iov_len;                                          
    if ( total < old )                                                
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    if ( iov[v].iov_len )                                             
      all_zeros = false;                                              
 8003758:	c8 05 28 00 	sub r5,r0,r5                                   
 800375c:	a0 45 10 00 	and r2,r2,r5                                   
   *  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++ ) {                           
 8003760:	34 21 00 08 	addi r1,r1,8                                   
 8003764:	49 e4 ff f1 	bg r15,r4,8003728 <readv+0xa0>                 
   *  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 ) {                                          
    return 0;                                                         
 8003768:	34 0b 00 00 	mvi r11,0                                      
  /*                                                                  
   *  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 ) {                                          
 800376c:	5c 40 00 1d 	bne r2,r0,80037e0 <readv+0x158>                
 8003770:	34 10 00 00 	mvi r16,0                                      
                                                                      
  /*                                                                  
   *  Now process the readv().                                        
   */                                                                 
  for ( total=0, v=0 ; v < iovcnt ; v++ ) {                           
    bytes = (*iop->pathinfo.handlers->read_h)(                        
 8003774:	29 81 00 24 	lw r1,(r12+36)                                 
 8003778:	29 a2 00 00 	lw r2,(r13+0)                                  
 800377c:	29 a3 00 04 	lw r3,(r13+4)                                  
 8003780:	28 24 00 08 	lw r4,(r1+8)                                   
 8003784:	b9 80 08 00 	mv r1,r12                                      
 8003788:	d8 80 00 00 	call r4                                        
 800378c:	b8 20 70 00 	mv r14,r1                                      
      iop,                                                            
      iov[v].iov_base,                                                
      iov[v].iov_len                                                  
    );                                                                
                                                                      
    if ( bytes < 0 )                                                  
 8003790:	48 01 00 13 	bg r0,r1,80037dc <readv+0x154>                 <== NEVER TAKEN
      return -1;                                                      
                                                                      
    if ( bytes > 0 ) {                                                
 8003794:	44 20 00 0c 	be r1,r0,80037c4 <readv+0x13c>                 <== NEVER TAKEN
      iop->offset += bytes;                                           
 8003798:	34 02 00 1f 	mvi r2,31                                      
 800379c:	f8 00 39 00 	calli 8011b9c <__ashrsi3>                      
 80037a0:	29 82 00 14 	lw r2,(r12+20)                                 
 80037a4:	29 84 00 10 	lw r4,(r12+16)                                 
      total       += bytes;                                           
 80037a8:	b5 6e 58 00 	add r11,r11,r14                                
                                                                      
    if ( bytes < 0 )                                                  
      return -1;                                                      
                                                                      
    if ( bytes > 0 ) {                                                
      iop->offset += bytes;                                           
 80037ac:	b5 c2 10 00 	add r2,r14,r2                                  
 80037b0:	f5 c2 18 00 	cmpgu r3,r14,r2                                
 80037b4:	b4 24 08 00 	add r1,r1,r4                                   
 80037b8:	b4 61 08 00 	add r1,r3,r1                                   
 80037bc:	59 81 00 10 	sw (r12+16),r1                                 
 80037c0:	59 82 00 14 	sw (r12+20),r2                                 
      total       += bytes;                                           
    }                                                                 
                                                                      
    if (bytes != iov[ v ].iov_len)                                    
 80037c4:	29 a1 00 04 	lw r1,(r13+4)                                  
 80037c8:	5d c1 00 06 	bne r14,r1,80037e0 <readv+0x158>               <== NEVER TAKEN
  }                                                                   
                                                                      
  /*                                                                  
   *  Now process the readv().                                        
   */                                                                 
  for ( total=0, v=0 ; v < iovcnt ; v++ ) {                           
 80037cc:	36 10 00 01 	addi r16,r16,1                                 
 80037d0:	35 ad 00 08 	addi r13,r13,8                                 
 80037d4:	49 f0 ff e8 	bg r15,r16,8003774 <readv+0xec>                
 80037d8:	e0 00 00 02 	bi 80037e0 <readv+0x158>                       
      iov[v].iov_base,                                                
      iov[v].iov_len                                                  
    );                                                                
                                                                      
    if ( bytes < 0 )                                                  
      return -1;                                                      
 80037dc:	34 0b ff ff 	mvi r11,-1                                     
    if (bytes != iov[ v ].iov_len)                                    
      break;                                                          
  }                                                                   
                                                                      
  return total;                                                       
}                                                                     
 80037e0:	b9 60 08 00 	mv r1,r11                                      
 80037e4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80037e8:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 80037ec:	2b 8c 00 18 	lw r12,(sp+24)                                 
 80037f0:	2b 8d 00 14 	lw r13,(sp+20)                                 
 80037f4:	2b 8e 00 10 	lw r14,(sp+16)                                 
 80037f8:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 80037fc:	2b 90 00 08 	lw r16,(sp+8)                                  
 8003800:	37 9c 00 1c 	addi sp,sp,28                                  
 8003804:	c3 a0 00 00 	ret                                            
                                                                      

080111c0 <realloc>: void *realloc( void *ptr, size_t size ) {
 80111c0:	37 9c ff e8 	addi sp,sp,-24                                 
 80111c4:	5b 8b 00 14 	sw (sp+20),r11                                 
 80111c8:	5b 8c 00 10 	sw (sp+16),r12                                 
 80111cc:	5b 8d 00 0c 	sw (sp+12),r13                                 
 80111d0:	5b 8e 00 08 	sw (sp+8),r14                                  
 80111d4:	5b 9d 00 04 	sw (sp+4),ra                                   
 80111d8:	b8 20 58 00 	mv r11,r1                                      
  uintptr_t old_size;                                                 
  char    *new_area;                                                  
                                                                      
  MSBUMP(realloc_calls, 1);                                           
 80111dc:	78 01 08 01 	mvhi r1,0x801                                  
 80111e0:	38 21 37 28 	ori r1,r1,0x3728                               
                                                                      
void *realloc(                                                        
  void *ptr,                                                          
  size_t size                                                         
)                                                                     
{                                                                     
 80111e4:	b8 40 60 00 	mv r12,r2                                      
  uintptr_t old_size;                                                 
  char    *new_area;                                                  
                                                                      
  MSBUMP(realloc_calls, 1);                                           
 80111e8:	28 22 00 10 	lw r2,(r1+16)                                  
 80111ec:	34 42 00 01 	addi r2,r2,1                                   
 80111f0:	58 22 00 10 	sw (r1+16),r2                                  
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if in a critical section or ISR.
   */                                                                 
                                                                      
  if (_System_state_Is_up(_System_state_Get())) {                     
 80111f4:	78 01 08 01 	mvhi r1,0x801                                  
 80111f8:	38 21 39 e0 	ori r1,r1,0x39e0                               
 80111fc:	28 22 00 00 	lw r2,(r1+0)                                   
 8011200:	34 01 00 03 	mvi r1,3                                       
 8011204:	5c 41 00 09 	bne r2,r1,8011228 <realloc+0x68>               <== NEVER TAKEN
    if (_Thread_Dispatch_disable_level > 0)                           
 8011208:	78 01 08 01 	mvhi r1,0x801                                  
 801120c:	38 21 38 88 	ori r1,r1,0x3888                               
 8011210:	28 22 00 00 	lw r2,(r1+0)                                   
 8011214:	5c 40 00 33 	bne r2,r0,80112e0 <realloc+0x120>              <== NEVER TAKEN
      return (void *) 0;                                              
                                                                      
    if (_ISR_Nest_level > 0)                                          
 8011218:	78 01 08 01 	mvhi r1,0x801                                  
 801121c:	38 21 3a 28 	ori r1,r1,0x3a28                               
 8011220:	28 21 00 08 	lw r1,(r1+8)                                   
 8011224:	5c 22 00 2f 	bne r1,r2,80112e0 <realloc+0x120>              <== NEVER TAKEN
  }                                                                   
                                                                      
  /*                                                                  
   * Continue with realloc().                                         
   */                                                                 
  if ( !ptr )                                                         
 8011228:	5d 60 00 05 	bne r11,r0,801123c <realloc+0x7c>              
    return malloc( size );                                            
 801122c:	b9 80 08 00 	mv r1,r12                                      
 8011230:	fb ff c1 36 	calli 8001708 <malloc>                         
 8011234:	b8 20 58 00 	mv r11,r1                                      
 8011238:	e0 00 00 2b 	bi 80112e4 <realloc+0x124>                     
                                                                      
  if ( !size ) {                                                      
 801123c:	5d 80 00 04 	bne r12,r0,801124c <realloc+0x8c>              <== ALWAYS TAKEN
    free( ptr );                                                      
 8011240:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 8011244:	fb ff c0 37 	calli 8001320 <free>                           <== NOT EXECUTED
 8011248:	e0 00 00 26 	bi 80112e0 <realloc+0x120>                     <== NOT EXECUTED
    return (void *) 0;                                                
  }                                                                   
                                                                      
  if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) {
 801124c:	78 0d 08 01 	mvhi r13,0x801                                 
 8011250:	39 ad 30 4c 	ori r13,r13,0x304c                             
 8011254:	29 a1 00 00 	lw r1,(r13+0)                                  
 8011258:	b9 60 10 00 	mv r2,r11                                      
 801125c:	37 83 00 18 	addi r3,sp,24                                  
 8011260:	f8 00 00 64 	calli 80113f0 <_Protected_heap_Get_block_size> 
 8011264:	5c 20 00 05 	bne r1,r0,8011278 <realloc+0xb8>               
    errno = EINVAL;                                                   
 8011268:	fb ff e8 4a 	calli 800b390 <__errno>                        
 801126c:	34 02 00 16 	mvi r2,22                                      
 8011270:	58 22 00 00 	sw (r1+0),r2                                   
 8011274:	e0 00 00 1b 	bi 80112e0 <realloc+0x120>                     
  }                                                                   
                                                                      
  /*                                                                  
   *  Now resize it.                                                  
   */                                                                 
  if ( _Protected_heap_Resize_block( RTEMS_Malloc_Heap, ptr, size ) ) {
 8011278:	29 a1 00 00 	lw r1,(r13+0)                                  
 801127c:	b9 60 10 00 	mv r2,r11                                      
 8011280:	b9 80 18 00 	mv r3,r12                                      
 8011284:	f8 00 00 73 	calli 8011450 <_Protected_heap_Resize_block>   
 8011288:	b8 20 70 00 	mv r14,r1                                      
 801128c:	5c 20 00 16 	bne r1,r0,80112e4 <realloc+0x124>              
   *  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 );                                          
 8011290:	b9 80 08 00 	mv r1,r12                                      
 8011294:	fb ff c1 1d 	calli 8001708 <malloc>                         
                                                                      
  MSBUMP(malloc_calls, (uint32_t) -1);   /* subtract off the malloc */
 8011298:	78 02 08 01 	mvhi r2,0x801                                  
 801129c:	38 42 37 28 	ori r2,r2,0x3728                               
   *  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 );                                          
 80112a0:	b8 20 68 00 	mv r13,r1                                      
                                                                      
  MSBUMP(malloc_calls, (uint32_t) -1);   /* subtract off the malloc */
 80112a4:	28 41 00 04 	lw r1,(r2+4)                                   
 80112a8:	34 21 ff ff 	addi r1,r1,-1                                  
 80112ac:	58 41 00 04 	sw (r2+4),r1                                   
                                                                      
  if ( !new_area ) {                                                  
 80112b0:	45 ae 00 0c 	be r13,r14,80112e0 <realloc+0x120>             
    return (void *) 0;                                                
  }                                                                   
                                                                      
  memcpy( new_area, ptr, (size < old_size) ? size : old_size );       
 80112b4:	2b 81 00 18 	lw r1,(sp+24)                                  
 80112b8:	b9 80 18 00 	mv r3,r12                                      
 80112bc:	50 2c 00 02 	bgeu r1,r12,80112c4 <realloc+0x104>            <== NEVER TAKEN
 80112c0:	b8 20 18 00 	mv r3,r1                                       
 80112c4:	b9 60 10 00 	mv r2,r11                                      
 80112c8:	b9 a0 08 00 	mv r1,r13                                      
 80112cc:	fb ff ea e7 	calli 800be68 <memcpy>                         
  free( ptr );                                                        
 80112d0:	b9 60 08 00 	mv r1,r11                                      
 80112d4:	fb ff c0 13 	calli 8001320 <free>                           
                                                                      
  return new_area;                                                    
 80112d8:	b9 a0 58 00 	mv r11,r13                                     
 80112dc:	e0 00 00 02 	bi 80112e4 <realloc+0x124>                     
  new_area = malloc( size );                                          
                                                                      
  MSBUMP(malloc_calls, (uint32_t) -1);   /* subtract off the malloc */
                                                                      
  if ( !new_area ) {                                                  
    return (void *) 0;                                                
 80112e0:	34 0b 00 00 	mvi r11,0                                      
  memcpy( new_area, ptr, (size < old_size) ? size : old_size );       
  free( ptr );                                                        
                                                                      
  return new_area;                                                    
                                                                      
}                                                                     
 80112e4:	b9 60 08 00 	mv r1,r11                                      
 80112e8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80112ec:	2b 8b 00 14 	lw r11,(sp+20)                                 
 80112f0:	2b 8c 00 10 	lw r12,(sp+16)                                 
 80112f4:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 80112f8:	2b 8e 00 08 	lw r14,(sp+8)                                  
 80112fc:	37 9c 00 18 	addi sp,sp,24                                  
 8011300:	c3 a0 00 00 	ret                                            
                                                                      

08002848 <rmdir>: #include <rtems/seterr.h> int rmdir( const char *pathname ) {
 8002848:	37 9c ff c0 	addi sp,sp,-64                                 
 800284c:	5b 8b 00 14 	sw (sp+20),r11                                 
 8002850:	5b 8c 00 10 	sw (sp+16),r12                                 
 8002854:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8002858:	5b 8e 00 08 	sw (sp+8),r14                                  
 800285c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8002860:	b8 20 70 00 	mv r14,r1                                      
                                                                      
  /*                                                                  
   *  Get the parent node of the node we wish to remove. Find the parent path.
   */                                                                 
                                                                      
  parentpathlen = rtems_filesystem_dirname ( pathname );              
 8002864:	fb ff fb c7 	calli 8001780 <rtems_filesystem_dirname>       
 8002868:	b8 20 58 00 	mv r11,r1                                      
 800286c:	37 84 00 2c 	addi r4,sp,44                                  
                                                                      
  if ( parentpathlen == 0 )                                           
 8002870:	5c 20 00 07 	bne r1,r0,800288c <rmdir+0x44>                 
    rtems_filesystem_get_start_loc( pathname, &i, &parentloc );       
 8002874:	b9 c0 08 00 	mv r1,r14                                      
 8002878:	37 82 00 40 	addi r2,sp,64                                  
 800287c:	b8 80 18 00 	mv r3,r4                                       
 8002880:	f8 00 00 4e 	calli 80029b8 <rtems_filesystem_get_start_loc> 
  const char                       *name;                             
  rtems_filesystem_location_info_t  parentloc;                        
  rtems_filesystem_location_info_t  loc;                              
  int                               i;                                
  int                               result;                           
  bool                              free_parentloc = false;           
 8002884:	34 0d 00 00 	mvi r13,0                                      
 8002888:	e0 00 00 09 	bi 80028ac <rmdir+0x64>                        
  parentpathlen = rtems_filesystem_dirname ( pathname );              
                                                                      
  if ( parentpathlen == 0 )                                           
    rtems_filesystem_get_start_loc( pathname, &i, &parentloc );       
  else {                                                              
    result = rtems_filesystem_evaluate_path(pathname, parentpathlen,  
 800288c:	b9 c0 08 00 	mv r1,r14                                      
 8002890:	b9 60 10 00 	mv r2,r11                                      
 8002894:	34 03 00 02 	mvi r3,2                                       
 8002898:	34 05 00 00 	mvi r5,0                                       
 800289c:	fb ff fb 9e 	calli 8001714 <rtems_filesystem_evaluate_path> 
                                            RTEMS_LIBIO_PERMS_WRITE,  
                                            &parentloc,               
                                            false );                  
    if ( result != 0 )                                                
      return -1;                                                      
 80028a0:	34 0c ff ff 	mvi r12,-1                                     
  else {                                                              
    result = rtems_filesystem_evaluate_path(pathname, parentpathlen,  
                                            RTEMS_LIBIO_PERMS_WRITE,  
                                            &parentloc,               
                                            false );                  
    if ( result != 0 )                                                
 80028a4:	5c 20 00 3d 	bne r1,r0,8002998 <rmdir+0x150>                <== NEVER TAKEN
      return -1;                                                      
                                                                      
    free_parentloc = true;                                            
 80028a8:	34 0d 00 01 	mvi r13,1                                      
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  loc = parentloc;                                                    
 80028ac:	2b 81 00 2c 	lw r1,(sp+44)                                  
  name = pathname + parentpathlen;                                    
 80028b0:	b5 cb 58 00 	add r11,r14,r11                                
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  loc = parentloc;                                                    
 80028b4:	5b 81 00 18 	sw (sp+24),r1                                  
 80028b8:	2b 81 00 30 	lw r1,(sp+48)                                  
 80028bc:	5b 81 00 1c 	sw (sp+28),r1                                  
 80028c0:	2b 81 00 34 	lw r1,(sp+52)                                  
 80028c4:	5b 81 00 20 	sw (sp+32),r1                                  
 80028c8:	2b 81 00 38 	lw r1,(sp+56)                                  
 80028cc:	5b 81 00 24 	sw (sp+36),r1                                  
 80028d0:	2b 81 00 3c 	lw r1,(sp+60)                                  
 80028d4:	5b 81 00 28 	sw (sp+40),r1                                  
  name = pathname + parentpathlen;                                    
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
 80028d8:	b9 60 08 00 	mv r1,r11                                      
 80028dc:	f8 00 29 00 	calli 800ccdc <strlen>                         
 80028e0:	b8 20 10 00 	mv r2,r1                                       
 80028e4:	b9 60 08 00 	mv r1,r11                                      
 80028e8:	fb ff fb ba 	calli 80017d0 <rtems_filesystem_prefix_separators>
 80028ec:	b5 61 60 00 	add r12,r11,r1                                 
                                                                      
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
 80028f0:	b9 80 08 00 	mv r1,r12                                      
 80028f4:	f8 00 28 fa 	calli 800ccdc <strlen>                         
 80028f8:	37 8b 00 18 	addi r11,sp,24                                 
 80028fc:	b8 20 10 00 	mv r2,r1                                       
 8002900:	34 03 00 00 	mvi r3,0                                       
 8002904:	b9 80 08 00 	mv r1,r12                                      
 8002908:	b9 60 20 00 	mv r4,r11                                      
 800290c:	34 05 00 00 	mvi r5,0                                       
 8002910:	fb ff fb 5f 	calli 800168c <rtems_filesystem_evaluate_relative_path>
                                                    0, &loc, false ); 
  if ( result != 0 ) {                                                
 8002914:	44 20 00 05 	be r1,r0,8002928 <rmdir+0xe0>                  
    if ( free_parentloc )                                             
      rtems_filesystem_freenode( &parentloc );                        
    return -1;                                                        
 8002918:	34 0c ff ff 	mvi r12,-1                                     
                                                                      
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
                                                    0, &loc, false ); 
  if ( result != 0 ) {                                                
    if ( free_parentloc )                                             
      rtems_filesystem_freenode( &parentloc );                        
 800291c:	37 81 00 2c 	addi r1,sp,44                                  
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
                                                                      
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
                                                    0, &loc, false ); 
  if ( result != 0 ) {                                                
    if ( free_parentloc )                                             
 8002920:	45 a0 00 1e 	be r13,r0,8002998 <rmdir+0x150>                
 8002924:	e0 00 00 1c 	bi 8002994 <rmdir+0x14c>                       
  }                                                                   
                                                                      
  /*                                                                  
   * Verify you can remove this node as a directory.                  
   */                                                                 
  if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
 8002928:	2b 81 00 24 	lw r1,(sp+36)                                  
 800292c:	28 22 00 10 	lw r2,(r1+16)                                  
 8002930:	b9 60 08 00 	mv r1,r11                                      
 8002934:	d8 40 00 00 	call r2                                        
 8002938:	34 02 00 01 	mvi r2,1                                       
 800293c:	44 22 00 0b 	be r1,r2,8002968 <rmdir+0x120>                 
    rtems_filesystem_freenode( &loc );                                
 8002940:	b9 60 08 00 	mv r1,r11                                      
 8002944:	fb ff fb bc 	calli 8001834 <rtems_filesystem_freenode>      
    if ( free_parentloc )                                             
 8002948:	45 a0 00 03 	be r13,r0,8002954 <rmdir+0x10c>                <== NEVER TAKEN
      rtems_filesystem_freenode( &parentloc );                        
 800294c:	37 81 00 2c 	addi r1,sp,44                                  
 8002950:	fb ff fb b9 	calli 8001834 <rtems_filesystem_freenode>      
    rtems_set_errno_and_return_minus_one( ENOTDIR );                  
 8002954:	f8 00 24 81 	calli 800bb58 <__errno>                        
 8002958:	34 02 00 14 	mvi r2,20                                      
 800295c:	58 22 00 00 	sw (r1+0),r2                                   
 8002960:	34 0c ff ff 	mvi r12,-1                                     
 8002964:	e0 00 00 0d 	bi 8002998 <rmdir+0x150>                       
                                                                      
  /*                                                                  
   * Use the filesystems rmnod to remove the node.                    
   */                                                                 
                                                                      
  result =  (*loc.handlers->rmnod_h)( &parentloc, &loc );             
 8002968:	2b 81 00 20 	lw r1,(sp+32)                                  
 800296c:	37 8e 00 2c 	addi r14,sp,44                                 
 8002970:	b9 60 10 00 	mv r2,r11                                      
 8002974:	28 23 00 34 	lw r3,(r1+52)                                  
 8002978:	b9 c0 08 00 	mv r1,r14                                      
 800297c:	d8 60 00 00 	call r3                                        
 8002980:	b8 20 60 00 	mv r12,r1                                      
                                                                      
  rtems_filesystem_freenode( &loc );                                  
 8002984:	b9 60 08 00 	mv r1,r11                                      
 8002988:	fb ff fb ab 	calli 8001834 <rtems_filesystem_freenode>      
  if ( free_parentloc )                                               
 800298c:	45 a0 00 03 	be r13,r0,8002998 <rmdir+0x150>                
    rtems_filesystem_freenode( &parentloc );                          
 8002990:	b9 c0 08 00 	mv r1,r14                                      
 8002994:	fb ff fb a8 	calli 8001834 <rtems_filesystem_freenode>      
                                                                      
  return result;                                                      
}                                                                     
 8002998:	b9 80 08 00 	mv r1,r12                                      
 800299c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80029a0:	2b 8b 00 14 	lw r11,(sp+20)                                 
 80029a4:	2b 8c 00 10 	lw r12,(sp+16)                                 
 80029a8:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 80029ac:	2b 8e 00 08 	lw r14,(sp+8)                                  
 80029b0:	37 9c 00 40 	addi sp,sp,64                                  
 80029b4:	c3 a0 00 00 	ret                                            
                                                                      

08003898 <rtems_chain_get_with_wait>: rtems_chain_control *chain, rtems_event_set events, rtems_interval timeout, rtems_chain_node **node_ptr ) {
 8003898:	37 9c ff e4 	addi sp,sp,-28                                 
 800389c:	5b 8b 00 18 	sw (sp+24),r11                                 
 80038a0:	5b 8c 00 14 	sw (sp+20),r12                                 
 80038a4:	5b 8d 00 10 	sw (sp+16),r13                                 
 80038a8:	5b 8e 00 0c 	sw (sp+12),r14                                 
 80038ac:	5b 8f 00 08 	sw (sp+8),r15                                  
 80038b0:	5b 9d 00 04 	sw (sp+4),ra                                   
 80038b4:	b8 20 78 00 	mv r15,r1                                      
 80038b8:	b8 40 70 00 	mv r14,r2                                      
 80038bc:	b8 60 68 00 	mv r13,r3                                      
 80038c0:	b8 80 60 00 	mv r12,r4                                      
 80038c4:	e0 00 00 08 	bi 80038e4 <rtems_chain_get_with_wait+0x4c>    
  while (                                                             
    sc == RTEMS_SUCCESSFUL                                            
      && (node = rtems_chain_get( chain )) == NULL                    
  ) {                                                                 
    rtems_event_set out;                                              
    sc = rtems_event_receive(                                         
 80038c8:	b9 c0 08 00 	mv r1,r14                                      
 80038cc:	34 02 00 00 	mvi r2,0                                       
 80038d0:	b9 a0 18 00 	mv r3,r13                                      
 80038d4:	37 84 00 1c 	addi r4,sp,28                                  
 80038d8:	fb ff fd d2 	calli 8003020 <rtems_event_receive>            
 80038dc:	b8 20 28 00 	mv r5,r1                                       
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_chain_node *node = NULL;                                      
                                                                      
  while (                                                             
 80038e0:	5c 2b 00 06 	bne r1,r11,80038f8 <rtems_chain_get_with_wait+0x60><== ALWAYS TAKEN
 */                                                                   
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(               
  rtems_chain_control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Get( the_chain );                                     
 80038e4:	b9 e0 08 00 	mv r1,r15                                      
 80038e8:	f8 00 01 8b 	calli 8003f14 <_Chain_Get>                     
 80038ec:	b8 20 58 00 	mv r11,r1                                      
    sc == RTEMS_SUCCESSFUL                                            
      && (node = rtems_chain_get( chain )) == NULL                    
 80038f0:	44 20 ff f6 	be r1,r0,80038c8 <rtems_chain_get_with_wait+0x30>
 80038f4:	34 05 00 00 	mvi r5,0                                       
  }                                                                   
                                                                      
  *node_ptr = node;                                                   
                                                                      
  return sc;                                                          
}                                                                     
 80038f8:	b8 a0 08 00 	mv r1,r5                                       
      timeout,                                                        
      &out                                                            
    );                                                                
  }                                                                   
                                                                      
  *node_ptr = node;                                                   
 80038fc:	59 8b 00 00 	sw (r12+0),r11                                 
                                                                      
  return sc;                                                          
}                                                                     
 8003900:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003904:	2b 8b 00 18 	lw r11,(sp+24)                                 
 8003908:	2b 8c 00 14 	lw r12,(sp+20)                                 
 800390c:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8003910:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8003914:	2b 8f 00 08 	lw r15,(sp+8)                                  
 8003918:	37 9c 00 1c 	addi sp,sp,28                                  
 800391c:	c3 a0 00 00 	ret                                            
                                                                      

08010ad0 <rtems_clock_set_nanoseconds_extension>: * error code - if unsuccessful */ rtems_status_code rtems_clock_set_nanoseconds_extension( rtems_nanoseconds_extension_routine routine ) {
 8010ad0:	b8 20 18 00 	mv r3,r1                                       
  if ( !routine )                                                     
    return RTEMS_INVALID_ADDRESS;                                     
 8010ad4:	34 01 00 09 	mvi r1,9                                       
 */                                                                   
rtems_status_code rtems_clock_set_nanoseconds_extension(              
  rtems_nanoseconds_extension_routine routine                         
)                                                                     
{                                                                     
  if ( !routine )                                                     
 8010ad8:	44 60 00 05 	be r3,r0,8010aec <rtems_clock_set_nanoseconds_extension+0x1c><== ALWAYS TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  _Watchdog_Nanoseconds_since_tick_handler = routine;                 
 8010adc:	78 02 08 03 	mvhi r2,0x803                                  <== NOT EXECUTED
 8010ae0:	38 42 a1 6c 	ori r2,r2,0xa16c                               <== NOT EXECUTED
 8010ae4:	58 43 00 00 	sw (r2+0),r3                                   <== NOT EXECUTED
  return RTEMS_SUCCESSFUL;                                            
 8010ae8:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
}                                                                     
 8010aec:	c3 a0 00 00 	ret                                            
                                                                      

08001a40 <rtems_cpu_usage_report_with_plugin>: void rtems_cpu_usage_report_with_plugin( void *context, rtems_printk_plugin_t print ) {
 8001a40:	37 9c ff 74 	addi sp,sp,-140                                
 8001a44:	5b 8b 00 44 	sw (sp+68),r11                                 
 8001a48:	5b 8c 00 40 	sw (sp+64),r12                                 
 8001a4c:	5b 8d 00 3c 	sw (sp+60),r13                                 
 8001a50:	5b 8e 00 38 	sw (sp+56),r14                                 
 8001a54:	5b 8f 00 34 	sw (sp+52),r15                                 
 8001a58:	5b 90 00 30 	sw (sp+48),r16                                 
 8001a5c:	5b 91 00 2c 	sw (sp+44),r17                                 
 8001a60:	5b 92 00 28 	sw (sp+40),r18                                 
 8001a64:	5b 93 00 24 	sw (sp+36),r19                                 
 8001a68:	5b 94 00 20 	sw (sp+32),r20                                 
 8001a6c:	5b 95 00 1c 	sw (sp+28),r21                                 
 8001a70:	5b 96 00 18 	sw (sp+24),r22                                 
 8001a74:	5b 97 00 14 	sw (sp+20),r23                                 
 8001a78:	5b 98 00 10 	sw (sp+16),r24                                 
 8001a7c:	5b 99 00 0c 	sw (sp+12),r25                                 
 8001a80:	5b 9b 00 08 	sw (sp+8),fp                                   
 8001a84:	5b 9d 00 04 	sw (sp+4),ra                                   
 8001a88:	b8 20 90 00 	mv r18,r1                                      
 8001a8c:	b8 40 70 00 	mv r14,r2                                      
    Timestamp_Control  uptime, total, ran, uptime_at_last_reset;      
  #else                                                               
    uint32_t           total_units = 0;                               
  #endif                                                              
                                                                      
  if ( !print )                                                       
 8001a90:	44 40 00 6c 	be r2,r0,8001c40 <rtems_cpu_usage_report_with_plugin+0x200><== NEVER TAKEN
   *  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;            
 8001a94:	78 03 08 01 	mvhi r3,0x801                                  
 8001a98:	38 63 fe d0 	ori r3,r3,0xfed0                               
 8001a9c:	28 62 00 00 	lw r2,(r3+0)                                   
        }                                                             
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  (*print)(                                                           
 8001aa0:	78 0d 08 01 	mvhi r13,0x801                                 
        if ( !the_thread )                                            
          continue;                                                   
                                                                      
        rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
                                                                      
        (*print)(                                                     
 8001aa4:	78 14 08 01 	mvhi r20,0x801                                 
   *  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;            
 8001aa8:	5b 82 00 68 	sw (sp+104),r2                                 
 8001aac:	28 62 00 04 	lw r2,(r3+4)                                   
          /*                                                          
           * 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 ) {
 8001ab0:	78 10 08 01 	mvhi r16,0x801                                 
                                                                      
          /*                                                          
           * Print the information                                    
           */                                                         
                                                                      
          (*print)( context,                                          
 8001ab4:	78 13 08 01 	mvhi r19,0x801                                 
   *  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;            
 8001ab8:	5b 82 00 6c 	sw (sp+108),r2                                 
        }                                                             
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  (*print)(                                                           
 8001abc:	78 02 08 01 	mvhi r2,0x801                                  
 8001ac0:	38 42 d0 00 	ori r2,r2,0xd000                               
           * 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;
 8001ac4:	78 0c 08 01 	mvhi r12,0x801                                 
   *  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 );                                 
 8001ac8:	5b 80 00 78 	sw (sp+120),r0                                 
 8001acc:	5b 80 00 7c 	sw (sp+124),r0                                 
        }                                                             
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  (*print)(                                                           
 8001ad0:	39 ad fc 40 	ori r13,r13,0xfc40                             
 8001ad4:	d9 c0 00 00 	call r14                                       
        if ( !the_thread )                                            
          continue;                                                   
                                                                      
        rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
                                                                      
        (*print)(                                                     
 8001ad8:	3a 94 d1 74 	ori r20,r20,0xd174                             
        the_thread = (Thread_Control *)information->local_table[ i ]; 
                                                                      
        if ( !the_thread )                                            
          continue;                                                   
                                                                      
        rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
 8001adc:	37 9b 00 48 	addi fp,sp,72                                  
          /*                                                          
           * 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 ) {
 8001ae0:	3a 10 fe 80 	ori r16,r16,0xfe80                             
 8001ae4:	37 8f 00 80 	addi r15,sp,128                                
            _Timestamp_Subtract( &last, &uptime, &used );             
            _Timestamp_Add_to( &ran, &used );                         
          } else {                                                    
            _TOD_Get_uptime( &uptime );                               
          }                                                           
          _Timestamp_Subtract( &uptime_at_last_reset, &uptime, &total );
 8001ae8:	37 99 00 78 	addi r25,sp,120                                
          _Timestamp_Divide( &ran, &total, &ival, &fval );            
 8001aec:	37 98 00 70 	addi r24,sp,112                                
                                                                      
          /*                                                          
           * Print the information                                    
           */                                                         
                                                                      
          (*print)( context,                                          
 8001af0:	3a 73 d1 88 	ori r19,r19,0xd188                             
           * 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;
 8001af4:	39 8c fd 4c 	ori r12,r12,0xfd4c                             
            _TOD_Get_uptime( &uptime );                               
            _Timestamp_Subtract( &last, &uptime, &used );             
 8001af8:	37 97 00 60 	addi r23,sp,96                                 
     "------------+----------------------------------------+---------------+---------\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 ] )                 
 8001afc:	29 a2 00 00 	lw r2,(r13+0)                                  
 8001b00:	44 40 00 42 	be r2,r0,8001c08 <rtems_cpu_usage_report_with_plugin+0x1c8>
        continue;                                                     
    #endif                                                            
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
 8001b04:	28 51 00 04 	lw r17,(r2+4)                                  
    if ( information ) {                                              
 8001b08:	34 16 00 04 	mvi r22,4                                      
 8001b0c:	34 15 00 01 	mvi r21,1                                      
 8001b10:	5e 20 00 3c 	bne r17,r0,8001c00 <rtems_cpu_usage_report_with_plugin+0x1c0><== ALWAYS TAKEN
 8001b14:	e0 00 00 3d 	bi 8001c08 <rtems_cpu_usage_report_with_plugin+0x1c8><== NOT EXECUTED
      for ( i=1 ; i <= information->maximum ; i++ ) {                 
        the_thread = (Thread_Control *)information->local_table[ i ]; 
 8001b18:	2a 21 00 1c 	lw r1,(r17+28)                                 
 8001b1c:	b4 36 08 00 	add r1,r1,r22                                  
 8001b20:	28 2b 00 00 	lw r11,(r1+0)                                  
                                                                      
        if ( !the_thread )                                            
 8001b24:	45 60 00 35 	be r11,r0,8001bf8 <rtems_cpu_usage_report_with_plugin+0x1b8><== NEVER TAKEN
          continue;                                                   
                                                                      
        rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
 8001b28:	29 61 00 08 	lw r1,(r11+8)                                  
 8001b2c:	34 02 00 0d 	mvi r2,13                                      
 8001b30:	bb 60 18 00 	mv r3,fp                                       
 8001b34:	f8 00 0a 1b 	calli 80043a0 <rtems_object_get_name>          
                                                                      
        (*print)(                                                     
 8001b38:	29 63 00 08 	lw r3,(r11+8)                                  
 8001b3c:	ba 80 10 00 	mv r2,r20                                      
 8001b40:	ba 40 08 00 	mv r1,r18                                      
 8001b44:	bb 60 20 00 	mv r4,fp                                       
 8001b48:	d9 c0 00 00 	call r14                                       
        #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;                            
 8001b4c:	29 61 00 84 	lw r1,(r11+132)                                
 8001b50:	5b 81 00 70 	sw (sp+112),r1                                 
 8001b54:	29 61 00 88 	lw r1,(r11+136)                                
 8001b58:	5b 81 00 74 	sw (sp+116),r1                                 
          if ( _Thread_Executing->Object.id == the_thread->Object.id ) {
 8001b5c:	2a 01 00 0c 	lw r1,(r16+12)                                 
 8001b60:	28 22 00 08 	lw r2,(r1+8)                                   
 8001b64:	29 61 00 08 	lw r1,(r11+8)                                  
 8001b68:	5c 41 00 0f 	bne r2,r1,8001ba4 <rtems_cpu_usage_report_with_plugin+0x164>
            Timestamp_Control used;                                   
            Timestamp_Control last = _Thread_Time_of_last_context_switch;
 8001b6c:	29 81 00 00 	lw r1,(r12+0)                                  
 8001b70:	5b 81 00 58 	sw (sp+88),r1                                  
 8001b74:	29 81 00 04 	lw r1,(r12+4)                                  
 8001b78:	5b 81 00 5c 	sw (sp+92),r1                                  
            _TOD_Get_uptime( &uptime );                               
 8001b7c:	b9 e0 08 00 	mv r1,r15                                      
 8001b80:	f8 00 0f 36 	calli 8005858 <_TOD_Get_uptime>                
            _Timestamp_Subtract( &last, &uptime, &used );             
 8001b84:	37 81 00 58 	addi r1,sp,88                                  
 8001b88:	b9 e0 10 00 	mv r2,r15                                      
 8001b8c:	ba e0 18 00 	mv r3,r23                                      
 8001b90:	f8 00 1a 44 	calli 80084a0 <_Timespec_Subtract>             
            _Timestamp_Add_to( &ran, &used );                         
 8001b94:	bb 00 08 00 	mv r1,r24                                      
 8001b98:	ba e0 10 00 	mv r2,r23                                      
 8001b9c:	f8 00 19 d0 	calli 80082dc <_Timespec_Add_to>               
 8001ba0:	e0 00 00 03 	bi 8001bac <rtems_cpu_usage_report_with_plugin+0x16c>
          } else {                                                    
            _TOD_Get_uptime( &uptime );                               
 8001ba4:	b9 e0 08 00 	mv r1,r15                                      
 8001ba8:	f8 00 0f 2c 	calli 8005858 <_TOD_Get_uptime>                
          }                                                           
          _Timestamp_Subtract( &uptime_at_last_reset, &uptime, &total );
 8001bac:	37 81 00 68 	addi r1,sp,104                                 
 8001bb0:	b9 e0 10 00 	mv r2,r15                                      
 8001bb4:	bb 20 18 00 	mv r3,r25                                      
 8001bb8:	f8 00 1a 3a 	calli 80084a0 <_Timespec_Subtract>             
          _Timestamp_Divide( &ran, &total, &ival, &fval );            
 8001bbc:	37 83 00 8c 	addi r3,sp,140                                 
 8001bc0:	37 84 00 88 	addi r4,sp,136                                 
 8001bc4:	bb 00 08 00 	mv r1,r24                                      
 8001bc8:	bb 20 10 00 	mv r2,r25                                      
 8001bcc:	f8 00 19 dd 	calli 8008340 <_Timespec_Divide>               
                                                                      
          /*                                                          
           * Print the information                                    
           */                                                         
                                                                      
          (*print)( context,                                          
 8001bd0:	2b 81 00 74 	lw r1,(sp+116)                                 
 8001bd4:	34 02 03 e8 	mvi r2,1000                                    
 8001bd8:	f8 00 68 bf 	calli 801bed4 <__udivsi3>                      
 8001bdc:	2b 83 00 70 	lw r3,(sp+112)                                 
 8001be0:	2b 85 00 8c 	lw r5,(sp+140)                                 
 8001be4:	2b 86 00 88 	lw r6,(sp+136)                                 
 8001be8:	b8 20 20 00 	mv r4,r1                                       
 8001bec:	ba 60 10 00 	mv r2,r19                                      
 8001bf0:	ba 40 08 00 	mv r1,r18                                      
 8001bf4:	d9 c0 00 00 	call r14                                       
        continue;                                                     
    #endif                                                            
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
    if ( information ) {                                              
      for ( i=1 ; i <= information->maximum ; i++ ) {                 
 8001bf8:	36 b5 00 01 	addi r21,r21,1                                 
 8001bfc:	36 d6 00 04 	addi r22,r22,4                                 
 8001c00:	2e 21 00 10 	lhu r1,(r17+16)                                
 8001c04:	50 35 ff c5 	bgeu r1,r21,8001b18 <rtems_cpu_usage_report_with_plugin+0xd8>
       " ID         | NAME                                   | TICKS         | PERCENT\n"
     #endif                                                           
     "------------+----------------------------------------+---------------+---------\n"
  );                                                                  
                                                                      
  for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
 8001c08:	78 01 08 01 	mvhi r1,0x801                                  
        continue;                                                     
    #endif                                                            
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
    if ( information ) {                                              
      for ( i=1 ; i <= information->maximum ; i++ ) {                 
 8001c0c:	35 ad 00 04 	addi r13,r13,4                                 
       " ID         | NAME                                   | TICKS         | PERCENT\n"
     #endif                                                           
     "------------+----------------------------------------+---------------+---------\n"
  );                                                                  
                                                                      
  for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
 8001c10:	38 21 fc 4c 	ori r1,r1,0xfc4c                               
 8001c14:	5d a1 ff ba 	bne r13,r1,8001afc <rtems_cpu_usage_report_with_plugin+0xbc>
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    (*print)(                                                         
 8001c18:	2b 81 00 7c 	lw r1,(sp+124)                                 
 8001c1c:	34 02 03 e8 	mvi r2,1000                                    
 8001c20:	78 0b 08 01 	mvhi r11,0x801                                 
 8001c24:	f8 00 68 ac 	calli 801bed4 <__udivsi3>                      
 8001c28:	2b 83 00 78 	lw r3,(sp+120)                                 
 8001c2c:	39 6b d1 a0 	ori r11,r11,0xd1a0                             
 8001c30:	b8 20 20 00 	mv r4,r1                                       
 8001c34:	b9 60 10 00 	mv r2,r11                                      
 8001c38:	ba 40 08 00 	mv r1,r18                                      
 8001c3c:	d9 c0 00 00 	call r14                                       
       "-------------------------------------------------------------------------------\n",
       _Watchdog_Ticks_since_boot - CPU_usage_Ticks_at_last_reset,    
       total_units                                                    
    );                                                                
  #endif                                                              
}                                                                     
 8001c40:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8001c44:	2b 8b 00 44 	lw r11,(sp+68)                                 
 8001c48:	2b 8c 00 40 	lw r12,(sp+64)                                 
 8001c4c:	2b 8d 00 3c 	lw r13,(sp+60)                                 
 8001c50:	2b 8e 00 38 	lw r14,(sp+56)                                 
 8001c54:	2b 8f 00 34 	lw r15,(sp+52)                                 
 8001c58:	2b 90 00 30 	lw r16,(sp+48)                                 
 8001c5c:	2b 91 00 2c 	lw r17,(sp+44)                                 
 8001c60:	2b 92 00 28 	lw r18,(sp+40)                                 
 8001c64:	2b 93 00 24 	lw r19,(sp+36)                                 
 8001c68:	2b 94 00 20 	lw r20,(sp+32)                                 
 8001c6c:	2b 95 00 1c 	lw r21,(sp+28)                                 
 8001c70:	2b 96 00 18 	lw r22,(sp+24)                                 
 8001c74:	2b 97 00 14 	lw r23,(sp+20)                                 
 8001c78:	2b 98 00 10 	lw r24,(sp+16)                                 
 8001c7c:	2b 99 00 0c 	lw r25,(sp+12)                                 
 8001c80:	2b 9b 00 08 	lw fp,(sp+8)                                   
 8001c84:	37 9c 00 8c 	addi sp,sp,140                                 
 8001c88:	c3 a0 00 00 	ret                                            
                                                                      

0800b310 <rtems_deviceio_errno>: [RTEMS_IO_ERROR] = EIO, [RTEMS_PROXY_BLOCKING] = EIO }; int rtems_deviceio_errno(rtems_status_code sc) {
 800b310:	37 9c ff f8 	addi sp,sp,-8                                  
 800b314:	5b 8b 00 08 	sw (sp+8),r11                                  
 800b318:	5b 9d 00 04 	sw (sp+4),ra                                   
  if (sc == RTEMS_SUCCESSFUL) {                                       
    return 0;                                                         
 800b31c:	34 02 00 00 	mvi r2,0                                       
  [RTEMS_PROXY_BLOCKING]           = EIO                              
};                                                                    
                                                                      
int rtems_deviceio_errno(rtems_status_code sc)                        
{                                                                     
  if (sc == RTEMS_SUCCESSFUL) {                                       
 800b320:	44 20 00 0d 	be r1,r0,800b354 <rtems_deviceio_errno+0x44>   
    return 0;                                                         
  } else {                                                            
    int eno = EINVAL;                                                 
                                                                      
    if ((unsigned) sc <= RTEMS_STATUS_CODES_LAST) {                   
 800b324:	34 02 00 1c 	mvi r2,28                                      
int rtems_deviceio_errno(rtems_status_code sc)                        
{                                                                     
  if (sc == RTEMS_SUCCESSFUL) {                                       
    return 0;                                                         
  } else {                                                            
    int eno = EINVAL;                                                 
 800b328:	34 0b 00 16 	mvi r11,22                                     
                                                                      
    if ((unsigned) sc <= RTEMS_STATUS_CODES_LAST) {                   
 800b32c:	54 22 00 07 	bgu r1,r2,800b348 <rtems_deviceio_errno+0x38>  <== NEVER TAKEN
      eno = status_code_to_errno [sc];                                
 800b330:	78 0b 08 01 	mvhi r11,0x801                                 
 800b334:	34 02 00 02 	mvi r2,2                                       
 800b338:	39 6b 20 44 	ori r11,r11,0x2044                             
 800b33c:	f8 00 15 53 	calli 8010888 <__ashlsi3>                      
 800b340:	b5 61 08 00 	add r1,r11,r1                                  
 800b344:	28 2b 00 00 	lw r11,(r1+0)                                  
    }                                                                 
                                                                      
    errno = eno;                                                      
 800b348:	f8 00 00 12 	calli 800b390 <__errno>                        
 800b34c:	58 2b 00 00 	sw (r1+0),r11                                  
                                                                      
    return -1;                                                        
 800b350:	34 02 ff ff 	mvi r2,-1                                      
  }                                                                   
}                                                                     
 800b354:	b8 40 08 00 	mv r1,r2                                       
 800b358:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800b35c:	2b 8b 00 08 	lw r11,(sp+8)                                  
 800b360:	37 9c 00 08 	addi sp,sp,8                                   
 800b364:	c3 a0 00 00 	ret                                            
                                                                      

080085b8 <rtems_filesystem_get_mount_handler>: rtems_filesystem_fsmount_me_t rtems_filesystem_get_mount_handler( const char *type ) {
 80085b8:	37 9c ff f4 	addi sp,sp,-12                                 
 80085bc:	5b 9d 00 04 	sw (sp+4),ra                                   
  find_arg fa = {                                                     
 80085c0:	5b 81 00 08 	sw (sp+8),r1                                   
 80085c4:	5b 80 00 0c 	sw (sp+12),r0                                  
    .type = type,                                                     
    .mount_h = NULL                                                   
  };                                                                  
                                                                      
  if ( type != NULL ) {                                               
 80085c8:	44 20 00 05 	be r1,r0,80085dc <rtems_filesystem_get_mount_handler+0x24><== NEVER TAKEN
    rtems_filesystem_iterate( find_handler, &fa );                    
 80085cc:	78 01 08 00 	mvhi r1,0x800                                  
 80085d0:	38 21 84 54 	ori r1,r1,0x8454                               
 80085d4:	37 82 00 08 	addi r2,sp,8                                   
 80085d8:	fb ff ff c7 	calli 80084f4 <rtems_filesystem_iterate>       
  }                                                                   
                                                                      
  return fa.mount_h;                                                  
}                                                                     
 80085dc:	2b 81 00 0c 	lw r1,(sp+12)                                  
 80085e0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80085e4:	37 9c 00 0c 	addi sp,sp,12                                  
 80085e8:	c3 a0 00 00 	ret                                            
                                                                      

08000f90 <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 ) {
 8000f90:	37 9c ff dc 	addi sp,sp,-36                                 
 8000f94:	5b 8b 00 10 	sw (sp+16),r11                                 
 8000f98:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8000f9c:	5b 8d 00 08 	sw (sp+8),r13                                  
 8000fa0:	5b 9d 00 04 	sw (sp+4),ra                                   
                                                                      
  /*                                                                  
   *  Set the default umask to "022".                                 
   */                                                                 
                                                                      
  rtems_filesystem_umask = 022;                                       
 8000fa4:	78 0b 08 01 	mvhi r11,0x801                                 
 8000fa8:	39 6b 31 4c 	ori r11,r11,0x314c                             
 8000fac:	29 62 00 00 	lw r2,(r11+0)                                  
 8000fb0:	34 01 00 12 	mvi r1,18                                      
 8000fb4:	58 41 00 2c 	sw (r2+44),r1                                  
                                                                      
  /*                                                                  
   *  mount the first filesystem.                                     
   */                                                                 
  if ( rtems_filesystem_mount_table_size == 0 )                       
 8000fb8:	78 01 08 01 	mvhi r1,0x801                                  
 8000fbc:	38 21 1a 60 	ori r1,r1,0x1a60                               
 8000fc0:	28 21 00 00 	lw r1,(r1+0)                                   
    rtems_fatal_error_occurred( 0xABCD0001 );                         
 8000fc4:	78 02 08 01 	mvhi r2,0x801                                  
 8000fc8:	38 42 1b c0 	ori r2,r2,0x1bc0                               
  rtems_filesystem_umask = 022;                                       
                                                                      
  /*                                                                  
   *  mount the first filesystem.                                     
   */                                                                 
  if ( rtems_filesystem_mount_table_size == 0 )                       
 8000fcc:	44 20 00 0e 	be r1,r0,8001004 <rtems_filesystem_initialize+0x74><== NEVER TAKEN
    rtems_fatal_error_occurred( 0xABCD0001 );                         
                                                                      
  mt = &rtems_filesystem_mount_table[0];                              
 8000fd0:	78 01 08 01 	mvhi r1,0x801                                  
 8000fd4:	38 21 30 18 	ori r1,r1,0x3018                               
 8000fd8:	28 24 00 00 	lw r4,(r1+0)                                   
                                                                      
  status = mount( mt->device, mt->mount_point, mt->type, mt->fsoptions, NULL );
 8000fdc:	34 05 00 00 	mvi r5,0                                       
 8000fe0:	28 82 00 0c 	lw r2,(r4+12)                                  
 8000fe4:	28 81 00 08 	lw r1,(r4+8)                                   
 8000fe8:	28 83 00 00 	lw r3,(r4+0)                                   
 8000fec:	28 84 00 04 	lw r4,(r4+4)                                   
 8000ff0:	f8 00 02 83 	calli 80019fc <mount>                          
  if ( status == -1 )                                                 
 8000ff4:	34 02 ff ff 	mvi r2,-1                                      
 8000ff8:	5c 22 00 05 	bne r1,r2,800100c <rtems_filesystem_initialize+0x7c><== ALWAYS TAKEN
    rtems_fatal_error_occurred( 0xABCD0002 );                         
 8000ffc:	78 02 08 01 	mvhi r2,0x801                                  <== NOT EXECUTED
 8001000:	38 42 1b c4 	ori r2,r2,0x1bc4                               <== NOT EXECUTED
 8001004:	28 41 00 00 	lw r1,(r2+0)                                   <== NOT EXECUTED
 8001008:	f8 00 08 38 	calli 80030e8 <rtems_fatal_error_occurred>     <== NOT EXECUTED
                                                                      
  rtems_filesystem_link_counts = 0;                                   
 800100c:	29 61 00 00 	lw r1,(r11+0)                                  
   *       gonna hit performance.                                     
   *                                                                  
   *       Till Straumann, 10/25/2002                                 
   */                                                                 
  /* Clone the root pathloc */                                        
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
 8001010:	78 0c 08 01 	mvhi r12,0x801                                 
 8001014:	39 8c 1b b4 	ori r12,r12,0x1bb4                             
 8001018:	37 8d 00 14 	addi r13,sp,20                                 
                                                                      
  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;                                   
 800101c:	0c 20 00 30 	sh (r1+48),r0                                  
   *       gonna hit performance.                                     
   *                                                                  
   *       Till Straumann, 10/25/2002                                 
   */                                                                 
  /* Clone the root pathloc */                                        
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
 8001020:	34 02 00 01 	mvi r2,1                                       
 8001024:	34 03 00 00 	mvi r3,0                                       
 8001028:	b9 a0 20 00 	mv r4,r13                                      
 800102c:	34 05 00 00 	mvi r5,0                                       
 8001030:	b9 80 08 00 	mv r1,r12                                      
 8001034:	f8 00 00 6b 	calli 80011e0 <rtems_filesystem_evaluate_path> 
  rtems_filesystem_root        = loc;                                 
 8001038:	29 61 00 00 	lw r1,(r11+0)                                  
 800103c:	2b 82 00 14 	lw r2,(sp+20)                                  
  /* One more clone for the current node */                           
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
 8001040:	34 03 00 00 	mvi r3,0                                       
 8001044:	b9 a0 20 00 	mv r4,r13                                      
   *                                                                  
   *       Till Straumann, 10/25/2002                                 
   */                                                                 
  /* Clone the root pathloc */                                        
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
  rtems_filesystem_root        = loc;                                 
 8001048:	58 22 00 18 	sw (r1+24),r2                                  
 800104c:	2b 82 00 18 	lw r2,(sp+24)                                  
  /* One more clone for the current node */                           
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
 8001050:	34 05 00 00 	mvi r5,0                                       
   *                                                                  
   *       Till Straumann, 10/25/2002                                 
   */                                                                 
  /* Clone the root pathloc */                                        
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
  rtems_filesystem_root        = loc;                                 
 8001054:	58 22 00 1c 	sw (r1+28),r2                                  
 8001058:	2b 82 00 1c 	lw r2,(sp+28)                                  
 800105c:	58 22 00 20 	sw (r1+32),r2                                  
 8001060:	2b 82 00 20 	lw r2,(sp+32)                                  
 8001064:	58 22 00 24 	sw (r1+36),r2                                  
 8001068:	2b 82 00 24 	lw r2,(sp+36)                                  
 800106c:	58 22 00 28 	sw (r1+40),r2                                  
  /* One more clone for the current node */                           
  rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);                 
 8001070:	34 02 00 01 	mvi r2,1                                       
 8001074:	b9 80 08 00 	mv r1,r12                                      
 8001078:	f8 00 00 5a 	calli 80011e0 <rtems_filesystem_evaluate_path> 
  rtems_filesystem_current     = loc;                                 
 800107c:	29 61 00 00 	lw r1,(r11+0)                                  
 8001080:	2b 82 00 14 	lw r2,(sp+20)                                  
 8001084:	58 22 00 04 	sw (r1+4),r2                                   
 8001088:	2b 82 00 18 	lw r2,(sp+24)                                  
 800108c:	58 22 00 08 	sw (r1+8),r2                                   
 8001090:	2b 82 00 1c 	lw r2,(sp+28)                                  
 8001094:	58 22 00 0c 	sw (r1+12),r2                                  
 8001098:	2b 82 00 20 	lw r2,(sp+32)                                  
 800109c:	58 22 00 10 	sw (r1+16),r2                                  
 80010a0:	2b 82 00 24 	lw r2,(sp+36)                                  
 80010a4:	58 22 00 14 	sw (r1+20),r2                                  
   *                                                                  
   *  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);                                      
 80010a8:	78 01 08 01 	mvhi r1,0x801                                  
 80010ac:	34 02 01 ff 	mvi r2,511                                     
 80010b0:	38 21 1b b8 	ori r1,r1,0x1bb8                               
 80010b4:	f8 00 01 d4 	calli 8001804 <mkdir>                          
  if ( status != 0 )                                                  
    rtems_fatal_error_occurred( 0xABCD0003 );                         
 80010b8:	78 02 08 01 	mvhi r2,0x801                                  
 80010bc:	38 42 1b c8 	ori r2,r2,0x1bc8                               
   *  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);                                      
  if ( status != 0 )                                                  
 80010c0:	5c 20 ff d1 	bne r1,r0,8001004 <rtems_filesystem_initialize+0x74><== NEVER TAKEN
   *  it will be mounted onto is created.  Moreover, if it is going to
   *  use a device, then it is REALLY unfair to attempt this          
   *  before device drivers are initialized.  So we return via a base 
   *  filesystem image and nothing auto-mounted at this point.        
   */                                                                 
}                                                                     
 80010c4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80010c8:	2b 8b 00 10 	lw r11,(sp+16)                                 
 80010cc:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 80010d0:	2b 8d 00 08 	lw r13,(sp+8)                                  
 80010d4:	37 9c 00 24 	addi sp,sp,36                                  
 80010d8:	c3 a0 00 00 	ret                                            
                                                                      

080084f4 <rtems_filesystem_iterate>: bool rtems_filesystem_iterate( rtems_per_filesystem_routine routine, void *routine_arg ) {
 80084f4:	37 9c ff e8 	addi sp,sp,-24                                 
 80084f8:	5b 8b 00 18 	sw (sp+24),r11                                 
 80084fc:	5b 8c 00 14 	sw (sp+20),r12                                 
 8008500:	5b 8d 00 10 	sw (sp+16),r13                                 
 8008504:	5b 8e 00 0c 	sw (sp+12),r14                                 
 8008508:	5b 8f 00 08 	sw (sp+8),r15                                  
 800850c:	5b 9d 00 04 	sw (sp+4),ra                                   
  const rtems_filesystem_table_t *table_entry = &rtems_filesystem_table [0];
 8008510:	78 0b 08 01 	mvhi r11,0x801                                 
                                                                      
bool rtems_filesystem_iterate(                                        
  rtems_per_filesystem_routine routine,                               
  void *routine_arg                                                   
)                                                                     
{                                                                     
 8008514:	b8 20 70 00 	mv r14,r1                                      
 8008518:	b8 40 78 00 	mv r15,r2                                      
  const rtems_filesystem_table_t *table_entry = &rtems_filesystem_table [0];
  rtems_chain_node *node = NULL;                                      
  bool stop = false;                                                  
 800851c:	34 03 00 00 	mvi r3,0                                       
bool rtems_filesystem_iterate(                                        
  rtems_per_filesystem_routine routine,                               
  void *routine_arg                                                   
)                                                                     
{                                                                     
  const rtems_filesystem_table_t *table_entry = &rtems_filesystem_table [0];
 8008520:	39 6b 1a 40 	ori r11,r11,0x1a40                             
  rtems_chain_node *node = NULL;                                      
  bool stop = false;                                                  
                                                                      
  while ( table_entry->type && !stop ) {                              
 8008524:	e0 00 00 06 	bi 800853c <rtems_filesystem_iterate+0x48>     
    stop = (*routine)( table_entry, routine_arg );                    
 8008528:	b9 60 08 00 	mv r1,r11                                      
 800852c:	b9 e0 10 00 	mv r2,r15                                      
 8008530:	d9 c0 00 00 	call r14                                       
 8008534:	b8 20 18 00 	mv r3,r1                                       
    ++table_entry;                                                    
 8008538:	35 6b 00 08 	addi r11,r11,8                                 
{                                                                     
  const rtems_filesystem_table_t *table_entry = &rtems_filesystem_table [0];
  rtems_chain_node *node = NULL;                                      
  bool stop = false;                                                  
                                                                      
  while ( table_entry->type && !stop ) {                              
 800853c:	29 61 00 00 	lw r1,(r11+0)                                  
 8008540:	44 20 00 03 	be r1,r0,800854c <rtems_filesystem_iterate+0x58>
 8008544:	44 60 ff f9 	be r3,r0,8008528 <rtems_filesystem_iterate+0x34>
 8008548:	e0 00 00 13 	bi 8008594 <rtems_filesystem_iterate+0xa0>     
 800854c:	b8 60 58 00 	mv r11,r3                                      
    stop = (*routine)( table_entry, routine_arg );                    
    ++table_entry;                                                    
  }                                                                   
                                                                      
  if ( !stop ) {                                                      
 8008550:	5c 23 00 11 	bne r1,r3,8008594 <rtems_filesystem_iterate+0xa0>
    rtems_libio_lock();                                               
 8008554:	fb ff ff d4 	calli 80084a4 <rtems_libio_lock>               
    }                                                                 
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  rtems_set_errno_and_return_minus_one( ENOENT );                     
}                                                                     
 8008558:	78 03 08 01 	mvhi r3,0x801                                  
 800855c:	38 63 31 54 	ori r3,r3,0x3154                               
    ++table_entry;                                                    
  }                                                                   
                                                                      
  if ( !stop ) {                                                      
    rtems_libio_lock();                                               
    for (                                                             
 8008560:	78 0d 08 01 	mvhi r13,0x801                                 
    }                                                                 
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  rtems_set_errno_and_return_minus_one( ENOENT );                     
}                                                                     
 8008564:	28 6c 00 00 	lw r12,(r3+0)                                  
    ++table_entry;                                                    
  }                                                                   
                                                                      
  if ( !stop ) {                                                      
    rtems_libio_lock();                                               
    for (                                                             
 8008568:	39 ad 31 58 	ori r13,r13,0x3158                             
 800856c:	e0 00 00 06 	bi 8008584 <rtems_filesystem_iterate+0x90>     
      !rtems_chain_is_tail( &filesystem_chain, node ) && !stop;       
      node = rtems_chain_next( node )                                 
    ) {                                                               
      const filesystem_node *fsn = (filesystem_node *) node;          
                                                                      
      stop = (*routine)( &fsn->entry, routine_arg );                  
 8008570:	35 81 00 08 	addi r1,r12,8                                  
 8008574:	b9 e0 10 00 	mv r2,r15                                      
 8008578:	d9 c0 00 00 	call r14                                       
    }                                                                 
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  rtems_set_errno_and_return_minus_one( ENOENT );                     
}                                                                     
 800857c:	29 8c 00 00 	lw r12,(r12+0)                                 
      !rtems_chain_is_tail( &filesystem_chain, node ) && !stop;       
      node = rtems_chain_next( node )                                 
    ) {                                                               
      const filesystem_node *fsn = (filesystem_node *) node;          
                                                                      
      stop = (*routine)( &fsn->entry, routine_arg );                  
 8008580:	b8 20 58 00 	mv r11,r1                                      
    ++table_entry;                                                    
  }                                                                   
                                                                      
  if ( !stop ) {                                                      
    rtems_libio_lock();                                               
    for (                                                             
 8008584:	45 8d 00 02 	be r12,r13,800858c <rtems_filesystem_iterate+0x98>
      node = rtems_chain_first( &filesystem_chain );                  
      !rtems_chain_is_tail( &filesystem_chain, node ) && !stop;       
 8008588:	45 60 ff fa 	be r11,r0,8008570 <rtems_filesystem_iterate+0x7c><== ALWAYS TAKEN
    ) {                                                               
      const filesystem_node *fsn = (filesystem_node *) node;          
                                                                      
      stop = (*routine)( &fsn->entry, routine_arg );                  
    }                                                                 
    rtems_libio_unlock();                                             
 800858c:	fb ff ff d1 	calli 80084d0 <rtems_libio_unlock>             
 8008590:	b9 60 18 00 	mv r3,r11                                      
  }                                                                   
                                                                      
  return stop;                                                        
}                                                                     
 8008594:	b8 60 08 00 	mv r1,r3                                       
 8008598:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800859c:	2b 8b 00 18 	lw r11,(sp+24)                                 
 80085a0:	2b 8c 00 14 	lw r12,(sp+20)                                 
 80085a4:	2b 8d 00 10 	lw r13,(sp+16)                                 
 80085a8:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 80085ac:	2b 8f 00 08 	lw r15,(sp+8)                                  
 80085b0:	37 9c 00 18 	addi sp,sp,24                                  
 80085b4:	c3 a0 00 00 	ret                                            
                                                                      

08001974 <rtems_filesystem_mount_iterate>: bool rtems_filesystem_mount_iterate( rtems_per_filesystem_mount_routine routine, void *routine_arg ) {
 8001974:	37 9c ff e8 	addi sp,sp,-24                                 
 8001978:	5b 8b 00 18 	sw (sp+24),r11                                 
 800197c:	5b 8c 00 14 	sw (sp+20),r12                                 
 8001980:	5b 8d 00 10 	sw (sp+16),r13                                 
 8001984:	5b 8e 00 0c 	sw (sp+12),r14                                 
 8001988:	5b 8f 00 08 	sw (sp+8),r15                                  
 800198c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8001990:	b8 20 78 00 	mv r15,r1                                      
 8001994:	b8 40 70 00 	mv r14,r2                                      
  rtems_chain_node *node = NULL;                                      
  bool stop = false;                                                  
                                                                      
  rtems_libio_lock();                                                 
 8001998:	fb ff ff e3 	calli 8001924 <rtems_libio_lock>               
    stop = (*routine)( mt_entry, routine_arg );                       
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  return stop;                                                        
}                                                                     
 800199c:	78 03 08 01 	mvhi r3,0x801                                  
 80019a0:	38 63 31 40 	ori r3,r3,0x3140                               
{                                                                     
  rtems_chain_node *node = NULL;                                      
  bool stop = false;                                                  
                                                                      
  rtems_libio_lock();                                                 
  for (                                                               
 80019a4:	78 0d 08 01 	mvhi r13,0x801                                 
    stop = (*routine)( mt_entry, routine_arg );                       
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  return stop;                                                        
}                                                                     
 80019a8:	28 6b 00 00 	lw r11,(r3+0)                                  
  rtems_per_filesystem_mount_routine routine,                         
  void *routine_arg                                                   
)                                                                     
{                                                                     
  rtems_chain_node *node = NULL;                                      
  bool stop = false;                                                  
 80019ac:	34 0c 00 00 	mvi r12,0                                      
                                                                      
  rtems_libio_lock();                                                 
  for (                                                               
 80019b0:	39 ad 31 44 	ori r13,r13,0x3144                             
 80019b4:	e0 00 00 06 	bi 80019cc <rtems_filesystem_mount_iterate+0x58>
    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 );                       
 80019b8:	b9 60 08 00 	mv r1,r11                                      
 80019bc:	b9 c0 10 00 	mv r2,r14                                      
 80019c0:	d9 e0 00 00 	call r15                                       
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  return stop;                                                        
}                                                                     
 80019c4:	29 6b 00 00 	lw r11,(r11+0)                                 
    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 );                       
 80019c8:	b8 20 60 00 	mv r12,r1                                      
{                                                                     
  rtems_chain_node *node = NULL;                                      
  bool stop = false;                                                  
                                                                      
  rtems_libio_lock();                                                 
  for (                                                               
 80019cc:	45 6d 00 02 	be r11,r13,80019d4 <rtems_filesystem_mount_iterate+0x60>
    node = rtems_chain_first( &mount_chain );                         
    !rtems_chain_is_tail( &mount_chain, node ) && !stop;              
 80019d0:	45 80 ff fa 	be r12,r0,80019b8 <rtems_filesystem_mount_iterate+0x44><== ALWAYS TAKEN
    const rtems_filesystem_mount_table_entry_t *mt_entry =            
      (rtems_filesystem_mount_table_entry_t *) node;                  
                                                                      
    stop = (*routine)( mt_entry, routine_arg );                       
  }                                                                   
  rtems_libio_unlock();                                               
 80019d4:	fb ff ff df 	calli 8001950 <rtems_libio_unlock>             
                                                                      
  return stop;                                                        
}                                                                     
 80019d8:	b9 80 08 00 	mv r1,r12                                      
 80019dc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80019e0:	2b 8b 00 18 	lw r11,(sp+24)                                 
 80019e4:	2b 8c 00 14 	lw r12,(sp+20)                                 
 80019e8:	2b 8d 00 10 	lw r13,(sp+16)                                 
 80019ec:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 80019f0:	2b 8f 00 08 	lw r15,(sp+8)                                  
 80019f4:	37 9c 00 18 	addi sp,sp,24                                  
 80019f8:	c3 a0 00 00 	ret                                            
                                                                      

0800129c <rtems_filesystem_prefix_separators>: int rtems_filesystem_prefix_separators( const char *pathname, int pathnamelen ) {
 800129c:	37 9c ff f0 	addi sp,sp,-16                                 
 80012a0:	5b 8b 00 10 	sw (sp+16),r11                                 
 80012a4:	5b 8c 00 0c 	sw (sp+12),r12                                 
 80012a8:	5b 8d 00 08 	sw (sp+8),r13                                  
 80012ac:	5b 9d 00 04 	sw (sp+4),ra                                   
  /*                                                                  
   * Eat any separators at start of the path.                         
   */                                                                 
  int stripped = 0;                                                   
 80012b0:	34 0b 00 00 	mvi r11,0                                      
                                                                      
int rtems_filesystem_prefix_separators(                               
  const char  *pathname,                                              
  int          pathnamelen                                            
)                                                                     
{                                                                     
 80012b4:	b8 20 68 00 	mv r13,r1                                      
 80012b8:	b8 40 60 00 	mv r12,r2                                      
  /*                                                                  
   * Eat any separators at start of the path.                         
   */                                                                 
  int stripped = 0;                                                   
  while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) )
 80012bc:	e0 00 00 02 	bi 80012c4 <rtems_filesystem_prefix_separators+0x28>
  {                                                                   
    pathname++;                                                       
    pathnamelen--;                                                    
    stripped++;                                                       
 80012c0:	35 6b 00 01 	addi r11,r11,1                                 
  }                                                                   
                                                                      
  return len;                                                         
}                                                                     
                                                                      
int rtems_filesystem_prefix_separators(                               
 80012c4:	b5 ab 08 00 	add r1,r13,r11                                 
{                                                                     
  /*                                                                  
   * Eat any separators at start of the path.                         
   */                                                                 
  int stripped = 0;                                                   
  while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) )
 80012c8:	40 21 00 00 	lbu r1,(r1+0)                                  
 80012cc:	fd 8b 18 00 	cmpne r3,r12,r11                               
 80012d0:	7c 22 00 00 	cmpnei r2,r1,0                                 
 80012d4:	a0 62 10 00 	and r2,r3,r2                                   
 80012d8:	44 40 00 03 	be r2,r0,80012e4 <rtems_filesystem_prefix_separators+0x48><== NEVER TAKEN
 80012dc:	f8 00 04 38 	calli 80023bc <rtems_filesystem_is_separator>  
 80012e0:	5c 20 ff f8 	bne r1,r0,80012c0 <rtems_filesystem_prefix_separators+0x24>
    pathname++;                                                       
    pathnamelen--;                                                    
    stripped++;                                                       
  }                                                                   
  return stripped;                                                    
}                                                                     
 80012e4:	b9 60 08 00 	mv r1,r11                                      
 80012e8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80012ec:	2b 8b 00 10 	lw r11,(sp+16)                                 
 80012f0:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 80012f4:	2b 8d 00 08 	lw r13,(sp+8)                                  
 80012f8:	37 9c 00 10 	addi sp,sp,16                                  
 80012fc:	c3 a0 00 00 	ret                                            
                                                                      

080086b8 <rtems_filesystem_unregister>: int rtems_filesystem_unregister( const char *type ) {
 80086b8:	37 9c ff f0 	addi sp,sp,-16                                 
 80086bc:	5b 8b 00 10 	sw (sp+16),r11                                 
 80086c0:	5b 8c 00 0c 	sw (sp+12),r12                                 
 80086c4:	5b 8d 00 08 	sw (sp+8),r13                                  
 80086c8:	5b 9d 00 04 	sw (sp+4),ra                                   
 80086cc:	b8 20 68 00 	mv r13,r1                                      
  rtems_chain_node *node = NULL;                                      
                                                                      
  if ( type == NULL ) {                                               
 80086d0:	5c 20 00 04 	bne r1,r0,80086e0 <rtems_filesystem_unregister+0x28>
    rtems_set_errno_and_return_minus_one( EINVAL );                   
 80086d4:	f8 00 0b 2f 	calli 800b390 <__errno>                        
 80086d8:	34 02 00 16 	mvi r2,22                                      
 80086dc:	e0 00 00 18 	bi 800873c <rtems_filesystem_unregister+0x84>  
  }                                                                   
                                                                      
  rtems_libio_lock();                                                 
 80086e0:	fb ff ff 71 	calli 80084a4 <rtems_libio_lock>               
    }                                                                 
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  rtems_set_errno_and_return_minus_one( ENOENT );                     
}                                                                     
 80086e4:	78 03 08 01 	mvhi r3,0x801                                  
 80086e8:	38 63 31 54 	ori r3,r3,0x3154                               
  if ( type == NULL ) {                                               
    rtems_set_errno_and_return_minus_one( EINVAL );                   
  }                                                                   
                                                                      
  rtems_libio_lock();                                                 
  for (                                                               
 80086ec:	78 0c 08 01 	mvhi r12,0x801                                 
    }                                                                 
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  rtems_set_errno_and_return_minus_one( ENOENT );                     
}                                                                     
 80086f0:	28 6b 00 00 	lw r11,(r3+0)                                  
  if ( type == NULL ) {                                               
    rtems_set_errno_and_return_minus_one( EINVAL );                   
  }                                                                   
                                                                      
  rtems_libio_lock();                                                 
  for (                                                               
 80086f4:	39 8c 31 58 	ori r12,r12,0x3158                             
 80086f8:	e0 00 00 0d 	bi 800872c <rtems_filesystem_unregister+0x74>  
    !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 ) {                     
 80086fc:	29 61 00 08 	lw r1,(r11+8)                                  
 8008700:	b9 a0 10 00 	mv r2,r13                                      
 8008704:	f8 00 0f 4d 	calli 800c438 <strcmp>                         
 8008708:	5c 20 00 08 	bne r1,r0,8008728 <rtems_filesystem_unregister+0x70><== NEVER TAKEN
 */                                                                   
RTEMS_INLINE_ROUTINE void rtems_chain_extract(                        
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Extract( the_node );                                         
 800870c:	b9 60 08 00 	mv r1,r11                                      
 8008710:	fb ff eb 82 	calli 8003518 <_Chain_Extract>                 
      rtems_chain_extract( node );                                    
      free( fsn );                                                    
 8008714:	b9 60 08 00 	mv r1,r11                                      
 8008718:	fb ff e3 02 	calli 8001320 <free>                           
      rtems_libio_unlock();                                           
 800871c:	fb ff ff 6d 	calli 80084d0 <rtems_libio_unlock>             
                                                                      
      return 0;                                                       
 8008720:	34 01 00 00 	mvi r1,0                                       
 8008724:	e0 00 00 08 	bi 8008744 <rtems_filesystem_unregister+0x8c>  
    }                                                                 
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  rtems_set_errno_and_return_minus_one( ENOENT );                     
}                                                                     
 8008728:	29 6b 00 00 	lw r11,(r11+0)                                 
  if ( type == NULL ) {                                               
    rtems_set_errno_and_return_minus_one( EINVAL );                   
  }                                                                   
                                                                      
  rtems_libio_lock();                                                 
  for (                                                               
 800872c:	5d 6c ff f4 	bne r11,r12,80086fc <rtems_filesystem_unregister+0x44><== NEVER TAKEN
      rtems_libio_unlock();                                           
                                                                      
      return 0;                                                       
    }                                                                 
  }                                                                   
  rtems_libio_unlock();                                               
 8008730:	fb ff ff 68 	calli 80084d0 <rtems_libio_unlock>             
                                                                      
  rtems_set_errno_and_return_minus_one( ENOENT );                     
 8008734:	f8 00 0b 17 	calli 800b390 <__errno>                        
 8008738:	34 02 00 02 	mvi r2,2                                       
 800873c:	58 22 00 00 	sw (r1+0),r2                                   
 8008740:	34 01 ff ff 	mvi r1,-1                                      
}                                                                     
 8008744:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8008748:	2b 8b 00 10 	lw r11,(sp+16)                                 
 800874c:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8008750:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8008754:	37 9c 00 10 	addi sp,sp,16                                  
 8008758:	c3 a0 00 00 	ret                                            
                                                                      

08001f10 <rtems_gxx_key_create>: int rtems_gxx_key_create (__gthread_key_t *key, void (*dtor) (void *)) {
 8001f10:	37 9c ff f0 	addi sp,sp,-16                                 
 8001f14:	5b 8b 00 10 	sw (sp+16),r11                                 
 8001f18:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8001f1c:	5b 8d 00 08 	sw (sp+8),r13                                  
 8001f20:	5b 9d 00 04 	sw (sp+4),ra                                   
 8001f24:	b8 20 68 00 	mv r13,r1                                      
   * 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 ) );
 8001f28:	34 01 00 08 	mvi r1,8                                       
  }                                                                   
  return 0;                                                           
}                                                                     
                                                                      
int rtems_gxx_key_create (__gthread_key_t *key, void (*dtor) (void *))
{                                                                     
 8001f2c:	b8 40 60 00 	mv r12,r2                                      
   * 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 ) );
 8001f30:	f8 00 01 4a 	calli 8002458 <malloc>                         
  *key = new_key;                                                     
 8001f34:	59 a1 00 00 	sw (r13+0),r1                                  
   * 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 ) );
 8001f38:	b8 20 58 00 	mv r11,r1                                      
  *key = new_key;                                                     
  new_key->val  = NULL;                                               
 8001f3c:	58 20 00 00 	sw (r1+0),r0                                   
  new_key->dtor = dtor;                                               
 8001f40:	58 2c 00 04 	sw (r1+4),r12                                  
      "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 );
 8001f44:	b9 60 10 00 	mv r2,r11                                      
 8001f48:	34 01 00 00 	mvi r1,0                                       
 8001f4c:	b9 80 18 00 	mv r3,r12                                      
 8001f50:	f8 00 07 65 	calli 8003ce4 <rtems_task_variable_add>        
  if ( status == RTEMS_SUCCESSFUL )                                   
    return 0;                                                         
 8001f54:	34 02 00 00 	mvi r2,0                                       
    );                                                                
  #endif                                                              
                                                                      
  /* register with RTEMS the buffer that will hold the key values */  
  status = rtems_task_variable_add( RTEMS_SELF, (void **)new_key, dtor );
  if ( status == RTEMS_SUCCESSFUL )                                   
 8001f58:	44 20 00 04 	be r1,r0,8001f68 <rtems_gxx_key_create+0x58>   <== ALWAYS TAKEN
    return 0;                                                         
                                                                      
  free( new_key );                                                    
 8001f5c:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 8001f60:	fb ff ff 72 	calli 8001d28 <free>                           <== NOT EXECUTED
  return -1;                                                          
 8001f64:	34 02 ff ff 	mvi r2,-1                                      <== NOT EXECUTED
}                                                                     
 8001f68:	b8 40 08 00 	mv r1,r2                                       
 8001f6c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8001f70:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8001f74:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8001f78:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8001f7c:	37 9c 00 10 	addi sp,sp,16                                  
 8001f80:	c3 a0 00 00 	ret                                            
                                                                      

08001f90 <rtems_gxx_key_delete>: int rtems_gxx_key_delete (__gthread_key_t key) {
 8001f90:	37 9c ff f8 	addi sp,sp,-8                                  
 8001f94:	5b 8b 00 08 	sw (sp+8),r11                                  
 8001f98:	5b 9d 00 04 	sw (sp+4),ra                                   
 8001f9c:	b8 20 58 00 	mv r11,r1                                      
  #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 );    
 8001fa0:	b9 60 10 00 	mv r2,r11                                      
 8001fa4:	34 01 00 00 	mvi r1,0                                       
 8001fa8:	f8 00 07 7e 	calli 8003da0 <rtems_task_variable_delete>     
  if ( status == RTEMS_SUCCESSFUL ) {                                 
 8001fac:	5c 20 00 04 	bne r1,r0,8001fbc <rtems_gxx_key_delete+0x2c>  <== NEVER TAKEN
    /* Hmm - hopefully all tasks using this key have gone away... */  
    if ( key ) free( *(void **)key );                                 
 8001fb0:	45 61 00 03 	be r11,r1,8001fbc <rtems_gxx_key_delete+0x2c>  <== NEVER TAKEN
 8001fb4:	29 61 00 00 	lw r1,(r11+0)                                  
 8001fb8:	fb ff ff 5c 	calli 8001d28 <free>                           
    return 0;                                                         
  }                                                                   
  key = NULL;                                                         
  return 0;                                                           
}                                                                     
 8001fbc:	34 01 00 00 	mvi r1,0                                       
 8001fc0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8001fc4:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8001fc8:	37 9c 00 08 	addi sp,sp,8                                   
 8001fcc:	c3 a0 00 00 	ret                                            
                                                                      

08001e90 <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)) {
 8001e90:	37 9c ff e8 	addi sp,sp,-24                                 
 8001e94:	5b 8b 00 14 	sw (sp+20),r11                                 
 8001e98:	5b 8c 00 10 	sw (sp+16),r12                                 
 8001e9c:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8001ea0:	5b 8e 00 08 	sw (sp+8),r14                                  
 8001ea4:	5b 9d 00 04 	sw (sp+4),ra                                   
  #ifdef DEBUG_GXX_WRAPPERS                                           
    printk( "gxx_wrappers: once=%x, func=%x\n", *once, func );        
  #endif                                                              
                                                                      
  if ( *(volatile __gthread_once_t *)once == 0 ) {                    
 8001ea8:	28 2d 00 00 	lw r13,(r1+0)                                  
                                                                      
/* 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))       
{                                                                     
 8001eac:	b8 20 58 00 	mv r11,r1                                      
 8001eb0:	b8 40 70 00 	mv r14,r2                                      
  #ifdef DEBUG_GXX_WRAPPERS                                           
    printk( "gxx_wrappers: once=%x, func=%x\n", *once, func );        
  #endif                                                              
                                                                      
  if ( *(volatile __gthread_once_t *)once == 0 ) {                    
 8001eb4:	5d a0 00 0f 	bne r13,r0,8001ef0 <rtems_gxx_once+0x60>       
    rtems_mode saveMode;                                              
    __gthread_once_t o;                                               
                                                                      
    rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &saveMode); 
 8001eb8:	34 01 01 00 	mvi r1,256                                     
 8001ebc:	34 02 01 00 	mvi r2,256                                     
 8001ec0:	37 83 00 18 	addi r3,sp,24                                  
 8001ec4:	f8 00 06 ff 	calli 8003ac0 <rtems_task_mode>                
    if ( (o = *(volatile __gthread_once_t *)once) == 0 ) {            
 8001ec8:	29 6c 00 00 	lw r12,(r11+0)                                 
 8001ecc:	5d 8d 00 03 	bne r12,r13,8001ed8 <rtems_gxx_once+0x48>      <== NEVER TAKEN
      *(volatile __gthread_once_t *)once = 1;                         
 8001ed0:	34 01 00 01 	mvi r1,1                                       
 8001ed4:	59 61 00 00 	sw (r11+0),r1                                  
    }                                                                 
    rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode);         
 8001ed8:	2b 81 00 18 	lw r1,(sp+24)                                  
 8001edc:	34 02 01 00 	mvi r2,256                                     
 8001ee0:	37 83 00 18 	addi r3,sp,24                                  
 8001ee4:	f8 00 06 f7 	calli 8003ac0 <rtems_task_mode>                
    if ( o == 0 )                                                     
 8001ee8:	5d 80 00 02 	bne r12,r0,8001ef0 <rtems_gxx_once+0x60>       <== NEVER TAKEN
      (*func)();                                                      
 8001eec:	d9 c0 00 00 	call r14                                       
  }                                                                   
  return 0;                                                           
}                                                                     
 8001ef0:	34 01 00 00 	mvi r1,0                                       
 8001ef4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8001ef8:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8001efc:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8001f00:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8001f04:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8001f08:	37 9c 00 18 	addi sp,sp,24                                  
 8001f0c:	c3 a0 00 00 	ret                                            
                                                                      

08002040 <rtems_gxx_setspecific>: int rtems_gxx_setspecific(__gthread_key_t key, const void *ptr) {
 8002040:	37 9c ff f4 	addi sp,sp,-12                                 
 8002044:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8002048:	5b 8c 00 08 	sw (sp+8),r12                                  
 800204c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8002050:	b8 20 58 00 	mv r11,r1                                      
      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 );
 8002054:	29 63 00 04 	lw r3,(r11+4)                                  
  #endif                                                              
  return p;                                                           
}                                                                     
                                                                      
int rtems_gxx_setspecific(__gthread_key_t key, const void *ptr)       
{                                                                     
 8002058:	b8 40 60 00 	mv r12,r2                                      
      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 );
 800205c:	34 01 00 00 	mvi r1,0                                       
 8002060:	b9 60 10 00 	mv r2,r11                                      
 8002064:	f8 00 07 20 	calli 8003ce4 <rtems_task_variable_add>        
  if ( status == RTEMS_SUCCESSFUL ) {                                 
    /* now let's set the proper value */                              
    key->val =  (void *)ptr;                                          
    return 0;                                                         
  }                                                                   
  return -1;                                                          
 8002068:	34 03 ff ff 	mvi r3,-1                                      
      );                                                              
  #endif                                                              
                                                                      
  /* register with RTEMS the buffer that will hold the key values */  
  status = rtems_task_variable_add( RTEMS_SELF, (void **)key, key->dtor );
  if ( status == RTEMS_SUCCESSFUL ) {                                 
 800206c:	5c 20 00 03 	bne r1,r0,8002078 <rtems_gxx_setspecific+0x38> <== NEVER TAKEN
    /* now let's set the proper value */                              
    key->val =  (void *)ptr;                                          
 8002070:	59 6c 00 00 	sw (r11+0),r12                                 
    return 0;                                                         
 8002074:	34 03 00 00 	mvi r3,0                                       
  }                                                                   
  return -1;                                                          
}                                                                     
 8002078:	b8 60 08 00 	mv r1,r3                                       
 800207c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8002080:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8002084:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8002088:	37 9c 00 0c 	addi sp,sp,12                                  
 800208c:	c3 a0 00 00 	ret                                            
                                                                      

08006d24 <rtems_heap_allocate_aligned_with_boundary>: void *rtems_heap_allocate_aligned_with_boundary( size_t size, uintptr_t alignment, uintptr_t boundary ) {
 8006d24:	37 9c ff f0 	addi sp,sp,-16                                 
 8006d28:	5b 8b 00 10 	sw (sp+16),r11                                 
 8006d2c:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8006d30:	5b 8d 00 08 	sw (sp+8),r13                                  
 8006d34:	5b 9d 00 04 	sw (sp+4),ra                                   
  if (                                                                
 8006d38:	78 05 08 02 	mvhi r5,0x802                                  
 8006d3c:	38 a5 52 f0 	ori r5,r5,0x52f0                               
void *rtems_heap_allocate_aligned_with_boundary(                      
  size_t size,                                                        
  uintptr_t alignment,                                                
  uintptr_t boundary                                                  
)                                                                     
{                                                                     
 8006d40:	b8 40 60 00 	mv r12,r2                                      
  if (                                                                
 8006d44:	28 a2 00 00 	lw r2,(r5+0)                                   
void *rtems_heap_allocate_aligned_with_boundary(                      
  size_t size,                                                        
  uintptr_t alignment,                                                
  uintptr_t boundary                                                  
)                                                                     
{                                                                     
 8006d48:	b8 20 68 00 	mv r13,r1                                      
  if (                                                                
 8006d4c:	34 01 00 03 	mvi r1,3                                       
void *rtems_heap_allocate_aligned_with_boundary(                      
  size_t size,                                                        
  uintptr_t alignment,                                                
  uintptr_t boundary                                                  
)                                                                     
{                                                                     
 8006d50:	b8 60 58 00 	mv r11,r3                                      
  if (                                                                
 8006d54:	5c 41 00 04 	bne r2,r1,8006d64 <rtems_heap_allocate_aligned_with_boundary+0x40><== NEVER TAKEN
    _System_state_Is_up( _System_state_Get() )                        
      && !malloc_is_system_state_OK()                                 
 8006d58:	fb ff fb 06 	calli 8005970 <malloc_is_system_state_OK>      
  ) {                                                                 
    return NULL;                                                      
 8006d5c:	34 05 00 00 	mvi r5,0                                       
  uintptr_t boundary                                                  
)                                                                     
{                                                                     
  if (                                                                
    _System_state_Is_up( _System_state_Get() )                        
      && !malloc_is_system_state_OK()                                 
 8006d60:	44 20 00 0a 	be r1,r0,8006d88 <rtems_heap_allocate_aligned_with_boundary+0x64>
  ) {                                                                 
    return NULL;                                                      
  }                                                                   
                                                                      
  malloc_deferred_frees_process();                                    
 8006d64:	fb ff fb 15 	calli 80059b8 <malloc_deferred_frees_process>  
                                                                      
  /* FIXME: Statistics, boundary checks */                            
                                                                      
  return _Protected_heap_Allocate_aligned_with_boundary(              
 8006d68:	78 05 08 02 	mvhi r5,0x802                                  
 8006d6c:	38 a5 40 4c 	ori r5,r5,0x404c                               
 8006d70:	28 a1 00 00 	lw r1,(r5+0)                                   
 8006d74:	b9 a0 10 00 	mv r2,r13                                      
 8006d78:	b9 80 18 00 	mv r3,r12                                      
 8006d7c:	b9 60 20 00 	mv r4,r11                                      
 8006d80:	f8 00 0d ec 	calli 800a530 <_Protected_heap_Allocate_aligned_with_boundary>
 8006d84:	b8 20 28 00 	mv r5,r1                                       
    RTEMS_Malloc_Heap,                                                
    size,                                                             
    alignment,                                                        
    boundary                                                          
  );                                                                  
}                                                                     
 8006d88:	b8 a0 08 00 	mv r1,r5                                       
 8006d8c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006d90:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8006d94:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8006d98:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8006d9c:	37 9c 00 10 	addi sp,sp,16                                  
 8006da0:	c3 a0 00 00 	ret                                            
                                                                      

08006008 <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) {
 8006008:	37 9c ff e4 	addi sp,sp,-28                                 
 800600c:	5b 8b 00 1c 	sw (sp+28),r11                                 
 8006010:	5b 8c 00 18 	sw (sp+24),r12                                 
 8006014:	5b 8d 00 14 	sw (sp+20),r13                                 
 8006018:	5b 8e 00 10 	sw (sp+16),r14                                 
 800601c:	5b 8f 00 0c 	sw (sp+12),r15                                 
 8006020:	5b 90 00 08 	sw (sp+8),r16                                  
 8006024:	5b 9d 00 04 	sw (sp+4),ra                                   
 8006028:	b8 20 78 00 	mv r15,r1                                      
  uint32_t             i;                                             
  uint32_t             api_index;                                     
  Thread_Control      *the_thread;                                    
  Objects_Information *information;                                   
                                                                      
  if ( !routine )                                                     
 800602c:	44 20 00 18 	be r1,r0,800608c <rtems_iterate_over_all_threads+0x84><== NEVER TAKEN
#endif                                                                
                                                                      
#include <rtems/system.h>                                             
#include <rtems/score/thread.h>                                       
                                                                      
void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) 
 8006030:	78 02 08 01 	mvhi r2,0x801                                  
  uint32_t             i;                                             
  uint32_t             api_index;                                     
  Thread_Control      *the_thread;                                    
  Objects_Information *information;                                   
                                                                      
  if ( !routine )                                                     
 8006034:	78 0b 08 01 	mvhi r11,0x801                                 
#endif                                                                
                                                                      
#include <rtems/system.h>                                             
#include <rtems/score/thread.h>                                       
                                                                      
void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) 
 8006038:	38 42 fc 3c 	ori r2,r2,0xfc3c                               
  uint32_t             i;                                             
  uint32_t             api_index;                                     
  Thread_Control      *the_thread;                                    
  Objects_Information *information;                                   
                                                                      
  if ( !routine )                                                     
 800603c:	39 6b fc 40 	ori r11,r11,0xfc40                             
#endif                                                                
                                                                      
#include <rtems/system.h>                                             
#include <rtems/score/thread.h>                                       
                                                                      
void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) 
 8006040:	34 50 00 10 	addi r16,r2,16                                 
  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 ] )                 
 8006044:	29 61 00 00 	lw r1,(r11+0)                                  
 8006048:	44 20 00 0f 	be r1,r0,8006084 <rtems_iterate_over_all_threads+0x7c>
        continue;                                                     
    #endif                                                            
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
 800604c:	28 2c 00 04 	lw r12,(r1+4)                                  
    if ( !information )                                               
 8006050:	34 0e 00 04 	mvi r14,4                                      
 8006054:	34 0d 00 01 	mvi r13,1                                      
 8006058:	5d 80 00 09 	bne r12,r0,800607c <rtems_iterate_over_all_threads+0x74>
 800605c:	e0 00 00 0a 	bi 8006084 <rtems_iterate_over_all_threads+0x7c>
      continue;                                                       
                                                                      
    for ( i=1 ; i <= information->maximum ; i++ ) {                   
      the_thread = (Thread_Control *)information->local_table[ i ];   
 8006060:	29 81 00 1c 	lw r1,(r12+28)                                 
 8006064:	b4 2e 08 00 	add r1,r1,r14                                  
 8006068:	28 21 00 00 	lw r1,(r1+0)                                   
                                                                      
      if ( !the_thread )                                              
 800606c:	44 20 00 02 	be r1,r0,8006074 <rtems_iterate_over_all_threads+0x6c>
	continue;                                                            
                                                                      
      (*routine)(the_thread);                                         
 8006070:	d9 e0 00 00 	call r15                                       
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
    if ( !information )                                               
      continue;                                                       
                                                                      
    for ( i=1 ; i <= information->maximum ; i++ ) {                   
 8006074:	35 ad 00 01 	addi r13,r13,1                                 
 8006078:	35 ce 00 04 	addi r14,r14,4                                 
 800607c:	2d 81 00 10 	lhu r1,(r12+16)                                
 8006080:	50 2d ff f8 	bgeu r1,r13,8006060 <rtems_iterate_over_all_threads+0x58>
 8006084:	35 6b 00 04 	addi r11,r11,4                                 
  Objects_Information *information;                                   
                                                                      
  if ( !routine )                                                     
    return;                                                           
                                                                      
  for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
 8006088:	5d 70 ff ef 	bne r11,r16,8006044 <rtems_iterate_over_all_threads+0x3c>
                                                                      
      (*routine)(the_thread);                                         
    }                                                                 
  }                                                                   
                                                                      
}                                                                     
 800608c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006090:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 8006094:	2b 8c 00 18 	lw r12,(sp+24)                                 
 8006098:	2b 8d 00 14 	lw r13,(sp+20)                                 
 800609c:	2b 8e 00 10 	lw r14,(sp+16)                                 
 80060a0:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 80060a4:	2b 90 00 08 	lw r16,(sp+8)                                  
 80060a8:	37 9c 00 1c 	addi sp,sp,28                                  
 80060ac:	c3 a0 00 00 	ret                                            
                                                                      

0800830c <rtems_libio_free>: */ void rtems_libio_free( rtems_libio_t *iop ) {
 800830c:	37 9c ff f8 	addi sp,sp,-8                                  
 8008310:	5b 8b 00 08 	sw (sp+8),r11                                  
 8008314:	5b 9d 00 04 	sw (sp+4),ra                                   
 8008318:	b8 20 58 00 	mv r11,r1                                      
  rtems_libio_lock();                                                 
 800831c:	fb ff ff 90 	calli 800815c <rtems_libio_lock>               
                                                                      
    if (iop->sem)                                                     
 8008320:	29 61 00 30 	lw r1,(r11+48)                                 
 8008324:	44 20 00 02 	be r1,r0,800832c <rtems_libio_free+0x20>       <== NEVER TAKEN
      rtems_semaphore_delete(iop->sem);                               
 8008328:	f8 00 01 a3 	calli 80089b4 <rtems_semaphore_delete>         
                                                                      
    iop->flags &= ~LIBIO_FLAGS_OPEN;                                  
 800832c:	29 62 00 18 	lw r2,(r11+24)                                 
 8008330:	34 01 fe ff 	mvi r1,-257                                    
 8008334:	a0 41 08 00 	and r1,r2,r1                                   
 8008338:	59 61 00 18 	sw (r11+24),r1                                 
    iop->data1 = rtems_libio_iop_freelist;                            
 800833c:	78 01 08 01 	mvhi r1,0x801                                  
 8008340:	38 21 37 14 	ori r1,r1,0x3714                               
 8008344:	28 22 00 00 	lw r2,(r1+0)                                   
    rtems_libio_iop_freelist = iop;                                   
 8008348:	58 2b 00 00 	sw (r1+0),r11                                  
                                                                      
    if (iop->sem)                                                     
      rtems_semaphore_delete(iop->sem);                               
                                                                      
    iop->flags &= ~LIBIO_FLAGS_OPEN;                                  
    iop->data1 = rtems_libio_iop_freelist;                            
 800834c:	59 62 00 38 	sw (r11+56),r2                                 
    rtems_libio_iop_freelist = iop;                                   
                                                                      
  rtems_libio_unlock();                                               
 8008350:	fb ff ff 8e 	calli 8008188 <rtems_libio_unlock>             
}                                                                     
 8008354:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8008358:	2b 8b 00 08 	lw r11,(sp+8)                                  
 800835c:	37 9c 00 08 	addi sp,sp,8                                   
 8008360:	c3 a0 00 00 	ret                                            
                                                                      

08001488 <rtems_libio_init>: * * Called by BSP startup code to initialize the libio subsystem. */ void rtems_libio_init( void ) {
 8001488:	37 9c ff f4 	addi sp,sp,-12                                 
 800148c:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8001490:	5b 8c 00 08 	sw (sp+8),r12                                  
 8001494:	5b 9d 00 04 	sw (sp+4),ra                                   
    rtems_status_code rc;                                             
    uint32_t i;                                                       
    rtems_libio_t *iop;                                               
                                                                      
    if (rtems_libio_number_iops > 0)                                  
 8001498:	78 01 08 01 	mvhi r1,0x801                                  
 800149c:	38 21 30 10 	ori r1,r1,0x3010                               
 80014a0:	28 2c 00 00 	lw r12,(r1+0)                                  
 80014a4:	45 80 00 19 	be r12,r0,8001508 <rtems_libio_init+0x80>      <== NEVER TAKEN
    {                                                                 
        rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops,
 80014a8:	b9 80 08 00 	mv r1,r12                                      
 80014ac:	34 02 00 40 	mvi r2,64                                      
 80014b0:	fb ff ff 0b 	calli 80010dc <calloc>                         
 80014b4:	b8 20 58 00 	mv r11,r1                                      
 80014b8:	78 01 08 01 	mvhi r1,0x801                                  
 80014bc:	38 21 37 10 	ori r1,r1,0x3710                               
 80014c0:	58 2b 00 00 	sw (r1+0),r11                                  
                                                    sizeof(rtems_libio_t));
        if (rtems_libio_iops == NULL)                                 
            rtems_fatal_error_occurred(RTEMS_NO_MEMORY);              
 80014c4:	34 01 00 1a 	mvi r1,26                                      
                                                                      
    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)                                 
 80014c8:	45 60 00 1b 	be r11,r0,8001534 <rtems_libio_init+0xac>      
            rtems_fatal_error_occurred(RTEMS_NO_MEMORY);              
                                                                      
        iop = rtems_libio_iop_freelist = rtems_libio_iops;            
 80014cc:	78 01 08 01 	mvhi r1,0x801                                  
 80014d0:	38 21 37 14 	ori r1,r1,0x3714                               
 80014d4:	58 2b 00 00 	sw (r1+0),r11                                  
        for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++)  
 80014d8:	34 02 00 00 	mvi r2,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);              
                                                                      
        iop = rtems_libio_iop_freelist = rtems_libio_iops;            
 80014dc:	b9 60 08 00 	mv r1,r11                                      
        for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++)  
 80014e0:	e0 00 00 02 	bi 80014e8 <rtems_libio_init+0x60>             
          iop->data1 = iop + 1;                                       
 80014e4:	58 21 ff f8 	sw (r1+-8),r1                                  
                                                    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++)  
 80014e8:	34 42 00 01 	addi r2,r2,1                                   
 80014ec:	34 21 00 40 	addi r1,r1,64                                  
 80014f0:	55 82 ff fd 	bgu r12,r2,80014e4 <rtems_libio_init+0x5c>     
          iop->data1 = iop + 1;                                       
        iop->data1 = NULL;                                            
 80014f4:	b9 80 08 00 	mv r1,r12                                      
 80014f8:	34 02 00 06 	mvi r2,6                                       
 80014fc:	f8 00 3c e3 	calli 8010888 <__ashlsi3>                      
 8001500:	b5 61 08 00 	add r1,r11,r1                                  
 8001504:	58 20 ff f8 	sw (r1+-8),r0                                  
  /*                                                                  
   *  Create the binary semaphore used to provide mutual exclusion    
   *  on the IOP Table.                                               
   */                                                                 
                                                                      
  rc = rtems_semaphore_create(                                        
 8001508:	78 02 08 01 	mvhi r2,0x801                                  
 800150c:	38 42 1c 04 	ori r2,r2,0x1c04                               
 8001510:	28 41 00 00 	lw r1,(r2+0)                                   
 8001514:	78 05 08 01 	mvhi r5,0x801                                  
 8001518:	34 03 00 54 	mvi r3,84                                      
 800151c:	34 02 00 01 	mvi r2,1                                       
 8001520:	34 04 00 00 	mvi r4,0                                       
 8001524:	38 a5 37 18 	ori r5,r5,0x3718                               
 8001528:	f8 00 04 ab 	calli 80027d4 <rtems_semaphore_create>         
 800152c:	b8 20 18 00 	mv r3,r1                                       
    1,                                                                
    RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, 
    RTEMS_NO_PRIORITY,                                                
    &rtems_libio_semaphore                                            
  );                                                                  
  if ( rc != RTEMS_SUCCESSFUL )                                       
 8001530:	44 20 00 02 	be r1,r0,8001538 <rtems_libio_init+0xb0>       <== ALWAYS TAKEN
    rtems_fatal_error_occurred( rc );                                 
 8001534:	f8 00 06 ed 	calli 80030e8 <rtems_fatal_error_occurred>     
                                                                      
  /*                                                                  
   *  Initialize the base file system infrastructure.                 
   */                                                                 
                                                                      
  if (rtems_fs_init_helper)                                           
 8001538:	78 02 08 01 	mvhi r2,0x801                                  
 800153c:	38 42 30 0c 	ori r2,r2,0x300c                               
 8001540:	28 41 00 00 	lw r1,(r2+0)                                   
 8001544:	44 23 00 02 	be r1,r3,800154c <rtems_libio_init+0xc4>       <== NEVER TAKEN
     (* rtems_fs_init_helper)();                                      
 8001548:	d8 20 00 00 	call r1                                        
}                                                                     
 800154c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8001550:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8001554:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8001558:	37 9c 00 0c 	addi sp,sp,12                                  
 800155c:	c3 a0 00 00 	ret                                            
                                                                      

08002ac0 <rtems_libio_set_private_env>: rtems_status_code rtems_libio_set_private_env(void) {
 8002ac0:	37 9c ff c8 	addi sp,sp,-56                                 
 8002ac4:	5b 8b 00 10 	sw (sp+16),r11                                 
 8002ac8:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8002acc:	5b 8d 00 08 	sw (sp+8),r13                                  
 8002ad0:	5b 9d 00 04 	sw (sp+4),ra                                   
  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);       
 8002ad4:	78 0b 08 01 	mvhi r11,0x801                                 
}                                                                     
                                                                      
rtems_status_code rtems_libio_set_private_env(void)                   
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_id task_id = rtems_task_self();                               
 8002ad8:	f8 00 03 1b 	calli 8003744 <rtems_task_self>                
  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);       
 8002adc:	39 6b 1e 94 	ori r11,r11,0x1e94                             
 8002ae0:	34 02 00 01 	mvi r2,1                                       
}                                                                     
                                                                      
rtems_status_code rtems_libio_set_private_env(void)                   
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_id task_id = rtems_task_self();                               
 8002ae4:	b8 20 68 00 	mv r13,r1                                      
  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);       
 8002ae8:	34 03 00 00 	mvi r3,0                                       
 8002aec:	b9 60 08 00 	mv r1,r11                                      
 8002af0:	37 84 00 28 	addi r4,sp,40                                  
 8002af4:	34 05 00 00 	mvi r5,0                                       
 8002af8:	fb ff fa cb 	calli 8001624 <rtems_filesystem_evaluate_path> 
 8002afc:	b8 20 60 00 	mv r12,r1                                      
                                                                      
error_1:                                                              
  rtems_filesystem_freenode(&root_loc);                               
                                                                      
error_0:                                                              
  return RTEMS_NO_MEMORY;                                             
 8002b00:	34 02 00 1a 	mvi r2,26                                      
  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);       
  if (rv != 0)                                                        
 8002b04:	5c 20 00 43 	bne r1,r0,8002c10 <rtems_libio_set_private_env+0x150><== NEVER TAKEN
    goto error_0;                                                     
                                                                      
  rv = rtems_filesystem_evaluate_path("/", 1, 0, ¤t_loc, 0);    
 8002b08:	b9 60 08 00 	mv r1,r11                                      
 8002b0c:	34 02 00 01 	mvi r2,1                                       
 8002b10:	34 03 00 00 	mvi r3,0                                       
 8002b14:	37 84 00 14 	addi r4,sp,20                                  
 8002b18:	34 05 00 00 	mvi r5,0                                       
 8002b1c:	fb ff fa c2 	calli 8001624 <rtems_filesystem_evaluate_path> 
  if (rv != 0)                                                        
 8002b20:	5c 2c 00 39 	bne r1,r12,8002c04 <rtems_libio_set_private_env+0x144><== NEVER TAKEN
   * 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                  
 8002b24:	78 02 08 01 	mvhi r2,0x801                                  
 8002b28:	38 42 31 34 	ori r2,r2,0x3134                               
 8002b2c:	28 41 00 00 	lw r1,(r2+0)                                   
  /*                                                                  
   * Bharath: I'm not sure if the check can be reduced to             
   * if( rtems_current_user_env->task_id != task_id ) {               
   */                                                                 
                                                                      
  if (                                                                
 8002b30:	78 02 08 01 	mvhi r2,0x801                                  
 8002b34:	38 42 37 48 	ori r2,r2,0x3748                               
 8002b38:	44 22 00 03 	be r1,r2,8002b44 <rtems_libio_set_private_env+0x84>
    rtems_current_user_env == &rtems_global_user_env                  
      || rtems_current_user_env->task_id != task_id                   
 8002b3c:	28 21 00 00 	lw r1,(r1+0)                                   
 8002b40:	44 2d 00 0e 	be r1,r13,8002b78 <rtems_libio_set_private_env+0xb8>
  ) {                                                                 
    new_env = malloc(sizeof(rtems_user_env_t));                       
 8002b44:	34 01 00 48 	mvi r1,72                                      
 8002b48:	fb ff fc ca 	calli 8001e70 <malloc>                         
 8002b4c:	b8 20 60 00 	mv r12,r1                                      
    if (new_env == NULL)                                              
 8002b50:	44 20 00 2b 	be r1,r0,8002bfc <rtems_libio_set_private_env+0x13c>
                                                                      
    #ifdef HAVE_USERENV_REFCNT                                        
      new_env->refcnt = 1;                                            
    #endif                                                            
                                                                      
    sc = rtems_task_variable_add(                                     
 8002b54:	78 0b 08 01 	mvhi r11,0x801                                 
 8002b58:	39 6b 31 34 	ori r11,r11,0x3134                             
 8002b5c:	78 03 08 00 	mvhi r3,0x800                                  
 8002b60:	34 01 00 00 	mvi r1,0                                       
 8002b64:	b9 60 10 00 	mv r2,r11                                      
 8002b68:	38 63 2a 7c 	ori r3,r3,0x2a7c                               
 8002b6c:	f8 00 03 1b 	calli 80037d8 <rtems_task_variable_add>        
      RTEMS_SELF,                                                     
      (void*)&rtems_current_user_env,                                 
      (void(*)(void *))free_user_env                                  
    );                                                                
    if (sc != RTEMS_SUCCESSFUL)                                       
 8002b70:	5c 20 00 21 	bne r1,r0,8002bf4 <rtems_libio_set_private_env+0x134>
      goto error_3;                                                   
                                                                      
    rtems_current_user_env = new_env;                                 
 8002b74:	59 6c 00 00 	sw (r11+0),r12                                 
  }                                                                   
                                                                      
  /* Inherit the global values */                                     
  *rtems_current_user_env = rtems_global_user_env;                    
 8002b78:	78 02 08 01 	mvhi r2,0x801                                  
 8002b7c:	38 42 31 34 	ori r2,r2,0x3134                               
 8002b80:	28 4b 00 00 	lw r11,(r2+0)                                  
 8002b84:	78 02 08 01 	mvhi r2,0x801                                  
 8002b88:	38 42 37 48 	ori r2,r2,0x3748                               
 8002b8c:	b9 60 08 00 	mv r1,r11                                      
 8002b90:	34 03 00 48 	mvi r3,72                                      
 8002b94:	f8 00 25 ae 	calli 800c24c <memcpy>                         
   * 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;                                   
 8002b98:	2b 81 00 28 	lw r1,(sp+40)                                  
  }                                                                   
                                                                      
  /* Inherit the global values */                                     
  *rtems_current_user_env = rtems_global_user_env;                    
                                                                      
  rtems_current_user_env->task_id = task_id;                          
 8002b9c:	59 6d 00 00 	sw (r11+0),r13                                 
   * be freed when deleting the environment.                          
   */                                                                 
  rtems_filesystem_root = root_loc;                                   
  rtems_filesystem_current = current_loc;                             
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 8002ba0:	34 02 00 00 	mvi r2,0                                       
   * 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;                                   
 8002ba4:	59 61 00 18 	sw (r11+24),r1                                 
 8002ba8:	2b 81 00 2c 	lw r1,(sp+44)                                  
 8002bac:	59 61 00 1c 	sw (r11+28),r1                                 
 8002bb0:	2b 81 00 30 	lw r1,(sp+48)                                  
 8002bb4:	59 61 00 20 	sw (r11+32),r1                                 
 8002bb8:	2b 81 00 34 	lw r1,(sp+52)                                  
 8002bbc:	59 61 00 24 	sw (r11+36),r1                                 
 8002bc0:	2b 81 00 38 	lw r1,(sp+56)                                  
 8002bc4:	59 61 00 28 	sw (r11+40),r1                                 
  rtems_filesystem_current = current_loc;                             
 8002bc8:	2b 81 00 14 	lw r1,(sp+20)                                  
 8002bcc:	59 61 00 04 	sw (r11+4),r1                                  
 8002bd0:	2b 81 00 18 	lw r1,(sp+24)                                  
 8002bd4:	59 61 00 08 	sw (r11+8),r1                                  
 8002bd8:	2b 81 00 1c 	lw r1,(sp+28)                                  
 8002bdc:	59 61 00 0c 	sw (r11+12),r1                                 
 8002be0:	2b 81 00 20 	lw r1,(sp+32)                                  
 8002be4:	59 61 00 10 	sw (r11+16),r1                                 
 8002be8:	2b 81 00 24 	lw r1,(sp+36)                                  
 8002bec:	59 61 00 14 	sw (r11+20),r1                                 
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 8002bf0:	e0 00 00 08 	bi 8002c10 <rtems_libio_set_private_env+0x150> 
                                                                      
error_3:                                                              
  free(new_env);                                                      
 8002bf4:	b9 80 08 00 	mv r1,r12                                      
 8002bf8:	fb ff fa db 	calli 8001764 <free>                           
                                                                      
error_2:                                                              
  rtems_filesystem_freenode(¤t_loc);                            
 8002bfc:	37 81 00 14 	addi r1,sp,20                                  
 8002c00:	fb ff fa d1 	calli 8001744 <rtems_filesystem_freenode>      
                                                                      
error_1:                                                              
  rtems_filesystem_freenode(&root_loc);                               
 8002c04:	37 81 00 28 	addi r1,sp,40                                  
 8002c08:	fb ff fa cf 	calli 8001744 <rtems_filesystem_freenode>      
                                                                      
error_0:                                                              
  return RTEMS_NO_MEMORY;                                             
 8002c0c:	34 02 00 1a 	mvi r2,26                                      
}                                                                     
 8002c10:	b8 40 08 00 	mv r1,r2                                       
 8002c14:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8002c18:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8002c1c:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8002c20:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8002c24:	37 9c 00 38 	addi sp,sp,56                                  
 8002c28:	c3 a0 00 00 	ret                                            
                                                                      

08002c2c <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) {
 8002c2c:	37 9c ff e8 	addi sp,sp,-24                                 
 8002c30:	5b 8b 00 14 	sw (sp+20),r11                                 
 8002c34:	5b 8c 00 10 	sw (sp+16),r12                                 
 8002c38:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8002c3c:	5b 8e 00 08 	sw (sp+8),r14                                  
 8002c40:	5b 9d 00 04 	sw (sp+4),ra                                   
 8002c44:	b8 20 70 00 	mv r14,r1                                      
  rtems_id           current_task_id;                                 
                                                                      
  /*                                                                  
   * get current task id                                              
   */                                                                 
  current_task_id = rtems_task_self();                                
 8002c48:	f8 00 02 bf 	calli 8003744 <rtems_task_self>                
 8002c4c:	b8 20 68 00 	mv r13,r1                                      
   * 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 )                                    
    return RTEMS_SUCCESSFUL;                                          
 8002c50:	34 0c 00 00 	mvi r12,0                                      
  /*                                                                  
   * 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 )                                    
 8002c54:	45 c1 00 11 	be r14,r1,8002c98 <rtems_libio_share_private_env+0x6c><== NEVER TAKEN
    return RTEMS_SUCCESSFUL;                                          
  /*                                                                  
   * Try to get the requested user environment                        
   */                                                                 
  sc = rtems_task_variable_get(                                       
 8002c58:	78 0b 08 01 	mvhi r11,0x801                                 
 8002c5c:	39 6b 31 34 	ori r11,r11,0x3134                             
 8002c60:	b9 c0 08 00 	mv r1,r14                                      
 8002c64:	b9 60 10 00 	mv r2,r11                                      
 8002c68:	37 83 00 18 	addi r3,sp,24                                  
 8002c6c:	f8 00 03 0a 	calli 8003894 <rtems_task_variable_get>        
 8002c70:	b8 20 60 00 	mv r12,r1                                      
	 (void*)&shared_user_env );                                          
                                                                      
  /*                                                                  
   * If it was not successful, return the error code                  
   */                                                                 
    if (sc != RTEMS_SUCCESSFUL)                                       
 8002c74:	5c 20 00 09 	bne r1,r0,8002c98 <rtems_libio_share_private_env+0x6c>
     * 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) {             
 8002c78:	29 61 00 00 	lw r1,(r11+0)                                  
 8002c7c:	28 22 00 00 	lw r2,(r1+0)                                   
 8002c80:	5c 4d 00 02 	bne r2,r13,8002c88 <rtems_libio_share_private_env+0x5c>
    rtems_user_env_t  *tmp = rtems_current_user_env;                  
    free_user_env( tmp );                                             
 8002c84:	fb ff ff 7e 	calli 8002a7c <free_user_env>                  
  }                                                                   
                                                                      
  /* the current_user_env is the same pointer that remote env */      
  rtems_current_user_env = shared_user_env;                           
 8002c88:	2b 82 00 18 	lw r2,(sp+24)                                  
 8002c8c:	78 01 08 01 	mvhi r1,0x801                                  
 8002c90:	38 21 31 34 	ori r1,r1,0x3134                               
 8002c94:	58 22 00 00 	sw (r1+0),r2                                   
#ifdef HAVE_USERENV_REFCNT                                            
  rtems_current_user_env->refcnt++;                                   
#endif                                                                
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 8002c98:	b9 80 08 00 	mv r1,r12                                      
 8002c9c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8002ca0:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8002ca4:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8002ca8:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8002cac:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8002cb0:	37 9c 00 18 	addi sp,sp,24                                  
 8002cb4:	c3 a0 00 00 	ret                                            
                                                                      

08008204 <rtems_libio_to_fcntl_flags>: uint32_t flags ) { uint32_t fcntl_flags = 0; if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) {
 8008204:	20 24 00 06 	andi r4,r1,0x6                                 
 8008208:	34 03 00 06 	mvi r3,6                                       
    fcntl_flags |= O_RDWR;                                            
 800820c:	34 02 00 02 	mvi r2,2                                       
  uint32_t   flags                                                    
)                                                                     
{                                                                     
  uint32_t   fcntl_flags = 0;                                         
                                                                      
  if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 
 8008210:	44 83 00 06 	be r4,r3,8008228 <rtems_libio_to_fcntl_flags+0x24><== NEVER TAKEN
    fcntl_flags |= O_RDWR;                                            
  } else if ( (flags & LIBIO_FLAGS_READ) == LIBIO_FLAGS_READ) {       
 8008214:	20 23 00 02 	andi r3,r1,0x2                                 
    fcntl_flags |= O_RDONLY;                                          
 8008218:	34 02 00 00 	mvi r2,0                                       
{                                                                     
  uint32_t   fcntl_flags = 0;                                         
                                                                      
  if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 
    fcntl_flags |= O_RDWR;                                            
  } else if ( (flags & LIBIO_FLAGS_READ) == LIBIO_FLAGS_READ) {       
 800821c:	5c 60 00 03 	bne r3,r0,8008228 <rtems_libio_to_fcntl_flags+0x24><== ALWAYS TAKEN
    fcntl_flags |= O_RDONLY;                                          
  } else if ( (flags & LIBIO_FLAGS_WRITE) == LIBIO_FLAGS_WRITE) {     
 8008220:	20 22 00 04 	andi r2,r1,0x4                                 <== NOT EXECUTED
)                                                                     
{                                                                     
  uint32_t   fcntl_flags = 0;                                         
                                                                      
  if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 
    fcntl_flags |= O_RDWR;                                            
 8008224:	7c 42 00 00 	cmpnei r2,r2,0                                 <== NOT EXECUTED
    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 ) {     
 8008228:	20 23 00 01 	andi r3,r1,0x1                                 
 800822c:	44 60 00 02 	be r3,r0,8008234 <rtems_libio_to_fcntl_flags+0x30>
    fcntl_flags |= O_NONBLOCK;                                        
 8008230:	38 42 40 00 	ori r2,r2,0x4000                               
  }                                                                   
                                                                      
  if ( (flags & LIBIO_FLAGS_APPEND) == LIBIO_FLAGS_APPEND ) {         
 8008234:	20 23 02 00 	andi r3,r1,0x200                               
 8008238:	44 60 00 02 	be r3,r0,8008240 <rtems_libio_to_fcntl_flags+0x3c>
    fcntl_flags |= O_APPEND;                                          
 800823c:	38 42 00 08 	ori r2,r2,0x8                                  
  }                                                                   
                                                                      
  if ( (flags & LIBIO_FLAGS_CREATE) == LIBIO_FLAGS_CREATE ) {         
 8008240:	20 21 04 00 	andi r1,r1,0x400                               
 8008244:	44 20 00 02 	be r1,r0,800824c <rtems_libio_to_fcntl_flags+0x48>
    fcntl_flags |= O_CREAT;                                           
 8008248:	38 42 02 00 	ori r2,r2,0x200                                
  }                                                                   
                                                                      
  return fcntl_flags;                                                 
}                                                                     
 800824c:	b8 40 08 00 	mv r1,r2                                       
 8008250:	c3 a0 00 00 	ret                                            
                                                                      

08005e54 <rtems_malloc_statistics_at_free>: * size and thus we skip updating the statistics. */ static void rtems_malloc_statistics_at_free( void *pointer ) {
 8005e54:	37 9c ff f8 	addi sp,sp,-8                                  
 8005e58:	5b 9d 00 04 	sw (sp+4),ra                                   
  uintptr_t size;                                                     
                                                                      
  if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) {
 8005e5c:	78 03 08 02 	mvhi r3,0x802                                  
 8005e60:	38 63 40 4c 	ori r3,r3,0x404c                               
 *  size and thus we skip updating the statistics.                    
 */                                                                   
static void rtems_malloc_statistics_at_free(                          
  void *pointer                                                       
)                                                                     
{                                                                     
 8005e64:	b8 20 10 00 	mv r2,r1                                       
  uintptr_t size;                                                     
                                                                      
  if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) {
 8005e68:	28 61 00 00 	lw r1,(r3+0)                                   
 8005e6c:	37 83 00 08 	addi r3,sp,8                                   
 8005e70:	f8 00 11 f9 	calli 800a654 <_Protected_heap_Get_block_size> 
 8005e74:	44 20 00 0b 	be r1,r0,8005ea0 <rtems_malloc_statistics_at_free+0x4c><== NEVER TAKEN
    MSBUMP(lifetime_freed, size);                                     
 8005e78:	78 01 08 02 	mvhi r1,0x802                                  
 8005e7c:	38 21 50 38 	ori r1,r1,0x5038                               
 8005e80:	2b 83 00 08 	lw r3,(sp+8)                                   
 8005e84:	28 22 00 2c 	lw r2,(r1+44)                                  
 8005e88:	28 24 00 28 	lw r4,(r1+40)                                  
 8005e8c:	b4 62 10 00 	add r2,r3,r2                                   
 8005e90:	f4 62 18 00 	cmpgu r3,r3,r2                                 
 8005e94:	58 22 00 2c 	sw (r1+44),r2                                  
 8005e98:	b4 64 18 00 	add r3,r3,r4                                   
 8005e9c:	58 23 00 28 	sw (r1+40),r3                                  
  }                                                                   
}                                                                     
 8005ea0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8005ea4:	37 9c 00 08 	addi sp,sp,8                                   
 8005ea8:	c3 a0 00 00 	ret                                            
                                                                      

08005eac <rtems_malloc_statistics_at_malloc>: } static void rtems_malloc_statistics_at_malloc( void *pointer ) {
 8005eac:	37 9c ff f8 	addi sp,sp,-8                                  
 8005eb0:	5b 9d 00 04 	sw (sp+4),ra                                   
  uintptr_t actual_size = 0;                                          
 8005eb4:	5b 80 00 08 	sw (sp+8),r0                                   
}                                                                     
                                                                      
static void rtems_malloc_statistics_at_malloc(                        
  void *pointer                                                       
)                                                                     
{                                                                     
 8005eb8:	b8 20 10 00 	mv r2,r1                                       
  uintptr_t actual_size = 0;                                          
  uint32_t current_depth;                                             
  rtems_malloc_statistics_t *s = &rtems_malloc_statistics;            
                                                                      
  if ( !pointer )                                                     
 8005ebc:	44 20 00 15 	be r1,r0,8005f10 <rtems_malloc_statistics_at_malloc+0x64><== NEVER TAKEN
    return;                                                           
                                                                      
  _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size);
 8005ec0:	78 03 08 02 	mvhi r3,0x802                                  
 8005ec4:	38 63 40 4c 	ori r3,r3,0x404c                               
 8005ec8:	28 61 00 00 	lw r1,(r3+0)                                   
 8005ecc:	37 83 00 08 	addi r3,sp,8                                   
 8005ed0:	f8 00 11 e1 	calli 800a654 <_Protected_heap_Get_block_size> 
                                                                      
  MSBUMP(lifetime_allocated, actual_size);                            
 8005ed4:	78 01 08 02 	mvhi r1,0x802                                  
 8005ed8:	38 21 50 38 	ori r1,r1,0x5038                               
 8005edc:	2b 83 00 08 	lw r3,(sp+8)                                   
 8005ee0:	28 22 00 24 	lw r2,(r1+36)                                  
 8005ee4:	28 24 00 20 	lw r4,(r1+32)                                  
 8005ee8:	b4 62 10 00 	add r2,r3,r2                                   
 8005eec:	f4 62 18 00 	cmpgu r3,r3,r2                                 
 8005ef0:	58 22 00 24 	sw (r1+36),r2                                  
 8005ef4:	b4 64 18 00 	add r3,r3,r4                                   
 8005ef8:	58 23 00 20 	sw (r1+32),r3                                  
                                                                      
  current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed);
 8005efc:	28 23 00 2c 	lw r3,(r1+44)                                  
 8005f00:	c8 43 10 00 	sub r2,r2,r3                                   
  if (current_depth > s->max_depth)                                   
 8005f04:	28 23 00 18 	lw r3,(r1+24)                                  
 8005f08:	50 62 00 02 	bgeu r3,r2,8005f10 <rtems_malloc_statistics_at_malloc+0x64>
      s->max_depth = current_depth;                                   
 8005f0c:	58 22 00 18 	sw (r1+24),r2                                  
}                                                                     
 8005f10:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8005f14:	37 9c 00 08 	addi sp,sp,8                                   
 8005f18:	c3 a0 00 00 	ret                                            
                                                                      

0800cbc0 <rtems_memalign>: int rtems_memalign( void **pointer, size_t alignment, size_t size ) {
 800cbc0:	37 9c ff ec 	addi sp,sp,-20                                 
 800cbc4:	5b 8b 00 14 	sw (sp+20),r11                                 
 800cbc8:	5b 8c 00 10 	sw (sp+16),r12                                 
 800cbcc:	5b 8d 00 0c 	sw (sp+12),r13                                 
 800cbd0:	5b 8e 00 08 	sw (sp+8),r14                                  
 800cbd4:	5b 9d 00 04 	sw (sp+4),ra                                   
                                                                      
  /*                                                                  
   *  Parameter error checks                                          
   */                                                                 
  if ( !pointer )                                                     
    return EINVAL;                                                    
 800cbd8:	34 0c 00 16 	mvi r12,22                                     
int rtems_memalign(                                                   
  void   **pointer,                                                   
  size_t   alignment,                                                 
  size_t   size                                                       
)                                                                     
{                                                                     
 800cbdc:	b8 20 58 00 	mv r11,r1                                      
 800cbe0:	b8 40 68 00 	mv r13,r2                                      
 800cbe4:	b8 60 70 00 	mv r14,r3                                      
  void *return_this;                                                  
                                                                      
  /*                                                                  
   *  Parameter error checks                                          
   */                                                                 
  if ( !pointer )                                                     
 800cbe8:	44 20 00 1d 	be r1,r0,800cc5c <rtems_memalign+0x9c>         
    return EINVAL;                                                    
                                                                      
  *pointer = NULL;                                                    
 800cbec:	58 20 00 00 	sw (r1+0),r0                                   
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if not in correct system state.
   */                                                                 
  if ( _System_state_Is_up(_System_state_Get()) &&                    
 800cbf0:	78 01 08 01 	mvhi r1,0x801                                  
 800cbf4:	38 21 8a 60 	ori r1,r1,0x8a60                               
 800cbf8:	28 22 00 00 	lw r2,(r1+0)                                   
 800cbfc:	34 01 00 03 	mvi r1,3                                       
 800cc00:	5c 41 00 03 	bne r2,r1,800cc0c <rtems_memalign+0x4c>        <== NEVER TAKEN
       !malloc_is_system_state_OK() )                                 
 800cc04:	fb ff d7 40 	calli 8002904 <malloc_is_system_state_OK>      
  *pointer = NULL;                                                    
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if not in correct system state.
   */                                                                 
  if ( _System_state_Is_up(_System_state_Get()) &&                    
 800cc08:	44 20 00 15 	be r1,r0,800cc5c <rtems_memalign+0x9c>         <== NEVER TAKEN
    return EINVAL;                                                    
                                                                      
  /*                                                                  
   *  If some free's have been deferred, then do them now.            
   */                                                                 
  malloc_deferred_frees_process();                                    
 800cc0c:	fb ff d7 50 	calli 800294c <malloc_deferred_frees_process>  
  Heap_Control *heap,                                                 
  uintptr_t size,                                                     
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return                                                              
 800cc10:	78 01 08 01 	mvhi r1,0x801                                  
 800cc14:	38 21 80 4c 	ori r1,r1,0x804c                               
 800cc18:	28 21 00 00 	lw r1,(r1+0)                                   
 800cc1c:	b9 a0 18 00 	mv r3,r13                                      
 800cc20:	b9 c0 10 00 	mv r2,r14                                      
 800cc24:	34 04 00 00 	mvi r4,0                                       
 800cc28:	fb ff e4 98 	calli 8005e88 <_Protected_heap_Allocate_aligned_with_boundary>
 800cc2c:	b8 20 68 00 	mv r13,r1                                      
    RTEMS_Malloc_Heap,                                                
    size,                                                             
    alignment                                                         
  );                                                                  
  if ( !return_this )                                                 
    return ENOMEM;                                                    
 800cc30:	34 0c 00 0c 	mvi r12,12                                     
  return_this = _Protected_heap_Allocate_aligned(                     
    RTEMS_Malloc_Heap,                                                
    size,                                                             
    alignment                                                         
  );                                                                  
  if ( !return_this )                                                 
 800cc34:	44 20 00 0a 	be r1,r0,800cc5c <rtems_memalign+0x9c>         
    return ENOMEM;                                                    
                                                                      
  /*                                                                  
   *  If configured, update the more involved statistics              
   */                                                                 
  if ( rtems_malloc_statistics_helpers )                              
 800cc38:	78 02 08 01 	mvhi r2,0x801                                  
 800cc3c:	38 42 86 a0 	ori r2,r2,0x86a0                               
 800cc40:	28 41 00 00 	lw r1,(r2+0)                                   
 800cc44:	44 20 00 04 	be r1,r0,800cc54 <rtems_memalign+0x94>         
    (*rtems_malloc_statistics_helpers->at_malloc)(pointer);           
 800cc48:	28 22 00 04 	lw r2,(r1+4)                                   
 800cc4c:	b9 60 08 00 	mv r1,r11                                      
 800cc50:	d8 40 00 00 	call r2                                        
                                                                      
  *pointer = return_this;                                             
 800cc54:	59 6d 00 00 	sw (r11+0),r13                                 
  return 0;                                                           
 800cc58:	34 0c 00 00 	mvi r12,0                                      
}                                                                     
 800cc5c:	b9 80 08 00 	mv r1,r12                                      
 800cc60:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800cc64:	2b 8b 00 14 	lw r11,(sp+20)                                 
 800cc68:	2b 8c 00 10 	lw r12,(sp+16)                                 
 800cc6c:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 800cc70:	2b 8e 00 08 	lw r14,(sp+8)                                  
 800cc74:	37 9c 00 14 	addi sp,sp,20                                  
 800cc78:	c3 a0 00 00 	ret                                            
                                                                      

0800aa6c <rtems_mkdir>: return (retval); } int rtems_mkdir(const char *path, mode_t mode) {
 800aa6c:	37 9c ff 84 	addi sp,sp,-124                                
 800aa70:	5b 8b 00 34 	sw (sp+52),r11                                 
 800aa74:	5b 8c 00 30 	sw (sp+48),r12                                 
 800aa78:	5b 8d 00 2c 	sw (sp+44),r13                                 
 800aa7c:	5b 8e 00 28 	sw (sp+40),r14                                 
 800aa80:	5b 8f 00 24 	sw (sp+36),r15                                 
 800aa84:	5b 90 00 20 	sw (sp+32),r16                                 
 800aa88:	5b 91 00 1c 	sw (sp+28),r17                                 
 800aa8c:	5b 92 00 18 	sw (sp+24),r18                                 
 800aa90:	5b 93 00 14 	sw (sp+20),r19                                 
 800aa94:	5b 94 00 10 	sw (sp+16),r20                                 
 800aa98:	5b 95 00 0c 	sw (sp+12),r21                                 
 800aa9c:	5b 96 00 08 	sw (sp+8),r22                                  
 800aaa0:	5b 9d 00 04 	sw (sp+4),ra                                   
 800aaa4:	b8 40 b0 00 	mv r22,r2                                      
  int success = 0;                                                    
  char *dup_path = strdup(path);                                      
 800aaa8:	f8 00 0c 68 	calli 800dc48 <strdup>                         
 800aaac:	b8 20 60 00 	mv r12,r1                                      
  if (dup_path != NULL) {                                             
    success = build(dup_path, mode);                                  
    free(dup_path);                                                   
  }                                                                   
                                                                      
  return success != 0 ? 0 : -1;                                       
 800aab0:	34 01 ff ff 	mvi r1,-1                                      
rtems_mkdir(const char *path, mode_t mode)                            
{                                                                     
  int success = 0;                                                    
  char *dup_path = strdup(path);                                      
                                                                      
  if (dup_path != NULL) {                                             
 800aab4:	45 80 00 4d 	be r12,r0,800abe8 <rtems_mkdir+0x17c>          <== NEVER TAKEN
  char *p;                                                            
                                                                      
  p = path;                                                           
  oumask = 0;                                                         
  retval = 1;                                                         
  if (p[0] == '/')    /* Skip leading '/'. */                         
 800aab8:	41 8b 00 00 	lbu r11,(r12+0)                                
 800aabc:	34 0e 00 00 	mvi r14,0                                      
 800aac0:	34 01 00 01 	mvi r1,1                                       
    ++p;                                                              
 800aac4:	65 6b 00 2f 	cmpei r11,r11,47                               
        retval = 0;                                                   
        break;                                                        
      }                                                               
    }                                                                 
    if (!last)                                                        
        *p = '/';                                                     
 800aac8:	34 15 00 2f 	mvi r21,47                                     
                                                                      
  p = path;                                                           
  oumask = 0;                                                         
  retval = 1;                                                         
  if (p[0] == '/')    /* Skip leading '/'. */                         
    ++p;                                                              
 800aacc:	b5 8b 58 00 	add r11,r12,r11                                
      first = 0;                                                      
    }                                                                 
    if (last)                                                         
      (void)umask(oumask);                                            
    if (mkdir(path, last ? omode : S_IRWXU | S_IRWXG | S_IRWXO) < 0) {
      if (errno == EEXIST || errno == EISDIR) {                       
 800aad0:	34 14 00 11 	mvi r20,17                                     
        if (stat(path, &sb) < 0) {                                    
 800aad4:	37 93 00 38 	addi r19,sp,56                                 
          retval = 0;                                                 
          break;                                                      
        } else if (!S_ISDIR(sb.st_mode)) {                            
 800aad8:	34 12 40 00 	mvi r18,16384                                  
      first = 0;                                                      
    }                                                                 
    if (last)                                                         
      (void)umask(oumask);                                            
    if (mkdir(path, last ? omode : S_IRWXU | S_IRWXG | S_IRWXO) < 0) {
      if (errno == EEXIST || errno == EISDIR) {                       
 800aadc:	34 11 00 15 	mvi r17,21                                     
       *                                                              
       * We change the user's umask and then restore it,              
       * instead of doing chmod's.                                    
       */                                                             
      oumask = umask(0);                                              
      numask = oumask & ~(S_IWUSR | S_IXUSR);                         
 800aae0:	34 10 ff 3f 	mvi r16,-193                                   
  if (p[0] == '/')    /* Skip leading '/'. */                         
    ++p;                                                              
  for (first = 1, last = 0; !last ; ++p) {                            
    if (p[0] == '\0')                                                 
      last = 1;                                                       
    else if (p[0] != '/')                                             
 800aae4:	34 0f 00 2f 	mvi r15,47                                     
  oumask = 0;                                                         
  retval = 1;                                                         
  if (p[0] == '/')    /* Skip leading '/'. */                         
    ++p;                                                              
  for (first = 1, last = 0; !last ; ++p) {                            
    if (p[0] == '\0')                                                 
 800aae8:	41 64 00 00 	lbu r4,(r11+0)                                 
      last = 1;                                                       
 800aaec:	34 03 00 01 	mvi r3,1                                       
  oumask = 0;                                                         
  retval = 1;                                                         
  if (p[0] == '/')    /* Skip leading '/'. */                         
    ++p;                                                              
  for (first = 1, last = 0; !last ; ++p) {                            
    if (p[0] == '\0')                                                 
 800aaf0:	44 80 00 03 	be r4,r0,800aafc <rtems_mkdir+0x90>            
      last = 1;                                                       
    else if (p[0] != '/')                                             
 800aaf4:	5c 8f 00 33 	bne r4,r15,800abc0 <rtems_mkdir+0x154>         
 800aaf8:	34 03 00 00 	mvi r3,0                                       
      continue;                                                       
    *p = '\0';                                                        
 800aafc:	31 60 00 00 	sb (r11+0),r0                                  
    if (!last && p[1] == '\0')                                        
 800ab00:	34 0d 00 01 	mvi r13,1                                      
 800ab04:	5c 60 00 03 	bne r3,r0,800ab10 <rtems_mkdir+0xa4>           
 800ab08:	41 6d 00 01 	lbu r13,(r11+1)                                
 800ab0c:	65 ad 00 00 	cmpei r13,r13,0                                
      last = 1;                                                       
    if (first) {                                                      
 800ab10:	44 20 00 06 	be r1,r0,800ab28 <rtems_mkdir+0xbc>            
       *    mkdir [-m mode] dir                                       
       *                                                              
       * We change the user's umask and then restore it,              
       * instead of doing chmod's.                                    
       */                                                             
      oumask = umask(0);                                              
 800ab14:	34 01 00 00 	mvi r1,0                                       
 800ab18:	f8 00 00 79 	calli 800acfc <umask>                          
 800ab1c:	b8 20 70 00 	mv r14,r1                                      
      numask = oumask & ~(S_IWUSR | S_IXUSR);                         
      (void)umask(numask);                                            
 800ab20:	a0 30 08 00 	and r1,r1,r16                                  
 800ab24:	f8 00 00 76 	calli 800acfc <umask>                          
      first = 0;                                                      
    }                                                                 
    if (last)                                                         
      (void)umask(oumask);                                            
    if (mkdir(path, last ? omode : S_IRWXU | S_IRWXG | S_IRWXO) < 0) {
 800ab28:	34 03 01 ff 	mvi r3,511                                     
      oumask = umask(0);                                              
      numask = oumask & ~(S_IWUSR | S_IXUSR);                         
      (void)umask(numask);                                            
      first = 0;                                                      
    }                                                                 
    if (last)                                                         
 800ab2c:	45 a0 00 04 	be r13,r0,800ab3c <rtems_mkdir+0xd0>           
      (void)umask(oumask);                                            
 800ab30:	b9 c0 08 00 	mv r1,r14                                      
 800ab34:	f8 00 00 72 	calli 800acfc <umask>                          
    if (mkdir(path, last ? omode : S_IRWXU | S_IRWXG | S_IRWXO) < 0) {
 800ab38:	ba c0 18 00 	mv r3,r22                                      
 800ab3c:	b9 80 08 00 	mv r1,r12                                      
 800ab40:	b8 60 10 00 	mv r2,r3                                       
 800ab44:	fb ff e1 2c 	calli 8002ff4 <mkdir>                          
 800ab48:	4c 20 00 1b 	bge r1,r0,800abb4 <rtems_mkdir+0x148>          
      if (errno == EEXIST || errno == EISDIR) {                       
 800ab4c:	f8 00 07 c1 	calli 800ca50 <__errno>                        
 800ab50:	28 21 00 00 	lw r1,(r1+0)                                   
 800ab54:	44 34 00 04 	be r1,r20,800ab64 <rtems_mkdir+0xf8>           
 800ab58:	f8 00 07 be 	calli 800ca50 <__errno>                        
 800ab5c:	28 21 00 00 	lw r1,(r1+0)                                   
 800ab60:	5c 31 00 1a 	bne r1,r17,800abc8 <rtems_mkdir+0x15c>         <== ALWAYS TAKEN
        if (stat(path, &sb) < 0) {                                    
 800ab64:	b9 80 08 00 	mv r1,r12                                      
 800ab68:	ba 60 10 00 	mv r2,r19                                      
 800ab6c:	f8 00 00 32 	calli 800ac34 <stat>                           
 800ab70:	48 01 00 16 	bg r0,r1,800abc8 <rtems_mkdir+0x15c>           <== NEVER TAKEN
          retval = 0;                                                 
          break;                                                      
        } else if (!S_ISDIR(sb.st_mode)) {                            
 800ab74:	2b 81 00 44 	lw r1,(sp+68)                                  
 800ab78:	20 21 f0 00 	andi r1,r1,0xf000                              
 800ab7c:	44 32 00 0c 	be r1,r18,800abac <rtems_mkdir+0x140>          
          if (last)                                                   
 800ab80:	45 a0 00 06 	be r13,r0,800ab98 <rtems_mkdir+0x12c>          
            errno = EEXIST;                                           
 800ab84:	f8 00 07 b3 	calli 800ca50 <__errno>                        
 800ab88:	34 02 00 11 	mvi r2,17                                      
 800ab8c:	58 22 00 00 	sw (r1+0),r2                                   
          else                                                        
            errno = ENOTDIR;                                          
          retval = 0;                                                 
 800ab90:	34 0b 00 00 	mvi r11,0                                      
 800ab94:	e0 00 00 11 	bi 800abd8 <rtems_mkdir+0x16c>                 
          break;                                                      
        } else if (!S_ISDIR(sb.st_mode)) {                            
          if (last)                                                   
            errno = EEXIST;                                           
          else                                                        
            errno = ENOTDIR;                                          
 800ab98:	f8 00 07 ae 	calli 800ca50 <__errno>                        
 800ab9c:	34 02 00 14 	mvi r2,20                                      
 800aba0:	58 22 00 00 	sw (r1+0),r2                                   
          retval = 0;                                                 
 800aba4:	34 0b 00 00 	mvi r11,0                                      
 800aba8:	e0 00 00 0a 	bi 800abd0 <rtems_mkdir+0x164>                 
          break;                                                      
        }                                                             
        if (last)                                                     
 800abac:	5d a0 00 1e 	bne r13,r0,800ac24 <rtems_mkdir+0x1b8>         
 800abb0:	e0 00 00 02 	bi 800abb8 <rtems_mkdir+0x14c>                 
      } else {                                                        
        retval = 0;                                                   
        break;                                                        
      }                                                               
    }                                                                 
    if (!last)                                                        
 800abb4:	5d a0 00 1e 	bne r13,r0,800ac2c <rtems_mkdir+0x1c0>         
        *p = '/';                                                     
 800abb8:	31 75 00 00 	sb (r11+0),r21                                 
 800abbc:	34 01 00 00 	mvi r1,0                                       
  p = path;                                                           
  oumask = 0;                                                         
  retval = 1;                                                         
  if (p[0] == '/')    /* Skip leading '/'. */                         
    ++p;                                                              
  for (first = 1, last = 0; !last ; ++p) {                            
 800abc0:	35 6b 00 01 	addi r11,r11,1                                 
 800abc4:	e3 ff ff c9 	bi 800aae8 <rtems_mkdir+0x7c>                  
    if (last)                                                         
      (void)umask(oumask);                                            
    if (mkdir(path, last ? omode : S_IRWXU | S_IRWXG | S_IRWXO) < 0) {
      if (errno == EEXIST || errno == EISDIR) {                       
        if (stat(path, &sb) < 0) {                                    
          retval = 0;                                                 
 800abc8:	34 0b 00 00 	mvi r11,0                                      
      }                                                               
    }                                                                 
    if (!last)                                                        
        *p = '/';                                                     
  }                                                                   
  if (!first && !last)                                                
 800abcc:	5d a0 00 03 	bne r13,r0,800abd8 <rtems_mkdir+0x16c>         <== ALWAYS TAKEN
    (void)umask(oumask);                                              
 800abd0:	b9 c0 08 00 	mv r1,r14                                      
 800abd4:	f8 00 00 4a 	calli 800acfc <umask>                          
  int success = 0;                                                    
  char *dup_path = strdup(path);                                      
                                                                      
  if (dup_path != NULL) {                                             
    success = build(dup_path, mode);                                  
    free(dup_path);                                                   
 800abd8:	b9 80 08 00 	mv r1,r12                                      
 800abdc:	fb ff df 04 	calli 80027ec <free>                           
  }                                                                   
                                                                      
  return success != 0 ? 0 : -1;                                       
 800abe0:	7d 61 00 00 	cmpnei r1,r11,0                                
 800abe4:	34 21 ff ff 	addi r1,r1,-1                                  
}                                                                     
 800abe8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800abec:	2b 8b 00 34 	lw r11,(sp+52)                                 
 800abf0:	2b 8c 00 30 	lw r12,(sp+48)                                 
 800abf4:	2b 8d 00 2c 	lw r13,(sp+44)                                 
 800abf8:	2b 8e 00 28 	lw r14,(sp+40)                                 
 800abfc:	2b 8f 00 24 	lw r15,(sp+36)                                 
 800ac00:	2b 90 00 20 	lw r16,(sp+32)                                 
 800ac04:	2b 91 00 1c 	lw r17,(sp+28)                                 
 800ac08:	2b 92 00 18 	lw r18,(sp+24)                                 
 800ac0c:	2b 93 00 14 	lw r19,(sp+20)                                 
 800ac10:	2b 94 00 10 	lw r20,(sp+16)                                 
 800ac14:	2b 95 00 0c 	lw r21,(sp+12)                                 
 800ac18:	2b 96 00 08 	lw r22,(sp+8)                                  
 800ac1c:	37 9c 00 7c 	addi sp,sp,124                                 
 800ac20:	c3 a0 00 00 	ret                                            
            errno = ENOTDIR;                                          
          retval = 0;                                                 
          break;                                                      
        }                                                             
        if (last)                                                     
          retval = 2;                                                 
 800ac24:	34 0b 00 02 	mvi r11,2                                      
 800ac28:	e3 ff ff ec 	bi 800abd8 <rtems_mkdir+0x16c>                 
      } else {                                                        
        retval = 0;                                                   
        break;                                                        
      }                                                               
    }                                                                 
    if (!last)                                                        
 800ac2c:	34 0b 00 01 	mvi r11,1                                      
 800ac30:	e3 ff ff ea 	bi 800abd8 <rtems_mkdir+0x16c>                 
                                                                      

080119ec <rtems_partition_create>: uint32_t length, uint32_t buffer_size, rtems_attribute attribute_set, rtems_id *id ) {
 80119ec:	37 9c ff d8 	addi sp,sp,-40                                 
 80119f0:	5b 8b 00 28 	sw (sp+40),r11                                 
 80119f4:	5b 8c 00 24 	sw (sp+36),r12                                 
 80119f8:	5b 8d 00 20 	sw (sp+32),r13                                 
 80119fc:	5b 8e 00 1c 	sw (sp+28),r14                                 
 8011a00:	5b 8f 00 18 	sw (sp+24),r15                                 
 8011a04:	5b 90 00 14 	sw (sp+20),r16                                 
 8011a08:	5b 91 00 10 	sw (sp+16),r17                                 
 8011a0c:	5b 92 00 0c 	sw (sp+12),r18                                 
 8011a10:	5b 93 00 08 	sw (sp+8),r19                                  
 8011a14:	5b 9d 00 04 	sw (sp+4),ra                                   
  register Partition_Control *the_partition;                          
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
    return RTEMS_INVALID_NAME;                                        
 8011a18:	34 07 00 03 	mvi r7,3                                       
  uint32_t         length,                                            
  uint32_t         buffer_size,                                       
  rtems_attribute  attribute_set,                                     
  rtems_id        *id                                                 
)                                                                     
{                                                                     
 8011a1c:	b8 20 88 00 	mv r17,r1                                      
 8011a20:	b8 40 70 00 	mv r14,r2                                      
 8011a24:	b8 60 78 00 	mv r15,r3                                      
 8011a28:	b8 80 60 00 	mv r12,r4                                      
 8011a2c:	b8 a0 98 00 	mv r19,r5                                      
 8011a30:	b8 c0 80 00 	mv r16,r6                                      
  register Partition_Control *the_partition;                          
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
 8011a34:	44 20 00 36 	be r1,r0,8011b0c <rtems_partition_create+0x120>
    return RTEMS_INVALID_NAME;                                        
                                                                      
  if ( !starting_address )                                            
    return RTEMS_INVALID_ADDRESS;                                     
 8011a38:	34 07 00 09 	mvi r7,9                                       
  register Partition_Control *the_partition;                          
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
    return RTEMS_INVALID_NAME;                                        
                                                                      
  if ( !starting_address )                                            
 8011a3c:	44 40 00 34 	be r2,r0,8011b0c <rtems_partition_create+0x120>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !id )                                                          
 8011a40:	44 c0 00 33 	be r6,r0,8011b0c <rtems_partition_create+0x120><== NEVER TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( length == 0 || buffer_size == 0 || length < buffer_size ||     
 8011a44:	64 82 00 00 	cmpei r2,r4,0                                  
 8011a48:	64 61 00 00 	cmpei r1,r3,0                                  
         !_Partition_Is_buffer_size_aligned( buffer_size ) )          
    return RTEMS_INVALID_SIZE;                                        
 8011a4c:	34 07 00 08 	mvi r7,8                                       
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !id )                                                          
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( length == 0 || buffer_size == 0 || length < buffer_size ||     
 8011a50:	b8 41 08 00 	or r1,r2,r1                                    
 8011a54:	5c 20 00 2e 	bne r1,r0,8011b0c <rtems_partition_create+0x120>
 8011a58:	54 83 00 2d 	bgu r4,r3,8011b0c <rtems_partition_create+0x120>
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Partition_Is_buffer_size_aligned (         
   uint32_t   buffer_size                                             
)                                                                     
{                                                                     
  return ((buffer_size % CPU_PARTITION_ALIGNMENT) == 0);              
 8011a5c:	20 81 00 07 	andi r1,r4,0x7                                 
 8011a60:	5c 20 00 2b 	bne r1,r0,8011b0c <rtems_partition_create+0x120>
)                                                                     
{                                                                     
#if (CPU_ALIGNMENT == 0)                                              
    return true;                                                      
#else                                                                 
    return (((uintptr_t)address % CPU_ALIGNMENT) == 0);               
 8011a64:	21 d2 00 07 	andi r18,r14,0x7                               
         !_Partition_Is_buffer_size_aligned( buffer_size ) )          
    return RTEMS_INVALID_SIZE;                                        
                                                                      
  if ( !_Addresses_Is_aligned( starting_address ) )                   
     return RTEMS_INVALID_ADDRESS;                                    
 8011a68:	34 07 00 09 	mvi r7,9                                       
                                                                      
  if ( length == 0 || buffer_size == 0 || length < buffer_size ||     
         !_Partition_Is_buffer_size_aligned( buffer_size ) )          
    return RTEMS_INVALID_SIZE;                                        
                                                                      
  if ( !_Addresses_Is_aligned( starting_address ) )                   
 8011a6c:	5e 41 00 28 	bne r18,r1,8011b0c <rtems_partition_create+0x120>
 8011a70:	78 02 08 03 	mvhi r2,0x803                                  
 8011a74:	38 42 ec 98 	ori r2,r2,0xec98                               
 8011a78:	28 41 00 00 	lw r1,(r2+0)                                   
 8011a7c:	34 21 00 01 	addi r1,r1,1                                   
 8011a80:	58 41 00 00 	sw (r2+0),r1                                   
 *  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 );
 8011a84:	78 0d 08 03 	mvhi r13,0x803                                 
 8011a88:	39 ad ea f0 	ori r13,r13,0xeaf0                             
 8011a8c:	b9 a0 08 00 	mv r1,r13                                      
 8011a90:	f8 00 15 c3 	calli 801719c <_Objects_Allocate>              
 8011a94:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  _Thread_Disable_dispatch();               /* prevents deletion */   
                                                                      
  the_partition = _Partition_Allocate();                              
                                                                      
  if ( !the_partition ) {                                             
 8011a98:	5c 32 00 04 	bne r1,r18,8011aa8 <rtems_partition_create+0xbc>
    _Thread_Enable_dispatch();                                        
 8011a9c:	f8 00 1b 94 	calli 80188ec <_Thread_Enable_dispatch>        
    return RTEMS_TOO_MANY;                                            
 8011aa0:	34 07 00 05 	mvi r7,5                                       
 8011aa4:	e0 00 00 1a 	bi 8011b0c <rtems_partition_create+0x120>      
  }                                                                   
#endif                                                                
                                                                      
  the_partition->starting_address      = starting_address;            
  the_partition->length                = length;                      
  the_partition->buffer_size           = buffer_size;                 
 8011aa8:	58 2c 00 18 	sw (r1+24),r12                                 
  the_partition->attribute_set         = attribute_set;               
  the_partition->number_of_used_blocks = 0;                           
                                                                      
  _Chain_Initialize( &the_partition->Memory, starting_address,        
                        length / buffer_size, buffer_size );          
 8011aac:	b9 80 10 00 	mv r2,r12                                      
    _Thread_Enable_dispatch();                                        
    return RTEMS_TOO_MANY;                                            
  }                                                                   
#endif                                                                
                                                                      
  the_partition->starting_address      = starting_address;            
 8011ab0:	58 2e 00 10 	sw (r1+16),r14                                 
  the_partition->length                = length;                      
 8011ab4:	58 2f 00 14 	sw (r1+20),r15                                 
  the_partition->buffer_size           = buffer_size;                 
  the_partition->attribute_set         = attribute_set;               
 8011ab8:	58 33 00 1c 	sw (r1+28),r19                                 
  the_partition->number_of_used_blocks = 0;                           
 8011abc:	58 20 00 20 	sw (r1+32),r0                                  
                                                                      
  _Chain_Initialize( &the_partition->Memory, starting_address,        
 8011ac0:	34 32 00 24 	addi r18,r1,36                                 
                        length / buffer_size, buffer_size );          
 8011ac4:	b9 e0 08 00 	mv r1,r15                                      
 8011ac8:	f8 00 7a 8f 	calli 8030504 <__udivsi3>                      
 8011acc:	b8 20 18 00 	mv r3,r1                                       
  the_partition->length                = length;                      
  the_partition->buffer_size           = buffer_size;                 
  the_partition->attribute_set         = attribute_set;               
  the_partition->number_of_used_blocks = 0;                           
                                                                      
  _Chain_Initialize( &the_partition->Memory, starting_address,        
 8011ad0:	b9 80 20 00 	mv r4,r12                                      
 8011ad4:	ba 40 08 00 	mv r1,r18                                      
 8011ad8:	b9 c0 10 00 	mv r2,r14                                      
 8011adc:	f8 00 0e e5 	calli 8015670 <_Chain_Initialize>              
  Objects_Name         name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
 8011ae0:	29 6c 00 08 	lw r12,(r11+8)                                 
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 8011ae4:	29 ad 00 1c 	lw r13,(r13+28)                                
 8011ae8:	34 02 00 02 	mvi r2,2                                       
 8011aec:	21 81 ff ff 	andi r1,r12,0xffff                             
 8011af0:	fb ff f1 01 	calli 800def4 <__ashlsi3>                      
 8011af4:	b5 a1 08 00 	add r1,r13,r1                                  
 8011af8:	58 2b 00 00 	sw (r1+0),r11                                  
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  the_object->name = name;                                            
 8011afc:	59 71 00 0c 	sw (r11+12),r17                                
    &_Partition_Information,                                          
    &the_partition->Object,                                           
    (Objects_Name) name                                               
  );                                                                  
                                                                      
  *id = the_partition->Object.id;                                     
 8011b00:	5a 0c 00 00 	sw (r16+0),r12                                 
      name,                                                           
      0                  /* Not used */                               
    );                                                                
#endif                                                                
                                                                      
  _Thread_Enable_dispatch();                                          
 8011b04:	f8 00 1b 7a 	calli 80188ec <_Thread_Enable_dispatch>        
  return RTEMS_SUCCESSFUL;                                            
 8011b08:	34 07 00 00 	mvi r7,0                                       
}                                                                     
 8011b0c:	b8 e0 08 00 	mv r1,r7                                       
 8011b10:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8011b14:	2b 8b 00 28 	lw r11,(sp+40)                                 
 8011b18:	2b 8c 00 24 	lw r12,(sp+36)                                 
 8011b1c:	2b 8d 00 20 	lw r13,(sp+32)                                 
 8011b20:	2b 8e 00 1c 	lw r14,(sp+28)                                 
 8011b24:	2b 8f 00 18 	lw r15,(sp+24)                                 
 8011b28:	2b 90 00 14 	lw r16,(sp+20)                                 
 8011b2c:	2b 91 00 10 	lw r17,(sp+16)                                 
 8011b30:	2b 92 00 0c 	lw r18,(sp+12)                                 
 8011b34:	2b 93 00 08 	lw r19,(sp+8)                                  
 8011b38:	37 9c 00 28 	addi sp,sp,40                                  
 8011b3c:	c3 a0 00 00 	ret                                            
                                                                      

08010fd8 <rtems_port_internal_to_external>: rtems_status_code rtems_port_internal_to_external( rtems_id id, void *internal, void **external ) {
 8010fd8:	37 9c ff f0 	addi sp,sp,-16                                 
 8010fdc:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8010fe0:	5b 8c 00 08 	sw (sp+8),r12                                  
 8010fe4:	5b 9d 00 04 	sw (sp+4),ra                                   
 8010fe8:	b8 20 20 00 	mv r4,r1                                       
 8010fec:	b8 40 60 00 	mv r12,r2                                      
 8010ff0:	b8 60 58 00 	mv r11,r3                                      
  register Dual_ported_memory_Control *the_port;                      
  Objects_Locations                    location;                      
  uint32_t                             ending;                        
                                                                      
  if ( !external )                                                    
    return RTEMS_INVALID_ADDRESS;                                     
 8010ff4:	34 01 00 09 	mvi r1,9                                       
{                                                                     
  register Dual_ported_memory_Control *the_port;                      
  Objects_Locations                    location;                      
  uint32_t                             ending;                        
                                                                      
  if ( !external )                                                    
 8010ff8:	44 60 00 15 	be r3,r0,801104c <rtems_port_internal_to_external+0x74><== NEVER TAKEN
 8010ffc:	78 01 08 03 	mvhi r1,0x803                                  
 8011000:	b8 80 10 00 	mv r2,r4                                       
 8011004:	38 21 ea b0 	ori r1,r1,0xeab0                               
 8011008:	37 83 00 10 	addi r3,sp,16                                  
 801100c:	f8 00 1a 1d 	calli 8017880 <_Objects_Get>                   
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  the_port = _Dual_ported_memory_Get( id, &location );                
  switch ( location ) {                                               
 8011010:	2b 82 00 10 	lw r2,(sp+16)                                  
 8011014:	5c 40 00 0d 	bne r2,r0,8011048 <rtems_port_internal_to_external+0x70>
RTEMS_INLINE_ROUTINE int32_t _Addresses_Subtract (                    
  const void *left,                                                   
  const void *right                                                   
)                                                                     
{                                                                     
  return (int32_t) ((const char *) left - (const char *) right);      
 8011018:	28 23 00 10 	lw r3,(r1+16)                                  
                                                                      
    case OBJECTS_LOCAL:                                               
      ending = _Addresses_Subtract( internal, the_port->internal_base );
      if ( ending > the_port->length )                                
 801101c:	28 22 00 18 	lw r2,(r1+24)                                  
 8011020:	c9 83 18 00 	sub r3,r12,r3                                  
 8011024:	50 43 00 03 	bgeu r2,r3,8011030 <rtems_port_internal_to_external+0x58>
        *external = internal;                                         
 8011028:	59 6c 00 00 	sw (r11+0),r12                                 
 801102c:	e0 00 00 04 	bi 801103c <rtems_port_internal_to_external+0x64>
RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset (                    
  const void *base,                                                   
  uintptr_t   offset                                                  
)                                                                     
{                                                                     
  return (void *)((uintptr_t)base + offset);                          
 8011030:	28 21 00 14 	lw r1,(r1+20)                                  
 8011034:	b4 23 18 00 	add r3,r1,r3                                   
      else                                                            
        *external = _Addresses_Add_offset( the_port->external_base,   
 8011038:	59 63 00 00 	sw (r11+0),r3                                  
                                           ending );                  
      _Thread_Enable_dispatch();                                      
 801103c:	f8 00 1e 2c 	calli 80188ec <_Thread_Enable_dispatch>        
      return RTEMS_SUCCESSFUL;                                        
 8011040:	34 01 00 00 	mvi r1,0                                       
 8011044:	e0 00 00 02 	bi 801104c <rtems_port_internal_to_external+0x74>
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 8011048:	34 01 00 04 	mvi r1,4                                       
}                                                                     
 801104c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8011050:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8011054:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8011058:	37 9c 00 10 	addi sp,sp,16                                  
 801105c:	c3 a0 00 00 	ret                                            
                                                                      

0800acd8 <rtems_rate_monotonic_get_statistics>: rtems_status_code rtems_rate_monotonic_get_statistics( rtems_id id, rtems_rate_monotonic_period_statistics *statistics ) {
 800acd8:	37 9c ff f4 	addi sp,sp,-12                                 
 800acdc:	5b 8b 00 08 	sw (sp+8),r11                                  
 800ace0:	5b 9d 00 04 	sw (sp+4),ra                                   
 800ace4:	b8 20 18 00 	mv r3,r1                                       
 800ace8:	b8 40 58 00 	mv r11,r2                                      
  Rate_monotonic_Control                  *the_period;                
  rtems_rate_monotonic_period_statistics  *dst;                       
  Rate_monotonic_Statistics               *src;                       
                                                                      
  if ( !statistics )                                                  
    return RTEMS_INVALID_ADDRESS;                                     
 800acec:	34 01 00 09 	mvi r1,9                                       
  Objects_Locations                        location;                  
  Rate_monotonic_Control                  *the_period;                
  rtems_rate_monotonic_period_statistics  *dst;                       
  Rate_monotonic_Statistics               *src;                       
                                                                      
  if ( !statistics )                                                  
 800acf0:	44 40 00 28 	be r2,r0,800ad90 <rtems_rate_monotonic_get_statistics+0xb8><== NEVER TAKEN
 800acf4:	78 01 08 01 	mvhi r1,0x801                                  
 800acf8:	b8 60 10 00 	mv r2,r3                                       
 800acfc:	38 21 f8 78 	ori r1,r1,0xf878                               
 800ad00:	37 83 00 0c 	addi r3,sp,12                                  
 800ad04:	fb ff ef 11 	calli 8006948 <_Objects_Get>                   
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  the_period = _Rate_monotonic_Get( id, &location );                  
  switch ( location ) {                                               
 800ad08:	2b 82 00 0c 	lw r2,(sp+12)                                  
 800ad0c:	5c 40 00 20 	bne r2,r0,800ad8c <rtems_rate_monotonic_get_statistics+0xb4>
                                                                      
    case OBJECTS_LOCAL:                                               
      dst = statistics;                                               
      src = &the_period->Statistics;                                  
      dst->count        = src->count;                                 
 800ad10:	28 22 00 54 	lw r2,(r1+84)                                  
 800ad14:	59 62 00 00 	sw (r11+0),r2                                  
      dst->missed_count = src->missed_count;                          
 800ad18:	28 22 00 58 	lw r2,(r1+88)                                  
 800ad1c:	59 62 00 04 	sw (r11+4),r2                                  
      #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                      
        _Timestamp_To_timespec( &src->min_cpu_time,   &dst->min_cpu_time );
 800ad20:	28 22 00 5c 	lw r2,(r1+92)                                  
 800ad24:	59 62 00 08 	sw (r11+8),r2                                  
 800ad28:	28 22 00 60 	lw r2,(r1+96)                                  
 800ad2c:	59 62 00 0c 	sw (r11+12),r2                                 
        _Timestamp_To_timespec( &src->max_cpu_time,   &dst->max_cpu_time );
 800ad30:	28 22 00 64 	lw r2,(r1+100)                                 
 800ad34:	59 62 00 10 	sw (r11+16),r2                                 
 800ad38:	28 22 00 68 	lw r2,(r1+104)                                 
 800ad3c:	59 62 00 14 	sw (r11+20),r2                                 
        _Timestamp_To_timespec( &src->total_cpu_time, &dst->total_cpu_time );
 800ad40:	28 22 00 6c 	lw r2,(r1+108)                                 
 800ad44:	59 62 00 18 	sw (r11+24),r2                                 
 800ad48:	28 22 00 70 	lw r2,(r1+112)                                 
 800ad4c:	59 62 00 1c 	sw (r11+28),r2                                 
        _Timestamp_To_timespec( &src->min_wall_time,   &dst->min_wall_time );
 800ad50:	28 22 00 74 	lw r2,(r1+116)                                 
 800ad54:	59 62 00 20 	sw (r11+32),r2                                 
 800ad58:	28 22 00 78 	lw r2,(r1+120)                                 
 800ad5c:	59 62 00 24 	sw (r11+36),r2                                 
        _Timestamp_To_timespec( &src->max_wall_time,   &dst->max_wall_time );
 800ad60:	28 22 00 7c 	lw r2,(r1+124)                                 
 800ad64:	59 62 00 28 	sw (r11+40),r2                                 
 800ad68:	28 22 00 80 	lw r2,(r1+128)                                 
 800ad6c:	59 62 00 2c 	sw (r11+44),r2                                 
        _Timestamp_To_timespec( &src->total_wall_time, &dst->total_wall_time );
 800ad70:	28 22 00 84 	lw r2,(r1+132)                                 
 800ad74:	28 21 00 88 	lw r1,(r1+136)                                 
 800ad78:	59 62 00 30 	sw (r11+48),r2                                 
 800ad7c:	59 61 00 34 	sw (r11+52),r1                                 
        dst->min_wall_time   = src->min_wall_time;                    
        dst->max_wall_time   = src->max_wall_time;                    
        dst->total_wall_time = src->total_wall_time;                  
      #endif                                                          
                                                                      
      _Thread_Enable_dispatch();                                      
 800ad80:	fb ff f2 bd 	calli 8007874 <_Thread_Enable_dispatch>        
      return RTEMS_SUCCESSFUL;                                        
 800ad84:	34 01 00 00 	mvi r1,0                                       
 800ad88:	e0 00 00 02 	bi 800ad90 <rtems_rate_monotonic_get_statistics+0xb8>
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 800ad8c:	34 01 00 04 	mvi r1,4                                       
}                                                                     
 800ad90:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800ad94:	2b 8b 00 08 	lw r11,(sp+8)                                  
 800ad98:	37 9c 00 0c 	addi sp,sp,12                                  
 800ad9c:	c3 a0 00 00 	ret                                            
                                                                      

080040f4 <rtems_rate_monotonic_period>: rtems_status_code rtems_rate_monotonic_period( rtems_id id, rtems_interval length ) {
 80040f4:	37 9c ff e8 	addi sp,sp,-24                                 
 80040f8:	5b 8b 00 14 	sw (sp+20),r11                                 
 80040fc:	5b 8c 00 10 	sw (sp+16),r12                                 
 8004100:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8004104:	5b 8e 00 08 	sw (sp+8),r14                                  
 8004108:	5b 9d 00 04 	sw (sp+4),ra                                   
 800410c:	b8 20 60 00 	mv r12,r1                                      
  Objects_Id         id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (Rate_monotonic_Control *)                                   
    _Objects_Get( &_Rate_monotonic_Information, id, location );       
 8004110:	78 01 08 01 	mvhi r1,0x801                                  
 8004114:	b8 40 68 00 	mv r13,r2                                      
 8004118:	38 21 f8 78 	ori r1,r1,0xf878                               
 800411c:	b9 80 10 00 	mv r2,r12                                      
 8004120:	37 83 00 18 	addi r3,sp,24                                  
 8004124:	f8 00 0a 09 	calli 8006948 <_Objects_Get>                   
 8004128:	b8 20 58 00 	mv r11,r1                                      
  rtems_rate_monotonic_period_states   local_state;                   
  ISR_Level                            level;                         
                                                                      
  the_period = _Rate_monotonic_Get( id, &location );                  
                                                                      
  switch ( location ) {                                               
 800412c:	2b 81 00 18 	lw r1,(sp+24)                                  
 8004130:	5c 20 00 5f 	bne r1,r0,80042ac <rtems_rate_monotonic_period+0x1b8>
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing (                      
  const Thread_Control *the_thread                                    
)                                                                     
{                                                                     
  return ( the_thread == _Thread_Executing );                         
 8004134:	78 03 08 01 	mvhi r3,0x801                                  
 8004138:	38 63 fb 40 	ori r3,r3,0xfb40                               
    case OBJECTS_LOCAL:                                               
      if ( !_Thread_Is_executing( the_period->owner ) ) {             
 800413c:	29 62 00 40 	lw r2,(r11+64)                                 
 8004140:	28 61 00 0c 	lw r1,(r3+12)                                  
 8004144:	44 41 00 04 	be r2,r1,8004154 <rtems_rate_monotonic_period+0x60>
        _Thread_Enable_dispatch();                                    
 8004148:	f8 00 0d cb 	calli 8007874 <_Thread_Enable_dispatch>        
        return RTEMS_NOT_OWNER_OF_RESOURCE;                           
 800414c:	34 0c 00 17 	mvi r12,23                                     
 8004150:	e0 00 00 58 	bi 80042b0 <rtems_rate_monotonic_period+0x1bc> 
      }                                                               
                                                                      
      if ( length == RTEMS_PERIOD_STATUS ) {                          
 8004154:	5d a0 00 0d 	bne r13,r0,8004188 <rtems_rate_monotonic_period+0x94>
        switch ( the_period->state ) {                                
 8004158:	29 61 00 38 	lw r1,(r11+56)                                 
 800415c:	34 02 00 04 	mvi r2,4                                       
 8004160:	34 0c 00 00 	mvi r12,0                                      
 8004164:	54 22 00 07 	bgu r1,r2,8004180 <rtems_rate_monotonic_period+0x8c><== NEVER TAKEN
 8004168:	78 0b 08 01 	mvhi r11,0x801                                 
 800416c:	34 02 00 02 	mvi r2,2                                       
 8004170:	fb ff f4 47 	calli 800128c <__ashlsi3>                      
 8004174:	39 6b d0 b8 	ori r11,r11,0xd0b8                             
 8004178:	b5 61 08 00 	add r1,r11,r1                                  
 800417c:	28 2c 00 00 	lw r12,(r1+0)                                  
          case RATE_MONOTONIC_ACTIVE:                                 
          default:              /* unreached -- only to remove warnings */
            return_value = RTEMS_SUCCESSFUL;                          
            break;                                                    
        }                                                             
        _Thread_Enable_dispatch();                                    
 8004180:	f8 00 0d bd 	calli 8007874 <_Thread_Enable_dispatch>        
        return( return_value );                                       
 8004184:	e0 00 00 4b 	bi 80042b0 <rtems_rate_monotonic_period+0x1bc> 
      }                                                               
                                                                      
      _ISR_Disable( level );                                          
 8004188:	90 00 70 00 	rcsr r14,IE                                    
 800418c:	34 01 ff fe 	mvi r1,-2                                      
 8004190:	a1 c1 08 00 	and r1,r14,r1                                  
 8004194:	d0 01 00 00 	wcsr IE,r1                                     
      if ( the_period->state == RATE_MONOTONIC_INACTIVE ) {           
 8004198:	29 63 00 38 	lw r3,(r11+56)                                 
 800419c:	5c 60 00 13 	bne r3,r0,80041e8 <rtems_rate_monotonic_period+0xf4>
        _ISR_Enable( level );                                         
 80041a0:	d0 0e 00 00 	wcsr IE,r14                                    
                                                                      
        /*                                                            
         *  Baseline statistics information for the beginning of a period.
         */                                                           
        _Rate_monotonic_Initiate_statistics( the_period );            
 80041a4:	b9 60 08 00 	mv r1,r11                                      
 80041a8:	fb ff ff 6e 	calli 8003f60 <_Rate_monotonic_Initiate_statistics>
                                                                      
        the_period->state = RATE_MONOTONIC_ACTIVE;                    
 80041ac:	34 01 00 02 	mvi r1,2                                       
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
 80041b0:	78 03 08 00 	mvhi r3,0x800                                  
 80041b4:	59 61 00 38 	sw (r11+56),r1                                 
 80041b8:	38 63 46 34 	ori r3,r3,0x4634                               
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 80041bc:	78 01 08 01 	mvhi r1,0x801                                  
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
 80041c0:	59 60 00 18 	sw (r11+24),r0                                 
  the_watchdog->routine   = routine;                                  
 80041c4:	59 63 00 2c 	sw (r11+44),r3                                 
  the_watchdog->id        = id;                                       
 80041c8:	59 6c 00 30 	sw (r11+48),r12                                
  the_watchdog->user_data = user_data;                                
 80041cc:	59 60 00 34 	sw (r11+52),r0                                 
          _Rate_monotonic_Timeout,                                    
          id,                                                         
          NULL                                                        
        );                                                            
                                                                      
        the_period->next_length = length;                             
 80041d0:	59 6d 00 3c 	sw (r11+60),r13                                
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
 80041d4:	59 6d 00 1c 	sw (r11+28),r13                                
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 80041d8:	38 21 fa 60 	ori r1,r1,0xfa60                               
 80041dc:	35 62 00 10 	addi r2,r11,16                                 
 80041e0:	f8 00 12 2e 	calli 8008a98 <_Watchdog_Insert>               
 80041e4:	e0 00 00 1f 	bi 8004260 <rtems_rate_monotonic_period+0x16c> 
        _Watchdog_Insert_ticks( &the_period->Timer, length );         
        _Thread_Enable_dispatch();                                    
        return RTEMS_SUCCESSFUL;                                      
      }                                                               
                                                                      
      if ( the_period->state == RATE_MONOTONIC_ACTIVE ) {             
 80041e8:	34 01 00 02 	mvi r1,2                                       
 80041ec:	5c 61 00 20 	bne r3,r1,800426c <rtems_rate_monotonic_period+0x178>
        /*                                                            
         *  Update statistics from the concluding period.             
         */                                                           
        _Rate_monotonic_Update_statistics( the_period );              
 80041f0:	b9 60 08 00 	mv r1,r11                                      
 80041f4:	fb ff ff 80 	calli 8003ff4 <_Rate_monotonic_Update_statistics>
        /*                                                            
         *  This tells the _Rate_monotonic_Timeout that this task is  
         *  in the process of blocking on the period and that we      
         *  may be changing the length of the next period.            
         */                                                           
        the_period->state = RATE_MONOTONIC_OWNER_IS_BLOCKING;         
 80041f8:	34 01 00 01 	mvi r1,1                                       
 80041fc:	59 61 00 38 	sw (r11+56),r1                                 
        the_period->next_length = length;                             
 8004200:	59 6d 00 3c 	sw (r11+60),r13                                
                                                                      
        _ISR_Enable( level );                                         
 8004204:	d0 0e 00 00 	wcsr IE,r14                                    
                                                                      
        _Thread_Executing->Wait.id = the_period->Object.id;           
 8004208:	78 01 08 01 	mvhi r1,0x801                                  
 800420c:	38 21 fb 40 	ori r1,r1,0xfb40                               
 8004210:	29 62 00 08 	lw r2,(r11+8)                                  
 8004214:	28 21 00 0c 	lw r1,(r1+12)                                  
 8004218:	58 22 00 20 	sw (r1+32),r2                                  
        _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
 800421c:	34 02 40 00 	mvi r2,16384                                   
 8004220:	f8 00 10 1f 	calli 800829c <_Thread_Set_state>              
                                                                      
        /*                                                            
         *  Did the watchdog timer expire while we were actually blocking
         *  on it?                                                    
         */                                                           
        _ISR_Disable( level );                                        
 8004224:	90 00 08 00 	rcsr r1,IE                                     
 8004228:	34 02 ff fe 	mvi r2,-2                                      
 800422c:	a0 22 10 00 	and r2,r1,r2                                   
 8004230:	d0 02 00 00 	wcsr IE,r2                                     
          local_state = the_period->state;                            
          the_period->state = RATE_MONOTONIC_ACTIVE;                  
 8004234:	34 03 00 02 	mvi r3,2                                       
        /*                                                            
         *  Did the watchdog timer expire while we were actually blocking
         *  on it?                                                    
         */                                                           
        _ISR_Disable( level );                                        
          local_state = the_period->state;                            
 8004238:	29 62 00 38 	lw r2,(r11+56)                                 
          the_period->state = RATE_MONOTONIC_ACTIVE;                  
 800423c:	59 63 00 38 	sw (r11+56),r3                                 
        _ISR_Enable( level );                                         
 8004240:	d0 01 00 00 	wcsr IE,r1                                     
                                                                      
        /*                                                            
         *  If it did, then we want to unblock ourself and continue as
         *  if nothing happen.  The period was reset in the timeout routine.
         */                                                           
        if ( local_state == RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING )   
 8004244:	34 01 00 03 	mvi r1,3                                       
 8004248:	5c 41 00 06 	bne r2,r1,8004260 <rtems_rate_monotonic_period+0x16c>
          _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
 800424c:	78 01 08 01 	mvhi r1,0x801                                  
 8004250:	38 21 fb 40 	ori r1,r1,0xfb40                               
 8004254:	28 21 00 0c 	lw r1,(r1+12)                                  
 8004258:	34 02 40 00 	mvi r2,16384                                   
 800425c:	f8 00 0c c2 	calli 8007564 <_Thread_Clear_state>            
                                                                      
        _Thread_Enable_dispatch();                                    
 8004260:	f8 00 0d 85 	calli 8007874 <_Thread_Enable_dispatch>        
        return RTEMS_SUCCESSFUL;                                      
 8004264:	34 0c 00 00 	mvi r12,0                                      
 8004268:	e0 00 00 12 	bi 80042b0 <rtems_rate_monotonic_period+0x1bc> 
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 800426c:	34 0c 00 04 	mvi r12,4                                      
                                                                      
        _Thread_Enable_dispatch();                                    
        return RTEMS_SUCCESSFUL;                                      
      }                                                               
                                                                      
      if ( the_period->state == RATE_MONOTONIC_EXPIRED ) {            
 8004270:	5c 6c 00 10 	bne r3,r12,80042b0 <rtems_rate_monotonic_period+0x1bc><== NEVER TAKEN
        /*                                                            
         *  Update statistics from the concluding period              
         */                                                           
        _Rate_monotonic_Update_statistics( the_period );              
 8004274:	b9 60 08 00 	mv r1,r11                                      
 8004278:	fb ff ff 5f 	calli 8003ff4 <_Rate_monotonic_Update_statistics>
                                                                      
        _ISR_Enable( level );                                         
 800427c:	d0 0e 00 00 	wcsr IE,r14                                    
                                                                      
        the_period->state = RATE_MONOTONIC_ACTIVE;                    
 8004280:	34 01 00 02 	mvi r1,2                                       
 8004284:	59 61 00 38 	sw (r11+56),r1                                 
 8004288:	78 01 08 01 	mvhi r1,0x801                                  
 800428c:	38 21 fa 60 	ori r1,r1,0xfa60                               
 8004290:	35 62 00 10 	addi r2,r11,16                                 
        the_period->next_length = length;                             
 8004294:	59 6d 00 3c 	sw (r11+60),r13                                
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
 8004298:	59 6d 00 1c 	sw (r11+28),r13                                
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 800429c:	f8 00 11 ff 	calli 8008a98 <_Watchdog_Insert>               
                                                                      
        _Watchdog_Insert_ticks( &the_period->Timer, length );         
        _Thread_Enable_dispatch();                                    
        return RTEMS_TIMEOUT;                                         
 80042a0:	34 0c 00 06 	mvi r12,6                                      
                                                                      
        the_period->state = RATE_MONOTONIC_ACTIVE;                    
        the_period->next_length = length;                             
                                                                      
        _Watchdog_Insert_ticks( &the_period->Timer, length );         
        _Thread_Enable_dispatch();                                    
 80042a4:	f8 00 0d 74 	calli 8007874 <_Thread_Enable_dispatch>        
        return RTEMS_TIMEOUT;                                         
 80042a8:	e0 00 00 02 	bi 80042b0 <rtems_rate_monotonic_period+0x1bc> 
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 80042ac:	34 0c 00 04 	mvi r12,4                                      
}                                                                     
 80042b0:	b9 80 08 00 	mv r1,r12                                      
 80042b4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80042b8:	2b 8b 00 14 	lw r11,(sp+20)                                 
 80042bc:	2b 8c 00 10 	lw r12,(sp+16)                                 
 80042c0:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 80042c4:	2b 8e 00 08 	lw r14,(sp+8)                                  
 80042c8:	37 9c 00 18 	addi sp,sp,24                                  
 80042cc:	c3 a0 00 00 	ret                                            
                                                                      

080042d0 <rtems_rate_monotonic_report_statistics_with_plugin>: */ void rtems_rate_monotonic_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) {
 80042d0:	37 9c ff 5c 	addi sp,sp,-164                                
 80042d4:	5b 8b 00 44 	sw (sp+68),r11                                 
 80042d8:	5b 8c 00 40 	sw (sp+64),r12                                 
 80042dc:	5b 8d 00 3c 	sw (sp+60),r13                                 
 80042e0:	5b 8e 00 38 	sw (sp+56),r14                                 
 80042e4:	5b 8f 00 34 	sw (sp+52),r15                                 
 80042e8:	5b 90 00 30 	sw (sp+48),r16                                 
 80042ec:	5b 91 00 2c 	sw (sp+44),r17                                 
 80042f0:	5b 92 00 28 	sw (sp+40),r18                                 
 80042f4:	5b 93 00 24 	sw (sp+36),r19                                 
 80042f8:	5b 94 00 20 	sw (sp+32),r20                                 
 80042fc:	5b 95 00 1c 	sw (sp+28),r21                                 
 8004300:	5b 96 00 18 	sw (sp+24),r22                                 
 8004304:	5b 97 00 14 	sw (sp+20),r23                                 
 8004308:	5b 98 00 10 	sw (sp+16),r24                                 
 800430c:	5b 99 00 0c 	sw (sp+12),r25                                 
 8004310:	5b 9b 00 08 	sw (sp+8),fp                                   
 8004314:	5b 9d 00 04 	sw (sp+4),ra                                   
 8004318:	b8 20 60 00 	mv r12,r1                                      
 800431c:	b8 40 58 00 	mv r11,r2                                      
  rtems_id                               id;                          
  rtems_rate_monotonic_period_statistics the_stats;                   
  rtems_rate_monotonic_period_status     the_status;                  
  char                                   name[5];                     
                                                                      
  if ( !print )                                                       
 8004320:	44 40 00 72 	be r2,r0,80044e8 <rtems_rate_monotonic_report_statistics_with_plugin+0x218><== NEVER TAKEN
    return;                                                           
                                                                      
  (*print)( context, "Period information by period\n" );              
 8004324:	78 02 08 01 	mvhi r2,0x801                                  
 8004328:	38 42 d0 cc 	ori r2,r2,0xd0cc                               
 800432c:	d9 60 00 00 	call r11                                       
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    (*print)( context, "--- CPU times are in seconds ---\n" );        
 8004330:	78 02 08 01 	mvhi r2,0x801                                  
 8004334:	38 42 d0 ec 	ori r2,r2,0xd0ec                               
 8004338:	b9 80 08 00 	mv r1,r12                                      
 800433c:	d9 60 00 00 	call r11                                       
    (*print)( context, "--- Wall times are in seconds ---\n" );       
 8004340:	78 02 08 01 	mvhi r2,0x801                                  
 8004344:	38 42 d1 10 	ori r2,r2,0xd110                               
 8004348:	b9 80 08 00 	mv r1,r12                                      
 800434c:	d9 60 00 00 	call r11                                       
  Be sure to test the various cases.                                  
  (*print)( context,"\                                                
1234567890123456789012345678901234567890123456789012345678901234567890123456789\
\n");                                                                 
*/                                                                    
  (*print)( context, "   ID     OWNER COUNT MISSED     "              
 8004350:	78 02 08 01 	mvhi r2,0x801                                  
 8004354:	38 42 d1 34 	ori r2,r2,0xd134                               
 8004358:	b9 80 08 00 	mv r1,r12                                      
 800435c:	d9 60 00 00 	call r11                                       
       #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                     
          "          "                                                
       #endif                                                         
          "   WALL TIME\n"                                            
  );                                                                  
  (*print)( context, "                               "                
 8004360:	78 02 08 01 	mvhi r2,0x801                                  
 8004364:	b9 80 08 00 	mv r1,r12                                      
 8004368:	38 42 d1 80 	ori r2,r2,0xd180                               
 800436c:	d9 60 00 00 	call r11                                       
                                                                      
  /*                                                                  
   * 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 ;                   
 8004370:	78 01 08 01 	mvhi r1,0x801                                  
 8004374:	38 21 f8 78 	ori r1,r1,0xf878                               
    rtems_object_get_name( the_status.owner, sizeof(name), name );    
                                                                      
    /*                                                                
     *  Print part of report line that is not dependent on granularity
     */                                                               
    (*print)( context,                                                
 8004378:	78 11 08 01 	mvhi r17,0x801                                 
      struct timespec *min_cpu = &the_stats.min_cpu_time;             
      struct timespec *max_cpu = &the_stats.max_cpu_time;             
      struct timespec *total_cpu = &the_stats.total_cpu_time;         
                                                                      
      _Timespec_Divide_by_integer( total_cpu, the_stats.count, &cpu_average );
      (*print)( context,                                              
 800437c:	78 10 08 01 	mvhi r16,0x801                                 
      struct timespec *min_wall = &the_stats.min_wall_time;           
      struct timespec *max_wall = &the_stats.max_wall_time;           
      struct timespec *total_wall = &the_stats.total_wall_time;       
                                                                      
      _Timespec_Divide_by_integer(total_wall, the_stats.count, &wall_average);
      (*print)( context,                                              
 8004380:	78 0f 08 01 	mvhi r15,0x801                                 
                                                                      
    /*                                                                
     *  If the count is zero, don't print statistics                  
     */                                                               
    if (the_stats.count == 0) {                                       
      (*print)( context, "\n" );                                      
 8004384:	78 0e 08 01 	mvhi r14,0x801                                 
                                                                      
  /*                                                                  
   * Cycle through all possible ids and try to report on each one.  If it
   * is a period that is inactive, we just get an error back.  No big deal.
   */                                                                 
  for ( id=_Rate_monotonic_Information.minimum_id ;                   
 8004388:	28 2d 00 08 	lw r13,(r1+8)                                  
        id <= _Rate_monotonic_Information.maximum_id ;                
 800438c:	b8 20 a0 00 	mv r20,r1                                      
        id++ ) {                                                      
    status = rtems_rate_monotonic_get_statistics( id, &the_stats );   
 8004390:	37 99 00 48 	addi r25,sp,72                                 
    #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 );      
 8004394:	37 98 00 80 	addi r24,sp,128                                
    #endif                                                            
                                                                      
    rtems_object_get_name( the_status.owner, sizeof(name), name );    
 8004398:	37 93 00 a0 	addi r19,sp,160                                
                                                                      
    /*                                                                
     *  Print part of report line that is not dependent on granularity
     */                                                               
    (*print)( context,                                                
 800439c:	3a 31 d1 cc 	ori r17,r17,0xd1cc                             
    {                                                                 
    #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                        
      struct timespec  cpu_average;                                   
      struct timespec *min_cpu = &the_stats.min_cpu_time;             
      struct timespec *max_cpu = &the_stats.max_cpu_time;             
      struct timespec *total_cpu = &the_stats.total_cpu_time;         
 80043a0:	37 97 00 60 	addi r23,sp,96                                 
                                                                      
      _Timespec_Divide_by_integer( total_cpu, the_stats.count, &cpu_average );
 80043a4:	37 92 00 98 	addi r18,sp,152                                
      (*print)( context,                                              
 80043a8:	3a 10 d1 e4 	ori r16,r16,0xd1e4                             
    {                                                                 
    #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                        
      struct timespec  wall_average;                                  
      struct timespec *min_wall = &the_stats.min_wall_time;           
      struct timespec *max_wall = &the_stats.max_wall_time;           
      struct timespec *total_wall = &the_stats.total_wall_time;       
 80043ac:	37 96 00 78 	addi r22,sp,120                                
                                                                      
      _Timespec_Divide_by_integer(total_wall, the_stats.count, &wall_average);
      (*print)( context,                                              
 80043b0:	39 ef d2 04 	ori r15,r15,0xd204                             
                                                                      
    /*                                                                
     *  If the count is zero, don't print statistics                  
     */                                                               
    if (the_stats.count == 0) {                                       
      (*print)( context, "\n" );                                      
 80043b4:	39 ce c7 10 	ori r14,r14,0xc710                             
                                                                      
  /*                                                                  
   * 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 ;                   
 80043b8:	e0 00 00 4a 	bi 80044e0 <rtems_rate_monotonic_report_statistics_with_plugin+0x210>
        id <= _Rate_monotonic_Information.maximum_id ;                
        id++ ) {                                                      
    status = rtems_rate_monotonic_get_statistics( id, &the_stats );   
 80043bc:	b9 a0 08 00 	mv r1,r13                                      
 80043c0:	bb 20 10 00 	mv r2,r25                                      
 80043c4:	f8 00 1a 45 	calli 800acd8 <rtems_rate_monotonic_get_statistics>
 80043c8:	b8 20 a8 00 	mv r21,r1                                      
    if ( status != RTEMS_SUCCESSFUL )                                 
 80043cc:	5c 20 00 44 	bne r1,r0,80044dc <rtems_rate_monotonic_report_statistics_with_plugin+0x20c>
    #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 );      
 80043d0:	bb 00 10 00 	mv r2,r24                                      
 80043d4:	b9 a0 08 00 	mv r1,r13                                      
 80043d8:	f8 00 1a 72 	calli 800ada0 <rtems_rate_monotonic_get_status>
    #endif                                                            
                                                                      
    rtems_object_get_name( the_status.owner, sizeof(name), name );    
 80043dc:	2b 81 00 80 	lw r1,(sp+128)                                 
 80043e0:	34 02 00 05 	mvi r2,5                                       
 80043e4:	ba 60 18 00 	mv r3,r19                                      
 80043e8:	f8 00 00 c3 	calli 80046f4 <rtems_object_get_name>          
                                                                      
    /*                                                                
     *  Print part of report line that is not dependent on granularity
     */                                                               
    (*print)( context,                                                
 80043ec:	2b 85 00 48 	lw r5,(sp+72)                                  
 80043f0:	2b 86 00 4c 	lw r6,(sp+76)                                  
 80043f4:	ba 20 10 00 	mv r2,r17                                      
 80043f8:	b9 80 08 00 	mv r1,r12                                      
 80043fc:	b9 a0 18 00 	mv r3,r13                                      
 8004400:	ba 60 20 00 	mv r4,r19                                      
 8004404:	d9 60 00 00 	call r11                                       
    );                                                                
                                                                      
    /*                                                                
     *  If the count is zero, don't print statistics                  
     */                                                               
    if (the_stats.count == 0) {                                       
 8004408:	2b 82 00 48 	lw r2,(sp+72)                                  
 800440c:	5c 55 00 05 	bne r2,r21,8004420 <rtems_rate_monotonic_report_statistics_with_plugin+0x150>
      (*print)( context, "\n" );                                      
 8004410:	b9 80 08 00 	mv r1,r12                                      
 8004414:	b9 c0 10 00 	mv r2,r14                                      
 8004418:	d9 60 00 00 	call r11                                       
      continue;                                                       
 800441c:	e0 00 00 30 	bi 80044dc <rtems_rate_monotonic_report_statistics_with_plugin+0x20c>
      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 );
 8004420:	ba 40 18 00 	mv r3,r18                                      
 8004424:	ba e0 08 00 	mv r1,r23                                      
 8004428:	f8 00 10 52 	calli 8008570 <_Timespec_Divide_by_integer>    
      (*print)( context,                                              
 800442c:	2b 81 00 54 	lw r1,(sp+84)                                  
 8004430:	34 02 03 e8 	mvi r2,1000                                    
 8004434:	f8 00 5d 1e 	calli 801b8ac <__divsi3>                       
 8004438:	b8 20 d8 00 	mv fp,r1                                       
 800443c:	2b 81 00 5c 	lw r1,(sp+92)                                  
 8004440:	34 02 03 e8 	mvi r2,1000                                    
 8004444:	f8 00 5d 1a 	calli 801b8ac <__divsi3>                       
 8004448:	b8 20 a8 00 	mv r21,r1                                      
 800444c:	2b 81 00 9c 	lw r1,(sp+156)                                 
 8004450:	34 02 03 e8 	mvi r2,1000                                    
 8004454:	f8 00 5d 16 	calli 801b8ac <__divsi3>                       
 8004458:	2b 85 00 58 	lw r5,(sp+88)                                  
 800445c:	2b 87 00 98 	lw r7,(sp+152)                                 
 8004460:	2b 83 00 50 	lw r3,(sp+80)                                  
 8004464:	b8 20 40 00 	mv r8,r1                                       
 8004468:	bb 60 20 00 	mv r4,fp                                       
 800446c:	ba a0 30 00 	mv r6,r21                                      
 8004470:	ba 00 10 00 	mv r2,r16                                      
 8004474:	b9 80 08 00 	mv r1,r12                                      
 8004478:	d9 60 00 00 	call r11                                       
      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);
 800447c:	2b 82 00 48 	lw r2,(sp+72)                                  
 8004480:	ba 40 18 00 	mv r3,r18                                      
 8004484:	ba c0 08 00 	mv r1,r22                                      
 8004488:	f8 00 10 3a 	calli 8008570 <_Timespec_Divide_by_integer>    
      (*print)( context,                                              
 800448c:	2b 81 00 6c 	lw r1,(sp+108)                                 
 8004490:	34 02 03 e8 	mvi r2,1000                                    
 8004494:	f8 00 5d 06 	calli 801b8ac <__divsi3>                       
 8004498:	b8 20 d8 00 	mv fp,r1                                       
 800449c:	2b 81 00 74 	lw r1,(sp+116)                                 
 80044a0:	34 02 03 e8 	mvi r2,1000                                    
 80044a4:	f8 00 5d 02 	calli 801b8ac <__divsi3>                       
 80044a8:	b8 20 a8 00 	mv r21,r1                                      
 80044ac:	2b 81 00 9c 	lw r1,(sp+156)                                 
 80044b0:	34 02 03 e8 	mvi r2,1000                                    
 80044b4:	f8 00 5c fe 	calli 801b8ac <__divsi3>                       
 80044b8:	2b 83 00 68 	lw r3,(sp+104)                                 
 80044bc:	2b 85 00 70 	lw r5,(sp+112)                                 
 80044c0:	2b 87 00 98 	lw r7,(sp+152)                                 
 80044c4:	b8 20 40 00 	mv r8,r1                                       
 80044c8:	b9 e0 10 00 	mv r2,r15                                      
 80044cc:	b9 80 08 00 	mv r1,r12                                      
 80044d0:	bb 60 20 00 	mv r4,fp                                       
 80044d4:	ba a0 30 00 	mv r6,r21                                      
 80044d8:	d9 60 00 00 	call r11                                       
   * 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++ ) {                                                      
 80044dc:	35 ad 00 01 	addi r13,r13,1                                 
                                                                      
  /*                                                                  
   * Cycle through all possible ids and try to report on each one.  If it
   * is a period that is inactive, we just get an error back.  No big deal.
   */                                                                 
  for ( id=_Rate_monotonic_Information.minimum_id ;                   
 80044e0:	2a 81 00 0c 	lw r1,(r20+12)                                 
 80044e4:	50 2d ff b6 	bgeu r1,r13,80043bc <rtems_rate_monotonic_report_statistics_with_plugin+0xec>
        the_stats.min_wall_time, the_stats.max_wall_time, ival_wall, fval_wall
      );                                                              
    #endif                                                            
    }                                                                 
  }                                                                   
}                                                                     
 80044e8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80044ec:	2b 8b 00 44 	lw r11,(sp+68)                                 
 80044f0:	2b 8c 00 40 	lw r12,(sp+64)                                 
 80044f4:	2b 8d 00 3c 	lw r13,(sp+60)                                 
 80044f8:	2b 8e 00 38 	lw r14,(sp+56)                                 
 80044fc:	2b 8f 00 34 	lw r15,(sp+52)                                 
 8004500:	2b 90 00 30 	lw r16,(sp+48)                                 
 8004504:	2b 91 00 2c 	lw r17,(sp+44)                                 
 8004508:	2b 92 00 28 	lw r18,(sp+40)                                 
 800450c:	2b 93 00 24 	lw r19,(sp+36)                                 
 8004510:	2b 94 00 20 	lw r20,(sp+32)                                 
 8004514:	2b 95 00 1c 	lw r21,(sp+28)                                 
 8004518:	2b 96 00 18 	lw r22,(sp+24)                                 
 800451c:	2b 97 00 14 	lw r23,(sp+20)                                 
 8004520:	2b 98 00 10 	lw r24,(sp+16)                                 
 8004524:	2b 99 00 0c 	lw r25,(sp+12)                                 
 8004528:	2b 9b 00 08 	lw fp,(sp+8)                                   
 800452c:	37 9c 00 a4 	addi sp,sp,164                                 
 8004530:	c3 a0 00 00 	ret                                            
                                                                      

080027d4 <rtems_semaphore_create>: uint32_t count, rtems_attribute attribute_set, rtems_task_priority priority_ceiling, rtems_id *id ) {
 80027d4:	37 9c ff c8 	addi sp,sp,-56                                 
 80027d8:	5b 8b 00 20 	sw (sp+32),r11                                 
 80027dc:	5b 8c 00 1c 	sw (sp+28),r12                                 
 80027e0:	5b 8d 00 18 	sw (sp+24),r13                                 
 80027e4:	5b 8e 00 14 	sw (sp+20),r14                                 
 80027e8:	5b 8f 00 10 	sw (sp+16),r15                                 
 80027ec:	5b 90 00 0c 	sw (sp+12),r16                                 
 80027f0:	5b 91 00 08 	sw (sp+8),r17                                  
 80027f4:	5b 9d 00 04 	sw (sp+4),ra                                   
 80027f8:	b8 20 80 00 	mv r16,r1                                      
 80027fc:	b8 40 70 00 	mv r14,r2                                      
 8002800:	b8 60 60 00 	mv r12,r3                                      
 8002804:	b8 80 88 00 	mv r17,r4                                      
 8002808:	b8 a0 78 00 	mv r15,r5                                      
  CORE_mutex_Attributes       the_mutex_attr;                         
  CORE_semaphore_Attributes   the_semaphore_attr;                     
  CORE_mutex_Status           mutex_status;                           
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
    return RTEMS_INVALID_NAME;                                        
 800280c:	34 01 00 03 	mvi r1,3                                       
  register Semaphore_Control *the_semaphore;                          
  CORE_mutex_Attributes       the_mutex_attr;                         
  CORE_semaphore_Attributes   the_semaphore_attr;                     
  CORE_mutex_Status           mutex_status;                           
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
 8002810:	46 00 00 64 	be r16,r0,80029a0 <rtems_semaphore_create+0x1cc><== NEVER TAKEN
    return RTEMS_INVALID_NAME;                                        
                                                                      
  if ( !id )                                                          
    return RTEMS_INVALID_ADDRESS;                                     
 8002814:	34 01 00 09 	mvi r1,9                                       
  CORE_mutex_Status           mutex_status;                           
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
    return RTEMS_INVALID_NAME;                                        
                                                                      
  if ( !id )                                                          
 8002818:	44 a0 00 62 	be r5,r0,80029a0 <rtems_semaphore_create+0x1cc><== NEVER TAKEN
 *    id       - semaphore id                                         
 *    RTEMS_SUCCESSFUL - if successful                                
 *    error code - if unsuccessful                                    
 */                                                                   
                                                                      
rtems_status_code rtems_semaphore_create(                             
 800281c:	20 62 00 c0 	andi r2,r3,0xc0                                
      return RTEMS_NOT_DEFINED;                                       
                                                                      
  } else                                                              
#endif                                                                
                                                                      
  if ( _Attributes_Is_inherit_priority( attribute_set ) ||            
 8002820:	44 40 00 09 	be r2,r0,8002844 <rtems_semaphore_create+0x70> 
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Attributes_Is_binary_semaphore(            
  rtems_attribute attribute_set                                       
)                                                                     
{                                                                     
  return ((attribute_set & RTEMS_SEMAPHORE_CLASS) == RTEMS_BINARY_SEMAPHORE);
 8002824:	20 64 00 30 	andi r4,r3,0x30                                
              _Attributes_Is_priority_ceiling( attribute_set ) ) {    
                                                                      
    if ( ! (_Attributes_Is_binary_semaphore( attribute_set ) &&       
 8002828:	34 03 00 10 	mvi r3,16                                      
            _Attributes_Is_priority( attribute_set ) ) )              
      return RTEMS_NOT_DEFINED;                                       
 800282c:	34 01 00 0b 	mvi r1,11                                      
#endif                                                                
                                                                      
  if ( _Attributes_Is_inherit_priority( attribute_set ) ||            
              _Attributes_Is_priority_ceiling( attribute_set ) ) {    
                                                                      
    if ( ! (_Attributes_Is_binary_semaphore( attribute_set ) &&       
 8002830:	5c 83 00 5c 	bne r4,r3,80029a0 <rtems_semaphore_create+0x1cc><== NEVER TAKEN
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Attributes_Is_priority(                    
  rtems_attribute attribute_set                                       
)                                                                     
{                                                                     
   return ( attribute_set & RTEMS_PRIORITY ) ? true : false;          
 8002834:	21 83 00 04 	andi r3,r12,0x4                                
 8002838:	44 60 00 5a 	be r3,r0,80029a0 <rtems_semaphore_create+0x1cc><== NEVER TAKEN
            _Attributes_Is_priority( attribute_set ) ) )              
      return RTEMS_NOT_DEFINED;                                       
                                                                      
  }                                                                   
                                                                      
  if ( _Attributes_Is_inherit_priority( attribute_set ) &&            
 800283c:	34 03 00 c0 	mvi r3,192                                     
 8002840:	44 43 00 58 	be r2,r3,80029a0 <rtems_semaphore_create+0x1cc><== NEVER TAKEN
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Attributes_Is_counting_semaphore(          
  rtems_attribute attribute_set                                       
)                                                                     
{                                                                     
  return ((attribute_set & RTEMS_SEMAPHORE_CLASS) == RTEMS_COUNTING_SEMAPHORE);
 8002844:	21 8d 00 30 	andi r13,r12,0x30                              
       _Attributes_Is_priority_ceiling( attribute_set ) )             
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( !_Attributes_Is_counting_semaphore( attribute_set ) && ( count > 1 ) )
 8002848:	45 a0 00 04 	be r13,r0,8002858 <rtems_semaphore_create+0x84>
 800284c:	34 02 00 01 	mvi r2,1                                       
    return RTEMS_INVALID_NUMBER;                                      
 8002850:	34 01 00 0a 	mvi r1,10                                      
                                                                      
  if ( _Attributes_Is_inherit_priority( attribute_set ) &&            
       _Attributes_Is_priority_ceiling( attribute_set ) )             
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( !_Attributes_Is_counting_semaphore( attribute_set ) && ( count > 1 ) )
 8002854:	55 c2 00 53 	bgu r14,r2,80029a0 <rtems_semaphore_create+0x1cc><== NEVER TAKEN
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
 8002858:	78 06 08 01 	mvhi r6,0x801                                  
 800285c:	38 c6 38 88 	ori r6,r6,0x3888                               
 8002860:	28 c1 00 00 	lw r1,(r6+0)                                   
 8002864:	34 21 00 01 	addi r1,r1,1                                   
 8002868:	58 c1 00 00 	sw (r6+0),r1                                   
 *  This function allocates a semaphore control block from            
 *  the inactive chain of free semaphore control blocks.              
 */                                                                   
RTEMS_INLINE_ROUTINE Semaphore_Control *_Semaphore_Allocate( void )   
{                                                                     
  return (Semaphore_Control *) _Objects_Allocate( &_Semaphore_Information );
 800286c:	78 01 08 01 	mvhi r1,0x801                                  
 8002870:	38 21 37 a0 	ori r1,r1,0x37a0                               
 8002874:	f8 00 06 04 	calli 8004084 <_Objects_Allocate>              
 8002878:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  _Thread_Disable_dispatch();             /* prevents deletion */     
                                                                      
  the_semaphore = _Semaphore_Allocate();                              
                                                                      
  if ( !the_semaphore ) {                                             
 800287c:	5c 20 00 04 	bne r1,r0,800288c <rtems_semaphore_create+0xb8>
    _Thread_Enable_dispatch();                                        
 8002880:	f8 00 0b 61 	calli 8005604 <_Thread_Enable_dispatch>        
    return RTEMS_TOO_MANY;                                            
 8002884:	34 01 00 05 	mvi r1,5                                       
 8002888:	e0 00 00 46 	bi 80029a0 <rtems_semaphore_create+0x1cc>      
    _Thread_Enable_dispatch();                                        
    return RTEMS_TOO_MANY;                                            
  }                                                                   
#endif                                                                
                                                                      
  the_semaphore->attribute_set = attribute_set;                       
 800288c:	58 2c 00 10 	sw (r1+16),r12                                 
 8002890:	21 81 00 04 	andi r1,r12,0x4                                
                                                                      
  /*                                                                  
   *  Initialize it as a counting semaphore.                          
   */                                                                 
  if ( _Attributes_Is_counting_semaphore( attribute_set ) ) {         
 8002894:	5d a0 00 0f 	bne r13,r0,80028d0 <rtems_semaphore_create+0xfc>
    /*                                                                
     *  This effectively disables limit checking.                     
     */                                                               
    the_semaphore_attr.maximum_count = 0xFFFFFFFF;                    
 8002898:	34 02 ff ff 	mvi r2,-1                                      
 800289c:	5b 82 00 34 	sw (sp+52),r2                                  
                                                                      
    if ( _Attributes_Is_priority( attribute_set ) )                   
 80028a0:	44 2d 00 04 	be r1,r13,80028b0 <rtems_semaphore_create+0xdc>
      the_semaphore_attr.discipline = CORE_SEMAPHORE_DISCIPLINES_PRIORITY;
 80028a4:	34 01 00 01 	mvi r1,1                                       
 80028a8:	5b 81 00 38 	sw (sp+56),r1                                  
 80028ac:	e0 00 00 02 	bi 80028b4 <rtems_semaphore_create+0xe0>       
    else                                                              
      the_semaphore_attr.discipline = CORE_SEMAPHORE_DISCIPLINES_FIFO;
 80028b0:	5b 80 00 38 	sw (sp+56),r0                                  
     *  The following are just to make Purify happy.                  
     */                                                               
    the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES;
    the_mutex_attr.priority_ceiling = PRIORITY_MINIMUM;               
                                                                      
    _CORE_semaphore_Initialize(                                       
 80028b4:	35 61 00 14 	addi r1,r11,20                                 
 80028b8:	37 82 00 34 	addi r2,sp,52                                  
 80028bc:	b9 c0 18 00 	mv r3,r14                                      
      the_semaphore_attr.discipline = CORE_SEMAPHORE_DISCIPLINES_FIFO;
                                                                      
    /*                                                                
     *  The following are just to make Purify happy.                  
     */                                                               
    the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES;
 80028c0:	5b 80 00 24 	sw (sp+36),r0                                  
    the_mutex_attr.priority_ceiling = PRIORITY_MINIMUM;               
 80028c4:	5b 80 00 30 	sw (sp+48),r0                                  
                                                                      
    _CORE_semaphore_Initialize(                                       
 80028c8:	f8 00 04 01 	calli 80038cc <_CORE_semaphore_Initialize>     
 80028cc:	e0 00 00 28 	bi 800296c <rtems_semaphore_create+0x198>      
  } else {                                                            
    /*                                                                
     *  It is either simple binary semaphore or a more powerful mutex 
     *  style binary semaphore.  This is the mutex style.             
     */                                                               
    if ( _Attributes_Is_priority( attribute_set ) )                   
 80028d0:	44 20 00 04 	be r1,r0,80028e0 <rtems_semaphore_create+0x10c>
      the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY;    
 80028d4:	34 01 00 01 	mvi r1,1                                       
 80028d8:	5b 81 00 2c 	sw (sp+44),r1                                  
 80028dc:	e0 00 00 02 	bi 80028e4 <rtems_semaphore_create+0x110>      
    else                                                              
      the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_FIFO;        
 80028e0:	5b 80 00 2c 	sw (sp+44),r0                                  
                                                                      
    if ( _Attributes_Is_binary_semaphore( attribute_set ) ) {         
 80028e4:	34 01 00 10 	mvi r1,16                                      
 80028e8:	5d a1 00 11 	bne r13,r1,800292c <rtems_semaphore_create+0x158>
      the_mutex_attr.priority_ceiling      = priority_ceiling;        
      the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES;
      the_mutex_attr.only_owner_release    = false;                   
                                                                      
      if ( the_mutex_attr.discipline == CORE_MUTEX_DISCIPLINES_PRIORITY ) {
 80028ec:	2b 82 00 2c 	lw r2,(sp+44)                                  
      the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY;    
    else                                                              
      the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_FIFO;        
                                                                      
    if ( _Attributes_Is_binary_semaphore( attribute_set ) ) {         
      the_mutex_attr.priority_ceiling      = priority_ceiling;        
 80028f0:	5b 91 00 30 	sw (sp+48),r17                                 
      the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES;
 80028f4:	5b 80 00 24 	sw (sp+36),r0                                  
      the_mutex_attr.only_owner_release    = false;                   
 80028f8:	33 80 00 28 	sb (sp+40),r0                                  
                                                                      
      if ( the_mutex_attr.discipline == CORE_MUTEX_DISCIPLINES_PRIORITY ) {
 80028fc:	34 01 00 01 	mvi r1,1                                       
 8002900:	5c 41 00 0e 	bne r2,r1,8002938 <rtems_semaphore_create+0x164>
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Attributes_Is_inherit_priority(            
  rtems_attribute attribute_set                                       
)                                                                     
{                                                                     
   return ( attribute_set & RTEMS_INHERIT_PRIORITY ) ? true : false;  
 8002904:	21 81 00 40 	andi r1,r12,0x40                               
        if ( _Attributes_Is_inherit_priority( attribute_set ) ) {     
 8002908:	44 20 00 03 	be r1,r0,8002914 <rtems_semaphore_create+0x140>
          the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT;
 800290c:	34 01 00 02 	mvi r1,2                                       
 8002910:	e0 00 00 04 	bi 8002920 <rtems_semaphore_create+0x14c>      
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Attributes_Is_priority_ceiling(            
  rtems_attribute attribute_set                                       
)                                                                     
{                                                                     
   return ( attribute_set & RTEMS_PRIORITY_CEILING ) ? true : false;  
 8002914:	21 8c 00 80 	andi r12,r12,0x80                              
          the_mutex_attr.only_owner_release = true;                   
        } else if ( _Attributes_Is_priority_ceiling( attribute_set ) ) {
 8002918:	45 81 00 08 	be r12,r1,8002938 <rtems_semaphore_create+0x164>
          the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING;
 800291c:	34 01 00 03 	mvi r1,3                                       
 8002920:	5b 81 00 2c 	sw (sp+44),r1                                  
          the_mutex_attr.only_owner_release = true;                   
 8002924:	33 82 00 28 	sb (sp+40),r2                                  
 8002928:	e0 00 00 04 	bi 8002938 <rtems_semaphore_create+0x164>      
        }                                                             
      }                                                               
    } else /* must be simple binary semaphore */ {                    
      the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_BLOCKS;
 800292c:	34 01 00 01 	mvi r1,1                                       
 8002930:	5b 81 00 24 	sw (sp+36),r1                                  
      the_mutex_attr.only_owner_release = false;                      
 8002934:	33 80 00 28 	sb (sp+40),r0                                  
    }                                                                 
                                                                      
    mutex_status = _CORE_mutex_Initialize(                            
 8002938:	65 c3 00 01 	cmpei r3,r14,1                                 
 800293c:	37 82 00 24 	addi r2,sp,36                                  
 8002940:	35 61 00 14 	addi r1,r11,20                                 
 8002944:	f8 00 03 0e 	calli 800357c <_CORE_mutex_Initialize>         
      &the_semaphore->Core_control.mutex,                             
      &the_mutex_attr,                                                
      (count == 1) ? CORE_MUTEX_UNLOCKED : CORE_MUTEX_LOCKED          
    );                                                                
                                                                      
    if ( mutex_status == CORE_MUTEX_STATUS_CEILING_VIOLATED ) {       
 8002948:	34 02 00 05 	mvi r2,5                                       
 800294c:	5c 22 00 08 	bne r1,r2,800296c <rtems_semaphore_create+0x198>
 */                                                                   
RTEMS_INLINE_ROUTINE void _Semaphore_Free (                           
  Semaphore_Control *the_semaphore                                    
)                                                                     
{                                                                     
  _Objects_Free( &_Semaphore_Information, &the_semaphore->Object );   
 8002950:	78 01 08 01 	mvhi r1,0x801                                  
 8002954:	38 21 37 a0 	ori r1,r1,0x37a0                               
 8002958:	b9 60 10 00 	mv r2,r11                                      
 800295c:	f8 00 06 c5 	calli 8004470 <_Objects_Free>                  
      _Semaphore_Free( the_semaphore );                               
      _Thread_Enable_dispatch();                                      
 8002960:	f8 00 0b 29 	calli 8005604 <_Thread_Enable_dispatch>        
      return RTEMS_INVALID_PRIORITY;                                  
 8002964:	34 01 00 13 	mvi r1,19                                      
 8002968:	e0 00 00 0e 	bi 80029a0 <rtems_semaphore_create+0x1cc>      
  Objects_Name         name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
 800296c:	29 6c 00 08 	lw r12,(r11+8)                                 
      0                          /* Not used */                       
    );                                                                
#endif                                                                
  _Thread_Enable_dispatch();                                          
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 8002970:	78 02 08 01 	mvhi r2,0x801                                  
 8002974:	38 42 37 a0 	ori r2,r2,0x37a0                               
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 8002978:	28 4d 00 1c 	lw r13,(r2+28)                                 
 800297c:	21 81 ff ff 	andi r1,r12,0xffff                             
 8002980:	34 02 00 02 	mvi r2,2                                       
 8002984:	f8 00 37 c1 	calli 8010888 <__ashlsi3>                      
 8002988:	b5 a1 08 00 	add r1,r13,r1                                  
 800298c:	58 2b 00 00 	sw (r1+0),r11                                  
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  the_object->name = name;                                            
 8002990:	59 70 00 0c 	sw (r11+12),r16                                
    &_Semaphore_Information,                                          
    &the_semaphore->Object,                                           
    (Objects_Name) name                                               
  );                                                                  
                                                                      
  *id = the_semaphore->Object.id;                                     
 8002994:	59 ec 00 00 	sw (r15+0),r12                                 
      the_semaphore->Object.id,                                       
      name,                                                           
      0                          /* Not used */                       
    );                                                                
#endif                                                                
  _Thread_Enable_dispatch();                                          
 8002998:	f8 00 0b 1b 	calli 8005604 <_Thread_Enable_dispatch>        
  return RTEMS_SUCCESSFUL;                                            
 800299c:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 80029a0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80029a4:	2b 8b 00 20 	lw r11,(sp+32)                                 
 80029a8:	2b 8c 00 1c 	lw r12,(sp+28)                                 
 80029ac:	2b 8d 00 18 	lw r13,(sp+24)                                 
 80029b0:	2b 8e 00 14 	lw r14,(sp+20)                                 
 80029b4:	2b 8f 00 10 	lw r15,(sp+16)                                 
 80029b8:	2b 90 00 0c 	lw r16,(sp+12)                                 
 80029bc:	2b 91 00 08 	lw r17,(sp+8)                                  
 80029c0:	37 9c 00 38 	addi sp,sp,56                                  
 80029c4:	c3 a0 00 00 	ret                                            
                                                                      

08013414 <rtems_signal_send>: rtems_status_code rtems_signal_send( rtems_id id, rtems_signal_set signal_set ) {
 8013414:	37 9c ff f4 	addi sp,sp,-12                                 
 8013418:	5b 8b 00 08 	sw (sp+8),r11                                  
 801341c:	5b 9d 00 04 	sw (sp+4),ra                                   
  Objects_Locations        location;                                  
  RTEMS_API_Control       *api;                                       
  ASR_Information         *asr;                                       
                                                                      
  if ( !signal_set )                                                  
    return RTEMS_INVALID_NUMBER;                                      
 8013420:	34 03 00 0a 	mvi r3,10                                      
                                                                      
rtems_status_code rtems_signal_send(                                  
  rtems_id          id,                                               
  rtems_signal_set  signal_set                                        
)                                                                     
{                                                                     
 8013424:	b8 40 58 00 	mv r11,r2                                      
  register Thread_Control *the_thread;                                
  Objects_Locations        location;                                  
  RTEMS_API_Control       *api;                                       
  ASR_Information         *asr;                                       
                                                                      
  if ( !signal_set )                                                  
 8013428:	44 40 00 29 	be r2,r0,80134cc <rtems_signal_send+0xb8>      
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 801342c:	37 82 00 0c 	addi r2,sp,12                                  
 8013430:	f8 00 15 3c 	calli 8018920 <_Thread_Get>                    
  switch ( location ) {                                               
 8013434:	2b 82 00 0c 	lw r2,(sp+12)                                  
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 8013438:	34 03 00 04 	mvi r3,4                                       
                                                                      
  if ( !signal_set )                                                  
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  the_thread = _Thread_Get( id, &location );                          
  switch ( location ) {                                               
 801343c:	5c 40 00 24 	bne r2,r0,80134cc <rtems_signal_send+0xb8>     
                                                                      
    case OBJECTS_LOCAL:                                               
      api = the_thread->API_Extensions[ THREAD_API_RTEMS ];           
 8013440:	28 23 01 18 	lw r3,(r1+280)                                 
      asr = &api->Signal;                                             
                                                                      
      if ( ! _ASR_Is_null_handler( asr->handler ) ) {                 
 8013444:	28 64 00 0c 	lw r4,(r3+12)                                  
 8013448:	44 82 00 1f 	be r4,r2,80134c4 <rtems_signal_send+0xb0>      
        if ( asr->is_enabled ) {                                      
 801344c:	40 62 00 08 	lbu r2,(r3+8)                                  
 8013450:	44 40 00 12 	be r2,r0,8013498 <rtems_signal_send+0x84>      
  rtems_signal_set *signal_set                                        
)                                                                     
{                                                                     
  ISR_Level              _level;                                      
                                                                      
  _ISR_Disable( _level );                                             
 8013454:	90 00 10 00 	rcsr r2,IE                                     
 8013458:	34 04 ff fe 	mvi r4,-2                                      
 801345c:	a0 44 20 00 	and r4,r2,r4                                   
 8013460:	d0 04 00 00 	wcsr IE,r4                                     
    *signal_set |= signals;                                           
 8013464:	28 64 00 14 	lw r4,(r3+20)                                  
 8013468:	b8 8b 58 00 	or r11,r4,r11                                  
 801346c:	58 6b 00 14 	sw (r3+20),r11                                 
  _ISR_Enable( _level );                                              
 8013470:	d0 02 00 00 	wcsr IE,r2                                     
          _ASR_Post_signals( signal_set, &asr->signals_posted );      
                                                                      
          if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
 8013474:	78 02 08 03 	mvhi r2,0x803                                  
 8013478:	38 42 ee 40 	ori r2,r2,0xee40                               
 801347c:	28 43 00 08 	lw r3,(r2+8)                                   
 8013480:	44 60 00 0e 	be r3,r0,80134b8 <rtems_signal_send+0xa4>      
 8013484:	28 43 00 0c 	lw r3,(r2+12)                                  
 8013488:	5c 23 00 0c 	bne r1,r3,80134b8 <rtems_signal_send+0xa4>     <== NEVER TAKEN
            _Thread_Dispatch_necessary = true;                        
 801348c:	34 01 00 01 	mvi r1,1                                       
 8013490:	30 41 00 18 	sb (r2+24),r1                                  
 8013494:	e0 00 00 09 	bi 80134b8 <rtems_signal_send+0xa4>            
  rtems_signal_set *signal_set                                        
)                                                                     
{                                                                     
  ISR_Level              _level;                                      
                                                                      
  _ISR_Disable( _level );                                             
 8013498:	90 00 08 00 	rcsr r1,IE                                     
 801349c:	34 02 ff fe 	mvi r2,-2                                      
 80134a0:	a0 22 10 00 	and r2,r1,r2                                   
 80134a4:	d0 02 00 00 	wcsr IE,r2                                     
    *signal_set |= signals;                                           
 80134a8:	28 62 00 18 	lw r2,(r3+24)                                  
 80134ac:	b8 4b 58 00 	or r11,r2,r11                                  
 80134b0:	58 6b 00 18 	sw (r3+24),r11                                 
  _ISR_Enable( _level );                                              
 80134b4:	d0 01 00 00 	wcsr IE,r1                                     
        } else {                                                      
          _ASR_Post_signals( signal_set, &asr->signals_pending );     
        }                                                             
        _Thread_Enable_dispatch();                                    
 80134b8:	f8 00 15 0d 	calli 80188ec <_Thread_Enable_dispatch>        
        return RTEMS_SUCCESSFUL;                                      
 80134bc:	34 03 00 00 	mvi r3,0                                       
 80134c0:	e0 00 00 03 	bi 80134cc <rtems_signal_send+0xb8>            
      }                                                               
      _Thread_Enable_dispatch();                                      
 80134c4:	f8 00 15 0a 	calli 80188ec <_Thread_Enable_dispatch>        
      return RTEMS_NOT_DEFINED;                                       
 80134c8:	34 03 00 0b 	mvi r3,11                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 80134cc:	b8 60 08 00 	mv r1,r3                                       
 80134d0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80134d4:	2b 8b 00 08 	lw r11,(sp+8)                                  
 80134d8:	37 9c 00 0c 	addi sp,sp,12                                  
 80134dc:	c3 a0 00 00 	ret                                            
                                                                      

08000954 <rtems_stack_checker_begin_extension>: Thread_Control *the_thread ) { Stack_check_Control *the_pattern; if ( the_thread->Object.id == 0 ) /* skip system tasks */
 8000954:	28 22 00 08 	lw r2,(r1+8)                                   
 8000958:	44 40 00 0c 	be r2,r0,8000988 <rtems_stack_checker_begin_extension+0x34><== NEVER TAKEN
    return;                                                           
                                                                      
  the_pattern = Stack_check_Get_pattern_area(&the_thread->Start.Initial_stack);
                                                                      
  *the_pattern = Stack_check_Pattern;                                 
 800095c:	28 22 00 b8 	lw r2,(r1+184)                                 
 8000960:	78 01 08 01 	mvhi r1,0x801                                  
 8000964:	38 21 37 28 	ori r1,r1,0x3728                               
 8000968:	28 25 00 00 	lw r5,(r1+0)                                   
 800096c:	28 24 00 04 	lw r4,(r1+4)                                   
 8000970:	28 23 00 08 	lw r3,(r1+8)                                   
 8000974:	28 21 00 0c 	lw r1,(r1+12)                                  
 8000978:	58 45 00 08 	sw (r2+8),r5                                   
 800097c:	58 44 00 0c 	sw (r2+12),r4                                  
 8000980:	58 43 00 10 	sw (r2+16),r3                                  
 8000984:	58 41 00 14 	sw (r2+20),r1                                  
 8000988:	c3 a0 00 00 	ret                                            
                                                                      

08000918 <rtems_stack_checker_create_extension>: */ bool rtems_stack_checker_create_extension( Thread_Control *running __attribute__((unused)), Thread_Control *the_thread ) {
 8000918:	37 9c ff f8 	addi sp,sp,-8                                  
 800091c:	5b 8b 00 08 	sw (sp+8),r11                                  
 8000920:	5b 9d 00 04 	sw (sp+4),ra                                   
 8000924:	b8 40 58 00 	mv r11,r2                                      
  Stack_check_Initialize();                                           
 8000928:	fb ff ff d0 	calli 8000868 <Stack_check_Initialize>         
                                                                      
  if (the_thread)                                                     
 800092c:	45 60 00 05 	be r11,r0,8000940 <rtems_stack_checker_create_extension+0x28><== NEVER TAKEN
    Stack_check_Dope_stack(&the_thread->Start.Initial_stack);         
 8000930:	29 61 00 b8 	lw r1,(r11+184)                                
 8000934:	29 63 00 b4 	lw r3,(r11+180)                                
 8000938:	34 02 00 a5 	mvi r2,165                                     
 800093c:	f8 00 2d b3 	calli 800c008 <memset>                         
                                                                      
  return true;                                                        
}                                                                     
 8000940:	34 01 00 01 	mvi r1,1                                       
 8000944:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8000948:	2b 8b 00 08 	lw r11,(sp+8)                                  
 800094c:	37 9c 00 08 	addi sp,sp,8                                   
 8000950:	c3 a0 00 00 	ret                                            
                                                                      

08000abc <rtems_stack_checker_is_blown>: /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) {
 8000abc:	37 9c ff f4 	addi sp,sp,-12                                 
 8000ac0:	5b 9b 00 08 	sw (sp+8),fp                                   
 8000ac4:	34 1b 00 0c 	mvi fp,12                                      
 8000ac8:	b7 7c d8 00 	add fp,fp,sp                                   
 8000acc:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8000ad0:	5b 9d 00 04 	sw (sp+4),ra                                   
  Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; 
 8000ad4:	78 01 08 01 	mvhi r1,0x801                                  
 8000ad8:	38 21 3a 18 	ori r1,r1,0x3a18                               
 8000adc:	28 22 00 0c 	lw r2,(r1+12)                                  
{                                                                     
  #if defined(__GNUC__)                                               
    void *sp = __builtin_frame_address(0);                            
                                                                      
    if ( sp < the_stack->area ) {                                     
      return false;                                                   
 8000ae0:	34 0b 00 00 	mvi r11,0                                      
)                                                                     
{                                                                     
  #if defined(__GNUC__)                                               
    void *sp = __builtin_frame_address(0);                            
                                                                      
    if ( sp < the_stack->area ) {                                     
 8000ae4:	28 41 00 b8 	lw r1,(r2+184)                                 
 8000ae8:	54 3b 00 04 	bgu r1,fp,8000af8 <rtems_stack_checker_is_blown+0x3c><== NEVER TAKEN
      return false;                                                   
    }                                                                 
    if ( sp > (the_stack->area + the_stack->size) ) {                 
 8000aec:	28 4b 00 b4 	lw r11,(r2+180)                                
}                                                                     
                                                                      
/*                                                                    
 *  Check if blown                                                    
 */                                                                   
bool rtems_stack_checker_is_blown( void )                             
 8000af0:	b4 2b 58 00 	add r11,r1,r11                                 
 8000af4:	f1 7b 58 00 	cmpgeu r11,r11,fp                              
                                                                      
  /*                                                                  
   * The stack checker must be initialized before the pattern is there
   * to check.                                                        
   */                                                                 
  if ( Stack_check_Initialized ) {                                    
 8000af8:	78 02 08 01 	mvhi r2,0x801                                  
 8000afc:	38 42 36 a4 	ori r2,r2,0x36a4                               
 8000b00:	28 43 00 00 	lw r3,(r2+0)                                   
 */                                                                   
bool rtems_stack_checker_is_blown( void )                             
{                                                                     
  Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; 
  bool           sp_ok;                                               
  bool           pattern_ok = true;                                   
 8000b04:	34 02 00 01 	mvi r2,1                                       
                                                                      
  /*                                                                  
   * The stack checker must be initialized before the pattern is there
   * to check.                                                        
   */                                                                 
  if ( Stack_check_Initialized ) {                                    
 8000b08:	44 60 00 07 	be r3,r0,8000b24 <rtems_stack_checker_is_blown+0x68><== NEVER TAKEN
    pattern_ok = (!memcmp(                                            
 8000b0c:	78 02 08 01 	mvhi r2,0x801                                  
 8000b10:	38 42 37 28 	ori r2,r2,0x3728                               
 8000b14:	34 21 00 08 	addi r1,r1,8                                   
 8000b18:	34 03 00 10 	mvi r3,16                                      
 8000b1c:	f8 00 2c d9 	calli 800be80 <memcmp>                         
 8000b20:	64 22 00 00 	cmpei r2,r1,0                                  
                                                                      
                                                                      
  /*                                                                  
   * Let's report as much as we can.                                  
   */                                                                 
  if ( !sp_ok || !pattern_ok ) {                                      
 8000b24:	45 60 00 02 	be r11,r0,8000b2c <rtems_stack_checker_is_blown+0x70><== NEVER TAKEN
 8000b28:	5c 40 00 05 	bne r2,r0,8000b3c <rtems_stack_checker_is_blown+0x80><== ALWAYS TAKEN
    Stack_check_report_blown_task( _Thread_Executing, pattern_ok );   
 8000b2c:	78 01 08 01 	mvhi r1,0x801                                  <== NOT EXECUTED
 8000b30:	38 21 3a 18 	ori r1,r1,0x3a18                               <== NOT EXECUTED
 8000b34:	28 21 00 0c 	lw r1,(r1+12)                                  <== NOT EXECUTED
 8000b38:	fb ff ff 95 	calli 800098c <Stack_check_report_blown_task>  <== NOT EXECUTED
                                                                      
  /*                                                                  
   * The Stack Pointer and the Pattern Area are OK so return false.   
   */                                                                 
  return false;                                                       
}                                                                     
 8000b3c:	34 01 00 00 	mvi r1,0                                       
 8000b40:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8000b44:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8000b48:	2b 9b 00 08 	lw fp,(sp+8)                                   
 8000b4c:	37 9c 00 0c 	addi sp,sp,12                                  
 8000b50:	c3 a0 00 00 	ret                                            
                                                                      

08000b54 <rtems_stack_checker_report_usage_with_plugin>: void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) {
 8000b54:	37 9c ff ec 	addi sp,sp,-20                                 
 8000b58:	5b 8b 00 14 	sw (sp+20),r11                                 
 8000b5c:	5b 8c 00 10 	sw (sp+16),r12                                 
 8000b60:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8000b64:	5b 8e 00 08 	sw (sp+8),r14                                  
 8000b68:	5b 9d 00 04 	sw (sp+4),ra                                   
 8000b6c:	b8 20 70 00 	mv r14,r1                                      
 8000b70:	b8 40 68 00 	mv r13,r2                                      
  if ( !print )                                                       
 8000b74:	44 40 00 15 	be r2,r0,8000bc8 <rtems_stack_checker_report_usage_with_plugin+0x74><== NEVER TAKEN
    return;                                                           
                                                                      
  print_context = context;                                            
  print_handler = print;                                              
 8000b78:	78 0b 08 01 	mvhi r11,0x801                                 
 8000b7c:	39 6b 36 a0 	ori r11,r11,0x36a0                             
)                                                                     
{                                                                     
  if ( !print )                                                       
    return;                                                           
                                                                      
  print_context = context;                                            
 8000b80:	78 0c 08 01 	mvhi r12,0x801                                 
 8000b84:	39 8c 36 9c 	ori r12,r12,0x369c                             
  print_handler = print;                                              
 8000b88:	59 62 00 00 	sw (r11+0),r2                                  
                                                                      
  (*print)( context, "Stack usage by thread\n");                      
 8000b8c:	78 02 08 01 	mvhi r2,0x801                                  
 8000b90:	38 42 1a d4 	ori r2,r2,0x1ad4                               
)                                                                     
{                                                                     
  if ( !print )                                                       
    return;                                                           
                                                                      
  print_context = context;                                            
 8000b94:	59 81 00 00 	sw (r12+0),r1                                  
  print_handler = print;                                              
                                                                      
  (*print)( context, "Stack usage by thread\n");                      
 8000b98:	d9 a0 00 00 	call r13                                       
  (*print)( context,                                                  
 8000b9c:	78 02 08 01 	mvhi r2,0x801                                  
 8000ba0:	38 42 1a ec 	ori r2,r2,0x1aec                               
 8000ba4:	b9 c0 08 00 	mv r1,r14                                      
 8000ba8:	d9 a0 00 00 	call r13                                       
"    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 );   
 8000bac:	78 01 08 00 	mvhi r1,0x800                                  
 8000bb0:	38 21 06 a0 	ori r1,r1,0x6a0                                
 8000bb4:	f8 00 0d 33 	calli 8004080 <rtems_iterate_over_all_threads> 
                                                                      
  #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE)                          
    /* dump interrupt stack info if any */                            
    Stack_check_Dump_threads_usage((Thread_Control *) -1);            
 8000bb8:	34 01 ff ff 	mvi r1,-1                                      
 8000bbc:	fb ff fe b9 	calli 80006a0 <Stack_check_Dump_threads_usage> 
  #endif                                                              
                                                                      
  print_context = NULL;                                               
 8000bc0:	59 80 00 00 	sw (r12+0),r0                                  
  print_handler = NULL;                                               
 8000bc4:	59 60 00 00 	sw (r11+0),r0                                  
}                                                                     
 8000bc8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8000bcc:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8000bd0:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8000bd4:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8000bd8:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8000bdc:	37 9c 00 14 	addi sp,sp,20                                  
 8000be0:	c3 a0 00 00 	ret                                            
                                                                      

08000a44 <rtems_stack_checker_switch_extension>: */ void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) {
 8000a44:	37 9c ff f0 	addi sp,sp,-16                                 
 8000a48:	5b 9b 00 08 	sw (sp+8),fp                                   
 8000a4c:	34 1b 00 10 	mvi fp,16                                      
 8000a50:	b7 7c d8 00 	add fp,fp,sp                                   
 8000a54:	5b 8b 00 10 	sw (sp+16),r11                                 
 8000a58:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8000a5c:	5b 9d 00 04 	sw (sp+4),ra                                   
  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);                  
 8000a60:	28 22 00 b8 	lw r2,(r1+184)                                 
 */                                                                   
void rtems_stack_checker_switch_extension(                            
  Thread_Control *running __attribute__((unused)),                    
  Thread_Control *heir __attribute__((unused))                        
)                                                                     
{                                                                     
 8000a64:	b8 20 58 00 	mv r11,r1                                      
{                                                                     
  #if defined(__GNUC__)                                               
    void *sp = __builtin_frame_address(0);                            
                                                                      
    if ( sp < the_stack->area ) {                                     
      return false;                                                   
 8000a68:	34 0c 00 00 	mvi r12,0                                      
  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);                  
 8000a6c:	34 41 00 08 	addi r1,r2,8                                   
)                                                                     
{                                                                     
  #if defined(__GNUC__)                                               
    void *sp = __builtin_frame_address(0);                            
                                                                      
    if ( sp < the_stack->area ) {                                     
 8000a70:	54 5b 00 04 	bgu r2,fp,8000a80 <rtems_stack_checker_switch_extension+0x3c><== NEVER TAKEN
      return false;                                                   
    }                                                                 
    if ( sp > (the_stack->area + the_stack->size) ) {                 
 8000a74:	29 6c 00 b4 	lw r12,(r11+180)                               
}                                                                     
                                                                      
/*                                                                    
 *  rtems_stack_checker_switch_extension                              
 */                                                                   
void rtems_stack_checker_switch_extension(                            
 8000a78:	b4 4c 10 00 	add r2,r2,r12                                  
 8000a7c:	f0 5b 60 00 	cmpgeu r12,r2,fp                               
  /*                                                                  
   *  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,                                     
 8000a80:	78 02 08 01 	mvhi r2,0x801                                  
 8000a84:	38 42 37 28 	ori r2,r2,0x3728                               
 8000a88:	34 03 00 10 	mvi r3,16                                      
 8000a8c:	f8 00 2c fd 	calli 800be80 <memcmp>                         
 8000a90:	64 22 00 00 	cmpei r2,r1,0                                  
            (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES));
                                                                      
  if ( !sp_ok || !pattern_ok ) {                                      
 8000a94:	45 80 00 02 	be r12,r0,8000a9c <rtems_stack_checker_switch_extension+0x58>
 8000a98:	5c 40 00 03 	bne r2,r0,8000aa4 <rtems_stack_checker_switch_extension+0x60>
    Stack_check_report_blown_task( running, pattern_ok );             
 8000a9c:	b9 60 08 00 	mv r1,r11                                      
 8000aa0:	fb ff ff bb 	calli 800098c <Stack_check_report_blown_task>  
  }                                                                   
}                                                                     
 8000aa4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8000aa8:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8000aac:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8000ab0:	2b 9b 00 08 	lw fp,(sp+8)                                   
 8000ab4:	37 9c 00 10 	addi sp,sp,16                                  
 8000ab8:	c3 a0 00 00 	ret                                            
                                                                      

080090f8 <rtems_string_to_double>: rtems_status_code rtems_string_to_double ( const char *s, double *n, char **endptr ) {
 80090f8:	37 9c ff e0 	addi sp,sp,-32                                 
 80090fc:	5b 8b 00 1c 	sw (sp+28),r11                                 
 8009100:	5b 8c 00 18 	sw (sp+24),r12                                 
 8009104:	5b 8d 00 14 	sw (sp+20),r13                                 
 8009108:	5b 8e 00 10 	sw (sp+16),r14                                 
 800910c:	5b 8f 00 0c 	sw (sp+12),r15                                 
 8009110:	5b 90 00 08 	sw (sp+8),r16                                  
 8009114:	5b 9d 00 04 	sw (sp+4),ra                                   
  double result;                                                      
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
 8009118:	34 0c 00 09 	mvi r12,9                                      
rtems_status_code rtems_string_to_double (                            
  const char *s,                                                      
  double *n,                                                          
  char **endptr                                                       
)                                                                     
{                                                                     
 800911c:	b8 20 78 00 	mv r15,r1                                      
 8009120:	b8 40 58 00 	mv r11,r2                                      
 8009124:	b8 60 80 00 	mv r16,r3                                      
  double result;                                                      
  char *end;                                                          
                                                                      
  if ( !n )                                                           
 8009128:	44 40 00 2e 	be r2,r0,80091e0 <rtems_string_to_double+0xe8> 
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
 800912c:	f8 00 0c 37 	calli 800c208 <__errno>                        
 8009130:	58 20 00 00 	sw (r1+0),r0                                   
  *n = 0;                                                             
 8009134:	59 60 00 00 	sw (r11+0),r0                                  
 8009138:	59 60 00 04 	sw (r11+4),r0                                  
                                                                      
  result = strtod( s, &end );                                         
 800913c:	b9 e0 08 00 	mv r1,r15                                      
 8009140:	37 82 00 20 	addi r2,sp,32                                  
 8009144:	f8 00 17 3c 	calli 800ee34 <strtod>                         
 8009148:	b8 20 70 00 	mv r14,r1                                      
 800914c:	b8 40 68 00 	mv r13,r2                                      
                                                                      
  if ( endptr )                                                       
 8009150:	46 00 00 03 	be r16,r0,800915c <rtems_string_to_double+0x64>
    *endptr = end;                                                    
 8009154:	2b 81 00 20 	lw r1,(sp+32)                                  
 8009158:	5a 01 00 00 	sw (r16+0),r1                                  
                                                                      
  if ( end == s )                                                     
 800915c:	2b 81 00 20 	lw r1,(sp+32)                                  
    return RTEMS_NOT_DEFINED;                                         
 8009160:	34 0c 00 0b 	mvi r12,11                                     
  result = strtod( s, &end );                                         
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
 8009164:	44 2f 00 1f 	be r1,r15,80091e0 <rtems_string_to_double+0xe8>
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 8009168:	f8 00 0c 28 	calli 800c208 <__errno>                        
 800916c:	28 22 00 00 	lw r2,(r1+0)                                   
 8009170:	34 01 00 22 	mvi r1,34                                      
 8009174:	5c 41 00 18 	bne r2,r1,80091d4 <rtems_string_to_double+0xdc>
 8009178:	b9 c0 08 00 	mv r1,r14                                      
 800917c:	b9 a0 10 00 	mv r2,r13                                      
 8009180:	34 03 00 00 	mvi r3,0                                       
 8009184:	34 04 00 00 	mvi r4,0                                       
 8009188:	fb ff e7 1f 	calli 8002e04 <__eqdf2>                        
    (( result == 0 ) || ( result == HUGE_VAL ) || ( result == -HUGE_VAL )))
      return RTEMS_INVALID_NUMBER;                                    
 800918c:	34 0c 00 0a 	mvi r12,10                                     
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 8009190:	44 20 00 14 	be r1,r0,80091e0 <rtems_string_to_double+0xe8> <== NEVER TAKEN
    (( result == 0 ) || ( result == HUGE_VAL ) || ( result == -HUGE_VAL )))
 8009194:	78 04 08 01 	mvhi r4,0x801                                  
 8009198:	38 84 f8 30 	ori r4,r4,0xf830                               
 800919c:	28 83 00 00 	lw r3,(r4+0)                                   
 80091a0:	b9 c0 08 00 	mv r1,r14                                      
 80091a4:	b9 a0 10 00 	mv r2,r13                                      
 80091a8:	34 04 ff ff 	mvi r4,-1                                      
 80091ac:	f8 00 46 9a 	calli 801ac14 <__gedf2>                        
 80091b0:	48 20 00 0c 	bg r1,r0,80091e0 <rtems_string_to_double+0xe8> <== ALWAYS TAKEN
 80091b4:	78 04 08 01 	mvhi r4,0x801                                  <== NOT EXECUTED
 80091b8:	38 84 f8 34 	ori r4,r4,0xf834                               <== NOT EXECUTED
 80091bc:	28 83 00 00 	lw r3,(r4+0)                                   <== NOT EXECUTED
 80091c0:	b9 c0 08 00 	mv r1,r14                                      <== NOT EXECUTED
 80091c4:	b9 a0 10 00 	mv r2,r13                                      <== NOT EXECUTED
 80091c8:	34 04 ff ff 	mvi r4,-1                                      <== NOT EXECUTED
 80091cc:	f8 00 46 fb 	calli 801adb8 <__ledf2>                        <== NOT EXECUTED
 80091d0:	48 01 00 04 	bg r0,r1,80091e0 <rtems_string_to_double+0xe8> <== NOT EXECUTED
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
 80091d4:	59 6e 00 00 	sw (r11+0),r14                                 
 80091d8:	59 6d 00 04 	sw (r11+4),r13                                 
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 80091dc:	34 0c 00 00 	mvi r12,0                                      
}                                                                     
 80091e0:	b9 80 08 00 	mv r1,r12                                      
 80091e4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80091e8:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 80091ec:	2b 8c 00 18 	lw r12,(sp+24)                                 
 80091f0:	2b 8d 00 14 	lw r13,(sp+20)                                 
 80091f4:	2b 8e 00 10 	lw r14,(sp+16)                                 
 80091f8:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 80091fc:	2b 90 00 08 	lw r16,(sp+8)                                  
 8009200:	37 9c 00 20 	addi sp,sp,32                                  
 8009204:	c3 a0 00 00 	ret                                            
                                                                      

08009208 <rtems_string_to_float>: rtems_status_code rtems_string_to_float ( const char *s, float *n, char **endptr ) {
 8009208:	37 9c ff e4 	addi sp,sp,-28                                 
 800920c:	5b 8b 00 18 	sw (sp+24),r11                                 
 8009210:	5b 8c 00 14 	sw (sp+20),r12                                 
 8009214:	5b 8d 00 10 	sw (sp+16),r13                                 
 8009218:	5b 8e 00 0c 	sw (sp+12),r14                                 
 800921c:	5b 8f 00 08 	sw (sp+8),r15                                  
 8009220:	5b 9d 00 04 	sw (sp+4),ra                                   
  float result;                                                       
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
 8009224:	34 0b 00 09 	mvi r11,9                                      
rtems_status_code rtems_string_to_float (                             
  const char *s,                                                      
  float *n,                                                           
  char **endptr                                                       
)                                                                     
{                                                                     
 8009228:	b8 20 70 00 	mv r14,r1                                      
 800922c:	b8 40 68 00 	mv r13,r2                                      
 8009230:	b8 60 78 00 	mv r15,r3                                      
  float result;                                                       
  char *end;                                                          
                                                                      
  if ( !n )                                                           
 8009234:	44 40 00 25 	be r2,r0,80092c8 <rtems_string_to_float+0xc0>  
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
 8009238:	f8 00 0b f4 	calli 800c208 <__errno>                        
 800923c:	58 20 00 00 	sw (r1+0),r0                                   
  *n = 0;                                                             
 8009240:	59 a0 00 00 	sw (r13+0),r0                                  
                                                                      
  result = strtof( s, &end );                                         
 8009244:	b9 c0 08 00 	mv r1,r14                                      
 8009248:	37 82 00 1c 	addi r2,sp,28                                  
 800924c:	f8 00 17 06 	calli 800ee64 <strtof>                         
 8009250:	b8 20 60 00 	mv r12,r1                                      
                                                                      
  if ( endptr )                                                       
 8009254:	45 e0 00 03 	be r15,r0,8009260 <rtems_string_to_float+0x58> 
    *endptr = end;                                                    
 8009258:	2b 81 00 1c 	lw r1,(sp+28)                                  
 800925c:	59 e1 00 00 	sw (r15+0),r1                                  
                                                                      
  if ( end == s )                                                     
 8009260:	2b 81 00 1c 	lw r1,(sp+28)                                  
    return RTEMS_NOT_DEFINED;                                         
 8009264:	34 0b 00 0b 	mvi r11,11                                     
  result = strtof( s, &end );                                         
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
 8009268:	44 2e 00 18 	be r1,r14,80092c8 <rtems_string_to_float+0xc0> 
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 800926c:	f8 00 0b e7 	calli 800c208 <__errno>                        
 8009270:	28 22 00 00 	lw r2,(r1+0)                                   
 8009274:	34 01 00 22 	mvi r1,34                                      
 8009278:	5c 41 00 12 	bne r2,r1,80092c0 <rtems_string_to_float+0xb8> 
 800927c:	b9 80 08 00 	mv r1,r12                                      
 8009280:	34 02 00 00 	mvi r2,0                                       
 8009284:	fb ff e6 a8 	calli 8002d24 <__eqsf2>                        
    (( result == 0 ) || ( result == HUGE_VALF ) || ( result == -HUGE_VALF )))
      return RTEMS_INVALID_NUMBER;                                    
 8009288:	34 0b 00 0a 	mvi r11,10                                     
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 800928c:	44 20 00 0f 	be r1,r0,80092c8 <rtems_string_to_float+0xc0>  <== NEVER TAKEN
    (( result == 0 ) || ( result == HUGE_VALF ) || ( result == -HUGE_VALF )))
 8009290:	78 03 08 01 	mvhi r3,0x801                                  
 8009294:	38 63 f8 38 	ori r3,r3,0xf838                               
 8009298:	28 62 00 00 	lw r2,(r3+0)                                   
 800929c:	b9 80 08 00 	mv r1,r12                                      
 80092a0:	f8 00 40 12 	calli 80192e8 <__gesf2>                        
 80092a4:	48 20 00 09 	bg r1,r0,80092c8 <rtems_string_to_float+0xc0>  <== ALWAYS TAKEN
 80092a8:	78 03 08 01 	mvhi r3,0x801                                  <== NOT EXECUTED
 80092ac:	38 63 f8 3c 	ori r3,r3,0xf83c                               <== NOT EXECUTED
 80092b0:	28 62 00 00 	lw r2,(r3+0)                                   <== NOT EXECUTED
 80092b4:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 80092b8:	f8 00 40 5e 	calli 8019430 <__lesf2>                        <== NOT EXECUTED
 80092bc:	48 01 00 03 	bg r0,r1,80092c8 <rtems_string_to_float+0xc0>  <== NOT EXECUTED
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
 80092c0:	59 ac 00 00 	sw (r13+0),r12                                 
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 80092c4:	34 0b 00 00 	mvi r11,0                                      
}                                                                     
 80092c8:	b9 60 08 00 	mv r1,r11                                      
 80092cc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80092d0:	2b 8b 00 18 	lw r11,(sp+24)                                 
 80092d4:	2b 8c 00 14 	lw r12,(sp+20)                                 
 80092d8:	2b 8d 00 10 	lw r13,(sp+16)                                 
 80092dc:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 80092e0:	2b 8f 00 08 	lw r15,(sp+8)                                  
 80092e4:	37 9c 00 1c 	addi sp,sp,28                                  
 80092e8:	c3 a0 00 00 	ret                                            
                                                                      

080092ec <rtems_string_to_int>: const char *s, int *n, char **endptr, int base ) {
 80092ec:	37 9c ff e8 	addi sp,sp,-24                                 
 80092f0:	5b 8b 00 14 	sw (sp+20),r11                                 
 80092f4:	5b 8c 00 10 	sw (sp+16),r12                                 
 80092f8:	5b 8d 00 0c 	sw (sp+12),r13                                 
 80092fc:	5b 8e 00 08 	sw (sp+8),r14                                  
 8009300:	5b 9d 00 04 	sw (sp+4),ra                                   
  long result;                                                        
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
 8009304:	34 05 00 09 	mvi r5,9                                       
  const char *s,                                                      
  int *n,                                                             
  char **endptr,                                                      
  int base                                                            
)                                                                     
{                                                                     
 8009308:	b8 20 68 00 	mv r13,r1                                      
 800930c:	b8 40 60 00 	mv r12,r2                                      
 8009310:	b8 60 70 00 	mv r14,r3                                      
 8009314:	b8 80 58 00 	mv r11,r4                                      
  long result;                                                        
  char *end;                                                          
                                                                      
  if ( !n )                                                           
 8009318:	44 40 00 1f 	be r2,r0,8009394 <rtems_string_to_int+0xa8>    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
 800931c:	f8 00 0b bb 	calli 800c208 <__errno>                        
 8009320:	58 20 00 00 	sw (r1+0),r0                                   
  *n = 0;                                                             
                                                                      
  result = strtol( s, &end, base );                                   
 8009324:	b9 60 18 00 	mv r3,r11                                      
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
 8009328:	59 80 00 00 	sw (r12+0),r0                                  
                                                                      
  result = strtol( s, &end, base );                                   
 800932c:	b9 a0 08 00 	mv r1,r13                                      
 8009330:	37 82 00 18 	addi r2,sp,24                                  
 8009334:	f8 00 17 7f 	calli 800f130 <strtol>                         
 8009338:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  if ( endptr )                                                       
 800933c:	45 c0 00 03 	be r14,r0,8009348 <rtems_string_to_int+0x5c>   
    *endptr = end;                                                    
 8009340:	2b 81 00 18 	lw r1,(sp+24)                                  
 8009344:	59 c1 00 00 	sw (r14+0),r1                                  
                                                                      
  if ( end == s )                                                     
 8009348:	2b 81 00 18 	lw r1,(sp+24)                                  
    return RTEMS_NOT_DEFINED;                                         
 800934c:	34 05 00 0b 	mvi r5,11                                      
  result = strtol( s, &end, base );                                   
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
 8009350:	44 2d 00 11 	be r1,r13,8009394 <rtems_string_to_int+0xa8>   
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 8009354:	f8 00 0b ad 	calli 800c208 <__errno>                        
 8009358:	28 22 00 00 	lw r2,(r1+0)                                   
 800935c:	34 01 00 22 	mvi r1,34                                      
 8009360:	5c 41 00 0b 	bne r2,r1,800938c <rtems_string_to_int+0xa0>   
    (( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
 8009364:	78 02 08 01 	mvhi r2,0x801                                  
 8009368:	38 42 f0 b0 	ori r2,r2,0xf0b0                               
 800936c:	28 41 00 00 	lw r1,(r2+0)                                   
 8009370:	65 62 00 00 	cmpei r2,r11,0                                 
      return RTEMS_INVALID_NUMBER;                                    
 8009374:	34 05 00 0a 	mvi r5,10                                      
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
    (( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
 8009378:	e5 61 08 00 	cmpe r1,r11,r1                                 
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 800937c:	b8 22 08 00 	or r1,r1,r2                                    
 8009380:	5c 20 00 05 	bne r1,r0,8009394 <rtems_string_to_int+0xa8>   <== ALWAYS TAKEN
    (( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
 8009384:	78 01 80 00 	mvhi r1,0x8000                                 <== NOT EXECUTED
 8009388:	45 61 00 03 	be r11,r1,8009394 <rtems_string_to_int+0xa8>   <== NOT EXECUTED
    errno = ERANGE;                                                   
    return RTEMS_INVALID_NUMBER;                                      
  }                                                                   
#endif                                                                
                                                                      
  *n = result;                                                        
 800938c:	59 8b 00 00 	sw (r12+0),r11                                 
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 8009390:	34 05 00 00 	mvi r5,0                                       
}                                                                     
 8009394:	b8 a0 08 00 	mv r1,r5                                       
 8009398:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800939c:	2b 8b 00 14 	lw r11,(sp+20)                                 
 80093a0:	2b 8c 00 10 	lw r12,(sp+16)                                 
 80093a4:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 80093a8:	2b 8e 00 08 	lw r14,(sp+8)                                  
 80093ac:	37 9c 00 18 	addi sp,sp,24                                  
 80093b0:	c3 a0 00 00 	ret                                            
                                                                      

080094a4 <rtems_string_to_long>: const char *s, long *n, char **endptr, int base ) {
 80094a4:	37 9c ff e8 	addi sp,sp,-24                                 
 80094a8:	5b 8b 00 14 	sw (sp+20),r11                                 
 80094ac:	5b 8c 00 10 	sw (sp+16),r12                                 
 80094b0:	5b 8d 00 0c 	sw (sp+12),r13                                 
 80094b4:	5b 8e 00 08 	sw (sp+8),r14                                  
 80094b8:	5b 9d 00 04 	sw (sp+4),ra                                   
  long result;                                                        
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
 80094bc:	34 05 00 09 	mvi r5,9                                       
  const char *s,                                                      
  long *n,                                                            
  char **endptr,                                                      
  int base                                                            
)                                                                     
{                                                                     
 80094c0:	b8 20 68 00 	mv r13,r1                                      
 80094c4:	b8 40 60 00 	mv r12,r2                                      
 80094c8:	b8 60 70 00 	mv r14,r3                                      
 80094cc:	b8 80 58 00 	mv r11,r4                                      
  long result;                                                        
  char *end;                                                          
                                                                      
  if ( !n )                                                           
 80094d0:	44 40 00 1f 	be r2,r0,800954c <rtems_string_to_long+0xa8>   
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
 80094d4:	f8 00 0b 4d 	calli 800c208 <__errno>                        
 80094d8:	58 20 00 00 	sw (r1+0),r0                                   
  *n = 0;                                                             
                                                                      
  result = strtol( s, &end, base );                                   
 80094dc:	b9 60 18 00 	mv r3,r11                                      
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
 80094e0:	59 80 00 00 	sw (r12+0),r0                                  
                                                                      
  result = strtol( s, &end, base );                                   
 80094e4:	b9 a0 08 00 	mv r1,r13                                      
 80094e8:	37 82 00 18 	addi r2,sp,24                                  
 80094ec:	f8 00 17 11 	calli 800f130 <strtol>                         
 80094f0:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  if ( endptr )                                                       
 80094f4:	45 c0 00 03 	be r14,r0,8009500 <rtems_string_to_long+0x5c>  
    *endptr = end;                                                    
 80094f8:	2b 81 00 18 	lw r1,(sp+24)                                  
 80094fc:	59 c1 00 00 	sw (r14+0),r1                                  
                                                                      
  if ( end == s )                                                     
 8009500:	2b 81 00 18 	lw r1,(sp+24)                                  
    return RTEMS_NOT_DEFINED;                                         
 8009504:	34 05 00 0b 	mvi r5,11                                      
  result = strtol( s, &end, base );                                   
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
 8009508:	44 2d 00 11 	be r1,r13,800954c <rtems_string_to_long+0xa8>  
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 800950c:	f8 00 0b 3f 	calli 800c208 <__errno>                        
 8009510:	28 22 00 00 	lw r2,(r1+0)                                   
 8009514:	34 01 00 22 	mvi r1,34                                      
 8009518:	5c 41 00 0b 	bne r2,r1,8009544 <rtems_string_to_long+0xa0>  
    (( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
 800951c:	78 02 08 01 	mvhi r2,0x801                                  
 8009520:	38 42 f0 b0 	ori r2,r2,0xf0b0                               
 8009524:	28 41 00 00 	lw r1,(r2+0)                                   
 8009528:	65 62 00 00 	cmpei r2,r11,0                                 
      return RTEMS_INVALID_NUMBER;                                    
 800952c:	34 05 00 0a 	mvi r5,10                                      
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
    (( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
 8009530:	e5 61 08 00 	cmpe r1,r11,r1                                 
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 8009534:	b8 22 08 00 	or r1,r1,r2                                    
 8009538:	5c 20 00 05 	bne r1,r0,800954c <rtems_string_to_long+0xa8>  
    (( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
 800953c:	78 01 80 00 	mvhi r1,0x8000                                 
 8009540:	45 61 00 03 	be r11,r1,800954c <rtems_string_to_long+0xa8>  <== ALWAYS TAKEN
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
 8009544:	59 8b 00 00 	sw (r12+0),r11                                 
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 8009548:	34 05 00 00 	mvi r5,0                                       
}                                                                     
 800954c:	b8 a0 08 00 	mv r1,r5                                       
 8009550:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8009554:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8009558:	2b 8c 00 10 	lw r12,(sp+16)                                 
 800955c:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8009560:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8009564:	37 9c 00 18 	addi sp,sp,24                                  
 8009568:	c3 a0 00 00 	ret                                            
                                                                      

080093b4 <rtems_string_to_long_long>: const char *s, long long *n, char **endptr, int base ) {
 80093b4:	37 9c ff e4 	addi sp,sp,-28                                 
 80093b8:	5b 8b 00 18 	sw (sp+24),r11                                 
 80093bc:	5b 8c 00 14 	sw (sp+20),r12                                 
 80093c0:	5b 8d 00 10 	sw (sp+16),r13                                 
 80093c4:	5b 8e 00 0c 	sw (sp+12),r14                                 
 80093c8:	5b 8f 00 08 	sw (sp+8),r15                                  
 80093cc:	5b 9d 00 04 	sw (sp+4),ra                                   
  long long result;                                                   
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
 80093d0:	34 05 00 09 	mvi r5,9                                       
  const char *s,                                                      
  long long *n,                                                       
  char **endptr,                                                      
  int base                                                            
)                                                                     
{                                                                     
 80093d4:	b8 20 70 00 	mv r14,r1                                      
 80093d8:	b8 40 58 00 	mv r11,r2                                      
 80093dc:	b8 60 78 00 	mv r15,r3                                      
 80093e0:	b8 80 60 00 	mv r12,r4                                      
  long long result;                                                   
  char *end;                                                          
                                                                      
  if ( !n )                                                           
 80093e4:	44 40 00 27 	be r2,r0,8009480 <rtems_string_to_long_long+0xcc>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
 80093e8:	f8 00 0b 88 	calli 800c208 <__errno>                        
 80093ec:	58 20 00 00 	sw (r1+0),r0                                   
  *n = 0;                                                             
                                                                      
  result = strtoll( s, &end, base );                                  
 80093f0:	b9 80 18 00 	mv r3,r12                                      
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
 80093f4:	59 60 00 00 	sw (r11+0),r0                                  
 80093f8:	59 60 00 04 	sw (r11+4),r0                                  
                                                                      
  result = strtoll( s, &end, base );                                  
 80093fc:	b9 c0 08 00 	mv r1,r14                                      
 8009400:	37 82 00 1c 	addi r2,sp,28                                  
 8009404:	f8 00 17 59 	calli 800f168 <strtoll>                        
 8009408:	b8 20 68 00 	mv r13,r1                                      
 800940c:	b8 40 60 00 	mv r12,r2                                      
                                                                      
  if ( endptr )                                                       
 8009410:	45 e0 00 03 	be r15,r0,800941c <rtems_string_to_long_long+0x68>
    *endptr = end;                                                    
 8009414:	2b 81 00 1c 	lw r1,(sp+28)                                  
 8009418:	59 e1 00 00 	sw (r15+0),r1                                  
                                                                      
  if ( end == s )                                                     
 800941c:	2b 81 00 1c 	lw r1,(sp+28)                                  
    return RTEMS_NOT_DEFINED;                                         
 8009420:	34 05 00 0b 	mvi r5,11                                      
  result = strtoll( s, &end, base );                                  
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
 8009424:	44 2e 00 17 	be r1,r14,8009480 <rtems_string_to_long_long+0xcc>
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 8009428:	f8 00 0b 78 	calli 800c208 <__errno>                        
 800942c:	28 22 00 00 	lw r2,(r1+0)                                   
 8009430:	34 01 00 22 	mvi r1,34                                      
 8009434:	5c 41 00 10 	bne r2,r1,8009474 <rtems_string_to_long_long+0xc0>
    (( result == 0 ) || ( result == LONG_LONG_MAX ) || ( result == LONG_LONG_MIN )))
 8009438:	78 02 08 01 	mvhi r2,0x801                                  
 800943c:	38 42 f0 b0 	ori r2,r2,0xf0b0                               
 8009440:	28 41 00 00 	lw r1,(r2+0)                                   
 8009444:	a5 80 10 00 	not r2,r12                                     
      return RTEMS_INVALID_NUMBER;                                    
 8009448:	34 05 00 0a 	mvi r5,10                                      
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
    (( result == 0 ) || ( result == LONG_LONG_MAX ) || ( result == LONG_LONG_MIN )))
 800944c:	99 a1 08 00 	xor r1,r13,r1                                  
 8009450:	b8 22 08 00 	or r1,r1,r2                                    
 8009454:	b9 ac 10 00 	or r2,r13,r12                                  
 8009458:	64 21 00 00 	cmpei r1,r1,0                                  
 800945c:	64 42 00 00 	cmpei r2,r2,0                                  
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 8009460:	b8 22 08 00 	or r1,r1,r2                                    
 8009464:	5c 20 00 07 	bne r1,r0,8009480 <rtems_string_to_long_long+0xcc>
    (( result == 0 ) || ( result == LONG_LONG_MAX ) || ( result == LONG_LONG_MIN )))
 8009468:	78 01 80 00 	mvhi r1,0x8000                                 
 800946c:	5d a1 00 02 	bne r13,r1,8009474 <rtems_string_to_long_long+0xc0><== NEVER TAKEN
 8009470:	45 80 00 04 	be r12,r0,8009480 <rtems_string_to_long_long+0xcc><== ALWAYS TAKEN
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
 8009474:	59 6d 00 00 	sw (r11+0),r13                                 
 8009478:	59 6c 00 04 	sw (r11+4),r12                                 
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 800947c:	34 05 00 00 	mvi r5,0                                       
}                                                                     
 8009480:	b8 a0 08 00 	mv r1,r5                                       
 8009484:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8009488:	2b 8b 00 18 	lw r11,(sp+24)                                 
 800948c:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8009490:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8009494:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8009498:	2b 8f 00 08 	lw r15,(sp+8)                                  
 800949c:	37 9c 00 1c 	addi sp,sp,28                                  
 80094a0:	c3 a0 00 00 	ret                                            
                                                                      

08009588 <rtems_string_to_unsigned_char>: const char *s, unsigned char *n, char **endptr, int base ) {
 8009588:	37 9c ff e8 	addi sp,sp,-24                                 
 800958c:	5b 8b 00 14 	sw (sp+20),r11                                 
 8009590:	5b 8c 00 10 	sw (sp+16),r12                                 
 8009594:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8009598:	5b 8e 00 08 	sw (sp+8),r14                                  
 800959c:	5b 9d 00 04 	sw (sp+4),ra                                   
  unsigned long result;                                               
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
 80095a0:	34 05 00 09 	mvi r5,9                                       
  const char *s,                                                      
  unsigned char *n,                                                   
  char **endptr,                                                      
  int base                                                            
)                                                                     
{                                                                     
 80095a4:	b8 20 68 00 	mv r13,r1                                      
 80095a8:	b8 40 58 00 	mv r11,r2                                      
 80095ac:	b8 60 70 00 	mv r14,r3                                      
 80095b0:	b8 80 60 00 	mv r12,r4                                      
  unsigned long result;                                               
  char *end;                                                          
                                                                      
  if ( !n )                                                           
 80095b4:	44 40 00 20 	be r2,r0,8009634 <rtems_string_to_unsigned_char+0xac>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
 80095b8:	f8 00 0b 14 	calli 800c208 <__errno>                        
 80095bc:	58 20 00 00 	sw (r1+0),r0                                   
  *n = 0;                                                             
                                                                      
  result = strtoul( s, &end, base );                                  
 80095c0:	b9 80 18 00 	mv r3,r12                                      
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
 80095c4:	31 60 00 00 	sb (r11+0),r0                                  
                                                                      
  result = strtoul( s, &end, base );                                  
 80095c8:	b9 a0 08 00 	mv r1,r13                                      
 80095cc:	37 82 00 18 	addi r2,sp,24                                  
 80095d0:	f8 00 18 51 	calli 800f714 <strtoul>                        
 80095d4:	b8 20 60 00 	mv r12,r1                                      
                                                                      
  if ( endptr )                                                       
 80095d8:	45 c0 00 03 	be r14,r0,80095e4 <rtems_string_to_unsigned_char+0x5c>
    *endptr = end;                                                    
 80095dc:	2b 81 00 18 	lw r1,(sp+24)                                  
 80095e0:	59 c1 00 00 	sw (r14+0),r1                                  
                                                                      
  if ( end == s )                                                     
 80095e4:	2b 81 00 18 	lw r1,(sp+24)                                  
    return RTEMS_NOT_DEFINED;                                         
 80095e8:	34 05 00 0b 	mvi r5,11                                      
  result = strtoul( s, &end, base );                                  
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
 80095ec:	44 2d 00 12 	be r1,r13,8009634 <rtems_string_to_unsigned_char+0xac>
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 80095f0:	f8 00 0b 06 	calli 800c208 <__errno>                        
 80095f4:	28 22 00 00 	lw r2,(r1+0)                                   
 80095f8:	34 01 00 22 	mvi r1,34                                      
 80095fc:	5c 41 00 05 	bne r2,r1,8009610 <rtems_string_to_unsigned_char+0x88><== ALWAYS TAKEN
    (( result == 0 ) || ( result == ULONG_MAX )))                     
 8009600:	35 82 ff ff 	addi r2,r12,-1                                 <== NOT EXECUTED
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 8009604:	34 01 ff fd 	mvi r1,-3                                      <== NOT EXECUTED
    (( result == 0 ) || ( result == ULONG_MAX )))                     
      return RTEMS_INVALID_NUMBER;                                    
 8009608:	34 05 00 0a 	mvi r5,10                                      <== NOT EXECUTED
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 800960c:	54 41 00 0a 	bgu r2,r1,8009634 <rtems_string_to_unsigned_char+0xac><== NOT EXECUTED
    (( result == 0 ) || ( result == ULONG_MAX )))                     
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
#if (UCHAR_MAX < ULONG_MAX)                                           
  if ( result > UCHAR_MAX ) {                                         
 8009610:	34 01 00 ff 	mvi r1,255                                     
 8009614:	50 2c 00 06 	bgeu r1,r12,800962c <rtems_string_to_unsigned_char+0xa4><== ALWAYS TAKEN
    errno = ERANGE;                                                   
 8009618:	f8 00 0a fc 	calli 800c208 <__errno>                        <== NOT EXECUTED
 800961c:	34 02 00 22 	mvi r2,34                                      <== NOT EXECUTED
 8009620:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
    return RTEMS_INVALID_NUMBER;                                      
 8009624:	34 05 00 0a 	mvi r5,10                                      <== NOT EXECUTED
 8009628:	e0 00 00 03 	bi 8009634 <rtems_string_to_unsigned_char+0xac><== NOT EXECUTED
  }                                                                   
#endif                                                                
                                                                      
  *n = result;                                                        
 800962c:	31 6c 00 00 	sb (r11+0),r12                                 
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 8009630:	34 05 00 00 	mvi r5,0                                       
}                                                                     
 8009634:	b8 a0 08 00 	mv r1,r5                                       
 8009638:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800963c:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8009640:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8009644:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8009648:	2b 8e 00 08 	lw r14,(sp+8)                                  
 800964c:	37 9c 00 18 	addi sp,sp,24                                  
 8009650:	c3 a0 00 00 	ret                                            
                                                                      

08009654 <rtems_string_to_unsigned_int>: const char *s, unsigned int *n, char **endptr, int base ) {
 8009654:	37 9c ff e8 	addi sp,sp,-24                                 
 8009658:	5b 8b 00 14 	sw (sp+20),r11                                 
 800965c:	5b 8c 00 10 	sw (sp+16),r12                                 
 8009660:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8009664:	5b 8e 00 08 	sw (sp+8),r14                                  
 8009668:	5b 9d 00 04 	sw (sp+4),ra                                   
  unsigned long result;                                               
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
 800966c:	34 05 00 09 	mvi r5,9                                       
  const char *s,                                                      
  unsigned int *n,                                                    
  char **endptr,                                                      
  int base                                                            
)                                                                     
{                                                                     
 8009670:	b8 20 68 00 	mv r13,r1                                      
 8009674:	b8 40 58 00 	mv r11,r2                                      
 8009678:	b8 60 70 00 	mv r14,r3                                      
 800967c:	b8 80 60 00 	mv r12,r4                                      
  unsigned long result;                                               
  char *end;                                                          
                                                                      
  if ( !n )                                                           
 8009680:	44 40 00 19 	be r2,r0,80096e4 <rtems_string_to_unsigned_int+0x90>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
 8009684:	f8 00 0a e1 	calli 800c208 <__errno>                        
 8009688:	58 20 00 00 	sw (r1+0),r0                                   
  *n = 0;                                                             
                                                                      
  result = strtoul( s, &end, base );                                  
 800968c:	b9 80 18 00 	mv r3,r12                                      
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
 8009690:	59 60 00 00 	sw (r11+0),r0                                  
                                                                      
  result = strtoul( s, &end, base );                                  
 8009694:	b9 a0 08 00 	mv r1,r13                                      
 8009698:	37 82 00 18 	addi r2,sp,24                                  
 800969c:	f8 00 18 1e 	calli 800f714 <strtoul>                        
 80096a0:	b8 20 60 00 	mv r12,r1                                      
                                                                      
  if ( endptr )                                                       
 80096a4:	45 c0 00 03 	be r14,r0,80096b0 <rtems_string_to_unsigned_int+0x5c>
    *endptr = end;                                                    
 80096a8:	2b 81 00 18 	lw r1,(sp+24)                                  
 80096ac:	59 c1 00 00 	sw (r14+0),r1                                  
                                                                      
  if ( end == s )                                                     
 80096b0:	2b 81 00 18 	lw r1,(sp+24)                                  
    return RTEMS_NOT_DEFINED;                                         
 80096b4:	34 05 00 0b 	mvi r5,11                                      
  result = strtoul( s, &end, base );                                  
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
 80096b8:	44 2d 00 0b 	be r1,r13,80096e4 <rtems_string_to_unsigned_int+0x90>
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 80096bc:	f8 00 0a d3 	calli 800c208 <__errno>                        
 80096c0:	28 22 00 00 	lw r2,(r1+0)                                   
 80096c4:	34 01 00 22 	mvi r1,34                                      
 80096c8:	5c 41 00 05 	bne r2,r1,80096dc <rtems_string_to_unsigned_int+0x88>
    (( result == 0 ) || ( result == ULONG_MAX )))                     
 80096cc:	35 82 ff ff 	addi r2,r12,-1                                 
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 80096d0:	34 01 ff fd 	mvi r1,-3                                      
    (( result == 0 ) || ( result == ULONG_MAX )))                     
      return RTEMS_INVALID_NUMBER;                                    
 80096d4:	34 05 00 0a 	mvi r5,10                                      
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 80096d8:	54 41 00 03 	bgu r2,r1,80096e4 <rtems_string_to_unsigned_int+0x90><== ALWAYS TAKEN
    errno = ERANGE;                                                   
    return RTEMS_INVALID_NUMBER;                                      
  }                                                                   
#endif                                                                
                                                                      
  *n = result;                                                        
 80096dc:	59 6c 00 00 	sw (r11+0),r12                                 
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 80096e0:	34 05 00 00 	mvi r5,0                                       
}                                                                     
 80096e4:	b8 a0 08 00 	mv r1,r5                                       
 80096e8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80096ec:	2b 8b 00 14 	lw r11,(sp+20)                                 
 80096f0:	2b 8c 00 10 	lw r12,(sp+16)                                 
 80096f4:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 80096f8:	2b 8e 00 08 	lw r14,(sp+8)                                  
 80096fc:	37 9c 00 18 	addi sp,sp,24                                  
 8009700:	c3 a0 00 00 	ret                                            
                                                                      

080097d4 <rtems_string_to_unsigned_long>: const char *s, unsigned long *n, char **endptr, int base ) {
 80097d4:	37 9c ff e8 	addi sp,sp,-24                                 
 80097d8:	5b 8b 00 14 	sw (sp+20),r11                                 
 80097dc:	5b 8c 00 10 	sw (sp+16),r12                                 
 80097e0:	5b 8d 00 0c 	sw (sp+12),r13                                 
 80097e4:	5b 8e 00 08 	sw (sp+8),r14                                  
 80097e8:	5b 9d 00 04 	sw (sp+4),ra                                   
  unsigned long result;                                               
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
 80097ec:	34 05 00 09 	mvi r5,9                                       
  const char *s,                                                      
  unsigned long *n,                                                   
  char **endptr,                                                      
  int base                                                            
)                                                                     
{                                                                     
 80097f0:	b8 20 68 00 	mv r13,r1                                      
 80097f4:	b8 40 58 00 	mv r11,r2                                      
 80097f8:	b8 60 70 00 	mv r14,r3                                      
 80097fc:	b8 80 60 00 	mv r12,r4                                      
  unsigned long result;                                               
  char *end;                                                          
                                                                      
  if ( !n )                                                           
 8009800:	44 40 00 19 	be r2,r0,8009864 <rtems_string_to_unsigned_long+0x90>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
 8009804:	f8 00 0a 81 	calli 800c208 <__errno>                        
 8009808:	58 20 00 00 	sw (r1+0),r0                                   
  *n = 0;                                                             
                                                                      
  result = strtoul( s, &end, base );                                  
 800980c:	b9 80 18 00 	mv r3,r12                                      
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
 8009810:	59 60 00 00 	sw (r11+0),r0                                  
                                                                      
  result = strtoul( s, &end, base );                                  
 8009814:	b9 a0 08 00 	mv r1,r13                                      
 8009818:	37 82 00 18 	addi r2,sp,24                                  
 800981c:	f8 00 17 be 	calli 800f714 <strtoul>                        
 8009820:	b8 20 60 00 	mv r12,r1                                      
                                                                      
  if ( endptr )                                                       
 8009824:	45 c0 00 03 	be r14,r0,8009830 <rtems_string_to_unsigned_long+0x5c>
    *endptr = end;                                                    
 8009828:	2b 81 00 18 	lw r1,(sp+24)                                  
 800982c:	59 c1 00 00 	sw (r14+0),r1                                  
                                                                      
  if ( end == s )                                                     
 8009830:	2b 81 00 18 	lw r1,(sp+24)                                  
    return RTEMS_NOT_DEFINED;                                         
 8009834:	34 05 00 0b 	mvi r5,11                                      
  result = strtoul( s, &end, base );                                  
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
 8009838:	44 2d 00 0b 	be r1,r13,8009864 <rtems_string_to_unsigned_long+0x90>
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 800983c:	f8 00 0a 73 	calli 800c208 <__errno>                        
 8009840:	28 22 00 00 	lw r2,(r1+0)                                   
 8009844:	34 01 00 22 	mvi r1,34                                      
 8009848:	5c 41 00 05 	bne r2,r1,800985c <rtems_string_to_unsigned_long+0x88>
    (( result == 0 ) || ( result == ULONG_MAX )))                     
 800984c:	35 82 ff ff 	addi r2,r12,-1                                 
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 8009850:	34 01 ff fd 	mvi r1,-3                                      
    (( result == 0 ) || ( result == ULONG_MAX )))                     
      return RTEMS_INVALID_NUMBER;                                    
 8009854:	34 05 00 0a 	mvi r5,10                                      
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 8009858:	54 41 00 03 	bgu r2,r1,8009864 <rtems_string_to_unsigned_long+0x90><== ALWAYS TAKEN
    (( result == 0 ) || ( result == ULONG_MAX )))                     
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
 800985c:	59 6c 00 00 	sw (r11+0),r12                                 
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 8009860:	34 05 00 00 	mvi r5,0                                       
}                                                                     
 8009864:	b8 a0 08 00 	mv r1,r5                                       
 8009868:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800986c:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8009870:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8009874:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8009878:	2b 8e 00 08 	lw r14,(sp+8)                                  
 800987c:	37 9c 00 18 	addi sp,sp,24                                  
 8009880:	c3 a0 00 00 	ret                                            
                                                                      

08009704 <rtems_string_to_unsigned_long_long>: const char *s, unsigned long long *n, char **endptr, int base ) {
 8009704:	37 9c ff e4 	addi sp,sp,-28                                 
 8009708:	5b 8b 00 18 	sw (sp+24),r11                                 
 800970c:	5b 8c 00 14 	sw (sp+20),r12                                 
 8009710:	5b 8d 00 10 	sw (sp+16),r13                                 
 8009714:	5b 8e 00 0c 	sw (sp+12),r14                                 
 8009718:	5b 8f 00 08 	sw (sp+8),r15                                  
 800971c:	5b 9d 00 04 	sw (sp+4),ra                                   
  unsigned long long result;                                          
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
 8009720:	34 05 00 09 	mvi r5,9                                       
  const char *s,                                                      
  unsigned long long *n,                                              
  char **endptr,                                                      
  int base                                                            
)                                                                     
{                                                                     
 8009724:	b8 20 70 00 	mv r14,r1                                      
 8009728:	b8 40 58 00 	mv r11,r2                                      
 800972c:	b8 60 78 00 	mv r15,r3                                      
 8009730:	b8 80 60 00 	mv r12,r4                                      
  unsigned long long result;                                          
  char *end;                                                          
                                                                      
  if ( !n )                                                           
 8009734:	44 40 00 1f 	be r2,r0,80097b0 <rtems_string_to_unsigned_long_long+0xac>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
 8009738:	f8 00 0a b4 	calli 800c208 <__errno>                        
 800973c:	58 20 00 00 	sw (r1+0),r0                                   
  *n = 0;                                                             
                                                                      
  result = strtoull( s, &end, base );                                 
 8009740:	b9 80 18 00 	mv r3,r12                                      
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
 8009744:	59 60 00 00 	sw (r11+0),r0                                  
 8009748:	59 60 00 04 	sw (r11+4),r0                                  
                                                                      
  result = strtoull( s, &end, base );                                 
 800974c:	b9 c0 08 00 	mv r1,r14                                      
 8009750:	37 82 00 1c 	addi r2,sp,28                                  
 8009754:	f8 00 17 fe 	calli 800f74c <strtoull>                       
 8009758:	b8 20 68 00 	mv r13,r1                                      
 800975c:	b8 40 60 00 	mv r12,r2                                      
                                                                      
  if ( endptr )                                                       
 8009760:	45 e0 00 03 	be r15,r0,800976c <rtems_string_to_unsigned_long_long+0x68>
    *endptr = end;                                                    
 8009764:	2b 81 00 1c 	lw r1,(sp+28)                                  
 8009768:	59 e1 00 00 	sw (r15+0),r1                                  
                                                                      
  if ( end == s )                                                     
 800976c:	2b 81 00 1c 	lw r1,(sp+28)                                  
    return RTEMS_NOT_DEFINED;                                         
 8009770:	34 05 00 0b 	mvi r5,11                                      
  result = strtoull( s, &end, base );                                 
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
 8009774:	44 2e 00 0f 	be r1,r14,80097b0 <rtems_string_to_unsigned_long_long+0xac>
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 8009778:	f8 00 0a a4 	calli 800c208 <__errno>                        
 800977c:	28 22 00 00 	lw r2,(r1+0)                                   
 8009780:	34 01 00 22 	mvi r1,34                                      
 8009784:	5c 41 00 08 	bne r2,r1,80097a4 <rtems_string_to_unsigned_long_long+0xa0>
    (( result == 0 ) || ( result == ULONG_LONG_MAX )))                
 8009788:	35 81 ff ff 	addi r1,r12,-1                                 
 800978c:	f5 81 18 00 	cmpgu r3,r12,r1                                
 8009790:	c8 0d 10 00 	sub r2,r0,r13                                  
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 8009794:	5c 62 00 04 	bne r3,r2,80097a4 <rtems_string_to_unsigned_long_long+0xa0><== NEVER TAKEN
 8009798:	34 02 ff fd 	mvi r2,-3                                      
    (( result == 0 ) || ( result == ULONG_LONG_MAX )))                
      return RTEMS_INVALID_NUMBER;                                    
 800979c:	34 05 00 0a 	mvi r5,10                                      
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 80097a0:	54 22 00 04 	bgu r1,r2,80097b0 <rtems_string_to_unsigned_long_long+0xac><== ALWAYS TAKEN
    (( result == 0 ) || ( result == ULONG_LONG_MAX )))                
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
 80097a4:	59 6d 00 00 	sw (r11+0),r13                                 
 80097a8:	59 6c 00 04 	sw (r11+4),r12                                 
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 80097ac:	34 05 00 00 	mvi r5,0                                       
}                                                                     
 80097b0:	b8 a0 08 00 	mv r1,r5                                       
 80097b4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80097b8:	2b 8b 00 18 	lw r11,(sp+24)                                 
 80097bc:	2b 8c 00 14 	lw r12,(sp+20)                                 
 80097c0:	2b 8d 00 10 	lw r13,(sp+16)                                 
 80097c4:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 80097c8:	2b 8f 00 08 	lw r15,(sp+8)                                  
 80097cc:	37 9c 00 1c 	addi sp,sp,28                                  
 80097d0:	c3 a0 00 00 	ret                                            
                                                                      

08000ec0 <rtems_tarfs_load>: int rtems_tarfs_load( char *mountpoint, uint8_t *tar_image, size_t tar_size ) {
 8000ec0:	37 9c fe 20 	addi sp,sp,-480                                
 8000ec4:	5b 8b 00 44 	sw (sp+68),r11                                 
 8000ec8:	5b 8c 00 40 	sw (sp+64),r12                                 
 8000ecc:	5b 8d 00 3c 	sw (sp+60),r13                                 
 8000ed0:	5b 8e 00 38 	sw (sp+56),r14                                 
 8000ed4:	5b 8f 00 34 	sw (sp+52),r15                                 
 8000ed8:	5b 90 00 30 	sw (sp+48),r16                                 
 8000edc:	5b 91 00 2c 	sw (sp+44),r17                                 
 8000ee0:	5b 92 00 28 	sw (sp+40),r18                                 
 8000ee4:	5b 93 00 24 	sw (sp+36),r19                                 
 8000ee8:	5b 94 00 20 	sw (sp+32),r20                                 
 8000eec:	5b 95 00 1c 	sw (sp+28),r21                                 
 8000ef0:	5b 96 00 18 	sw (sp+24),r22                                 
 8000ef4:	5b 97 00 14 	sw (sp+20),r23                                 
 8000ef8:	5b 98 00 10 	sw (sp+16),r24                                 
 8000efc:	5b 99 00 0c 	sw (sp+12),r25                                 
 8000f00:	5b 9b 00 08 	sw (sp+8),fp                                   
 8000f04:	5b 9d 00 04 	sw (sp+4),ra                                   
 8000f08:	b8 20 98 00 	mv r19,r1                                      
 8000f0c:	b8 40 a0 00 	mv r20,r2                                      
 8000f10:	5b 83 00 50 	sw (sp+80),r3                                  
   int                              offset;                           
   unsigned long                    nblocks;                          
   IMFS_jnode_t                    *node;                             
   int                              status;                           
                                                                      
   status = rtems_filesystem_evaluate_path(                           
 8000f14:	f8 00 3c cb 	calli 8010240 <strlen>                         
 8000f18:	b8 20 10 00 	mv r2,r1                                       
 8000f1c:	34 03 00 00 	mvi r3,0                                       
 8000f20:	ba 60 08 00 	mv r1,r19                                      
 8000f24:	37 84 01 cc 	addi r4,sp,460                                 
 8000f28:	34 05 00 00 	mvi r5,0                                       
 8000f2c:	f8 00 03 3d 	calli 8001c20 <rtems_filesystem_evaluate_path> 
 8000f30:	b8 20 60 00 	mv r12,r1                                      
      strlen(mountpoint),                                             
      0,                                                              
      &root_loc,                                                      
      0                                                               
   );                                                                 
   if (status != 0)                                                   
 8000f34:	5c 20 00 71 	bne r1,r0,80010f8 <rtems_tarfs_load+0x238>     
     return -1;                                                       
                                                                      
   if (root_loc.ops != &IMFS_ops && root_loc.ops != &fifoIMFS_ops)    
 8000f38:	2b 81 01 d8 	lw r1,(sp+472)                                 
 8000f3c:	78 04 08 01 	mvhi r4,0x801                                  
 8000f40:	38 84 f9 30 	ori r4,r4,0xf930                               
 8000f44:	34 0b 00 00 	mvi r11,0                                      
 8000f48:	44 24 00 08 	be r1,r4,8000f68 <rtems_tarfs_load+0xa8>       
 8000f4c:	78 04 08 02 	mvhi r4,0x802                                  
 8000f50:	38 84 01 94 	ori r4,r4,0x194                                
 8000f54:	b9 80 58 00 	mv r11,r12                                     
 8000f58:	5c 24 00 68 	bne r1,r4,80010f8 <rtems_tarfs_load+0x238>     <== ALWAYS TAKEN
 8000f5c:	e0 00 00 03 	bi 8000f68 <rtems_tarfs_load+0xa8>             <== NOT EXECUTED
 8000f60:	b9 c0 58 00 	mv r11,r14                                     
 8000f64:	e0 00 00 0c 	bi 8000f94 <rtems_tarfs_load+0xd4>             
    /*                                                                
     * Read a header.                                                 
     */                                                               
    hdr_ptr = (char *) &tar_image[offset];                            
    offset += 512;                                                    
    if (strncmp(&hdr_ptr[257], "ustar", 5))                           
 8000f68:	78 11 08 01 	mvhi r17,0x801                                 
     * - For files, create a file node with special tarfs properties. 
     */                                                               
    if (linkflag == DIRTYPE) {                                        
      strcpy(full_filename, mountpoint);                              
      if (full_filename[strlen(full_filename)-1] != '/')              
        strcat(full_filename, "/");                                   
 8000f6c:	78 0f 08 01 	mvhi r15,0x801                                 
    /*                                                                
     * Read a header.                                                 
     */                                                               
    hdr_ptr = (char *) &tar_image[offset];                            
    offset += 512;                                                    
    if (strncmp(&hdr_ptr[257], "ustar", 5))                           
 8000f70:	3a 31 f9 78 	ori r17,r17,0xf978                             
      break;                                                          
                                                                      
    strncpy(filename, hdr_ptr, MAX_NAME_FIELD_SIZE);                  
 8000f74:	37 90 01 54 	addi r16,sp,340                                
     *        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) {                                   
 8000f78:	34 1b 00 30 	mvi fp,48                                      
      const char  *name;                                              
                                                                      
      loc = root_loc;                                                 
      if (IMFS_evaluate_for_make(filename, &loc, &name) == 0) {       
 8000f7c:	37 92 01 b8 	addi r18,sp,440                                
        );                                                            
        node->info.linearfile.size   = file_size;                     
        node->info.linearfile.direct = &tar_image[offset];            
      }                                                               
                                                                      
      nblocks = (((file_size) + 511) & ~511) / 512;                   
 8000f80:	34 19 fe 00 	mvi r25,-512                                   
     * - 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);                              
 8000f84:	37 8d 00 54 	addi r13,sp,84                                 
      if (full_filename[strlen(full_filename)-1] != '/')              
 8000f88:	37 98 00 53 	addi r24,sp,83                                 
 8000f8c:	34 17 00 2f 	mvi r23,47                                     
        strcat(full_filename, "/");                                   
 8000f90:	39 ef cd d4 	ori r15,r15,0xcdd4                             
   /*                                                                 
    * Create an IMFS node structure pointing to tar image memory.     
    */                                                                
   offset = 0;                                                        
   while (1) {                                                        
    if (offset + 512 > tar_size)                                      
 8000f94:	2b 81 00 50 	lw r1,(sp+80)                                  
 8000f98:	35 6e 02 00 	addi r14,r11,512                               
 8000f9c:	55 c1 00 58 	bgu r14,r1,80010fc <rtems_tarfs_load+0x23c>    <== NEVER TAKEN
      break;                                                          
                                                                      
    /*                                                                
     * Read a header.                                                 
     */                                                               
    hdr_ptr = (char *) &tar_image[offset];                            
 8000fa0:	b6 8b 58 00 	add r11,r20,r11                                
    offset += 512;                                                    
    if (strncmp(&hdr_ptr[257], "ustar", 5))                           
 8000fa4:	35 61 01 01 	addi r1,r11,257                                
 8000fa8:	ba 20 10 00 	mv r2,r17                                      
 8000fac:	34 03 00 05 	mvi r3,5                                       
 8000fb0:	f8 00 3c d3 	calli 80102fc <strncmp>                        
 8000fb4:	5c 20 00 52 	bne r1,r0,80010fc <rtems_tarfs_load+0x23c>     <== NEVER TAKEN
      break;                                                          
                                                                      
    strncpy(filename, hdr_ptr, MAX_NAME_FIELD_SIZE);                  
 8000fb8:	34 03 00 63 	mvi r3,99                                      
 8000fbc:	b9 60 10 00 	mv r2,r11                                      
 8000fc0:	ba 00 08 00 	mv r1,r16                                      
 8000fc4:	f8 00 3d 1b 	calli 8010430 <strncpy>                        
    filename[MAX_NAME_FIELD_SIZE] = '\0';                             
                                                                      
    linkflag   = hdr_ptr[156];                                        
    file_mode  = _rtems_octal2ulong(&hdr_ptr[100], 8);                
 8000fc8:	34 02 00 08 	mvi r2,8                                       
    offset += 512;                                                    
    if (strncmp(&hdr_ptr[257], "ustar", 5))                           
      break;                                                          
                                                                      
    strncpy(filename, hdr_ptr, MAX_NAME_FIELD_SIZE);                  
    filename[MAX_NAME_FIELD_SIZE] = '\0';                             
 8000fcc:	33 80 01 b7 	sb (sp+439),r0                                 
                                                                      
    linkflag   = hdr_ptr[156];                                        
    file_mode  = _rtems_octal2ulong(&hdr_ptr[100], 8);                
 8000fd0:	35 61 00 64 	addi r1,r11,100                                
      break;                                                          
                                                                      
    strncpy(filename, hdr_ptr, MAX_NAME_FIELD_SIZE);                  
    filename[MAX_NAME_FIELD_SIZE] = '\0';                             
                                                                      
    linkflag   = hdr_ptr[156];                                        
 8000fd4:	41 76 00 9c 	lbu r22,(r11+156)                              
    file_mode  = _rtems_octal2ulong(&hdr_ptr[100], 8);                
 8000fd8:	f8 00 1a 39 	calli 80078bc <_rtems_octal2ulong>             
 8000fdc:	5b 81 00 4c 	sw (sp+76),r1                                  
    file_size  = _rtems_octal2ulong(&hdr_ptr[124], 12);               
 8000fe0:	34 02 00 0c 	mvi r2,12                                      
 8000fe4:	35 61 00 7c 	addi r1,r11,124                                
 8000fe8:	f8 00 1a 35 	calli 80078bc <_rtems_octal2ulong>             
    hdr_chksum = _rtems_octal2ulong(&hdr_ptr[148], 8);                
 8000fec:	34 02 00 08 	mvi r2,8                                       
    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);               
 8000ff0:	b8 20 a8 00 	mv r21,r1                                      
    hdr_chksum = _rtems_octal2ulong(&hdr_ptr[148], 8);                
 8000ff4:	35 61 00 94 	addi r1,r11,148                                
 8000ff8:	f8 00 1a 31 	calli 80078bc <_rtems_octal2ulong>             
 8000ffc:	b8 20 10 00 	mv r2,r1                                       
                                                                      
    if (_rtems_tar_header_checksum(hdr_ptr) != hdr_chksum)            
 8001000:	b9 60 08 00 	mv r1,r11                                      
 8001004:	5b 82 00 48 	sw (sp+72),r2                                  
 8001008:	f8 00 1a 4c 	calli 8007938 <_rtems_tar_header_checksum>     
 800100c:	2b 82 00 48 	lw r2,(sp+72)                                  
 8001010:	5c 22 00 3b 	bne r1,r2,80010fc <rtems_tarfs_load+0x23c>     <== NEVER TAKEN
     * 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) {                                        
 8001014:	34 01 00 35 	mvi r1,53                                      
 8001018:	5e c1 00 13 	bne r22,r1,8001064 <rtems_tarfs_load+0x1a4>    
      strcpy(full_filename, mountpoint);                              
 800101c:	ba 60 10 00 	mv r2,r19                                      
 8001020:	b9 a0 08 00 	mv r1,r13                                      
 8001024:	f8 00 3b 53 	calli 800fd70 <strcpy>                         
      if (full_filename[strlen(full_filename)-1] != '/')              
 8001028:	b9 a0 08 00 	mv r1,r13                                      
 800102c:	f8 00 3c 85 	calli 8010240 <strlen>                         
 8001030:	b7 01 08 00 	add r1,r24,r1                                  
 8001034:	40 21 00 00 	lbu r1,(r1+0)                                  
 8001038:	44 37 00 04 	be r1,r23,8001048 <rtems_tarfs_load+0x188>     <== ALWAYS TAKEN
        strcat(full_filename, "/");                                   
 800103c:	b9 a0 08 00 	mv r1,r13                                      <== NOT EXECUTED
 8001040:	b9 e0 10 00 	mv r2,r15                                      <== NOT EXECUTED
 8001044:	f8 00 3a f4 	calli 800fc14 <strcat>                         <== NOT EXECUTED
      strcat(full_filename, filename);                                
 8001048:	ba 00 10 00 	mv r2,r16                                      
 800104c:	b9 a0 08 00 	mv r1,r13                                      
 8001050:	f8 00 3a f1 	calli 800fc14 <strcat>                         
      mkdir(full_filename, S_IRWXU | S_IRWXG | S_IRWXO);              
 8001054:	b9 a0 08 00 	mv r1,r13                                      
 8001058:	34 02 01 ff 	mvi r2,511                                     
 800105c:	f8 00 05 9b 	calli 80026c8 <mkdir>                          
 8001060:	e3 ff ff c0 	bi 8000f60 <rtems_tarfs_load+0xa0>             
     *        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) {                                   
 8001064:	5e db ff bf 	bne r22,fp,8000f60 <rtems_tarfs_load+0xa0>     <== NEVER TAKEN
      const char  *name;                                              
                                                                      
      loc = root_loc;                                                 
 8001068:	2b 81 01 cc 	lw r1,(sp+460)                                 
      if (IMFS_evaluate_for_make(filename, &loc, &name) == 0) {       
 800106c:	ba 40 10 00 	mv r2,r18                                      
 8001070:	37 83 01 e0 	addi r3,sp,480                                 
     *        should not have this path.                              
     */                                                               
    else if (linkflag == REGTYPE) {                                   
      const char  *name;                                              
                                                                      
      loc = root_loc;                                                 
 8001074:	5b 81 01 b8 	sw (sp+440),r1                                 
 8001078:	2b 81 01 d0 	lw r1,(sp+464)                                 
 800107c:	5b 81 01 bc 	sw (sp+444),r1                                 
 8001080:	2b 81 01 d4 	lw r1,(sp+468)                                 
 8001084:	5b 81 01 c0 	sw (sp+448),r1                                 
 8001088:	2b 81 01 d8 	lw r1,(sp+472)                                 
 800108c:	5b 81 01 c4 	sw (sp+452),r1                                 
 8001090:	2b 81 01 dc 	lw r1,(sp+476)                                 
 8001094:	5b 81 01 c8 	sw (sp+456),r1                                 
      if (IMFS_evaluate_for_make(filename, &loc, &name) == 0) {       
 8001098:	ba 00 08 00 	mv r1,r16                                      
 800109c:	f8 00 1d c2 	calli 80087a4 <IMFS_evaluate_for_make>         
 80010a0:	5c 20 00 0e 	bne r1,r0,80010d8 <rtems_tarfs_load+0x218>     <== NEVER TAKEN
        node = IMFS_create_node(                                      
          &loc,                                                       
          IMFS_LINEAR_FILE, (char *)name,                             
          (file_mode & (S_IRWXU | S_IRWXG | S_IRWXO)) | S_IFREG,      
 80010a4:	2b 81 00 4c 	lw r1,(sp+76)                                  
    else if (linkflag == REGTYPE) {                                   
      const char  *name;                                              
                                                                      
      loc = root_loc;                                                 
      if (IMFS_evaluate_for_make(filename, &loc, &name) == 0) {       
        node = IMFS_create_node(                                      
 80010a8:	2b 83 01 e0 	lw r3,(sp+480)                                 
 80010ac:	34 02 00 06 	mvi r2,6                                       
          &loc,                                                       
          IMFS_LINEAR_FILE, (char *)name,                             
          (file_mode & (S_IRWXU | S_IRWXG | S_IRWXO)) | S_IFREG,      
 80010b0:	20 24 01 ff 	andi r4,r1,0x1ff                               
    else if (linkflag == REGTYPE) {                                   
      const char  *name;                                              
                                                                      
      loc = root_loc;                                                 
      if (IMFS_evaluate_for_make(filename, &loc, &name) == 0) {       
        node = IMFS_create_node(                                      
 80010b4:	38 84 80 00 	ori r4,r4,0x8000                               
 80010b8:	ba 40 08 00 	mv r1,r18                                      
 80010bc:	34 05 00 00 	mvi r5,0                                       
 80010c0:	f8 00 1b d6 	calli 8008018 <IMFS_create_node>               
 80010c4:	b8 20 20 00 	mv r4,r1                                       
          &loc,                                                       
          IMFS_LINEAR_FILE, (char *)name,                             
          (file_mode & (S_IRWXU | S_IRWXG | S_IRWXO)) | S_IFREG,      
          NULL                                                        
        );                                                            
        node->info.linearfile.size   = file_size;                     
 80010c8:	58 20 00 50 	sw (r1+80),r0                                  
 80010cc:	58 35 00 54 	sw (r1+84),r21                                 
        node->info.linearfile.direct = &tar_image[offset];            
 80010d0:	b6 8e 08 00 	add r1,r20,r14                                 
 80010d4:	58 81 00 58 	sw (r4+88),r1                                  
      }                                                               
                                                                      
      nblocks = (((file_size) + 511) & ~511) / 512;                   
 80010d8:	36 a1 01 ff 	addi r1,r21,511                                
 80010dc:	34 02 00 09 	mvi r2,9                                       
 80010e0:	a0 39 08 00 	and r1,r1,r25                                  
 80010e4:	f8 00 6c 9d 	calli 801c358 <__lshrsi3>                      
      offset += 512 * nblocks;                                        
 80010e8:	34 02 00 09 	mvi r2,9                                       
 80010ec:	f8 00 6c 4d 	calli 801c220 <__ashlsi3>                      
 80010f0:	b4 2e 70 00 	add r14,r1,r14                                 
 80010f4:	e3 ff ff 9b 	bi 8000f60 <rtems_tarfs_load+0xa0>             
   );                                                                 
   if (status != 0)                                                   
     return -1;                                                       
                                                                      
   if (root_loc.ops != &IMFS_ops && root_loc.ops != &fifoIMFS_ops)    
     return -1;                                                       
 80010f8:	34 0c ff ff 	mvi r12,-1                                     
      nblocks = (((file_size) + 511) & ~511) / 512;                   
      offset += 512 * nblocks;                                        
    }                                                                 
  }                                                                   
  return status;                                                      
}                                                                     
 80010fc:	b9 80 08 00 	mv r1,r12                                      
 8001100:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8001104:	2b 8b 00 44 	lw r11,(sp+68)                                 
 8001108:	2b 8c 00 40 	lw r12,(sp+64)                                 
 800110c:	2b 8d 00 3c 	lw r13,(sp+60)                                 
 8001110:	2b 8e 00 38 	lw r14,(sp+56)                                 
 8001114:	2b 8f 00 34 	lw r15,(sp+52)                                 
 8001118:	2b 90 00 30 	lw r16,(sp+48)                                 
 800111c:	2b 91 00 2c 	lw r17,(sp+44)                                 
 8001120:	2b 92 00 28 	lw r18,(sp+40)                                 
 8001124:	2b 93 00 24 	lw r19,(sp+36)                                 
 8001128:	2b 94 00 20 	lw r20,(sp+32)                                 
 800112c:	2b 95 00 1c 	lw r21,(sp+28)                                 
 8001130:	2b 96 00 18 	lw r22,(sp+24)                                 
 8001134:	2b 97 00 14 	lw r23,(sp+20)                                 
 8001138:	2b 98 00 10 	lw r24,(sp+16)                                 
 800113c:	2b 99 00 0c 	lw r25,(sp+12)                                 
 8001140:	2b 9b 00 08 	lw fp,(sp+8)                                   
 8001144:	37 9c 01 e0 	addi sp,sp,480                                 
 8001148:	c3 a0 00 00 	ret                                            
                                                                      

0800ad68 <rtems_task_mode>: rtems_status_code rtems_task_mode( rtems_mode mode_set, rtems_mode mask, rtems_mode *previous_mode_set ) {
 800ad68:	37 9c ff e0 	addi sp,sp,-32                                 
 800ad6c:	5b 8b 00 20 	sw (sp+32),r11                                 
 800ad70:	5b 8c 00 1c 	sw (sp+28),r12                                 
 800ad74:	5b 8d 00 18 	sw (sp+24),r13                                 
 800ad78:	5b 8e 00 14 	sw (sp+20),r14                                 
 800ad7c:	5b 8f 00 10 	sw (sp+16),r15                                 
 800ad80:	5b 90 00 0c 	sw (sp+12),r16                                 
 800ad84:	5b 91 00 08 	sw (sp+8),r17                                  
 800ad88:	5b 9d 00 04 	sw (sp+4),ra                                   
  bool                is_asr_enabled = false;                         
  bool                needs_asr_dispatching = false;                  
  rtems_mode          old_mode;                                       
                                                                      
  if ( !previous_mode_set )                                           
    return RTEMS_INVALID_ADDRESS;                                     
 800ad8c:	34 04 00 09 	mvi r4,9                                       
rtems_status_code rtems_task_mode(                                    
  rtems_mode  mode_set,                                               
  rtems_mode  mask,                                                   
  rtems_mode *previous_mode_set                                       
)                                                                     
{                                                                     
 800ad90:	b8 20 68 00 	mv r13,r1                                      
 800ad94:	b8 40 70 00 	mv r14,r2                                      
 800ad98:	b8 60 80 00 	mv r16,r3                                      
  ASR_Information    *asr;                                            
  bool                is_asr_enabled = false;                         
  bool                needs_asr_dispatching = false;                  
  rtems_mode          old_mode;                                       
                                                                      
  if ( !previous_mode_set )                                           
 800ad9c:	44 60 00 51 	be r3,r0,800aee0 <rtems_task_mode+0x178>       
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  executing     = _Thread_Executing;                                  
 800ada0:	78 01 08 01 	mvhi r1,0x801                                  
 800ada4:	38 21 3a 28 	ori r1,r1,0x3a28                               
 800ada8:	28 2c 00 0c 	lw r12,(r1+12)                                 
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
  asr = &api->Signal;                                                 
                                                                      
  old_mode  = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
 800adac:	41 8f 00 74 	lbu r15,(r12+116)                              
                                                                      
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
 800adb0:	29 81 00 7c 	lw r1,(r12+124)                                
                                                                      
  if ( !previous_mode_set )                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  executing     = _Thread_Executing;                                  
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
 800adb4:	29 8b 01 18 	lw r11,(r12+280)                               
  asr = &api->Signal;                                                 
                                                                      
  old_mode  = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
 800adb8:	65 ef 00 00 	cmpei r15,r15,0                                
 800adbc:	c8 0f 78 00 	sub r15,r0,r15                                 
 800adc0:	21 ef 01 00 	andi r15,r15,0x100                             
                                                                      
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
 800adc4:	44 20 00 02 	be r1,r0,800adcc <rtems_task_mode+0x64>        
    old_mode |= RTEMS_NO_TIMESLICE;                                   
  else                                                                
    old_mode |= RTEMS_TIMESLICE;                                      
 800adc8:	39 ef 02 00 	ori r15,r15,0x200                              
                                                                      
  old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;           
 800adcc:	41 71 00 08 	lbu r17,(r11+8)                                
  old_mode |= _ISR_Get_level();                                       
 800add0:	fb ff ef d3 	calli 8006d1c <_CPU_ISR_Get_level>             
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
    old_mode |= RTEMS_NO_TIMESLICE;                                   
  else                                                                
    old_mode |= RTEMS_TIMESLICE;                                      
                                                                      
  old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;           
 800add4:	66 31 00 00 	cmpei r17,r17,0                                
 800add8:	c8 11 88 00 	sub r17,r0,r17                                 
 800addc:	22 31 04 00 	andi r17,r17,0x400                             
 800ade0:	ba 21 08 00 	or r1,r17,r1                                   
  old_mode |= _ISR_Get_level();                                       
 800ade4:	b8 2f 78 00 	or r15,r1,r15                                  
                                                                      
  *previous_mode_set = old_mode;                                      
 800ade8:	5a 0f 00 00 	sw (r16+0),r15                                 
                                                                      
  /*                                                                  
   *  These are generic thread scheduling characteristics.            
   */                                                                 
  if ( mask & RTEMS_PREEMPT_MASK )                                    
 800adec:	21 c1 01 00 	andi r1,r14,0x100                              
 800adf0:	44 20 00 04 	be r1,r0,800ae00 <rtems_task_mode+0x98>        
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Modes_Is_preempt (                         
  Modes_Control mode_set                                              
)                                                                     
{                                                                     
   return (mode_set & RTEMS_PREEMPT_MASK) == RTEMS_PREEMPT;           
 800adf4:	21 a1 01 00 	andi r1,r13,0x100                              
    executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false;
 800adf8:	64 21 00 00 	cmpei r1,r1,0                                  
 800adfc:	31 81 00 74 	sb (r12+116),r1                                
                                                                      
  if ( mask & RTEMS_TIMESLICE_MASK ) {                                
 800ae00:	21 c1 02 00 	andi r1,r14,0x200                              
 800ae04:	44 20 00 0b 	be r1,r0,800ae30 <rtems_task_mode+0xc8>        
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Modes_Is_timeslice (                       
  Modes_Control mode_set                                              
)                                                                     
{                                                                     
  return (mode_set & RTEMS_TIMESLICE_MASK) == RTEMS_TIMESLICE;        
 800ae08:	21 a1 02 00 	andi r1,r13,0x200                              
    if ( _Modes_Is_timeslice(mode_set) ) {                            
 800ae0c:	44 20 00 08 	be r1,r0,800ae2c <rtems_task_mode+0xc4>        
      executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
 800ae10:	34 01 00 01 	mvi r1,1                                       
 800ae14:	59 81 00 7c 	sw (r12+124),r1                                
      executing->cpu_time_budget  = _Thread_Ticks_per_timeslice;      
 800ae18:	78 01 08 01 	mvhi r1,0x801                                  
 800ae1c:	38 21 38 20 	ori r1,r1,0x3820                               
 800ae20:	28 21 00 00 	lw r1,(r1+0)                                   
 800ae24:	59 81 00 78 	sw (r12+120),r1                                
 800ae28:	e0 00 00 02 	bi 800ae30 <rtems_task_mode+0xc8>              
    } else                                                            
      executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE; 
 800ae2c:	59 80 00 7c 	sw (r12+124),r0                                
  }                                                                   
                                                                      
  /*                                                                  
   *  Set the new interrupt level                                     
   */                                                                 
  if ( mask & RTEMS_INTERRUPT_MASK )                                  
 800ae30:	21 c1 00 01 	andi r1,r14,0x1                                
 800ae34:	44 20 00 04 	be r1,r0,800ae44 <rtems_task_mode+0xdc>        
 */                                                                   
RTEMS_INLINE_ROUTINE ISR_Level _Modes_Get_interrupt_level (           
  Modes_Control mode_set                                              
)                                                                     
{                                                                     
  return ( mode_set & RTEMS_INTERRUPT_MASK );                         
 800ae38:	21 a1 00 01 	andi r1,r13,0x1                                
 */                                                                   
RTEMS_INLINE_ROUTINE void _Modes_Set_interrupt_level (                
  Modes_Control mode_set                                              
)                                                                     
{                                                                     
  _ISR_Set_level( _Modes_Get_interrupt_level( mode_set ) );           
 800ae3c:	64 21 00 00 	cmpei r1,r1,0                                  
 800ae40:	d0 01 00 00 	wcsr IE,r1                                     
   *  This is specific to the RTEMS API                               
   */                                                                 
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
                                                                      
  if ( mask & RTEMS_ASR_MASK ) {                                      
 800ae44:	21 ce 04 00 	andi r14,r14,0x400                             
                                                                      
  /*                                                                  
   *  This is specific to the RTEMS API                               
   */                                                                 
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
 800ae48:	34 03 00 00 	mvi r3,0                                       
                                                                      
  if ( mask & RTEMS_ASR_MASK ) {                                      
 800ae4c:	45 c0 00 11 	be r14,r0,800ae90 <rtems_task_mode+0x128>      
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Modes_Is_asr_disabled (                    
  Modes_Control mode_set                                              
)                                                                     
{                                                                     
   return (mode_set & RTEMS_ASR_MASK) == RTEMS_NO_ASR;                
 800ae50:	21 ad 04 00 	andi r13,r13,0x400                             
    is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true;
    if ( is_asr_enabled != asr->is_enabled ) {                        
 800ae54:	41 61 00 08 	lbu r1,(r11+8)                                 
 *  Output:                                                           
 *    *previous_mode_set - previous mode set                          
 *     always return RTEMS_SUCCESSFUL;                                
 */                                                                   
                                                                      
rtems_status_code rtems_task_mode(                                    
 800ae58:	65 ad 00 00 	cmpei r13,r13,0                                
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
                                                                      
  if ( mask & RTEMS_ASR_MASK ) {                                      
    is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true;
    if ( is_asr_enabled != asr->is_enabled ) {                        
 800ae5c:	44 2d 00 0d 	be r1,r13,800ae90 <rtems_task_mode+0x128>      
      asr->is_enabled = is_asr_enabled;                               
 800ae60:	31 6d 00 08 	sb (r11+8),r13                                 
)                                                                     
{                                                                     
  rtems_signal_set _signals;                                          
  ISR_Level        _level;                                            
                                                                      
  _ISR_Disable( _level );                                             
 800ae64:	90 00 08 00 	rcsr r1,IE                                     
 800ae68:	34 02 ff fe 	mvi r2,-2                                      
 800ae6c:	a0 22 10 00 	and r2,r1,r2                                   
 800ae70:	d0 02 00 00 	wcsr IE,r2                                     
    _signals                     = information->signals_pending;      
 800ae74:	29 62 00 18 	lw r2,(r11+24)                                 
    information->signals_pending = information->signals_posted;       
 800ae78:	29 63 00 14 	lw r3,(r11+20)                                 
    information->signals_posted  = _signals;                          
 800ae7c:	59 62 00 14 	sw (r11+20),r2                                 
  rtems_signal_set _signals;                                          
  ISR_Level        _level;                                            
                                                                      
  _ISR_Disable( _level );                                             
    _signals                     = information->signals_pending;      
    information->signals_pending = information->signals_posted;       
 800ae80:	59 63 00 18 	sw (r11+24),r3                                 
    information->signals_posted  = _signals;                          
  _ISR_Enable( _level );                                              
 800ae84:	d0 01 00 00 	wcsr IE,r1                                     
      _ASR_Swap_signals( asr );                                       
      if ( _ASR_Are_signals_pending( asr ) ) {                        
 800ae88:	29 63 00 14 	lw r3,(r11+20)                                 
                                                                      
  /*                                                                  
   *  This is specific to the RTEMS API                               
   */                                                                 
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
 800ae8c:	7c 63 00 00 	cmpnei r3,r3,0                                 
        needs_asr_dispatching = true;                                 
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if ( _System_state_Is_up( _System_state_Get() ) ) {                 
 800ae90:	78 01 08 01 	mvhi r1,0x801                                  
 800ae94:	38 21 39 e0 	ori r1,r1,0x39e0                               
 800ae98:	28 22 00 00 	lw r2,(r1+0)                                   
 800ae9c:	34 01 00 03 	mvi r1,3                                       
     if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) )
      _Thread_Dispatch();                                             
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 800aea0:	34 04 00 00 	mvi r4,0                                       
        needs_asr_dispatching = true;                                 
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if ( _System_state_Is_up( _System_state_Get() ) ) {                 
 800aea4:	5c 41 00 0f 	bne r2,r1,800aee0 <rtems_task_mode+0x178>      
  bool are_signals_pending                                            
)                                                                     
{                                                                     
  Thread_Control     *executing;                                      
                                                                      
  executing = _Thread_Executing;                                      
 800aea8:	78 01 08 01 	mvhi r1,0x801                                  
 800aeac:	38 21 3a 28 	ori r1,r1,0x3a28                               
 800aeb0:	28 22 00 0c 	lw r2,(r1+12)                                  
                                                                      
  if ( are_signals_pending ||                                         
 800aeb4:	5c 60 00 05 	bne r3,r0,800aec8 <rtems_task_mode+0x160>      
 800aeb8:	28 21 00 10 	lw r1,(r1+16)                                  
 800aebc:	44 41 00 09 	be r2,r1,800aee0 <rtems_task_mode+0x178>       
       (!_Thread_Is_heir( executing ) && executing->is_preemptible) ) {
 800aec0:	40 41 00 74 	lbu r1,(r2+116)                                
 800aec4:	44 20 00 07 	be r1,r0,800aee0 <rtems_task_mode+0x178>       <== NEVER TAKEN
    _Thread_Dispatch_necessary = true;                                
 800aec8:	78 01 08 01 	mvhi r1,0x801                                  
 800aecc:	38 21 3a 28 	ori r1,r1,0x3a28                               
 800aed0:	34 02 00 01 	mvi r2,1                                       
 800aed4:	30 22 00 18 	sb (r1+24),r2                                  
     if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) )
      _Thread_Dispatch();                                             
 800aed8:	fb ff e9 6b 	calli 8005484 <_Thread_Dispatch>               
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 800aedc:	34 04 00 00 	mvi r4,0                                       
}                                                                     
 800aee0:	b8 80 08 00 	mv r1,r4                                       
 800aee4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800aee8:	2b 8b 00 20 	lw r11,(sp+32)                                 
 800aeec:	2b 8c 00 1c 	lw r12,(sp+28)                                 
 800aef0:	2b 8d 00 18 	lw r13,(sp+24)                                 
 800aef4:	2b 8e 00 14 	lw r14,(sp+20)                                 
 800aef8:	2b 8f 00 10 	lw r15,(sp+16)                                 
 800aefc:	2b 90 00 0c 	lw r16,(sp+12)                                 
 800af00:	2b 91 00 08 	lw r17,(sp+8)                                  
 800af04:	37 9c 00 20 	addi sp,sp,32                                  
 800af08:	c3 a0 00 00 	ret                                            
                                                                      

080084c8 <rtems_task_set_priority>: rtems_status_code rtems_task_set_priority( rtems_id id, rtems_task_priority new_priority, rtems_task_priority *old_priority ) {
 80084c8:	37 9c ff f0 	addi sp,sp,-16                                 
 80084cc:	5b 8b 00 0c 	sw (sp+12),r11                                 
 80084d0:	5b 8c 00 08 	sw (sp+8),r12                                  
 80084d4:	5b 9d 00 04 	sw (sp+4),ra                                   
 80084d8:	b8 40 58 00 	mv r11,r2                                      
 80084dc:	b8 60 60 00 	mv r12,r3                                      
  register Thread_Control *the_thread;                                
  Objects_Locations        location;                                  
                                                                      
  if ( new_priority != RTEMS_CURRENT_PRIORITY &&                      
 80084e0:	44 40 00 06 	be r2,r0,80084f8 <rtems_task_set_priority+0x30>
RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid (            
  rtems_task_priority the_priority                                    
)                                                                     
{                                                                     
  return (  ( the_priority >= RTEMS_MINIMUM_PRIORITY ) &&             
            ( the_priority <= RTEMS_MAXIMUM_PRIORITY ) );             
 80084e4:	78 02 08 01 	mvhi r2,0x801                                  
 80084e8:	38 42 90 f0 	ori r2,r2,0x90f0                               
 80084ec:	40 43 00 00 	lbu r3,(r2+0)                                  
       !_RTEMS_tasks_Priority_is_valid( new_priority ) )              
    return RTEMS_INVALID_PRIORITY;                                    
 80084f0:	34 02 00 13 	mvi r2,19                                      
)                                                                     
{                                                                     
  register Thread_Control *the_thread;                                
  Objects_Locations        location;                                  
                                                                      
  if ( new_priority != RTEMS_CURRENT_PRIORITY &&                      
 80084f4:	55 63 00 16 	bgu r11,r3,800854c <rtems_task_set_priority+0x84>
       !_RTEMS_tasks_Priority_is_valid( new_priority ) )              
    return RTEMS_INVALID_PRIORITY;                                    
                                                                      
  if ( !old_priority )                                                
    return RTEMS_INVALID_ADDRESS;                                     
 80084f8:	34 02 00 09 	mvi r2,9                                       
                                                                      
  if ( new_priority != RTEMS_CURRENT_PRIORITY &&                      
       !_RTEMS_tasks_Priority_is_valid( new_priority ) )              
    return RTEMS_INVALID_PRIORITY;                                    
                                                                      
  if ( !old_priority )                                                
 80084fc:	45 80 00 14 	be r12,r0,800854c <rtems_task_set_priority+0x84>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 8008500:	37 82 00 10 	addi r2,sp,16                                  
 8008504:	f8 00 0a d0 	calli 800b044 <_Thread_Get>                    
  switch ( location ) {                                               
 8008508:	2b 82 00 10 	lw r2,(sp+16)                                  
 800850c:	5c 40 00 0f 	bne r2,r0,8008548 <rtems_task_set_priority+0x80>
                                                                      
    case OBJECTS_LOCAL:                                               
      /* XXX need helper to "convert" from core priority */           
      *old_priority = the_thread->current_priority;                   
 8008510:	28 23 00 14 	lw r3,(r1+20)                                  
 8008514:	59 83 00 00 	sw (r12+0),r3                                  
      if ( new_priority != RTEMS_CURRENT_PRIORITY ) {                 
 8008518:	45 62 00 09 	be r11,r2,800853c <rtems_task_set_priority+0x74>
        the_thread->real_priority = new_priority;                     
        if ( the_thread->resource_count == 0 ||                       
 800851c:	28 22 00 1c 	lw r2,(r1+28)                                  
                                                                      
    case OBJECTS_LOCAL:                                               
      /* XXX need helper to "convert" from core priority */           
      *old_priority = the_thread->current_priority;                   
      if ( new_priority != RTEMS_CURRENT_PRIORITY ) {                 
        the_thread->real_priority = new_priority;                     
 8008520:	58 2b 00 18 	sw (r1+24),r11                                 
        if ( the_thread->resource_count == 0 ||                       
 8008524:	44 40 00 03 	be r2,r0,8008530 <rtems_task_set_priority+0x68>
 8008528:	28 22 00 14 	lw r2,(r1+20)                                  
 800852c:	51 62 00 04 	bgeu r11,r2,800853c <rtems_task_set_priority+0x74><== ALWAYS TAKEN
             the_thread->current_priority > new_priority )            
          _Thread_Change_priority( the_thread, new_priority, false ); 
 8008530:	b9 60 10 00 	mv r2,r11                                      
 8008534:	34 03 00 00 	mvi r3,0                                       
 8008538:	f8 00 09 85 	calli 800ab4c <_Thread_Change_priority>        
      }                                                               
      _Thread_Enable_dispatch();                                      
 800853c:	f8 00 0a b5 	calli 800b010 <_Thread_Enable_dispatch>        
      return RTEMS_SUCCESSFUL;                                        
 8008540:	34 02 00 00 	mvi r2,0                                       
 8008544:	e0 00 00 02 	bi 800854c <rtems_task_set_priority+0x84>      
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 8008548:	34 02 00 04 	mvi r2,4                                       
}                                                                     
 800854c:	b8 40 08 00 	mv r1,r2                                       
 8008550:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8008554:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8008558:	2b 8c 00 08 	lw r12,(sp+8)                                  
 800855c:	37 9c 00 10 	addi sp,sp,16                                  
 8008560:	c3 a0 00 00 	ret                                            
                                                                      

08002f1c <rtems_task_start>: rtems_status_code rtems_task_start( rtems_id id, rtems_task_entry entry_point, rtems_task_argument argument ) {
 8002f1c:	37 9c ff ec 	addi sp,sp,-20                                 
 8002f20:	5b 8b 00 10 	sw (sp+16),r11                                 
 8002f24:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8002f28:	5b 8d 00 08 	sw (sp+8),r13                                  
 8002f2c:	5b 9d 00 04 	sw (sp+4),ra                                   
  register Thread_Control *the_thread;                                
  Objects_Locations        location;                                  
                                                                      
  if ( entry_point == NULL )                                          
    return RTEMS_INVALID_ADDRESS;                                     
 8002f30:	34 04 00 09 	mvi r4,9                                       
rtems_status_code rtems_task_start(                                   
  rtems_id         	id,                                               
  rtems_task_entry 	entry_point,                                      
  rtems_task_argument	argument                                        
)                                                                     
{                                                                     
 8002f34:	b8 40 60 00 	mv r12,r2                                      
 8002f38:	b8 60 68 00 	mv r13,r3                                      
  register Thread_Control *the_thread;                                
  Objects_Locations        location;                                  
                                                                      
  if ( entry_point == NULL )                                          
 8002f3c:	44 40 00 11 	be r2,r0,8002f80 <rtems_task_start+0x64>       <== NEVER TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 8002f40:	37 82 00 14 	addi r2,sp,20                                  
 8002f44:	f8 00 09 bd 	calli 8005638 <_Thread_Get>                    
  switch ( location ) {                                               
 8002f48:	2b 8b 00 14 	lw r11,(sp+20)                                 
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 8002f4c:	34 04 00 04 	mvi r4,4                                       
                                                                      
  if ( entry_point == NULL )                                          
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
  switch ( location ) {                                               
 8002f50:	5d 60 00 0c 	bne r11,r0,8002f80 <rtems_task_start+0x64>     
                                                                      
    case OBJECTS_LOCAL:                                               
      if ( _Thread_Start(                                             
 8002f54:	34 02 00 00 	mvi r2,0                                       
 8002f58:	b9 80 18 00 	mv r3,r12                                      
 8002f5c:	34 04 00 00 	mvi r4,0                                       
 8002f60:	b9 a0 28 00 	mv r5,r13                                      
 8002f64:	f8 00 0c aa 	calli 800620c <_Thread_Start>                  
 8002f68:	44 2b 00 04 	be r1,r11,8002f78 <rtems_task_start+0x5c>      
             the_thread, THREAD_START_NUMERIC, entry_point, NULL, argument ) ) {
        _Thread_Enable_dispatch();                                    
 8002f6c:	f8 00 09 a6 	calli 8005604 <_Thread_Enable_dispatch>        
        return RTEMS_SUCCESSFUL;                                      
 8002f70:	34 04 00 00 	mvi r4,0                                       
 8002f74:	e0 00 00 03 	bi 8002f80 <rtems_task_start+0x64>             
      }                                                               
      _Thread_Enable_dispatch();                                      
 8002f78:	f8 00 09 a3 	calli 8005604 <_Thread_Enable_dispatch>        
      return RTEMS_INCORRECT_STATE;                                   
 8002f7c:	34 04 00 0e 	mvi r4,14                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 8002f80:	b8 80 08 00 	mv r1,r4                                       
 8002f84:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8002f88:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8002f8c:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8002f90:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8002f94:	37 9c 00 14 	addi sp,sp,20                                  
 8002f98:	c3 a0 00 00 	ret                                            
                                                                      

080046ec <rtems_termios_baud_to_index>: #include <rtems/termiostypes.h> int rtems_termios_baud_to_index( rtems_termios_baud_t termios_baud ) {
 80046ec:	b8 20 10 00 	mv r2,r1                                       
    case B134:      baud_index =  4;  break;                          
    case B150:      baud_index =  5;  break;                          
    case B200:      baud_index =  6;  break;                          
    case B300:      baud_index =  7;  break;                          
    case B600:      baud_index =  8;  break;                          
    case B1200:     baud_index =  9;  break;                          
 80046f0:	34 01 00 09 	mvi r1,9                                       
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
 80046f4:	44 41 00 38 	be r2,r1,80047d4 <rtems_termios_baud_to_index+0xe8>
 80046f8:	48 41 00 19 	bg r2,r1,800475c <rtems_termios_baud_to_index+0x70>
    case B0:        baud_index =  0;  break;                          
    case B50:       baud_index =  1;  break;                          
    case B75:       baud_index =  2;  break;                          
    case B110:      baud_index =  3;  break;                          
    case B134:      baud_index =  4;  break;                          
 80046fc:	34 01 00 04 	mvi r1,4                                       
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
 8004700:	44 41 00 35 	be r2,r1,80047d4 <rtems_termios_baud_to_index+0xe8>
 8004704:	48 41 00 0c 	bg r2,r1,8004734 <rtems_termios_baud_to_index+0x48>
    case B0:        baud_index =  0;  break;                          
    case B50:       baud_index =  1;  break;                          
 8004708:	34 01 00 01 	mvi r1,1                                       
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
 800470c:	44 41 00 32 	be r2,r1,80047d4 <rtems_termios_baud_to_index+0xe8>
 8004710:	48 41 00 04 	bg r2,r1,8004720 <rtems_termios_baud_to_index+0x34>
    case B0:        baud_index =  0;  break;                          
 8004714:	34 01 00 00 	mvi r1,0                                       
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
 8004718:	5c 40 00 2e 	bne r2,r0,80047d0 <rtems_termios_baud_to_index+0xe4>
 800471c:	c3 a0 00 00 	ret                                            
    case B0:        baud_index =  0;  break;                          
    case B50:       baud_index =  1;  break;                          
    case B75:       baud_index =  2;  break;                          
 8004720:	34 01 00 02 	mvi r1,2                                       
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
 8004724:	44 41 00 2c 	be r2,r1,80047d4 <rtems_termios_baud_to_index+0xe8>
    case B0:        baud_index =  0;  break;                          
    case B50:       baud_index =  1;  break;                          
    case B75:       baud_index =  2;  break;                          
    case B110:      baud_index =  3;  break;                          
 8004728:	34 01 00 03 	mvi r1,3                                       
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
 800472c:	5c 41 00 29 	bne r2,r1,80047d0 <rtems_termios_baud_to_index+0xe4><== NEVER TAKEN
 8004730:	c3 a0 00 00 	ret                                            
    case B50:       baud_index =  1;  break;                          
    case B75:       baud_index =  2;  break;                          
    case B110:      baud_index =  3;  break;                          
    case B134:      baud_index =  4;  break;                          
    case B150:      baud_index =  5;  break;                          
    case B200:      baud_index =  6;  break;                          
 8004734:	34 01 00 06 	mvi r1,6                                       
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
 8004738:	44 41 00 27 	be r2,r1,80047d4 <rtems_termios_baud_to_index+0xe8>
 800473c:	34 03 00 06 	mvi r3,6                                       
    case B0:        baud_index =  0;  break;                          
    case B50:       baud_index =  1;  break;                          
    case B75:       baud_index =  2;  break;                          
    case B110:      baud_index =  3;  break;                          
    case B134:      baud_index =  4;  break;                          
    case B150:      baud_index =  5;  break;                          
 8004740:	34 01 00 05 	mvi r1,5                                       
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
 8004744:	48 62 00 24 	bg r3,r2,80047d4 <rtems_termios_baud_to_index+0xe8>
    case B75:       baud_index =  2;  break;                          
    case B110:      baud_index =  3;  break;                          
    case B134:      baud_index =  4;  break;                          
    case B150:      baud_index =  5;  break;                          
    case B200:      baud_index =  6;  break;                          
    case B300:      baud_index =  7;  break;                          
 8004748:	34 01 00 07 	mvi r1,7                                       
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
 800474c:	44 41 00 22 	be r2,r1,80047d4 <rtems_termios_baud_to_index+0xe8>
    case B110:      baud_index =  3;  break;                          
    case B134:      baud_index =  4;  break;                          
    case B150:      baud_index =  5;  break;                          
    case B200:      baud_index =  6;  break;                          
    case B300:      baud_index =  7;  break;                          
    case B600:      baud_index =  8;  break;                          
 8004750:	34 01 00 08 	mvi r1,8                                       
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
 8004754:	5c 41 00 1f 	bne r2,r1,80047d0 <rtems_termios_baud_to_index+0xe4><== NEVER TAKEN
 8004758:	c3 a0 00 00 	ret                                            
    case B1200:     baud_index =  9;  break;                          
    case B1800:     baud_index = 10;  break;                          
    case B2400:     baud_index = 11;  break;                          
    case B4800:     baud_index = 12;  break;                          
    case B9600:     baud_index = 13;  break;                          
    case B19200:    baud_index = 14;  break;                          
 800475c:	34 01 00 0e 	mvi r1,14                                      
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
 8004760:	44 41 00 1d 	be r2,r1,80047d4 <rtems_termios_baud_to_index+0xe8>
 8004764:	48 41 00 0b 	bg r2,r1,8004790 <rtems_termios_baud_to_index+0xa4>
    case B200:      baud_index =  6;  break;                          
    case B300:      baud_index =  7;  break;                          
    case B600:      baud_index =  8;  break;                          
    case B1200:     baud_index =  9;  break;                          
    case B1800:     baud_index = 10;  break;                          
    case B2400:     baud_index = 11;  break;                          
 8004768:	34 01 00 0b 	mvi r1,11                                      
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
 800476c:	44 41 00 1a 	be r2,r1,80047d4 <rtems_termios_baud_to_index+0xe8>
 8004770:	34 03 00 0b 	mvi r3,11                                      
    case B150:      baud_index =  5;  break;                          
    case B200:      baud_index =  6;  break;                          
    case B300:      baud_index =  7;  break;                          
    case B600:      baud_index =  8;  break;                          
    case B1200:     baud_index =  9;  break;                          
    case B1800:     baud_index = 10;  break;                          
 8004774:	34 01 00 0a 	mvi r1,10                                      
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
 8004778:	48 62 00 17 	bg r3,r2,80047d4 <rtems_termios_baud_to_index+0xe8>
    case B300:      baud_index =  7;  break;                          
    case B600:      baud_index =  8;  break;                          
    case B1200:     baud_index =  9;  break;                          
    case B1800:     baud_index = 10;  break;                          
    case B2400:     baud_index = 11;  break;                          
    case B4800:     baud_index = 12;  break;                          
 800477c:	34 01 00 0c 	mvi r1,12                                      
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
 8004780:	44 41 00 15 	be r2,r1,80047d4 <rtems_termios_baud_to_index+0xe8>
    case B600:      baud_index =  8;  break;                          
    case B1200:     baud_index =  9;  break;                          
    case B1800:     baud_index = 10;  break;                          
    case B2400:     baud_index = 11;  break;                          
    case B4800:     baud_index = 12;  break;                          
    case B9600:     baud_index = 13;  break;                          
 8004784:	34 01 00 0d 	mvi r1,13                                      
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
 8004788:	5c 41 00 12 	bne r2,r1,80047d0 <rtems_termios_baud_to_index+0xe4><== NEVER TAKEN
 800478c:	c3 a0 00 00 	ret                                            
 8004790:	34 03 10 02 	mvi r3,4098                                    
    case B4800:     baud_index = 12;  break;                          
    case B9600:     baud_index = 13;  break;                          
    case B19200:    baud_index = 14;  break;                          
    case B38400:    baud_index = 15;  break;                          
    case B57600:    baud_index = 16;  break;                          
    case B115200:   baud_index = 17;  break;                          
 8004794:	34 01 00 11 	mvi r1,17                                      
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
 8004798:	44 43 00 0f 	be r2,r3,80047d4 <rtems_termios_baud_to_index+0xe8>
 800479c:	48 43 00 07 	bg r2,r3,80047b8 <rtems_termios_baud_to_index+0xcc>
    case B1800:     baud_index = 10;  break;                          
    case B2400:     baud_index = 11;  break;                          
    case B4800:     baud_index = 12;  break;                          
    case B9600:     baud_index = 13;  break;                          
    case B19200:    baud_index = 14;  break;                          
    case B38400:    baud_index = 15;  break;                          
 80047a0:	34 01 00 0f 	mvi r1,15                                      
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
 80047a4:	44 41 00 0c 	be r2,r1,80047d4 <rtems_termios_baud_to_index+0xe8>
 80047a8:	34 03 10 01 	mvi r3,4097                                    
    case B2400:     baud_index = 11;  break;                          
    case B4800:     baud_index = 12;  break;                          
    case B9600:     baud_index = 13;  break;                          
    case B19200:    baud_index = 14;  break;                          
    case B38400:    baud_index = 15;  break;                          
    case B57600:    baud_index = 16;  break;                          
 80047ac:	34 01 00 10 	mvi r1,16                                      
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
 80047b0:	5c 43 00 08 	bne r2,r3,80047d0 <rtems_termios_baud_to_index+0xe4><== NEVER TAKEN
 80047b4:	c3 a0 00 00 	ret                                            
 80047b8:	34 03 10 03 	mvi r3,4099                                    
    case B9600:     baud_index = 13;  break;                          
    case B19200:    baud_index = 14;  break;                          
    case B38400:    baud_index = 15;  break;                          
    case B57600:    baud_index = 16;  break;                          
    case B115200:   baud_index = 17;  break;                          
    case B230400:   baud_index = 18;  break;                          
 80047bc:	34 01 00 12 	mvi r1,18                                      
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
 80047c0:	44 43 00 05 	be r2,r3,80047d4 <rtems_termios_baud_to_index+0xe8>
 80047c4:	34 03 10 04 	mvi r3,4100                                    
    case B19200:    baud_index = 14;  break;                          
    case B38400:    baud_index = 15;  break;                          
    case B57600:    baud_index = 16;  break;                          
    case B115200:   baud_index = 17;  break;                          
    case B230400:   baud_index = 18;  break;                          
    case B460800:   baud_index = 19;  break;                          
 80047c8:	34 01 00 13 	mvi r1,19                                      
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
 80047cc:	44 43 00 02 	be r2,r3,80047d4 <rtems_termios_baud_to_index+0xe8><== ALWAYS TAKEN
    case B38400:    baud_index = 15;  break;                          
    case B57600:    baud_index = 16;  break;                          
    case B115200:   baud_index = 17;  break;                          
    case B230400:   baud_index = 18;  break;                          
    case B460800:   baud_index = 19;  break;                          
    default:        baud_index = -1;  break;                          
 80047d0:	34 01 ff ff 	mvi r1,-1                                      
  }                                                                   
                                                                      
  return baud_index;                                                  
}                                                                     
 80047d4:	c3 a0 00 00 	ret                                            
                                                                      

08003750 <rtems_termios_close>: } } rtems_status_code rtems_termios_close (void *arg) {
 8003750:	37 9c ff ec 	addi sp,sp,-20                                 
 8003754:	5b 8b 00 14 	sw (sp+20),r11                                 
 8003758:	5b 8c 00 10 	sw (sp+16),r12                                 
 800375c:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8003760:	5b 8e 00 08 	sw (sp+8),r14                                  
 8003764:	5b 9d 00 04 	sw (sp+4),ra                                   
 8003768:	b8 20 70 00 	mv r14,r1                                      
  rtems_libio_open_close_args_t *args = arg;                          
  struct rtems_termios_tty *tty = args->iop->data1;                   
 800376c:	28 21 00 00 	lw r1,(r1+0)                                   
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain(                                        
 8003770:	78 02 08 02 	mvhi r2,0x802                                  
 8003774:	38 42 4d 20 	ori r2,r2,0x4d20                               
                                                                      
rtems_status_code                                                     
rtems_termios_close (void *arg)                                       
{                                                                     
  rtems_libio_open_close_args_t *args = arg;                          
  struct rtems_termios_tty *tty = args->iop->data1;                   
 8003778:	28 2b 00 38 	lw r11,(r1+56)                                 
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain(                                        
 800377c:	28 41 00 00 	lw r1,(r2+0)                                   
 8003780:	34 03 00 00 	mvi r3,0                                       
 8003784:	34 02 00 00 	mvi r2,0                                       
 8003788:	f8 00 08 af 	calli 8005a44 <rtems_semaphore_obtain>         
    rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);            
  if (sc != RTEMS_SUCCESSFUL)                                         
 800378c:	5c 20 00 25 	bne r1,r0,8003820 <rtems_termios_close+0xd0>   <== NEVER TAKEN
    rtems_fatal_error_occurred (sc);                                  
  if (--tty->refcount == 0) {                                         
 8003790:	29 6d 00 08 	lw r13,(r11+8)                                 
 8003794:	35 ad ff ff 	addi r13,r13,-1                                
 8003798:	59 6d 00 08 	sw (r11+8),r13                                 
 800379c:	5d a1 00 51 	bne r13,r1,80038e0 <rtems_termios_close+0x190> <== NEVER TAKEN
    if (rtems_termios_linesw[tty->t_line].l_close != NULL) {          
 80037a0:	29 61 00 cc 	lw r1,(r11+204)                                
 80037a4:	78 0c 08 02 	mvhi r12,0x802                                 
 80037a8:	34 02 00 05 	mvi r2,5                                       
 80037ac:	39 8c 47 18 	ori r12,r12,0x4718                             
 80037b0:	fb ff f4 78 	calli 8000990 <__ashlsi3>                      
 80037b4:	b5 81 08 00 	add r1,r12,r1                                  
 80037b8:	28 2c 00 04 	lw r12,(r1+4)                                  
 80037bc:	45 8d 00 04 	be r12,r13,80037cc <rtems_termios_close+0x7c>  
      /*                                                              
       * call discipline-specific close                               
       */                                                             
      sc = rtems_termios_linesw[tty->t_line].l_close(tty);            
 80037c0:	b9 60 08 00 	mv r1,r11                                      
 80037c4:	d9 80 00 00 	call r12                                       
 80037c8:	e0 00 00 0a 	bi 80037f0 <rtems_termios_close+0xa0>          
    } else {                                                          
      /*                                                              
       * default: just flush output buffer                            
       */                                                             
      sc = rtems_semaphore_obtain(tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
 80037cc:	29 61 00 18 	lw r1,(r11+24)                                 
 80037d0:	34 02 00 00 	mvi r2,0                                       
 80037d4:	34 03 00 00 	mvi r3,0                                       
 80037d8:	f8 00 08 9b 	calli 8005a44 <rtems_semaphore_obtain>         
      if (sc != RTEMS_SUCCESSFUL) {                                   
 80037dc:	5d 81 00 11 	bne r12,r1,8003820 <rtems_termios_close+0xd0>  <== NEVER TAKEN
        rtems_fatal_error_occurred (sc);                              
      }                                                               
      drainOutput (tty);                                              
 80037e0:	b9 60 08 00 	mv r1,r11                                      
 80037e4:	fb ff fe 89 	calli 8003208 <drainOutput>                    
      rtems_semaphore_release (tty->osem);                            
 80037e8:	29 61 00 18 	lw r1,(r11+24)                                 
 80037ec:	f8 00 08 e6 	calli 8005b84 <rtems_semaphore_release>        
    }                                                                 
                                                                      
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
 80037f0:	29 62 00 b4 	lw r2,(r11+180)                                
 80037f4:	34 01 00 02 	mvi r1,2                                       
 80037f8:	5c 41 00 0b 	bne r2,r1,8003824 <rtems_termios_close+0xd4>   
      /*                                                              
       * send "terminate" to I/O tasks                                
       */                                                             
      sc = rtems_event_send( tty->rxTaskId, TERMIOS_RX_TERMINATE_EVENT );
 80037fc:	29 61 00 c4 	lw r1,(r11+196)                                
 8003800:	34 02 00 01 	mvi r2,1                                       
 8003804:	f8 00 07 44 	calli 8005514 <rtems_event_send>               
 8003808:	b8 20 60 00 	mv r12,r1                                      
      if (sc != RTEMS_SUCCESSFUL)                                     
 800380c:	5c 20 00 05 	bne r1,r0,8003820 <rtems_termios_close+0xd0>   <== NEVER TAKEN
        rtems_fatal_error_occurred (sc);                              
      sc = rtems_event_send( tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT );
 8003810:	29 61 00 c8 	lw r1,(r11+200)                                
 8003814:	34 02 00 01 	mvi r2,1                                       
 8003818:	f8 00 07 3f 	calli 8005514 <rtems_event_send>               
      if (sc != RTEMS_SUCCESSFUL)                                     
 800381c:	44 2c 00 02 	be r1,r12,8003824 <rtems_termios_close+0xd4>   <== ALWAYS TAKEN
        rtems_fatal_error_occurred (sc);                              
 8003820:	f8 00 0a ca 	calli 8006348 <rtems_fatal_error_occurred>     <== NOT EXECUTED
    }                                                                 
    if (tty->device.lastClose)                                        
 8003824:	29 64 00 9c 	lw r4,(r11+156)                                
 8003828:	44 80 00 05 	be r4,r0,800383c <rtems_termios_close+0xec>    <== ALWAYS TAKEN
       (*tty->device.lastClose)(tty->major, tty->minor, arg);         
 800382c:	29 61 00 0c 	lw r1,(r11+12)                                 <== NOT EXECUTED
 8003830:	29 62 00 10 	lw r2,(r11+16)                                 <== NOT EXECUTED
 8003834:	b9 c0 18 00 	mv r3,r14                                      <== NOT EXECUTED
 8003838:	d8 80 00 00 	call r4                                        <== NOT EXECUTED
    if (tty->forw == NULL) {                                          
 800383c:	29 62 00 00 	lw r2,(r11+0)                                  
 8003840:	29 61 00 04 	lw r1,(r11+4)                                  
 8003844:	5c 40 00 07 	bne r2,r0,8003860 <rtems_termios_close+0x110>  <== NEVER TAKEN
      rtems_termios_ttyTail = tty->back;                              
 8003848:	78 03 08 02 	mvhi r3,0x802                                  
 800384c:	38 63 4d 24 	ori r3,r3,0x4d24                               
 8003850:	58 61 00 00 	sw (r3+0),r1                                   
      if ( rtems_termios_ttyTail != NULL ) {                          
 8003854:	44 22 00 04 	be r1,r2,8003864 <rtems_termios_close+0x114>   <== ALWAYS TAKEN
        rtems_termios_ttyTail->forw = NULL;                           
 8003858:	58 20 00 00 	sw (r1+0),r0                                   <== NOT EXECUTED
 800385c:	e0 00 00 02 	bi 8003864 <rtems_termios_close+0x114>         <== NOT EXECUTED
      }                                                               
    } else {                                                          
      tty->forw->back = tty->back;                                    
 8003860:	58 41 00 04 	sw (r2+4),r1                                   <== NOT EXECUTED
    }                                                                 
                                                                      
    if (tty->back == NULL) {                                          
 8003864:	29 62 00 04 	lw r2,(r11+4)                                  
 8003868:	29 61 00 00 	lw r1,(r11+0)                                  
 800386c:	5c 40 00 07 	bne r2,r0,8003888 <rtems_termios_close+0x138>  <== NEVER TAKEN
      rtems_termios_ttyHead = tty->forw;                              
 8003870:	78 03 08 02 	mvhi r3,0x802                                  
 8003874:	38 63 4d 28 	ori r3,r3,0x4d28                               
 8003878:	58 61 00 00 	sw (r3+0),r1                                   
      if ( rtems_termios_ttyHead != NULL ) {                          
 800387c:	44 22 00 04 	be r1,r2,800388c <rtems_termios_close+0x13c>   <== ALWAYS TAKEN
        rtems_termios_ttyHead->back = NULL;                           
 8003880:	58 20 00 04 	sw (r1+4),r0                                   <== NOT EXECUTED
 8003884:	e0 00 00 02 	bi 800388c <rtems_termios_close+0x13c>         <== NOT EXECUTED
      }                                                               
    } else {                                                          
      tty->back->forw = tty->forw;                                    
 8003888:	58 41 00 00 	sw (r2+0),r1                                   <== NOT EXECUTED
    }                                                                 
                                                                      
    rtems_semaphore_delete (tty->isem);                               
 800388c:	29 61 00 14 	lw r1,(r11+20)                                 
 8003890:	f8 00 08 3e 	calli 8005988 <rtems_semaphore_delete>         
    rtems_semaphore_delete (tty->osem);                               
 8003894:	29 61 00 18 	lw r1,(r11+24)                                 
 8003898:	f8 00 08 3c 	calli 8005988 <rtems_semaphore_delete>         
    rtems_semaphore_delete (tty->rawOutBuf.Semaphore);                
 800389c:	29 61 00 8c 	lw r1,(r11+140)                                
 80038a0:	f8 00 08 3a 	calli 8005988 <rtems_semaphore_delete>         
    if ((tty->device.pollRead == NULL) ||                             
 80038a4:	29 61 00 a0 	lw r1,(r11+160)                                
 80038a8:	44 20 00 04 	be r1,r0,80038b8 <rtems_termios_close+0x168>   
 80038ac:	29 62 00 b4 	lw r2,(r11+180)                                
 80038b0:	34 01 00 02 	mvi r1,2                                       
 80038b4:	5c 41 00 03 	bne r2,r1,80038c0 <rtems_termios_close+0x170>  
        (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN))    
      rtems_semaphore_delete (tty->rawInBuf.Semaphore);               
 80038b8:	29 61 00 68 	lw r1,(r11+104)                                
 80038bc:	f8 00 08 33 	calli 8005988 <rtems_semaphore_delete>         
    free (tty->rawInBuf.theBuf);                                      
 80038c0:	29 61 00 58 	lw r1,(r11+88)                                 
 80038c4:	fb ff f9 50 	calli 8001e04 <free>                           
    free (tty->rawOutBuf.theBuf);                                     
 80038c8:	29 61 00 7c 	lw r1,(r11+124)                                
 80038cc:	fb ff f9 4e 	calli 8001e04 <free>                           
    free (tty->cbuf);                                                 
 80038d0:	29 61 00 1c 	lw r1,(r11+28)                                 
 80038d4:	fb ff f9 4c 	calli 8001e04 <free>                           
    free (tty);                                                       
 80038d8:	b9 60 08 00 	mv r1,r11                                      
 80038dc:	fb ff f9 4a 	calli 8001e04 <free>                           
  }                                                                   
  rtems_semaphore_release (rtems_termios_ttyMutex);                   
 80038e0:	78 01 08 02 	mvhi r1,0x802                                  
 80038e4:	38 21 4d 20 	ori r1,r1,0x4d20                               
 80038e8:	28 21 00 00 	lw r1,(r1+0)                                   
 80038ec:	f8 00 08 a6 	calli 8005b84 <rtems_semaphore_release>        
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 80038f0:	34 01 00 00 	mvi r1,0                                       
 80038f4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80038f8:	2b 8b 00 14 	lw r11,(sp+20)                                 
 80038fc:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8003900:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8003904:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8003908:	37 9c 00 14 	addi sp,sp,20                                  
 800390c:	c3 a0 00 00 	ret                                            
                                                                      

08004f14 <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) {
 8004f14:	37 9c ff f8 	addi sp,sp,-8                                  
 8004f18:	5b 8b 00 08 	sw (sp+8),r11                                  
 8004f1c:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_status_code sc;                                               
                                                                      
  /*                                                                  
   * sum up character count already sent                              
   */                                                                 
  tty->t_dqlen += len;                                                
 8004f20:	28 24 00 90 	lw r4,(r1+144)                                 
 8004f24:	b4 82 10 00 	add r2,r4,r2                                   
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {      
 8004f28:	28 24 00 b4 	lw r4,(r1+180)                                 
  rtems_status_code sc;                                               
                                                                      
  /*                                                                  
   * sum up character count already sent                              
   */                                                                 
  tty->t_dqlen += len;                                                
 8004f2c:	58 22 00 90 	sw (r1+144),r2                                 
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {      
 8004f30:	34 02 00 02 	mvi r2,2                                       
 8004f34:	5c 82 00 06 	bne r4,r2,8004f4c <rtems_termios_dequeue_characters+0x38>
    /*                                                                
     * send wake up to transmitter task                               
     */                                                               
    sc = rtems_event_send(tty->txTaskId, TERMIOS_TX_START_EVENT);     
 8004f38:	28 21 00 c8 	lw r1,(r1+200)                                 
    if (sc != RTEMS_SUCCESSFUL)                                       
      rtems_fatal_error_occurred (sc);                                
    return 0; /* nothing to output in IRQ... */                       
 8004f3c:	34 0b 00 00 	mvi r11,0                                      
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {      
    /*                                                                
     * send wake up to transmitter task                               
     */                                                               
    sc = rtems_event_send(tty->txTaskId, TERMIOS_TX_START_EVENT);     
 8004f40:	f8 00 01 75 	calli 8005514 <rtems_event_send>               
    if (sc != RTEMS_SUCCESSFUL)                                       
 8004f44:	44 20 00 0e 	be r1,r0,8004f7c <rtems_termios_dequeue_characters+0x68><== ALWAYS TAKEN
      rtems_fatal_error_occurred (sc);                                
 8004f48:	f8 00 05 00 	calli 8006348 <rtems_fatal_error_occurred>     <== NOT EXECUTED
    return 0; /* nothing to output in IRQ... */                       
  }                                                                   
                                                                      
  if (tty->t_line == PPPDISC ) {                                      
 8004f4c:	28 23 00 cc 	lw r3,(r1+204)                                 
 8004f50:	34 02 00 05 	mvi r2,5                                       
 8004f54:	5c 62 00 08 	bne r3,r2,8004f74 <rtems_termios_dequeue_characters+0x60>
    /*                                                                
     * call any line discipline start function                        
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_start != NULL) {          
 8004f58:	78 02 08 02 	mvhi r2,0x802                                  
 8004f5c:	38 42 47 18 	ori r2,r2,0x4718                               
 8004f60:	28 42 00 b4 	lw r2,(r2+180)                                 
      rtems_termios_linesw[tty->t_line].l_start(tty);                 
    }                                                                 
    return 0; /* nothing to output in IRQ... */                       
 8004f64:	34 0b 00 00 	mvi r11,0                                      
                                                                      
  if (tty->t_line == PPPDISC ) {                                      
    /*                                                                
     * call any line discipline start function                        
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_start != NULL) {          
 8004f68:	44 40 00 05 	be r2,r0,8004f7c <rtems_termios_dequeue_characters+0x68><== NEVER TAKEN
      rtems_termios_linesw[tty->t_line].l_start(tty);                 
 8004f6c:	d8 40 00 00 	call r2                                        
 8004f70:	e0 00 00 03 	bi 8004f7c <rtems_termios_dequeue_characters+0x68>
    }                                                                 
    return 0; /* nothing to output in IRQ... */                       
  }                                                                   
                                                                      
  return rtems_termios_refill_transmitter(tty);                       
 8004f74:	fb ff ff 4a 	calli 8004c9c <rtems_termios_refill_transmitter>
 8004f78:	b8 20 58 00 	mv r11,r1                                      
}                                                                     
 8004f7c:	b9 60 08 00 	mv r1,r11                                      
 8004f80:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004f84:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8004f88:	37 9c 00 08 	addi sp,sp,8                                   
 8004f8c:	c3 a0 00 00 	ret                                            
                                                                      

080048fc <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) {
 80048fc:	37 9c ff bc 	addi sp,sp,-68                                 
 8004900:	5b 8b 00 44 	sw (sp+68),r11                                 
 8004904:	5b 8c 00 40 	sw (sp+64),r12                                 
 8004908:	5b 8d 00 3c 	sw (sp+60),r13                                 
 800490c:	5b 8e 00 38 	sw (sp+56),r14                                 
 8004910:	5b 8f 00 34 	sw (sp+52),r15                                 
 8004914:	5b 90 00 30 	sw (sp+48),r16                                 
 8004918:	5b 91 00 2c 	sw (sp+44),r17                                 
 800491c:	5b 92 00 28 	sw (sp+40),r18                                 
 8004920:	5b 93 00 24 	sw (sp+36),r19                                 
 8004924:	5b 94 00 20 	sw (sp+32),r20                                 
 8004928:	5b 95 00 1c 	sw (sp+28),r21                                 
 800492c:	5b 96 00 18 	sw (sp+24),r22                                 
 8004930:	5b 97 00 14 	sw (sp+20),r23                                 
 8004934:	5b 98 00 10 	sw (sp+16),r24                                 
 8004938:	5b 99 00 0c 	sw (sp+12),r25                                 
 800493c:	5b 9b 00 08 	sw (sp+8),fp                                   
 8004940:	5b 9d 00 04 	sw (sp+4),ra                                   
 8004944:	b8 20 58 00 	mv r11,r1                                      
  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) {             
 8004948:	28 21 00 cc 	lw r1,(r1+204)                                 
 *       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) 
{                                                                     
 800494c:	b8 40 68 00 	mv r13,r2                                      
  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) {             
 8004950:	78 0c 08 02 	mvhi r12,0x802                                 
 8004954:	34 02 00 05 	mvi r2,5                                       
 *       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) 
{                                                                     
 8004958:	b8 60 78 00 	mv r15,r3                                      
  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) {             
 800495c:	39 8c 47 18 	ori r12,r12,0x4718                             
 8004960:	fb ff f0 0c 	calli 8000990 <__ashlsi3>                      
 8004964:	b5 81 08 00 	add r1,r12,r1                                  
 8004968:	28 21 00 10 	lw r1,(r1+16)                                  
 800496c:	b9 e0 70 00 	mv r14,r15                                     
 8004970:	5c 20 00 17 	bne r1,r0,80049cc <rtems_termios_enqueue_raw_characters+0xd0>
 8004974:	34 12 00 00 	mvi r18,0                                      
 8004978:	34 0c 00 00 	mvi r12,0                                      
        flow_rcv = true;                                              
      }                                                               
    }                                                                 
    if (flow_rcv) {                                                   
      /* restart output according to FL_ORCVXOF flag */               
      if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) {   
 800497c:	34 1b 00 20 	mvi fp,32                                      
        /* disable interrupts    */                                   
        rtems_interrupt_disable(level);                               
 8004980:	34 11 ff fe 	mvi r17,-2                                     
        tty->flow_ctrl &= ~FL_OSTOP;                                  
 8004984:	34 19 ff df 	mvi r25,-33                                    
                                                                      
        /*                                                            
         * 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); 
 8004988:	35 78 00 30 	addi r24,r11,48                                
      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))                
 800498c:	34 17 04 00 	mvi r23,1024                                   
            /*    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) ) {
 8004990:	34 16 01 00 	mvi r22,256                                    
          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,                          
 8004994:	35 75 00 4a 	addi r21,r11,74                                
        flow_rcv = true;                                              
      }                                                               
      else if (c == tty->termios.c_cc[VSTART]) {                      
        /* VSTART received */                                         
        /* restart output  */                                         
        tty->flow_ctrl &= ~FL_ORCVXOF;                                
 8004998:	34 14 ff ef 	mvi r20,-17                                    
 800499c:	e0 00 00 87 	bi 8004bb8 <rtems_termios_enqueue_raw_characters+0x2bc>
  rtems_interrupt_level level;                                        
                                                                      
  if (rtems_termios_linesw[tty->t_line].l_rint != NULL) {             
    while (len--) {                                                   
      c = *buf++;                                                     
      rtems_termios_linesw[tty->t_line].l_rint(c,tty);                
 80049a0:	29 61 00 cc 	lw r1,(r11+204)                                
 80049a4:	34 02 00 05 	mvi r2,5                                       
  bool flow_rcv = false; /* true, if flow control char received */    
  rtems_interrupt_level level;                                        
                                                                      
  if (rtems_termios_linesw[tty->t_line].l_rint != NULL) {             
    while (len--) {                                                   
      c = *buf++;                                                     
 80049a8:	41 af 00 00 	lbu r15,(r13+0)                                
      rtems_termios_linesw[tty->t_line].l_rint(c,tty);                
 80049ac:	fb ff ef f9 	calli 8000990 <__ashlsi3>                      
 80049b0:	b5 81 10 00 	add r2,r12,r1                                  
 80049b4:	28 43 00 10 	lw r3,(r2+16)                                  
 80049b8:	b9 e0 08 00 	mv r1,r15                                      
 80049bc:	b9 60 10 00 	mv r2,r11                                      
  bool flow_rcv = false; /* true, if flow control char received */    
  rtems_interrupt_level level;                                        
                                                                      
  if (rtems_termios_linesw[tty->t_line].l_rint != NULL) {             
    while (len--) {                                                   
      c = *buf++;                                                     
 80049c0:	35 ad 00 01 	addi r13,r13,1                                 
      rtems_termios_linesw[tty->t_line].l_rint(c,tty);                
 80049c4:	d8 60 00 00 	call r3                                        
 80049c8:	35 ce ff ff 	addi r14,r14,-1                                
  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--) {                                                   
 80049cc:	5d c0 ff f5 	bne r14,r0,80049a0 <rtems_termios_enqueue_raw_characters+0xa4>
    }                                                                 
                                                                      
    /*                                                                
     * check to see if rcv wakeup callback was set                    
     */                                                               
    if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 
 80049d0:	29 61 00 e4 	lw r1,(r11+228)                                
      (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg);     
      tty->tty_rcvwakeup = 1;                                         
        }                                                             
    return 0;                                                         
 80049d4:	34 0c 00 00 	mvi r12,0                                      
    }                                                                 
                                                                      
    /*                                                                
     * check to see if rcv wakeup callback was set                    
     */                                                               
    if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 
 80049d8:	5c 2c 00 7e 	bne r1,r12,8004bd0 <rtems_termios_enqueue_raw_characters+0x2d4><== NEVER TAKEN
 80049dc:	29 63 00 dc 	lw r3,(r11+220)                                
      (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg);     
      tty->tty_rcvwakeup = 1;                                         
        }                                                             
    return 0;                                                         
 80049e0:	b9 c0 60 00 	mv r12,r14                                     
    }                                                                 
                                                                      
    /*                                                                
     * check to see if rcv wakeup callback was set                    
     */                                                               
    if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 
 80049e4:	44 60 00 7b 	be r3,r0,8004bd0 <rtems_termios_enqueue_raw_characters+0x2d4><== NEVER TAKEN
      (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg);     
 80049e8:	29 62 00 e0 	lw r2,(r11+224)                                
 80049ec:	35 61 00 30 	addi r1,r11,48                                 
 80049f0:	d8 60 00 00 	call r3                                        
      tty->tty_rcvwakeup = 1;                                         
 80049f4:	34 01 00 01 	mvi r1,1                                       
 80049f8:	59 61 00 e4 	sw (r11+228),r1                                
 80049fc:	e0 00 00 75 	bi 8004bd0 <rtems_termios_enqueue_raw_characters+0x2d4>
                                                                      
  while (len--) {                                                     
    c = *buf++;                                                       
    /* FIXME: implement IXANY: any character restarts output */       
    /* if incoming XON/XOFF controls outgoing stream: */              
    if (tty->flow_ctrl & FL_MDXON) {                                  
 8004a00:	29 61 00 b8 	lw r1,(r11+184)                                
        }                                                             
    return 0;                                                         
  }                                                                   
                                                                      
  while (len--) {                                                     
    c = *buf++;                                                       
 8004a04:	41 b0 00 00 	lbu r16,(r13+0)                                
 8004a08:	35 ad 00 01 	addi r13,r13,1                                 
    /* FIXME: implement IXANY: any character restarts output */       
    /* if incoming XON/XOFF controls outgoing stream: */              
    if (tty->flow_ctrl & FL_MDXON) {                                  
 8004a0c:	20 21 02 00 	andi r1,r1,0x200                               
 8004a10:	44 20 00 11 	be r1,r0,8004a54 <rtems_termios_enqueue_raw_characters+0x158>
      /* if received char is V_STOP and V_START (both are equal value) */
      if (c == tty->termios.c_cc[VSTOP]) {                            
 8004a14:	41 64 00 4a 	lbu r4,(r11+74)                                
 8004a18:	41 63 00 49 	lbu r3,(r11+73)                                
 8004a1c:	5c 90 00 0a 	bne r4,r16,8004a44 <rtems_termios_enqueue_raw_characters+0x148>
        if (c == tty->termios.c_cc[VSTART]) {                         
 8004a20:	5c 64 00 04 	bne r3,r4,8004a30 <rtems_termios_enqueue_raw_characters+0x134><== ALWAYS TAKEN
          /* received VSTOP and VSTART==VSTOP? */                     
          /* then toggle "stop output" status  */                     
          tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF;               
 8004a24:	29 61 00 b8 	lw r1,(r11+184)                                <== NOT EXECUTED
 8004a28:	18 21 00 10 	xori r1,r1,0x10                                <== NOT EXECUTED
 8004a2c:	e0 00 00 03 	bi 8004a38 <rtems_termios_enqueue_raw_characters+0x13c><== NOT EXECUTED
        }                                                             
        else {                                                        
          /* VSTOP received (other code than VSTART) */               
          /* stop output                             */               
          tty->flow_ctrl |= FL_ORCVXOF;                               
 8004a30:	29 61 00 b8 	lw r1,(r11+184)                                
 8004a34:	38 21 00 10 	ori r1,r1,0x10                                 
 8004a38:	59 61 00 b8 	sw (r11+184),r1                                
 *       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) 
{                                                                     
 8004a3c:	34 12 00 01 	mvi r18,1                                      
 8004a40:	e0 00 00 06 	bi 8004a58 <rtems_termios_enqueue_raw_characters+0x15c>
          /* stop output                             */               
          tty->flow_ctrl |= FL_ORCVXOF;                               
        }                                                             
        flow_rcv = true;                                              
      }                                                               
      else if (c == tty->termios.c_cc[VSTART]) {                      
 8004a44:	5c 70 00 04 	bne r3,r16,8004a54 <rtems_termios_enqueue_raw_characters+0x158><== ALWAYS TAKEN
        /* VSTART received */                                         
        /* restart output  */                                         
        tty->flow_ctrl &= ~FL_ORCVXOF;                                
 8004a48:	29 61 00 b8 	lw r1,(r11+184)                                <== NOT EXECUTED
 8004a4c:	a0 34 08 00 	and r1,r1,r20                                  <== NOT EXECUTED
 8004a50:	e3 ff ff fa 	bi 8004a38 <rtems_termios_enqueue_raw_characters+0x13c><== NOT EXECUTED
        flow_rcv = true;                                              
      }                                                               
    }                                                                 
    if (flow_rcv) {                                                   
 8004a54:	46 40 00 15 	be r18,r0,8004aa8 <rtems_termios_enqueue_raw_characters+0x1ac><== ALWAYS TAKEN
      /* restart output according to FL_ORCVXOF flag */               
      if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) {   
 8004a58:	29 61 00 b8 	lw r1,(r11+184)                                
 8004a5c:	20 21 00 30 	andi r1,r1,0x30                                
 8004a60:	5c 3b 00 55 	bne r1,fp,8004bb4 <rtems_termios_enqueue_raw_characters+0x2b8><== ALWAYS TAKEN
        /* disable interrupts    */                                   
        rtems_interrupt_disable(level);                               
 8004a64:	90 00 70 00 	rcsr r14,IE                                    <== NOT EXECUTED
 8004a68:	a1 d1 08 00 	and r1,r14,r17                                 <== NOT EXECUTED
 8004a6c:	d0 01 00 00 	wcsr IE,r1                                     <== NOT EXECUTED
        tty->flow_ctrl &= ~FL_OSTOP;                                  
 8004a70:	29 61 00 b8 	lw r1,(r11+184)                                <== NOT EXECUTED
 8004a74:	a0 39 08 00 	and r1,r1,r25                                  <== NOT EXECUTED
 8004a78:	59 61 00 b8 	sw (r11+184),r1                                <== NOT EXECUTED
        /* check for chars in output buffer (or rob_state?) */        
        if (tty->rawOutBufState != rob_idle) {                        
 8004a7c:	29 61 00 94 	lw r1,(r11+148)                                <== NOT EXECUTED
 8004a80:	44 20 00 08 	be r1,r0,8004aa0 <rtems_termios_enqueue_raw_characters+0x1a4><== NOT EXECUTED
          /* if chars available, call write function... */            
          (*tty->device.write)(                                       
            tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1);
 8004a84:	29 63 00 84 	lw r3,(r11+132)                                <== 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)(                                       
 8004a88:	29 62 00 7c 	lw r2,(r11+124)                                <== NOT EXECUTED
 8004a8c:	29 64 00 a4 	lw r4,(r11+164)                                <== NOT EXECUTED
 8004a90:	29 61 00 10 	lw r1,(r11+16)                                 <== NOT EXECUTED
 8004a94:	b4 43 10 00 	add r2,r2,r3                                   <== NOT EXECUTED
 8004a98:	34 03 00 01 	mvi r3,1                                       <== NOT EXECUTED
 8004a9c:	d8 80 00 00 	call r4                                        <== NOT EXECUTED
            tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1);
        }                                                             
        /* reenable interrupts */                                     
        rtems_interrupt_enable(level);                                
 8004aa0:	d0 0e 00 00 	wcsr IE,r14                                    <== NOT EXECUTED
 8004aa4:	e0 00 00 44 	bi 8004bb4 <rtems_termios_enqueue_raw_characters+0x2b8><== NOT EXECUTED
      }                                                               
    } else {                                                          
      newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size;        
 8004aa8:	29 63 00 60 	lw r3,(r11+96)                                 
 8004aac:	29 62 00 64 	lw r2,(r11+100)                                
 8004ab0:	34 61 00 01 	addi r1,r3,1                                   
 8004ab4:	f8 00 71 71 	calli 8021078 <__umodsi3>                      
 8004ab8:	b8 20 70 00 	mv r14,r1                                      
      /* if chars_in_buffer > highwater                */             
      rtems_interrupt_disable(level);                                 
 8004abc:	90 00 98 00 	rcsr r19,IE                                    
 8004ac0:	a2 71 08 00 	and r1,r19,r17                                 
 8004ac4:	d0 01 00 00 	wcsr IE,r1                                     
      if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size)       
 8004ac8:	29 61 00 5c 	lw r1,(r11+92)                                 
 8004acc:	29 63 00 64 	lw r3,(r11+100)                                
            % tty->rawInBuf.Size) > tty->highwater) &&                
 8004ad0:	29 62 00 64 	lw r2,(r11+100)                                
      }                                                               
    } 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)       
 8004ad4:	c8 61 18 00 	sub r3,r3,r1                                   
            % tty->rawInBuf.Size) > tty->highwater) &&                
 8004ad8:	b4 6e 08 00 	add r1,r3,r14                                  
 8004adc:	f8 00 71 67 	calli 8021078 <__umodsi3>                      
      }                                                               
    } 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)       
 8004ae0:	29 62 00 c0 	lw r2,(r11+192)                                
 8004ae4:	50 41 00 22 	bgeu r2,r1,8004b6c <rtems_termios_enqueue_raw_characters+0x270><== ALWAYS TAKEN
            % tty->rawInBuf.Size) > tty->highwater) &&                
          !(tty->flow_ctrl & FL_IREQXOF)) {                           
 8004ae8:	29 61 00 b8 	lw r1,(r11+184)                                <== NOT EXECUTED
 8004aec:	20 21 00 01 	andi r1,r1,0x1                                 <== 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) &&                
 8004af0:	5c 20 00 1f 	bne r1,r0,8004b6c <rtems_termios_enqueue_raw_characters+0x270><== NOT EXECUTED
          !(tty->flow_ctrl & FL_IREQXOF)) {                           
        /* incoming data stream should be stopped */                  
        tty->flow_ctrl |= FL_IREQXOF;                                 
 8004af4:	29 61 00 b8 	lw r1,(r11+184)                                <== NOT EXECUTED
 8004af8:	38 21 00 01 	ori r1,r1,0x1                                  <== NOT EXECUTED
 8004afc:	59 61 00 b8 	sw (r11+184),r1                                <== NOT EXECUTED
        if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF))                
 8004b00:	29 61 00 b8 	lw r1,(r11+184)                                <== NOT EXECUTED
 8004b04:	20 21 04 02 	andi r1,r1,0x402                               <== NOT EXECUTED
 8004b08:	5c 37 00 0f 	bne r1,r23,8004b44 <rtems_termios_enqueue_raw_characters+0x248><== NOT EXECUTED
            ==                (FL_MDXOF             ) ) {             
          if ((tty->flow_ctrl & FL_OSTOP) ||                          
 8004b0c:	29 63 00 b8 	lw r3,(r11+184)                                <== NOT EXECUTED
 8004b10:	20 63 00 20 	andi r3,r3,0x20                                <== NOT EXECUTED
 8004b14:	5c 60 00 03 	bne r3,r0,8004b20 <rtems_termios_enqueue_raw_characters+0x224><== NOT EXECUTED
 8004b18:	29 61 00 94 	lw r1,(r11+148)                                <== NOT EXECUTED
 8004b1c:	5c 23 00 14 	bne r1,r3,8004b6c <rtems_termios_enqueue_raw_characters+0x270><== 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;                             
 8004b20:	29 61 00 b8 	lw r1,(r11+184)                                <== NOT EXECUTED
            (*tty->device.write)(tty->minor,                          
 8004b24:	29 64 00 a4 	lw r4,(r11+164)                                <== NOT EXECUTED
 8004b28:	ba a0 10 00 	mv r2,r21                                      <== 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;                             
 8004b2c:	38 21 00 02 	ori r1,r1,0x2                                  <== NOT EXECUTED
 8004b30:	59 61 00 b8 	sw (r11+184),r1                                <== NOT EXECUTED
            (*tty->device.write)(tty->minor,                          
 8004b34:	29 61 00 10 	lw r1,(r11+16)                                 <== NOT EXECUTED
 8004b38:	34 03 00 01 	mvi r3,1                                       <== NOT EXECUTED
 8004b3c:	d8 80 00 00 	call r4                                        <== NOT EXECUTED
 8004b40:	e0 00 00 0b 	bi 8004b6c <rtems_termios_enqueue_raw_characters+0x270><== NOT EXECUTED
                (void *)&(tty->termios.c_cc[VSTOP]), 1);              
          }                                                           
        } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS) ) {
 8004b44:	29 61 00 b8 	lw r1,(r11+184)                                <== NOT EXECUTED
 8004b48:	20 21 01 04 	andi r1,r1,0x104                               <== NOT EXECUTED
 8004b4c:	5c 36 00 08 	bne r1,r22,8004b6c <rtems_termios_enqueue_raw_characters+0x270><== NOT EXECUTED
          tty->flow_ctrl |= FL_IRTSOFF;                               
 8004b50:	29 61 00 b8 	lw r1,(r11+184)                                <== NOT EXECUTED
          /* deactivate RTS line */                                   
          if (tty->device.stopRemoteTx != NULL) {                     
 8004b54:	29 63 00 ac 	lw r3,(r11+172)                                <== 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;                               
 8004b58:	38 21 00 04 	ori r1,r1,0x4                                  <== NOT EXECUTED
 8004b5c:	59 61 00 b8 	sw (r11+184),r1                                <== NOT EXECUTED
          /* deactivate RTS line */                                   
          if (tty->device.stopRemoteTx != NULL) {                     
 8004b60:	44 60 00 03 	be r3,r0,8004b6c <rtems_termios_enqueue_raw_characters+0x270><== NOT EXECUTED
            tty->device.stopRemoteTx(tty->minor);                     
 8004b64:	29 61 00 10 	lw r1,(r11+16)                                 <== NOT EXECUTED
 8004b68:	d8 60 00 00 	call r3                                        <== NOT EXECUTED
          }                                                           
        }                                                             
      }                                                               
                                                                      
      /* reenable interrupts */                                       
      rtems_interrupt_enable(level);                                  
 8004b6c:	d0 13 00 00 	wcsr IE,r19                                    
                                                                      
      if (newTail == tty->rawInBuf.Head) {                            
 8004b70:	29 61 00 5c 	lw r1,(r11+92)                                 
 8004b74:	5d c1 00 03 	bne r14,r1,8004b80 <rtems_termios_enqueue_raw_characters+0x284><== ALWAYS TAKEN
        dropped++;                                                    
 8004b78:	35 8c 00 01 	addi r12,r12,1                                 <== NOT EXECUTED
 8004b7c:	e0 00 00 0e 	bi 8004bb4 <rtems_termios_enqueue_raw_characters+0x2b8><== NOT EXECUTED
      } else {                                                        
        tty->rawInBuf.theBuf[newTail] = c;                            
 8004b80:	29 61 00 58 	lw r1,(r11+88)                                 
 8004b84:	b4 2e 08 00 	add r1,r1,r14                                  
 8004b88:	30 30 00 00 	sb (r1+0),r16                                  
        tty->rawInBuf.Tail = newTail;                                 
                                                                      
        /*                                                            
         * check to see if rcv wakeup callback was set                
         */                                                           
        if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) {
 8004b8c:	29 64 00 e4 	lw r4,(r11+228)                                
                                                                      
      if (newTail == tty->rawInBuf.Head) {                            
        dropped++;                                                    
      } else {                                                        
        tty->rawInBuf.theBuf[newTail] = c;                            
        tty->rawInBuf.Tail = newTail;                                 
 8004b90:	59 6e 00 60 	sw (r11+96),r14                                
                                                                      
        /*                                                            
         * check to see if rcv wakeup callback was set                
         */                                                           
        if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) {
 8004b94:	5c 80 00 08 	bne r4,r0,8004bb4 <rtems_termios_enqueue_raw_characters+0x2b8><== NEVER TAKEN
 8004b98:	29 63 00 dc 	lw r3,(r11+220)                                
 8004b9c:	44 64 00 06 	be r3,r4,8004bb4 <rtems_termios_enqueue_raw_characters+0x2b8><== ALWAYS TAKEN
          (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 
 8004ba0:	29 62 00 e0 	lw r2,(r11+224)                                <== NOT EXECUTED
 8004ba4:	bb 00 08 00 	mv r1,r24                                      <== NOT EXECUTED
 8004ba8:	d8 60 00 00 	call r3                                        <== NOT EXECUTED
          tty->tty_rcvwakeup = 1;                                     
 8004bac:	34 01 00 01 	mvi r1,1                                       <== NOT EXECUTED
 8004bb0:	59 61 00 e4 	sw (r11+228),r1                                <== NOT EXECUTED
 8004bb4:	35 ef ff ff 	addi r15,r15,-1                                
      tty->tty_rcvwakeup = 1;                                         
        }                                                             
    return 0;                                                         
  }                                                                   
                                                                      
  while (len--) {                                                     
 8004bb8:	5d e0 ff 92 	bne r15,r0,8004a00 <rtems_termios_enqueue_raw_characters+0x104>
        }                                                             
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  tty->rawInBufDropped += dropped;                                    
 8004bbc:	29 61 00 78 	lw r1,(r11+120)                                
 8004bc0:	b4 2c 08 00 	add r1,r1,r12                                  
 8004bc4:	59 61 00 78 	sw (r11+120),r1                                
  rtems_semaphore_release (tty->rawInBuf.Semaphore);                  
 8004bc8:	29 61 00 68 	lw r1,(r11+104)                                
 8004bcc:	f8 00 03 ee 	calli 8005b84 <rtems_semaphore_release>        
  return dropped;                                                     
}                                                                     
 8004bd0:	b9 80 08 00 	mv r1,r12                                      
 8004bd4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004bd8:	2b 8b 00 44 	lw r11,(sp+68)                                 
 8004bdc:	2b 8c 00 40 	lw r12,(sp+64)                                 
 8004be0:	2b 8d 00 3c 	lw r13,(sp+60)                                 
 8004be4:	2b 8e 00 38 	lw r14,(sp+56)                                 
 8004be8:	2b 8f 00 34 	lw r15,(sp+52)                                 
 8004bec:	2b 90 00 30 	lw r16,(sp+48)                                 
 8004bf0:	2b 91 00 2c 	lw r17,(sp+44)                                 
 8004bf4:	2b 92 00 28 	lw r18,(sp+40)                                 
 8004bf8:	2b 93 00 24 	lw r19,(sp+36)                                 
 8004bfc:	2b 94 00 20 	lw r20,(sp+32)                                 
 8004c00:	2b 95 00 1c 	lw r21,(sp+28)                                 
 8004c04:	2b 96 00 18 	lw r22,(sp+24)                                 
 8004c08:	2b 97 00 14 	lw r23,(sp+20)                                 
 8004c0c:	2b 98 00 10 	lw r24,(sp+16)                                 
 8004c10:	2b 99 00 0c 	lw r25,(sp+12)                                 
 8004c14:	2b 9b 00 08 	lw fp,(sp+8)                                   
 8004c18:	37 9c 00 44 	addi sp,sp,68                                  
 8004c1c:	c3 a0 00 00 	ret                                            
                                                                      

080031b8 <rtems_termios_initialize>: struct rtems_termios_tty *rtems_termios_ttyTail; rtems_id rtems_termios_ttyMutex; void rtems_termios_initialize (void) {
 80031b8:	37 9c ff f8 	addi sp,sp,-8                                  
 80031bc:	5b 8b 00 08 	sw (sp+8),r11                                  
 80031c0:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_status_code sc;                                               
                                                                      
  /*                                                                  
   * Create the mutex semaphore for the tty list                      
   */                                                                 
  if (!rtems_termios_ttyMutex) {                                      
 80031c4:	78 05 08 02 	mvhi r5,0x802                                  
 80031c8:	38 a5 4d 20 	ori r5,r5,0x4d20                               
 80031cc:	28 ab 00 00 	lw r11,(r5+0)                                  
 80031d0:	5d 60 00 0a 	bne r11,r0,80031f8 <rtems_termios_initialize+0x40><== NEVER TAKEN
    sc = rtems_semaphore_create (                                     
 80031d4:	78 02 08 02 	mvhi r2,0x802                                  
 80031d8:	38 42 25 88 	ori r2,r2,0x2588                               
 80031dc:	28 41 00 00 	lw r1,(r2+0)                                   
 80031e0:	34 03 00 54 	mvi r3,84                                      
 80031e4:	34 02 00 01 	mvi r2,1                                       
 80031e8:	34 04 00 00 	mvi r4,0                                       
 80031ec:	f8 00 09 6a 	calli 8005794 <rtems_semaphore_create>         
      rtems_build_name ('T', 'R', 'm', 'i'),                          
      1,                                                              
      RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY,
      RTEMS_NO_PRIORITY,                                              
      &rtems_termios_ttyMutex);                                       
    if (sc != RTEMS_SUCCESSFUL)                                       
 80031f0:	44 2b 00 02 	be r1,r11,80031f8 <rtems_termios_initialize+0x40><== ALWAYS TAKEN
      rtems_fatal_error_occurred (sc);                                
 80031f4:	f8 00 0c 55 	calli 8006348 <rtems_fatal_error_occurred>     <== NOT EXECUTED
  }                                                                   
}                                                                     
 80031f8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80031fc:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8003200:	37 9c 00 08 	addi sp,sp,8                                   
 8003204:	c3 a0 00 00 	ret                                            
                                                                      

0800393c <rtems_termios_ioctl>: } } rtems_status_code rtems_termios_ioctl (void *arg) {
 800393c:	37 9c ff e8 	addi sp,sp,-24                                 
 8003940:	5b 8b 00 18 	sw (sp+24),r11                                 
 8003944:	5b 8c 00 14 	sw (sp+20),r12                                 
 8003948:	5b 8d 00 10 	sw (sp+16),r13                                 
 800394c:	5b 8e 00 0c 	sw (sp+12),r14                                 
 8003950:	5b 8f 00 08 	sw (sp+8),r15                                  
 8003954:	5b 9d 00 04 	sw (sp+4),ra                                   
 8003958:	b8 20 60 00 	mv r12,r1                                      
  rtems_libio_ioctl_args_t *args = arg;                               
  struct rtems_termios_tty *tty = args->iop->data1;                   
 800395c:	28 21 00 00 	lw r1,(r1+0)                                   
  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);
 8003960:	34 02 00 00 	mvi r2,0                                       
 8003964:	34 03 00 00 	mvi r3,0                                       
                                                                      
rtems_status_code                                                     
rtems_termios_ioctl (void *arg)                                       
{                                                                     
  rtems_libio_ioctl_args_t *args = arg;                               
  struct rtems_termios_tty *tty = args->iop->data1;                   
 8003968:	28 2b 00 38 	lw r11,(r1+56)                                 
  struct ttywakeup         *wakeup = (struct ttywakeup *)args->buffer;
  rtems_status_code sc;                                               
                                                                      
   args->ioctl_return = 0;                                            
 800396c:	59 80 00 0c 	sw (r12+12),r0                                 
rtems_status_code                                                     
rtems_termios_ioctl (void *arg)                                       
{                                                                     
  rtems_libio_ioctl_args_t *args = arg;                               
  struct rtems_termios_tty *tty = args->iop->data1;                   
  struct ttywakeup         *wakeup = (struct ttywakeup *)args->buffer;
 8003970:	29 8e 00 08 	lw r14,(r12+8)                                 
  rtems_status_code sc;                                               
                                                                      
   args->ioctl_return = 0;                                            
  sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
 8003974:	29 61 00 18 	lw r1,(r11+24)                                 
 8003978:	f8 00 08 33 	calli 8005a44 <rtems_semaphore_obtain>         
 800397c:	b8 20 68 00 	mv r13,r1                                      
  if (sc != RTEMS_SUCCESSFUL) {                                       
 8003980:	5c 20 00 da 	bne r1,r0,8003ce8 <rtems_termios_ioctl+0x3ac>  <== NEVER TAKEN
    args->ioctl_return = sc;                                          
    return sc;                                                        
  }                                                                   
  switch (args->command) {                                            
 8003984:	29 82 00 04 	lw r2,(r12+4)                                  
 8003988:	34 01 00 04 	mvi r1,4                                       
 800398c:	44 41 00 a6 	be r2,r1,8003c24 <rtems_termios_ioctl+0x2e8>   
 8003990:	54 41 00 07 	bgu r2,r1,80039ac <rtems_termios_ioctl+0x70>   
 8003994:	34 01 00 02 	mvi r1,2                                       
 8003998:	44 41 00 27 	be r2,r1,8003a34 <rtems_termios_ioctl+0xf8>    
 800399c:	54 41 00 9a 	bgu r2,r1,8003c04 <rtems_termios_ioctl+0x2c8>  
 80039a0:	34 01 00 01 	mvi r1,1                                       
 80039a4:	5c 41 00 12 	bne r2,r1,80039ec <rtems_termios_ioctl+0xb0>   <== NEVER TAKEN
 80039a8:	e0 00 00 1e 	bi 8003a20 <rtems_termios_ioctl+0xe4>          
 80039ac:	78 03 08 02 	mvhi r3,0x802                                  
 80039b0:	38 63 25 a4 	ori r3,r3,0x25a4                               
 80039b4:	28 61 00 00 	lw r1,(r3+0)                                   
 80039b8:	44 41 00 be 	be r2,r1,8003cb0 <rtems_termios_ioctl+0x374>   <== NEVER TAKEN
 80039bc:	54 41 00 04 	bgu r2,r1,80039cc <rtems_termios_ioctl+0x90>   
 80039c0:	34 01 00 05 	mvi r1,5                                       
 80039c4:	5c 41 00 0a 	bne r2,r1,80039ec <rtems_termios_ioctl+0xb0>   
 80039c8:	e0 00 00 92 	bi 8003c10 <rtems_termios_ioctl+0x2d4>         
 80039cc:	78 03 08 02 	mvhi r3,0x802                                  
 80039d0:	38 63 25 a8 	ori r3,r3,0x25a8                               
 80039d4:	28 61 00 00 	lw r1,(r3+0)                                   
 80039d8:	44 41 00 b2 	be r2,r1,8003ca0 <rtems_termios_ioctl+0x364>   
 80039dc:	78 03 08 02 	mvhi r3,0x802                                  
 80039e0:	38 63 25 ac 	ori r3,r3,0x25ac                               
 80039e4:	28 61 00 00 	lw r1,(r3+0)                                   
 80039e8:	44 41 00 94 	be r2,r1,8003c38 <rtems_termios_ioctl+0x2fc>   <== ALWAYS TAKEN
  default:                                                            
    if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) {          
 80039ec:	29 61 00 cc 	lw r1,(r11+204)                                
 80039f0:	78 0d 08 02 	mvhi r13,0x802                                 
 80039f4:	34 02 00 05 	mvi r2,5                                       
 80039f8:	39 ad 47 18 	ori r13,r13,0x4718                             
 80039fc:	fb ff f3 e5 	calli 8000990 <__ashlsi3>                      
 8003a00:	b5 a1 08 00 	add r1,r13,r1                                  
 8003a04:	28 23 00 18 	lw r3,(r1+24)                                  
      sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args);       
    }                                                                 
    else {                                                            
      sc = RTEMS_INVALID_NUMBER;                                      
 8003a08:	34 0d 00 0a 	mvi r13,10                                     
    args->ioctl_return = sc;                                          
    return sc;                                                        
  }                                                                   
  switch (args->command) {                                            
  default:                                                            
    if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) {          
 8003a0c:	44 60 00 b5 	be r3,r0,8003ce0 <rtems_termios_ioctl+0x3a4>   <== NEVER TAKEN
      sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args);       
 8003a10:	b9 60 08 00 	mv r1,r11                                      
 8003a14:	b9 80 10 00 	mv r2,r12                                      
 8003a18:	d8 60 00 00 	call r3                                        
 8003a1c:	e0 00 00 9f 	bi 8003c98 <rtems_termios_ioctl+0x35c>         
      sc = RTEMS_INVALID_NUMBER;                                      
    }                                                                 
    break;                                                            
                                                                      
  case RTEMS_IO_GET_ATTRIBUTES:                                       
    *(struct termios *)args->buffer = tty->termios;                   
 8003a20:	29 81 00 08 	lw r1,(r12+8)                                  
 8003a24:	35 62 00 30 	addi r2,r11,48                                 
 8003a28:	34 03 00 24 	mvi r3,36                                      
 8003a2c:	f8 00 32 57 	calli 8010388 <memcpy>                         
    break;                                                            
 8003a30:	e0 00 00 ac 	bi 8003ce0 <rtems_termios_ioctl+0x3a4>         
                                                                      
  case RTEMS_IO_SET_ATTRIBUTES:                                       
    tty->termios = *(struct termios *)args->buffer;                   
 8003a34:	29 82 00 08 	lw r2,(r12+8)                                  
 8003a38:	35 61 00 30 	addi r1,r11,48                                 
 8003a3c:	34 03 00 24 	mvi r3,36                                      
 8003a40:	f8 00 32 52 	calli 8010388 <memcpy>                         
  /*                                                                  
   * check for flow control options to be switched off                
   */                                                                 
                                                                      
  /* check for outgoing XON/XOFF flow control switched off */         
  if (( tty->flow_ctrl & FL_MDXON) &&                                 
 8003a44:	29 61 00 b8 	lw r1,(r11+184)                                
 8003a48:	20 21 02 00 	andi r1,r1,0x200                               
 8003a4c:	44 20 00 1d 	be r1,r0,8003ac0 <rtems_termios_ioctl+0x184>   
      !(tty->termios.c_iflag & IXON)) {                               
 8003a50:	29 61 00 30 	lw r1,(r11+48)                                 
 8003a54:	20 21 04 00 	andi r1,r1,0x400                               
  /*                                                                  
   * check for flow control options to be switched off                
   */                                                                 
                                                                      
  /* check for outgoing XON/XOFF flow control switched off */         
  if (( tty->flow_ctrl & FL_MDXON) &&                                 
 8003a58:	5c 20 00 1a 	bne r1,r0,8003ac0 <rtems_termios_ioctl+0x184>  
      !(tty->termios.c_iflag & IXON)) {                               
    /* clear related flags in flow_ctrl */                            
    tty->flow_ctrl &= ~(FL_MDXON | FL_ORCVXOF);                       
 8003a5c:	29 62 00 b8 	lw r2,(r11+184)                                
 8003a60:	34 01 fd ef 	mvi r1,-529                                    
 8003a64:	a0 41 08 00 	and r1,r2,r1                                   
 8003a68:	59 61 00 b8 	sw (r11+184),r1                                
                                                                      
    /* has output been stopped due to received XOFF? */               
    if (tty->flow_ctrl & FL_OSTOP) {                                  
 8003a6c:	29 61 00 b8 	lw r1,(r11+184)                                
 8003a70:	20 21 00 20 	andi r1,r1,0x20                                
 8003a74:	44 20 00 13 	be r1,r0,8003ac0 <rtems_termios_ioctl+0x184>   <== ALWAYS TAKEN
      /* disable interrupts    */                                     
      rtems_interrupt_disable(level);                                 
 8003a78:	90 00 70 00 	rcsr r14,IE                                    <== NOT EXECUTED
 8003a7c:	34 01 ff fe 	mvi r1,-2                                      <== NOT EXECUTED
 8003a80:	a1 c1 08 00 	and r1,r14,r1                                  <== NOT EXECUTED
 8003a84:	d0 01 00 00 	wcsr IE,r1                                     <== NOT EXECUTED
      tty->flow_ctrl &= ~FL_OSTOP;                                    
 8003a88:	29 62 00 b8 	lw r2,(r11+184)                                <== NOT EXECUTED
 8003a8c:	34 01 ff df 	mvi r1,-33                                     <== NOT EXECUTED
 8003a90:	a0 41 08 00 	and r1,r2,r1                                   <== NOT EXECUTED
 8003a94:	59 61 00 b8 	sw (r11+184),r1                                <== NOT EXECUTED
      /* check for chars in output buffer (or rob_state?) */          
      if (tty->rawOutBufState != rob_idle) {                          
 8003a98:	29 61 00 94 	lw r1,(r11+148)                                <== NOT EXECUTED
 8003a9c:	44 20 00 08 	be r1,r0,8003abc <rtems_termios_ioctl+0x180>   <== NOT EXECUTED
        /* if chars available, call write function... */              
        (*tty->device.write)(                                         
 8003aa0:	29 63 00 7c 	lw r3,(r11+124)                                <== NOT EXECUTED
          tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); 
 8003aa4:	29 62 00 84 	lw r2,(r11+132)                                <== 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)(                                         
 8003aa8:	29 64 00 a4 	lw r4,(r11+164)                                <== NOT EXECUTED
 8003aac:	29 61 00 10 	lw r1,(r11+16)                                 <== NOT EXECUTED
 8003ab0:	b4 62 10 00 	add r2,r3,r2                                   <== NOT EXECUTED
 8003ab4:	34 03 00 01 	mvi r3,1                                       <== NOT EXECUTED
 8003ab8:	d8 80 00 00 	call r4                                        <== NOT EXECUTED
          tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); 
      }                                                               
      /* reenable interrupts */                                       
      rtems_interrupt_enable(level);                                  
 8003abc:	d0 0e 00 00 	wcsr IE,r14                                    <== NOT EXECUTED
    }                                                                 
  }                                                                   
  /* check for incoming XON/XOFF flow control switched off */         
  if (( tty->flow_ctrl & FL_MDXOF) && !(tty->termios.c_iflag & IXOFF)) {
 8003ac0:	29 61 00 b8 	lw r1,(r11+184)                                
 8003ac4:	20 21 04 00 	andi r1,r1,0x400                               
 8003ac8:	44 20 00 0c 	be r1,r0,8003af8 <rtems_termios_ioctl+0x1bc>   
 8003acc:	29 61 00 30 	lw r1,(r11+48)                                 
 8003ad0:	20 21 10 00 	andi r1,r1,0x1000                              
 8003ad4:	5c 20 00 09 	bne r1,r0,8003af8 <rtems_termios_ioctl+0x1bc>  <== NEVER TAKEN
    /* clear related flags in flow_ctrl */                            
    tty->flow_ctrl &= ~(FL_MDXOF);                                    
 8003ad8:	29 62 00 b8 	lw r2,(r11+184)                                
 8003adc:	34 01 fb ff 	mvi r1,-1025                                   
 8003ae0:	a0 41 08 00 	and r1,r2,r1                                   
 8003ae4:	59 61 00 b8 	sw (r11+184),r1                                
    /* FIXME: what happens, if we had sent XOFF but not yet XON? */   
    tty->flow_ctrl &= ~(FL_ISNTXOF);                                  
 8003ae8:	29 62 00 b8 	lw r2,(r11+184)                                
 8003aec:	34 01 ff fd 	mvi r1,-3                                      
 8003af0:	a0 41 08 00 	and r1,r2,r1                                   
 8003af4:	59 61 00 b8 	sw (r11+184),r1                                
  }                                                                   
                                                                      
  /* check for incoming RTS/CTS flow control switched off */          
  if (( tty->flow_ctrl & FL_MDRTS) && !(tty->termios.c_cflag & CRTSCTS)) {
 8003af8:	29 61 00 b8 	lw r1,(r11+184)                                
 8003afc:	20 21 01 00 	andi r1,r1,0x100                               
 8003b00:	44 20 00 12 	be r1,r0,8003b48 <rtems_termios_ioctl+0x20c>   <== ALWAYS TAKEN
 8003b04:	29 61 00 38 	lw r1,(r11+56)                                 <== NOT EXECUTED
 8003b08:	48 01 00 10 	bg r0,r1,8003b48 <rtems_termios_ioctl+0x20c>   <== NOT EXECUTED
    /* clear related flags in flow_ctrl */                            
    tty->flow_ctrl &= ~(FL_MDRTS);                                    
 8003b0c:	29 62 00 b8 	lw r2,(r11+184)                                <== NOT EXECUTED
 8003b10:	34 01 fe ff 	mvi r1,-257                                    <== NOT EXECUTED
 8003b14:	a0 41 08 00 	and r1,r2,r1                                   <== NOT EXECUTED
 8003b18:	59 61 00 b8 	sw (r11+184),r1                                <== NOT EXECUTED
                                                                      
    /* restart remote Tx, if it was stopped */                        
    if ((tty->flow_ctrl & FL_IRTSOFF) && (tty->device.startRemoteTx != NULL)) {
 8003b1c:	29 61 00 b8 	lw r1,(r11+184)                                <== NOT EXECUTED
 8003b20:	20 21 00 04 	andi r1,r1,0x4                                 <== NOT EXECUTED
 8003b24:	44 20 00 05 	be r1,r0,8003b38 <rtems_termios_ioctl+0x1fc>   <== NOT EXECUTED
 8003b28:	29 62 00 b0 	lw r2,(r11+176)                                <== NOT EXECUTED
 8003b2c:	44 40 00 03 	be r2,r0,8003b38 <rtems_termios_ioctl+0x1fc>   <== NOT EXECUTED
      tty->device.startRemoteTx(tty->minor);                          
 8003b30:	29 61 00 10 	lw r1,(r11+16)                                 <== NOT EXECUTED
 8003b34:	d8 40 00 00 	call r2                                        <== NOT EXECUTED
    }                                                                 
    tty->flow_ctrl &= ~(FL_IRTSOFF);                                  
 8003b38:	29 62 00 b8 	lw r2,(r11+184)                                <== NOT EXECUTED
 8003b3c:	34 01 ff fb 	mvi r1,-5                                      <== NOT EXECUTED
 8003b40:	a0 41 08 00 	and r1,r2,r1                                   <== NOT EXECUTED
 8003b44:	59 61 00 b8 	sw (r11+184),r1                                <== 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) {                               
 8003b48:	29 61 00 38 	lw r1,(r11+56)                                 
 8003b4c:	4c 20 00 04 	bge r1,r0,8003b5c <rtems_termios_ioctl+0x220>  <== ALWAYS TAKEN
    tty->flow_ctrl |= FL_MDRTS;                                       
 8003b50:	29 61 00 b8 	lw r1,(r11+184)                                <== NOT EXECUTED
 8003b54:	38 21 01 00 	ori r1,r1,0x100                                <== NOT EXECUTED
 8003b58:	59 61 00 b8 	sw (r11+184),r1                                <== NOT EXECUTED
  }                                                                   
  /* check for incoming XON/XOF flow control switched on */           
  if (tty->termios.c_iflag & IXOFF) {                                 
 8003b5c:	29 61 00 30 	lw r1,(r11+48)                                 
 8003b60:	20 22 10 00 	andi r2,r1,0x1000                              
 8003b64:	44 40 00 04 	be r2,r0,8003b74 <rtems_termios_ioctl+0x238>   
    tty->flow_ctrl |= FL_MDXOF;                                       
 8003b68:	29 62 00 b8 	lw r2,(r11+184)                                
 8003b6c:	38 42 04 00 	ori r2,r2,0x400                                
 8003b70:	59 62 00 b8 	sw (r11+184),r2                                
  }                                                                   
  /* check for outgoing XON/XOF flow control switched on */           
  if (tty->termios.c_iflag & IXON) {                                  
 8003b74:	20 21 04 00 	andi r1,r1,0x400                               
 8003b78:	44 20 00 04 	be r1,r0,8003b88 <rtems_termios_ioctl+0x24c>   
    tty->flow_ctrl |= FL_MDXON;                                       
 8003b7c:	29 61 00 b8 	lw r1,(r11+184)                                
 8003b80:	38 21 02 00 	ori r1,r1,0x200                                
 8003b84:	59 61 00 b8 	sw (r11+184),r1                                
    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) {                              
 8003b88:	29 6e 00 3c 	lw r14,(r11+60)                                
 8003b8c:	21 ce 00 02 	andi r14,r14,0x2                               
 8003b90:	5d c0 00 11 	bne r14,r0,8003bd4 <rtems_termios_ioctl+0x298> 
      tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                     
      tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;               
      tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;          
    } else {                                                          
      tty->vtimeTicks = tty->termios.c_cc[VTIME] *                    
 8003b94:	41 6f 00 46 	lbu r15,(r11+70)                               
                    rtems_clock_get_ticks_per_second() / 10;          
 8003b98:	f8 00 05 d6 	calli 80052f0 <rtems_clock_get_ticks_per_second>
    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] *                    
 8003b9c:	b9 e0 10 00 	mv r2,r15                                      
 8003ba0:	f8 00 74 c1 	calli 8020ea4 <__mulsi3>                       
                    rtems_clock_get_ticks_per_second() / 10;          
 8003ba4:	34 02 00 0a 	mvi r2,10                                      
 8003ba8:	f8 00 75 24 	calli 8021038 <__udivsi3>                      
      if (tty->termios.c_cc[VTIME]) {                                 
 8003bac:	41 62 00 46 	lbu r2,(r11+70)                                
    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] *                    
 8003bb0:	59 61 00 54 	sw (r11+84),r1                                 
 8003bb4:	41 63 00 47 	lbu r3,(r11+71)                                
                    rtems_clock_get_ticks_per_second() / 10;          
      if (tty->termios.c_cc[VTIME]) {                                 
 8003bb8:	44 4e 00 06 	be r2,r14,8003bd0 <rtems_termios_ioctl+0x294>  
        tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                   
 8003bbc:	59 60 00 6c 	sw (r11+108),r0                                
        tty->rawInBufSemaphoreTimeout = tty->vtimeTicks;              
 8003bc0:	59 61 00 70 	sw (r11+112),r1                                
        if (tty->termios.c_cc[VMIN])                                  
 8003bc4:	5c 60 00 06 	bne r3,r0,8003bdc <rtems_termios_ioctl+0x2a0>  
          tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;      
        else                                                          
          tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks;       
 8003bc8:	59 61 00 74 	sw (r11+116),r1                                
 8003bcc:	e0 00 00 08 	bi 8003bec <rtems_termios_ioctl+0x2b0>         
      } else {                                                        
        if (tty->termios.c_cc[VMIN]) {                                
 8003bd0:	44 62 00 05 	be r3,r2,8003be4 <rtems_termios_ioctl+0x2a8>   <== ALWAYS TAKEN
          tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                 
 8003bd4:	59 60 00 6c 	sw (r11+108),r0                                
          tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;           
 8003bd8:	59 60 00 70 	sw (r11+112),r0                                
          tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;      
 8003bdc:	59 60 00 74 	sw (r11+116),r0                                
 8003be0:	e0 00 00 03 	bi 8003bec <rtems_termios_ioctl+0x2b0>         
        } else {                                                      
          tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT;              
 8003be4:	34 01 00 01 	mvi r1,1                                       
 8003be8:	59 61 00 6c 	sw (r11+108),r1                                
        }                                                             
      }                                                               
    }                                                                 
    if (tty->device.setAttributes)                                    
 8003bec:	29 63 00 a8 	lw r3,(r11+168)                                
 8003bf0:	44 60 00 3c 	be r3,r0,8003ce0 <rtems_termios_ioctl+0x3a4>   <== NEVER TAKEN
      (*tty->device.setAttributes)(tty->minor, &tty->termios);        
 8003bf4:	29 61 00 10 	lw r1,(r11+16)                                 
 8003bf8:	35 62 00 30 	addi r2,r11,48                                 
 8003bfc:	d8 60 00 00 	call r3                                        
 8003c00:	e0 00 00 38 	bi 8003ce0 <rtems_termios_ioctl+0x3a4>         
    break;                                                            
                                                                      
  case RTEMS_IO_TCDRAIN:                                              
    drainOutput (tty);                                                
 8003c04:	b9 60 08 00 	mv r1,r11                                      
 8003c08:	fb ff fd 80 	calli 8003208 <drainOutput>                    
    break;                                                            
 8003c0c:	e0 00 00 35 	bi 8003ce0 <rtems_termios_ioctl+0x3a4>         
                                                                      
  case RTEMS_IO_SNDWAKEUP:                                            
    tty->tty_snd = *wakeup;                                           
 8003c10:	29 c1 00 00 	lw r1,(r14+0)                                  
 8003c14:	59 61 00 d4 	sw (r11+212),r1                                
 8003c18:	29 c1 00 04 	lw r1,(r14+4)                                  
 8003c1c:	59 61 00 d8 	sw (r11+216),r1                                
    break;                                                            
 8003c20:	e0 00 00 30 	bi 8003ce0 <rtems_termios_ioctl+0x3a4>         
                                                                      
  case RTEMS_IO_RCVWAKEUP:                                            
    tty->tty_rcv = *wakeup;                                           
 8003c24:	29 c1 00 00 	lw r1,(r14+0)                                  
 8003c28:	59 61 00 dc 	sw (r11+220),r1                                
 8003c2c:	29 c1 00 04 	lw r1,(r14+4)                                  
 8003c30:	59 61 00 e0 	sw (r11+224),r1                                
    break;                                                            
 8003c34:	e0 00 00 2b 	bi 8003ce0 <rtems_termios_ioctl+0x3a4>         
#if 1 /* FIXME */                                                     
  case TIOCSETD:                                                      
    /*                                                                
     * close old line discipline                                      
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_close != NULL) {          
 8003c38:	29 61 00 cc 	lw r1,(r11+204)                                
 8003c3c:	34 02 00 05 	mvi r2,5                                       
 8003c40:	78 0e 08 02 	mvhi r14,0x802                                 
 8003c44:	fb ff f3 53 	calli 8000990 <__ashlsi3>                      
 8003c48:	39 ce 47 18 	ori r14,r14,0x4718                             
 8003c4c:	b5 c1 08 00 	add r1,r14,r1                                  
 8003c50:	28 22 00 04 	lw r2,(r1+4)                                   
 8003c54:	44 40 00 04 	be r2,r0,8003c64 <rtems_termios_ioctl+0x328>   
      sc = rtems_termios_linesw[tty->t_line].l_close(tty);            
 8003c58:	b9 60 08 00 	mv r1,r11                                      
 8003c5c:	d8 40 00 00 	call r2                                        
 8003c60:	b8 20 68 00 	mv r13,r1                                      
    }                                                                 
    tty->t_line=*(int*)(args->buffer);                                
 8003c64:	29 81 00 08 	lw r1,(r12+8)                                  
    tty->t_sc = NULL; /* ensure that no more valid data */            
    /*                                                                
     * open new line discipline                                       
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_open != NULL) {           
 8003c68:	34 02 00 05 	mvi r2,5                                       
 8003c6c:	78 0e 08 02 	mvhi r14,0x802                                 
     * close old line discipline                                      
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_close != NULL) {          
      sc = rtems_termios_linesw[tty->t_line].l_close(tty);            
    }                                                                 
    tty->t_line=*(int*)(args->buffer);                                
 8003c70:	28 21 00 00 	lw r1,(r1+0)                                   
    tty->t_sc = NULL; /* ensure that no more valid data */            
 8003c74:	59 60 00 d0 	sw (r11+208),r0                                
    /*                                                                
     * open new line discipline                                       
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_open != NULL) {           
 8003c78:	39 ce 47 18 	ori r14,r14,0x4718                             
     * close old line discipline                                      
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_close != NULL) {          
      sc = rtems_termios_linesw[tty->t_line].l_close(tty);            
    }                                                                 
    tty->t_line=*(int*)(args->buffer);                                
 8003c7c:	59 61 00 cc 	sw (r11+204),r1                                
    tty->t_sc = NULL; /* ensure that no more valid data */            
    /*                                                                
     * open new line discipline                                       
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_open != NULL) {           
 8003c80:	fb ff f3 44 	calli 8000990 <__ashlsi3>                      
 8003c84:	b5 c1 08 00 	add r1,r14,r1                                  
 8003c88:	28 22 00 00 	lw r2,(r1+0)                                   
 8003c8c:	44 40 00 15 	be r2,r0,8003ce0 <rtems_termios_ioctl+0x3a4>   
      sc = rtems_termios_linesw[tty->t_line].l_open(tty);             
 8003c90:	b9 60 08 00 	mv r1,r11                                      
 8003c94:	d8 40 00 00 	call r2                                        
 8003c98:	b8 20 68 00 	mv r13,r1                                      
 8003c9c:	e0 00 00 11 	bi 8003ce0 <rtems_termios_ioctl+0x3a4>         
    }                                                                 
    break;                                                            
  case TIOCGETD:                                                      
    *(int*)(args->buffer)=tty->t_line;                                
 8003ca0:	29 81 00 08 	lw r1,(r12+8)                                  
 8003ca4:	29 62 00 cc 	lw r2,(r11+204)                                
 8003ca8:	58 22 00 00 	sw (r1+0),r2                                   
    break;                                                            
 8003cac:	e0 00 00 0d 	bi 8003ce0 <rtems_termios_ioctl+0x3a4>         
#endif                                                                
   case FIONREAD: {                                                   
      int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head;            
 8003cb0:	29 62 00 60 	lw r2,(r11+96)                                 <== NOT EXECUTED
 8003cb4:	29 61 00 5c 	lw r1,(r11+92)                                 <== NOT EXECUTED
 8003cb8:	c8 41 08 00 	sub r1,r2,r1                                   <== NOT EXECUTED
      if ( rawnc < 0 )                                                
 8003cbc:	4c 20 00 03 	bge r1,r0,8003cc8 <rtems_termios_ioctl+0x38c>  <== NOT EXECUTED
        rawnc += tty->rawInBuf.Size;                                  
 8003cc0:	29 62 00 64 	lw r2,(r11+100)                                <== NOT EXECUTED
 8003cc4:	b4 22 08 00 	add r1,r1,r2                                   <== NOT EXECUTED
      /* Half guess that this is the right operation */               
      *(int *)args->buffer = tty->ccount - tty->cindex + rawnc;       
 8003cc8:	29 64 00 20 	lw r4,(r11+32)                                 <== NOT EXECUTED
 8003ccc:	29 62 00 24 	lw r2,(r11+36)                                 <== NOT EXECUTED
 8003cd0:	29 83 00 08 	lw r3,(r12+8)                                  <== NOT EXECUTED
 8003cd4:	c8 82 10 00 	sub r2,r4,r2                                   <== NOT EXECUTED
 8003cd8:	b4 41 08 00 	add r1,r2,r1                                   <== NOT EXECUTED
 8003cdc:	58 61 00 00 	sw (r3+0),r1                                   <== NOT EXECUTED
    }                                                                 
    break;                                                            
  }                                                                   
                                                                      
  rtems_semaphore_release (tty->osem);                                
 8003ce0:	29 61 00 18 	lw r1,(r11+24)                                 
 8003ce4:	f8 00 07 a8 	calli 8005b84 <rtems_semaphore_release>        
  args->ioctl_return = sc;                                            
  return sc;                                                          
}                                                                     
 8003ce8:	b9 a0 08 00 	mv r1,r13                                      
    }                                                                 
    break;                                                            
  }                                                                   
                                                                      
  rtems_semaphore_release (tty->osem);                                
  args->ioctl_return = sc;                                            
 8003cec:	59 8d 00 0c 	sw (r12+12),r13                                
  return sc;                                                          
}                                                                     
 8003cf0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003cf4:	2b 8b 00 18 	lw r11,(sp+24)                                 
 8003cf8:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8003cfc:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8003d00:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8003d04:	2b 8f 00 08 	lw r15,(sp+8)                                  
 8003d08:	37 9c 00 18 	addi sp,sp,24                                  
 8003d0c:	c3 a0 00 00 	ret                                            
                                                                      

08003298 <rtems_termios_open>: rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) {
 8003298:	37 9c ff d4 	addi sp,sp,-44                                 
 800329c:	5b 8b 00 2c 	sw (sp+44),r11                                 
 80032a0:	5b 8c 00 28 	sw (sp+40),r12                                 
 80032a4:	5b 8d 00 24 	sw (sp+36),r13                                 
 80032a8:	5b 8e 00 20 	sw (sp+32),r14                                 
 80032ac:	5b 8f 00 1c 	sw (sp+28),r15                                 
 80032b0:	5b 90 00 18 	sw (sp+24),r16                                 
 80032b4:	5b 91 00 14 	sw (sp+20),r17                                 
 80032b8:	5b 92 00 10 	sw (sp+16),r18                                 
 80032bc:	5b 93 00 0c 	sw (sp+12),r19                                 
 80032c0:	5b 94 00 08 	sw (sp+8),r20                                  
 80032c4:	5b 9d 00 04 	sw (sp+4),ra                                   
 80032c8:	b8 20 88 00 	mv r17,r1                                      
  struct rtems_termios_tty *tty;                                      
                                                                      
  /*                                                                  
   * See if the device has already been opened                        
   */                                                                 
  sc = rtems_semaphore_obtain(                                        
 80032cc:	78 01 08 02 	mvhi r1,0x802                                  
 80032d0:	38 21 4d 20 	ori r1,r1,0x4d20                               
 80032d4:	28 21 00 00 	lw r1,(r1+0)                                   
  rtems_device_major_number      major,                               
  rtems_device_minor_number      minor,                               
  void                          *arg,                                 
  const rtems_termios_callbacks *callbacks                            
)                                                                     
{                                                                     
 80032d8:	b8 40 90 00 	mv r18,r2                                      
 80032dc:	b8 60 a0 00 	mv r20,r3                                      
  struct rtems_termios_tty *tty;                                      
                                                                      
  /*                                                                  
   * See if the device has already been opened                        
   */                                                                 
  sc = rtems_semaphore_obtain(                                        
 80032e0:	34 02 00 00 	mvi r2,0                                       
 80032e4:	34 03 00 00 	mvi r3,0                                       
  rtems_device_major_number      major,                               
  rtems_device_minor_number      minor,                               
  void                          *arg,                                 
  const rtems_termios_callbacks *callbacks                            
)                                                                     
{                                                                     
 80032e8:	b8 80 68 00 	mv r13,r4                                      
  struct rtems_termios_tty *tty;                                      
                                                                      
  /*                                                                  
   * See if the device has already been opened                        
   */                                                                 
  sc = rtems_semaphore_obtain(                                        
 80032ec:	f8 00 09 d6 	calli 8005a44 <rtems_semaphore_obtain>         
 80032f0:	b8 20 78 00 	mv r15,r1                                      
    rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);            
  if (sc != RTEMS_SUCCESSFUL)                                         
 80032f4:	5c 20 01 02 	bne r1,r0,80036fc <rtems_termios_open+0x464>   <== NEVER TAKEN
    return sc;                                                        
                                                                      
  for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { 
 80032f8:	78 01 08 02 	mvhi r1,0x802                                  
 80032fc:	38 21 4d 28 	ori r1,r1,0x4d28                               
 8003300:	28 2e 00 00 	lw r14,(r1+0)                                  
 8003304:	b9 c0 60 00 	mv r12,r14                                     
 8003308:	e0 00 00 06 	bi 8003320 <rtems_termios_open+0x88>           
    if ((tty->major == major) && (tty->minor == minor))               
 800330c:	29 81 00 0c 	lw r1,(r12+12)                                 <== NOT EXECUTED
 8003310:	5c 31 00 03 	bne r1,r17,800331c <rtems_termios_open+0x84>   <== NOT EXECUTED
 8003314:	29 81 00 10 	lw r1,(r12+16)                                 <== NOT EXECUTED
 8003318:	44 32 00 d8 	be r1,r18,8003678 <rtems_termios_open+0x3e0>   <== NOT EXECUTED
  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) { 
 800331c:	29 8c 00 00 	lw r12,(r12+0)                                 <== NOT EXECUTED
 8003320:	5d 80 ff fb 	bne r12,r0,800330c <rtems_termios_open+0x74>   <== NEVER TAKEN
 8003324:	e0 00 01 04 	bi 8003734 <rtems_termios_open+0x49c>          
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
    /*                                                                
     * allocate raw input buffer                                      
     */                                                               
    tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE;                       
 8003328:	78 01 08 02 	mvhi r1,0x802                                  
 800332c:	38 21 41 90 	ori r1,r1,0x4190                               
 8003330:	28 21 00 00 	lw r1,(r1+0)                                   
 8003334:	59 81 00 64 	sw (r12+100),r1                                
    tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size);               
 8003338:	29 81 00 64 	lw r1,(r12+100)                                
 800333c:	fb ff fc 6a 	calli 80024e4 <malloc>                         
 8003340:	59 81 00 58 	sw (r12+88),r1                                 
 8003344:	b8 20 80 00 	mv r16,r1                                      
    if (tty->rawInBuf.theBuf == NULL) {                               
 8003348:	5c 20 00 09 	bne r1,r0,800336c <rtems_termios_open+0xd4>    
            free(tty);                                                
 800334c:	b9 80 08 00 	mv r1,r12                                      
 8003350:	fb ff fa ad 	calli 8001e04 <free>                           
      rtems_semaphore_release (rtems_termios_ttyMutex);               
 8003354:	78 01 08 02 	mvhi r1,0x802                                  
 8003358:	38 21 4d 20 	ori r1,r1,0x4d20                               
 800335c:	28 21 00 00 	lw r1,(r1+0)                                   
      return RTEMS_NO_MEMORY;                                         
 8003360:	34 0f 00 1a 	mvi r15,26                                     
     */                                                               
    tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE;                       
    tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size);               
    if (tty->rawInBuf.theBuf == NULL) {                               
            free(tty);                                                
      rtems_semaphore_release (rtems_termios_ttyMutex);               
 8003364:	f8 00 0a 08 	calli 8005b84 <rtems_semaphore_release>        
      return RTEMS_NO_MEMORY;                                         
 8003368:	e0 00 00 e5 	bi 80036fc <rtems_termios_open+0x464>          
    }                                                                 
    /*                                                                
     * allocate raw output buffer                                     
     */                                                               
    tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE;                     
 800336c:	78 01 08 02 	mvhi r1,0x802                                  
 8003370:	38 21 41 94 	ori r1,r1,0x4194                               
 8003374:	28 21 00 00 	lw r1,(r1+0)                                   
 8003378:	59 81 00 88 	sw (r12+136),r1                                
    tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size);             
 800337c:	29 81 00 88 	lw r1,(r12+136)                                
 8003380:	fb ff fc 59 	calli 80024e4 <malloc>                         
 8003384:	59 81 00 7c 	sw (r12+124),r1                                
 8003388:	b8 20 98 00 	mv r19,r1                                      
    if (tty->rawOutBuf.theBuf == NULL) {                              
 800338c:	44 20 00 09 	be r1,r0,80033b0 <rtems_termios_open+0x118>    
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
    /*                                                                
     * allocate cooked buffer                                         
     */                                                               
    tty->cbuf  = malloc (CBUFSIZE);                                   
 8003390:	78 01 08 02 	mvhi r1,0x802                                  
 8003394:	38 21 41 8c 	ori r1,r1,0x418c                               
 8003398:	28 21 00 00 	lw r1,(r1+0)                                   
 800339c:	fb ff fc 52 	calli 80024e4 <malloc>                         
 80033a0:	59 81 00 1c 	sw (r12+28),r1                                 
    if (tty->cbuf == NULL) {                                          
 80033a4:	5c 20 00 06 	bne r1,r0,80033bc <rtems_termios_open+0x124>   <== ALWAYS TAKEN
            free((void *)(tty->rawOutBuf.theBuf));                    
 80033a8:	ba 60 08 00 	mv r1,r19                                      <== NOT EXECUTED
 80033ac:	fb ff fa 96 	calli 8001e04 <free>                           <== NOT EXECUTED
            free((void *)(tty->rawInBuf.theBuf));                     
 80033b0:	ba 00 08 00 	mv r1,r16                                      
 80033b4:	fb ff fa 94 	calli 8001e04 <free>                           
 80033b8:	e3 ff ff e5 	bi 800334c <rtems_termios_open+0xb4>           
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
    /*                                                                
     * Initialize wakeup callbacks                                    
     */                                                               
    tty->tty_snd.sw_pfn = NULL;                                       
 80033bc:	59 80 00 d4 	sw (r12+212),r0                                
    tty->tty_snd.sw_arg = NULL;                                       
 80033c0:	59 80 00 d8 	sw (r12+216),r0                                
    tty->tty_rcv.sw_pfn = NULL;                                       
 80033c4:	59 80 00 dc 	sw (r12+220),r0                                
    tty->tty_rcv.sw_arg = NULL;                                       
 80033c8:	59 80 00 e0 	sw (r12+224),r0                                
    tty->tty_rcvwakeup  = 0;                                          
 80033cc:	59 80 00 e4 	sw (r12+228),r0                                
                                                                      
    /*                                                                
     * link tty                                                       
     */                                                               
    tty->forw = rtems_termios_ttyHead;                                
 80033d0:	59 8e 00 00 	sw (r12+0),r14                                 
    tty->back = NULL;                                                 
 80033d4:	59 80 00 04 	sw (r12+4),r0                                  
    if (rtems_termios_ttyHead != NULL)                                
 80033d8:	45 c0 00 02 	be r14,r0,80033e0 <rtems_termios_open+0x148>   <== ALWAYS TAKEN
      rtems_termios_ttyHead->back = tty;                              
 80033dc:	59 cc 00 04 	sw (r14+4),r12                                 <== NOT EXECUTED
    rtems_termios_ttyHead = tty;                                      
 80033e0:	78 01 08 02 	mvhi r1,0x802                                  
    if (rtems_termios_ttyTail == NULL)                                
 80033e4:	78 04 08 02 	mvhi r4,0x802                                  
     */                                                               
    tty->forw = rtems_termios_ttyHead;                                
    tty->back = NULL;                                                 
    if (rtems_termios_ttyHead != NULL)                                
      rtems_termios_ttyHead->back = tty;                              
    rtems_termios_ttyHead = tty;                                      
 80033e8:	38 21 4d 28 	ori r1,r1,0x4d28                               
    if (rtems_termios_ttyTail == NULL)                                
 80033ec:	38 84 4d 24 	ori r4,r4,0x4d24                               
     */                                                               
    tty->forw = rtems_termios_ttyHead;                                
    tty->back = NULL;                                                 
    if (rtems_termios_ttyHead != NULL)                                
      rtems_termios_ttyHead->back = tty;                              
    rtems_termios_ttyHead = tty;                                      
 80033f0:	58 2b 00 00 	sw (r1+0),r11                                  
    if (rtems_termios_ttyTail == NULL)                                
 80033f4:	28 81 00 00 	lw r1,(r4+0)                                   
 80033f8:	5c 20 00 02 	bne r1,r0,8003400 <rtems_termios_open+0x168>   <== NEVER TAKEN
      rtems_termios_ttyTail = tty;                                    
 80033fc:	58 8b 00 00 	sw (r4+0),r11                                  
                                                                      
    /*                                                                
     * Set up mutex semaphores                                        
     */                                                               
    sc = rtems_semaphore_create (                                     
      rtems_build_name ('T', 'R', 'i', c),                            
 8003400:	78 0e 08 02 	mvhi r14,0x802                                 
    tty->major = major;                                               
                                                                      
    /*                                                                
     * Set up mutex semaphores                                        
     */                                                               
    sc = rtems_semaphore_create (                                     
 8003404:	78 03 08 02 	mvhi r3,0x802                                  
 8003408:	38 63 25 8c 	ori r3,r3,0x258c                               
      rtems_build_name ('T', 'R', 'i', c),                            
 800340c:	39 ce 41 98 	ori r14,r14,0x4198                             
 8003410:	41 c2 00 00 	lbu r2,(r14+0)                                 
    tty->major = major;                                               
                                                                      
    /*                                                                
     * Set up mutex semaphores                                        
     */                                                               
    sc = rtems_semaphore_create (                                     
 8003414:	28 61 00 00 	lw r1,(r3+0)                                   
      rtems_termios_ttyHead->back = tty;                              
    rtems_termios_ttyHead = tty;                                      
    if (rtems_termios_ttyTail == NULL)                                
      rtems_termios_ttyTail = tty;                                    
                                                                      
    tty->minor = minor;                                               
 8003418:	59 72 00 10 	sw (r11+16),r18                                
    tty->major = major;                                               
 800341c:	59 71 00 0c 	sw (r11+12),r17                                
                                                                      
    /*                                                                
     * Set up mutex semaphores                                        
     */                                                               
    sc = rtems_semaphore_create (                                     
 8003420:	b8 41 08 00 	or r1,r2,r1                                    
 8003424:	34 03 00 54 	mvi r3,84                                      
 8003428:	34 02 00 01 	mvi r2,1                                       
 800342c:	34 04 00 00 	mvi r4,0                                       
 8003430:	35 65 00 14 	addi r5,r11,20                                 
 8003434:	f8 00 08 d8 	calli 8005794 <rtems_semaphore_create>         
 8003438:	b8 20 80 00 	mv r16,r1                                      
      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)                                       
 800343c:	5c 20 00 ab 	bne r1,r0,80036e8 <rtems_termios_open+0x450>   <== NEVER TAKEN
      rtems_fatal_error_occurred (sc);                                
    sc = rtems_semaphore_create (                                     
 8003440:	78 03 08 02 	mvhi r3,0x802                                  
 8003444:	38 63 25 90 	ori r3,r3,0x2590                               
      rtems_build_name ('T', 'R', 'o', c),                            
 8003448:	41 c2 00 00 	lbu r2,(r14+0)                                 
      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 (                                     
 800344c:	28 61 00 00 	lw r1,(r3+0)                                   
 8003450:	34 04 00 00 	mvi r4,0                                       
 8003454:	34 03 00 54 	mvi r3,84                                      
 8003458:	b8 41 08 00 	or r1,r2,r1                                    
 800345c:	35 65 00 18 	addi r5,r11,24                                 
 8003460:	34 02 00 01 	mvi r2,1                                       
 8003464:	f8 00 08 cc 	calli 8005794 <rtems_semaphore_create>         
 8003468:	b8 20 98 00 	mv r19,r1                                      
      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)                                       
 800346c:	5c 30 00 9f 	bne r1,r16,80036e8 <rtems_termios_open+0x450>  <== NEVER TAKEN
      rtems_fatal_error_occurred (sc);                                
    sc = rtems_semaphore_create (                                     
 8003470:	78 03 08 02 	mvhi r3,0x802                                  
 8003474:	38 63 25 94 	ori r3,r3,0x2594                               
      rtems_build_name ('T', 'R', 'x', c),                            
 8003478:	41 c2 00 00 	lbu r2,(r14+0)                                 
      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 (                                     
 800347c:	28 61 00 00 	lw r1,(r3+0)                                   
 8003480:	34 04 00 00 	mvi r4,0                                       
 8003484:	34 03 00 20 	mvi r3,32                                      
 8003488:	b8 41 08 00 	or r1,r2,r1                                    
 800348c:	35 65 00 8c 	addi r5,r11,140                                
 8003490:	34 02 00 00 	mvi r2,0                                       
 8003494:	f8 00 08 c0 	calli 8005794 <rtems_semaphore_create>         
 8003498:	b8 20 80 00 	mv r16,r1                                      
      rtems_build_name ('T', 'R', 'x', c),                            
      0,                                                              
      RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_FIFO,                     
      RTEMS_NO_PRIORITY,                                              
      &tty->rawOutBuf.Semaphore);                                     
    if (sc != RTEMS_SUCCESSFUL)                                       
 800349c:	5c 33 00 93 	bne r1,r19,80036e8 <rtems_termios_open+0x450>  <== NEVER TAKEN
    tty->rawOutBufState = rob_idle;                                   
                                                                      
    /*                                                                
     * Set callbacks                                                  
     */                                                               
    tty->device = *callbacks;                                         
 80034a0:	29 a2 00 18 	lw r2,(r13+24)                                 
 80034a4:	29 a8 00 00 	lw r8,(r13+0)                                  
 80034a8:	29 a7 00 04 	lw r7,(r13+4)                                  
 80034ac:	29 a6 00 08 	lw r6,(r13+8)                                  
 80034b0:	29 a5 00 0c 	lw r5,(r13+12)                                 
 80034b4:	29 a4 00 10 	lw r4,(r13+16)                                 
 80034b8:	29 a3 00 14 	lw r3,(r13+20)                                 
 80034bc:	29 a1 00 1c 	lw r1,(r13+28)                                 
      RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_FIFO,                     
      RTEMS_NO_PRIORITY,                                              
      &tty->rawOutBuf.Semaphore);                                     
    if (sc != RTEMS_SUCCESSFUL)                                       
      rtems_fatal_error_occurred (sc);                                
    tty->rawOutBufState = rob_idle;                                   
 80034c0:	59 60 00 94 	sw (r11+148),r0                                
                                                                      
    /*                                                                
     * Set callbacks                                                  
     */                                                               
    tty->device = *callbacks;                                         
 80034c4:	59 62 00 b0 	sw (r11+176),r2                                
 80034c8:	59 68 00 98 	sw (r11+152),r8                                
 80034cc:	59 67 00 9c 	sw (r11+156),r7                                
 80034d0:	59 66 00 a0 	sw (r11+160),r6                                
 80034d4:	59 65 00 a4 	sw (r11+164),r5                                
 80034d8:	59 64 00 a8 	sw (r11+168),r4                                
 80034dc:	59 63 00 ac 	sw (r11+172),r3                                
 80034e0:	59 61 00 b4 	sw (r11+180),r1                                
                                                                      
    /*                                                                
     * Create I/O tasks                                               
     */                                                               
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
 80034e4:	34 02 00 02 	mvi r2,2                                       
 80034e8:	5c 22 00 1a 	bne r1,r2,8003550 <rtems_termios_open+0x2b8>   
      sc = rtems_task_create (                                        
 80034ec:	78 03 08 02 	mvhi r3,0x802                                  
 80034f0:	38 63 25 98 	ori r3,r3,0x2598                               
                                   rtems_build_name ('T', 'x', 'T', c),
 80034f4:	41 c2 00 00 	lbu r2,(r14+0)                                 
                                                                      
    /*                                                                
     * Create I/O tasks                                               
     */                                                               
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
      sc = rtems_task_create (                                        
 80034f8:	28 61 00 00 	lw r1,(r3+0)                                   
 80034fc:	34 04 05 00 	mvi r4,1280                                    
 8003500:	34 03 04 00 	mvi r3,1024                                    
 8003504:	b8 41 08 00 	or r1,r2,r1                                    
 8003508:	34 05 00 00 	mvi r5,0                                       
 800350c:	34 02 00 0a 	mvi r2,10                                      
 8003510:	35 66 00 c8 	addi r6,r11,200                                
 8003514:	f8 00 09 da 	calli 8005c7c <rtems_task_create>              
 8003518:	b8 20 68 00 	mv r13,r1                                      
           TERMIOS_TXTASK_STACKSIZE,                                  
           RTEMS_NO_PREEMPT | RTEMS_NO_TIMESLICE |                    
           RTEMS_NO_ASR,                                              
           RTEMS_NO_FLOATING_POINT | RTEMS_LOCAL,                     
           &tty->txTaskId);                                           
      if (sc != RTEMS_SUCCESSFUL)                                     
 800351c:	5c 30 00 73 	bne r1,r16,80036e8 <rtems_termios_open+0x450>  <== NEVER TAKEN
        rtems_fatal_error_occurred (sc);                              
      sc = rtems_task_create (                                        
 8003520:	78 03 08 02 	mvhi r3,0x802                                  
 8003524:	38 63 25 9c 	ori r3,r3,0x259c                               
                                   rtems_build_name ('R', 'x', 'T', c),
 8003528:	41 c2 00 00 	lbu r2,(r14+0)                                 
           RTEMS_NO_ASR,                                              
           RTEMS_NO_FLOATING_POINT | RTEMS_LOCAL,                     
           &tty->txTaskId);                                           
      if (sc != RTEMS_SUCCESSFUL)                                     
        rtems_fatal_error_occurred (sc);                              
      sc = rtems_task_create (                                        
 800352c:	28 61 00 00 	lw r1,(r3+0)                                   
 8003530:	34 04 05 00 	mvi r4,1280                                    
 8003534:	34 03 04 00 	mvi r3,1024                                    
 8003538:	b8 41 08 00 	or r1,r2,r1                                    
 800353c:	34 05 00 00 	mvi r5,0                                       
 8003540:	34 02 00 09 	mvi r2,9                                       
 8003544:	35 66 00 c4 	addi r6,r11,196                                
 8003548:	f8 00 09 cd 	calli 8005c7c <rtems_task_create>              
           TERMIOS_RXTASK_STACKSIZE,                                  
           RTEMS_NO_PREEMPT | RTEMS_NO_TIMESLICE |                    
           RTEMS_NO_ASR,                                              
           RTEMS_NO_FLOATING_POINT | RTEMS_LOCAL,                     
           &tty->rxTaskId);                                           
      if (sc != RTEMS_SUCCESSFUL)                                     
 800354c:	5c 2d 00 67 	bne r1,r13,80036e8 <rtems_termios_open+0x450>  <== NEVER TAKEN
        rtems_fatal_error_occurred (sc);                              
                                                                      
    }                                                                 
    if ((tty->device.pollRead == NULL) ||                             
 8003550:	29 61 00 a0 	lw r1,(r11+160)                                
 8003554:	44 20 00 04 	be r1,r0,8003564 <rtems_termios_open+0x2cc>    
 8003558:	29 62 00 b4 	lw r2,(r11+180)                                
 800355c:	34 01 00 02 	mvi r1,2                                       
 8003560:	5c 41 00 0e 	bne r2,r1,8003598 <rtems_termios_open+0x300>   
        (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){   
      sc = rtems_semaphore_create (                                   
        rtems_build_name ('T', 'R', 'r', c),                          
 8003564:	78 01 08 02 	mvhi r1,0x802                                  
        rtems_fatal_error_occurred (sc);                              
                                                                      
    }                                                                 
    if ((tty->device.pollRead == NULL) ||                             
        (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){   
      sc = rtems_semaphore_create (                                   
 8003568:	78 03 08 02 	mvhi r3,0x802                                  
        rtems_build_name ('T', 'R', 'r', c),                          
 800356c:	38 21 41 98 	ori r1,r1,0x4198                               
        rtems_fatal_error_occurred (sc);                              
                                                                      
    }                                                                 
    if ((tty->device.pollRead == NULL) ||                             
        (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){   
      sc = rtems_semaphore_create (                                   
 8003570:	38 63 25 a0 	ori r3,r3,0x25a0                               
        rtems_build_name ('T', 'R', 'r', c),                          
 8003574:	40 22 00 00 	lbu r2,(r1+0)                                  
        rtems_fatal_error_occurred (sc);                              
                                                                      
    }                                                                 
    if ((tty->device.pollRead == NULL) ||                             
        (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){   
      sc = rtems_semaphore_create (                                   
 8003578:	28 61 00 00 	lw r1,(r3+0)                                   
 800357c:	34 04 00 00 	mvi r4,0                                       
 8003580:	34 03 00 24 	mvi r3,36                                      
 8003584:	b8 41 08 00 	or r1,r2,r1                                    
 8003588:	35 65 00 68 	addi r5,r11,104                                
 800358c:	34 02 00 00 	mvi r2,0                                       
 8003590:	f8 00 08 81 	calli 8005794 <rtems_semaphore_create>         
        rtems_build_name ('T', 'R', 'r', c),                          
        0,                                                            
        RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_PRIORITY,               
        RTEMS_NO_PRIORITY,                                            
        &tty->rawInBuf.Semaphore);                                    
      if (sc != RTEMS_SUCCESSFUL)                                     
 8003594:	5c 20 00 55 	bne r1,r0,80036e8 <rtems_termios_open+0x450>   <== NEVER TAKEN
    }                                                                 
                                                                      
    /*                                                                
     * Set default parameters                                         
     */                                                               
    tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;           
 8003598:	34 01 25 02 	mvi r1,9474                                    
 800359c:	59 61 00 30 	sw (r11+48),r1                                 
    tty->termios.c_oflag = OPOST | ONLCR | XTABS;                     
 80035a0:	34 01 18 05 	mvi r1,6149                                    
 80035a4:	59 61 00 34 	sw (r11+52),r1                                 
    tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL;              
 80035a8:	34 01 08 bd 	mvi r1,2237                                    
 80035ac:	59 61 00 38 	sw (r11+56),r1                                 
    tty->termios.c_lflag =                                            
 80035b0:	34 21 79 7e 	addi r1,r1,31102                               
 80035b4:	59 61 00 3c 	sw (r11+60),r1                                 
       ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL;       
                                                                      
    tty->termios.c_cc[VINTR] = '\003';                                
 80035b8:	34 01 00 03 	mvi r1,3                                       
 80035bc:	31 61 00 41 	sb (r11+65),r1                                 
    tty->termios.c_cc[VQUIT] = '\034';                                
 80035c0:	34 01 00 1c 	mvi r1,28                                      
 80035c4:	31 61 00 42 	sb (r11+66),r1                                 
    tty->termios.c_cc[VERASE] = '\177';                               
 80035c8:	34 01 00 7f 	mvi r1,127                                     
 80035cc:	31 61 00 43 	sb (r11+67),r1                                 
    tty->termios.c_cc[VKILL] = '\025';                                
 80035d0:	34 01 00 15 	mvi r1,21                                      
 80035d4:	31 61 00 44 	sb (r11+68),r1                                 
    tty->termios.c_cc[VEOF] = '\004';                                 
 80035d8:	34 01 00 04 	mvi r1,4                                       
 80035dc:	31 61 00 45 	sb (r11+69),r1                                 
    tty->termios.c_cc[VEOL] = '\000';                                 
    tty->termios.c_cc[VEOL2] = '\000';                                
    tty->termios.c_cc[VSTART] = '\021';                               
 80035e0:	34 01 00 11 	mvi r1,17                                      
 80035e4:	31 61 00 49 	sb (r11+73),r1                                 
    tty->termios.c_cc[VSTOP] = '\023';                                
 80035e8:	34 01 00 13 	mvi r1,19                                      
 80035ec:	31 61 00 4a 	sb (r11+74),r1                                 
    tty->termios.c_cc[VSUSP] = '\032';                                
 80035f0:	34 01 00 1a 	mvi r1,26                                      
 80035f4:	31 61 00 4b 	sb (r11+75),r1                                 
    tty->termios.c_cc[VREPRINT] = '\022';                             
 80035f8:	34 01 00 12 	mvi r1,18                                      
 80035fc:	31 61 00 4d 	sb (r11+77),r1                                 
    tty->termios.c_cc[VDISCARD] = '\017';                             
 8003600:	34 01 00 0f 	mvi r1,15                                      
 8003604:	31 61 00 4e 	sb (r11+78),r1                                 
    tty->termios.c_cc[VWERASE] = '\027';                              
 8003608:	34 01 00 17 	mvi r1,23                                      
 800360c:	31 61 00 4f 	sb (r11+79),r1                                 
    tty->termios.c_cc[VLNEXT] = '\026';                               
                                                                      
    /* start with no flow control, clear flow control flags */        
    tty->flow_ctrl = 0;                                               
 8003610:	59 60 00 b8 	sw (r11+184),r0                                
    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';                               
 8003614:	34 01 00 16 	mvi r1,22                                      
 8003618:	31 61 00 50 	sb (r11+80),r1                                 
    /* 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;                        
 800361c:	29 61 00 64 	lw r1,(r11+100)                                
 8003620:	34 02 00 01 	mvi r2,1                                       
    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';                                 
 8003624:	31 60 00 4c 	sb (r11+76),r0                                 
    tty->termios.c_cc[VEOL2] = '\000';                                
 8003628:	31 60 00 51 	sb (r11+81),r0                                 
    /* 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;                        
 800362c:	f8 00 75 f7 	calli 8020e08 <__lshrsi3>                      
    tty->highwater = tty->rawInBuf.Size * 3/4;                        
 8003630:	29 6d 00 64 	lw r13,(r11+100)                               
    /* 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;                        
 8003634:	59 61 00 bc 	sw (r11+188),r1                                
    tty->highwater = tty->rawInBuf.Size * 3/4;                        
 8003638:	34 02 00 01 	mvi r2,1                                       
 800363c:	b9 a0 08 00 	mv r1,r13                                      
 8003640:	fb ff f4 d4 	calli 8000990 <__ashlsi3>                      
 8003644:	34 02 00 02 	mvi r2,2                                       
 8003648:	b4 2d 08 00 	add r1,r1,r13                                  
 800364c:	f8 00 75 ef 	calli 8020e08 <__lshrsi3>                      
    /*                                                                
     * Bump name characer                                             
     */                                                               
    if (c++ == 'z')                                                   
 8003650:	78 04 08 02 	mvhi r4,0x802                                  
 8003654:	38 84 41 98 	ori r4,r4,0x4198                               
    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;                        
 8003658:	59 61 00 c0 	sw (r11+192),r1                                
    /*                                                                
     * Bump name characer                                             
     */                                                               
    if (c++ == 'z')                                                   
 800365c:	40 81 00 00 	lbu r1,(r4+0)                                  
 8003660:	34 22 00 01 	addi r2,r1,1                                   
 8003664:	30 82 00 00 	sb (r4+0),r2                                   
 8003668:	34 02 00 7a 	mvi r2,122                                     
 800366c:	5c 22 00 03 	bne r1,r2,8003678 <rtems_termios_open+0x3e0>   
      c = 'a';                                                        
 8003670:	34 01 00 61 	mvi r1,97                                      
 8003674:	30 81 00 00 	sb (r4+0),r1                                   
                                                                      
  }                                                                   
  args->iop->data1 = tty;                                             
 8003678:	2a 81 00 00 	lw r1,(r20+0)                                  
  if (!tty->refcount++) {                                             
 800367c:	29 82 00 08 	lw r2,(r12+8)                                  
     */                                                               
    if (c++ == 'z')                                                   
      c = 'a';                                                        
                                                                      
  }                                                                   
  args->iop->data1 = tty;                                             
 8003680:	58 2c 00 38 	sw (r1+56),r12                                 
  if (!tty->refcount++) {                                             
 8003684:	34 41 00 01 	addi r1,r2,1                                   
 8003688:	59 81 00 08 	sw (r12+8),r1                                  
 800368c:	5c 40 00 18 	bne r2,r0,80036ec <rtems_termios_open+0x454>   <== NEVER TAKEN
    if (tty->device.firstOpen)                                        
 8003690:	29 84 00 98 	lw r4,(r12+152)                                
 8003694:	44 82 00 05 	be r4,r2,80036a8 <rtems_termios_open+0x410>    <== ALWAYS TAKEN
      (*tty->device.firstOpen)(major, minor, arg);                    
 8003698:	ba 20 08 00 	mv r1,r17                                      <== NOT EXECUTED
 800369c:	ba 40 10 00 	mv r2,r18                                      <== NOT EXECUTED
 80036a0:	ba 80 18 00 	mv r3,r20                                      <== NOT EXECUTED
 80036a4:	d8 80 00 00 	call r4                                        <== NOT EXECUTED
                                                                      
    /*                                                                
     * start I/O tasks, if needed                                     
     */                                                               
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
 80036a8:	29 82 00 b4 	lw r2,(r12+180)                                
 80036ac:	34 01 00 02 	mvi r1,2                                       
 80036b0:	5c 41 00 0f 	bne r2,r1,80036ec <rtems_termios_open+0x454>   
      sc = rtems_task_start(                                          
 80036b4:	29 81 00 c4 	lw r1,(r12+196)                                
 80036b8:	78 02 08 00 	mvhi r2,0x800                                  
 80036bc:	38 42 4c 20 	ori r2,r2,0x4c20                               
 80036c0:	b9 80 18 00 	mv r3,r12                                      
 80036c4:	f8 00 0a 16 	calli 8005f1c <rtems_task_start>               
 80036c8:	b8 20 58 00 	mv r11,r1                                      
        tty->rxTaskId, rtems_termios_rxdaemon, (rtems_task_argument)tty);
      if (sc != RTEMS_SUCCESSFUL)                                     
 80036cc:	5c 20 00 07 	bne r1,r0,80036e8 <rtems_termios_open+0x450>   <== NEVER TAKEN
        rtems_fatal_error_occurred (sc);                              
                                                                      
      sc = rtems_task_start(                                          
 80036d0:	29 81 00 c8 	lw r1,(r12+200)                                
 80036d4:	78 02 08 00 	mvhi r2,0x800                                  
 80036d8:	38 42 4e a0 	ori r2,r2,0x4ea0                               
 80036dc:	b9 80 18 00 	mv r3,r12                                      
 80036e0:	f8 00 0a 0f 	calli 8005f1c <rtems_task_start>               
        tty->txTaskId, rtems_termios_txdaemon, (rtems_task_argument)tty);
      if (sc != RTEMS_SUCCESSFUL)                                     
 80036e4:	44 2b 00 02 	be r1,r11,80036ec <rtems_termios_open+0x454>   <== ALWAYS TAKEN
        rtems_fatal_error_occurred (sc);                              
 80036e8:	f8 00 0b 18 	calli 8006348 <rtems_fatal_error_occurred>     <== NOT EXECUTED
    }                                                                 
  }                                                                   
  rtems_semaphore_release (rtems_termios_ttyMutex);                   
 80036ec:	78 01 08 02 	mvhi r1,0x802                                  
 80036f0:	38 21 4d 20 	ori r1,r1,0x4d20                               
 80036f4:	28 21 00 00 	lw r1,(r1+0)                                   
 80036f8:	f8 00 09 23 	calli 8005b84 <rtems_semaphore_release>        
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 80036fc:	b9 e0 08 00 	mv r1,r15                                      
 8003700:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003704:	2b 8b 00 2c 	lw r11,(sp+44)                                 
 8003708:	2b 8c 00 28 	lw r12,(sp+40)                                 
 800370c:	2b 8d 00 24 	lw r13,(sp+36)                                 
 8003710:	2b 8e 00 20 	lw r14,(sp+32)                                 
 8003714:	2b 8f 00 1c 	lw r15,(sp+28)                                 
 8003718:	2b 90 00 18 	lw r16,(sp+24)                                 
 800371c:	2b 91 00 14 	lw r17,(sp+20)                                 
 8003720:	2b 92 00 10 	lw r18,(sp+16)                                 
 8003724:	2b 93 00 0c 	lw r19,(sp+12)                                 
 8003728:	2b 94 00 08 	lw r20,(sp+8)                                  
 800372c:	37 9c 00 2c 	addi sp,sp,44                                  
 8003730:	c3 a0 00 00 	ret                                            
    static char c = 'a';                                              
                                                                      
    /*                                                                
     * Create a new device                                            
     */                                                               
    tty = calloc (1, sizeof (struct rtems_termios_tty));              
 8003734:	34 01 00 01 	mvi r1,1                                       
 8003738:	34 02 00 e8 	mvi r2,232                                     
 800373c:	fb ff f8 f4 	calli 8001b0c <calloc>                         
 8003740:	b8 20 60 00 	mv r12,r1                                      
 8003744:	b8 20 58 00 	mv r11,r1                                      
    if (tty == NULL) {                                                
 8003748:	5c 20 fe f8 	bne r1,r0,8003328 <rtems_termios_open+0x90>    
 800374c:	e3 ff ff 02 	bi 8003354 <rtems_termios_open+0xbc>           
                                                                      

08003d10 <rtems_termios_puts>: * Send characters to device-specific code */ void rtems_termios_puts ( const void *_buf, int len, struct rtems_termios_tty *tty) {
 8003d10:	37 9c ff dc 	addi sp,sp,-36                                 
 8003d14:	5b 8b 00 24 	sw (sp+36),r11                                 
 8003d18:	5b 8c 00 20 	sw (sp+32),r12                                 
 8003d1c:	5b 8d 00 1c 	sw (sp+28),r13                                 
 8003d20:	5b 8e 00 18 	sw (sp+24),r14                                 
 8003d24:	5b 8f 00 14 	sw (sp+20),r15                                 
 8003d28:	5b 90 00 10 	sw (sp+16),r16                                 
 8003d2c:	5b 91 00 0c 	sw (sp+12),r17                                 
 8003d30:	5b 92 00 08 	sw (sp+8),r18                                  
 8003d34:	5b 9d 00 04 	sw (sp+4),ra                                   
 8003d38:	b8 20 20 00 	mv r4,r1                                       
  const unsigned char *buf = _buf;                                    
 8003d3c:	b8 20 68 00 	mv r13,r1                                      
  unsigned int newHead;                                               
  rtems_interrupt_level level;                                        
  rtems_status_code sc;                                               
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {           
 8003d40:	28 61 00 b4 	lw r1,(r3+180)                                 
 * Send characters to device-specific code                            
 */                                                                   
void                                                                  
rtems_termios_puts (                                                  
  const void *_buf, int len, struct rtems_termios_tty *tty)           
{                                                                     
 8003d44:	b8 40 70 00 	mv r14,r2                                      
 8003d48:	b8 60 58 00 	mv r11,r3                                      
  const unsigned char *buf = _buf;                                    
  unsigned int newHead;                                               
  rtems_interrupt_level level;                                        
  rtems_status_code sc;                                               
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {           
 8003d4c:	5c 20 00 07 	bne r1,r0,8003d68 <rtems_termios_puts+0x58>    <== NEVER TAKEN
    (*tty->device.write)(tty->minor, (void *)buf, len);               
 8003d50:	28 65 00 a4 	lw r5,(r3+164)                                 
 8003d54:	28 61 00 10 	lw r1,(r3+16)                                  
 8003d58:	b8 80 10 00 	mv r2,r4                                       
 8003d5c:	b9 c0 18 00 	mv r3,r14                                      
 8003d60:	d8 a0 00 00 	call r5                                        
    return;                                                           
 8003d64:	e0 00 00 36 	bi 8003e3c <rtems_termios_puts+0x12c>          
  }                                                                   
  newHead = tty->rawOutBuf.Head;                                      
 8003d68:	28 6c 00 80 	lw r12,(r3+128)                                
     *                                                                
     * To minimize latency, the memcpy should be done                 
     * with interrupts enabled.                                       
     */                                                               
    newHead = (newHead + 1) % tty->rawOutBuf.Size;                    
    rtems_interrupt_disable (level);                                  
 8003d6c:	34 10 ff fe 	mvi r16,-2                                     
    while (newHead == tty->rawOutBuf.Tail) {                          
      tty->rawOutBufState = rob_wait;                                 
 8003d70:	34 12 00 02 	mvi r18,2                                      
      (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;                                 
 8003d74:	34 11 00 01 	mvi r17,1                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {           
    (*tty->device.write)(tty->minor, (void *)buf, len);               
    return;                                                           
  }                                                                   
  newHead = tty->rawOutBuf.Head;                                      
  while (len) {                                                       
 8003d78:	e0 00 00 30 	bi 8003e38 <rtems_termios_puts+0x128>          
     *  len -= ncopy                                                  
     *                                                                
     * To minimize latency, the memcpy should be done                 
     * with interrupts enabled.                                       
     */                                                               
    newHead = (newHead + 1) % tty->rawOutBuf.Size;                    
 8003d7c:	29 62 00 88 	lw r2,(r11+136)                                
 8003d80:	35 81 00 01 	addi r1,r12,1                                  
 8003d84:	f8 00 74 bd 	calli 8021078 <__umodsi3>                      
 8003d88:	b8 20 60 00 	mv r12,r1                                      
    rtems_interrupt_disable (level);                                  
 8003d8c:	90 00 78 00 	rcsr r15,IE                                    
 8003d90:	a1 f0 08 00 	and r1,r15,r16                                 
 8003d94:	d0 01 00 00 	wcsr IE,r1                                     
    while (newHead == tty->rawOutBuf.Tail) {                          
 8003d98:	e0 00 00 0c 	bi 8003dc8 <rtems_termios_puts+0xb8>           
      tty->rawOutBufState = rob_wait;                                 
 8003d9c:	59 72 00 94 	sw (r11+148),r18                               
      rtems_interrupt_enable (level);                                 
 8003da0:	d0 0f 00 00 	wcsr IE,r15                                    
      sc = rtems_semaphore_obtain(                                    
 8003da4:	29 61 00 8c 	lw r1,(r11+140)                                
 8003da8:	34 02 00 00 	mvi r2,0                                       
 8003dac:	34 03 00 00 	mvi r3,0                                       
 8003db0:	f8 00 07 25 	calli 8005a44 <rtems_semaphore_obtain>         
        tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);      
      if (sc != RTEMS_SUCCESSFUL)                                     
 8003db4:	44 20 00 02 	be r1,r0,8003dbc <rtems_termios_puts+0xac>     <== ALWAYS TAKEN
        rtems_fatal_error_occurred (sc);                              
 8003db8:	f8 00 09 64 	calli 8006348 <rtems_fatal_error_occurred>     <== NOT EXECUTED
      rtems_interrupt_disable (level);                                
 8003dbc:	90 00 78 00 	rcsr r15,IE                                    
 8003dc0:	a1 f0 08 00 	and r1,r15,r16                                 
 8003dc4:	d0 01 00 00 	wcsr IE,r1                                     
     * 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) {                          
 8003dc8:	29 61 00 84 	lw r1,(r11+132)                                
 8003dcc:	45 81 ff f4 	be r12,r1,8003d9c <rtems_termios_puts+0x8c>    
        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++;              
 8003dd0:	29 61 00 80 	lw r1,(r11+128)                                
 8003dd4:	29 62 00 7c 	lw r2,(r11+124)                                
 8003dd8:	b4 41 08 00 	add r1,r2,r1                                   
 8003ddc:	41 a2 00 00 	lbu r2,(r13+0)                                 
 8003de0:	35 ad 00 01 	addi r13,r13,1                                 
 8003de4:	30 22 00 00 	sb (r1+0),r2                                   
    tty->rawOutBuf.Head = newHead;                                    
    if (tty->rawOutBufState == rob_idle) {                            
 8003de8:	29 61 00 94 	lw r1,(r11+148)                                
      if (sc != RTEMS_SUCCESSFUL)                                     
        rtems_fatal_error_occurred (sc);                              
      rtems_interrupt_disable (level);                                
    }                                                                 
    tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++;              
    tty->rawOutBuf.Head = newHead;                                    
 8003dec:	59 6c 00 80 	sw (r11+128),r12                               
    if (tty->rawOutBufState == rob_idle) {                            
 8003df0:	5c 20 00 10 	bne r1,r0,8003e30 <rtems_termios_puts+0x120>   
      /* check, whether XOFF has been received */                     
      if (!(tty->flow_ctrl & FL_ORCVXOF)) {                           
 8003df4:	29 62 00 b8 	lw r2,(r11+184)                                
 8003df8:	20 42 00 10 	andi r2,r2,0x10                                
 8003dfc:	5c 41 00 09 	bne r2,r1,8003e20 <rtems_termios_puts+0x110>   <== NEVER TAKEN
        (*tty->device.write)(tty->minor,                              
 8003e00:	29 63 00 7c 	lw r3,(r11+124)                                
      (char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1);         
 8003e04:	29 62 00 84 	lw r2,(r11+132)                                
    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,                              
 8003e08:	29 64 00 a4 	lw r4,(r11+164)                                
 8003e0c:	29 61 00 10 	lw r1,(r11+16)                                 
 8003e10:	b4 62 10 00 	add r2,r3,r2                                   
 8003e14:	34 03 00 01 	mvi r3,1                                       
 8003e18:	d8 80 00 00 	call r4                                        
 8003e1c:	e0 00 00 04 	bi 8003e2c <rtems_termios_puts+0x11c>          
      (char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1);         
      } else {                                                        
        /* remember that output has been stopped due to flow ctrl*/   
        tty->flow_ctrl |= FL_OSTOP;                                   
 8003e20:	29 61 00 b8 	lw r1,(r11+184)                                <== NOT EXECUTED
 8003e24:	38 21 00 20 	ori r1,r1,0x20                                 <== NOT EXECUTED
 8003e28:	59 61 00 b8 	sw (r11+184),r1                                <== NOT EXECUTED
      }                                                               
      tty->rawOutBufState = rob_busy;                                 
 8003e2c:	59 71 00 94 	sw (r11+148),r17                               
    }                                                                 
    rtems_interrupt_enable (level);                                   
 8003e30:	d0 0f 00 00 	wcsr IE,r15                                    
    len--;                                                            
 8003e34:	35 ce ff ff 	addi r14,r14,-1                                
  if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {           
    (*tty->device.write)(tty->minor, (void *)buf, len);               
    return;                                                           
  }                                                                   
  newHead = tty->rawOutBuf.Head;                                      
  while (len) {                                                       
 8003e38:	5d c0 ff d1 	bne r14,r0,8003d7c <rtems_termios_puts+0x6c>   
      tty->rawOutBufState = rob_busy;                                 
    }                                                                 
    rtems_interrupt_enable (level);                                   
    len--;                                                            
  }                                                                   
}                                                                     
 8003e3c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003e40:	2b 8b 00 24 	lw r11,(sp+36)                                 
 8003e44:	2b 8c 00 20 	lw r12,(sp+32)                                 
 8003e48:	2b 8d 00 1c 	lw r13,(sp+28)                                 
 8003e4c:	2b 8e 00 18 	lw r14,(sp+24)                                 
 8003e50:	2b 8f 00 14 	lw r15,(sp+20)                                 
 8003e54:	2b 90 00 10 	lw r16,(sp+16)                                 
 8003e58:	2b 91 00 0c 	lw r17,(sp+12)                                 
 8003e5c:	2b 92 00 08 	lw r18,(sp+8)                                  
 8003e60:	37 9c 00 24 	addi sp,sp,36                                  
 8003e64:	c3 a0 00 00 	ret                                            
                                                                      

08004588 <rtems_termios_read>: return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) {
 8004588:	37 9c ff cc 	addi sp,sp,-52                                 
 800458c:	5b 8b 00 34 	sw (sp+52),r11                                 
 8004590:	5b 8c 00 30 	sw (sp+48),r12                                 
 8004594:	5b 8d 00 2c 	sw (sp+44),r13                                 
 8004598:	5b 8e 00 28 	sw (sp+40),r14                                 
 800459c:	5b 8f 00 24 	sw (sp+36),r15                                 
 80045a0:	5b 90 00 20 	sw (sp+32),r16                                 
 80045a4:	5b 91 00 1c 	sw (sp+28),r17                                 
 80045a8:	5b 92 00 18 	sw (sp+24),r18                                 
 80045ac:	5b 93 00 14 	sw (sp+20),r19                                 
 80045b0:	5b 94 00 10 	sw (sp+16),r20                                 
 80045b4:	5b 95 00 0c 	sw (sp+12),r21                                 
 80045b8:	5b 96 00 08 	sw (sp+8),r22                                  
 80045bc:	5b 9d 00 04 	sw (sp+4),ra                                   
 80045c0:	b8 20 60 00 	mv r12,r1                                      
  rtems_libio_rw_args_t *args = arg;                                  
  struct rtems_termios_tty *tty = args->iop->data1;                   
 80045c4:	28 21 00 00 	lw r1,(r1+0)                                   
  uint32_t   count = args->count;                                     
  char      *buffer = args->buffer;                                   
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
 80045c8:	34 02 00 00 	mvi r2,0                                       
 80045cc:	34 03 00 00 	mvi r3,0                                       
                                                                      
rtems_status_code                                                     
rtems_termios_read (void *arg)                                        
{                                                                     
  rtems_libio_rw_args_t *args = arg;                                  
  struct rtems_termios_tty *tty = args->iop->data1;                   
 80045d0:	28 2b 00 38 	lw r11,(r1+56)                                 
  uint32_t   count = args->count;                                     
 80045d4:	29 8f 00 14 	lw r15,(r12+20)                                
  char      *buffer = args->buffer;                                   
 80045d8:	29 91 00 10 	lw r17,(r12+16)                                
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
 80045dc:	29 61 00 14 	lw r1,(r11+20)                                 
 80045e0:	f8 00 05 19 	calli 8005a44 <rtems_semaphore_obtain>         
 80045e4:	b8 20 70 00 	mv r14,r1                                      
  if (sc != RTEMS_SUCCESSFUL)                                         
 80045e8:	5c 20 00 ad 	bne r1,r0,800489c <rtems_termios_read+0x314>   <== NEVER TAKEN
    return sc;                                                        
                                                                      
  if (rtems_termios_linesw[tty->t_line].l_read != NULL) {             
 80045ec:	29 61 00 cc 	lw r1,(r11+204)                                
 80045f0:	78 0d 08 02 	mvhi r13,0x802                                 
 80045f4:	34 02 00 05 	mvi r2,5                                       
 80045f8:	fb ff f0 e6 	calli 8000990 <__ashlsi3>                      
 80045fc:	39 ad 47 18 	ori r13,r13,0x4718                             
 8004600:	b5 a1 08 00 	add r1,r13,r1                                  
 8004604:	28 23 00 08 	lw r3,(r1+8)                                   
 8004608:	44 6e 00 06 	be r3,r14,8004620 <rtems_termios_read+0x98>    
    sc = rtems_termios_linesw[tty->t_line].l_read(tty,args);          
 800460c:	b9 60 08 00 	mv r1,r11                                      
 8004610:	b9 80 10 00 	mv r2,r12                                      
 8004614:	d8 60 00 00 	call r3                                        
 8004618:	b8 20 70 00 	mv r14,r1                                      
 800461c:	e0 00 00 9d 	bi 8004890 <rtems_termios_read+0x308>          
    tty->tty_rcvwakeup = 0;                                           
    rtems_semaphore_release (tty->isem);                              
    return sc;                                                        
  }                                                                   
                                                                      
  if (tty->cindex == tty->ccount) {                                   
 8004620:	29 62 00 24 	lw r2,(r11+36)                                 
 8004624:	29 61 00 20 	lw r1,(r11+32)                                 
 8004628:	5c 41 00 93 	bne r2,r1,8004874 <rtems_termios_read+0x2ec>   <== NEVER TAKEN
    tty->cindex = tty->ccount = 0;                                    
    tty->read_start_column = tty->column;                             
 800462c:	29 61 00 28 	lw r1,(r11+40)                                 
    rtems_semaphore_release (tty->isem);                              
    return sc;                                                        
  }                                                                   
                                                                      
  if (tty->cindex == tty->ccount) {                                   
    tty->cindex = tty->ccount = 0;                                    
 8004630:	59 60 00 20 	sw (r11+32),r0                                 
 8004634:	59 60 00 24 	sw (r11+36),r0                                 
    tty->read_start_column = tty->column;                             
 8004638:	59 61 00 2c 	sw (r11+44),r1                                 
    if (tty->device.pollRead != NULL &&                               
 800463c:	29 61 00 a0 	lw r1,(r11+160)                                
 8004640:	44 20 00 31 	be r1,r0,8004704 <rtems_termios_read+0x17c>    
 8004644:	29 61 00 b4 	lw r1,(r11+180)                                
 8004648:	5c 20 00 2f 	bne r1,r0,8004704 <rtems_termios_read+0x17c>   
static rtems_status_code                                              
fillBufferPoll (struct rtems_termios_tty *tty)                        
{                                                                     
  int n;                                                              
                                                                      
  if (tty->termios.c_lflag & ICANON) {                                
 800464c:	29 61 00 3c 	lw r1,(r11+60)                                 
 8004650:	20 21 00 02 	andi r1,r1,0x2                                 
 8004654:	44 20 00 0d 	be r1,r0,8004688 <rtems_termios_read+0x100>    
    for (;;) {                                                        
      n = (*tty->device.pollRead)(tty->minor);                        
 8004658:	29 62 00 a0 	lw r2,(r11+160)                                
 800465c:	29 61 00 10 	lw r1,(r11+16)                                 
 8004660:	d8 40 00 00 	call r2                                        
      if (n < 0) {                                                    
 8004664:	4c 20 00 04 	bge r1,r0,8004674 <rtems_termios_read+0xec>    
        rtems_task_wake_after (1);                                    
 8004668:	34 01 00 01 	mvi r1,1                                       
 800466c:	f8 00 06 4c 	calli 8005f9c <rtems_task_wake_after>          
 8004670:	e3 ff ff fa 	bi 8004658 <rtems_termios_read+0xd0>           
      } else {                                                        
        if  (siproc (n, tty))                                         
 8004674:	20 21 00 ff 	andi r1,r1,0xff                                
 8004678:	b9 60 10 00 	mv r2,r11                                      
 800467c:	fb ff ff 6b 	calli 8004428 <siproc>                         
 8004680:	44 20 ff f6 	be r1,r0,8004658 <rtems_termios_read+0xd0>     
 8004684:	e0 00 00 7c 	bi 8004874 <rtems_termios_read+0x2ec>          
      }                                                               
    }                                                                 
  } else {                                                            
    rtems_interval then, now;                                         
                                                                      
    then = rtems_clock_get_ticks_since_boot();                        
 8004688:	f8 00 03 26 	calli 8005320 <rtems_clock_get_ticks_since_boot>
 800468c:	b8 20 68 00 	mv r13,r1                                      
    for (;;) {                                                        
      n = (*tty->device.pollRead)(tty->minor);                        
 8004690:	29 62 00 a0 	lw r2,(r11+160)                                
 8004694:	29 61 00 10 	lw r1,(r11+16)                                 
 8004698:	d8 40 00 00 	call r2                                        
      if (n < 0) {                                                    
 800469c:	4c 20 00 10 	bge r1,r0,80046dc <rtems_termios_read+0x154>   
        if (tty->termios.c_cc[VMIN]) {                                
 80046a0:	41 61 00 47 	lbu r1,(r11+71)                                
 80046a4:	41 62 00 46 	lbu r2,(r11+70)                                
 80046a8:	44 20 00 05 	be r1,r0,80046bc <rtems_termios_read+0x134>    <== NEVER TAKEN
          if (tty->termios.c_cc[VTIME] && tty->ccount) {              
 80046ac:	44 40 00 09 	be r2,r0,80046d0 <rtems_termios_read+0x148>    <== NEVER TAKEN
 80046b0:	29 61 00 20 	lw r1,(r11+32)                                 
 80046b4:	44 20 00 07 	be r1,r0,80046d0 <rtems_termios_read+0x148>    
 80046b8:	e0 00 00 02 	bi 80046c0 <rtems_termios_read+0x138>          
            if ((now - then) > tty->vtimeTicks) {                     
              break;                                                  
            }                                                         
          }                                                           
        } else {                                                      
          if (!tty->termios.c_cc[VTIME])                              
 80046bc:	44 41 00 6e 	be r2,r1,8004874 <rtems_termios_read+0x2ec>    <== NOT EXECUTED
            break;                                                    
          now = rtems_clock_get_ticks_since_boot();                   
 80046c0:	f8 00 03 18 	calli 8005320 <rtems_clock_get_ticks_since_boot>
          if ((now - then) > tty->vtimeTicks) {                       
 80046c4:	29 62 00 54 	lw r2,(r11+84)                                 
 80046c8:	c8 2d 08 00 	sub r1,r1,r13                                  
 80046cc:	54 22 00 6a 	bgu r1,r2,8004874 <rtems_termios_read+0x2ec>   
            break;                                                    
          }                                                           
        }                                                             
        rtems_task_wake_after (1);                                    
 80046d0:	34 01 00 01 	mvi r1,1                                       
 80046d4:	f8 00 06 32 	calli 8005f9c <rtems_task_wake_after>          
 80046d8:	e3 ff ff ee 	bi 8004690 <rtems_termios_read+0x108>          
      } else {                                                        
        siproc (n, tty);                                              
 80046dc:	b9 60 10 00 	mv r2,r11                                      
 80046e0:	20 21 00 ff 	andi r1,r1,0xff                                
 80046e4:	fb ff ff 51 	calli 8004428 <siproc>                         
        if (tty->ccount >= tty->termios.c_cc[VMIN])                   
 80046e8:	41 61 00 47 	lbu r1,(r11+71)                                
 80046ec:	29 62 00 20 	lw r2,(r11+32)                                 
 80046f0:	4c 41 00 61 	bge r2,r1,8004874 <rtems_termios_read+0x2ec>   <== NEVER TAKEN
          break;                                                      
        if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME])      
 80046f4:	44 20 ff e7 	be r1,r0,8004690 <rtems_termios_read+0x108>    <== NEVER TAKEN
 80046f8:	41 61 00 46 	lbu r1,(r11+70)                                
 80046fc:	44 20 ff e5 	be r1,r0,8004690 <rtems_termios_read+0x108>    <== NEVER TAKEN
 8004700:	e3 ff ff e2 	bi 8004688 <rtems_termios_read+0x100>          
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
                       (tty->ccount < (CBUFSIZE-1))) {                
 8004704:	78 10 08 02 	mvhi r16,0x802                                 
 * Fill the input buffer from the raw input queue                     
 */                                                                   
static rtems_status_code                                              
fillBufferQueue (struct rtems_termios_tty *tty)                       
{                                                                     
  rtems_interval timeout = tty->rawInBufSemaphoreFirstTimeout;        
 8004708:	29 72 00 74 	lw r18,(r11+116)                               
  rtems_status_code sc;                                               
  int               wait = (int)1;                                    
 800470c:	34 0d 00 01 	mvi r13,1                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
                       (tty->ccount < (CBUFSIZE-1))) {                
 8004710:	3a 10 41 8c 	ori r16,r16,0x418c                             
      c = tty->rawInBuf.theBuf[newHead];                              
      tty->rawInBuf.Head = newHead;                                   
      if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size)             
          % tty->rawInBuf.Size)                                       
         < tty->lowwater) {                                           
        tty->flow_ctrl &= ~FL_IREQXOF;                                
 8004714:	34 16 ff fe 	mvi r22,-2                                     
        /* if tx stopped and XON should be sent... */                 
        if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF))               
 8004718:	34 15 02 02 	mvi r21,514                                    
          || (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;                              
 800471c:	34 14 ff fb 	mvi r20,-5                                     
        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)(                                       
 8004720:	35 73 00 49 	addi r19,r11,73                                
 8004724:	e0 00 00 3e 	bi 800481c <rtems_termios_read+0x294>          
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
                       (tty->ccount < (CBUFSIZE-1))) {                
      unsigned char c;                                                
      unsigned int newHead;                                           
                                                                      
      newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size;        
 8004728:	29 61 00 5c 	lw r1,(r11+92)                                 
 800472c:	29 62 00 64 	lw r2,(r11+100)                                
 8004730:	34 21 00 01 	addi r1,r1,1                                   
 8004734:	f8 00 72 51 	calli 8021078 <__umodsi3>                      
 8004738:	b8 20 18 00 	mv r3,r1                                       
      c = tty->rawInBuf.theBuf[newHead];                              
 800473c:	29 61 00 58 	lw r1,(r11+88)                                 
 8004740:	b4 23 08 00 	add r1,r1,r3                                   
 8004744:	40 32 00 00 	lbu r18,(r1+0)                                 
      tty->rawInBuf.Head = newHead;                                   
 8004748:	59 63 00 5c 	sw (r11+92),r3                                 
      if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size)             
 800474c:	29 61 00 60 	lw r1,(r11+96)                                 
 8004750:	29 64 00 64 	lw r4,(r11+100)                                
          % tty->rawInBuf.Size)                                       
 8004754:	29 62 00 64 	lw r2,(r11+100)                                
      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)             
 8004758:	b4 81 08 00 	add r1,r4,r1                                   
          % tty->rawInBuf.Size)                                       
 800475c:	c8 23 08 00 	sub r1,r1,r3                                   
 8004760:	f8 00 72 46 	calli 8021078 <__umodsi3>                      
      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)             
 8004764:	29 62 00 bc 	lw r2,(r11+188)                                
 8004768:	50 22 00 1c 	bgeu r1,r2,80047d8 <rtems_termios_read+0x250>  <== NEVER TAKEN
          % tty->rawInBuf.Size)                                       
         < tty->lowwater) {                                           
        tty->flow_ctrl &= ~FL_IREQXOF;                                
 800476c:	29 61 00 b8 	lw r1,(r11+184)                                
 8004770:	a0 36 08 00 	and r1,r1,r22                                  
 8004774:	59 61 00 b8 	sw (r11+184),r1                                
        /* if tx stopped and XON should be sent... */                 
        if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF))               
 8004778:	29 61 00 b8 	lw r1,(r11+184)                                
 800477c:	20 21 02 02 	andi r1,r1,0x202                               
 8004780:	5c 35 00 0c 	bne r1,r21,80047b0 <rtems_termios_read+0x228>  <== ALWAYS TAKEN
             ==                (FL_MDXON | FL_ISNTXOF))               
            && ((tty->rawOutBufState == rob_idle)                     
 8004784:	29 61 00 94 	lw r1,(r11+148)                                <== NOT EXECUTED
 8004788:	44 20 00 04 	be r1,r0,8004798 <rtems_termios_read+0x210>    <== NOT EXECUTED
          || (tty->flow_ctrl & FL_OSTOP))) {                          
 800478c:	29 61 00 b8 	lw r1,(r11+184)                                <== NOT EXECUTED
 8004790:	20 21 00 20 	andi r1,r1,0x20                                <== NOT EXECUTED
 8004794:	44 20 00 07 	be r1,r0,80047b0 <rtems_termios_read+0x228>    <== NOT EXECUTED
          /* XON should be sent now... */                             
          (*tty->device.write)(                                       
 8004798:	29 64 00 a4 	lw r4,(r11+164)                                <== NOT EXECUTED
 800479c:	29 61 00 10 	lw r1,(r11+16)                                 <== NOT EXECUTED
 80047a0:	ba 60 10 00 	mv r2,r19                                      <== NOT EXECUTED
 80047a4:	34 03 00 01 	mvi r3,1                                       <== NOT EXECUTED
 80047a8:	d8 80 00 00 	call r4                                        <== NOT EXECUTED
 80047ac:	e0 00 00 0b 	bi 80047d8 <rtems_termios_read+0x250>          <== NOT EXECUTED
            tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1);     
        } else if (tty->flow_ctrl & FL_MDRTS) {                       
 80047b0:	29 61 00 b8 	lw r1,(r11+184)                                
 80047b4:	20 21 01 00 	andi r1,r1,0x100                               
 80047b8:	44 20 00 08 	be r1,r0,80047d8 <rtems_termios_read+0x250>    <== ALWAYS TAKEN
          tty->flow_ctrl &= ~FL_IRTSOFF;                              
 80047bc:	29 61 00 b8 	lw r1,(r11+184)                                <== NOT EXECUTED
          /* activate RTS line */                                     
          if (tty->device.startRemoteTx != NULL) {                    
 80047c0:	29 63 00 b0 	lw r3,(r11+176)                                <== 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;                              
 80047c4:	a0 34 08 00 	and r1,r1,r20                                  <== NOT EXECUTED
 80047c8:	59 61 00 b8 	sw (r11+184),r1                                <== NOT EXECUTED
          /* activate RTS line */                                     
          if (tty->device.startRemoteTx != NULL) {                    
 80047cc:	44 60 00 03 	be r3,r0,80047d8 <rtems_termios_read+0x250>    <== NOT EXECUTED
            tty->device.startRemoteTx(tty->minor);                    
 80047d0:	29 61 00 10 	lw r1,(r11+16)                                 <== NOT EXECUTED
 80047d4:	d8 60 00 00 	call r3                                        <== NOT EXECUTED
          }                                                           
        }                                                             
      }                                                               
                                                                      
      /* continue processing new character */                         
      if (tty->termios.c_lflag & ICANON) {                            
 80047d8:	29 61 00 3c 	lw r1,(r11+60)                                 
 80047dc:	20 21 00 02 	andi r1,r1,0x2                                 
 80047e0:	44 20 00 06 	be r1,r0,80047f8 <rtems_termios_read+0x270>    <== NEVER TAKEN
        if (siproc (c, tty))                                          
 80047e4:	ba 40 08 00 	mv r1,r18                                      
 80047e8:	b9 60 10 00 	mv r2,r11                                      
 80047ec:	fb ff ff 0f 	calli 8004428 <siproc>                         
          wait = 0;                                                   
 80047f0:	64 21 00 00 	cmpei r1,r1,0                                  
 80047f4:	e0 00 00 07 	bi 8004810 <rtems_termios_read+0x288>          
      } else {                                                        
        siproc (c, tty);                                              
 80047f8:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 80047fc:	ba 40 08 00 	mv r1,r18                                      <== NOT EXECUTED
 8004800:	fb ff ff 0a 	calli 8004428 <siproc>                         <== NOT EXECUTED
        if (tty->ccount >= tty->termios.c_cc[VMIN])                   
 8004804:	41 61 00 47 	lbu r1,(r11+71)                                <== NOT EXECUTED
 8004808:	29 62 00 20 	lw r2,(r11+32)                                 <== NOT EXECUTED
          wait = 0;                                                   
 800480c:	e8 22 08 00 	cmpg r1,r1,r2                                  <== NOT EXECUTED
      }                                                               
      timeout = tty->rawInBufSemaphoreTimeout;                        
 8004810:	29 72 00 70 	lw r18,(r11+112)                               
        if (siproc (c, tty))                                          
          wait = 0;                                                   
      } else {                                                        
        siproc (c, tty);                                              
        if (tty->ccount >= tty->termios.c_cc[VMIN])                   
          wait = 0;                                                   
 8004814:	c8 01 08 00 	sub r1,r0,r1                                   
 8004818:	a1 a1 68 00 	and r13,r13,r1                                 
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
 800481c:	29 62 00 5c 	lw r2,(r11+92)                                 
 8004820:	29 61 00 60 	lw r1,(r11+96)                                 
 8004824:	44 41 00 05 	be r2,r1,8004838 <rtems_termios_read+0x2b0>    
                       (tty->ccount < (CBUFSIZE-1))) {                
 8004828:	2a 01 00 00 	lw r1,(r16+0)                                  
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
 800482c:	29 62 00 20 	lw r2,(r11+32)                                 
                       (tty->ccount < (CBUFSIZE-1))) {                
 8004830:	34 21 ff ff 	addi r1,r1,-1                                  
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
 8004834:	48 22 ff bd 	bg r1,r2,8004728 <rtems_termios_read+0x1a0>    <== ALWAYS TAKEN
    }                                                                 
                                                                      
    /*                                                                
     * Wait for characters                                            
     */                                                               
    if ( wait ) {                                                     
 8004838:	45 a0 00 0f 	be r13,r0,8004874 <rtems_termios_read+0x2ec>   
      sc = rtems_semaphore_obtain(                                    
 800483c:	29 61 00 68 	lw r1,(r11+104)                                
 8004840:	29 62 00 6c 	lw r2,(r11+108)                                
 8004844:	ba 40 18 00 	mv r3,r18                                      
 8004848:	f8 00 04 7f 	calli 8005a44 <rtems_semaphore_obtain>         
        tty->rawInBuf.Semaphore, tty->rawInBufSemaphoreOptions, timeout);
      if (sc != RTEMS_SUCCESSFUL)                                     
 800484c:	44 20 ff f4 	be r1,r0,800481c <rtems_termios_read+0x294>    <== ALWAYS TAKEN
 8004850:	e0 00 00 09 	bi 8004874 <rtems_termios_read+0x2ec>          <== NOT EXECUTED
                                                                      
    if (sc != RTEMS_SUCCESSFUL)                                       
      tty->cindex = tty->ccount = 0;                                  
  }                                                                   
  while (count && (tty->cindex < tty->ccount)) {                      
    *buffer++ = tty->cbuf[tty->cindex++];                             
 8004854:	29 62 00 1c 	lw r2,(r11+28)                                 
    count--;                                                          
 8004858:	35 ef ff ff 	addi r15,r15,-1                                
                                                                      
    if (sc != RTEMS_SUCCESSFUL)                                       
      tty->cindex = tty->ccount = 0;                                  
  }                                                                   
  while (count && (tty->cindex < tty->ccount)) {                      
    *buffer++ = tty->cbuf[tty->cindex++];                             
 800485c:	b4 41 10 00 	add r2,r2,r1                                   
 8004860:	40 42 00 00 	lbu r2,(r2+0)                                  
 8004864:	34 21 00 01 	addi r1,r1,1                                   
 8004868:	32 22 00 00 	sb (r17+0),r2                                  
 800486c:	59 61 00 24 	sw (r11+36),r1                                 
 8004870:	36 31 00 01 	addi r17,r17,1                                 
      sc = fillBufferQueue (tty);                                     
                                                                      
    if (sc != RTEMS_SUCCESSFUL)                                       
      tty->cindex = tty->ccount = 0;                                  
  }                                                                   
  while (count && (tty->cindex < tty->ccount)) {                      
 8004874:	45 e0 00 04 	be r15,r0,8004884 <rtems_termios_read+0x2fc>   
 8004878:	29 61 00 24 	lw r1,(r11+36)                                 
 800487c:	29 62 00 20 	lw r2,(r11+32)                                 
 8004880:	48 41 ff f5 	bg r2,r1,8004854 <rtems_termios_read+0x2cc>    
    *buffer++ = tty->cbuf[tty->cindex++];                             
    count--;                                                          
  }                                                                   
  args->bytes_moved = args->count - count;                            
 8004884:	29 81 00 14 	lw r1,(r12+20)                                 
 8004888:	c8 2f 78 00 	sub r15,r1,r15                                 
 800488c:	59 8f 00 1c 	sw (r12+28),r15                                
  tty->tty_rcvwakeup = 0;                                             
  rtems_semaphore_release (tty->isem);                                
 8004890:	29 61 00 14 	lw r1,(r11+20)                                 
  while (count && (tty->cindex < tty->ccount)) {                      
    *buffer++ = tty->cbuf[tty->cindex++];                             
    count--;                                                          
  }                                                                   
  args->bytes_moved = args->count - count;                            
  tty->tty_rcvwakeup = 0;                                             
 8004894:	59 60 00 e4 	sw (r11+228),r0                                
  rtems_semaphore_release (tty->isem);                                
 8004898:	f8 00 04 bb 	calli 8005b84 <rtems_semaphore_release>        
  return sc;                                                          
}                                                                     
 800489c:	b9 c0 08 00 	mv r1,r14                                      
 80048a0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80048a4:	2b 8b 00 34 	lw r11,(sp+52)                                 
 80048a8:	2b 8c 00 30 	lw r12,(sp+48)                                 
 80048ac:	2b 8d 00 2c 	lw r13,(sp+44)                                 
 80048b0:	2b 8e 00 28 	lw r14,(sp+40)                                 
 80048b4:	2b 8f 00 24 	lw r15,(sp+36)                                 
 80048b8:	2b 90 00 20 	lw r16,(sp+32)                                 
 80048bc:	2b 91 00 1c 	lw r17,(sp+28)                                 
 80048c0:	2b 92 00 18 	lw r18,(sp+24)                                 
 80048c4:	2b 93 00 14 	lw r19,(sp+20)                                 
 80048c8:	2b 94 00 10 	lw r20,(sp+16)                                 
 80048cc:	2b 95 00 0c 	lw r21,(sp+12)                                 
 80048d0:	2b 96 00 08 	lw r22,(sp+8)                                  
 80048d4:	37 9c 00 34 	addi sp,sp,52                                  
 80048d8:	c3 a0 00 00 	ret                                            
                                                                      

08004c9c <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) {
 8004c9c:	37 9c ff f0 	addi sp,sp,-16                                 
 8004ca0:	5b 8b 00 10 	sw (sp+16),r11                                 
 8004ca4:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8004ca8:	5b 8d 00 08 	sw (sp+8),r13                                  
 8004cac:	5b 9d 00 04 	sw (sp+4),ra                                   
  int nToSend;                                                        
  rtems_interrupt_level level;                                        
  int len;                                                            
                                                                      
  /* check for XOF/XON to send */                                     
  if ((tty->flow_ctrl & (FL_MDXOF | FL_IREQXOF | FL_ISNTXOF))         
 8004cb0:	28 22 00 b8 	lw r2,(r1+184)                                 
 * 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)      
{                                                                     
 8004cb4:	b8 20 58 00 	mv r11,r1                                      
  int nToSend;                                                        
  rtems_interrupt_level level;                                        
  int len;                                                            
                                                                      
  /* check for XOF/XON to send */                                     
  if ((tty->flow_ctrl & (FL_MDXOF | FL_IREQXOF | FL_ISNTXOF))         
 8004cb8:	34 01 04 01 	mvi r1,1025                                    
 8004cbc:	20 42 04 03 	andi r2,r2,0x403                               
 8004cc0:	5c 41 00 12 	bne r2,r1,8004d08 <rtems_termios_refill_transmitter+0x6c><== ALWAYS TAKEN
      == (FL_MDXOF | FL_IREQXOF)) {                                   
    /* XOFF should be sent now... */                                  
    (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTOP]), 1);
 8004cc4:	29 64 00 a4 	lw r4,(r11+164)                                <== NOT EXECUTED
 8004cc8:	29 61 00 10 	lw r1,(r11+16)                                 <== NOT EXECUTED
 8004ccc:	35 62 00 4a 	addi r2,r11,74                                 <== NOT EXECUTED
 8004cd0:	34 03 00 01 	mvi r3,1                                       <== NOT EXECUTED
 8004cd4:	d8 80 00 00 	call r4                                        <== NOT EXECUTED
                                                                      
    rtems_interrupt_disable(level);                                   
 8004cd8:	90 00 08 00 	rcsr r1,IE                                     <== NOT EXECUTED
 8004cdc:	34 02 ff fe 	mvi r2,-2                                      <== NOT EXECUTED
 8004ce0:	a0 22 10 00 	and r2,r1,r2                                   <== NOT EXECUTED
 8004ce4:	d0 02 00 00 	wcsr IE,r2                                     <== NOT EXECUTED
    tty->t_dqlen--;                                                   
 8004ce8:	29 62 00 90 	lw r2,(r11+144)                                <== NOT EXECUTED
 8004cec:	34 42 ff ff 	addi r2,r2,-1                                  <== NOT EXECUTED
 8004cf0:	59 62 00 90 	sw (r11+144),r2                                <== NOT EXECUTED
    tty->flow_ctrl |= FL_ISNTXOF;                                     
 8004cf4:	29 62 00 b8 	lw r2,(r11+184)                                <== NOT EXECUTED
 8004cf8:	38 42 00 02 	ori r2,r2,0x2                                  <== NOT EXECUTED
 8004cfc:	59 62 00 b8 	sw (r11+184),r2                                <== NOT EXECUTED
    rtems_interrupt_enable(level);                                    
 8004d00:	d0 01 00 00 	wcsr IE,r1                                     <== NOT EXECUTED
 8004d04:	e0 00 00 16 	bi 8004d5c <rtems_termios_refill_transmitter+0xc0><== NOT EXECUTED
                                                                      
    nToSend = 1;                                                      
                                                                      
  } else if ((tty->flow_ctrl & (FL_IREQXOF | FL_ISNTXOF)) == FL_ISNTXOF) {
 8004d08:	29 62 00 b8 	lw r2,(r11+184)                                
 8004d0c:	34 01 00 02 	mvi r1,2                                       
 8004d10:	20 42 00 03 	andi r2,r2,0x3                                 
 8004d14:	5c 41 00 14 	bne r2,r1,8004d64 <rtems_termios_refill_transmitter+0xc8><== ALWAYS TAKEN
     * 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);
 8004d18:	29 64 00 a4 	lw r4,(r11+164)                                <== NOT EXECUTED
 8004d1c:	29 61 00 10 	lw r1,(r11+16)                                 <== NOT EXECUTED
 8004d20:	35 62 00 49 	addi r2,r11,73                                 <== NOT EXECUTED
 8004d24:	34 03 00 01 	mvi r3,1                                       <== NOT EXECUTED
 8004d28:	d8 80 00 00 	call r4                                        <== NOT EXECUTED
                                                                      
    rtems_interrupt_disable(level);                                   
 8004d2c:	90 00 08 00 	rcsr r1,IE                                     <== NOT EXECUTED
 8004d30:	34 02 ff fe 	mvi r2,-2                                      <== NOT EXECUTED
 8004d34:	a0 22 10 00 	and r2,r1,r2                                   <== NOT EXECUTED
 8004d38:	d0 02 00 00 	wcsr IE,r2                                     <== NOT EXECUTED
    tty->t_dqlen--;                                                   
 8004d3c:	29 62 00 90 	lw r2,(r11+144)                                <== NOT EXECUTED
    tty->flow_ctrl &= ~FL_ISNTXOF;                                    
 8004d40:	29 63 00 b8 	lw r3,(r11+184)                                <== 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--;                                                   
 8004d44:	34 42 ff ff 	addi r2,r2,-1                                  <== NOT EXECUTED
 8004d48:	59 62 00 90 	sw (r11+144),r2                                <== NOT EXECUTED
    tty->flow_ctrl &= ~FL_ISNTXOF;                                    
 8004d4c:	34 02 ff fd 	mvi r2,-3                                      <== NOT EXECUTED
 8004d50:	a0 62 10 00 	and r2,r3,r2                                   <== NOT EXECUTED
 8004d54:	59 62 00 b8 	sw (r11+184),r2                                <== NOT EXECUTED
    rtems_interrupt_enable(level);                                    
 8004d58:	d0 01 00 00 	wcsr IE,r1                                     <== NOT EXECUTED
                                                                      
    nToSend = 1;                                                      
 8004d5c:	34 0c 00 01 	mvi r12,1                                      <== NOT EXECUTED
 8004d60:	e0 00 00 49 	bi 8004e84 <rtems_termios_refill_transmitter+0x1e8><== NOT EXECUTED
  } else {                                                            
    if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) {               
 8004d64:	29 63 00 80 	lw r3,(r11+128)                                
 8004d68:	29 62 00 84 	lw r2,(r11+132)                                
 8004d6c:	5c 62 00 07 	bne r3,r2,8004d88 <rtems_termios_refill_transmitter+0xec>
      /*                                                              
       * buffer was empty                                             
       */                                                             
      if (tty->rawOutBufState == rob_wait) {                          
 8004d70:	29 62 00 94 	lw r2,(r11+148)                                
        /*                                                            
         * this should never happen...                                
         */                                                           
        rtems_semaphore_release (tty->rawOutBuf.Semaphore);           
      }                                                               
      return 0;                                                       
 8004d74:	34 0c 00 00 	mvi r12,0                                      
  } else {                                                            
    if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) {               
      /*                                                              
       * buffer was empty                                             
       */                                                             
      if (tty->rawOutBufState == rob_wait) {                          
 8004d78:	5c 41 00 43 	bne r2,r1,8004e84 <rtems_termios_refill_transmitter+0x1e8><== ALWAYS TAKEN
        /*                                                            
         * this should never happen...                                
         */                                                           
        rtems_semaphore_release (tty->rawOutBuf.Semaphore);           
 8004d7c:	29 61 00 8c 	lw r1,(r11+140)                                <== NOT EXECUTED
 8004d80:	f8 00 03 81 	calli 8005b84 <rtems_semaphore_release>        <== NOT EXECUTED
 8004d84:	e0 00 00 40 	bi 8004e84 <rtems_termios_refill_transmitter+0x1e8><== NOT EXECUTED
      }                                                               
      return 0;                                                       
    }                                                                 
                                                                      
    rtems_interrupt_disable(level);                                   
 8004d88:	90 00 10 00 	rcsr r2,IE                                     
 8004d8c:	34 01 ff fe 	mvi r1,-2                                      
 8004d90:	a0 41 08 00 	and r1,r2,r1                                   
 8004d94:	d0 01 00 00 	wcsr IE,r1                                     
    len = tty->t_dqlen;                                               
 8004d98:	29 63 00 90 	lw r3,(r11+144)                                
    tty->t_dqlen = 0;                                                 
 8004d9c:	59 60 00 90 	sw (r11+144),r0                                
    rtems_interrupt_enable(level);                                    
 8004da0:	d0 02 00 00 	wcsr IE,r2                                     
                                                                      
    newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size;      
 8004da4:	29 61 00 84 	lw r1,(r11+132)                                
 8004da8:	29 62 00 88 	lw r2,(r11+136)                                
 8004dac:	b4 61 08 00 	add r1,r3,r1                                   
 8004db0:	f8 00 70 b2 	calli 8021078 <__umodsi3>                      
    tty->rawOutBuf.Tail = newTail;                                    
    if (tty->rawOutBufState == rob_wait) {                            
 8004db4:	29 62 00 94 	lw r2,(r11+148)                                
    rtems_interrupt_disable(level);                                   
    len = tty->t_dqlen;                                               
    tty->t_dqlen = 0;                                                 
    rtems_interrupt_enable(level);                                    
                                                                      
    newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size;      
 8004db8:	b8 20 68 00 	mv r13,r1                                      
    tty->rawOutBuf.Tail = newTail;                                    
 8004dbc:	59 61 00 84 	sw (r11+132),r1                                
    if (tty->rawOutBufState == rob_wait) {                            
 8004dc0:	34 01 00 02 	mvi r1,2                                       
 8004dc4:	5c 41 00 03 	bne r2,r1,8004dd0 <rtems_termios_refill_transmitter+0x134>
      /*                                                              
       * wake up any pending writer task                              
       */                                                             
      rtems_semaphore_release (tty->rawOutBuf.Semaphore);             
 8004dc8:	29 61 00 8c 	lw r1,(r11+140)                                
 8004dcc:	f8 00 03 6e 	calli 8005b84 <rtems_semaphore_release>        
    }                                                                 
                                                                      
    if (newTail == tty->rawOutBuf.Head) {                             
 8004dd0:	29 61 00 80 	lw r1,(r11+128)                                
 8004dd4:	5d a1 00 09 	bne r13,r1,8004df8 <rtems_termios_refill_transmitter+0x15c>
      nToSend = 0;                                                    
                                                                      
      /*                                                              
       * check to see if snd wakeup callback was set                  
       */                                                             
      if ( tty->tty_snd.sw_pfn != NULL) {                             
 8004dd8:	29 63 00 d4 	lw r3,(r11+212)                                
                                                                      
    if (newTail == tty->rawOutBuf.Head) {                             
      /*                                                              
       * Buffer has become empty                                      
       */                                                             
      tty->rawOutBufState = rob_idle;                                 
 8004ddc:	59 60 00 94 	sw (r11+148),r0                                
      nToSend = 0;                                                    
 8004de0:	34 0c 00 00 	mvi r12,0                                      
                                                                      
      /*                                                              
       * check to see if snd wakeup callback was set                  
       */                                                             
      if ( tty->tty_snd.sw_pfn != NULL) {                             
 8004de4:	44 60 00 27 	be r3,r0,8004e80 <rtems_termios_refill_transmitter+0x1e4><== ALWAYS TAKEN
        (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg);   
 8004de8:	29 62 00 d8 	lw r2,(r11+216)                                <== NOT EXECUTED
 8004dec:	35 61 00 30 	addi r1,r11,48                                 <== NOT EXECUTED
 8004df0:	d8 60 00 00 	call r3                                        <== NOT EXECUTED
 8004df4:	e0 00 00 23 	bi 8004e80 <rtems_termios_refill_transmitter+0x1e4><== NOT EXECUTED
      }                                                               
    }                                                                 
    /* check, whether output should stop due to received XOFF */      
    else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF))               
 8004df8:	29 62 00 b8 	lw r2,(r11+184)                                
 8004dfc:	34 01 02 10 	mvi r1,528                                     
 8004e00:	20 42 02 10 	andi r2,r2,0x210                               
 8004e04:	5c 41 00 0d 	bne r2,r1,8004e38 <rtems_termios_refill_transmitter+0x19c><== ALWAYS TAKEN
       ==                (FL_MDXON | FL_ORCVXOF)) {                   
      /* Buffer not empty, but output stops due to XOFF */            
      /* set flag, that output has been stopped */                    
      rtems_interrupt_disable(level);                                 
 8004e08:	90 00 08 00 	rcsr r1,IE                                     <== NOT EXECUTED
 8004e0c:	34 02 ff fe 	mvi r2,-2                                      <== NOT EXECUTED
 8004e10:	a0 22 10 00 	and r2,r1,r2                                   <== NOT EXECUTED
 8004e14:	d0 02 00 00 	wcsr IE,r2                                     <== NOT EXECUTED
      tty->flow_ctrl |= FL_OSTOP;                                     
 8004e18:	29 62 00 b8 	lw r2,(r11+184)                                <== NOT EXECUTED
 8004e1c:	38 42 00 20 	ori r2,r2,0x20                                 <== NOT EXECUTED
 8004e20:	59 62 00 b8 	sw (r11+184),r2                                <== NOT EXECUTED
      tty->rawOutBufState = rob_busy; /*apm*/                         
 8004e24:	34 02 00 01 	mvi r2,1                                       <== NOT EXECUTED
 8004e28:	59 62 00 94 	sw (r11+148),r2                                <== NOT EXECUTED
      rtems_interrupt_enable(level);                                  
 8004e2c:	d0 01 00 00 	wcsr IE,r1                                     <== NOT EXECUTED
      nToSend = 0;                                                    
 8004e30:	34 0c 00 00 	mvi r12,0                                      <== NOT EXECUTED
 8004e34:	e0 00 00 13 	bi 8004e80 <rtems_termios_refill_transmitter+0x1e4><== NOT EXECUTED
    } else {                                                          
      /*                                                              
       * Buffer not empty, start tranmitter                           
       */                                                             
      if (newTail > tty->rawOutBuf.Head)                              
 8004e38:	29 61 00 80 	lw r1,(r11+128)                                
 8004e3c:	50 2d 00 03 	bgeu r1,r13,8004e48 <rtems_termios_refill_transmitter+0x1ac>
        nToSend = tty->rawOutBuf.Size - newTail;                      
 8004e40:	29 6c 00 88 	lw r12,(r11+136)                               
 8004e44:	e0 00 00 02 	bi 8004e4c <rtems_termios_refill_transmitter+0x1b0>
      else                                                            
        nToSend = tty->rawOutBuf.Head - newTail;                      
 8004e48:	29 6c 00 80 	lw r12,(r11+128)                               
      /* 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)) {                   
 8004e4c:	29 61 00 b8 	lw r1,(r11+184)                                
       * Buffer not empty, start tranmitter                           
       */                                                             
      if (newTail > tty->rawOutBuf.Head)                              
        nToSend = tty->rawOutBuf.Size - newTail;                      
      else                                                            
        nToSend = tty->rawOutBuf.Head - newTail;                      
 8004e50:	c9 8d 60 00 	sub r12,r12,r13                                
      /* 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)) {                   
 8004e54:	20 21 06 00 	andi r1,r1,0x600                               
 8004e58:	44 20 00 02 	be r1,r0,8004e60 <rtems_termios_refill_transmitter+0x1c4>
        nToSend = 1;                                                  
 8004e5c:	34 0c 00 01 	mvi r12,1                                      
      }                                                               
      tty->rawOutBufState = rob_busy; /*apm*/                         
 8004e60:	34 01 00 01 	mvi r1,1                                       
      (*tty->device.write)(                                           
 8004e64:	29 62 00 7c 	lw r2,(r11+124)                                
      /* 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*/                         
 8004e68:	59 61 00 94 	sw (r11+148),r1                                
      (*tty->device.write)(                                           
 8004e6c:	29 64 00 a4 	lw r4,(r11+164)                                
 8004e70:	29 61 00 10 	lw r1,(r11+16)                                 
 8004e74:	b4 4d 10 00 	add r2,r2,r13                                  
 8004e78:	b9 80 18 00 	mv r3,r12                                      
 8004e7c:	d8 80 00 00 	call r4                                        
        tty->minor, &tty->rawOutBuf.theBuf[newTail], nToSend);        
    }                                                                 
    tty->rawOutBuf.Tail = newTail; /*apm*/                            
 8004e80:	59 6d 00 84 	sw (r11+132),r13                               
  }                                                                   
  return nToSend;                                                     
}                                                                     
 8004e84:	b9 80 08 00 	mv r1,r12                                      
 8004e88:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004e8c:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8004e90:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8004e94:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8004e98:	37 9c 00 10 	addi sp,sp,16                                  
 8004e9c:	c3 a0 00 00 	ret                                            
                                                                      

08004c20 <rtems_termios_rxdaemon>: /* * this task actually processes any receive events */ static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument) {
 8004c20:	37 9c ff e4 	addi sp,sp,-28                                 
 8004c24:	5b 8b 00 14 	sw (sp+20),r11                                 
 8004c28:	5b 8c 00 10 	sw (sp+16),r12                                 
 8004c2c:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8004c30:	5b 8e 00 08 	sw (sp+8),r14                                  
 8004c34:	5b 9d 00 04 	sw (sp+4),ra                                   
                                                                      
    /*                                                                
     * do something                                                   
     */                                                               
    c = tty->device.pollRead(tty->minor);                             
    if (c != EOF) {                                                   
 8004c38:	34 0d ff ff 	mvi r13,-1                                     
                                                                      
/*                                                                    
 * this task actually processes any receive events                    
 */                                                                   
static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument)
{                                                                     
 8004c3c:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  while (1) {                                                         
    /*                                                                
     * wait for rtems event                                           
     */                                                               
    rtems_event_receive(                                              
 8004c40:	37 8e 00 18 	addi r14,sp,24                                 
    if (c != EOF) {                                                   
      /*                                                              
       * pollRead did call enqueue on its own                         
       */                                                             
      c_buf = c;                                                      
      rtems_termios_enqueue_raw_characters ( tty,&c_buf,1);           
 8004c44:	37 8c 00 1f 	addi r12,sp,31                                 
                                                                      
  while (1) {                                                         
    /*                                                                
     * wait for rtems event                                           
     */                                                               
    rtems_event_receive(                                              
 8004c48:	34 01 00 03 	mvi r1,3                                       
 8004c4c:	34 02 00 02 	mvi r2,2                                       
 8004c50:	34 03 00 00 	mvi r3,0                                       
 8004c54:	b9 c0 20 00 	mv r4,r14                                      
 8004c58:	f8 00 01 cb 	calli 8005384 <rtems_event_receive>            
      (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) {              
 8004c5c:	2b 81 00 18 	lw r1,(sp+24)                                  
 8004c60:	20 21 00 01 	andi r1,r1,0x1                                 
 8004c64:	44 20 00 04 	be r1,r0,8004c74 <rtems_termios_rxdaemon+0x54> <== ALWAYS TAKEN
      tty->rxTaskId = 0;                                              
 8004c68:	59 60 00 c4 	sw (r11+196),r0                                <== NOT EXECUTED
      rtems_task_delete(RTEMS_SELF);                                  
 8004c6c:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 8004c70:	f8 00 04 5a 	calli 8005dd8 <rtems_task_delete>              <== NOT EXECUTED
    }                                                                 
                                                                      
    /*                                                                
     * do something                                                   
     */                                                               
    c = tty->device.pollRead(tty->minor);                             
 8004c74:	29 62 00 a0 	lw r2,(r11+160)                                
 8004c78:	29 61 00 10 	lw r1,(r11+16)                                 
 8004c7c:	d8 40 00 00 	call r2                                        
    if (c != EOF) {                                                   
 8004c80:	44 2d ff f2 	be r1,r13,8004c48 <rtems_termios_rxdaemon+0x28>
      /*                                                              
       * pollRead did call enqueue on its own                         
       */                                                             
      c_buf = c;                                                      
 8004c84:	33 81 00 1f 	sb (sp+31),r1                                  
      rtems_termios_enqueue_raw_characters ( tty,&c_buf,1);           
 8004c88:	b9 80 10 00 	mv r2,r12                                      
 8004c8c:	b9 60 08 00 	mv r1,r11                                      
 8004c90:	34 03 00 01 	mvi r3,1                                       
 8004c94:	fb ff ff 1a 	calli 80048fc <rtems_termios_enqueue_raw_characters>
 8004c98:	e3 ff ff ec 	bi 8004c48 <rtems_termios_rxdaemon+0x28>       
                                                                      

08004ea0 <rtems_termios_txdaemon>: /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) {
 8004ea0:	37 9c ff f0 	addi sp,sp,-16                                 
 8004ea4:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8004ea8:	5b 8c 00 08 	sw (sp+8),r12                                  
 8004eac:	5b 9d 00 04 	sw (sp+4),ra                                   
    }                                                                 
                                                                      
    /*                                                                
     * call any line discipline start function                        
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_start != NULL) {          
 8004eb0:	78 0c 08 02 	mvhi r12,0x802                                 
                                                                      
/*                                                                    
 * this task actually processes any transmit events                   
 */                                                                   
static rtems_task rtems_termios_txdaemon(rtems_task_argument argument)
{                                                                     
 8004eb4:	b8 20 58 00 	mv r11,r1                                      
    }                                                                 
                                                                      
    /*                                                                
     * call any line discipline start function                        
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_start != NULL) {          
 8004eb8:	39 8c 47 18 	ori r12,r12,0x4718                             
                                                                      
  while (1) {                                                         
    /*                                                                
     * wait for rtems event                                           
     */                                                               
    rtems_event_receive(                                              
 8004ebc:	34 01 00 03 	mvi r1,3                                       
 8004ec0:	34 02 00 02 	mvi r2,2                                       
 8004ec4:	34 03 00 00 	mvi r3,0                                       
 8004ec8:	37 84 00 10 	addi r4,sp,16                                  
 8004ecc:	f8 00 01 2e 	calli 8005384 <rtems_event_receive>            
       (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) {              
 8004ed0:	2b 81 00 10 	lw r1,(sp+16)                                  
 8004ed4:	20 21 00 01 	andi r1,r1,0x1                                 
 8004ed8:	44 20 00 04 	be r1,r0,8004ee8 <rtems_termios_txdaemon+0x48> <== ALWAYS TAKEN
      tty->txTaskId = 0;                                              
 8004edc:	59 60 00 c8 	sw (r11+200),r0                                <== NOT EXECUTED
      rtems_task_delete(RTEMS_SELF);                                  
 8004ee0:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 8004ee4:	f8 00 03 bd 	calli 8005dd8 <rtems_task_delete>              <== NOT EXECUTED
    }                                                                 
                                                                      
    /*                                                                
     * call any line discipline start function                        
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_start != NULL) {          
 8004ee8:	29 61 00 cc 	lw r1,(r11+204)                                
 8004eec:	34 02 00 05 	mvi r2,5                                       
 8004ef0:	fb ff ee a8 	calli 8000990 <__ashlsi3>                      
 8004ef4:	b5 81 08 00 	add r1,r12,r1                                  
 8004ef8:	28 22 00 14 	lw r2,(r1+20)                                  
 8004efc:	44 40 00 03 	be r2,r0,8004f08 <rtems_termios_txdaemon+0x68> <== ALWAYS TAKEN
      rtems_termios_linesw[tty->t_line].l_start(tty);                 
 8004f00:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 8004f04:	d8 40 00 00 	call r2                                        <== NOT EXECUTED
    }                                                                 
                                                                      
    /*                                                                
     * try to push further characters to device                       
     */                                                               
    rtems_termios_refill_transmitter(tty);                            
 8004f08:	b9 60 08 00 	mv r1,r11                                      
 8004f0c:	fb ff ff 64 	calli 8004c9c <rtems_termios_refill_transmitter>
  }                                                                   
 8004f10:	e3 ff ff eb 	bi 8004ebc <rtems_termios_txdaemon+0x1c>       
                                                                      

0800449c <rtems_termios_write>: rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) {
 800449c:	37 9c ff e8 	addi sp,sp,-24                                 
 80044a0:	5b 8b 00 18 	sw (sp+24),r11                                 
 80044a4:	5b 8c 00 14 	sw (sp+20),r12                                 
 80044a8:	5b 8d 00 10 	sw (sp+16),r13                                 
 80044ac:	5b 8e 00 0c 	sw (sp+12),r14                                 
 80044b0:	5b 8f 00 08 	sw (sp+8),r15                                  
 80044b4:	5b 9d 00 04 	sw (sp+4),ra                                   
 80044b8:	b8 20 58 00 	mv r11,r1                                      
  rtems_libio_rw_args_t *args = arg;                                  
  struct rtems_termios_tty *tty = args->iop->data1;                   
 80044bc:	28 21 00 00 	lw r1,(r1+0)                                   
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
 80044c0:	34 02 00 00 	mvi r2,0                                       
 80044c4:	34 03 00 00 	mvi r3,0                                       
                                                                      
rtems_status_code                                                     
rtems_termios_write (void *arg)                                       
{                                                                     
  rtems_libio_rw_args_t *args = arg;                                  
  struct rtems_termios_tty *tty = args->iop->data1;                   
 80044c8:	28 2c 00 38 	lw r12,(r1+56)                                 
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
 80044cc:	29 81 00 18 	lw r1,(r12+24)                                 
 80044d0:	f8 00 05 5d 	calli 8005a44 <rtems_semaphore_obtain>         
 80044d4:	b8 20 68 00 	mv r13,r1                                      
  if (sc != RTEMS_SUCCESSFUL)                                         
 80044d8:	5c 20 00 23 	bne r1,r0,8004564 <rtems_termios_write+0xc8>   <== NEVER TAKEN
    return sc;                                                        
  if (rtems_termios_linesw[tty->t_line].l_write != NULL) {            
 80044dc:	29 81 00 cc 	lw r1,(r12+204)                                
 80044e0:	78 0e 08 02 	mvhi r14,0x802                                 
 80044e4:	34 02 00 05 	mvi r2,5                                       
 80044e8:	fb ff f1 2a 	calli 8000990 <__ashlsi3>                      
 80044ec:	39 ce 47 18 	ori r14,r14,0x4718                             
 80044f0:	b5 c1 08 00 	add r1,r14,r1                                  
 80044f4:	28 23 00 0c 	lw r3,(r1+12)                                  
 80044f8:	44 6d 00 06 	be r3,r13,8004510 <rtems_termios_write+0x74>   
    sc = rtems_termios_linesw[tty->t_line].l_write(tty,args);         
 80044fc:	b9 80 08 00 	mv r1,r12                                      
 8004500:	b9 60 10 00 	mv r2,r11                                      
 8004504:	d8 60 00 00 	call r3                                        
 8004508:	b8 20 68 00 	mv r13,r1                                      
 800450c:	e0 00 00 14 	bi 800455c <rtems_termios_write+0xc0>          
    rtems_semaphore_release (tty->osem);                              
    return sc;                                                        
  }                                                                   
  if (tty->termios.c_oflag & OPOST) {                                 
 8004510:	29 83 00 34 	lw r3,(r12+52)                                 
 8004514:	29 62 00 14 	lw r2,(r11+20)                                 
 8004518:	29 61 00 10 	lw r1,(r11+16)                                 
 800451c:	20 63 00 01 	andi r3,r3,0x1                                 
    uint32_t   count = args->count;                                   
 8004520:	b8 40 78 00 	mv r15,r2                                      
    char      *buffer = args->buffer;                                 
 8004524:	b8 20 70 00 	mv r14,r1                                      
  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) {                                 
 8004528:	5c 60 00 07 	bne r3,r0,8004544 <rtems_termios_write+0xa8>   <== ALWAYS TAKEN
 800452c:	e0 00 00 08 	bi 800454c <rtems_termios_write+0xb0>          <== NOT EXECUTED
    uint32_t   count = args->count;                                   
    char      *buffer = args->buffer;                                 
    while (count--)                                                   
      oproc (*buffer++, tty);                                         
 8004530:	41 c1 00 00 	lbu r1,(r14+0)                                 
 8004534:	b9 80 10 00 	mv r2,r12                                      
 8004538:	35 ce 00 01 	addi r14,r14,1                                 
 800453c:	fb ff fe 4b 	calli 8003e68 <oproc>                          
 8004540:	35 ef ff ff 	addi r15,r15,-1                                
    return sc;                                                        
  }                                                                   
  if (tty->termios.c_oflag & OPOST) {                                 
    uint32_t   count = args->count;                                   
    char      *buffer = args->buffer;                                 
    while (count--)                                                   
 8004544:	5d e0 ff fb 	bne r15,r0,8004530 <rtems_termios_write+0x94>  
 8004548:	e0 00 00 03 	bi 8004554 <rtems_termios_write+0xb8>          
      oproc (*buffer++, tty);                                         
    args->bytes_moved = args->count;                                  
  } else {                                                            
    rtems_termios_puts (args->buffer, args->count, tty);              
 800454c:	b9 80 18 00 	mv r3,r12                                      <== NOT EXECUTED
 8004550:	fb ff fd f0 	calli 8003d10 <rtems_termios_puts>             <== NOT EXECUTED
    args->bytes_moved = args->count;                                  
 8004554:	29 61 00 14 	lw r1,(r11+20)                                 
 8004558:	59 61 00 1c 	sw (r11+28),r1                                 
  }                                                                   
  rtems_semaphore_release (tty->osem);                                
 800455c:	29 81 00 18 	lw r1,(r12+24)                                 
 8004560:	f8 00 05 89 	calli 8005b84 <rtems_semaphore_release>        
  return sc;                                                          
}                                                                     
 8004564:	b9 a0 08 00 	mv r1,r13                                      
 8004568:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800456c:	2b 8b 00 18 	lw r11,(sp+24)                                 
 8004570:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8004574:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8004578:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 800457c:	2b 8f 00 08 	lw r15,(sp+8)                                  
 8004580:	37 9c 00 18 	addi sp,sp,24                                  
 8004584:	c3 a0 00 00 	ret                                            
                                                                      

08013f48 <rtems_timer_cancel>: */ rtems_status_code rtems_timer_cancel( rtems_id id ) {
 8013f48:	37 9c ff f8 	addi sp,sp,-8                                  
 8013f4c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8013f50:	b8 20 10 00 	mv r2,r1                                       
  Objects_Id         id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (Timer_Control *)                                            
    _Objects_Get( &_Timer_Information, id, location );                
 8013f54:	78 01 08 03 	mvhi r1,0x803                                  
 8013f58:	38 21 ee d4 	ori r1,r1,0xeed4                               
 8013f5c:	37 83 00 08 	addi r3,sp,8                                   
 8013f60:	f8 00 0e 48 	calli 8017880 <_Objects_Get>                   
  Timer_Control   *the_timer;                                         
  Objects_Locations       location;                                   
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  switch ( location ) {                                               
 8013f64:	2b 82 00 08 	lw r2,(sp+8)                                   
 8013f68:	5c 40 00 09 	bne r2,r0,8013f8c <rtems_timer_cancel+0x44>    
                                                                      
    case OBJECTS_LOCAL:                                               
      if ( !_Timer_Is_dormant_class( the_timer->the_class ) )         
 8013f6c:	28 23 00 38 	lw r3,(r1+56)                                  
 8013f70:	34 02 00 04 	mvi r2,4                                       
 8013f74:	44 62 00 03 	be r3,r2,8013f80 <rtems_timer_cancel+0x38>     <== NEVER TAKEN
        (void) _Watchdog_Remove( &the_timer->Ticker );                
 8013f78:	34 21 00 10 	addi r1,r1,16                                  
 8013f7c:	f8 00 17 e1 	calli 8019f00 <_Watchdog_Remove>               
      _Thread_Enable_dispatch();                                      
 8013f80:	f8 00 12 5b 	calli 80188ec <_Thread_Enable_dispatch>        
      return RTEMS_SUCCESSFUL;                                        
 8013f84:	34 01 00 00 	mvi r1,0                                       
 8013f88:	e0 00 00 02 	bi 8013f90 <rtems_timer_cancel+0x48>           
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 8013f8c:	34 01 00 04 	mvi r1,4                                       
}                                                                     
 8013f90:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8013f94:	37 9c 00 08 	addi sp,sp,8                                   
 8013f98:	c3 a0 00 00 	ret                                            
                                                                      

08003388 <rtems_timer_create>: rtems_status_code rtems_timer_create( rtems_name name, rtems_id *id ) {
 8003388:	37 9c ff e8 	addi sp,sp,-24                                 
 800338c:	5b 8b 00 18 	sw (sp+24),r11                                 
 8003390:	5b 8c 00 14 	sw (sp+20),r12                                 
 8003394:	5b 8d 00 10 	sw (sp+16),r13                                 
 8003398:	5b 8e 00 0c 	sw (sp+12),r14                                 
 800339c:	5b 8f 00 08 	sw (sp+8),r15                                  
 80033a0:	5b 9d 00 04 	sw (sp+4),ra                                   
 80033a4:	b8 20 78 00 	mv r15,r1                                      
 80033a8:	b8 40 68 00 	mv r13,r2                                      
  Timer_Control *the_timer;                                           
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
    return RTEMS_INVALID_NAME;                                        
 80033ac:	34 01 00 03 	mvi r1,3                                       
  rtems_id   *id                                                      
)                                                                     
{                                                                     
  Timer_Control *the_timer;                                           
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
 80033b0:	45 e0 00 22 	be r15,r0,8003438 <rtems_timer_create+0xb0>    <== NEVER TAKEN
    return RTEMS_INVALID_NAME;                                        
                                                                      
  if ( !id )                                                          
    return RTEMS_INVALID_ADDRESS;                                     
 80033b4:	34 01 00 09 	mvi r1,9                                       
  Timer_Control *the_timer;                                           
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
    return RTEMS_INVALID_NAME;                                        
                                                                      
  if ( !id )                                                          
 80033b8:	44 40 00 20 	be r2,r0,8003438 <rtems_timer_create+0xb0>     <== NEVER TAKEN
 80033bc:	78 03 08 01 	mvhi r3,0x801                                  
 80033c0:	38 63 d8 80 	ori r3,r3,0xd880                               
 80033c4:	28 61 00 00 	lw r1,(r3+0)                                   
 80033c8:	34 21 00 01 	addi r1,r1,1                                   
 80033cc:	58 61 00 00 	sw (r3+0),r1                                   
 *  This function allocates a timer control block from                
 *  the inactive chain of free timer control blocks.                  
 */                                                                   
RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Allocate( void )           
{                                                                     
  return (Timer_Control *) _Objects_Allocate( &_Timer_Information );  
 80033d0:	78 0c 08 01 	mvhi r12,0x801                                 
 80033d4:	39 8c da 70 	ori r12,r12,0xda70                             
 80033d8:	b9 80 08 00 	mv r1,r12                                      
 80033dc:	f8 00 04 85 	calli 80045f0 <_Objects_Allocate>              
 80033e0:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  _Thread_Disable_dispatch();         /* to prevent deletion */       
                                                                      
  the_timer = _Timer_Allocate();                                      
                                                                      
  if ( !the_timer ) {                                                 
 80033e4:	5c 20 00 04 	bne r1,r0,80033f4 <rtems_timer_create+0x6c>    
    _Thread_Enable_dispatch();                                        
 80033e8:	f8 00 09 63 	calli 8005974 <_Thread_Enable_dispatch>        
    return RTEMS_TOO_MANY;                                            
 80033ec:	34 01 00 05 	mvi r1,5                                       
 80033f0:	e0 00 00 12 	bi 8003438 <rtems_timer_create+0xb0>           
  Objects_Name         name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
 80033f4:	29 6e 00 08 	lw r14,(r11+8)                                 
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 80033f8:	29 8c 00 1c 	lw r12,(r12+28)                                
  }                                                                   
                                                                      
  the_timer->the_class = TIMER_DORMANT;                               
 80033fc:	34 01 00 04 	mvi r1,4                                       
 8003400:	59 61 00 38 	sw (r11+56),r1                                 
 8003404:	34 02 00 02 	mvi r2,2                                       
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
 8003408:	59 60 00 18 	sw (r11+24),r0                                 
  the_watchdog->routine   = routine;                                  
 800340c:	59 60 00 2c 	sw (r11+44),r0                                 
  the_watchdog->id        = id;                                       
 8003410:	59 60 00 30 	sw (r11+48),r0                                 
  the_watchdog->user_data = user_data;                                
 8003414:	59 60 00 34 	sw (r11+52),r0                                 
 8003418:	21 c1 ff ff 	andi r1,r14,0xffff                             
 800341c:	f8 00 59 c1 	calli 8019b20 <__ashlsi3>                      
 8003420:	b5 81 08 00 	add r1,r12,r1                                  
 8003424:	58 2b 00 00 	sw (r1+0),r11                                  
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  the_object->name = name;                                            
 8003428:	59 6f 00 0c 	sw (r11+12),r15                                
    &_Timer_Information,                                              
    &the_timer->Object,                                               
    (Objects_Name) name                                               
  );                                                                  
                                                                      
  *id = the_timer->Object.id;                                         
 800342c:	59 ae 00 00 	sw (r13+0),r14                                 
  _Thread_Enable_dispatch();                                          
 8003430:	f8 00 09 51 	calli 8005974 <_Thread_Enable_dispatch>        
  return RTEMS_SUCCESSFUL;                                            
 8003434:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 8003438:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800343c:	2b 8b 00 18 	lw r11,(sp+24)                                 
 8003440:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8003444:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8003448:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 800344c:	2b 8f 00 08 	lw r15,(sp+8)                                  
 8003450:	37 9c 00 18 	addi sp,sp,24                                  
 8003454:	c3 a0 00 00 	ret                                            
                                                                      

08014564 <rtems_timer_server_fire_when>: rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) {
 8014564:	37 9c ff dc 	addi sp,sp,-36                                 
 8014568:	5b 8b 00 20 	sw (sp+32),r11                                 
 801456c:	5b 8c 00 1c 	sw (sp+28),r12                                 
 8014570:	5b 8d 00 18 	sw (sp+24),r13                                 
 8014574:	5b 8e 00 14 	sw (sp+20),r14                                 
 8014578:	5b 8f 00 10 	sw (sp+16),r15                                 
 801457c:	5b 90 00 0c 	sw (sp+12),r16                                 
 8014580:	5b 91 00 08 	sw (sp+8),r17                                  
 8014584:	5b 9d 00 04 	sw (sp+4),ra                                   
  Timer_Control        *the_timer;                                    
  Objects_Locations     location;                                     
  rtems_interval        seconds;                                      
  Timer_server_Control *timer_server = _Timer_server;                 
 8014588:	78 05 08 03 	mvhi r5,0x803                                  
 801458c:	38 a5 ef 14 	ori r5,r5,0xef14                               
 8014590:	28 ad 00 00 	lw r13,(r5+0)                                  
  rtems_id                           id,                              
  rtems_time_of_day                  *wall_time,                      
  rtems_timer_service_routine_entry  routine,                         
  void                              *user_data                        
)                                                                     
{                                                                     
 8014594:	b8 20 78 00 	mv r15,r1                                      
 8014598:	b8 40 60 00 	mv r12,r2                                      
 801459c:	b8 60 80 00 	mv r16,r3                                      
 80145a0:	b8 80 88 00 	mv r17,r4                                      
  Objects_Locations     location;                                     
  rtems_interval        seconds;                                      
  Timer_server_Control *timer_server = _Timer_server;                 
                                                                      
  if ( !timer_server )                                                
    return RTEMS_INCORRECT_STATE;                                     
 80145a4:	34 0b 00 0e 	mvi r11,14                                     
  Timer_Control        *the_timer;                                    
  Objects_Locations     location;                                     
  rtems_interval        seconds;                                      
  Timer_server_Control *timer_server = _Timer_server;                 
                                                                      
  if ( !timer_server )                                                
 80145a8:	45 a0 00 2e 	be r13,r0,8014660 <rtems_timer_server_fire_when+0xfc>
    return RTEMS_INCORRECT_STATE;                                     
                                                                      
  if ( !_TOD_Is_set )                                                 
 80145ac:	78 05 08 03 	mvhi r5,0x803                                  
 80145b0:	38 a5 ec a8 	ori r5,r5,0xeca8                               
 80145b4:	40 a1 00 00 	lbu r1,(r5+0)                                  
    return RTEMS_NOT_DEFINED;                                         
 80145b8:	34 0b 00 0b 	mvi r11,11                                     
  Timer_server_Control *timer_server = _Timer_server;                 
                                                                      
  if ( !timer_server )                                                
    return RTEMS_INCORRECT_STATE;                                     
                                                                      
  if ( !_TOD_Is_set )                                                 
 80145bc:	44 20 00 29 	be r1,r0,8014660 <rtems_timer_server_fire_when+0xfc><== NEVER TAKEN
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( !routine )                                                     
    return RTEMS_INVALID_ADDRESS;                                     
 80145c0:	34 0b 00 09 	mvi r11,9                                      
    return RTEMS_INCORRECT_STATE;                                     
                                                                      
  if ( !_TOD_Is_set )                                                 
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( !routine )                                                     
 80145c4:	44 60 00 27 	be r3,r0,8014660 <rtems_timer_server_fire_when+0xfc>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !_TOD_Validate( wall_time ) )                                  
 80145c8:	b8 40 08 00 	mv r1,r2                                       
 80145cc:	fb ff f1 c0 	calli 8010ccc <_TOD_Validate>                  
    return RTEMS_INVALID_CLOCK;                                       
 80145d0:	34 0b 00 14 	mvi r11,20                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( !routine )                                                     
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !_TOD_Validate( wall_time ) )                                  
 80145d4:	44 20 00 23 	be r1,r0,8014660 <rtems_timer_server_fire_when+0xfc>
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  seconds = _TOD_To_seconds( wall_time );                             
 80145d8:	b9 80 08 00 	mv r1,r12                                      
  if ( seconds <= _TOD_Seconds_since_epoch() )                        
 80145dc:	78 0c 08 03 	mvhi r12,0x803                                 
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !_TOD_Validate( wall_time ) )                                  
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  seconds = _TOD_To_seconds( wall_time );                             
 80145e0:	fb ff f1 7b 	calli 8010bcc <_TOD_To_seconds>                
  if ( seconds <= _TOD_Seconds_since_epoch() )                        
 80145e4:	39 8c ed 20 	ori r12,r12,0xed20                             
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !_TOD_Validate( wall_time ) )                                  
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  seconds = _TOD_To_seconds( wall_time );                             
 80145e8:	b8 20 70 00 	mv r14,r1                                      
  if ( seconds <= _TOD_Seconds_since_epoch() )                        
 80145ec:	29 81 00 00 	lw r1,(r12+0)                                  
 80145f0:	50 2e 00 1c 	bgeu r1,r14,8014660 <rtems_timer_server_fire_when+0xfc>
 80145f4:	78 01 08 03 	mvhi r1,0x803                                  
 80145f8:	38 21 ee d4 	ori r1,r1,0xeed4                               
 80145fc:	b9 e0 10 00 	mv r2,r15                                      
 8014600:	37 83 00 24 	addi r3,sp,36                                  
 8014604:	f8 00 0c 9f 	calli 8017880 <_Objects_Get>                   
 8014608:	b8 20 58 00 	mv r11,r1                                      
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  switch ( location ) {                                               
 801460c:	2b 81 00 24 	lw r1,(sp+36)                                  
 8014610:	5c 20 00 13 	bne r1,r0,801465c <rtems_timer_server_fire_when+0xf8>
                                                                      
    case OBJECTS_LOCAL:                                               
      (void) _Watchdog_Remove( &the_timer->Ticker );                  
 8014614:	35 61 00 10 	addi r1,r11,16                                 
 8014618:	f8 00 16 3a 	calli 8019f00 <_Watchdog_Remove>               
      the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK;               
 801461c:	34 01 00 03 	mvi r1,3                                       
 8014620:	59 61 00 38 	sw (r11+56),r1                                 
      _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
      the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch();
 8014624:	29 81 00 00 	lw r1,(r12+0)                                  
                                                                      
      (*timer_server->schedule_operation)( timer_server, the_timer ); 
 8014628:	29 a3 00 04 	lw r3,(r13+4)                                  
 801462c:	b9 60 10 00 	mv r2,r11                                      
                                                                      
    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();
 8014630:	c9 c1 70 00 	sub r14,r14,r1                                 
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
 8014634:	59 60 00 18 	sw (r11+24),r0                                 
  the_watchdog->routine   = routine;                                  
 8014638:	59 70 00 2c 	sw (r11+44),r16                                
  the_watchdog->id        = id;                                       
 801463c:	59 6f 00 30 	sw (r11+48),r15                                
  the_watchdog->user_data = user_data;                                
 8014640:	59 71 00 34 	sw (r11+52),r17                                
 8014644:	59 6e 00 1c 	sw (r11+28),r14                                
                                                                      
      (*timer_server->schedule_operation)( timer_server, the_timer ); 
 8014648:	b9 a0 08 00 	mv r1,r13                                      
 801464c:	d8 60 00 00 	call r3                                        
                                                                      
      _Thread_Enable_dispatch();                                      
      return RTEMS_SUCCESSFUL;                                        
 8014650:	34 0b 00 00 	mvi r11,0                                      
      _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
      the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch();
                                                                      
      (*timer_server->schedule_operation)( timer_server, the_timer ); 
                                                                      
      _Thread_Enable_dispatch();                                      
 8014654:	f8 00 10 a6 	calli 80188ec <_Thread_Enable_dispatch>        
      return RTEMS_SUCCESSFUL;                                        
 8014658:	e0 00 00 02 	bi 8014660 <rtems_timer_server_fire_when+0xfc> 
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 801465c:	34 0b 00 04 	mvi r11,4                                      
}                                                                     
 8014660:	b9 60 08 00 	mv r1,r11                                      
 8014664:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8014668:	2b 8b 00 20 	lw r11,(sp+32)                                 
 801466c:	2b 8c 00 1c 	lw r12,(sp+28)                                 
 8014670:	2b 8d 00 18 	lw r13,(sp+24)                                 
 8014674:	2b 8e 00 14 	lw r14,(sp+20)                                 
 8014678:	2b 8f 00 10 	lw r15,(sp+16)                                 
 801467c:	2b 90 00 0c 	lw r16,(sp+12)                                 
 8014680:	2b 91 00 08 	lw r17,(sp+8)                                  
 8014684:	37 9c 00 24 	addi sp,sp,36                                  
 8014688:	c3 a0 00 00 	ret                                            
                                                                      

080069f4 <rtems_verror>: static int rtems_verror( rtems_error_code_t error_flag, const char *printf_format, va_list arglist ) {
 80069f4:	37 9c ff e4 	addi sp,sp,-28                                 
 80069f8:	5b 8b 00 1c 	sw (sp+28),r11                                 
 80069fc:	5b 8c 00 18 	sw (sp+24),r12                                 
 8006a00:	5b 8d 00 14 	sw (sp+20),r13                                 
 8006a04:	5b 8e 00 10 	sw (sp+16),r14                                 
 8006a08:	5b 8f 00 0c 	sw (sp+12),r15                                 
 8006a0c:	5b 90 00 08 	sw (sp+8),r16                                  
 8006a10:	5b 9d 00 04 	sw (sp+4),ra                                   
 8006a14:	b8 20 60 00 	mv r12,r1                                      
  int               local_errno = 0;                                  
  int               chars_written = 0;                                
  rtems_status_code status;                                           
                                                                      
  if (error_flag & RTEMS_ERROR_PANIC) {                               
 8006a18:	78 01 20 00 	mvhi r1,0x2000                                 
 8006a1c:	a1 81 08 00 	and r1,r12,r1                                  
static int rtems_verror(                                              
  rtems_error_code_t  error_flag,                                     
  const char         *printf_format,                                  
  va_list             arglist                                         
)                                                                     
{                                                                     
 8006a20:	b8 40 80 00 	mv r16,r2                                      
 8006a24:	b8 60 78 00 	mv r15,r3                                      
  int               local_errno = 0;                                  
  int               chars_written = 0;                                
  rtems_status_code status;                                           
                                                                      
  if (error_flag & RTEMS_ERROR_PANIC) {                               
 8006a28:	44 20 00 12 	be r1,r0,8006a70 <rtems_verror+0x7c>           
    if (rtems_panic_in_progress++)                                    
 8006a2c:	78 04 08 02 	mvhi r4,0x802                                  
 8006a30:	38 84 88 8c 	ori r4,r4,0x888c                               
 8006a34:	28 81 00 00 	lw r1,(r4+0)                                   
 8006a38:	34 22 00 01 	addi r2,r1,1                                   
 8006a3c:	58 82 00 00 	sw (r4+0),r2                                   
 8006a40:	44 20 00 06 	be r1,r0,8006a58 <rtems_verror+0x64>           <== ALWAYS TAKEN
	rtems_fatal_error_occurred( 99 );                                    
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  _Thread_Dispatch_disable_level += 1;                                
 8006a44:	78 04 08 02 	mvhi r4,0x802                                  <== NOT EXECUTED
 8006a48:	38 84 8a 08 	ori r4,r4,0x8a08                               <== NOT EXECUTED
 8006a4c:	28 81 00 00 	lw r1,(r4+0)                                   <== NOT EXECUTED
 8006a50:	34 21 00 01 	addi r1,r1,1                                   <== NOT EXECUTED
 8006a54:	58 81 00 00 	sw (r4+0),r1                                   <== NOT EXECUTED
      _Thread_Disable_dispatch();       /* disable task switches */   
                                                                      
    /* don't aggravate things */                                      
    if (rtems_panic_in_progress > 2)                                  
 8006a58:	78 01 08 02 	mvhi r1,0x802                                  
 8006a5c:	38 21 88 8c 	ori r1,r1,0x888c                               
 8006a60:	28 22 00 00 	lw r2,(r1+0)                                   
 8006a64:	34 01 00 02 	mvi r1,2                                       
      return 0;                                                       
 8006a68:	34 0b 00 00 	mvi r11,0                                      
  if (error_flag & RTEMS_ERROR_PANIC) {                               
    if (rtems_panic_in_progress++)                                    
      _Thread_Disable_dispatch();       /* disable task switches */   
                                                                      
    /* don't aggravate things */                                      
    if (rtems_panic_in_progress > 2)                                  
 8006a6c:	48 41 00 48 	bg r2,r1,8006b8c <rtems_verror+0x198>          <== NEVER TAKEN
      return 0;                                                       
  }                                                                   
                                                                      
  (void) fflush(stdout);            /* in case stdout/stderr same */  
 8006a70:	78 01 08 02 	mvhi r1,0x802                                  
 8006a74:	38 21 82 20 	ori r1,r1,0x8220                               
 8006a78:	28 21 00 00 	lw r1,(r1+0)                                   
 8006a7c:	28 21 00 08 	lw r1,(r1+8)                                   
 8006a80:	f8 00 2d d3 	calli 80121cc <fflush>                         
                                                                      
  status = error_flag & ~RTEMS_ERROR_MASK;                            
 8006a84:	78 01 08 02 	mvhi r1,0x802                                  
 8006a88:	38 21 59 a8 	ori r1,r1,0x59a8                               
 8006a8c:	28 2e 00 00 	lw r14,(r1+0)                                  
  if (error_flag & RTEMS_ERROR_ERRNO)     /* include errno? */        
 8006a90:	78 01 40 00 	mvhi r1,0x4000                                 
 8006a94:	a1 81 08 00 	and r1,r12,r1                                  
      return 0;                                                       
  }                                                                   
                                                                      
  (void) fflush(stdout);            /* in case stdout/stderr same */  
                                                                      
  status = error_flag & ~RTEMS_ERROR_MASK;                            
 8006a98:	a1 8e 70 00 	and r14,r12,r14                                
  rtems_error_code_t  error_flag,                                     
  const char         *printf_format,                                  
  va_list             arglist                                         
)                                                                     
{                                                                     
  int               local_errno = 0;                                  
 8006a9c:	34 0c 00 00 	mvi r12,0                                      
  }                                                                   
                                                                      
  (void) fflush(stdout);            /* in case stdout/stderr same */  
                                                                      
  status = error_flag & ~RTEMS_ERROR_MASK;                            
  if (error_flag & RTEMS_ERROR_ERRNO)     /* include errno? */        
 8006aa0:	44 20 00 03 	be r1,r0,8006aac <rtems_verror+0xb8>           
    local_errno = errno;                                              
 8006aa4:	f8 00 2c c9 	calli 8011dc8 <__errno>                        
 8006aa8:	28 2c 00 00 	lw r12,(r1+0)                                  
  #if defined(RTEMS_MULTIPROCESSING)                                  
    if (_System_state_Is_multiprocessing)                             
      fprintf(stderr, "[%" PRIu32 "] ", _Configuration_MP_table->node);
  #endif                                                              
                                                                      
  chars_written += vfprintf(stderr, printf_format, arglist);          
 8006aac:	78 0d 08 02 	mvhi r13,0x802                                 
 8006ab0:	39 ad 82 20 	ori r13,r13,0x8220                             
 8006ab4:	29 a1 00 00 	lw r1,(r13+0)                                  
 8006ab8:	ba 00 10 00 	mv r2,r16                                      
 8006abc:	b9 e0 18 00 	mv r3,r15                                      
 8006ac0:	28 21 00 0c 	lw r1,(r1+12)                                  
 8006ac4:	f8 00 46 b1 	calli 8018588 <vfprintf>                       
 8006ac8:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  if (status)                                                         
 8006acc:	45 c0 00 0b 	be r14,r0,8006af8 <rtems_verror+0x104>         
    chars_written +=                                                  
      fprintf(stderr, " (status: %s)", rtems_status_text(status));    
 8006ad0:	29 a1 00 00 	lw r1,(r13+0)                                  
 8006ad4:	28 2d 00 0c 	lw r13,(r1+12)                                 
 8006ad8:	b9 c0 08 00 	mv r1,r14                                      
 8006adc:	fb ff ff bd 	calli 80069d0 <rtems_status_text>              
 8006ae0:	78 02 08 02 	mvhi r2,0x802                                  
 8006ae4:	b8 20 18 00 	mv r3,r1                                       
 8006ae8:	38 42 56 64 	ori r2,r2,0x5664                               
 8006aec:	b9 a0 08 00 	mv r1,r13                                      
 8006af0:	f8 00 2e ef 	calli 80126ac <fprintf>                        
  #endif                                                              
                                                                      
  chars_written += vfprintf(stderr, printf_format, arglist);          
                                                                      
  if (status)                                                         
    chars_written +=                                                  
 8006af4:	b5 61 58 00 	add r11,r11,r1                                 
      fprintf(stderr, " (status: %s)", rtems_status_text(status));    
                                                                      
  if (local_errno) {                                                  
 8006af8:	45 80 00 1a 	be r12,r0,8006b60 <rtems_verror+0x16c>         
    if ((local_errno > 0) && *strerror(local_errno))                  
 8006afc:	4c 0c 00 10 	bge r0,r12,8006b3c <rtems_verror+0x148>        
 8006b00:	b9 80 08 00 	mv r1,r12                                      
 8006b04:	f8 00 32 8a 	calli 801352c <strerror>                       
 8006b08:	40 21 00 00 	lbu r1,(r1+0)                                  
 8006b0c:	44 20 00 0c 	be r1,r0,8006b3c <rtems_verror+0x148>          <== NEVER TAKEN
      chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
 8006b10:	78 01 08 02 	mvhi r1,0x802                                  
 8006b14:	38 21 82 20 	ori r1,r1,0x8220                               
 8006b18:	28 21 00 00 	lw r1,(r1+0)                                   
 8006b1c:	28 2d 00 0c 	lw r13,(r1+12)                                 
 8006b20:	b9 80 08 00 	mv r1,r12                                      
 8006b24:	f8 00 32 82 	calli 801352c <strerror>                       
 8006b28:	78 02 08 02 	mvhi r2,0x802                                  
 8006b2c:	b8 20 18 00 	mv r3,r1                                       
 8006b30:	38 42 56 74 	ori r2,r2,0x5674                               
 8006b34:	b9 a0 08 00 	mv r1,r13                                      
 8006b38:	e0 00 00 08 	bi 8006b58 <rtems_verror+0x164>                
    else                                                              
      chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno);
 8006b3c:	78 01 08 02 	mvhi r1,0x802                                  
 8006b40:	38 21 82 20 	ori r1,r1,0x8220                               
 8006b44:	28 21 00 00 	lw r1,(r1+0)                                   
 8006b48:	78 02 08 02 	mvhi r2,0x802                                  
 8006b4c:	38 42 56 84 	ori r2,r2,0x5684                               
 8006b50:	28 21 00 0c 	lw r1,(r1+12)                                  
 8006b54:	b9 80 18 00 	mv r3,r12                                      
 8006b58:	f8 00 2e d5 	calli 80126ac <fprintf>                        
 8006b5c:	b5 61 58 00 	add r11,r11,r1                                 
  }                                                                   
                                                                      
  chars_written += fprintf(stderr, "\n");                             
 8006b60:	78 0c 08 02 	mvhi r12,0x802                                 
 8006b64:	39 8c 82 20 	ori r12,r12,0x8220                             
 8006b68:	29 81 00 00 	lw r1,(r12+0)                                  
 8006b6c:	78 02 08 02 	mvhi r2,0x802                                  
 8006b70:	38 42 4d d8 	ori r2,r2,0x4dd8                               
 8006b74:	28 21 00 0c 	lw r1,(r1+12)                                  
 8006b78:	f8 00 2e cd 	calli 80126ac <fprintf>                        
 8006b7c:	b4 2b 58 00 	add r11,r1,r11                                 
                                                                      
  (void) fflush(stderr);                                              
 8006b80:	29 81 00 00 	lw r1,(r12+0)                                  
 8006b84:	28 21 00 0c 	lw r1,(r1+12)                                  
 8006b88:	f8 00 2d 91 	calli 80121cc <fflush>                         
                                                                      
  return chars_written;                                               
}                                                                     
 8006b8c:	b9 60 08 00 	mv r1,r11                                      
 8006b90:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006b94:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 8006b98:	2b 8c 00 18 	lw r12,(sp+24)                                 
 8006b9c:	2b 8d 00 14 	lw r13,(sp+20)                                 
 8006ba0:	2b 8e 00 10 	lw r14,(sp+16)                                 
 8006ba4:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 8006ba8:	2b 90 00 08 	lw r16,(sp+8)                                  
 8006bac:	37 9c 00 1c 	addi sp,sp,28                                  
 8006bb0:	c3 a0 00 00 	ret                                            
                                                                      

08001b04 <scanInt>: /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) {
 8001b04:	37 9c ff d4 	addi sp,sp,-44                                 
 8001b08:	5b 8b 00 2c 	sw (sp+44),r11                                 
 8001b0c:	5b 8c 00 28 	sw (sp+40),r12                                 
 8001b10:	5b 8d 00 24 	sw (sp+36),r13                                 
 8001b14:	5b 8e 00 20 	sw (sp+32),r14                                 
 8001b18:	5b 8f 00 1c 	sw (sp+28),r15                                 
 8001b1c:	5b 90 00 18 	sw (sp+24),r16                                 
 8001b20:	5b 91 00 14 	sw (sp+20),r17                                 
 8001b24:	5b 92 00 10 	sw (sp+16),r18                                 
 8001b28:	5b 93 00 0c 	sw (sp+12),r19                                 
 8001b2c:	5b 94 00 08 	sw (sp+8),r20                                  
 8001b30:	5b 9d 00 04 	sw (sp+4),ra                                   
 8001b34:	b8 20 58 00 	mv r11,r1                                      
  int c;                                                              
  unsigned int i = 0;                                                 
  unsigned int limit = INT_MAX;                                       
 8001b38:	78 01 08 01 	mvhi r1,0x801                                  
 8001b3c:	38 21 37 64 	ori r1,r1,0x3764                               
 8001b40:	28 2e 00 00 	lw r14,(r1+0)                                  
  int sign = 0;                                                       
  int d;                                                              
                                                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
 8001b44:	78 11 08 01 	mvhi r17,0x801                                 
        limit++;                                                      
        continue;                                                     
      }                                                               
      sign = 1;                                                       
    }                                                                 
    if (!isdigit(c))                                                  
 8001b48:	78 10 08 01 	mvhi r16,0x801                                 
/*                                                                    
 * Extract an integer value from the database                         
 */                                                                   
static int                                                            
scanInt(FILE *fp, int *val)                                           
{                                                                     
 8001b4c:	b8 40 90 00 	mv r18,r2                                      
  int c;                                                              
  unsigned int i = 0;                                                 
  unsigned int limit = INT_MAX;                                       
  int sign = 0;                                                       
 8001b50:	34 0d 00 00 	mvi r13,0                                      
 */                                                                   
static int                                                            
scanInt(FILE *fp, int *val)                                           
{                                                                     
  int c;                                                              
  unsigned int i = 0;                                                 
 8001b54:	34 0c 00 00 	mvi r12,0                                      
  unsigned int limit = INT_MAX;                                       
  int sign = 0;                                                       
  int d;                                                              
                                                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
 8001b58:	3a 31 51 a8 	ori r17,r17,0x51a8                             
    if (c == ':')                                                     
 8001b5c:	34 14 00 3a 	mvi r20,58                                     
        limit++;                                                      
        continue;                                                     
      }                                                               
      sign = 1;                                                       
    }                                                                 
    if (!isdigit(c))                                                  
 8001b60:	3a 10 51 a4 	ori r16,r16,0x51a4                             
  for (;;) {                                                          
    c = getc(fp);                                                     
    if (c == ':')                                                     
      break;                                                          
    if (sign == 0) {                                                  
      if (c == '-') {                                                 
 8001b64:	34 13 00 2d 	mvi r19,45                                     
  unsigned int limit = INT_MAX;                                       
  int sign = 0;                                                       
  int d;                                                              
                                                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
 8001b68:	29 61 00 04 	lw r1,(r11+4)                                  
 8001b6c:	34 21 ff ff 	addi r1,r1,-1                                  
 8001b70:	59 61 00 04 	sw (r11+4),r1                                  
 8001b74:	4c 20 00 06 	bge r1,r0,8001b8c <scanInt+0x88>               <== ALWAYS TAKEN
 8001b78:	2a 21 00 00 	lw r1,(r17+0)                                  <== NOT EXECUTED
 8001b7c:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 8001b80:	f8 00 32 31 	calli 800e444 <__srget_r>                      <== NOT EXECUTED
 8001b84:	b8 20 78 00 	mv r15,r1                                      <== NOT EXECUTED
 8001b88:	e0 00 00 05 	bi 8001b9c <scanInt+0x98>                      <== NOT EXECUTED
 8001b8c:	29 61 00 00 	lw r1,(r11+0)                                  
 8001b90:	40 2f 00 00 	lbu r15,(r1+0)                                 
 8001b94:	34 21 00 01 	addi r1,r1,1                                   
 8001b98:	59 61 00 00 	sw (r11+0),r1                                  
    if (c == ':')                                                     
 8001b9c:	45 f4 00 1f 	be r15,r20,8001c18 <scanInt+0x114>             
      break;                                                          
    if (sign == 0) {                                                  
 8001ba0:	5d a0 00 06 	bne r13,r0,8001bb8 <scanInt+0xb4>              
      if (c == '-') {                                                 
        sign = -1;                                                    
        limit++;                                                      
        continue;                                                     
      }                                                               
      sign = 1;                                                       
 8001ba4:	34 0d 00 01 	mvi r13,1                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
    if (c == ':')                                                     
      break;                                                          
    if (sign == 0) {                                                  
      if (c == '-') {                                                 
 8001ba8:	5d f3 00 04 	bne r15,r19,8001bb8 <scanInt+0xb4>             
        sign = -1;                                                    
        limit++;                                                      
 8001bac:	35 ce 00 01 	addi r14,r14,1                                 
    c = getc(fp);                                                     
    if (c == ':')                                                     
      break;                                                          
    if (sign == 0) {                                                  
      if (c == '-') {                                                 
        sign = -1;                                                    
 8001bb0:	34 0d ff ff 	mvi r13,-1                                     
        limit++;                                                      
        continue;                                                     
 8001bb4:	e3 ff ff ed 	bi 8001b68 <scanInt+0x64>                      
      }                                                               
      sign = 1;                                                       
    }                                                                 
    if (!isdigit(c))                                                  
 8001bb8:	2a 01 00 00 	lw r1,(r16+0)                                  
 8001bbc:	b4 2f 08 00 	add r1,r1,r15                                  
 8001bc0:	40 21 00 01 	lbu r1,(r1+1)                                  
 8001bc4:	20 21 00 04 	andi r1,r1,0x4                                 
 8001bc8:	44 20 00 1c 	be r1,r0,8001c38 <scanInt+0x134>               
      return 0;                                                       
    d = c - '0';                                                      
    if ((i > (limit / 10))                                            
 8001bcc:	b9 c0 08 00 	mv r1,r14                                      
 8001bd0:	34 02 00 0a 	mvi r2,10                                      
 8001bd4:	f8 00 42 7c 	calli 80125c4 <__udivsi3>                      
 8001bd8:	55 81 00 18 	bgu r12,r1,8001c38 <scanInt+0x134>             
      }                                                               
      sign = 1;                                                       
    }                                                                 
    if (!isdigit(c))                                                  
      return 0;                                                       
    d = c - '0';                                                      
 8001bdc:	35 ef ff d0 	addi r15,r15,-48                               
    if ((i > (limit / 10))                                            
     || ((i == (limit / 10)) && (d > (limit % 10))))                  
 8001be0:	5d 81 00 05 	bne r12,r1,8001bf4 <scanInt+0xf0>              
 8001be4:	b9 c0 08 00 	mv r1,r14                                      
 8001be8:	34 02 00 0a 	mvi r2,10                                      
 8001bec:	f8 00 42 86 	calli 8012604 <__umodsi3>                      
 8001bf0:	55 e1 00 12 	bgu r15,r1,8001c38 <scanInt+0x134>             <== ALWAYS TAKEN
      return 0;                                                       
    i = i * 10 + d;                                                   
 8001bf4:	b9 80 08 00 	mv r1,r12                                      
 8001bf8:	34 02 00 01 	mvi r2,1                                       
 8001bfc:	f8 00 41 98 	calli 801225c <__ashlsi3>                      
 8001c00:	34 02 00 02 	mvi r2,2                                       
 8001c04:	b8 20 60 00 	mv r12,r1                                      
 8001c08:	f8 00 41 95 	calli 801225c <__ashlsi3>                      
 8001c0c:	b5 81 08 00 	add r1,r12,r1                                  
 8001c10:	b5 e1 60 00 	add r12,r15,r1                                 
 8001c14:	e3 ff ff d5 	bi 8001b68 <scanInt+0x64>                      
  }                                                                   
  if (sign == 0)                                                      
    return 0;                                                         
 8001c18:	34 03 00 00 	mvi r3,0                                       
    if ((i > (limit / 10))                                            
     || ((i == (limit / 10)) && (d > (limit % 10))))                  
      return 0;                                                       
    i = i * 10 + d;                                                   
  }                                                                   
  if (sign == 0)                                                      
 8001c1c:	45 a0 00 08 	be r13,r0,8001c3c <scanInt+0x138>              <== NEVER TAKEN
    return 0;                                                         
  *val = i * sign;                                                    
 8001c20:	b9 a0 08 00 	mv r1,r13                                      
 8001c24:	b9 80 10 00 	mv r2,r12                                      
 8001c28:	f8 00 42 02 	calli 8012430 <__mulsi3>                       
 8001c2c:	5a 41 00 00 	sw (r18+0),r1                                  
  return 1;                                                           
 8001c30:	34 03 00 01 	mvi r3,1                                       
 8001c34:	e0 00 00 02 	bi 8001c3c <scanInt+0x138>                     
    if (!isdigit(c))                                                  
      return 0;                                                       
    d = c - '0';                                                      
    if ((i > (limit / 10))                                            
     || ((i == (limit / 10)) && (d > (limit % 10))))                  
      return 0;                                                       
 8001c38:	34 03 00 00 	mvi r3,0                                       
  }                                                                   
  if (sign == 0)                                                      
    return 0;                                                         
  *val = i * sign;                                                    
  return 1;                                                           
}                                                                     
 8001c3c:	b8 60 08 00 	mv r1,r3                                       
 8001c40:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8001c44:	2b 8b 00 2c 	lw r11,(sp+44)                                 
 8001c48:	2b 8c 00 28 	lw r12,(sp+40)                                 
 8001c4c:	2b 8d 00 24 	lw r13,(sp+36)                                 
 8001c50:	2b 8e 00 20 	lw r14,(sp+32)                                 
 8001c54:	2b 8f 00 1c 	lw r15,(sp+28)                                 
 8001c58:	2b 90 00 18 	lw r16,(sp+24)                                 
 8001c5c:	2b 91 00 14 	lw r17,(sp+20)                                 
 8001c60:	2b 92 00 10 	lw r18,(sp+16)                                 
 8001c64:	2b 93 00 0c 	lw r19,(sp+12)                                 
 8001c68:	2b 94 00 08 	lw r20,(sp+8)                                  
 8001c6c:	37 9c 00 2c 	addi sp,sp,44                                  
 8001c70:	c3 a0 00 00 	ret                                            
                                                                      

08001dac <scangr>: FILE *fp, struct group *grp, char *buffer, size_t bufsize ) {
 8001dac:	37 9c ff d8 	addi sp,sp,-40                                 
 8001db0:	5b 8b 00 18 	sw (sp+24),r11                                 
 8001db4:	5b 8c 00 14 	sw (sp+20),r12                                 
 8001db8:	5b 8d 00 10 	sw (sp+16),r13                                 
 8001dbc:	5b 8e 00 0c 	sw (sp+12),r14                                 
 8001dc0:	5b 8f 00 08 	sw (sp+8),r15                                  
 8001dc4:	5b 9d 00 04 	sw (sp+4),ra                                   
  int grgid;                                                          
  char *grmem, *cp;                                                   
  int memcount;                                                       
                                                                      
  if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)            
 8001dc8:	37 8e 00 20 	addi r14,sp,32                                 
 8001dcc:	37 8d 00 1c 	addi r13,sp,28                                 
  FILE *fp,                                                           
  struct group *grp,                                                  
  char *buffer,                                                       
  size_t bufsize                                                      
)                                                                     
{                                                                     
 8001dd0:	5b 83 00 20 	sw (sp+32),r3                                  
 8001dd4:	5b 84 00 1c 	sw (sp+28),r4                                  
  int grgid;                                                          
  char *grmem, *cp;                                                   
  int memcount;                                                       
                                                                      
  if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)            
 8001dd8:	b9 c0 18 00 	mv r3,r14                                      
 8001ddc:	b9 a0 20 00 	mv r4,r13                                      
 8001de0:	34 05 00 00 	mvi r5,0                                       
  FILE *fp,                                                           
  struct group *grp,                                                  
  char *buffer,                                                       
  size_t bufsize                                                      
)                                                                     
{                                                                     
 8001de4:	b8 20 78 00 	mv r15,r1                                      
 8001de8:	b8 40 58 00 	mv r11,r2                                      
  int grgid;                                                          
  char *grmem, *cp;                                                   
  int memcount;                                                       
                                                                      
  if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)            
 8001dec:	fb ff ff a2 	calli 8001c74 <scanString>                     
   || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)          
   || !scanInt(fp, &grgid)                                            
   || !scanString(fp, &grmem, &buffer, &bufsize, 1))                  
    return 0;                                                         
 8001df0:	34 0c 00 00 	mvi r12,0                                      
{                                                                     
  int grgid;                                                          
  char *grmem, *cp;                                                   
  int memcount;                                                       
                                                                      
  if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)            
 8001df4:	44 20 00 43 	be r1,r0,8001f00 <scangr+0x154>                
   || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)          
 8001df8:	b9 e0 08 00 	mv r1,r15                                      
 8001dfc:	35 62 00 04 	addi r2,r11,4                                  
 8001e00:	b9 c0 18 00 	mv r3,r14                                      
 8001e04:	b9 a0 20 00 	mv r4,r13                                      
 8001e08:	34 05 00 00 	mvi r5,0                                       
 8001e0c:	fb ff ff 9a 	calli 8001c74 <scanString>                     
 8001e10:	44 20 00 3c 	be r1,r0,8001f00 <scangr+0x154>                <== NEVER TAKEN
   || !scanInt(fp, &grgid)                                            
 8001e14:	b9 e0 08 00 	mv r1,r15                                      
 8001e18:	37 82 00 28 	addi r2,sp,40                                  
 8001e1c:	fb ff ff 3a 	calli 8001b04 <scanInt>                        
 8001e20:	44 20 00 38 	be r1,r0,8001f00 <scangr+0x154>                <== NEVER TAKEN
   || !scanString(fp, &grmem, &buffer, &bufsize, 1))                  
 8001e24:	b9 e0 08 00 	mv r1,r15                                      
 8001e28:	37 82 00 24 	addi r2,sp,36                                  
 8001e2c:	b9 c0 18 00 	mv r3,r14                                      
 8001e30:	b9 a0 20 00 	mv r4,r13                                      
 8001e34:	34 05 00 01 	mvi r5,1                                       
 8001e38:	fb ff ff 8f 	calli 8001c74 <scanString>                     
 8001e3c:	44 20 00 31 	be r1,r0,8001f00 <scangr+0x154>                <== NEVER TAKEN
    return 0;                                                         
  grp->gr_gid = grgid;                                                
 8001e40:	2b 81 00 28 	lw r1,(sp+40)                                  
                                                                      
  /*                                                                  
   * Determine number of members                                      
   */                                                                 
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
 8001e44:	2b 8d 00 24 	lw r13,(sp+36)                                 
  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;                                                
 8001e48:	0d 61 00 08 	sh (r11+8),r1                                  
                                                                      
  /*                                                                  
   * Determine number of members                                      
   */                                                                 
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
 8001e4c:	b9 a0 10 00 	mv r2,r13                                      
 8001e50:	34 01 00 01 	mvi r1,1                                       
 8001e54:	e0 00 00 04 	bi 8001e64 <scangr+0xb8>                       
    if(*cp == ',')                                                    
      memcount++;                                                     
 8001e58:	64 63 00 2c 	cmpei r3,r3,44                                 
  grp->gr_gid = grgid;                                                
                                                                      
  /*                                                                  
   * Determine number of members                                      
   */                                                                 
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
 8001e5c:	34 42 00 01 	addi r2,r2,1                                   
    if(*cp == ',')                                                    
      memcount++;                                                     
 8001e60:	b4 23 08 00 	add r1,r1,r3                                   
  grp->gr_gid = grgid;                                                
                                                                      
  /*                                                                  
   * Determine number of members                                      
   */                                                                 
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
 8001e64:	40 43 00 00 	lbu r3,(r2+0)                                  
 8001e68:	5c 60 ff fc 	bne r3,r0,8001e58 <scangr+0xac>                
  }                                                                   
                                                                      
  /*                                                                  
   * Hack to produce (hopefully) a suitably-aligned array of pointers 
   */                                                                 
  if (bufsize < (((memcount+1)*sizeof(char *)) + 15))                 
 8001e6c:	34 02 00 02 	mvi r2,2                                       
 8001e70:	34 21 00 01 	addi r1,r1,1                                   
 8001e74:	f8 00 40 fa 	calli 801225c <__ashlsi3>                      
 8001e78:	2b 82 00 1c 	lw r2,(sp+28)                                  
 8001e7c:	34 21 00 0f 	addi r1,r1,15                                  
    return 0;                                                         
 8001e80:	34 0c 00 00 	mvi r12,0                                      
  }                                                                   
                                                                      
  /*                                                                  
   * Hack to produce (hopefully) a suitably-aligned array of pointers 
   */                                                                 
  if (bufsize < (((memcount+1)*sizeof(char *)) + 15))                 
 8001e84:	54 22 00 1f 	bgu r1,r2,8001f00 <scangr+0x154>               <== NEVER TAKEN
    return 0;                                                         
  grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15);            
 8001e88:	2b 81 00 20 	lw r1,(sp+32)                                  
 8001e8c:	34 02 ff f0 	mvi r2,-16                                     
  /*                                                                  
   * Fill in pointer array                                            
   */                                                                 
  grp->gr_mem[0] = grmem;                                             
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
    if(*cp == ',') {                                                  
 8001e90:	34 0e 00 2c 	mvi r14,44                                     
  /*                                                                  
   * Hack to produce (hopefully) a suitably-aligned array of pointers 
   */                                                                 
  if (bufsize < (((memcount+1)*sizeof(char *)) + 15))                 
    return 0;                                                         
  grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15);            
 8001e94:	34 21 00 0f 	addi r1,r1,15                                  
 8001e98:	a0 22 08 00 	and r1,r1,r2                                   
 8001e9c:	59 61 00 0c 	sw (r11+12),r1                                 
                                                                      
  /*                                                                  
   * Fill in pointer array                                            
   */                                                                 
  grp->gr_mem[0] = grmem;                                             
 8001ea0:	58 2d 00 00 	sw (r1+0),r13                                  
}                                                                     
                                                                      
/*                                                                    
 * Extract a single group record from the database                    
 */                                                                   
static int scangr(                                                    
 8001ea4:	2b 8c 00 24 	lw r12,(sp+36)                                 
                                                                      
  /*                                                                  
   * Fill in pointer array                                            
   */                                                                 
  grp->gr_mem[0] = grmem;                                             
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
 8001ea8:	34 0d 00 01 	mvi r13,1                                      
}                                                                     
                                                                      
/*                                                                    
 * Extract a single group record from the database                    
 */                                                                   
static int scangr(                                                    
 8001eac:	35 8c 00 01 	addi r12,r12,1                                 
                                                                      
  /*                                                                  
   * Fill in pointer array                                            
   */                                                                 
  grp->gr_mem[0] = grmem;                                             
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
 8001eb0:	e0 00 00 0b 	bi 8001edc <scangr+0x130>                      
    if(*cp == ',') {                                                  
 8001eb4:	5c 2e 00 09 	bne r1,r14,8001ed8 <scangr+0x12c>              
      *cp = '\0';                                                     
 8001eb8:	31 80 ff ff 	sb (r12+-1),r0                                 
      grp->gr_mem[memcount++] = cp + 1;                               
 8001ebc:	29 6f 00 0c 	lw r15,(r11+12)                                
 8001ec0:	b9 a0 08 00 	mv r1,r13                                      
 8001ec4:	34 02 00 02 	mvi r2,2                                       
 8001ec8:	f8 00 40 e5 	calli 801225c <__ashlsi3>                      
 8001ecc:	b5 e1 08 00 	add r1,r15,r1                                  
 8001ed0:	58 2c 00 00 	sw (r1+0),r12                                  
 8001ed4:	35 ad 00 01 	addi r13,r13,1                                 
 8001ed8:	35 8c 00 01 	addi r12,r12,1                                 
                                                                      
  /*                                                                  
   * Fill in pointer array                                            
   */                                                                 
  grp->gr_mem[0] = grmem;                                             
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
 8001edc:	41 81 ff ff 	lbu r1,(r12+-1)                                
 8001ee0:	5c 20 ff f5 	bne r1,r0,8001eb4 <scangr+0x108>               
    if(*cp == ',') {                                                  
      *cp = '\0';                                                     
      grp->gr_mem[memcount++] = cp + 1;                               
    }                                                                 
  }                                                                   
  grp->gr_mem[memcount] = NULL;                                       
 8001ee4:	29 6b 00 0c 	lw r11,(r11+12)                                
 8001ee8:	b9 a0 08 00 	mv r1,r13                                      
 8001eec:	34 02 00 02 	mvi r2,2                                       
 8001ef0:	f8 00 40 db 	calli 801225c <__ashlsi3>                      
 8001ef4:	b5 61 08 00 	add r1,r11,r1                                  
 8001ef8:	58 20 00 00 	sw (r1+0),r0                                   
  return 1;                                                           
 8001efc:	34 0c 00 01 	mvi r12,1                                      
}                                                                     
 8001f00:	b9 80 08 00 	mv r1,r12                                      
 8001f04:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8001f08:	2b 8b 00 18 	lw r11,(sp+24)                                 
 8001f0c:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8001f10:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8001f14:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8001f18:	2b 8f 00 08 	lw r15,(sp+8)                                  
 8001f1c:	37 9c 00 28 	addi sp,sp,40                                  
 8001f20:	c3 a0 00 00 	ret                                            
                                                                      

08001f24 <scanpw>: FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) {
 8001f24:	37 9c ff d8 	addi sp,sp,-40                                 
 8001f28:	5b 8b 00 18 	sw (sp+24),r11                                 
 8001f2c:	5b 8c 00 14 	sw (sp+20),r12                                 
 8001f30:	5b 8d 00 10 	sw (sp+16),r13                                 
 8001f34:	5b 8e 00 0c 	sw (sp+12),r14                                 
 8001f38:	5b 8f 00 08 	sw (sp+8),r15                                  
 8001f3c:	5b 9d 00 04 	sw (sp+4),ra                                   
  int pwuid, pwgid;                                                   
                                                                      
  if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)            
 8001f40:	37 8e 00 20 	addi r14,sp,32                                 
 8001f44:	37 8d 00 1c 	addi r13,sp,28                                 
  FILE *fp,                                                           
  struct passwd *pwd,                                                 
  char *buffer,                                                       
  size_t bufsize                                                      
)                                                                     
{                                                                     
 8001f48:	5b 83 00 20 	sw (sp+32),r3                                  
 8001f4c:	5b 84 00 1c 	sw (sp+28),r4                                  
  int pwuid, pwgid;                                                   
                                                                      
  if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)            
 8001f50:	b9 c0 18 00 	mv r3,r14                                      
 8001f54:	b9 a0 20 00 	mv r4,r13                                      
 8001f58:	34 05 00 00 	mvi r5,0                                       
  FILE *fp,                                                           
  struct passwd *pwd,                                                 
  char *buffer,                                                       
  size_t bufsize                                                      
)                                                                     
{                                                                     
 8001f5c:	b8 20 60 00 	mv r12,r1                                      
 8001f60:	b8 40 58 00 	mv r11,r2                                      
  int pwuid, pwgid;                                                   
                                                                      
  if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)            
 8001f64:	fb ff ff 44 	calli 8001c74 <scanString>                     
   || !scanInt(fp, &pwgid)                                            
   || !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0)         
   || !scanString(fp, &pwd->pw_gecos, &buffer, &bufsize, 0)           
   || !scanString(fp, &pwd->pw_dir, &buffer, &bufsize, 0)             
   || !scanString(fp, &pwd->pw_shell, &buffer, &bufsize, 1))          
    return 0;                                                         
 8001f68:	34 0f 00 00 	mvi r15,0                                      
  size_t bufsize                                                      
)                                                                     
{                                                                     
  int pwuid, pwgid;                                                   
                                                                      
  if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)            
 8001f6c:	44 20 00 31 	be r1,r0,8002030 <scanpw+0x10c>                
   || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)          
 8001f70:	b9 80 08 00 	mv r1,r12                                      
 8001f74:	35 62 00 04 	addi r2,r11,4                                  
 8001f78:	b9 c0 18 00 	mv r3,r14                                      
 8001f7c:	b9 a0 20 00 	mv r4,r13                                      
 8001f80:	34 05 00 00 	mvi r5,0                                       
 8001f84:	fb ff ff 3c 	calli 8001c74 <scanString>                     
 8001f88:	44 20 00 2a 	be r1,r0,8002030 <scanpw+0x10c>                <== NEVER TAKEN
   || !scanInt(fp, &pwuid)                                            
 8001f8c:	b9 80 08 00 	mv r1,r12                                      
 8001f90:	37 82 00 28 	addi r2,sp,40                                  
 8001f94:	fb ff fe dc 	calli 8001b04 <scanInt>                        
 8001f98:	44 20 00 26 	be r1,r0,8002030 <scanpw+0x10c>                
   || !scanInt(fp, &pwgid)                                            
 8001f9c:	b9 80 08 00 	mv r1,r12                                      
 8001fa0:	37 82 00 24 	addi r2,sp,36                                  
 8001fa4:	fb ff fe d8 	calli 8001b04 <scanInt>                        
 8001fa8:	44 20 00 22 	be r1,r0,8002030 <scanpw+0x10c>                
   || !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0)         
 8001fac:	b9 80 08 00 	mv r1,r12                                      
 8001fb0:	35 62 00 0c 	addi r2,r11,12                                 
 8001fb4:	b9 c0 18 00 	mv r3,r14                                      
 8001fb8:	b9 a0 20 00 	mv r4,r13                                      
 8001fbc:	34 05 00 00 	mvi r5,0                                       
 8001fc0:	fb ff ff 2d 	calli 8001c74 <scanString>                     
 8001fc4:	44 20 00 1b 	be r1,r0,8002030 <scanpw+0x10c>                <== NEVER TAKEN
   || !scanString(fp, &pwd->pw_gecos, &buffer, &bufsize, 0)           
 8001fc8:	b9 80 08 00 	mv r1,r12                                      
 8001fcc:	35 62 00 10 	addi r2,r11,16                                 
 8001fd0:	b9 c0 18 00 	mv r3,r14                                      
 8001fd4:	b9 a0 20 00 	mv r4,r13                                      
 8001fd8:	34 05 00 00 	mvi r5,0                                       
 8001fdc:	fb ff ff 26 	calli 8001c74 <scanString>                     
 8001fe0:	44 20 00 14 	be r1,r0,8002030 <scanpw+0x10c>                <== NEVER TAKEN
   || !scanString(fp, &pwd->pw_dir, &buffer, &bufsize, 0)             
 8001fe4:	b9 80 08 00 	mv r1,r12                                      
 8001fe8:	35 62 00 14 	addi r2,r11,20                                 
 8001fec:	b9 c0 18 00 	mv r3,r14                                      
 8001ff0:	b9 a0 20 00 	mv r4,r13                                      
 8001ff4:	34 05 00 00 	mvi r5,0                                       
 8001ff8:	fb ff ff 1f 	calli 8001c74 <scanString>                     
 8001ffc:	44 20 00 0d 	be r1,r0,8002030 <scanpw+0x10c>                <== NEVER TAKEN
   || !scanString(fp, &pwd->pw_shell, &buffer, &bufsize, 1))          
 8002000:	b9 80 08 00 	mv r1,r12                                      
 8002004:	35 62 00 18 	addi r2,r11,24                                 
 8002008:	b9 c0 18 00 	mv r3,r14                                      
 800200c:	b9 a0 20 00 	mv r4,r13                                      
 8002010:	34 05 00 01 	mvi r5,1                                       
 8002014:	fb ff ff 18 	calli 8001c74 <scanString>                     
 8002018:	44 20 00 06 	be r1,r0,8002030 <scanpw+0x10c>                
    return 0;                                                         
  pwd->pw_uid = pwuid;                                                
 800201c:	2b 81 00 28 	lw r1,(sp+40)                                  
  pwd->pw_gid = pwgid;                                                
  return 1;                                                           
 8002020:	34 0f 00 01 	mvi r15,1                                      
   || !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0)         
   || !scanString(fp, &pwd->pw_gecos, &buffer, &bufsize, 0)           
   || !scanString(fp, &pwd->pw_dir, &buffer, &bufsize, 0)             
   || !scanString(fp, &pwd->pw_shell, &buffer, &bufsize, 1))          
    return 0;                                                         
  pwd->pw_uid = pwuid;                                                
 8002024:	0d 61 00 08 	sh (r11+8),r1                                  
  pwd->pw_gid = pwgid;                                                
 8002028:	2b 81 00 24 	lw r1,(sp+36)                                  
 800202c:	0d 61 00 0a 	sh (r11+10),r1                                 
  return 1;                                                           
}                                                                     
 8002030:	b9 e0 08 00 	mv r1,r15                                      
 8002034:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8002038:	2b 8b 00 18 	lw r11,(sp+24)                                 
 800203c:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8002040:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8002044:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8002048:	2b 8f 00 08 	lw r15,(sp+8)                                  
 800204c:	37 9c 00 28 	addi sp,sp,40                                  
 8002050:	c3 a0 00 00 	ret                                            
                                                                      

08004428 <siproc>: /* * Process input character, with semaphore. */ static int siproc (unsigned char c, struct rtems_termios_tty *tty) {
 8004428:	37 9c ff f4 	addi sp,sp,-12                                 
 800442c:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8004430:	5b 8c 00 08 	sw (sp+8),r12                                  
 8004434:	5b 9d 00 04 	sw (sp+4),ra                                   
 8004438:	b8 20 60 00 	mv r12,r1                                      
  int i;                                                              
                                                                      
  /*                                                                  
   * Obtain output semaphore if character will be echoed              
   */                                                                 
  if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) {
 800443c:	28 41 00 3c 	lw r1,(r2+60)                                  
/*                                                                    
 * Process input character, with semaphore.                           
 */                                                                   
static int                                                            
siproc (unsigned char c, struct rtems_termios_tty *tty)               
{                                                                     
 8004440:	b8 40 58 00 	mv r11,r2                                      
  int i;                                                              
                                                                      
  /*                                                                  
   * Obtain output semaphore if character will be echoed              
   */                                                                 
  if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) {
 8004444:	20 21 0e 78 	andi r1,r1,0xe78                               
 8004448:	44 20 00 0c 	be r1,r0,8004478 <siproc+0x50>                 <== NEVER TAKEN
    rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 
 800444c:	28 41 00 18 	lw r1,(r2+24)                                  
 8004450:	34 03 00 00 	mvi r3,0                                       
 8004454:	34 02 00 00 	mvi r2,0                                       
 8004458:	f8 00 05 7b 	calli 8005a44 <rtems_semaphore_obtain>         
    i = iproc (c, tty);                                               
 800445c:	b9 80 08 00 	mv r1,r12                                      
 8004460:	b9 60 10 00 	mv r2,r11                                      
 8004464:	fb ff ff 84 	calli 8004274 <iproc>                          
 8004468:	b8 20 60 00 	mv r12,r1                                      
    rtems_semaphore_release (tty->osem);                              
 800446c:	29 61 00 18 	lw r1,(r11+24)                                 
 8004470:	f8 00 05 c5 	calli 8005b84 <rtems_semaphore_release>        
 8004474:	e0 00 00 04 	bi 8004484 <siproc+0x5c>                       
  }                                                                   
  else {                                                              
    i = iproc (c, tty);                                               
 8004478:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 800447c:	fb ff ff 7e 	calli 8004274 <iproc>                          <== NOT EXECUTED
 8004480:	b8 20 60 00 	mv r12,r1                                      <== NOT EXECUTED
  }                                                                   
  return i;                                                           
}                                                                     
 8004484:	b9 80 08 00 	mv r1,r12                                      
 8004488:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800448c:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8004490:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8004494:	37 9c 00 0c 	addi sp,sp,12                                  
 8004498:	c3 a0 00 00 	ret                                            
                                                                      

080050d4 <statvfs>: #include <sys/statvfs.h> int statvfs (const char *path, struct statvfs *sb) {
 80050d4:	37 9c ff dc 	addi sp,sp,-36                                 
 80050d8:	5b 8b 00 10 	sw (sp+16),r11                                 
 80050dc:	5b 8c 00 0c 	sw (sp+12),r12                                 
 80050e0:	5b 8d 00 08 	sw (sp+8),r13                                  
 80050e4:	5b 9d 00 04 	sw (sp+4),ra                                   
 80050e8:	b8 20 58 00 	mv r11,r1                                      
 80050ec:	b8 40 68 00 	mv r13,r2                                      
   *    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 ) )
 80050f0:	37 8c 00 14 	addi r12,sp,20                                 
 80050f4:	f8 00 2d 7e 	calli 80106ec <strlen>                         
 80050f8:	b8 20 10 00 	mv r2,r1                                       
 80050fc:	34 03 00 00 	mvi r3,0                                       
 8005100:	b9 60 08 00 	mv r1,r11                                      
 8005104:	b9 80 20 00 	mv r4,r12                                      
 8005108:	34 05 00 01 	mvi r5,1                                       
 800510c:	fb ff fa 21 	calli 8003990 <rtems_filesystem_evaluate_path> 
    return -1;                                                        
 8005110:	34 0b ff ff 	mvi r11,-1                                     
   *    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 ) )
 8005114:	5c 20 00 0e 	bne r1,r0,800514c <statvfs+0x78>               <== NEVER TAKEN
    return -1;                                                        
                                                                      
  mt_entry      = loc.mt_entry;                                       
 8005118:	2b 8b 00 24 	lw r11,(sp+36)                                 
  fs_mount_root = &mt_entry->mt_fs_root;                              
                                                                      
  memset (sb, 0, sizeof (struct statvfs));                            
 800511c:	34 02 00 00 	mvi r2,0                                       
 8005120:	34 03 00 38 	mvi r3,56                                      
 8005124:	b9 a0 08 00 	mv r1,r13                                      
 8005128:	f8 00 28 cf 	calli 800f464 <memset>                         
                                                                      
  result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb );    
 800512c:	29 61 00 28 	lw r1,(r11+40)                                 
 8005130:	b9 a0 10 00 	mv r2,r13                                      
 8005134:	28 23 00 44 	lw r3,(r1+68)                                  
 8005138:	35 61 00 1c 	addi r1,r11,28                                 
 800513c:	d8 60 00 00 	call r3                                        
 8005140:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  rtems_filesystem_freenode( &loc );                                  
 8005144:	b9 80 08 00 	mv r1,r12                                      
 8005148:	fb ff fa 5a 	calli 8003ab0 <rtems_filesystem_freenode>      
                                                                      
  return result;                                                      
}                                                                     
 800514c:	b9 60 08 00 	mv r1,r11                                      
 8005150:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8005154:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8005158:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 800515c:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8005160:	37 9c 00 24 	addi sp,sp,36                                  
 8005164:	c3 a0 00 00 	ret                                            
                                                                      

080039dc <sync_per_thread>: fdatasync(fn); } /* iterate over all FILE *'s for this thread */ static void sync_per_thread(Thread_Control *t) {
 80039dc:	37 9c ff f4 	addi sp,sp,-12                                 
 80039e0:	5b 8b 00 0c 	sw (sp+12),r11                                 
 80039e4:	5b 8c 00 08 	sw (sp+8),r12                                  
 80039e8:	5b 9d 00 04 	sw (sp+4),ra                                   
                                                                      
   /*                                                                 
    *  The sync_wrapper() function will operate on the current thread's
    *  reent structure so we will temporarily use that.               
    */                                                                
   this_reent = t->libc_reent;                                        
 80039ec:	28 22 01 14 	lw r2,(r1+276)                                 
   if ( this_reent ) {                                                
 80039f0:	44 40 00 0c 	be r2,r0,8003a20 <sync_per_thread+0x44>        <== NEVER TAKEN
     current_reent = _Thread_Executing->libc_reent;                   
 80039f4:	78 0b 08 01 	mvhi r11,0x801                                 
 80039f8:	39 6b 59 e8 	ori r11,r11,0x59e8                             
 80039fc:	29 63 00 0c 	lw r3,(r11+12)                                 
 8003a00:	28 6c 01 14 	lw r12,(r3+276)                                
     _Thread_Executing->libc_reent = this_reent;                      
 8003a04:	58 62 01 14 	sw (r3+276),r2                                 
     _fwalk (t->libc_reent, sync_wrapper);                            
 8003a08:	28 21 01 14 	lw r1,(r1+276)                                 
 8003a0c:	78 02 08 00 	mvhi r2,0x800                                  
 8003a10:	38 42 3a 34 	ori r2,r2,0x3a34                               
 8003a14:	f8 00 26 c1 	calli 800d518 <_fwalk>                         
     _Thread_Executing->libc_reent = current_reent;                   
 8003a18:	29 61 00 0c 	lw r1,(r11+12)                                 
 8003a1c:	58 2c 01 14 	sw (r1+276),r12                                
   }                                                                  
}                                                                     
 8003a20:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003a24:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8003a28:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8003a2c:	37 9c 00 0c 	addi sp,sp,12                                  
 8003a30:	c3 a0 00 00 	ret                                            
                                                                      

08002298 <tcflow>: int tcflow ( int fd __attribute__((unused)), int action ) {
 8002298:	37 9c ff fc 	addi sp,sp,-4                                  <== NOT EXECUTED
 800229c:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
    case TCOOFF:                                                      
    case TCOON:                                                       
    case TCIOFF:                                                      
    case TCION:                                                       
    default:                                                          
      rtems_set_errno_and_return_minus_one( EINVAL );                 
 80022a0:	f8 00 1b 3b 	calli 8008f8c <__errno>                        <== NOT EXECUTED
 80022a4:	34 02 00 16 	mvi r2,22                                      <== NOT EXECUTED
 80022a8:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
                                                                      
  /* fd is not validated */                                           
                                                                      
  /* When this is supported, implement it here */                     
  rtems_set_errno_and_return_minus_one( ENOTSUP );                    
}                                                                     
 80022ac:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
 80022b0:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 80022b4:	37 9c 00 04 	addi sp,sp,4                                   <== NOT EXECUTED
 80022b8:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

080022bc <tcflush>: int tcflush ( int fd __attribute__((unused)), int queue ) {
 80022bc:	37 9c ff fc 	addi sp,sp,-4                                  <== NOT EXECUTED
 80022c0:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
  switch (queue) {                                                    
    case TCIFLUSH:                                                    
    case TCOFLUSH:                                                    
    case TCIOFLUSH:                                                   
    default:                                                          
      rtems_set_errno_and_return_minus_one( EINVAL );                 
 80022c4:	f8 00 1b 32 	calli 8008f8c <__errno>                        <== NOT EXECUTED
 80022c8:	34 02 00 16 	mvi r2,22                                      <== NOT EXECUTED
 80022cc:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
  /* fd is not validated */                                           
                                                                      
  /* When this is supported, implement it here */                     
  rtems_set_errno_and_return_minus_one( ENOTSUP );                    
  return 0;                                                           
}                                                                     
 80022d0:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
 80022d4:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 80022d8:	37 9c 00 04 	addi sp,sp,4                                   <== NOT EXECUTED
 80022dc:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

080022e0 <tcgetpgrp>: #include <sys/types.h> #include <unistd.h> pid_t tcgetpgrp(int fd __attribute__((unused))) {
 80022e0:	37 9c ff fc 	addi sp,sp,-4                                  <== NOT EXECUTED
 80022e4:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
  return getpid();                                                    
 80022e8:	fb ff fc 73 	calli 80014b4 <getpid>                         <== NOT EXECUTED
}                                                                     
 80022ec:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 80022f0:	37 9c 00 04 	addi sp,sp,4                                   <== NOT EXECUTED
 80022f4:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

080022f8 <tcsendbreak>: int tcsendbreak ( int fd __attribute__((unused)), int duration __attribute__((unused)) ) { return 0; }
 80022f8:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 80022fc:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

0800c15c <tcsetattr>: int tcsetattr( int fd, int opt, struct termios *tp ) {
 800c15c:	37 9c ff f4 	addi sp,sp,-12                                 
 800c160:	5b 8b 00 0c 	sw (sp+12),r11                                 
 800c164:	5b 8c 00 08 	sw (sp+8),r12                                  
 800c168:	5b 9d 00 04 	sw (sp+4),ra                                   
 800c16c:	b8 20 60 00 	mv r12,r1                                      
 800c170:	b8 60 58 00 	mv r11,r3                                      
  switch (opt) {                                                      
 800c174:	44 40 00 0d 	be r2,r0,800c1a8 <tcsetattr+0x4c>              
 800c178:	34 03 00 01 	mvi r3,1                                       
 800c17c:	44 43 00 06 	be r2,r3,800c194 <tcsetattr+0x38>              
  default:                                                            
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
 800c180:	f8 00 0d aa 	calli 800f828 <__errno>                        
 800c184:	34 02 00 86 	mvi r2,134                                     
 800c188:	58 22 00 00 	sw (r1+0),r2                                   
 800c18c:	34 02 ff ff 	mvi r2,-1                                      
 800c190:	e0 00 00 0b 	bi 800c1bc <tcsetattr+0x60>                    
                                                                      
  case TCSADRAIN:                                                     
    if (ioctl( fd, RTEMS_IO_TCDRAIN, NULL ) < 0)                      
 800c194:	34 02 00 03 	mvi r2,3                                       
 800c198:	34 03 00 00 	mvi r3,0                                       
 800c19c:	fb ff fe ce 	calli 800bcd4 <ioctl>                          
    	return -1;                                                       
 800c1a0:	34 02 ff ff 	mvi r2,-1                                      
  switch (opt) {                                                      
  default:                                                            
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
                                                                      
  case TCSADRAIN:                                                     
    if (ioctl( fd, RTEMS_IO_TCDRAIN, NULL ) < 0)                      
 800c1a4:	48 01 00 06 	bg r0,r1,800c1bc <tcsetattr+0x60>              <== NEVER TAKEN
    	return -1;                                                       
    /*                                                                
     * Fall through to....                                            
     */                                                               
  case TCSANOW:                                                       
    return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp );                  
 800c1a8:	34 02 00 02 	mvi r2,2                                       
 800c1ac:	b9 80 08 00 	mv r1,r12                                      
 800c1b0:	b9 60 18 00 	mv r3,r11                                      
 800c1b4:	fb ff fe c8 	calli 800bcd4 <ioctl>                          
 800c1b8:	b8 20 10 00 	mv r2,r1                                       
  }                                                                   
}                                                                     
 800c1bc:	b8 40 08 00 	mv r1,r2                                       
 800c1c0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800c1c4:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 800c1c8:	2b 8c 00 08 	lw r12,(sp+8)                                  
 800c1cc:	37 9c 00 0c 	addi sp,sp,12                                  
 800c1d0:	c3 a0 00 00 	ret                                            
                                                                      

08002300 <tcsetpgrp>: int tcsetpgrp( int fd __attribute__((unused)), pid_t pid __attribute__((unused)) ) { return 0; }
 8002300:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 8002304:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

080038c4 <unlink>: #include <rtems/seterr.h> int unlink( const char *path ) {
 80038c4:	37 9c ff c0 	addi sp,sp,-64                                 
 80038c8:	5b 8b 00 14 	sw (sp+20),r11                                 
 80038cc:	5b 8c 00 10 	sw (sp+16),r12                                 
 80038d0:	5b 8d 00 0c 	sw (sp+12),r13                                 
 80038d4:	5b 8e 00 08 	sw (sp+8),r14                                  
 80038d8:	5b 9d 00 04 	sw (sp+4),ra                                   
 80038dc:	b8 20 70 00 	mv r14,r1                                      
                                                                      
  /*                                                                  
   * Get the node to be unlinked. Find the parent path first.         
   */                                                                 
                                                                      
  parentpathlen = rtems_filesystem_dirname ( path );                  
 80038e0:	fb ff fb 44 	calli 80025f0 <rtems_filesystem_dirname>       
 80038e4:	b8 20 58 00 	mv r11,r1                                      
 80038e8:	37 84 00 2c 	addi r4,sp,44                                  
                                                                      
  if ( parentpathlen == 0 )                                           
 80038ec:	5c 20 00 07 	bne r1,r0,8003908 <unlink+0x44>                
    rtems_filesystem_get_start_loc( path, &i, &parentloc );           
 80038f0:	b9 c0 08 00 	mv r1,r14                                      
 80038f4:	37 82 00 40 	addi r2,sp,64                                  
 80038f8:	b8 80 18 00 	mv r3,r4                                       
 80038fc:	fb ff ff c0 	calli 80037fc <rtems_filesystem_get_start_loc> 
  const char                       *name;                             
  rtems_filesystem_location_info_t  parentloc;                        
  rtems_filesystem_location_info_t  loc;                              
  int                               i;                                
  int                               result;                           
  bool                              free_parentloc = false;           
 8003900:	34 0d 00 00 	mvi r13,0                                      
 8003904:	e0 00 00 09 	bi 8003928 <unlink+0x64>                       
  parentpathlen = rtems_filesystem_dirname ( path );                  
                                                                      
  if ( parentpathlen == 0 )                                           
    rtems_filesystem_get_start_loc( path, &i, &parentloc );           
  else {                                                              
    result = rtems_filesystem_evaluate_path( path, parentpathlen,     
 8003908:	b9 c0 08 00 	mv r1,r14                                      
 800390c:	b9 60 10 00 	mv r2,r11                                      
 8003910:	34 03 00 02 	mvi r3,2                                       
 8003914:	34 05 00 00 	mvi r5,0                                       
 8003918:	fb ff fb 1b 	calli 8002584 <rtems_filesystem_evaluate_path> 
                                             RTEMS_LIBIO_PERMS_WRITE, 
                                             &parentloc,              
                                             false );                 
    if ( result != 0 )                                                
      return -1;                                                      
 800391c:	34 0c ff ff 	mvi r12,-1                                     
  else {                                                              
    result = rtems_filesystem_evaluate_path( path, parentpathlen,     
                                             RTEMS_LIBIO_PERMS_WRITE, 
                                             &parentloc,              
                                             false );                 
    if ( result != 0 )                                                
 8003920:	5c 20 00 3d 	bne r1,r0,8003a14 <unlink+0x150>               <== NEVER TAKEN
      return -1;                                                      
                                                                      
    free_parentloc = true;                                            
 8003924:	34 0d 00 01 	mvi r13,1                                      
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  loc = parentloc;                                                    
 8003928:	2b 81 00 2c 	lw r1,(sp+44)                                  
  name = path + parentpathlen;                                        
 800392c:	b5 cb 58 00 	add r11,r14,r11                                
                                                                      
  /*                                                                  
   * Start from the parent to find the node that should be under it.  
   */                                                                 
                                                                      
  loc = parentloc;                                                    
 8003930:	5b 81 00 18 	sw (sp+24),r1                                  
 8003934:	2b 81 00 30 	lw r1,(sp+48)                                  
 8003938:	5b 81 00 1c 	sw (sp+28),r1                                  
 800393c:	2b 81 00 34 	lw r1,(sp+52)                                  
 8003940:	5b 81 00 20 	sw (sp+32),r1                                  
 8003944:	2b 81 00 38 	lw r1,(sp+56)                                  
 8003948:	5b 81 00 24 	sw (sp+36),r1                                  
 800394c:	2b 81 00 3c 	lw r1,(sp+60)                                  
 8003950:	5b 81 00 28 	sw (sp+40),r1                                  
  name = path + parentpathlen;                                        
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
 8003954:	b9 60 08 00 	mv r1,r11                                      
 8003958:	f8 00 36 a2 	calli 80113e0 <strlen>                         
 800395c:	b8 20 10 00 	mv r2,r1                                       
 8003960:	b9 60 08 00 	mv r1,r11                                      
 8003964:	fb ff fb 37 	calli 8002640 <rtems_filesystem_prefix_separators>
 8003968:	b5 61 60 00 	add r12,r11,r1                                 
                                                                      
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
 800396c:	b9 80 08 00 	mv r1,r12                                      
 8003970:	f8 00 36 9c 	calli 80113e0 <strlen>                         
 8003974:	37 8b 00 18 	addi r11,sp,24                                 
 8003978:	b8 20 10 00 	mv r2,r1                                       
 800397c:	34 03 00 00 	mvi r3,0                                       
 8003980:	b9 80 08 00 	mv r1,r12                                      
 8003984:	b9 60 20 00 	mv r4,r11                                      
 8003988:	34 05 00 00 	mvi r5,0                                       
 800398c:	fb ff fa dc 	calli 80024fc <rtems_filesystem_evaluate_relative_path>
                                                    0, &loc, false ); 
  if ( result != 0 ) {                                                
 8003990:	44 20 00 05 	be r1,r0,80039a4 <unlink+0xe0>                 
    if ( free_parentloc )                                             
      rtems_filesystem_freenode( &parentloc );                        
    return -1;                                                        
 8003994:	34 0c ff ff 	mvi r12,-1                                     
                                                                      
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
                                                    0, &loc, false ); 
  if ( result != 0 ) {                                                
    if ( free_parentloc )                                             
      rtems_filesystem_freenode( &parentloc );                        
 8003998:	37 81 00 2c 	addi r1,sp,44                                  
  name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 
                                                                      
  result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
                                                    0, &loc, false ); 
  if ( result != 0 ) {                                                
    if ( free_parentloc )                                             
 800399c:	45 a0 00 1e 	be r13,r0,8003a14 <unlink+0x150>               <== NEVER TAKEN
 80039a0:	e0 00 00 1c 	bi 8003a10 <unlink+0x14c>                      
      rtems_filesystem_freenode( &parentloc );                        
    return -1;                                                        
  }                                                                   
                                                                      
  if (  (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) {
 80039a4:	2b 81 00 24 	lw r1,(sp+36)                                  
 80039a8:	28 22 00 10 	lw r2,(r1+16)                                  
 80039ac:	b9 60 08 00 	mv r1,r11                                      
 80039b0:	d8 40 00 00 	call r2                                        
 80039b4:	34 02 00 01 	mvi r2,1                                       
 80039b8:	5c 22 00 0b 	bne r1,r2,80039e4 <unlink+0x120>               
    rtems_filesystem_freenode( &loc );                                
 80039bc:	b9 60 08 00 	mv r1,r11                                      
 80039c0:	fb ff fb 39 	calli 80026a4 <rtems_filesystem_freenode>      
    if ( free_parentloc )                                             
 80039c4:	45 a0 00 03 	be r13,r0,80039d0 <unlink+0x10c>               
      rtems_filesystem_freenode( &parentloc );                        
 80039c8:	37 81 00 2c 	addi r1,sp,44                                  
 80039cc:	fb ff fb 36 	calli 80026a4 <rtems_filesystem_freenode>      
    rtems_set_errno_and_return_minus_one( EISDIR );                   
 80039d0:	f8 00 32 23 	calli 801025c <__errno>                        
 80039d4:	34 02 00 15 	mvi r2,21                                      
 80039d8:	58 22 00 00 	sw (r1+0),r2                                   
 80039dc:	34 0c ff ff 	mvi r12,-1                                     
 80039e0:	e0 00 00 0d 	bi 8003a14 <unlink+0x150>                      
  }                                                                   
                                                                      
  result = (*loc.ops->unlink_h)( &parentloc, &loc );                  
 80039e4:	2b 81 00 24 	lw r1,(sp+36)                                  
 80039e8:	37 8e 00 2c 	addi r14,sp,44                                 
 80039ec:	b9 60 10 00 	mv r2,r11                                      
 80039f0:	28 23 00 0c 	lw r3,(r1+12)                                  
 80039f4:	b9 c0 08 00 	mv r1,r14                                      
 80039f8:	d8 60 00 00 	call r3                                        
 80039fc:	b8 20 60 00 	mv r12,r1                                      
                                                                      
  rtems_filesystem_freenode( &loc );                                  
 8003a00:	b9 60 08 00 	mv r1,r11                                      
 8003a04:	fb ff fb 28 	calli 80026a4 <rtems_filesystem_freenode>      
  if ( free_parentloc )                                               
 8003a08:	45 a0 00 03 	be r13,r0,8003a14 <unlink+0x150>               
    rtems_filesystem_freenode( &parentloc );                          
 8003a0c:	b9 c0 08 00 	mv r1,r14                                      
 8003a10:	fb ff fb 25 	calli 80026a4 <rtems_filesystem_freenode>      
                                                                      
  return result;                                                      
}                                                                     
 8003a14:	b9 80 08 00 	mv r1,r12                                      
 8003a18:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003a1c:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8003a20:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8003a24:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8003a28:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8003a2c:	37 9c 00 40 	addi sp,sp,64                                  
 8003a30:	c3 a0 00 00 	ret                                            
                                                                      

0800393c <unmount>: */ int unmount( const char *path ) {
 800393c:	37 9c ff dc 	addi sp,sp,-36                                 
 8003940:	5b 8b 00 10 	sw (sp+16),r11                                 
 8003944:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8003948:	5b 8d 00 08 	sw (sp+8),r13                                  
 800394c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8003950:	b8 20 58 00 	mv r11,r1                                      
   *    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 ) )
 8003954:	37 8c 00 14 	addi r12,sp,20                                 
 8003958:	f8 00 27 9e 	calli 800d7d0 <strlen>                         
 800395c:	b8 20 10 00 	mv r2,r1                                       
 8003960:	34 03 00 00 	mvi r3,0                                       
 8003964:	b9 60 08 00 	mv r1,r11                                      
 8003968:	b9 80 20 00 	mv r4,r12                                      
 800396c:	34 05 00 01 	mvi r5,1                                       
 8003970:	fb ff fa 12 	calli 80021b8 <rtems_filesystem_evaluate_path> 
 8003974:	5c 20 00 41 	bne r1,r0,8003a78 <unmount+0x13c>              
    return -1;                                                        
                                                                      
  mt_entry     = loc.mt_entry;                                        
 8003978:	2b 8b 00 24 	lw r11,(sp+36)                                 
                                                                      
  /*                                                                  
   * Verify this is the root node for the file system to be unmounted.
   */                                                                 
                                                                      
  if ( fs_root_loc->node_access != loc.node_access ){                 
 800397c:	2b 81 00 14 	lw r1,(sp+20)                                  
 8003980:	29 62 00 1c 	lw r2,(r11+28)                                 
 8003984:	44 41 00 06 	be r2,r1,800399c <unmount+0x60>                
    rtems_filesystem_freenode( &loc );                                
 8003988:	b9 80 08 00 	mv r1,r12                                      
 800398c:	fb ff fa 53 	calli 80022d8 <rtems_filesystem_freenode>      
    rtems_set_errno_and_return_minus_one( EACCES );                   
 8003990:	f8 00 21 f3 	calli 800c15c <__errno>                        
 8003994:	34 02 00 0d 	mvi r2,13                                      
 8003998:	e0 00 00 13 	bi 80039e4 <unmount+0xa8>                      
                                                                      
  /*                                                                  
   * Free the loc node and just use the nodes from the mt_entry .     
   */                                                                 
                                                                      
  rtems_filesystem_freenode( &loc );                                  
 800399c:	b9 80 08 00 	mv r1,r12                                      
 80039a0:	fb ff fa 4e 	calli 80022d8 <rtems_filesystem_freenode>      
   *        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 )                
 80039a4:	78 01 08 01 	mvhi r1,0x801                                  
 80039a8:	38 21 51 d0 	ori r1,r1,0x51d0                               
 80039ac:	28 21 00 00 	lw r1,(r1+0)                                   
 80039b0:	28 21 00 14 	lw r1,(r1+20)                                  
 80039b4:	44 2b 00 0a 	be r1,r11,80039dc <unmount+0xa0>               
                                                                      
  /*                                                                  
   *  Verify there are no file systems below the path specified       
   */                                                                 
                                                                      
  if ( rtems_filesystem_mount_iterate( is_fs_below_mount_point,       
 80039b8:	29 62 00 2c 	lw r2,(r11+44)                                 
 80039bc:	78 01 08 00 	mvhi r1,0x800                                  
 80039c0:	38 21 39 30 	ori r1,r1,0x3930                               
 80039c4:	fb ff fc ea 	calli 8002d6c <rtems_filesystem_mount_iterate> 
 80039c8:	5c 20 00 05 	bne r1,r0,80039dc <unmount+0xa0>               
   *  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 )             
 80039cc:	b9 60 08 00 	mv r1,r11                                      
 80039d0:	fb ff fb 5c 	calli 8002740 <rtems_libio_is_open_files_in_fs>
 80039d4:	34 02 00 01 	mvi r2,1                                       
 80039d8:	5c 22 00 05 	bne r1,r2,80039ec <unmount+0xb0>               
    rtems_set_errno_and_return_minus_one( EBUSY );                    
 80039dc:	f8 00 21 e0 	calli 800c15c <__errno>                        
 80039e0:	34 02 00 10 	mvi r2,16                                      
 80039e4:	58 22 00 00 	sw (r1+0),r2                                   
 80039e8:	e0 00 00 24 	bi 8003a78 <unmount+0x13c>                     
   * 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 )             
 80039ec:	29 61 00 14 	lw r1,(r11+20)                                 
    return -1;                                                        
 80039f0:	34 0c ff ff 	mvi r12,-1                                     
   * 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 )             
 80039f4:	28 22 00 28 	lw r2,(r1+40)                                  
 80039f8:	b9 60 08 00 	mv r1,r11                                      
 80039fc:	d8 40 00 00 	call r2                                        
 8003a00:	b8 20 68 00 	mv r13,r1                                      
 8003a04:	5c 20 00 1e 	bne r1,r0,8003a7c <unmount+0x140>              <== NEVER TAKEN
   *  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){          
 8003a08:	29 61 00 28 	lw r1,(r11+40)                                 
 8003a0c:	28 22 00 2c 	lw r2,(r1+44)                                  
 8003a10:	b9 60 08 00 	mv r1,r11                                      
 8003a14:	d8 40 00 00 	call r2                                        
 8003a18:	44 2d 00 08 	be r1,r13,8003a38 <unmount+0xfc>               <== ALWAYS TAKEN
    if (( fs_mount_loc->ops->mount_h )( mt_entry ) != 0 )             
 8003a1c:	29 61 00 14 	lw r1,(r11+20)                                 <== NOT EXECUTED
 8003a20:	28 22 00 20 	lw r2,(r1+32)                                  <== NOT EXECUTED
 8003a24:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 8003a28:	d8 40 00 00 	call r2                                        <== NOT EXECUTED
 8003a2c:	44 20 00 14 	be r1,r0,8003a7c <unmount+0x140>               <== NOT EXECUTED
      rtems_fatal_error_occurred( 0 );                                
 8003a30:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 8003a34:	f8 00 02 cb 	calli 8004560 <rtems_fatal_error_occurred>     <== 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 );
 8003a38:	78 0c 08 01 	mvhi r12,0x801                                 
 8003a3c:	39 8c 58 34 	ori r12,r12,0x5834                             
 8003a40:	29 81 00 00 	lw r1,(r12+0)                                  
 8003a44:	34 02 00 00 	mvi r2,0                                       
 8003a48:	34 03 00 00 	mvi r3,0                                       
 8003a4c:	f8 00 01 97 	calli 80040a8 <rtems_semaphore_obtain>         
 */                                                                   
RTEMS_INLINE_ROUTINE void rtems_chain_extract(                        
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Extract( the_node );                                         
 8003a50:	b9 60 08 00 	mv r1,r11                                      
 8003a54:	f8 00 03 b0 	calli 8004914 <_Chain_Extract>                 
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
 8003a58:	29 81 00 00 	lw r1,(r12+0)                                  
   */                                                                 
                                                                      
  rtems_filesystem_freenode( fs_mount_loc );                          
  free( mt_entry );                                                   
                                                                      
  return 0;                                                           
 8003a5c:	34 0c 00 00 	mvi r12,0                                      
 8003a60:	f8 00 01 e2 	calli 80041e8 <rtems_semaphore_release>        
  /*                                                                  
   *  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 );                          
 8003a64:	35 61 00 08 	addi r1,r11,8                                  
 8003a68:	fb ff fa 1c 	calli 80022d8 <rtems_filesystem_freenode>      
  free( mt_entry );                                                   
 8003a6c:	b9 60 08 00 	mv r1,r11                                      
 8003a70:	fb ff fa 22 	calli 80022f8 <free>                           
                                                                      
  return 0;                                                           
 8003a74:	e0 00 00 02 	bi 8003a7c <unmount+0x140>                     
   *    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;                                                        
 8003a78:	34 0c ff ff 	mvi r12,-1                                     
                                                                      
  rtems_filesystem_freenode( fs_mount_loc );                          
  free( mt_entry );                                                   
                                                                      
  return 0;                                                           
}                                                                     
 8003a7c:	b9 80 08 00 	mv r1,r12                                      
 8003a80:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003a84:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8003a88:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8003a8c:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8003a90:	37 9c 00 24 	addi sp,sp,36                                  
 8003a94:	c3 a0 00 00 	ret                                            
                                                                      

08011304 <write>: ssize_t write( int fd, const void *buffer, size_t count ) {
 8011304:	37 9c ff ec 	addi sp,sp,-20                                 
 8011308:	5b 8b 00 10 	sw (sp+16),r11                                 
 801130c:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8011310:	5b 8d 00 08 	sw (sp+8),r13                                  
 8011314:	5b 9d 00 04 	sw (sp+4),ra                                   
  ssize_t  rc;                                                        
  rtems_libio_t     *iop;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
 8011318:	78 04 08 01 	mvhi r4,0x801                                  
 801131c:	38 84 30 10 	ori r4,r4,0x3010                               
ssize_t write(                                                        
  int         fd,                                                     
  const void *buffer,                                                 
  size_t      count                                                   
)                                                                     
{                                                                     
 8011320:	b8 40 68 00 	mv r13,r2                                      
  ssize_t  rc;                                                        
  rtems_libio_t     *iop;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
 8011324:	28 82 00 00 	lw r2,(r4+0)                                   
 8011328:	54 41 00 02 	bgu r2,r1,8011330 <write+0x2c>                 
 801132c:	e0 00 00 0c 	bi 801135c <write+0x58>                        
  iop = rtems_libio_iop( fd );                                        
 8011330:	78 0b 08 01 	mvhi r11,0x801                                 
 8011334:	34 02 00 06 	mvi r2,6                                       
 8011338:	39 6b 37 10 	ori r11,r11,0x3710                             
 801133c:	5b 83 00 14 	sw (sp+20),r3                                  
 8011340:	fb ff fd 52 	calli 8010888 <__ashlsi3>                      
 8011344:	29 6b 00 00 	lw r11,(r11+0)                                 
  rtems_libio_check_is_open( iop );                                   
 8011348:	2b 83 00 14 	lw r3,(sp+20)                                  
{                                                                     
  ssize_t  rc;                                                        
  rtems_libio_t     *iop;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
  iop = rtems_libio_iop( fd );                                        
 801134c:	b5 61 58 00 	add r11,r11,r1                                 
  rtems_libio_check_is_open( iop );                                   
 8011350:	29 61 00 18 	lw r1,(r11+24)                                 
 8011354:	20 22 01 00 	andi r2,r1,0x100                               
 8011358:	5c 40 00 04 	bne r2,r0,8011368 <write+0x64>                 
 801135c:	fb ff e8 0d 	calli 800b390 <__errno>                        
 8011360:	34 02 00 09 	mvi r2,9                                       
 8011364:	e0 00 00 08 	bi 8011384 <write+0x80>                        
  rtems_libio_check_buffer( buffer );                                 
 8011368:	45 a0 00 05 	be r13,r0,801137c <write+0x78>                 <== NEVER TAKEN
  rtems_libio_check_count( count );                                   
 801136c:	34 0c 00 00 	mvi r12,0                                      
 8011370:	44 60 00 19 	be r3,r0,80113d4 <write+0xd0>                  
  rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );            
 8011374:	20 21 00 04 	andi r1,r1,0x4                                 
 8011378:	5c 20 00 06 	bne r1,r0,8011390 <write+0x8c>                 
 801137c:	fb ff e8 05 	calli 800b390 <__errno>                        
 8011380:	34 02 00 16 	mvi r2,22                                      
 8011384:	58 22 00 00 	sw (r1+0),r2                                   
 8011388:	34 0c ff ff 	mvi r12,-1                                     
 801138c:	e0 00 00 12 	bi 80113d4 <write+0xd0>                        
                                                                      
  /*                                                                  
   *  Now process the write() request.                                
   */                                                                 
  rc = (*iop->pathinfo.handlers->write_h)( iop, buffer, count );      
 8011390:	29 61 00 24 	lw r1,(r11+36)                                 
 8011394:	b9 a0 10 00 	mv r2,r13                                      
 8011398:	28 24 00 0c 	lw r4,(r1+12)                                  
 801139c:	b9 60 08 00 	mv r1,r11                                      
 80113a0:	d8 80 00 00 	call r4                                        
 80113a4:	b8 20 60 00 	mv r12,r1                                      
                                                                      
  if ( rc > 0 )                                                       
 80113a8:	4c 01 00 0b 	bge r0,r1,80113d4 <write+0xd0>                 
    iop->offset += rc;                                                
 80113ac:	34 02 00 1f 	mvi r2,31                                      
 80113b0:	fb ff fd 5d 	calli 8010924 <__ashrsi3>                      
 80113b4:	29 62 00 14 	lw r2,(r11+20)                                 
 80113b8:	29 64 00 10 	lw r4,(r11+16)                                 
 80113bc:	b5 82 10 00 	add r2,r12,r2                                  
 80113c0:	f5 82 18 00 	cmpgu r3,r12,r2                                
 80113c4:	b4 24 08 00 	add r1,r1,r4                                   
 80113c8:	b4 61 08 00 	add r1,r3,r1                                   
 80113cc:	59 61 00 10 	sw (r11+16),r1                                 
 80113d0:	59 62 00 14 	sw (r11+20),r2                                 
                                                                      
  return rc;                                                          
}                                                                     
 80113d4:	b9 80 08 00 	mv r1,r12                                      
 80113d8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80113dc:	2b 8b 00 10 	lw r11,(sp+16)                                 
 80113e0:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 80113e4:	2b 8d 00 08 	lw r13,(sp+8)                                  
 80113e8:	37 9c 00 14 	addi sp,sp,20                                  
 80113ec:	c3 a0 00 00 	ret                                            
                                                                      

08003d1c <writev>: ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) {
 8003d1c:	37 9c ff e4 	addi sp,sp,-28                                 
 8003d20:	5b 8b 00 1c 	sw (sp+28),r11                                 
 8003d24:	5b 8c 00 18 	sw (sp+24),r12                                 
 8003d28:	5b 8d 00 14 	sw (sp+20),r13                                 
 8003d2c:	5b 8e 00 10 	sw (sp+16),r14                                 
 8003d30:	5b 8f 00 0c 	sw (sp+12),r15                                 
 8003d34:	5b 90 00 08 	sw (sp+8),r16                                  
 8003d38:	5b 9d 00 04 	sw (sp+4),ra                                   
 8003d3c:	b8 60 78 00 	mv r15,r3                                      
  int            bytes;                                               
  rtems_libio_t *iop;                                                 
  ssize_t        old;                                                 
  bool           all_zeros;                                           
                                                                      
  rtems_libio_check_fd( fd );                                         
 8003d40:	78 03 08 01 	mvhi r3,0x801                                  
 8003d44:	38 63 40 10 	ori r3,r3,0x4010                               
ssize_t writev(                                                       
  int                 fd,                                             
  const struct iovec *iov,                                            
  int                 iovcnt                                          
)                                                                     
{                                                                     
 8003d48:	b8 40 68 00 	mv r13,r2                                      
  int            bytes;                                               
  rtems_libio_t *iop;                                                 
  ssize_t        old;                                                 
  bool           all_zeros;                                           
                                                                      
  rtems_libio_check_fd( fd );                                         
 8003d4c:	28 62 00 00 	lw r2,(r3+0)                                   
 8003d50:	54 41 00 02 	bgu r2,r1,8003d58 <writev+0x3c>                
 8003d54:	e0 00 00 0a 	bi 8003d7c <writev+0x60>                       
  iop = rtems_libio_iop( fd );                                        
 8003d58:	78 0b 08 01 	mvhi r11,0x801                                 
 8003d5c:	34 02 00 06 	mvi r2,6                                       
 8003d60:	39 6b 47 10 	ori r11,r11,0x4710                             
 8003d64:	f8 00 37 67 	calli 8011b00 <__ashlsi3>                      
 8003d68:	29 6c 00 00 	lw r12,(r11+0)                                 
 8003d6c:	b5 81 60 00 	add r12,r12,r1                                 
  rtems_libio_check_is_open( iop );                                   
 8003d70:	29 81 00 18 	lw r1,(r12+24)                                 
 8003d74:	20 22 01 00 	andi r2,r1,0x100                               
 8003d78:	5c 40 00 04 	bne r2,r0,8003d88 <writev+0x6c>                
 8003d7c:	f8 00 21 74 	calli 800c34c <__errno>                        
 8003d80:	34 02 00 09 	mvi r2,9                                       
 8003d84:	e0 00 00 1c 	bi 8003df4 <writev+0xd8>                       
  rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );            
 8003d88:	20 21 00 04 	andi r1,r1,0x4                                 
 8003d8c:	44 20 00 18 	be r1,r0,8003dec <writev+0xd0>                 <== NEVER TAKEN
                                                                      
  /*                                                                  
   *  Argument validation on IO vector                                
   */                                                                 
  if ( !iov )                                                         
 8003d90:	45 a0 00 17 	be r13,r0,8003dec <writev+0xd0>                
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt <= 0 )                                                  
 8003d94:	49 e0 00 02 	bg r15,r0,8003d9c <writev+0x80>                
 8003d98:	e0 00 00 15 	bi 8003dec <writev+0xd0>                       
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt > IOV_MAX )                                             
 8003d9c:	34 01 04 00 	mvi r1,1024                                    
 8003da0:	4c 2f 00 02 	bge r1,r15,8003da8 <writev+0x8c>               <== ALWAYS TAKEN
 8003da4:	e0 00 00 12 	bi 8003dec <writev+0xd0>                       <== NOT EXECUTED
 8003da8:	b9 a0 08 00 	mv r1,r13                                      
 8003dac:	34 02 00 01 	mvi r2,1                                       
 8003db0:	34 04 00 00 	mvi r4,0                                       
 8003db4:	34 03 00 00 	mvi r3,0                                       
 8003db8:	e0 00 00 02 	bi 8003dc0 <writev+0xa4>                       
    if ( iov[v].iov_len )                                             
      all_zeros = false;                                              
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
 8003dbc:	b8 a0 18 00 	mv r3,r5                                       
                                                                      
    /*                                                                
     *  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 )                                       
 8003dc0:	28 25 00 00 	lw r5,(r1+0)                                   
 8003dc4:	44 a0 00 0a 	be r5,r0,8003dec <writev+0xd0>                 
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    if ( iov[v].iov_len )                                             
 8003dc8:	28 25 00 04 	lw r5,(r1+4)                                   
      all_zeros = false;                                              
 8003dcc:	64 a6 00 00 	cmpei r6,r5,0                                  
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
 8003dd0:	b4 65 28 00 	add r5,r3,r5                                   
     */                                                               
    if ( iov[v].iov_base == 0 )                                       
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    if ( iov[v].iov_len )                                             
      all_zeros = false;                                              
 8003dd4:	c8 06 30 00 	sub r6,r0,r6                                   
 8003dd8:	a0 46 10 00 	and r2,r2,r6                                   
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
    if ( total < old || total > SSIZE_MAX )                           
 8003ddc:	e8 65 18 00 	cmpg r3,r3,r5                                  
 8003de0:	68 a6 7f ff 	cmpgi r6,r5,32767                              
 8003de4:	b8 c3 18 00 	or r3,r6,r3                                    
 8003de8:	44 60 00 05 	be r3,r0,8003dfc <writev+0xe0>                 
      rtems_set_errno_and_return_minus_one( EINVAL );                 
 8003dec:	f8 00 21 58 	calli 800c34c <__errno>                        
 8003df0:	34 02 00 16 	mvi r2,22                                      
 8003df4:	58 22 00 00 	sw (r1+0),r2                                   
 8003df8:	e0 00 00 22 	bi 8003e80 <writev+0x164>                      
   *  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++ ) {                    
 8003dfc:	34 84 00 01 	addi r4,r4,1                                   
 8003e00:	34 21 00 08 	addi r1,r1,8                                   
 8003e04:	49 e4 ff ee 	bg r15,r4,8003dbc <writev+0xa0>                
                                                                      
  /*                                                                  
   * A writev with all zeros is supposed to have no effect per OpenGroup.
   */                                                                 
  if ( all_zeros == true ) {                                          
    return 0;                                                         
 8003e08:	34 0b 00 00 	mvi r11,0                                      
  }                                                                   
                                                                      
  /*                                                                  
   * A writev with all zeros is supposed to have no effect per OpenGroup.
   */                                                                 
  if ( all_zeros == true ) {                                          
 8003e0c:	5c 40 00 1e 	bne r2,r0,8003e84 <writev+0x168>               
 8003e10:	34 10 00 00 	mvi r16,0                                      
  /*                                                                  
   *  Now process the writev().                                       
   */                                                                 
  for ( total=0, v=0 ; v < iovcnt ; v++ ) {                           
    /* all zero lengths has no effect */                              
    if ( iov[v].iov_len == 0 )                                        
 8003e14:	29 a3 00 04 	lw r3,(r13+4)                                  
 8003e18:	44 60 00 16 	be r3,r0,8003e70 <writev+0x154>                <== NEVER TAKEN
      continue;                                                       
                                                                      
    bytes = (*iop->pathinfo.handlers->write_h)(                       
 8003e1c:	29 81 00 24 	lw r1,(r12+36)                                 
 8003e20:	29 a2 00 00 	lw r2,(r13+0)                                  
 8003e24:	28 24 00 0c 	lw r4,(r1+12)                                  
 8003e28:	b9 80 08 00 	mv r1,r12                                      
 8003e2c:	d8 80 00 00 	call r4                                        
 8003e30:	b8 20 70 00 	mv r14,r1                                      
      iop,                                                            
      iov[v].iov_base,                                                
      iov[v].iov_len                                                  
    );                                                                
                                                                      
    if ( bytes < 0 )                                                  
 8003e34:	48 01 00 13 	bg r0,r1,8003e80 <writev+0x164>                <== NEVER TAKEN
      return -1;                                                      
                                                                      
    if ( bytes > 0 ) {                                                
 8003e38:	44 20 00 0c 	be r1,r0,8003e68 <writev+0x14c>                <== NEVER TAKEN
      iop->offset += bytes;                                           
 8003e3c:	34 02 00 1f 	mvi r2,31                                      
 8003e40:	f8 00 37 57 	calli 8011b9c <__ashrsi3>                      
 8003e44:	29 82 00 14 	lw r2,(r12+20)                                 
 8003e48:	29 84 00 10 	lw r4,(r12+16)                                 
      total       += bytes;                                           
 8003e4c:	b5 6e 58 00 	add r11,r11,r14                                
                                                                      
    if ( bytes < 0 )                                                  
      return -1;                                                      
                                                                      
    if ( bytes > 0 ) {                                                
      iop->offset += bytes;                                           
 8003e50:	b5 c2 10 00 	add r2,r14,r2                                  
 8003e54:	f5 c2 18 00 	cmpgu r3,r14,r2                                
 8003e58:	b4 24 08 00 	add r1,r1,r4                                   
 8003e5c:	b4 61 08 00 	add r1,r3,r1                                   
 8003e60:	59 81 00 10 	sw (r12+16),r1                                 
 8003e64:	59 82 00 14 	sw (r12+20),r2                                 
      total       += bytes;                                           
    }                                                                 
                                                                      
    if (bytes != iov[ v ].iov_len)                                    
 8003e68:	29 a1 00 04 	lw r1,(r13+4)                                  
 8003e6c:	5d c1 00 06 	bne r14,r1,8003e84 <writev+0x168>              <== NEVER TAKEN
  }                                                                   
                                                                      
  /*                                                                  
   *  Now process the writev().                                       
   */                                                                 
  for ( total=0, v=0 ; v < iovcnt ; v++ ) {                           
 8003e70:	36 10 00 01 	addi r16,r16,1                                 
 8003e74:	35 ad 00 08 	addi r13,r13,8                                 
 8003e78:	49 f0 ff e7 	bg r15,r16,8003e14 <writev+0xf8>               
 8003e7c:	e0 00 00 02 	bi 8003e84 <writev+0x168>                      
      iov[v].iov_base,                                                
      iov[v].iov_len                                                  
    );                                                                
                                                                      
    if ( bytes < 0 )                                                  
      return -1;                                                      
 8003e80:	34 0b ff ff 	mvi r11,-1                                     
    if (bytes != iov[ v ].iov_len)                                    
      break;                                                          
  }                                                                   
                                                                      
  return total;                                                       
}                                                                     
 8003e84:	b9 60 08 00 	mv r1,r11                                      
 8003e88:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003e8c:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 8003e90:	2b 8c 00 18 	lw r12,(sp+24)                                 
 8003e94:	2b 8d 00 14 	lw r13,(sp+20)                                 
 8003e98:	2b 8e 00 10 	lw r14,(sp+16)                                 
 8003e9c:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 8003ea0:	2b 90 00 08 	lw r16,(sp+8)                                  
 8003ea4:	37 9c 00 1c 	addi sp,sp,28                                  
 8003ea8:	c3 a0 00 00 	ret